{"matchId":"47039627","creationMatch":"match","runtimeMatch":"match","verifiedAt":"2026-09-02T14:17:32Z","creationBytecode":{"onchainBytecode":"0x610200604052348015610010575f80fd5b50604051614fed380380614fed83398101604081905261002f916101ca565b6001600160a01b038b16158061004c57506001600160a01b038a16155b8061005e57506001600160a01b038916155b8061007057506001600160a01b038816155b8061008257506001600160a01b038716155b156100a05760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03808c166080528a811660a05289811660c05288811660e0528716610100528315806100d1575082155b156100ef57604051636440abcf60e11b815260040160405180910390fd5b6001600160a01b038216158061010c57506001600160a01b038116155b1561012a5760405163d92e233d60e01b815260040160405180910390fd5b62ffffff861661012052600285900b610140526101808490526101a08390526001600160a01b038083166101c05281166101605260405161016a906101a2565b604051809103905ff080158015610183573d5f803e3d5ffd5b506001600160a01b03166101e052506102949950505050505050505050565b611df4806131f983390190565b80516001600160a01b03811681146101c5575f80fd5b919050565b5f805f805f805f805f805f6101608c8e0312156101e5575f80fd5b6101ee8c6101af565b9a506101fc60208d016101af565b995061020a60408d016101af565b985061021860608d016101af565b975061022660808d016101af565b965060a08c015162ffffff8116811461023d575f80fd5b8096505060c08c01518060020b8114610254575f80fd5b60e08d01516101008e0151919650945092506102736101208d016101af565b91506102826101408d016101af565b90509295989b509295989b9093969950565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e051612e486103b15f395f81816102b40152610c2701525f818161053a0152610b9501525f81816103420152610bcb01525f81816102020152610b5f01525f81816102490152610d5101525f818161046601528181610f3301526115b201525f818161038f0152610f0801525f81816102db015281816103f60152610f5c01525f818161049d015261051301525f81816103d201528181610fab015281816119b601528181611b5d01528181611bdf0152611c9b01525f81816104d90152610d0101525f81816103660152818161043f01528181610d2901528181610e5001528181610e970152610ed80152612e485ff3fe608060405234801561000f575f80fd5b50600436106101bb575f3560e01c80635a6c72d0116100f3578063c415b95c11610093578063df517ddf1161006e578063df517ddf146104fb578063f108e2251461050e578063f700f06e14610535578063fb1ace181461055c575f80fd5b8063c415b95c1461049b578063d5c71275146104c1578063dc4c90d3146104d4575f80fd5b80637f5a7c7b116100ce5780637f5a7c7b146103f45780638652edf91461041a578063bdf3c4ae1461043a578063bf11b4d514610461575f80fd5b80635a6c72d01461038a57806378a89567146103c5578063791b98bc146103cd575f80fd5b80632f2f2d561161015e5780634690b68d116101395780634690b68d146102fd57806347868b32146103105780634aa445341461033d5780634eec9e0914610364575f80fd5b80632f2f2d561461029c5780632f3a3d5d146102af57806332a3cf96146102d6575f80fd5b80631f69565f116101995780631f69565f14610224578063223a980b1461024457806325637fd61461026b5780632a5c792a14610287575f80fd5b806303bdd5cf146101bf57806303fd2a45146101dc57806311b1868f146101fd575b5f80fd5b6101c962093a8081565b6040519081526020015b60405180910390f35b6101e561dead81565b6040516001600160a01b0390911681526020016101d3565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b61023761023236600461253d565b61056f565b6040516101d39190612591565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b5f546102779060ff1681565b60405190151581526020016101d3565b61028f61078d565b6040516101d3919061265a565b6101e56102aa3660046126e9565b6107ed565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b61028f61030b366004612753565b61082f565b61027761031e36600461253d565b6001600160a01b039081165f9081526001602052604090205416151590565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6103b17f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff90911681526020016101d3565b6004546101c9565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61042d61042836600461253d565b61092b565b6040516101d391906127b6565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6104887f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b81526020016101d3565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61028f6104cf36600461253d565b6109ff565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e56105093660046127c4565b610a72565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101c96b033b2e3c9fd0803ce800000081565b6040805161012080820183525f80835260208084018290526060848601819052808501526080840182905260a0840182905260c0840182905260e0840182905261010084018290526001600160a01b038681168352600180835292869020865194850187528054821685529283015416908301526002810180549394929391928401916105fb9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106279061289a565b80156106725780601f1061064957610100808354040283529160200191610672565b820191905f5260205f20905b81548152906001019060200180831161065557829003601f168201915b5050505050815260200160038201805461068b9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106b79061289a565b80156107025780601f106106d957610100808354040283529160200191610702565b820191905f5260205f20905b8154815290600101906020018083116106e557829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460608201526007909101546001600160401b038082166080840152600160401b9091041660a09091015280519091506001600160a01b0316610788576040516340d1d8df60e11b81526001600160a01b03831660048201526024015b60405180910390fd5b919050565b606060048054806020026020016040519081016040528092919081815260200182805480156107e357602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107c5575b5050505050905090565b5f610826858585858580604051908082528060200260200182016040528015610820578160200160208202803683370190505b50610b19565b95945050505050565b6004546060908284118061084257508083115b1561086a57604051632457cde760e01b8152600481018590526024810182905260440161077f565b61087484846128fa565b6001600160401b0381111561088b5761088b6128d2565b6040519080825280602002602001820160405280156108b4578160200160208202803683370190505b509150835b8381101561092357600481815481106108d4576108d461290d565b5f918252602090912001546001600160a01b0316836108f387846128fa565b815181106109035761090361290d565b6001600160a01b03909216602092830291909101909101526001016108b9565b505092915050565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506001600160a01b038082165f90815260026020818152604092839020835160a0810185528154861680825260018301548088169483019490945262ffffff600160a01b85041695820195909552600160b81b909204830b60608301529091015490921660808301521580156109d6575060208101516001600160a01b0316155b15610788576040516340d1d8df60e11b81526001600160a01b038316600482015260240161077f565b6001600160a01b0381165f90815260036020908152604091829020805483518184028101840190945280845260609392830182828015610a6657602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a48575b50505050509050919050565b5f831580610a82575062093a8084115b15610aac57604051630f4a61d160e31b81526004810185905262093a80602482015260440161077f565b5f829003610acd5760405163d302698f60e01b815260040160405180910390fd5b610b0d88888888888888808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610b1992505050565b98975050505050505050565b5f858103610b3a57604051632ef1310560e01b815260040160405180910390fd5b5f849003610b5b57604051630cc613fb60e11b815260040160405180910390fd5b5f547f00000000000000000000000000000000000000000000000000000000000000009060ff16158015610bb75750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b15610beb57505f805460ff191660011790557f00000000000000000000000000000000000000000000000000000000000000005b6004546040515f91610c0a913391908c908c908c908c90602001612949565b604051602081830303815290604052805190602001209050610c4c7f000000000000000000000000000000000000000000000000000000000000000082610dfd565b9250826001600160a01b031663277b806d6040518061012001604052808c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c90819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce80000006020820152336040808301919091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660608401527f0000000000000000000000000000000000000000000000000000000000000000811660808401527f00000000000000000000000000000000000000000000000000000000000000001660a083015260c082018a905260e0918201899052519083901b6001600160e01b0319168152610da391906004016129c6565b5f604051808303815f87803b158015610dba575f80fd5b505af1158015610dcc573d5f803e3d5ffd5b505050505f80610ddc8585610e12565b91509150610def858c8c8c8c8787611085565b505050509695505050505050565b5f610e0983835f611511565b90505b92915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525f806b033b2e3c9fd0803ce800000090505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161090506040518060a0016040528082610ebb577f0000000000000000000000000000000000000000000000000000000000000000610ebd565b875b6001600160a01b0316815260200182610ed65787610ef8565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b031681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000060020b81526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681525093505f805f610f9684896115ad565b91945092509050627fffff6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f702040589610fda85611680565b6040518363ffffffff1660e01b8152600401610ff7929190612a8f565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110379190612ab5565b60020b0361105857604051633b47c30b60e21b815260040160405180910390fd5b5f61106585858589611938565b90506110768a878a8787868b6119a6565b96505050505050509250929050565b5f604051806101200160405280896001600160a01b03168152602001336001600160a01b0316815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8901819004810282018101909252878152918101919088908890819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce800000060208201526040016111428560a0902090565b8152602001838152602001426001600160401b03168152602001896001600160a01b0316631dec7ed56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111bc9190612ad5565b6001600160401b031681525090508260025f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160146101000a81548162ffffff021916908362ffffff16021790555060608201518160010160176101000a81548162ffffff021916908360020b62ffffff1602179055506080820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050508060015f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201908161134f9190612b46565b50606082015160038201906113649082612b46565b506080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015f6101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160070160086101000a8154816001600160401b0302191690836001600160401b03160217905550905050600488908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555060035f336001600160a01b03166001600160a01b031681526020019081526020015f2088908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055508060a0015181602001516001600160a01b0316825f01516001600160a01b03167f11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df8460c001518560400151866060015187608001518861010001518960e001516040516114ff96959493929190612c00565b60405180910390a45050505050505050565b5f8147101561153c5760405163cf47918160e01b81524760048201526024810183905260440161077f565b763d602d80600a3d3981f3363d3d373d3d3d363d730000008460601b60e81c175f526e5af43d82803e903d91602b57fd5bf38460781b17602052826037600984f590506001600160a01b0381166115a65760405163b06ebf3d60e01b815260040160405180910390fd5b9392505050565b5f80807f0000000000000000000000000000000000000000000000000000000000000000816115e0620d89e71983611d90565b9050620d89e719600282900b12156115ff576115fc8282612c53565b90505b5f61160d620d89e884611d90565b90505f61161a8989611de3565b905088156116395761162c8185611d90565b965081955086945061164c565b8296506116468185611e84565b95508594505b8560020b8760020b126116755760405163bd7e0d4360e01b81526004810189905260240161077f565b505050509250925092565b60020b5f60ff82901d80830118620d89e88111156116a9576116a96345c3193d60e11b84611eae565b7001fffcb933bd6fad37aa2d162d1a5940016001821602600160801b1860028216156116e5576ffff97272373d413259a46990580e213a0260801c5b6004821615611704576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615611723576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615611742576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615611761576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615611780576fff2ea16466c96a3843ec78b326b528610260801c5b608082161561179f576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156117bf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156117df576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156117ff576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161561181f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b61100082161561183f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b61200082161561185f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b61400082161561187f576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161561189f576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156118c0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b620200008216156118e0576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156118ff576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561191c576b048a170391f7dc42444e8fa20260801c5b5f841315611928575f19045b63ffffffff0160201c9392505050565b5f8061194385611680565b90505f61194f85611680565b90508661196657611961828286611ebd565b611971565b611971828286611efe565b9250826001600160801b03165f0361199c5760405163f564880560e01b815260040160405180910390fd5b5050949350505050565b5f6119db6001600160a01b0389167f000000000000000000000000000000000000000000000000000000000000000089611f5a565b604051600160f91b6020820152600b60f81b6021820152600560fa1b60228201525f9060230160408051808303601f1901815260038084526080840190925292505f9190816020015b6060815260200190600190039081611a24579050509050878787876001600160801b031687611a53575f611a55565b8c5b88611a60578d611a62565b5f5b60408051602080820183525f82529151611a859897969594939230929101612c78565b604051602081830303815290604052815f81518110611aa657611aa661290d565b602090810291909101810191909152604080516001600160a01b038d16928101929092525f908201819052606082015260800160405160208183030381529060405281600181518110611afb57611afb61290d565b60200260200101819052508930604051602001611b2e9291906001600160a01b0392831681529116602082015260400190565b60405160208183030381529060405281600281518110611b5057611b5061290d565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612cef565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dd46508f8383604051602001611c1f929190612d06565b604051602081830303815290604052426040518363ffffffff1660e01b8152600401611c4c929190612d7b565b5f604051808303815f87803b158015611c63575f80fd5b505af1158015611c75573d5f803e3d5ffd5b50506040516323b872dd60e01b815230600482015261dead6024820152604481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506323b872dd91506064015f604051808303815f87803b158015611ce6575f80fd5b505af1158015611cf8573d5f803e3d5ffd5b50506040516370a0823160e01b81523060048201525f92506001600160a01b038d1691506370a0823190602401602060405180830381865afa158015611d40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d649190612cef565b90508015611d8257611d826001600160a01b038c1661dead83611f5a565b505050979650505050505050565b5f80611d9c8385612db0565b90505f8460020b128015611dc05750600284900b611dba8483612df4565b60020b14155b15611dd157611dce81612e1a565b90505b611ddb8382612df4565b949350505050565b5f8083611e0a57611e056b033b2e3c9fd0803ce8000000600160c01b85611f94565b611e25565b611e2583600160c01b6b033b2e3c9fd0803ce8000000611f94565b90505f611e3182612030565b90506401000276a3811080611e5a575073fffd8963efd1fc6a506488495d951d5263988d268110155b15611e7b5760405163bd7e0d4360e01b81526004810185905260240161077f565b61082681612183565b5f80611e908484611d90565b90508360020b8160020b146115a657611ea98382612c53565b611ddb565b815f528060020b60045260245ffd5b5f826001600160a01b0316846001600160a01b03161115611edc579192915b611ddb611ef983600160601b8787036001600160a01b0316611f94565b612413565b5f826001600160a01b0316846001600160a01b03161115611f1d579192915b5f611f3f856001600160a01b0316856001600160a01b0316600160601b611f94565b9050610826611ef984838888036001600160a01b0316611f94565b611f678383836001612434565b611f8f57604051635274afe760e01b81526001600160a01b038416600482015260240161077f565b505050565b5f838302815f1985870982811083820303915050808411611fb3575f80fd5b805f03611fc5575082900490506115a6565b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f6001821161203d575090565b816001600160801b82106120565760809190911c9060401b5b600160401b821061206c5760409190911c9060201b5b64010000000082106120835760209190911c9060101b5b6201000082106120985760109190911c9060081b5b61010082106120ac5760089190911c9060041b5b601082106120bf5760049190911c9060021b5b600482106120cb5760011b5b600302600190811c908185816120e3576120e3612d9c565b048201901c905060018185816120fb576120fb612d9c565b048201901c9050600181858161211357612113612d9c565b048201901c9050600181858161212b5761212b612d9c565b048201901c9050600181858161214357612143612d9c565b048201901c9050600181858161215b5761215b612d9c565b048201901c905061217a81858161217457612174612d9c565b04821190565b90039392505050565b5f73fffd8963efd1fc6a506488495d951d51639616826401000276a21983016001600160a01b031611156121c2576121c26318521d4960e21b83612496565b640100000000600160c01b03602083901b16805f6121df826124ab565b60ff169050608081106121fa57607f810383901c9150612204565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461240457886001600160a01b03166123e982611680565b6001600160a01b031611156123fe5781612406565b80612406565b815b9998505050505050505050565b806001600160801b0381168114610788576107886393dafdf160e01b612535565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661248a57838315161561247e573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b815f526001600160a01b03811660045260245ffd5b5f8082116124b7575f80fd5b507f0706060506020500060203020504000106050205030304010505030400000000601f6f8421084210842108cc6318c6db6d54be6001600160801b03841160071b84811c6001600160401b031060061b1784811c63ffffffff1060051b1784811c61ffff1060041b1784811c60ff1060031b1793841c1c161a1790565b805f5260045ffd5b5f6020828403121561254d575f80fd5b81356001600160a01b03811681146115a6575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526125ab6020820183516001600160a01b03169052565b5f60208301516125c660408401826001600160a01b03169052565b50604083015161012060608401526125e2610140840182612563565b90506060840151601f198483030160808501526125ff8282612563565b915050608084015160a084015260a084015160c084015260c084015160e084015260e084015161263b6101008501826001600160401b03169052565b506101008401516001600160401b038116610120850152509392505050565b602080825282518282018190525f918401906040840190835b8181101561269a5783516001600160a01b0316835260209384019390920191600101612673565b509095945050505050565b5f8083601f8401126126b5575f80fd5b5081356001600160401b038111156126cb575f80fd5b6020830191508360208285010111156126e2575f80fd5b9250929050565b5f805f80604085870312156126fc575f80fd5b84356001600160401b03811115612711575f80fd5b61271d878288016126a5565b90955093505060208501356001600160401b0381111561273b575f80fd5b612747878288016126a5565b95989497509550505050565b5f8060408385031215612764575f80fd5b50508035926020909101359150565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610e0c8284612773565b5f805f805f805f6080888a0312156127da575f80fd5b87356001600160401b038111156127ef575f80fd5b6127fb8a828b016126a5565b90985096505060208801356001600160401b03811115612819575f80fd5b6128258a828b016126a5565b9096509450506040880135925060608801356001600160401b0381111561284a575f80fd5b8801601f81018a1361285a575f80fd5b80356001600160401b0381111561286f575f80fd5b8a60208260051b8401011115612883575f80fd5b602082019350809250505092959891949750929550565b600181811c908216806128ae57607f821691505b6020821081036128cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610e0c57610e0c6128e6565b634e487b7160e01b5f52603260045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0387168152856020820152608060408201525f612970608083018688612921565b8281036060840152612406818587612921565b5f8151808452602084019350602083015f5b828110156129bc5781516001600160a01b0316865260209586019590910190600101612995565b5093949350505050565b602081525f825161012060208401526129e3610140840182612563565b90506020840151601f19848303016040850152612a008282612563565b915050604084015160608401526060840151612a2760808501826001600160a01b03169052565b5060808401516001600160a01b03811660a08501525060a08401516001600160a01b03811660c08501525060c08401516001600160a01b03811660e08501525060e0840151610100840152610100840151601f19848303016101208501526108268282612983565b60c08101612a9d8285612773565b6001600160a01b039290921660a09190910152919050565b5f60208284031215612ac5575f80fd5b81518060020b81146115a6575f80fd5b5f60208284031215612ae5575f80fd5b81516001600160401b03811681146115a6575f80fd5b601f821115611f8f57805f5260205f20601f840160051c81016020851015612b205750805b601f840160051c820191505b81811015612b3f575f8155600101612b2c565b5050505050565b81516001600160401b03811115612b5f57612b5f6128d2565b612b7381612b6d845461289a565b84612afb565b6020601f821160018114612ba5575f8315612b8e5750848201515b5f19600385901b1c1916600184901b178455612b3f565b5f84815260208120601f198516915b82811015612bd45787850151825560209485019460019092019101612bb4565b5084821015612bf157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b86815260c060208201525f612c1860c0830188612563565b8281036040840152612c2a8188612563565b606084019690965250506001600160401b039283166080820152911660a0909101529392505050565b600281810b9083900b01627fffff8113627fffff1982121715610e0c57610e0c6128e6565b612c82818a612773565b8760020b60a08201528660020b60c08201528560e08201526001600160801b0385166101008201526001600160801b03841661012082015260018060a01b0383166101408201526101806101608201525f612ce1610180830184612563565b9a9950505050505050505050565b5f60208284031215612cff575f80fd5b5051919050565b604081525f612d186040830185612563565b828103602084015280845180835260208301915060208160051b840101602087015f5b83811015612d6d57601f19868403018552612d57838351612563565b6020958601959093509190910190600101612d3b565b509098975050505050505050565b604081525f612d8d6040830185612563565b90508260208301529392505050565b634e487b7160e01b5f52601260045260245ffd5b5f8160020b8360020b80612dd257634e487b7160e01b5f52601260045260245ffd5b627fffff1982145f1982141615612deb57612deb6128e6565b90059392505050565b5f8260020b8260020b028060020b9150808214612e1357612e136128e6565b5092915050565b5f8160020b627fffff198103612e3257612e326128e6565b5f19019291505056fea164736f6c634300081a000a608060405234801561000f575f80fd5b5060408051602080820183525f808352835191820190935291825290600361003783826100f1565b50600461004482826100f1565b50506018805460ff19166001179055506101ab565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061008157607f821691505b60208210810361009f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156100ec57805f5260205f20601f840160051c810160208510156100ca5750805b601f840160051c820191505b818110156100e9575f81556001016100d6565b50505b505050565b81516001600160401b0381111561010a5761010a610059565b61011e81610118845461006d565b846100a5565b6020601f821160018114610150575f83156101395750848201515b5f19600385901b1c1916600184901b1784556100e9565b5f84815260208120601f198516915b8281101561017f578785015182556020948501946001909201910161015f565b508482101561019c57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b611c3c806101b85f395ff3fe608060405234801561000f575f80fd5b506004361061024a575f3560e01c80634e7b827f11610140578063a8b9d240116100bf578063dd62ed3e11610084578063dd62ed3e14610516578063ddeae0331461054e578063de3aaf6114610561578063e172387f14610580578063f461f6e714610593578063f93bf8c2146105a6575f80fd5b8063a8b9d240146104bc578063a9059cbb146104cf578063b86b0fd0146104e2578063c45a0155146104f0578063dc4c90d314610503575f80fd5b806385a6b3ae1161010557806385a6b3ae1461047c5780639189a59e1461048557806395d89b41146104985780639f13464e146104a0578063a467db7a146104a9575f80fd5b80634e7b827f146103df5780636871e8ba146104015780636a73c4041461041457806370a082311461043f57806381041b8014610467575f80fd5b806323b872dd116101cc5780633243c791116101915780633243c791146103aa5780633757b7b2146103bd5780633c168e43146103c55780634831313b146103ce5780634e71d92d146103d7575f80fd5b806323b872dd1461034d578063277b806d1461036057806327ce0147146103755780632ad7a5c414610388578063313ce5671461039b575f80fd5b8063095ea7b311610212578063095ea7b3146102d35780630d08c74f146102f65780631582358e146102fe57806318160ddd146103115780631dec7ed514610319575f80fd5b806302d05d3f1461024e57806303822d3b1461027e57806303fd2a45146102ab57806306fdde03146102b457806308ccb24f146102c9575b5f80fd5b600854610261906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61029d61028c366004611779565b60126020525f908152604090205481565b604051908152602001610275565b61026161dead81565b6102bc6105c5565b6040516102759190611792565b61029d6228de8081565b6102e66102e13660046117c7565b610655565b6040519015158152602001610275565b6102e661066e565b600a54610261906001600160a01b031681565b60025461029d565b600b5461033490600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610275565b6102e661035b3660046117ef565b6106a9565b61037361036e366004611829565b6106cc565b005b61029d610383366004611779565b61099a565b6102e6610396366004611779565b610a28565b60405160128152602001610275565b6103736103b8366004611861565b610b39565b61029d60c881565b61029d60175481565b61029d60145481565b61029d610c10565b6102e66103ed366004611779565b60136020525f908152604090205460ff1681565b61029d61040f366004611779565b610c1a565b600c54610427906001600160801b031681565b6040516001600160801b039091168152602001610275565b61029d61044d366004611779565b6001600160a01b03165f9081526020819052604090205490565b61046f610c40565b6040516102759190611878565b61029d60155481565b600b54610261906001600160a01b031681565b6102bc610c9f565b61029d60165481565b61029d6104b73660046118c3565b610cae565b61029d6104ca366004611779565b610e71565b6102e66104dd3660046117c7565b610e9c565b61029d66038d7ea4c6800081565b600754610261906001600160a01b031681565b600954610261906001600160a01b031681565b61029d610524366004611934565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61029d61055c366004611779565b610ea9565b61029d61056f366004611779565b60116020525f908152604090205481565b61029d61058e366004611779565b610eb3565b6102e66105a1366004611779565b610f0a565b61029d6105b4366004611779565b600e6020525f908152604090205481565b6060600580546105d490611965565b80601f016020809104026020016040519081016040528092919081815260200182805461060090611965565b801561064b5780601f106106225761010080835404028352916020019161064b565b820191905f5260205f20905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b5f33610662818585610f50565b60019150505b92915050565b600b545f90600160a01b900467ffffffffffffffff16158015906106a45750600b54600160a01b900467ffffffffffffffff1642105b905090565b5f336106b6858285610f62565b6106c1858585610fde565b506001949350505050565b60185460ff16156106ef5760405162dc149f60e41b815260040160405180910390fd5b80604001355f036107135760405163c16f3a9360e01b815260040160405180910390fd5b6018805460ff1916600117905561072a818061199d565b600591610738919083611a46565b50610746602082018261199d565b600691610754919083611a46565b50600780546001600160a01b031916331790556107776080820160608301611779565b600880546001600160a01b0319166001600160a01b03929092169190911790556107a760a0820160808301611779565b600980546001600160a01b0319166001600160a01b03929092169190911790556107d760c0820160a08301611779565b600a80546001600160a01b0319166001600160a01b039290921691909117905561080760e0820160c08301611779565b600b80546001600160a01b0319166001600160a01b0392909216919091179055600160135f61083c60a0850160808601611779565b6001600160a01b0316815260208082019290925260409081015f908120805494151560ff1995861617905533815260139092528082208054841660019081179091557f2264e2d7bacabe6058f5009f42467b9be28015e7760f87409562384c94ac271c80548516821790553083529120805490921617905560e081013515610989576108cc610100820182611b00565b90505f036108ed5760405163d302698f60e01b815260040160405180910390fd5b6108fb60e082013542611b5a565b600b805467ffffffffffffffff92909216600160a01b0267ffffffffffffffff60a01b1990921691909117905561271061093a60c86040840135611b6d565b6109449190611b84565b600c80546fffffffffffffffffffffffffffffffff19166001600160801b039290921691909117905561097b610100820182611b00565b61098791600d916116f2565b505b61099733826040013561103b565b50565b6001600160a01b0381165f9081526013602052604081205460ff16156109c157505f919050565b6001600160a01b0382165f9081526010602090815260408083205491839052822054600f546109f8916109f391611b6d565b611073565b610a029190611ba3565b90505f811315610a1f57610a1a600160601b82611b84565b610a21565b5f5b9392505050565b5f80600d805480602002602001604051908101604052809291908181526020018280548015610a7e57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a60575b505050505090505f5b8151811015610b3057818181518110610aa257610aa2611bca565b6020908102919091010151604051633da1c0c360e01b81526001600160a01b03868116600483015290911690633da1c0c390602401602060405180830381865afa925050508015610b10575060408051601f3d908101601f19168201909252610b0d91810190611bde565b60015b15610b28578015610b2657506001949350505050565b505b600101610a87565b505f9392505050565b805f03610b435750565b60145466038d7ea4c68000811015610b6e5760405163a16645af60e01b815260040160405180910390fd5b600a54610b86906001600160a01b03163330856110a3565b5f81610b96600160601b85611b6d565b610ba09190611b84565b905080600f5f828254610bb39190611b5a565b925050819055508260155f828254610bcb9190611b5a565b9091555050604080518481526020810183905233917fd2f6b4ff9fc44f9f09c0bf947cfb196c17c66213ea2a7d59a42bab3428ccd94e910160405180910390a2505050565b5f6106a4336110d9565b6001600160a01b0381165f90815260126020526040812054610668906228de8090611b5a565b6060600d80548060200260200160405190810160405280929190818152602001828054801561064b57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610c78575050505050905090565b6060600680546105d490611965565b600b545f906001600160a01b03163314610cdb57604051630982ebb360e01b815260040160405180910390fd5b5f5b82811015610e6a575f848483818110610cf857610cf8611bca565b9050602002016020810190610d0d9190611779565b90505f610d1982610e71565b9050805f03610d29575050610e62565b6001600160a01b0382165f908152601260205260409020541580610d545750610d5182610c1a565b42105b15610d925781610d6383610c1a565b6040516302b0d36f60e61b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b6001600160a01b0382165f9081526011602052604081208054839290610db9908490611b5a565b925050819055508060175f828254610dd19190611b5a565b90915550506001600160a01b0382165f908152601260205260409020429055610dfa8185611b5a565b600b54600a54919550610e1a916001600160a01b039081169116836111bb565b600b546040518281526001600160a01b03918216918416907f8fdcb6d96dc9ffee0f7af16253290d5a13adb41861202b8c88c8ab57b1ba76d19060200160405180910390a350505b600101610cdd565b5092915050565b6001600160a01b0381165f90815260116020526040812054610e928361099a565b6106689190611bfd565b5f33610662818585610fde565b5f610668826110d9565b5f610ebc61066e565b610ec857505f19919050565b6001600160a01b0382165f908152600e6020526040902054600c546001600160801b0316811015610a1f57600c54610a1a9082906001600160801b0316611bfd565b6001600160a01b0381165f9081526012602052604081205415801590610f385750610f3482610c1a565b4210155b801561066857505f610f4983610e71565b1192915050565b610f5d83838360016111f0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610fd85781811015610fca57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610d89565b610fd884848484035f6111f0565b50505050565b6001600160a01b03831661100757604051634b637e8f60e11b81525f6004820152602401610d89565b6001600160a01b0382166110305760405163ec442f0560e01b81525f6004820152602401610d89565b610f5d8383836112c2565b6001600160a01b0382166110645760405163ec442f0560e01b81525f6004820152602401610d89565b61106f5f83836112c2565b5050565b5f6001600160ff1b0382111561109f5760405163123baf0360e11b815260048101839052602401610d89565b5090565b6110b18484848460016114fd565b610fd857604051635274afe760e01b81526001600160a01b0385166004820152602401610d89565b5f6110e382610e71565b9050805f03611105576040516312d37ee560e31b815260040160405180910390fd5b6001600160a01b0382165f908152601160205260408120805483929061112c908490611b5a565b925050819055508060165f8282546111449190611b5a565b90915550506001600160a01b038083165f908152601260205260409020429055600a54611173911683836111bb565b816001600160a01b03167f16b8533c95f66ab8c192c98ddcf5031bcb3ee6f4022988bdadd57d3422da3073826040516111ae91815260200190565b60405180910390a2919050565b6111c8838383600161156a565b610f5d57604051635274afe760e01b81526001600160a01b0384166004820152602401610d89565b6001600160a01b0384166112195760405163e602df0560e01b81525f6004820152602401610d89565b6001600160a01b03831661124257604051634a1406b160e11b81525f6004820152602401610d89565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610fd857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112b491815260200190565b60405180910390a350505050565b6009546001600160a01b0384811691161480156112e257506112e261066e565b156113a8576112f082610a28565b611318576040516301dc97db60e51b81526001600160a01b0383166004820152602401610d89565b6001600160a01b0382165f908152600e602052604081205461133b908390611b5a565b600c549091506001600160801b031681111561138f57600c546040516371f270e960e11b81526001600160a01b0385166004820152602481018390526001600160801b039091166044820152606401610d89565b6001600160a01b0383165f908152600e60205260409020555b6113b38383836115cc565b600f546001600160a01b038416158015906113e657506001600160a01b0384165f9081526013602052604090205460ff16155b1561143c578160145f8282546113fc9190611bfd565b9091555061140f90506109f38383611b6d565b6001600160a01b0385165f9081526010602052604081208054909190611436908490611ba3565b90915550505b6001600160a01b0383161580159061146c57506001600160a01b0383165f9081526013602052604090205460ff16155b15610fd8578160145f8282546114829190611b5a565b9091555061149590506109f38383611b6d565b6001600160a01b0384165f90815260106020526040812080549091906114bc908490611c10565b90915550506001600160a01b0383165f908152601260205260408120549003610fd85750506001600160a01b03165f90815260126020526040902042905550565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661155957838315161561154d573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f511483166115c05783831516156115b4573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b6001600160a01b0383166115f6578060025f8282546115eb9190611b5a565b909155506116669050565b6001600160a01b0383165f90815260208190526040902054818110156116485760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610d89565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216611682576002805482900390556116a0565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116e591815260200190565b60405180910390a3505050565b828054828255905f5260205f20908101928215611743579160200282015b828111156117435781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611710565b5061109f9291505b8082111561109f575f815560010161174b565b80356001600160a01b0381168114611774575f80fd5b919050565b5f60208284031215611789575f80fd5b610a218261175e565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f80604083850312156117d8575f80fd5b6117e18361175e565b946020939093013593505050565b5f805f60608486031215611801575f80fd5b61180a8461175e565b92506118186020850161175e565b929592945050506040919091013590565b5f60208284031215611839575f80fd5b813567ffffffffffffffff81111561184f575f80fd5b82016101208185031215610a21575f80fd5b5f60208284031215611871575f80fd5b5035919050565b602080825282518282018190525f918401906040840190835b818110156118b85783516001600160a01b0316835260209384019390920191600101611891565b509095945050505050565b5f80602083850312156118d4575f80fd5b823567ffffffffffffffff8111156118ea575f80fd5b8301601f810185136118fa575f80fd5b803567ffffffffffffffff811115611910575f80fd5b8560208260051b8401011115611924575f80fd5b6020919091019590945092505050565b5f8060408385031215611945575f80fd5b61194e8361175e565b915061195c6020840161175e565b90509250929050565b600181811c9082168061197957607f821691505b60208210810361199757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f808335601e198436030181126119b2575f80fd5b83018035915067ffffffffffffffff8211156119cc575f80fd5b6020019150368190038213156119e0575f80fd5b9250929050565b634e487b7160e01b5f52604160045260245ffd5b601f821115610f5d57805f5260205f20601f840160051c81016020851015611a205750805b601f840160051c820191505b81811015611a3f575f8155600101611a2c565b5050505050565b67ffffffffffffffff831115611a5e57611a5e6119e7565b611a7283611a6c8354611965565b836119fb565b5f601f841160018114611aa3575f8515611a8c5750838201355b5f19600387901b1c1916600186901b178355611a3f565b5f83815260208120601f198716915b82811015611ad25786850135825560209485019460019092019101611ab2565b5086821015611aee575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f808335601e19843603018112611b15575f80fd5b83018035915067ffffffffffffffff821115611b2f575f80fd5b6020019150600581901b36038213156119e0575f80fd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561066857610668611b46565b808202811582820484141761066857610668611b46565b5f82611b9e57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018281125f831280158216821582161715611bc257611bc2611b46565b505092915050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611bee575f80fd5b81518015158114610a21575f80fd5b8181038181111561066857610668611b46565b8181035f831280158383131683831282161715610e6a57610e6a611b4656fea164736f6c634300081a000a0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd90000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095100000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa700000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf000000000000000000000000d88dcacf4e77b7ff2778aee824639d30cb1640cc0000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000005df06844b60d837b42500000000000000000000000000000000000000000005bbcc5d319c932665ed090000000000000000000000003c74b2e6818d622d0867e771dba2c264e52fb0b6000000000000000000000000b7d64608e030b49236b1f791f332f967c2c7f69a","recompiledBytecode":"0x610200604052348015610010575f80fd5b50604051614fed380380614fed83398101604081905261002f916101ca565b6001600160a01b038b16158061004c57506001600160a01b038a16155b8061005e57506001600160a01b038916155b8061007057506001600160a01b038816155b8061008257506001600160a01b038716155b156100a05760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03808c166080528a811660a05289811660c05288811660e0528716610100528315806100d1575082155b156100ef57604051636440abcf60e11b815260040160405180910390fd5b6001600160a01b038216158061010c57506001600160a01b038116155b1561012a5760405163d92e233d60e01b815260040160405180910390fd5b62ffffff861661012052600285900b610140526101808490526101a08390526001600160a01b038083166101c05281166101605260405161016a906101a2565b604051809103905ff080158015610183573d5f803e3d5ffd5b506001600160a01b03166101e052506102949950505050505050505050565b611df4806131f983390190565b80516001600160a01b03811681146101c5575f80fd5b919050565b5f805f805f805f805f805f6101608c8e0312156101e5575f80fd5b6101ee8c6101af565b9a506101fc60208d016101af565b995061020a60408d016101af565b985061021860608d016101af565b975061022660808d016101af565b965060a08c015162ffffff8116811461023d575f80fd5b8096505060c08c01518060020b8114610254575f80fd5b60e08d01516101008e0151919650945092506102736101208d016101af565b91506102826101408d016101af565b90509295989b509295989b9093969950565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e051612e486103b15f395f81816102b40152610c2701525f818161053a0152610b9501525f81816103420152610bcb01525f81816102020152610b5f01525f81816102490152610d5101525f818161046601528181610f3301526115b201525f818161038f0152610f0801525f81816102db015281816103f60152610f5c01525f818161049d015261051301525f81816103d201528181610fab015281816119b601528181611b5d01528181611bdf0152611c9b01525f81816104d90152610d0101525f81816103660152818161043f01528181610d2901528181610e5001528181610e970152610ed80152612e485ff3fe608060405234801561000f575f80fd5b50600436106101bb575f3560e01c80635a6c72d0116100f3578063c415b95c11610093578063df517ddf1161006e578063df517ddf146104fb578063f108e2251461050e578063f700f06e14610535578063fb1ace181461055c575f80fd5b8063c415b95c1461049b578063d5c71275146104c1578063dc4c90d3146104d4575f80fd5b80637f5a7c7b116100ce5780637f5a7c7b146103f45780638652edf91461041a578063bdf3c4ae1461043a578063bf11b4d514610461575f80fd5b80635a6c72d01461038a57806378a89567146103c5578063791b98bc146103cd575f80fd5b80632f2f2d561161015e5780634690b68d116101395780634690b68d146102fd57806347868b32146103105780634aa445341461033d5780634eec9e0914610364575f80fd5b80632f2f2d561461029c5780632f3a3d5d146102af57806332a3cf96146102d6575f80fd5b80631f69565f116101995780631f69565f14610224578063223a980b1461024457806325637fd61461026b5780632a5c792a14610287575f80fd5b806303bdd5cf146101bf57806303fd2a45146101dc57806311b1868f146101fd575b5f80fd5b6101c962093a8081565b6040519081526020015b60405180910390f35b6101e561dead81565b6040516001600160a01b0390911681526020016101d3565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b61023761023236600461253d565b61056f565b6040516101d39190612591565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b5f546102779060ff1681565b60405190151581526020016101d3565b61028f61078d565b6040516101d3919061265a565b6101e56102aa3660046126e9565b6107ed565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b61028f61030b366004612753565b61082f565b61027761031e36600461253d565b6001600160a01b039081165f9081526001602052604090205416151590565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6103b17f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff90911681526020016101d3565b6004546101c9565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61042d61042836600461253d565b61092b565b6040516101d391906127b6565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6104887f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b81526020016101d3565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61028f6104cf36600461253d565b6109ff565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e56105093660046127c4565b610a72565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101c96b033b2e3c9fd0803ce800000081565b6040805161012080820183525f80835260208084018290526060848601819052808501526080840182905260a0840182905260c0840182905260e0840182905261010084018290526001600160a01b038681168352600180835292869020865194850187528054821685529283015416908301526002810180549394929391928401916105fb9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106279061289a565b80156106725780601f1061064957610100808354040283529160200191610672565b820191905f5260205f20905b81548152906001019060200180831161065557829003601f168201915b5050505050815260200160038201805461068b9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106b79061289a565b80156107025780601f106106d957610100808354040283529160200191610702565b820191905f5260205f20905b8154815290600101906020018083116106e557829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460608201526007909101546001600160401b038082166080840152600160401b9091041660a09091015280519091506001600160a01b0316610788576040516340d1d8df60e11b81526001600160a01b03831660048201526024015b60405180910390fd5b919050565b606060048054806020026020016040519081016040528092919081815260200182805480156107e357602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107c5575b5050505050905090565b5f610826858585858580604051908082528060200260200182016040528015610820578160200160208202803683370190505b50610b19565b95945050505050565b6004546060908284118061084257508083115b1561086a57604051632457cde760e01b8152600481018590526024810182905260440161077f565b61087484846128fa565b6001600160401b0381111561088b5761088b6128d2565b6040519080825280602002602001820160405280156108b4578160200160208202803683370190505b509150835b8381101561092357600481815481106108d4576108d461290d565b5f918252602090912001546001600160a01b0316836108f387846128fa565b815181106109035761090361290d565b6001600160a01b03909216602092830291909101909101526001016108b9565b505092915050565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506001600160a01b038082165f90815260026020818152604092839020835160a0810185528154861680825260018301548088169483019490945262ffffff600160a01b85041695820195909552600160b81b909204830b60608301529091015490921660808301521580156109d6575060208101516001600160a01b0316155b15610788576040516340d1d8df60e11b81526001600160a01b038316600482015260240161077f565b6001600160a01b0381165f90815260036020908152604091829020805483518184028101840190945280845260609392830182828015610a6657602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a48575b50505050509050919050565b5f831580610a82575062093a8084115b15610aac57604051630f4a61d160e31b81526004810185905262093a80602482015260440161077f565b5f829003610acd5760405163d302698f60e01b815260040160405180910390fd5b610b0d88888888888888808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610b1992505050565b98975050505050505050565b5f858103610b3a57604051632ef1310560e01b815260040160405180910390fd5b5f849003610b5b57604051630cc613fb60e11b815260040160405180910390fd5b5f547f00000000000000000000000000000000000000000000000000000000000000009060ff16158015610bb75750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b15610beb57505f805460ff191660011790557f00000000000000000000000000000000000000000000000000000000000000005b6004546040515f91610c0a913391908c908c908c908c90602001612949565b604051602081830303815290604052805190602001209050610c4c7f000000000000000000000000000000000000000000000000000000000000000082610dfd565b9250826001600160a01b031663277b806d6040518061012001604052808c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c90819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce80000006020820152336040808301919091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660608401527f0000000000000000000000000000000000000000000000000000000000000000811660808401527f00000000000000000000000000000000000000000000000000000000000000001660a083015260c082018a905260e0918201899052519083901b6001600160e01b0319168152610da391906004016129c6565b5f604051808303815f87803b158015610dba575f80fd5b505af1158015610dcc573d5f803e3d5ffd5b505050505f80610ddc8585610e12565b91509150610def858c8c8c8c8787611085565b505050509695505050505050565b5f610e0983835f611511565b90505b92915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525f806b033b2e3c9fd0803ce800000090505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161090506040518060a0016040528082610ebb577f0000000000000000000000000000000000000000000000000000000000000000610ebd565b875b6001600160a01b0316815260200182610ed65787610ef8565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b031681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000060020b81526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681525093505f805f610f9684896115ad565b91945092509050627fffff6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f702040589610fda85611680565b6040518363ffffffff1660e01b8152600401610ff7929190612a8f565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110379190612ab5565b60020b0361105857604051633b47c30b60e21b815260040160405180910390fd5b5f61106585858589611938565b90506110768a878a8787868b6119a6565b96505050505050509250929050565b5f604051806101200160405280896001600160a01b03168152602001336001600160a01b0316815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8901819004810282018101909252878152918101919088908890819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce800000060208201526040016111428560a0902090565b8152602001838152602001426001600160401b03168152602001896001600160a01b0316631dec7ed56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111bc9190612ad5565b6001600160401b031681525090508260025f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160146101000a81548162ffffff021916908362ffffff16021790555060608201518160010160176101000a81548162ffffff021916908360020b62ffffff1602179055506080820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050508060015f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201908161134f9190612b46565b50606082015160038201906113649082612b46565b506080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015f6101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160070160086101000a8154816001600160401b0302191690836001600160401b03160217905550905050600488908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555060035f336001600160a01b03166001600160a01b031681526020019081526020015f2088908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055508060a0015181602001516001600160a01b0316825f01516001600160a01b03167f11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df8460c001518560400151866060015187608001518861010001518960e001516040516114ff96959493929190612c00565b60405180910390a45050505050505050565b5f8147101561153c5760405163cf47918160e01b81524760048201526024810183905260440161077f565b763d602d80600a3d3981f3363d3d373d3d3d363d730000008460601b60e81c175f526e5af43d82803e903d91602b57fd5bf38460781b17602052826037600984f590506001600160a01b0381166115a65760405163b06ebf3d60e01b815260040160405180910390fd5b9392505050565b5f80807f0000000000000000000000000000000000000000000000000000000000000000816115e0620d89e71983611d90565b9050620d89e719600282900b12156115ff576115fc8282612c53565b90505b5f61160d620d89e884611d90565b90505f61161a8989611de3565b905088156116395761162c8185611d90565b965081955086945061164c565b8296506116468185611e84565b95508594505b8560020b8760020b126116755760405163bd7e0d4360e01b81526004810189905260240161077f565b505050509250925092565b60020b5f60ff82901d80830118620d89e88111156116a9576116a96345c3193d60e11b84611eae565b7001fffcb933bd6fad37aa2d162d1a5940016001821602600160801b1860028216156116e5576ffff97272373d413259a46990580e213a0260801c5b6004821615611704576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615611723576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615611742576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615611761576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615611780576fff2ea16466c96a3843ec78b326b528610260801c5b608082161561179f576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156117bf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156117df576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156117ff576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161561181f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b61100082161561183f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b61200082161561185f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b61400082161561187f576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161561189f576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156118c0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b620200008216156118e0576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156118ff576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561191c576b048a170391f7dc42444e8fa20260801c5b5f841315611928575f19045b63ffffffff0160201c9392505050565b5f8061194385611680565b90505f61194f85611680565b90508661196657611961828286611ebd565b611971565b611971828286611efe565b9250826001600160801b03165f0361199c5760405163f564880560e01b815260040160405180910390fd5b5050949350505050565b5f6119db6001600160a01b0389167f000000000000000000000000000000000000000000000000000000000000000089611f5a565b604051600160f91b6020820152600b60f81b6021820152600560fa1b60228201525f9060230160408051808303601f1901815260038084526080840190925292505f9190816020015b6060815260200190600190039081611a24579050509050878787876001600160801b031687611a53575f611a55565b8c5b88611a60578d611a62565b5f5b60408051602080820183525f82529151611a859897969594939230929101612c78565b604051602081830303815290604052815f81518110611aa657611aa661290d565b602090810291909101810191909152604080516001600160a01b038d16928101929092525f908201819052606082015260800160405160208183030381529060405281600181518110611afb57611afb61290d565b60200260200101819052508930604051602001611b2e9291906001600160a01b0392831681529116602082015260400190565b60405160208183030381529060405281600281518110611b5057611b5061290d565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612cef565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dd46508f8383604051602001611c1f929190612d06565b604051602081830303815290604052426040518363ffffffff1660e01b8152600401611c4c929190612d7b565b5f604051808303815f87803b158015611c63575f80fd5b505af1158015611c75573d5f803e3d5ffd5b50506040516323b872dd60e01b815230600482015261dead6024820152604481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506323b872dd91506064015f604051808303815f87803b158015611ce6575f80fd5b505af1158015611cf8573d5f803e3d5ffd5b50506040516370a0823160e01b81523060048201525f92506001600160a01b038d1691506370a0823190602401602060405180830381865afa158015611d40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d649190612cef565b90508015611d8257611d826001600160a01b038c1661dead83611f5a565b505050979650505050505050565b5f80611d9c8385612db0565b90505f8460020b128015611dc05750600284900b611dba8483612df4565b60020b14155b15611dd157611dce81612e1a565b90505b611ddb8382612df4565b949350505050565b5f8083611e0a57611e056b033b2e3c9fd0803ce8000000600160c01b85611f94565b611e25565b611e2583600160c01b6b033b2e3c9fd0803ce8000000611f94565b90505f611e3182612030565b90506401000276a3811080611e5a575073fffd8963efd1fc6a506488495d951d5263988d268110155b15611e7b5760405163bd7e0d4360e01b81526004810185905260240161077f565b61082681612183565b5f80611e908484611d90565b90508360020b8160020b146115a657611ea98382612c53565b611ddb565b815f528060020b60045260245ffd5b5f826001600160a01b0316846001600160a01b03161115611edc579192915b611ddb611ef983600160601b8787036001600160a01b0316611f94565b612413565b5f826001600160a01b0316846001600160a01b03161115611f1d579192915b5f611f3f856001600160a01b0316856001600160a01b0316600160601b611f94565b9050610826611ef984838888036001600160a01b0316611f94565b611f678383836001612434565b611f8f57604051635274afe760e01b81526001600160a01b038416600482015260240161077f565b505050565b5f838302815f1985870982811083820303915050808411611fb3575f80fd5b805f03611fc5575082900490506115a6565b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f6001821161203d575090565b816001600160801b82106120565760809190911c9060401b5b600160401b821061206c5760409190911c9060201b5b64010000000082106120835760209190911c9060101b5b6201000082106120985760109190911c9060081b5b61010082106120ac5760089190911c9060041b5b601082106120bf5760049190911c9060021b5b600482106120cb5760011b5b600302600190811c908185816120e3576120e3612d9c565b048201901c905060018185816120fb576120fb612d9c565b048201901c9050600181858161211357612113612d9c565b048201901c9050600181858161212b5761212b612d9c565b048201901c9050600181858161214357612143612d9c565b048201901c9050600181858161215b5761215b612d9c565b048201901c905061217a81858161217457612174612d9c565b04821190565b90039392505050565b5f73fffd8963efd1fc6a506488495d951d51639616826401000276a21983016001600160a01b031611156121c2576121c26318521d4960e21b83612496565b640100000000600160c01b03602083901b16805f6121df826124ab565b60ff169050608081106121fa57607f810383901c9150612204565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461240457886001600160a01b03166123e982611680565b6001600160a01b031611156123fe5781612406565b80612406565b815b9998505050505050505050565b806001600160801b0381168114610788576107886393dafdf160e01b612535565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661248a57838315161561247e573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b815f526001600160a01b03811660045260245ffd5b5f8082116124b7575f80fd5b507f0706060506020500060203020504000106050205030304010505030400000000601f6f8421084210842108cc6318c6db6d54be6001600160801b03841160071b84811c6001600160401b031060061b1784811c63ffffffff1060051b1784811c61ffff1060041b1784811c60ff1060031b1793841c1c161a1790565b805f5260045ffd5b5f6020828403121561254d575f80fd5b81356001600160a01b03811681146115a6575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526125ab6020820183516001600160a01b03169052565b5f60208301516125c660408401826001600160a01b03169052565b50604083015161012060608401526125e2610140840182612563565b90506060840151601f198483030160808501526125ff8282612563565b915050608084015160a084015260a084015160c084015260c084015160e084015260e084015161263b6101008501826001600160401b03169052565b506101008401516001600160401b038116610120850152509392505050565b602080825282518282018190525f918401906040840190835b8181101561269a5783516001600160a01b0316835260209384019390920191600101612673565b509095945050505050565b5f8083601f8401126126b5575f80fd5b5081356001600160401b038111156126cb575f80fd5b6020830191508360208285010111156126e2575f80fd5b9250929050565b5f805f80604085870312156126fc575f80fd5b84356001600160401b03811115612711575f80fd5b61271d878288016126a5565b90955093505060208501356001600160401b0381111561273b575f80fd5b612747878288016126a5565b95989497509550505050565b5f8060408385031215612764575f80fd5b50508035926020909101359150565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610e0c8284612773565b5f805f805f805f6080888a0312156127da575f80fd5b87356001600160401b038111156127ef575f80fd5b6127fb8a828b016126a5565b90985096505060208801356001600160401b03811115612819575f80fd5b6128258a828b016126a5565b9096509450506040880135925060608801356001600160401b0381111561284a575f80fd5b8801601f81018a1361285a575f80fd5b80356001600160401b0381111561286f575f80fd5b8a60208260051b8401011115612883575f80fd5b602082019350809250505092959891949750929550565b600181811c908216806128ae57607f821691505b6020821081036128cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610e0c57610e0c6128e6565b634e487b7160e01b5f52603260045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0387168152856020820152608060408201525f612970608083018688612921565b8281036060840152612406818587612921565b5f8151808452602084019350602083015f5b828110156129bc5781516001600160a01b0316865260209586019590910190600101612995565b5093949350505050565b602081525f825161012060208401526129e3610140840182612563565b90506020840151601f19848303016040850152612a008282612563565b915050604084015160608401526060840151612a2760808501826001600160a01b03169052565b5060808401516001600160a01b03811660a08501525060a08401516001600160a01b03811660c08501525060c08401516001600160a01b03811660e08501525060e0840151610100840152610100840151601f19848303016101208501526108268282612983565b60c08101612a9d8285612773565b6001600160a01b039290921660a09190910152919050565b5f60208284031215612ac5575f80fd5b81518060020b81146115a6575f80fd5b5f60208284031215612ae5575f80fd5b81516001600160401b03811681146115a6575f80fd5b601f821115611f8f57805f5260205f20601f840160051c81016020851015612b205750805b601f840160051c820191505b81811015612b3f575f8155600101612b2c565b5050505050565b81516001600160401b03811115612b5f57612b5f6128d2565b612b7381612b6d845461289a565b84612afb565b6020601f821160018114612ba5575f8315612b8e5750848201515b5f19600385901b1c1916600184901b178455612b3f565b5f84815260208120601f198516915b82811015612bd45787850151825560209485019460019092019101612bb4565b5084821015612bf157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b86815260c060208201525f612c1860c0830188612563565b8281036040840152612c2a8188612563565b606084019690965250506001600160401b039283166080820152911660a0909101529392505050565b600281810b9083900b01627fffff8113627fffff1982121715610e0c57610e0c6128e6565b612c82818a612773565b8760020b60a08201528660020b60c08201528560e08201526001600160801b0385166101008201526001600160801b03841661012082015260018060a01b0383166101408201526101806101608201525f612ce1610180830184612563565b9a9950505050505050505050565b5f60208284031215612cff575f80fd5b5051919050565b604081525f612d186040830185612563565b828103602084015280845180835260208301915060208160051b840101602087015f5b83811015612d6d57601f19868403018552612d57838351612563565b6020958601959093509190910190600101612d3b565b509098975050505050505050565b604081525f612d8d6040830185612563565b90508260208301529392505050565b634e487b7160e01b5f52601260045260245ffd5b5f8160020b8360020b80612dd257634e487b7160e01b5f52601260045260245ffd5b627fffff1982145f1982141615612deb57612deb6128e6565b90059392505050565b5f8260020b8260020b028060020b9150808214612e1357612e136128e6565b5092915050565b5f8160020b627fffff198103612e3257612e326128e6565b5f19019291505056fea164736f6c634300081a000a608060405234801561000f575f80fd5b5060408051602080820183525f808352835191820190935291825290600361003783826100f1565b50600461004482826100f1565b50506018805460ff19166001179055506101ab565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061008157607f821691505b60208210810361009f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156100ec57805f5260205f20601f840160051c810160208510156100ca5750805b601f840160051c820191505b818110156100e9575f81556001016100d6565b50505b505050565b81516001600160401b0381111561010a5761010a610059565b61011e81610118845461006d565b846100a5565b6020601f821160018114610150575f83156101395750848201515b5f19600385901b1c1916600184901b1784556100e9565b5f84815260208120601f198516915b8281101561017f578785015182556020948501946001909201910161015f565b508482101561019c57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b611c3c806101b85f395ff3fe608060405234801561000f575f80fd5b506004361061024a575f3560e01c80634e7b827f11610140578063a8b9d240116100bf578063dd62ed3e11610084578063dd62ed3e14610516578063ddeae0331461054e578063de3aaf6114610561578063e172387f14610580578063f461f6e714610593578063f93bf8c2146105a6575f80fd5b8063a8b9d240146104bc578063a9059cbb146104cf578063b86b0fd0146104e2578063c45a0155146104f0578063dc4c90d314610503575f80fd5b806385a6b3ae1161010557806385a6b3ae1461047c5780639189a59e1461048557806395d89b41146104985780639f13464e146104a0578063a467db7a146104a9575f80fd5b80634e7b827f146103df5780636871e8ba146104015780636a73c4041461041457806370a082311461043f57806381041b8014610467575f80fd5b806323b872dd116101cc5780633243c791116101915780633243c791146103aa5780633757b7b2146103bd5780633c168e43146103c55780634831313b146103ce5780634e71d92d146103d7575f80fd5b806323b872dd1461034d578063277b806d1461036057806327ce0147146103755780632ad7a5c414610388578063313ce5671461039b575f80fd5b8063095ea7b311610212578063095ea7b3146102d35780630d08c74f146102f65780631582358e146102fe57806318160ddd146103115780631dec7ed514610319575f80fd5b806302d05d3f1461024e57806303822d3b1461027e57806303fd2a45146102ab57806306fdde03146102b457806308ccb24f146102c9575b5f80fd5b600854610261906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61029d61028c366004611779565b60126020525f908152604090205481565b604051908152602001610275565b61026161dead81565b6102bc6105c5565b6040516102759190611792565b61029d6228de8081565b6102e66102e13660046117c7565b610655565b6040519015158152602001610275565b6102e661066e565b600a54610261906001600160a01b031681565b60025461029d565b600b5461033490600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610275565b6102e661035b3660046117ef565b6106a9565b61037361036e366004611829565b6106cc565b005b61029d610383366004611779565b61099a565b6102e6610396366004611779565b610a28565b60405160128152602001610275565b6103736103b8366004611861565b610b39565b61029d60c881565b61029d60175481565b61029d60145481565b61029d610c10565b6102e66103ed366004611779565b60136020525f908152604090205460ff1681565b61029d61040f366004611779565b610c1a565b600c54610427906001600160801b031681565b6040516001600160801b039091168152602001610275565b61029d61044d366004611779565b6001600160a01b03165f9081526020819052604090205490565b61046f610c40565b6040516102759190611878565b61029d60155481565b600b54610261906001600160a01b031681565b6102bc610c9f565b61029d60165481565b61029d6104b73660046118c3565b610cae565b61029d6104ca366004611779565b610e71565b6102e66104dd3660046117c7565b610e9c565b61029d66038d7ea4c6800081565b600754610261906001600160a01b031681565b600954610261906001600160a01b031681565b61029d610524366004611934565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61029d61055c366004611779565b610ea9565b61029d61056f366004611779565b60116020525f908152604090205481565b61029d61058e366004611779565b610eb3565b6102e66105a1366004611779565b610f0a565b61029d6105b4366004611779565b600e6020525f908152604090205481565b6060600580546105d490611965565b80601f016020809104026020016040519081016040528092919081815260200182805461060090611965565b801561064b5780601f106106225761010080835404028352916020019161064b565b820191905f5260205f20905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b5f33610662818585610f50565b60019150505b92915050565b600b545f90600160a01b900467ffffffffffffffff16158015906106a45750600b54600160a01b900467ffffffffffffffff1642105b905090565b5f336106b6858285610f62565b6106c1858585610fde565b506001949350505050565b60185460ff16156106ef5760405162dc149f60e41b815260040160405180910390fd5b80604001355f036107135760405163c16f3a9360e01b815260040160405180910390fd5b6018805460ff1916600117905561072a818061199d565b600591610738919083611a46565b50610746602082018261199d565b600691610754919083611a46565b50600780546001600160a01b031916331790556107776080820160608301611779565b600880546001600160a01b0319166001600160a01b03929092169190911790556107a760a0820160808301611779565b600980546001600160a01b0319166001600160a01b03929092169190911790556107d760c0820160a08301611779565b600a80546001600160a01b0319166001600160a01b039290921691909117905561080760e0820160c08301611779565b600b80546001600160a01b0319166001600160a01b0392909216919091179055600160135f61083c60a0850160808601611779565b6001600160a01b0316815260208082019290925260409081015f908120805494151560ff1995861617905533815260139092528082208054841660019081179091557f2264e2d7bacabe6058f5009f42467b9be28015e7760f87409562384c94ac271c80548516821790553083529120805490921617905560e081013515610989576108cc610100820182611b00565b90505f036108ed5760405163d302698f60e01b815260040160405180910390fd5b6108fb60e082013542611b5a565b600b805467ffffffffffffffff92909216600160a01b0267ffffffffffffffff60a01b1990921691909117905561271061093a60c86040840135611b6d565b6109449190611b84565b600c80546fffffffffffffffffffffffffffffffff19166001600160801b039290921691909117905561097b610100820182611b00565b61098791600d916116f2565b505b61099733826040013561103b565b50565b6001600160a01b0381165f9081526013602052604081205460ff16156109c157505f919050565b6001600160a01b0382165f9081526010602090815260408083205491839052822054600f546109f8916109f391611b6d565b611073565b610a029190611ba3565b90505f811315610a1f57610a1a600160601b82611b84565b610a21565b5f5b9392505050565b5f80600d805480602002602001604051908101604052809291908181526020018280548015610a7e57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a60575b505050505090505f5b8151811015610b3057818181518110610aa257610aa2611bca565b6020908102919091010151604051633da1c0c360e01b81526001600160a01b03868116600483015290911690633da1c0c390602401602060405180830381865afa925050508015610b10575060408051601f3d908101601f19168201909252610b0d91810190611bde565b60015b15610b28578015610b2657506001949350505050565b505b600101610a87565b505f9392505050565b805f03610b435750565b60145466038d7ea4c68000811015610b6e5760405163a16645af60e01b815260040160405180910390fd5b600a54610b86906001600160a01b03163330856110a3565b5f81610b96600160601b85611b6d565b610ba09190611b84565b905080600f5f828254610bb39190611b5a565b925050819055508260155f828254610bcb9190611b5a565b9091555050604080518481526020810183905233917fd2f6b4ff9fc44f9f09c0bf947cfb196c17c66213ea2a7d59a42bab3428ccd94e910160405180910390a2505050565b5f6106a4336110d9565b6001600160a01b0381165f90815260126020526040812054610668906228de8090611b5a565b6060600d80548060200260200160405190810160405280929190818152602001828054801561064b57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610c78575050505050905090565b6060600680546105d490611965565b600b545f906001600160a01b03163314610cdb57604051630982ebb360e01b815260040160405180910390fd5b5f5b82811015610e6a575f848483818110610cf857610cf8611bca565b9050602002016020810190610d0d9190611779565b90505f610d1982610e71565b9050805f03610d29575050610e62565b6001600160a01b0382165f908152601260205260409020541580610d545750610d5182610c1a565b42105b15610d925781610d6383610c1a565b6040516302b0d36f60e61b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b6001600160a01b0382165f9081526011602052604081208054839290610db9908490611b5a565b925050819055508060175f828254610dd19190611b5a565b90915550506001600160a01b0382165f908152601260205260409020429055610dfa8185611b5a565b600b54600a54919550610e1a916001600160a01b039081169116836111bb565b600b546040518281526001600160a01b03918216918416907f8fdcb6d96dc9ffee0f7af16253290d5a13adb41861202b8c88c8ab57b1ba76d19060200160405180910390a350505b600101610cdd565b5092915050565b6001600160a01b0381165f90815260116020526040812054610e928361099a565b6106689190611bfd565b5f33610662818585610fde565b5f610668826110d9565b5f610ebc61066e565b610ec857505f19919050565b6001600160a01b0382165f908152600e6020526040902054600c546001600160801b0316811015610a1f57600c54610a1a9082906001600160801b0316611bfd565b6001600160a01b0381165f9081526012602052604081205415801590610f385750610f3482610c1a565b4210155b801561066857505f610f4983610e71565b1192915050565b610f5d83838360016111f0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610fd85781811015610fca57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610d89565b610fd884848484035f6111f0565b50505050565b6001600160a01b03831661100757604051634b637e8f60e11b81525f6004820152602401610d89565b6001600160a01b0382166110305760405163ec442f0560e01b81525f6004820152602401610d89565b610f5d8383836112c2565b6001600160a01b0382166110645760405163ec442f0560e01b81525f6004820152602401610d89565b61106f5f83836112c2565b5050565b5f6001600160ff1b0382111561109f5760405163123baf0360e11b815260048101839052602401610d89565b5090565b6110b18484848460016114fd565b610fd857604051635274afe760e01b81526001600160a01b0385166004820152602401610d89565b5f6110e382610e71565b9050805f03611105576040516312d37ee560e31b815260040160405180910390fd5b6001600160a01b0382165f908152601160205260408120805483929061112c908490611b5a565b925050819055508060165f8282546111449190611b5a565b90915550506001600160a01b038083165f908152601260205260409020429055600a54611173911683836111bb565b816001600160a01b03167f16b8533c95f66ab8c192c98ddcf5031bcb3ee6f4022988bdadd57d3422da3073826040516111ae91815260200190565b60405180910390a2919050565b6111c8838383600161156a565b610f5d57604051635274afe760e01b81526001600160a01b0384166004820152602401610d89565b6001600160a01b0384166112195760405163e602df0560e01b81525f6004820152602401610d89565b6001600160a01b03831661124257604051634a1406b160e11b81525f6004820152602401610d89565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610fd857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112b491815260200190565b60405180910390a350505050565b6009546001600160a01b0384811691161480156112e257506112e261066e565b156113a8576112f082610a28565b611318576040516301dc97db60e51b81526001600160a01b0383166004820152602401610d89565b6001600160a01b0382165f908152600e602052604081205461133b908390611b5a565b600c549091506001600160801b031681111561138f57600c546040516371f270e960e11b81526001600160a01b0385166004820152602481018390526001600160801b039091166044820152606401610d89565b6001600160a01b0383165f908152600e60205260409020555b6113b38383836115cc565b600f546001600160a01b038416158015906113e657506001600160a01b0384165f9081526013602052604090205460ff16155b1561143c578160145f8282546113fc9190611bfd565b9091555061140f90506109f38383611b6d565b6001600160a01b0385165f9081526010602052604081208054909190611436908490611ba3565b90915550505b6001600160a01b0383161580159061146c57506001600160a01b0383165f9081526013602052604090205460ff16155b15610fd8578160145f8282546114829190611b5a565b9091555061149590506109f38383611b6d565b6001600160a01b0384165f90815260106020526040812080549091906114bc908490611c10565b90915550506001600160a01b0383165f908152601260205260408120549003610fd85750506001600160a01b03165f90815260126020526040902042905550565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661155957838315161561154d573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f511483166115c05783831516156115b4573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b6001600160a01b0383166115f6578060025f8282546115eb9190611b5a565b909155506116669050565b6001600160a01b0383165f90815260208190526040902054818110156116485760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610d89565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216611682576002805482900390556116a0565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116e591815260200190565b60405180910390a3505050565b828054828255905f5260205f20908101928215611743579160200282015b828111156117435781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611710565b5061109f9291505b8082111561109f575f815560010161174b565b80356001600160a01b0381168114611774575f80fd5b919050565b5f60208284031215611789575f80fd5b610a218261175e565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f80604083850312156117d8575f80fd5b6117e18361175e565b946020939093013593505050565b5f805f60608486031215611801575f80fd5b61180a8461175e565b92506118186020850161175e565b929592945050506040919091013590565b5f60208284031215611839575f80fd5b813567ffffffffffffffff81111561184f575f80fd5b82016101208185031215610a21575f80fd5b5f60208284031215611871575f80fd5b5035919050565b602080825282518282018190525f918401906040840190835b818110156118b85783516001600160a01b0316835260209384019390920191600101611891565b509095945050505050565b5f80602083850312156118d4575f80fd5b823567ffffffffffffffff8111156118ea575f80fd5b8301601f810185136118fa575f80fd5b803567ffffffffffffffff811115611910575f80fd5b8560208260051b8401011115611924575f80fd5b6020919091019590945092505050565b5f8060408385031215611945575f80fd5b61194e8361175e565b915061195c6020840161175e565b90509250929050565b600181811c9082168061197957607f821691505b60208210810361199757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f808335601e198436030181126119b2575f80fd5b83018035915067ffffffffffffffff8211156119cc575f80fd5b6020019150368190038213156119e0575f80fd5b9250929050565b634e487b7160e01b5f52604160045260245ffd5b601f821115610f5d57805f5260205f20601f840160051c81016020851015611a205750805b601f840160051c820191505b81811015611a3f575f8155600101611a2c565b5050505050565b67ffffffffffffffff831115611a5e57611a5e6119e7565b611a7283611a6c8354611965565b836119fb565b5f601f841160018114611aa3575f8515611a8c5750838201355b5f19600387901b1c1916600186901b178355611a3f565b5f83815260208120601f198716915b82811015611ad25786850135825560209485019460019092019101611ab2565b5086821015611aee575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f808335601e19843603018112611b15575f80fd5b83018035915067ffffffffffffffff821115611b2f575f80fd5b6020019150600581901b36038213156119e0575f80fd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561066857610668611b46565b808202811582820484141761066857610668611b46565b5f82611b9e57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018281125f831280158216821582161715611bc257611bc2611b46565b505092915050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611bee575f80fd5b81518015158114610a21575f80fd5b8181038181111561066857610668611b46565b8181035f831280158383131683831282161715610e6a57610e6a611b4656fea164736f6c634300081a000a","sourceMap":"3150:18985:40:-:0;;;7783:1352;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;8180:29:40;;;;:59;;-1:-1:-1;;;;;;8213:26:40;;;8180:59;:93;;;-1:-1:-1;;;;;;8243:30:40;;;8180:93;:140;;;-1:-1:-1;;;;;;8293:27:40;;;8180:140;:163;;;-1:-1:-1;;;;;;8324:19:40;;;8180:163;8163:211;;;8361:13;;-1:-1:-1;;;8361:13:40;;;;;;;;;;;8163:211;-1:-1:-1;;;;;8385:31:40;;;;;8426:40;;;;;8476:59;;;;;8545:35;;;;;8590:19;;;;8623:22;;;:49;;-1:-1:-1;8649:23:40;;8623:49;8619:83;;;8681:21;;-1:-1:-1;;;8681:21:40;;;;;;;;;;;8619:83;-1:-1:-1;;;;;8716:29:40;;;;:63;;-1:-1:-1;;;;;;8749:30:40;;;8716:63;8712:89;;;8788:13;;-1:-1:-1;;;8788:13:40;;;;;;;;;;;8712:89;8812:24;;;;;8846:40;;;;;;8896:36;;;;8942:38;;;;-1:-1:-1;;;;;8990:32:40;;;;;9032:34;;;;-1:-1:-1;9107:20:40;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;9077:51:40;;;-1:-1:-1;3150:18985:40;;-1:-1:-1;;;;;;;;;;3150:18985:40;;;;;;;;;:::o;14:177:44:-;93:13;;-1:-1:-1;;;;;135:31:44;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:1271::-;353:6;361;369;377;385;393;401;409;417;425;433:7;487:3;475:9;466:7;462:23;458:33;455:53;;;504:1;501;494:12;455:53;527:40;557:9;527:40;:::i;:::-;517:50;;586:49;631:2;620:9;616:18;586:49;:::i;:::-;576:59;;654:49;699:2;688:9;684:18;654:49;:::i;:::-;644:59;;722:49;767:2;756:9;752:18;722:49;:::i;:::-;712:59;;790:50;835:3;824:9;820:19;790:50;:::i;:::-;780:60;;883:3;872:9;868:19;862:26;928:8;921:5;917:20;910:5;907:31;897:59;;952:1;949;942:12;897:59;975:5;965:15;;;1025:3;1014:9;1010:19;1004:26;1075:7;1072:1;1061:22;1052:7;1049:35;1039:63;;1098:1;1095;1088:12;1039:63;1194:3;1179:19;;1173:26;1291:3;1276:19;;1270:26;1121:7;;-1:-1:-1;1173:26:44;-1:-1:-1;1270:26:44;-1:-1:-1;1341:50:44;1386:3;1371:19;;1341:50;:::i;:::-;1331:60;;1411:50;1456:3;1445:9;1441:19;1411:50;:::i;:::-;1400:61;;196:1271;;;;;;;;;;;;;;:::o;:::-;3150:18985:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{},"transformations":[{"type":"insert","offset":20461,"reason":"constructorArguments"}],"transformationValues":{"constructorArguments":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd90000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095100000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa700000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf000000000000000000000000d88dcacf4e77b7ff2778aee824639d30cb1640cc0000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000005df06844b60d837b42500000000000000000000000000000000000000000005bbcc5d319c932665ed090000000000000000000000003c74b2e6818d622d0867e771dba2c264e52fb0b6000000000000000000000000b7d64608e030b49236b1f791f332f967c2c7f69a"}},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561000f575f80fd5b50600436106101bb575f3560e01c80635a6c72d0116100f3578063c415b95c11610093578063df517ddf1161006e578063df517ddf146104fb578063f108e2251461050e578063f700f06e14610535578063fb1ace181461055c575f80fd5b8063c415b95c1461049b578063d5c71275146104c1578063dc4c90d3146104d4575f80fd5b80637f5a7c7b116100ce5780637f5a7c7b146103f45780638652edf91461041a578063bdf3c4ae1461043a578063bf11b4d514610461575f80fd5b80635a6c72d01461038a57806378a89567146103c5578063791b98bc146103cd575f80fd5b80632f2f2d561161015e5780634690b68d116101395780634690b68d146102fd57806347868b32146103105780634aa445341461033d5780634eec9e0914610364575f80fd5b80632f2f2d561461029c5780632f3a3d5d146102af57806332a3cf96146102d6575f80fd5b80631f69565f116101995780631f69565f14610224578063223a980b1461024457806325637fd61461026b5780632a5c792a14610287575f80fd5b806303bdd5cf146101bf57806303fd2a45146101dc57806311b1868f146101fd575b5f80fd5b6101c962093a8081565b6040519081526020015b60405180910390f35b6101e561dead81565b6040516001600160a01b0390911681526020016101d3565b6101c97f0000000000000000000000000000000000000000000005df06844b60d837b42581565b61023761023236600461253d565b61056f565b6040516101d39190612591565b6101e57f000000000000000000000000b7d64608e030b49236b1f791f332f967c2c7f69a81565b5f546102779060ff1681565b60405190151581526020016101d3565b61028f61078d565b6040516101d3919061265a565b6101e56102aa3660046126e9565b6107ed565b6101e57f0000000000000000000000004c515fceef14dd08e86d6fa0df0ec7f1ce2f579e81565b6101e57f000000000000000000000000d88dcacf4e77b7ff2778aee824639d30cb1640cc81565b61028f61030b366004612753565b61082f565b61027761031e36600461253d565b6001600160a01b039081165f9081526001602052604090205416151590565b6101c97f00000000000000000000000000000000000000000005bbcc5d319c932665ed0981565b7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd96101e5565b6103b17f0000000000000000000000000000000000000000000000000000000000000bb881565b60405162ffffff90911681526020016101d3565b6004546101c9565b6101e57f00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa781565b7f000000000000000000000000d88dcacf4e77b7ff2778aee824639d30cb1640cc6101e5565b61042d61042836600461253d565b61092b565b6040516101d391906127b6565b6101e57f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981565b6104887f000000000000000000000000000000000000000000000000000000000000003c81565b60405160029190910b81526020016101d3565b7f00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf6101e5565b61028f6104cf36600461253d565b6109ff565b6101e57f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095181565b6101e56105093660046127c4565b610a72565b6101e57f00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf81565b6101e57f0000000000000000000000003c74b2e6818d622d0867e771dba2c264e52fb0b681565b6101c96b033b2e3c9fd0803ce800000081565b6040805161012080820183525f80835260208084018290526060848601819052808501526080840182905260a0840182905260c0840182905260e0840182905261010084018290526001600160a01b038681168352600180835292869020865194850187528054821685529283015416908301526002810180549394929391928401916105fb9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106279061289a565b80156106725780601f1061064957610100808354040283529160200191610672565b820191905f5260205f20905b81548152906001019060200180831161065557829003601f168201915b5050505050815260200160038201805461068b9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106b79061289a565b80156107025780601f106106d957610100808354040283529160200191610702565b820191905f5260205f20905b8154815290600101906020018083116106e557829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460608201526007909101546001600160401b038082166080840152600160401b9091041660a09091015280519091506001600160a01b0316610788576040516340d1d8df60e11b81526001600160a01b03831660048201526024015b60405180910390fd5b919050565b606060048054806020026020016040519081016040528092919081815260200182805480156107e357602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107c5575b5050505050905090565b5f610826858585858580604051908082528060200260200182016040528015610820578160200160208202803683370190505b50610b19565b95945050505050565b6004546060908284118061084257508083115b1561086a57604051632457cde760e01b8152600481018590526024810182905260440161077f565b61087484846128fa565b6001600160401b0381111561088b5761088b6128d2565b6040519080825280602002602001820160405280156108b4578160200160208202803683370190505b509150835b8381101561092357600481815481106108d4576108d461290d565b5f918252602090912001546001600160a01b0316836108f387846128fa565b815181106109035761090361290d565b6001600160a01b03909216602092830291909101909101526001016108b9565b505092915050565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506001600160a01b038082165f90815260026020818152604092839020835160a0810185528154861680825260018301548088169483019490945262ffffff600160a01b85041695820195909552600160b81b909204830b60608301529091015490921660808301521580156109d6575060208101516001600160a01b0316155b15610788576040516340d1d8df60e11b81526001600160a01b038316600482015260240161077f565b6001600160a01b0381165f90815260036020908152604091829020805483518184028101840190945280845260609392830182828015610a6657602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a48575b50505050509050919050565b5f831580610a82575062093a8084115b15610aac57604051630f4a61d160e31b81526004810185905262093a80602482015260440161077f565b5f829003610acd5760405163d302698f60e01b815260040160405180910390fd5b610b0d88888888888888808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610b1992505050565b98975050505050505050565b5f858103610b3a57604051632ef1310560e01b815260040160405180910390fd5b5f849003610b5b57604051630cc613fb60e11b815260040160405180910390fd5b5f547f0000000000000000000000000000000000000000000005df06844b60d837b4259060ff16158015610bb75750336001600160a01b037f0000000000000000000000003c74b2e6818d622d0867e771dba2c264e52fb0b616145b15610beb57505f805460ff191660011790557f00000000000000000000000000000000000000000005bbcc5d319c932665ed095b6004546040515f91610c0a913391908c908c908c908c90602001612949565b604051602081830303815290604052805190602001209050610c4c7f0000000000000000000000004c515fceef14dd08e86d6fa0df0ec7f1ce2f579e82610dfd565b9250826001600160a01b031663277b806d6040518061012001604052808c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c90819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce80000006020820152336040808301919091526001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951811660608401527f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9811660808401527f000000000000000000000000b7d64608e030b49236b1f791f332f967c2c7f69a1660a083015260c082018a905260e0918201899052519083901b6001600160e01b0319168152610da391906004016129c6565b5f604051808303815f87803b158015610dba575f80fd5b505af1158015610dcc573d5f803e3d5ffd5b505050505f80610ddc8585610e12565b91509150610def858c8c8c8c8787611085565b505050509695505050505050565b5f610e0983835f611511565b90505b92915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525f806b033b2e3c9fd0803ce800000090505f7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd96001600160a01b0316866001600160a01b03161090506040518060a0016040528082610ebb577f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9610ebd565b875b6001600160a01b0316815260200182610ed65787610ef8565b7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd95b6001600160a01b031681526020017f0000000000000000000000000000000000000000000000000000000000000bb862ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000003c60020b81526020017f000000000000000000000000d88dcacf4e77b7ff2778aee824639d30cb1640cc6001600160a01b031681525093505f805f610f9684896115ad565b91945092509050627fffff6001600160a01b037f00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa71663f702040589610fda85611680565b6040518363ffffffff1660e01b8152600401610ff7929190612a8f565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110379190612ab5565b60020b0361105857604051633b47c30b60e21b815260040160405180910390fd5b5f61106585858589611938565b90506110768a878a8787868b6119a6565b96505050505050509250929050565b5f604051806101200160405280896001600160a01b03168152602001336001600160a01b0316815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8901819004810282018101909252878152918101919088908890819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce800000060208201526040016111428560a0902090565b8152602001838152602001426001600160401b03168152602001896001600160a01b0316631dec7ed56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111bc9190612ad5565b6001600160401b031681525090508260025f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160146101000a81548162ffffff021916908362ffffff16021790555060608201518160010160176101000a81548162ffffff021916908360020b62ffffff1602179055506080820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050508060015f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201908161134f9190612b46565b50606082015160038201906113649082612b46565b506080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015f6101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160070160086101000a8154816001600160401b0302191690836001600160401b03160217905550905050600488908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555060035f336001600160a01b03166001600160a01b031681526020019081526020015f2088908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055508060a0015181602001516001600160a01b0316825f01516001600160a01b03167f11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df8460c001518560400151866060015187608001518861010001518960e001516040516114ff96959493929190612c00565b60405180910390a45050505050505050565b5f8147101561153c5760405163cf47918160e01b81524760048201526024810183905260440161077f565b763d602d80600a3d3981f3363d3d373d3d3d363d730000008460601b60e81c175f526e5af43d82803e903d91602b57fd5bf38460781b17602052826037600984f590506001600160a01b0381166115a65760405163b06ebf3d60e01b815260040160405180910390fd5b9392505050565b5f80807f000000000000000000000000000000000000000000000000000000000000003c816115e0620d89e71983611d90565b9050620d89e719600282900b12156115ff576115fc8282612c53565b90505b5f61160d620d89e884611d90565b90505f61161a8989611de3565b905088156116395761162c8185611d90565b965081955086945061164c565b8296506116468185611e84565b95508594505b8560020b8760020b126116755760405163bd7e0d4360e01b81526004810189905260240161077f565b505050509250925092565b60020b5f60ff82901d80830118620d89e88111156116a9576116a96345c3193d60e11b84611eae565b7001fffcb933bd6fad37aa2d162d1a5940016001821602600160801b1860028216156116e5576ffff97272373d413259a46990580e213a0260801c5b6004821615611704576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615611723576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615611742576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615611761576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615611780576fff2ea16466c96a3843ec78b326b528610260801c5b608082161561179f576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156117bf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156117df576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156117ff576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161561181f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b61100082161561183f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b61200082161561185f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b61400082161561187f576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161561189f576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156118c0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b620200008216156118e0576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156118ff576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561191c576b048a170391f7dc42444e8fa20260801c5b5f841315611928575f19045b63ffffffff0160201c9392505050565b5f8061194385611680565b90505f61194f85611680565b90508661196657611961828286611ebd565b611971565b611971828286611efe565b9250826001600160801b03165f0361199c5760405163f564880560e01b815260040160405180910390fd5b5050949350505050565b5f6119db6001600160a01b0389167f00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa789611f5a565b604051600160f91b6020820152600b60f81b6021820152600560fa1b60228201525f9060230160408051808303601f1901815260038084526080840190925292505f9190816020015b6060815260200190600190039081611a24579050509050878787876001600160801b031687611a53575f611a55565b8c5b88611a60578d611a62565b5f5b60408051602080820183525f82529151611a859897969594939230929101612c78565b604051602081830303815290604052815f81518110611aa657611aa661290d565b602090810291909101810191909152604080516001600160a01b038d16928101929092525f908201819052606082015260800160405160208183030381529060405281600181518110611afb57611afb61290d565b60200260200101819052508930604051602001611b2e9291906001600160a01b0392831681529116602082015260400190565b60405160208183030381529060405281600281518110611b5057611b5061290d565b60200260200101819052507f00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa76001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612cef565b92507f00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa76001600160a01b031663dd46508f8383604051602001611c1f929190612d06565b604051602081830303815290604052426040518363ffffffff1660e01b8152600401611c4c929190612d7b565b5f604051808303815f87803b158015611c63575f80fd5b505af1158015611c75573d5f803e3d5ffd5b50506040516323b872dd60e01b815230600482015261dead6024820152604481018690527f00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa76001600160a01b031692506323b872dd91506064015f604051808303815f87803b158015611ce6575f80fd5b505af1158015611cf8573d5f803e3d5ffd5b50506040516370a0823160e01b81523060048201525f92506001600160a01b038d1691506370a0823190602401602060405180830381865afa158015611d40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d649190612cef565b90508015611d8257611d826001600160a01b038c1661dead83611f5a565b505050979650505050505050565b5f80611d9c8385612db0565b90505f8460020b128015611dc05750600284900b611dba8483612df4565b60020b14155b15611dd157611dce81612e1a565b90505b611ddb8382612df4565b949350505050565b5f8083611e0a57611e056b033b2e3c9fd0803ce8000000600160c01b85611f94565b611e25565b611e2583600160c01b6b033b2e3c9fd0803ce8000000611f94565b90505f611e3182612030565b90506401000276a3811080611e5a575073fffd8963efd1fc6a506488495d951d5263988d268110155b15611e7b5760405163bd7e0d4360e01b81526004810185905260240161077f565b61082681612183565b5f80611e908484611d90565b90508360020b8160020b146115a657611ea98382612c53565b611ddb565b815f528060020b60045260245ffd5b5f826001600160a01b0316846001600160a01b03161115611edc579192915b611ddb611ef983600160601b8787036001600160a01b0316611f94565b612413565b5f826001600160a01b0316846001600160a01b03161115611f1d579192915b5f611f3f856001600160a01b0316856001600160a01b0316600160601b611f94565b9050610826611ef984838888036001600160a01b0316611f94565b611f678383836001612434565b611f8f57604051635274afe760e01b81526001600160a01b038416600482015260240161077f565b505050565b5f838302815f1985870982811083820303915050808411611fb3575f80fd5b805f03611fc5575082900490506115a6565b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f6001821161203d575090565b816001600160801b82106120565760809190911c9060401b5b600160401b821061206c5760409190911c9060201b5b64010000000082106120835760209190911c9060101b5b6201000082106120985760109190911c9060081b5b61010082106120ac5760089190911c9060041b5b601082106120bf5760049190911c9060021b5b600482106120cb5760011b5b600302600190811c908185816120e3576120e3612d9c565b048201901c905060018185816120fb576120fb612d9c565b048201901c9050600181858161211357612113612d9c565b048201901c9050600181858161212b5761212b612d9c565b048201901c9050600181858161214357612143612d9c565b048201901c9050600181858161215b5761215b612d9c565b048201901c905061217a81858161217457612174612d9c565b04821190565b90039392505050565b5f73fffd8963efd1fc6a506488495d951d51639616826401000276a21983016001600160a01b031611156121c2576121c26318521d4960e21b83612496565b640100000000600160c01b03602083901b16805f6121df826124ab565b60ff169050608081106121fa57607f810383901c9150612204565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461240457886001600160a01b03166123e982611680565b6001600160a01b031611156123fe5781612406565b80612406565b815b9998505050505050505050565b806001600160801b0381168114610788576107886393dafdf160e01b612535565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661248a57838315161561247e573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b815f526001600160a01b03811660045260245ffd5b5f8082116124b7575f80fd5b507f0706060506020500060203020504000106050205030304010505030400000000601f6f8421084210842108cc6318c6db6d54be6001600160801b03841160071b84811c6001600160401b031060061b1784811c63ffffffff1060051b1784811c61ffff1060041b1784811c60ff1060031b1793841c1c161a1790565b805f5260045ffd5b5f6020828403121561254d575f80fd5b81356001600160a01b03811681146115a6575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526125ab6020820183516001600160a01b03169052565b5f60208301516125c660408401826001600160a01b03169052565b50604083015161012060608401526125e2610140840182612563565b90506060840151601f198483030160808501526125ff8282612563565b915050608084015160a084015260a084015160c084015260c084015160e084015260e084015161263b6101008501826001600160401b03169052565b506101008401516001600160401b038116610120850152509392505050565b602080825282518282018190525f918401906040840190835b8181101561269a5783516001600160a01b0316835260209384019390920191600101612673565b509095945050505050565b5f8083601f8401126126b5575f80fd5b5081356001600160401b038111156126cb575f80fd5b6020830191508360208285010111156126e2575f80fd5b9250929050565b5f805f80604085870312156126fc575f80fd5b84356001600160401b03811115612711575f80fd5b61271d878288016126a5565b90955093505060208501356001600160401b0381111561273b575f80fd5b612747878288016126a5565b95989497509550505050565b5f8060408385031215612764575f80fd5b50508035926020909101359150565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610e0c8284612773565b5f805f805f805f6080888a0312156127da575f80fd5b87356001600160401b038111156127ef575f80fd5b6127fb8a828b016126a5565b90985096505060208801356001600160401b03811115612819575f80fd5b6128258a828b016126a5565b9096509450506040880135925060608801356001600160401b0381111561284a575f80fd5b8801601f81018a1361285a575f80fd5b80356001600160401b0381111561286f575f80fd5b8a60208260051b8401011115612883575f80fd5b602082019350809250505092959891949750929550565b600181811c908216806128ae57607f821691505b6020821081036128cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610e0c57610e0c6128e6565b634e487b7160e01b5f52603260045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0387168152856020820152608060408201525f612970608083018688612921565b8281036060840152612406818587612921565b5f8151808452602084019350602083015f5b828110156129bc5781516001600160a01b0316865260209586019590910190600101612995565b5093949350505050565b602081525f825161012060208401526129e3610140840182612563565b90506020840151601f19848303016040850152612a008282612563565b915050604084015160608401526060840151612a2760808501826001600160a01b03169052565b5060808401516001600160a01b03811660a08501525060a08401516001600160a01b03811660c08501525060c08401516001600160a01b03811660e08501525060e0840151610100840152610100840151601f19848303016101208501526108268282612983565b60c08101612a9d8285612773565b6001600160a01b039290921660a09190910152919050565b5f60208284031215612ac5575f80fd5b81518060020b81146115a6575f80fd5b5f60208284031215612ae5575f80fd5b81516001600160401b03811681146115a6575f80fd5b601f821115611f8f57805f5260205f20601f840160051c81016020851015612b205750805b601f840160051c820191505b81811015612b3f575f8155600101612b2c565b5050505050565b81516001600160401b03811115612b5f57612b5f6128d2565b612b7381612b6d845461289a565b84612afb565b6020601f821160018114612ba5575f8315612b8e5750848201515b5f19600385901b1c1916600184901b178455612b3f565b5f84815260208120601f198516915b82811015612bd45787850151825560209485019460019092019101612bb4565b5084821015612bf157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b86815260c060208201525f612c1860c0830188612563565b8281036040840152612c2a8188612563565b606084019690965250506001600160401b039283166080820152911660a0909101529392505050565b600281810b9083900b01627fffff8113627fffff1982121715610e0c57610e0c6128e6565b612c82818a612773565b8760020b60a08201528660020b60c08201528560e08201526001600160801b0385166101008201526001600160801b03841661012082015260018060a01b0383166101408201526101806101608201525f612ce1610180830184612563565b9a9950505050505050505050565b5f60208284031215612cff575f80fd5b5051919050565b604081525f612d186040830185612563565b828103602084015280845180835260208301915060208160051b840101602087015f5b83811015612d6d57601f19868403018552612d57838351612563565b6020958601959093509190910190600101612d3b565b509098975050505050505050565b604081525f612d8d6040830185612563565b90508260208301529392505050565b634e487b7160e01b5f52601260045260245ffd5b5f8160020b8360020b80612dd257634e487b7160e01b5f52601260045260245ffd5b627fffff1982145f1982141615612deb57612deb6128e6565b90059392505050565b5f8260020b8260020b028060020b9150808214612e1357612e136128e6565b5092915050565b5f8160020b627fffff198103612e3257612e326128e6565b5f19019291505056fea164736f6c634300081a000a","recompiledBytecode":"0x608060405234801561000f575f80fd5b50600436106101bb575f3560e01c80635a6c72d0116100f3578063c415b95c11610093578063df517ddf1161006e578063df517ddf146104fb578063f108e2251461050e578063f700f06e14610535578063fb1ace181461055c575f80fd5b8063c415b95c1461049b578063d5c71275146104c1578063dc4c90d3146104d4575f80fd5b80637f5a7c7b116100ce5780637f5a7c7b146103f45780638652edf91461041a578063bdf3c4ae1461043a578063bf11b4d514610461575f80fd5b80635a6c72d01461038a57806378a89567146103c5578063791b98bc146103cd575f80fd5b80632f2f2d561161015e5780634690b68d116101395780634690b68d146102fd57806347868b32146103105780634aa445341461033d5780634eec9e0914610364575f80fd5b80632f2f2d561461029c5780632f3a3d5d146102af57806332a3cf96146102d6575f80fd5b80631f69565f116101995780631f69565f14610224578063223a980b1461024457806325637fd61461026b5780632a5c792a14610287575f80fd5b806303bdd5cf146101bf57806303fd2a45146101dc57806311b1868f146101fd575b5f80fd5b6101c962093a8081565b6040519081526020015b60405180910390f35b6101e561dead81565b6040516001600160a01b0390911681526020016101d3565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b61023761023236600461253d565b61056f565b6040516101d39190612591565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b5f546102779060ff1681565b60405190151581526020016101d3565b61028f61078d565b6040516101d3919061265a565b6101e56102aa3660046126e9565b6107ed565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b61028f61030b366004612753565b61082f565b61027761031e36600461253d565b6001600160a01b039081165f9081526001602052604090205416151590565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6103b17f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff90911681526020016101d3565b6004546101c9565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61042d61042836600461253d565b61092b565b6040516101d391906127b6565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6104887f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b81526020016101d3565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61028f6104cf36600461253d565b6109ff565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e56105093660046127c4565b610a72565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101c96b033b2e3c9fd0803ce800000081565b6040805161012080820183525f80835260208084018290526060848601819052808501526080840182905260a0840182905260c0840182905260e0840182905261010084018290526001600160a01b038681168352600180835292869020865194850187528054821685529283015416908301526002810180549394929391928401916105fb9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106279061289a565b80156106725780601f1061064957610100808354040283529160200191610672565b820191905f5260205f20905b81548152906001019060200180831161065557829003601f168201915b5050505050815260200160038201805461068b9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106b79061289a565b80156107025780601f106106d957610100808354040283529160200191610702565b820191905f5260205f20905b8154815290600101906020018083116106e557829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460608201526007909101546001600160401b038082166080840152600160401b9091041660a09091015280519091506001600160a01b0316610788576040516340d1d8df60e11b81526001600160a01b03831660048201526024015b60405180910390fd5b919050565b606060048054806020026020016040519081016040528092919081815260200182805480156107e357602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107c5575b5050505050905090565b5f610826858585858580604051908082528060200260200182016040528015610820578160200160208202803683370190505b50610b19565b95945050505050565b6004546060908284118061084257508083115b1561086a57604051632457cde760e01b8152600481018590526024810182905260440161077f565b61087484846128fa565b6001600160401b0381111561088b5761088b6128d2565b6040519080825280602002602001820160405280156108b4578160200160208202803683370190505b509150835b8381101561092357600481815481106108d4576108d461290d565b5f918252602090912001546001600160a01b0316836108f387846128fa565b815181106109035761090361290d565b6001600160a01b03909216602092830291909101909101526001016108b9565b505092915050565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506001600160a01b038082165f90815260026020818152604092839020835160a0810185528154861680825260018301548088169483019490945262ffffff600160a01b85041695820195909552600160b81b909204830b60608301529091015490921660808301521580156109d6575060208101516001600160a01b0316155b15610788576040516340d1d8df60e11b81526001600160a01b038316600482015260240161077f565b6001600160a01b0381165f90815260036020908152604091829020805483518184028101840190945280845260609392830182828015610a6657602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a48575b50505050509050919050565b5f831580610a82575062093a8084115b15610aac57604051630f4a61d160e31b81526004810185905262093a80602482015260440161077f565b5f829003610acd5760405163d302698f60e01b815260040160405180910390fd5b610b0d88888888888888808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610b1992505050565b98975050505050505050565b5f858103610b3a57604051632ef1310560e01b815260040160405180910390fd5b5f849003610b5b57604051630cc613fb60e11b815260040160405180910390fd5b5f547f00000000000000000000000000000000000000000000000000000000000000009060ff16158015610bb75750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b15610beb57505f805460ff191660011790557f00000000000000000000000000000000000000000000000000000000000000005b6004546040515f91610c0a913391908c908c908c908c90602001612949565b604051602081830303815290604052805190602001209050610c4c7f000000000000000000000000000000000000000000000000000000000000000082610dfd565b9250826001600160a01b031663277b806d6040518061012001604052808c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c90819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce80000006020820152336040808301919091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660608401527f0000000000000000000000000000000000000000000000000000000000000000811660808401527f00000000000000000000000000000000000000000000000000000000000000001660a083015260c082018a905260e0918201899052519083901b6001600160e01b0319168152610da391906004016129c6565b5f604051808303815f87803b158015610dba575f80fd5b505af1158015610dcc573d5f803e3d5ffd5b505050505f80610ddc8585610e12565b91509150610def858c8c8c8c8787611085565b505050509695505050505050565b5f610e0983835f611511565b90505b92915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525f806b033b2e3c9fd0803ce800000090505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161090506040518060a0016040528082610ebb577f0000000000000000000000000000000000000000000000000000000000000000610ebd565b875b6001600160a01b0316815260200182610ed65787610ef8565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b031681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000060020b81526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681525093505f805f610f9684896115ad565b91945092509050627fffff6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f702040589610fda85611680565b6040518363ffffffff1660e01b8152600401610ff7929190612a8f565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110379190612ab5565b60020b0361105857604051633b47c30b60e21b815260040160405180910390fd5b5f61106585858589611938565b90506110768a878a8787868b6119a6565b96505050505050509250929050565b5f604051806101200160405280896001600160a01b03168152602001336001600160a01b0316815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8901819004810282018101909252878152918101919088908890819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce800000060208201526040016111428560a0902090565b8152602001838152602001426001600160401b03168152602001896001600160a01b0316631dec7ed56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111bc9190612ad5565b6001600160401b031681525090508260025f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160146101000a81548162ffffff021916908362ffffff16021790555060608201518160010160176101000a81548162ffffff021916908360020b62ffffff1602179055506080820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050508060015f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201908161134f9190612b46565b50606082015160038201906113649082612b46565b506080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015f6101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160070160086101000a8154816001600160401b0302191690836001600160401b03160217905550905050600488908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555060035f336001600160a01b03166001600160a01b031681526020019081526020015f2088908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055508060a0015181602001516001600160a01b0316825f01516001600160a01b03167f11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df8460c001518560400151866060015187608001518861010001518960e001516040516114ff96959493929190612c00565b60405180910390a45050505050505050565b5f8147101561153c5760405163cf47918160e01b81524760048201526024810183905260440161077f565b763d602d80600a3d3981f3363d3d373d3d3d363d730000008460601b60e81c175f526e5af43d82803e903d91602b57fd5bf38460781b17602052826037600984f590506001600160a01b0381166115a65760405163b06ebf3d60e01b815260040160405180910390fd5b9392505050565b5f80807f0000000000000000000000000000000000000000000000000000000000000000816115e0620d89e71983611d90565b9050620d89e719600282900b12156115ff576115fc8282612c53565b90505b5f61160d620d89e884611d90565b90505f61161a8989611de3565b905088156116395761162c8185611d90565b965081955086945061164c565b8296506116468185611e84565b95508594505b8560020b8760020b126116755760405163bd7e0d4360e01b81526004810189905260240161077f565b505050509250925092565b60020b5f60ff82901d80830118620d89e88111156116a9576116a96345c3193d60e11b84611eae565b7001fffcb933bd6fad37aa2d162d1a5940016001821602600160801b1860028216156116e5576ffff97272373d413259a46990580e213a0260801c5b6004821615611704576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615611723576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615611742576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615611761576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615611780576fff2ea16466c96a3843ec78b326b528610260801c5b608082161561179f576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156117bf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156117df576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156117ff576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161561181f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b61100082161561183f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b61200082161561185f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b61400082161561187f576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161561189f576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156118c0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b620200008216156118e0576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156118ff576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561191c576b048a170391f7dc42444e8fa20260801c5b5f841315611928575f19045b63ffffffff0160201c9392505050565b5f8061194385611680565b90505f61194f85611680565b90508661196657611961828286611ebd565b611971565b611971828286611efe565b9250826001600160801b03165f0361199c5760405163f564880560e01b815260040160405180910390fd5b5050949350505050565b5f6119db6001600160a01b0389167f000000000000000000000000000000000000000000000000000000000000000089611f5a565b604051600160f91b6020820152600b60f81b6021820152600560fa1b60228201525f9060230160408051808303601f1901815260038084526080840190925292505f9190816020015b6060815260200190600190039081611a24579050509050878787876001600160801b031687611a53575f611a55565b8c5b88611a60578d611a62565b5f5b60408051602080820183525f82529151611a859897969594939230929101612c78565b604051602081830303815290604052815f81518110611aa657611aa661290d565b602090810291909101810191909152604080516001600160a01b038d16928101929092525f908201819052606082015260800160405160208183030381529060405281600181518110611afb57611afb61290d565b60200260200101819052508930604051602001611b2e9291906001600160a01b0392831681529116602082015260400190565b60405160208183030381529060405281600281518110611b5057611b5061290d565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612cef565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dd46508f8383604051602001611c1f929190612d06565b604051602081830303815290604052426040518363ffffffff1660e01b8152600401611c4c929190612d7b565b5f604051808303815f87803b158015611c63575f80fd5b505af1158015611c75573d5f803e3d5ffd5b50506040516323b872dd60e01b815230600482015261dead6024820152604481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506323b872dd91506064015f604051808303815f87803b158015611ce6575f80fd5b505af1158015611cf8573d5f803e3d5ffd5b50506040516370a0823160e01b81523060048201525f92506001600160a01b038d1691506370a0823190602401602060405180830381865afa158015611d40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d649190612cef565b90508015611d8257611d826001600160a01b038c1661dead83611f5a565b505050979650505050505050565b5f80611d9c8385612db0565b90505f8460020b128015611dc05750600284900b611dba8483612df4565b60020b14155b15611dd157611dce81612e1a565b90505b611ddb8382612df4565b949350505050565b5f8083611e0a57611e056b033b2e3c9fd0803ce8000000600160c01b85611f94565b611e25565b611e2583600160c01b6b033b2e3c9fd0803ce8000000611f94565b90505f611e3182612030565b90506401000276a3811080611e5a575073fffd8963efd1fc6a506488495d951d5263988d268110155b15611e7b5760405163bd7e0d4360e01b81526004810185905260240161077f565b61082681612183565b5f80611e908484611d90565b90508360020b8160020b146115a657611ea98382612c53565b611ddb565b815f528060020b60045260245ffd5b5f826001600160a01b0316846001600160a01b03161115611edc579192915b611ddb611ef983600160601b8787036001600160a01b0316611f94565b612413565b5f826001600160a01b0316846001600160a01b03161115611f1d579192915b5f611f3f856001600160a01b0316856001600160a01b0316600160601b611f94565b9050610826611ef984838888036001600160a01b0316611f94565b611f678383836001612434565b611f8f57604051635274afe760e01b81526001600160a01b038416600482015260240161077f565b505050565b5f838302815f1985870982811083820303915050808411611fb3575f80fd5b805f03611fc5575082900490506115a6565b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f6001821161203d575090565b816001600160801b82106120565760809190911c9060401b5b600160401b821061206c5760409190911c9060201b5b64010000000082106120835760209190911c9060101b5b6201000082106120985760109190911c9060081b5b61010082106120ac5760089190911c9060041b5b601082106120bf5760049190911c9060021b5b600482106120cb5760011b5b600302600190811c908185816120e3576120e3612d9c565b048201901c905060018185816120fb576120fb612d9c565b048201901c9050600181858161211357612113612d9c565b048201901c9050600181858161212b5761212b612d9c565b048201901c9050600181858161214357612143612d9c565b048201901c9050600181858161215b5761215b612d9c565b048201901c905061217a81858161217457612174612d9c565b04821190565b90039392505050565b5f73fffd8963efd1fc6a506488495d951d51639616826401000276a21983016001600160a01b031611156121c2576121c26318521d4960e21b83612496565b640100000000600160c01b03602083901b16805f6121df826124ab565b60ff169050608081106121fa57607f810383901c9150612204565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461240457886001600160a01b03166123e982611680565b6001600160a01b031611156123fe5781612406565b80612406565b815b9998505050505050505050565b806001600160801b0381168114610788576107886393dafdf160e01b612535565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661248a57838315161561247e573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b815f526001600160a01b03811660045260245ffd5b5f8082116124b7575f80fd5b507f0706060506020500060203020504000106050205030304010505030400000000601f6f8421084210842108cc6318c6db6d54be6001600160801b03841160071b84811c6001600160401b031060061b1784811c63ffffffff1060051b1784811c61ffff1060041b1784811c60ff1060031b1793841c1c161a1790565b805f5260045ffd5b5f6020828403121561254d575f80fd5b81356001600160a01b03811681146115a6575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526125ab6020820183516001600160a01b03169052565b5f60208301516125c660408401826001600160a01b03169052565b50604083015161012060608401526125e2610140840182612563565b90506060840151601f198483030160808501526125ff8282612563565b915050608084015160a084015260a084015160c084015260c084015160e084015260e084015161263b6101008501826001600160401b03169052565b506101008401516001600160401b038116610120850152509392505050565b602080825282518282018190525f918401906040840190835b8181101561269a5783516001600160a01b0316835260209384019390920191600101612673565b509095945050505050565b5f8083601f8401126126b5575f80fd5b5081356001600160401b038111156126cb575f80fd5b6020830191508360208285010111156126e2575f80fd5b9250929050565b5f805f80604085870312156126fc575f80fd5b84356001600160401b03811115612711575f80fd5b61271d878288016126a5565b90955093505060208501356001600160401b0381111561273b575f80fd5b612747878288016126a5565b95989497509550505050565b5f8060408385031215612764575f80fd5b50508035926020909101359150565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610e0c8284612773565b5f805f805f805f6080888a0312156127da575f80fd5b87356001600160401b038111156127ef575f80fd5b6127fb8a828b016126a5565b90985096505060208801356001600160401b03811115612819575f80fd5b6128258a828b016126a5565b9096509450506040880135925060608801356001600160401b0381111561284a575f80fd5b8801601f81018a1361285a575f80fd5b80356001600160401b0381111561286f575f80fd5b8a60208260051b8401011115612883575f80fd5b602082019350809250505092959891949750929550565b600181811c908216806128ae57607f821691505b6020821081036128cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610e0c57610e0c6128e6565b634e487b7160e01b5f52603260045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0387168152856020820152608060408201525f612970608083018688612921565b8281036060840152612406818587612921565b5f8151808452602084019350602083015f5b828110156129bc5781516001600160a01b0316865260209586019590910190600101612995565b5093949350505050565b602081525f825161012060208401526129e3610140840182612563565b90506020840151601f19848303016040850152612a008282612563565b915050604084015160608401526060840151612a2760808501826001600160a01b03169052565b5060808401516001600160a01b03811660a08501525060a08401516001600160a01b03811660c08501525060c08401516001600160a01b03811660e08501525060e0840151610100840152610100840151601f19848303016101208501526108268282612983565b60c08101612a9d8285612773565b6001600160a01b039290921660a09190910152919050565b5f60208284031215612ac5575f80fd5b81518060020b81146115a6575f80fd5b5f60208284031215612ae5575f80fd5b81516001600160401b03811681146115a6575f80fd5b601f821115611f8f57805f5260205f20601f840160051c81016020851015612b205750805b601f840160051c820191505b81811015612b3f575f8155600101612b2c565b5050505050565b81516001600160401b03811115612b5f57612b5f6128d2565b612b7381612b6d845461289a565b84612afb565b6020601f821160018114612ba5575f8315612b8e5750848201515b5f19600385901b1c1916600184901b178455612b3f565b5f84815260208120601f198516915b82811015612bd45787850151825560209485019460019092019101612bb4565b5084821015612bf157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b86815260c060208201525f612c1860c0830188612563565b8281036040840152612c2a8188612563565b606084019690965250506001600160401b039283166080820152911660a0909101529392505050565b600281810b9083900b01627fffff8113627fffff1982121715610e0c57610e0c6128e6565b612c82818a612773565b8760020b60a08201528660020b60c08201528560e08201526001600160801b0385166101008201526001600160801b03841661012082015260018060a01b0383166101408201526101806101608201525f612ce1610180830184612563565b9a9950505050505050505050565b5f60208284031215612cff575f80fd5b5051919050565b604081525f612d186040830185612563565b828103602084015280845180835260208301915060208160051b840101602087015f5b83811015612d6d57601f19868403018552612d57838351612563565b6020958601959093509190910190600101612d3b565b509098975050505050505050565b604081525f612d8d6040830185612563565b90508260208301529392505050565b634e487b7160e01b5f52601260045260245ffd5b5f8160020b8360020b80612dd257634e487b7160e01b5f52601260045260245ffd5b627fffff1982145f1982141615612deb57612deb6128e6565b90059392505050565b5f8260020b8260020b028060020b9150808214612e1357612e136128e6565b5092915050565b5f8160020b627fffff198103612e3257612e326128e6565b5f19019291505056fea164736f6c634300081a000a","sourceMap":"3150:18985:40:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4007:51;;4052:6;4007:51;;;;;160:25:44;;;148:2;133:18;4007:51:40;;;;;;;;3273:82;;3312:42;3273:82;;;;;-1:-1:-1;;;;;469:32:44;;;451:51;;439:2;424:18;3273:82:40;305:203:44;5385:41:40;;;;;20427:190;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;4483:40::-;;;;;6251:23;;;;;;;;;;;;2550:14:44;;2543:22;2525:41;;2513:2;2498:18;6251:23:40;2385:187:44;20322:99:40;;;:::i;:::-;;;;;;;:::i;9502:166::-;;;;;;:::i;:::-;;:::i;6369:44::-;;;;;4259:36;;;;;20937:418;;;;;;:::i;:::-;;:::i;21706:131::-;;;;;;:::i;:::-;-1:-1:-1;;;;;21793:17:40;;;21770:4;21793:17;;;:10;:17;;;;;:23;;:37;;;21706:131;5967:42;;;;;22037:96;22120:5;22037:96;;4301:34;;;;;;;;4818:8:44;4806:21;;;4788:40;;4776:2;4761:18;4301:34:40;4644:190:44;20623:98:40;20697:10;:17;20623:98;;4147:56;;;;;21843:83;21908:11;21843:83;;21426:274;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;4065:29::-;;;;;4341:41;;;;;;;;6154:1:44;6143:21;;;;6125:40;;6113:2;6098:18;4341:41:40;5983:188:44;21932:99:40;22005:19;21932:99;;20727:135;;;;;;:::i;:::-;;:::i;4100:41::-;;;;;9951:507;;;;;;:::i;:::-;;:::i;4209:44::-;;;;;6106:39;;;;;3850:56;;3890:16;3850:56;;20427:190;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20527:17:40;;;;;:10;:17;;;;;;;20520:24;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;20520:24:40;;20527:17;;20520:24;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;20520:24:40;;;-1:-1:-1;;20520:24:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20520:24:40;;;;;;;-1:-1:-1;;;20520:24:40;;;;;;;;;20558:10;;20520:24;;-1:-1:-1;;;;;;20558:24:40;20554:56;;20591:19;;-1:-1:-1;;;20591:19:40;;-1:-1:-1;;;;;469:32:44;;20591:19:40;;;451:51:44;424:18;;20591:19:40;;;;;;;;20554:56;20427:190;;;:::o;20322:99::-;20369:16;20404:10;20397:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20397:17:40;;;;;;;;;;;;;;;;;;;;;;;20322:99;:::o;9502:166::-;9587:13;9619:42;9627:4;;9633:6;;9587:13;;9644:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9644:16:40;;9619:7;:42::i;:::-;9612:49;9502:166;-1:-1:-1;;;;;9502:166:40:o;20937:418::-;21069:10;:17;21022:21;;21100;;;;:39;;;21136:3;21125:8;:14;21100:39;21096:81;;;21148:29;;-1:-1:-1;;;21148:29:40;;;;;8436:25:44;;;8477:18;;;8470:34;;;8409:18;;21148:29:40;8262:248:44;21096:81:40;21208:21;21219:10;21208:8;:21;:::i;:::-;-1:-1:-1;;;;;21194:36:40;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21194:36:40;-1:-1:-1;21187:43:40;-1:-1:-1;21257:10:40;21240:109;21273:8;21269:1;:12;21240:109;;;21325:10;21336:1;21325:13;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;21325:13:40;21302:4;21307:14;21311:10;21307:1;:14;:::i;:::-;21302:20;;;;;;;;:::i;:::-;-1:-1:-1;;;;;21302:36:40;;;:20;;;;;;;;;;;:36;21283:3;;21240:109;;;;21045:310;20937:418;;;;:::o;21426:274::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21519:16:40;;;;;;;:9;:16;;;;;;;;;21513:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21513:22:40;;;;;;;;;;-1:-1:-1;;;21513:22:40;;;;;;;;;;;;;;;;;;;;21549:44;:92;;;;-1:-1:-1;21613:13:40;;;;-1:-1:-1;;;;;21597:44:40;;21549:92;21545:149;;;21664:19;;-1:-1:-1;;;21664:19:40;;-1:-1:-1;;;;;469:32:44;;21664:19:40;;;451:51:44;424:18;;21664:19:40;305:203:44;20727:135:40;-1:-1:-1;;;;;20830:25:40;;;;;;:16;:25;;;;;;;;;20823:32;;;;;;;;;;;;;;;;;20795:16;;20823:32;;;20830:25;20823:32;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20823:32:40;;;;;;;;;;;;;;;;;;;;;;;20727:135;;;:::o;9951:507::-;10142:13;10171:18;;;:56;;;4052:6;10193:13;:34;10171:56;10167:149;;;10250:55;;-1:-1:-1;;;10250:55:40;;;;;8436:25:44;;;4052:6:40;8477:18:44;;;8470:34;8409:18;;10250:55:40;8262:248:44;10167:149:40;10355:1;10329:27;;;10325:56;;10365:16;;-1:-1:-1;;;10365:16:40;;;;;;;;;;;10325:56;10398:53;10406:4;;10412:6;;10420:13;10435:15;;10398:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10398:7:40;;-1:-1:-1;;;10398:53:40:i;:::-;10391:60;9951:507;-1:-1:-1;;;;;;;;9951:507:40:o;10464:1493::-;10640:13;10669:23;;;10665:47;;10701:11;;-1:-1:-1;;;10701:11:40;;;;;;;;;;;10665:47;10750:1;10726:25;;;10722:51;;10760:13;;-1:-1:-1;;;10760:13:40;;;;;;;;;;;10722:51;10876:11;10921;10890:16;;10921:11;;10920:12;:44;;;;-1:-1:-1;10936:10:40;-1:-1:-1;;;;;10950:14:40;10936:28;;10920:44;10916:130;;;-1:-1:-1;10980:11:40;:18;;-1:-1:-1;;10980:18:40;10994:4;10980:18;;;11018:17;10916:130;11200:10;:17;11177:55;;11152:12;;11177:55;;11188:10;;11200:17;11219:4;;;;11225:6;;;;11177:55;;;:::i;:::-;;;;;;;;;;;;;11167:66;;;;;;11152:81;;11251:52;11277:19;11298:4;11251:25;:52::i;:::-;11243:60;;11329:5;-1:-1:-1;;;;;11314:45:40;;11377:413;;;;;;;;11427:4;;11377:413;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11377:413:40;;;-1:-1:-1;11377:413:40;;;;;;;;;;;;;;;;;;;;;;;;;;;11457:6;;;;;;11377:413;;11457:6;;;;11377:413;;;;;;;;;-1:-1:-1;;;11377:413:40;;;-1:-1:-1;3890:16:40;11377:413;;;;11529:10;11377:413;;;;;;;;-1:-1:-1;;;;;11578:11:40;11377:413;;;;;;11631:5;11377:413;;;;;;11664:15;11377:413;;;;;;;;;;;;;;;;;;11314:490;;;;;-1:-1:-1;;;;;;11314:490:40;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11816:18;11836:17;11857:37;11883:5;11890:3;11857:25;:37::i;:::-;11815:79;;;;11904:46;11914:5;11921:4;;11927:6;;11935:3;11940:9;11904;:46::i;:::-;10655:1302;;;;10464:1493;;;;;;;;:::o;3871:169:5:-;3955:16;3990:43;4009:14;4025:4;4031:1;3990:18;:43::i;:::-;3983:50;;3871:169;;;;;:::o;13226:1205:40:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13343:17:40;13376:14;3890:16;13376:30;;13416:21;13456:5;-1:-1:-1;;;;;13440:22:40;:5;-1:-1:-1;;;;;13440:22:40;;13416:46;;13478:295;;;;;;;;13525:16;:41;;13560:5;13525:41;;;13544:5;13525:41;-1:-1:-1;;;;;13478:295:40;;;;;13606:16;:41;;13642:5;13606:41;;;13633:5;13606:41;-1:-1:-1;;;;;13478:295:40;;;;;13667:10;13478:295;;;;;;13704:18;13478:295;;;;;;13750:11;-1:-1:-1;;;;;13478:295:40;;;;13472:301;;13785:15;13802;13819;13838:32;13848:16;13866:3;13838:9;:32::i;:::-;13784:86;;-1:-1:-1;13784:86:40;-1:-1:-1;13784:86:40;-1:-1:-1;14145:15:40;-1:-1:-1;;;;;14066:15:40;:30;;14097:3;14102:38;13784:86;14102:27;:38::i;:::-;14066:75;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;14062:158;;14183:26;;-1:-1:-1;;;14183:26:40;;;;;;;;;;;14062:158;14230:17;14250:61;14264:16;14282:9;14293;14304:6;14250:13;:61::i;:::-;14230:81;;14333:91;14354:5;14361:6;14369:3;14374:9;14385;14396;14407:16;14333:20;:91::i;:::-;14321:103;;13366:1065;;;;;;13226:1205;;;;;:::o;12125:1001::-;12309:21;12333:353;;;;;;;;12364:5;-1:-1:-1;;;;;12333:353:40;;;;;12392:10;-1:-1:-1;;;;;12333:353:40;;;;;12422:4;;12333:353;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;12333:353:40;;;-1:-1:-1;12333:353:40;;;;;;;;;;;;;;;;;;;;;;;;;;;12448:6;;;;;;12333:353;;12448:6;;;;12333:353;;;;;;;;;-1:-1:-1;;;12333:353:40;;;-1:-1:-1;3890:16:40;12333:353;;;;;;12525:10;:3;515:4:34;496:24;;;271:265;12525:10:40;12333:353;;;;12561:9;12333:353;;;;12603:15;-1:-1:-1;;;;;12333:353:40;;;;;12658:5;-1:-1:-1;;;;;12643:30:40;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;12333:353:40;;;;12309:377;;12716:3;12697:9;:16;12707:5;-1:-1:-1;;;;;12697:16:40;-1:-1:-1;;;;;12697:16:40;;;;;;;;;;;;:22;;;;;;;;;;;;;-1:-1:-1;;;;;12697:22:40;;;;;-1:-1:-1;;;;;12697:22:40;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12697:22:40;;;;;-1:-1:-1;;;;;12697:22:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12697:22:40;;;;;-1:-1:-1;;;;;12697:22:40;;;;;;;;;12749:4;12729:10;:17;12740:5;-1:-1:-1;;;;;12729:17:40;-1:-1:-1;;;;;12729:17:40;;;;;;;;;;;;:24;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;12729:24:40;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;12763:10;12779:5;12763:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12763:22:40;;;;;-1:-1:-1;;;;;12763:22:40;;;;;;12795:16;:28;12812:10;-1:-1:-1;;;;;12795:28:40;-1:-1:-1;;;;;12795:28:40;;;;;;;;;;;;12829:5;12795:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12795:40:40;;;;;-1:-1:-1;;;;;12795:40:40;;;;;;12940:4;:11;;;12902:4;:12;;;-1:-1:-1;;;;;12851:268:40;12878:4;:10;;;-1:-1:-1;;;;;12851:268:40;;12966:4;:14;;;12994:4;:9;;;13017:4;:11;;;13042:4;:11;;;13067:4;:13;;;13094:4;:15;;;12851:268;;;;;;;;;;;:::i;:::-;;;;;;;;12299:827;12125:1001;;;;;;;:::o;4801:970:5:-;4930:16;4986:5;4962:21;:29;4958:123;;;5014:56;;-1:-1:-1;;;5014:56:5;;5041:21;5014:56;;;8436:25:44;8477:18;;;8470:34;;;8409:18;;5014:56:5;8262:248:44;4958:123:5;5364:48;5346:14;5342:2;5338:23;5333:3;5329:33;5326:87;5320:4;5313:101;5570:32;5553:14;5548:3;5544:24;5541:62;5535:4;5528:76;5656:4;5650;5644;5637:5;5629:32;5617:44;-1:-1:-1;;;;;;5684:22:5;;5680:85;;5729:25;;-1:-1:-1;;;5729:25:5;;;;;;;;;;;5680:85;4801:970;;;;;:::o;17477:1240:40:-;17579:15;;;17660:18;17579:15;17706:38;-1:-1:-1;;17660:18:40;17706:10;:38::i;:::-;17688:56;-1:-1:-1;;;17758:29:40;;;;;17754:55;;;17789:20;17802:7;17789:20;;:::i;:::-;;;17754:55;17819:15;17837:38;1317:6:30;17867:7:40;17837:10;:38::i;:::-;17819:56;;17886:13;17902:35;17915:16;17933:3;17902:12;:35::i;:::-;17886:51;;17952:16;17948:691;;;18140:28;18151:7;18160;18140:10;:28::i;:::-;18128:40;;18194:9;18182:21;;18229:9;18217:21;;17948:691;;;18531:9;18519:21;;18566:27;18576:7;18585;18566:9;:27::i;:::-;18554:39;;18619:9;18607:21;;17948:691;18666:9;18653:22;;:9;:22;;;18649:61;;18684:26;;-1:-1:-1;;;18684:26:40;;;;;160:25:44;;;133:18;;18684:26:40;14:177:44;18649:61:40;17634:1083;;;;17477:1240;;;;;:::o;3149:4018:30:-;3359:1;3348:19;3212:20;3458:3;3454:14;;;3726:15;;;3716:26;1317:6;3774:35;;3770:78;;;3811:37;-1:-1:-1;;;3843:4:30;3811:31;:37::i;:::-;4456:52;4523:3;4510:17;;4452:76;-1:-1:-1;;;4435:94:30;4570:3;4560:13;;:18;4556:83;;4597:34;4589:42;4636:3;4588:51;4556:83;4667:3;4657:13;;:18;4653:83;;4694:34;4686:42;4733:3;4685:51;4653:83;4764:3;4754:13;;:18;4750:83;;4791:34;4783:42;4830:3;4782:51;4750:83;4861:4;4851:14;;:19;4847:84;;4889:34;4881:42;4928:3;4880:51;4847:84;4959:4;4949:14;;:19;4945:84;;4987:34;4979:42;5026:3;4978:51;4945:84;5057:4;5047:14;;:19;5043:84;;5085:34;5077:42;5124:3;5076:51;5043:84;5155:4;5145:14;;:19;5141:84;;5183:34;5175:42;5222:3;5174:51;5141:84;5253:5;5243:15;;:20;5239:85;;5282:34;5274:42;5321:3;5273:51;5239:85;5352:5;5342:15;;:20;5338:85;;5381:34;5373:42;5420:3;5372:51;5338:85;5451:5;5441:15;;:20;5437:85;;5480:34;5472:42;5519:3;5471:51;5437:85;5550:5;5540:15;;:20;5536:85;;5579:34;5571:42;5618:3;5570:51;5536:85;5649:6;5639:16;;:21;5635:86;;5679:34;5671:42;5718:3;5670:51;5635:86;5749:6;5739:16;;:21;5735:86;;5779:34;5771:42;5818:3;5770:51;5735:86;5849:6;5839:16;;:21;5835:86;;5879:34;5871:42;5918:3;5870:51;5835:86;5949:6;5939:16;;:21;5935:86;;5979:34;5971:42;6018:3;5970:51;5935:86;6049:7;6039:17;;:22;6035:86;;6080:33;6072:41;6118:3;6071:50;6035:86;6149:7;6139:17;;:22;6135:85;;6180:32;6172:40;6217:3;6171:49;6135:85;6248:7;6238:17;;:22;6234:83;;6279:30;6271:38;6314:3;6270:47;6234:83;6345:7;6335:17;;:22;6331:78;;6376:25;6368:33;6406:3;6367:42;6331:78;6548:1;6542:4;6538:12;6535:47;;;-1:-1:-1;;6562:18:30;6535:47;7117:18;7106:30;7125:2;7098:39;;3149:4018;-1:-1:-1;;;3149:4018:30:o;14521:571:40:-;14664:17;14697;14717:38;14745:9;14717:27;:38::i;:::-;14697:58;;14765:17;14785:38;14813:9;14785:27;:38::i;:::-;14765:58;;14845:16;:184;;14960:69;15000:9;15011;15022:6;14960:39;:69::i;:::-;14845:184;;;14876:69;14916:9;14927;14938:6;14876:39;:69::i;:::-;14833:196;;15043:9;-1:-1:-1;;;;;15043:14:40;15056:1;15043:14;15039:46;;15066:19;;-1:-1:-1;;;15066:19:40;;;;;;;;;;;15039:46;14687:405;;14521:571;;;;;;:::o;15357:1836::-;15594:17;15623:60;-1:-1:-1;;;;;15623:26:40;;15658:15;15676:6;15623:26;:60::i;:::-;15729:91;;-1:-1:-1;;;15729:91:40;;;15726:49:44;-1:-1:-1;;;15791:11:44;;;15784:57;-1:-1:-1;;;15857:11:44;;;15850:57;15694:20:40;;15923:11:44;;15729:91:40;;;;;;-1:-1:-1;;15729:91:40;;;15866:1;15854:14;;;;;;;;;15729:91;-1:-1:-1;15830:21:40;;15729:91;15854:14;;;;;;;;;;;;;;;;;;;;15830:38;;15914:3;15931:9;15954;15985;-1:-1:-1;;;;;15977:18:40;16179:16;:47;;16224:1;16179:47;;;16206:6;16179:47;16240:16;:47;;16280:6;16240:47;;;16267:1;16240:47;16328:9;;;;;;;;;-1:-1:-1;16328:9:40;;15890:457;;;;;;;;;;16309:4;;16328:9;15890:457;;:::i;:::-;;;;;;;;;;;;;15878:6;15885:1;15878:9;;;;;;;;:::i;:::-;;;;;;;;;;;:469;;;;16369:67;;;-1:-1:-1;;;;;17116:32:44;;16369:67:40;;;17098:51:44;;;;434:1:37;17165:18:44;;;17158:75;;;17249:18;;;17242:50;17071:18;;16369:67:40;;;;;;;;;;;;16357:6;16364:1;16357:9;;;;;;;;:::i;:::-;;;;;;:79;;;;16483:5;16499:4;16458:47;;;;;;;;-1:-1:-1;;;;;17524:32:44;;;17506:51;;17593:32;;17588:2;17573:18;;17566:60;17494:2;17479:18;;17303:329;16458:47:40;;;;;;;;;;;;;16446:6;16453:1;16446:9;;;;;;;;:::i;:::-;;;;;;:59;;;;16528:15;-1:-1:-1;;;;;16528:27:40;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;16516:41;;16567:15;-1:-1:-1;;;;;16567:33:40;;16612:7;16621:6;16601:27;;;;;;;;;:::i;:::-;;;;;;;;;;;;;16630:15;16567:79;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16824:60:40;;-1:-1:-1;;;16824:60:40;;16861:4;16824:60;;;19230:51:44;3312:42:40;19297:18:44;;;19290:60;19366:18;;;19359:34;;;16824:15:40;-1:-1:-1;;;;;16824:28:40;;-1:-1:-1;16824:28:40;;-1:-1:-1;19203:18:44;;16824:60:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;17085:38:40;;-1:-1:-1;;;17085:38:40;;17117:4;17085:38;;;451:51:44;17070:12:40;;-1:-1:-1;;;;;;17085:23:40;;;-1:-1:-1;17085:23:40;;424:18:44;;17085:38:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;17070:53;-1:-1:-1;17137:9:40;;17133:53;;17148:38;-1:-1:-1;;;;;17148:26:40;;3312:42;17181:4;17148:26;:38::i;:::-;15613:1580;;;15357:1836;;;;;;;;;:::o;19651:224::-;19721:5;;19755:14;19762:7;19755:4;:14;:::i;:::-;19738:31;;19790:1;19783:4;:8;;;:38;;;;-1:-1:-1;19795:26:40;;;;:18;19806:7;19795:8;:18;:::i;:::-;:26;;;;19783:38;19779:54;;;19823:10;;;:::i;:::-;;;19779:54;19850:18;19861:7;19850:8;:18;:::i;:::-;19843:25;19651:224;-1:-1:-1;;;;19651:224:40:o;18982:567::-;19063:5;19080:17;19100:16;:148;;19207:41;3890:16;-1:-1:-1;;;19244:3:40;19207:15;:41::i;:::-;19100:148;;;19131:41;19147:3;-1:-1:-1;;;3890:16:40;19131:15;:41::i;:::-;19080:168;;19278:20;19301;19311:9;19301;:20::i;:::-;19278:43;-1:-1:-1;1862:10:30;19335:38:40;;;:81;;-1:-1:-1;2042:49:30;19377:39:40;;;19335:81;19331:145;;;19439:26;;-1:-1:-1;;;19439:26:40;;;;;160:25:44;;;133:18;;19439:26:40;14:177:44;19331:145:40;19492:50;19528:12;19492:27;:50::i;19944:196::-;20013:5;20030:13;20046:25;20057:4;20063:7;20046:10;:25::i;:::-;20030:41;;20099:4;20088:15;;:7;:15;;;:45;;20116:17;20126:7;20116;:17;:::i;:::-;20088:45;;1357:223:26;1480:8;1477:1;1470:19;1529:5;1526:1;1515:20;1509:4;1502:34;1559:4;1556:1;1549:15;1850:420:39;1992:17;2069:13;-1:-1:-1;;;;;2053:29:39;:13;-1:-1:-1;;;;;2053:29:39;;2049:98;;;2118:13;;2133;2049:98;2168:85;:73;2184:7;-1:-1:-1;;;2227:13:39;2211;:29;-1:-1:-1;;;;;2168:73:39;:15;:73::i;:::-;:83;:85::i;895:516::-;1037:17;1114:13;-1:-1:-1;;;;;1098:29:39;:13;-1:-1:-1;;;;;1098:29:39;;1094:98;;;1163:13;;1178;1094:98;1206:20;1229:63;1245:13;-1:-1:-1;;;;;1229:63:39;1260:13;-1:-1:-1;;;;;1229:63:39;-1:-1:-1;;;1229:15:39;:63::i;:::-;1206:86;;1313:81;:69;1329:7;1338:12;1368:13;1352;:29;-1:-1:-1;;;;;1313:69:39;:15;:69::i;1290:204:9:-;1377:37;1391:5;1398:2;1402:5;1409:4;1377:13;:37::i;:::-;1372:116;;1437:40;;-1:-1:-1;;;1437:40:9;;-1:-1:-1;;;;;469:32:44;;1437:40:9;;;451:51:44;424:18;;1437:40:9;305:203:44;1372:116:9;1290:204;;;:::o;741:4141:28:-;823:14;1212:5;;;823:14;-1:-1:-1;;1216:1:28;1212;1400:20;1473:5;1469:2;1466:13;1458:5;1454:2;1450:14;1446:34;1437:43;;;1633:5;1619:11;:19;1611:28;;;;;;1720:5;1729:1;1720:10;1716:177;;-1:-1:-1;1807:23:28;;;;-1:-1:-1;1865:13:28;;1716:177;2193:17;2293:11;2290:1;2287;2280:25;2701:12;2717:15;;;2716:31;;2869:22;;;;;3776:1;3757;:15;;3756:21;;4019:17;;;4015:21;;4008:28;4081:17;;;4077:21;;4070:28;4144:17;;;4140:21;;4133:28;4207:17;;;4203:21;;4196:28;4270:17;;;4266:21;;4259:28;4334:17;;;4330:21;;;4323:28;3313:12;;;;3309:23;;;3334:1;3305:31;2454:20;;;2443:32;;;3372:12;;;;2501:21;;;;3029:16;;;;3363:21;;;;4827:11;;;;;-1:-1:-1;;741:4141:28;;;;;:::o;20859:5181:16:-;20907:7;21025:1;21020;:6;21016:53;;-1:-1:-1;21053:1:16;20859:5181::o;21016:53::-;22009:1;22037;-1:-1:-1;;;22057:16:16;;22053:92;;22100:3;22093:10;;;;;22128:2;22121:9;22053:92;-1:-1:-1;;;22162:2:16;:15;22158:90;;22204:2;22197:9;;;;;22231:2;22224:9;22158:90;22272:7;22265:2;:15;22261:90;;22307:2;22300:9;;;;;22334:2;22327:9;22261:90;22375:7;22368:2;:15;22364:89;;22410:2;22403:9;;;;;22437:1;22430:8;22364:89;22477:6;22470:2;:14;22466:87;;22511:1;22504:8;;;;;22537:1;22530:8;22466:87;22577:6;22570:2;:14;22566:87;;22611:1;22604:8;;;;;22637:1;22630:8;22566:87;22677:6;22670:2;:14;22666:61;;22711:1;22704:8;22666:61;23153:1;:6;23164:1;23152:13;;;;;25063:1;23152:13;25063:6;;;;:::i;:::-;;25058:2;:11;25057:18;;25052:23;;25183:1;25176:2;25172:1;:6;;;;;:::i;:::-;;25167:2;:11;25166:18;;25161:23;;25294:1;25287:2;25283:1;:6;;;;;:::i;:::-;;25278:2;:11;25277:18;;25272:23;;25403:1;25396:2;25392:1;:6;;;;;:::i;:::-;;25387:2;:11;25386:18;;25381:23;;25513:1;25506:2;25502:1;:6;;;;;:::i;:::-;;25497:2;:11;25496:18;;25491:23;;25623:1;25616:2;25612:1;:6;;;;;:::i;:::-;;25607:2;:11;25606:18;;25601:23;;25995:28;26020:2;26016:1;:6;;;;;:::i;:::-;;26011:11;;;34797:145:17;25995:28:16;25990:33;;;20859:5181;-1:-1:-1;;;20859:5181:16:o;7627:4752:30:-;7700:10;2282:66;-1:-1:-1;;8183:29:30;;-1:-1:-1;;;;;8182:79:30;;8178:168;;;8281:50;-1:-1:-1;;;8318:12:30;8281:36;:50::i;:::-;-1:-1:-1;;;;;8401:2:30;8376:27;;;;;8360:13;8463:29;8376:27;8463:26;:29::i;:::-;8449:43;;;;8518:3;8511;:10;8507:83;;8543:3;8537;:9;8527:5;:20;;8523:24;;8507:83;;;8586:3;8580;:9;8570:5;:20;;8566:24;;8507:83;8717:9;;;8712:3;8708:19;;;8753:11;;;;8833:9;;;;8926;;8917:19;;;8962:11;;;9042:9;9135;;9126:19;;;9171:11;;;9251:9;9344;;9335:19;;;9380:11;;;9460:9;9553;;9544:19;;;9589:11;;;9669:9;9762;;9753:19;;;9798:11;;;9878:9;9971;;9962:19;;;10007:11;;;10087:9;10180;;10171:19;;;10216:11;;;10296:9;10389;;10380:19;;;10425:11;;;10505:9;10598;;10589:19;;;10634:11;;;10714:9;10807;;10798:19;;;10843:11;;;10923:9;11016;;11007:19;;;11052:11;;;11132:9;11225;;11216:19;;;11261:11;;;;11341:9;;;;11434;;11425:19;;;;;8717:9;-1:-1:-1;;8621:17:30;;8643:2;8620:25;8800:10;;;;;;;8790:21;9009:10;;;;;;;8999:21;;;;9218:10;;;;;;;9208:21;;;;9427:10;;;;;;;9417:21;;;;9636:10;;;;;;;9626:21;;;;9845:10;;;;;;;9835:21;;;;10054:10;;;;;;;10044:21;10263:10;;;;;;;10253:21;10472:10;;;;;;;10462:21;10681:10;;;;;;;10671:21;10890:10;;;;;;;10880:21;11099:10;;;;;;;11089:21;11308:10;;;;;;;11298:21;11517:10;;;;;;;11507:21;11587:24;11579:32;;-1:-1:-1;;11788:53:30;;8635:3;11787:62;;;;12201:39;12185:55;;12184:64;;12271:17;;;;;;;;;:91;;12331:12;-1:-1:-1;;;;;12301:42:30;:26;12320:6;12301:18;:26::i;:::-;-1:-1:-1;;;;;12301:42:30;;;:61;;12355:7;12271:91;;12301:61;12346:6;12271:91;;;12291:7;12271:91;12264:98;7627:4752;-1:-1:-1;;;;;;;;;7627:4752:30:o;790:155:29:-;876:1;-1:-1:-1;;;;;892:6:29;;;;888:50;;900:38;-1:-1:-1;;;900:36:29;:38::i;9022:1244:9:-;9249:4;9243:11;-1:-1:-1;;;9116:12:9;9267:22;;;-1:-1:-1;;;;;9315:24:9;;9309:4;9302:38;9360:4;9353:19;;;9116:12;9436:4;9116:12;9424:4;9116:12;;9408:5;9401;9396:45;9385:56;;9653:1;9646:4;9640:11;9637:18;9628:7;9624:32;9614:606;;9785:6;9775:7;9768:15;9764:28;9761:165;;;9841:16;9835:4;9830:3;9815:43;9891:16;9886:3;9879:29;9761:165;10202:1;10194:5;10182:18;10179:25;10160:16;10153:24;10149:56;10140:7;10136:70;10125:81;;9614:606;10240:4;10233:17;-1:-1:-1;9022:1244:9;;-1:-1:-1;;;;9022:1244:9:o;1672:259:26:-;1797:8;1794:1;1787:19;-1:-1:-1;;;;;1836:5:26;1832:54;1826:4;1819:68;1910:4;1907:1;1900:15;653:664:25;715:7;746:1;742;:5;734:14;;;;;;-1:-1:-1;1233:66:25;1158:4;1179:34;-1:-1:-1;;;;;810:41:25;-1:-1:-1;807:1:25;803:49;906:9;;;-1:-1:-1;;;;;883:33:25;880:1;876:41;870:48;964:9;;;952:10;949:25;946:1;942:33;936:40;1018:9;;;1010:6;1007:21;1004:1;1000:29;994:36;1070:9;;;1064:4;1061:19;1058:1;1054:27;1048:34;1168:9;;;1164:50;1154:61;1149:151;1143:158;;653:664::o;753:163:26:-;863:8;860:1;853:19;895:4;892:1;885:15;513:286:44;572:6;625:2;613:9;604:7;600:23;596:32;593:52;;;641:1;638;631:12;593:52;667:23;;-1:-1:-1;;;;;719:31:44;;709:42;;699:70;;765:1;762;755:12;804:289;846:3;884:5;878:12;911:6;906:3;899:19;967:6;960:4;953:5;949:16;942:4;937:3;933:14;927:47;1019:1;1012:4;1003:6;998:3;994:16;990:27;983:38;1082:4;1075:2;1071:7;1066:2;1058:6;1054:15;1050:29;1045:3;1041:39;1037:50;1030:57;;;804:289;;;;:::o;1205:1175::-;1390:2;1379:9;1372:21;1402:53;1451:2;1440:9;1436:18;1427:6;1421:13;-1:-1:-1;;;;;262:31:44;250:44;;196:104;1402:53;1353:4;1502:2;1494:6;1490:15;1484:22;1515:52;1563:2;1552:9;1548:18;1534:12;-1:-1:-1;;;;;262:31:44;250:44;;196:104;1515:52;;1616:2;1608:6;1604:15;1598:22;1656:6;1651:2;1640:9;1636:18;1629:34;1686:54;1735:3;1724:9;1720:19;1704:14;1686:54;:::i;:::-;1672:68;;1789:2;1781:6;1777:15;1771:22;1862:2;1858:7;1846:9;1838:6;1834:22;1830:36;1824:3;1813:9;1809:19;1802:65;1890:41;1924:6;1908:14;1890:41;:::i;:::-;1876:55;;;1986:3;1978:6;1974:16;1968:23;1962:3;1951:9;1947:19;1940:52;2047:3;2039:6;2035:16;2029:23;2023:3;2012:9;2008:19;2001:52;2108:3;2100:6;2096:16;2090:23;2084:3;2073:9;2069:19;2062:52;2163:3;2155:6;2151:16;2145:23;2177:54;2226:3;2215:9;2211:19;2195:14;-1:-1:-1;;;;;1163:30:44;1151:43;;1098:102;2177:54;-1:-1:-1;2280:3:44;2268:16;;2262:23;-1:-1:-1;;;;;1163:30:44;;2343:6;2328:22;;1151:43;-1:-1:-1;2368:6:44;1205:1175;-1:-1:-1;;;1205:1175:44:o;2577:637::-;2767:2;2779:21;;;2849:13;;2752:18;;;2871:22;;;2719:4;;2950:15;;;2924:2;2909:18;;;2719:4;2993:195;3007:6;3004:1;3001:13;2993:195;;;3072:13;;-1:-1:-1;;;;;3068:39:44;3056:52;;3137:2;3163:15;;;;3128:12;;;;3104:1;3022:9;2993:195;;;-1:-1:-1;3205:3:44;;2577:637;-1:-1:-1;;;;;2577:637:44:o;3219:348::-;3271:8;3281:6;3335:3;3328:4;3320:6;3316:17;3312:27;3302:55;;3353:1;3350;3343:12;3302:55;-1:-1:-1;3376:20:44;;-1:-1:-1;;;;;3408:30:44;;3405:50;;;3451:1;3448;3441:12;3405:50;3488:4;3480:6;3476:17;3464:29;;3540:3;3533:4;3524:6;3516;3512:19;3508:30;3505:39;3502:59;;;3557:1;3554;3547:12;3502:59;3219:348;;;;;:::o;3572:716::-;3664:6;3672;3680;3688;3741:2;3729:9;3720:7;3716:23;3712:32;3709:52;;;3757:1;3754;3747:12;3709:52;3797:9;3784:23;-1:-1:-1;;;;;3822:6:44;3819:30;3816:50;;;3862:1;3859;3852:12;3816:50;3901:59;3952:7;3943:6;3932:9;3928:22;3901:59;:::i;:::-;3979:8;;-1:-1:-1;3875:85:44;-1:-1:-1;;4067:2:44;4052:18;;4039:32;-1:-1:-1;;;;;4083:32:44;;4080:52;;;4128:1;4125;4118:12;4080:52;4167:61;4220:7;4209:8;4198:9;4194:24;4167:61;:::i;:::-;3572:716;;;;-1:-1:-1;4247:8:44;-1:-1:-1;;;;3572:716:44:o;4293:346::-;4361:6;4369;4422:2;4410:9;4401:7;4397:23;4393:32;4390:52;;;4438:1;4435;4428:12;4390:52;-1:-1:-1;;4483:23:44;;;4603:2;4588:18;;;4575:32;;-1:-1:-1;4293:346:44:o;5079:424::-;5156:12;;-1:-1:-1;;;;;5152:38:44;;;5140:51;;5244:4;5233:16;;;5227:23;5223:49;;5207:14;;;5200:73;5326:4;5315:16;;;5309:23;5334:8;5305:38;5289:14;;;5282:62;5407:4;5396:16;;;5390:23;5387:1;5376:38;5360:14;;;5353:62;5468:4;5457:16;;;5451:23;5447:49;5431:14;;5424:73;5079:424::o;5508:247::-;5692:3;5677:19;;5705:44;5681:9;5731:6;5705:44;:::i;6405:1335::-;6542:6;6550;6558;6566;6574;6582;6590;6643:3;6631:9;6622:7;6618:23;6614:33;6611:53;;;6660:1;6657;6650:12;6611:53;6700:9;6687:23;-1:-1:-1;;;;;6725:6:44;6722:30;6719:50;;;6765:1;6762;6755:12;6719:50;6804:59;6855:7;6846:6;6835:9;6831:22;6804:59;:::i;:::-;6882:8;;-1:-1:-1;6778:85:44;-1:-1:-1;;6970:2:44;6955:18;;6942:32;-1:-1:-1;;;;;6986:32:44;;6983:52;;;7031:1;7028;7021:12;6983:52;7070:61;7123:7;7112:8;7101:9;7097:24;7070:61;:::i;:::-;7150:8;;-1:-1:-1;7044:87:44;-1:-1:-1;;7254:2:44;7239:18;;7226:32;;-1:-1:-1;7335:2:44;7320:18;;7307:32;-1:-1:-1;;;;;7351:32:44;;7348:52;;;7396:1;7393;7386:12;7348:52;7419:24;;7474:4;7466:13;;7462:27;-1:-1:-1;7452:55:44;;7503:1;7500;7493:12;7452:55;7543:2;7530:16;-1:-1:-1;;;;;7561:6:44;7558:30;7555:50;;;7601:1;7598;7591:12;7555:50;7654:7;7649:2;7639:6;7636:1;7632:14;7628:2;7624:23;7620:32;7617:45;7614:65;;;7675:1;7672;7665:12;7614:65;7706:2;7702;7698:11;7688:21;;7728:6;7718:16;;;;6405:1335;;;;;;;;;;:::o;7745:380::-;7824:1;7820:12;;;;7867;;;7888:61;;7942:4;7934:6;7930:17;7920:27;;7888:61;7995:2;7987:6;7984:14;7964:18;7961:38;7958:161;;8041:10;8036:3;8032:20;8029:1;8022:31;8076:4;8073:1;8066:15;8104:4;8101:1;8094:15;7958:161;;7745:380;;;:::o;8130:127::-;8191:10;8186:3;8182:20;8179:1;8172:31;8222:4;8219:1;8212:15;8246:4;8243:1;8236:15;8515:127;8576:10;8571:3;8567:20;8564:1;8557:31;8607:4;8604:1;8597:15;8631:4;8628:1;8621:15;8647:128;8714:9;;;8735:11;;;8732:37;;;8749:18;;:::i;8780:127::-;8841:10;8836:3;8832:20;8829:1;8822:31;8872:4;8869:1;8862:15;8896:4;8893:1;8886:15;8912:267;9001:6;8996:3;8989:19;9053:6;9046:5;9039:4;9034:3;9030:14;9017:43;-1:-1:-1;9105:1:44;9080:16;;;9098:4;9076:27;;;9069:38;;;;9161:2;9140:15;;;-1:-1:-1;;9136:29:44;9127:39;;;9123:50;;8912:267::o;9184:607::-;9486:1;9482;9477:3;9473:11;9469:19;9461:6;9457:32;9446:9;9439:51;9526:6;9521:2;9510:9;9506:18;9499:34;9569:3;9564:2;9553:9;9549:18;9542:31;9420:4;9596:63;9654:3;9643:9;9639:19;9631:6;9623;9596:63;:::i;:::-;9707:9;9699:6;9695:22;9690:2;9679:9;9675:18;9668:50;9735;9778:6;9770;9762;9735:50;:::i;9796:446::-;9849:3;9887:5;9881:12;9914:6;9909:3;9902:19;9946:4;9941:3;9937:14;9930:21;;9985:4;9978:5;9974:16;10008:1;10018:199;10032:6;10029:1;10026:13;10018:199;;;10097:13;;-1:-1:-1;;;;;10093:39:44;10081:52;;10162:4;10153:14;;;;10190:17;;;;10129:1;10047:9;10018:199;;;-1:-1:-1;10233:3:44;;9796:446;-1:-1:-1;;;;9796:446:44:o;10247:1335::-;10432:2;10421:9;10414:21;10395:4;10470:6;10464:13;10513:6;10508:2;10497:9;10493:18;10486:34;10543:52;10590:3;10579:9;10575:19;10561:12;10543:52;:::i;:::-;10529:66;;10644:2;10636:6;10632:15;10626:22;10716:2;10712:7;10700:9;10692:6;10688:22;10684:36;10679:2;10668:9;10664:18;10657:64;10744:41;10778:6;10762:14;10744:41;:::i;:::-;10730:55;;;10839:2;10831:6;10827:15;10821:22;10816:2;10805:9;10801:18;10794:50;10893:2;10885:6;10881:15;10875:22;10906:55;10956:3;10945:9;10941:19;10925:14;-1:-1:-1;;;;;262:31:44;250:44;;196:104;10906:55;-1:-1:-1;11010:3:44;10998:16;;10992:23;-1:-1:-1;;;;;262:31:44;;11074:3;11059:19;;250:44;-1:-1:-1;11128:3:44;11116:16;;11110:23;-1:-1:-1;;;;;262:31:44;;11192:3;11177:19;;250:44;-1:-1:-1;11246:3:44;11234:16;;11228:23;-1:-1:-1;;;;;262:31:44;;11310:3;11295:19;;250:44;11260:55;11370:3;11362:6;11358:16;11352:23;11346:3;11335:9;11331:19;11324:52;11425:3;11417:6;11413:16;11407:23;11502:2;11498:7;11486:9;11478:6;11474:22;11470:36;11461:6;11450:9;11446:22;11439:68;11524:52;11569:6;11553:14;11524:52;:::i;11587:345::-;11799:3;11784:19;;11812:44;11788:9;11838:6;11812:44;:::i;:::-;-1:-1:-1;;;;;11893:32:44;;;;11913:3;11872:19;;;;11865:61;11587:345;;-1:-1:-1;11587:345:44:o;11937:277::-;12005:6;12058:2;12046:9;12037:7;12033:23;12029:32;12026:52;;;12074:1;12071;12064:12;12026:52;12106:9;12100:16;12159:5;12156:1;12145:20;12138:5;12135:31;12125:59;;12180:1;12177;12170:12;12219:288;12288:6;12341:2;12329:9;12320:7;12316:23;12312:32;12309:52;;;12357:1;12354;12347:12;12309:52;12389:9;12383:16;-1:-1:-1;;;;;12432:5:44;12428:30;12421:5;12418:41;12408:69;;12473:1;12470;12463:12;12638:518;12740:2;12735:3;12732:11;12729:421;;;12776:5;12773:1;12766:16;12820:4;12817:1;12807:18;12890:2;12878:10;12874:19;12871:1;12867:27;12861:4;12857:38;12926:4;12914:10;12911:20;12908:47;;;-1:-1:-1;12949:4:44;12908:47;13004:2;12999:3;12995:12;12992:1;12988:20;12982:4;12978:31;12968:41;;13059:81;13077:2;13070:5;13067:13;13059:81;;;13136:1;13122:16;;13103:1;13092:13;13059:81;;;13063:3;;12638:518;;;:::o;13332:1299::-;13458:3;13452:10;-1:-1:-1;;;;;13477:6:44;13474:30;13471:56;;;13507:18;;:::i;:::-;13536:97;13626:6;13586:38;13618:4;13612:11;13586:38;:::i;:::-;13580:4;13536:97;:::i;:::-;13682:4;13713:2;13702:14;;13730:1;13725:649;;;;14418:1;14435:6;14432:89;;;-1:-1:-1;14487:19:44;;;14481:26;14432:89;-1:-1:-1;;13289:1:44;13285:11;;;13281:24;13277:29;13267:40;13313:1;13309:11;;;13264:57;14534:81;;13695:930;;13725:649;12585:1;12578:14;;;12622:4;12609:18;;-1:-1:-1;;13761:20:44;;;13879:222;13893:7;13890:1;13887:14;13879:222;;;13975:19;;;13969:26;13954:42;;14082:4;14067:20;;;;14035:1;14023:14;;;;13909:12;13879:222;;;13883:3;14129:6;14120:7;14117:19;14114:201;;;14190:19;;;14184:26;-1:-1:-1;;14273:1:44;14269:14;;;14285:3;14265:24;14261:37;14257:42;14242:58;14227:74;;14114:201;-1:-1:-1;;;;14361:1:44;14345:14;;;14341:22;14328:36;;-1:-1:-1;13332:1299:44:o;14636:718::-;14942:6;14931:9;14924:25;14985:3;14980:2;14969:9;14965:18;14958:31;14905:4;15012:46;15053:3;15042:9;15038:19;15030:6;15012:46;:::i;:::-;15106:9;15098:6;15094:22;15089:2;15078:9;15074:18;15067:50;15134:33;15160:6;15152;15134:33;:::i;:::-;15198:2;15183:18;;15176:34;;;;-1:-1:-1;;;;;;;15247:31:44;;;15241:3;15226:19;;15219:60;15316:31;;15310:3;15295:19;;;15288:60;15126:41;14636:718;-1:-1:-1;;;14636:718:44:o;15359:189::-;15455:1;15426:16;;;15444;;;;15422:39;15509:7;15476:18;;-1:-1:-1;;15496:22:44;;15473:46;15470:72;;;15522:18;;:::i;15945:923::-;16312:44;16346:9;16338:6;16312:44;:::i;:::-;16407:6;16404:1;16393:21;16387:3;16376:9;16372:19;16365:50;16466:6;16463:1;16452:21;16446:3;16435:9;16431:19;16424:50;16511:6;16505:3;16494:9;16490:19;16483:35;-1:-1:-1;;;;;16559:6:44;16555:47;16549:3;16538:9;16534:19;16527:76;-1:-1:-1;;;;;16644:6:44;16640:47;16634:3;16623:9;16619:19;16612:76;16754:1;16750;16745:3;16741:11;16737:19;16729:6;16725:32;16719:3;16708:9;16704:19;16697:61;16795:3;16789;16778:9;16774:19;16767:32;16293:4;16816:46;16857:3;16846:9;16842:19;16834:6;16816:46;:::i;:::-;16808:54;15945:923;-1:-1:-1;;;;;;;;;;15945:923:44:o;17637:184::-;17707:6;17760:2;17748:9;17739:7;17735:23;17731:32;17728:52;;;17776:1;17773;17766:12;17728:52;-1:-1:-1;17799:16:44;;17637:184;-1:-1:-1;17637:184:44:o;17826:903::-;18069:2;18058:9;18051:21;18032:4;18095:45;18136:2;18125:9;18121:18;18113:6;18095:45;:::i;:::-;18188:9;18180:6;18176:22;18171:2;18160:9;18156:18;18149:50;18219:6;18254;18248:13;18285:6;18277;18270:22;18320:2;18312:6;18308:15;18301:22;;18379:2;18369:6;18366:1;18362:14;18354:6;18350:27;18346:36;18417:2;18409:6;18405:15;18438:1;18448:252;18462:6;18459:1;18456:13;18448:252;;;18552:2;18548:7;18539:6;18531;18527:19;18523:33;18518:3;18511:46;18580:40;18613:6;18604;18598:13;18580:40;:::i;:::-;18655:2;18678:12;;;;18570:50;;-1:-1:-1;18643:15:44;;;;;18484:1;18477:9;18448:252;;;-1:-1:-1;18717:6:44;;17826:903;-1:-1:-1;;;;;;;;17826:903:44:o;18734:289::-;18909:2;18898:9;18891:21;18872:4;18929:45;18970:2;18959:9;18955:18;18947:6;18929:45;:::i;:::-;18921:53;;19010:6;19005:2;18994:9;18990:18;18983:34;18734:289;;;;;:::o;19404:127::-;19465:10;19460:3;19456:20;19453:1;19446:31;19496:4;19493:1;19486:15;19520:4;19517:1;19510:15;19536:372;19574:1;19615;19612;19601:16;19651:1;19648;19637:16;19672:3;19662:134;;19718:10;19713:3;19709:20;19706:1;19699:31;19753:4;19750:1;19743:15;19781:4;19778:1;19771:15;19662:134;-1:-1:-1;;19812:21:44;;-1:-1:-1;;19835:15:44;;19808:43;19805:69;;;19854:18;;:::i;:::-;19888:14;;;19536:372;-1:-1:-1;;;19536:372:44:o;19913:237::-;19951:7;20028:1;20025;20014:16;20010:1;20007;19996:16;19992:39;20065:11;20062:1;20051:26;20040:37;;20108:11;20099:7;20096:24;20086:58;;20124:18;;:::i;:::-;20086:58;19913:237;;;;:::o;20155:192::-;20192:3;20239:5;20236:1;20225:20;20273:7;20269:12;20260:7;20257:25;20254:51;;20285:18;;:::i;:::-;-1:-1:-1;;20321:20:44;;20155:192;-1:-1:-1;;20155:192:44:o","linkReferences":{},"cborAuxdata":{},"immutableReferences":{"8389":[{"start":870,"length":32},{"start":1087,"length":32},{"start":3369,"length":32},{"start":3664,"length":32},{"start":3735,"length":32},{"start":3800,"length":32}],"8392":[{"start":1241,"length":32},{"start":3329,"length":32}],"8395":[{"start":978,"length":32},{"start":4011,"length":32},{"start":6582,"length":32},{"start":7005,"length":32},{"start":7135,"length":32},{"start":7323,"length":32}],"8397":[{"start":1181,"length":32},{"start":1299,"length":32}],"8399":[{"start":731,"length":32},{"start":1014,"length":32},{"start":3932,"length":32}],"8401":[{"start":911,"length":32},{"start":3848,"length":32}],"8403":[{"start":1126,"length":32},{"start":3891,"length":32},{"start":5554,"length":32}],"8406":[{"start":585,"length":32},{"start":3409,"length":32}],"8409":[{"start":514,"length":32},{"start":2911,"length":32}],"8412":[{"start":834,"length":32},{"start":3019,"length":32}],"8415":[{"start":1338,"length":32},{"start":2965,"length":32}],"8421":[{"start":692,"length":32},{"start":3111,"length":32}]},"transformations":[{"id":"8409","type":"replace","offset":514,"reason":"immutable"},{"id":"8406","type":"replace","offset":585,"reason":"immutable"},{"id":"8421","type":"replace","offset":692,"reason":"immutable"},{"id":"8399","type":"replace","offset":731,"reason":"immutable"},{"id":"8412","type":"replace","offset":834,"reason":"immutable"},{"id":"8389","type":"replace","offset":870,"reason":"immutable"},{"id":"8401","type":"replace","offset":911,"reason":"immutable"},{"id":"8395","type":"replace","offset":978,"reason":"immutable"},{"id":"8399","type":"replace","offset":1014,"reason":"immutable"},{"id":"8389","type":"replace","offset":1087,"reason":"immutable"},{"id":"8403","type":"replace","offset":1126,"reason":"immutable"},{"id":"8397","type":"replace","offset":1181,"reason":"immutable"},{"id":"8392","type":"replace","offset":1241,"reason":"immutable"},{"id":"8397","type":"replace","offset":1299,"reason":"immutable"},{"id":"8415","type":"replace","offset":1338,"reason":"immutable"},{"id":"8409","type":"replace","offset":2911,"reason":"immutable"},{"id":"8415","type":"replace","offset":2965,"reason":"immutable"},{"id":"8412","type":"replace","offset":3019,"reason":"immutable"},{"id":"8421","type":"replace","offset":3111,"reason":"immutable"},{"id":"8392","type":"replace","offset":3329,"reason":"immutable"},{"id":"8389","type":"replace","offset":3369,"reason":"immutable"},{"id":"8406","type":"replace","offset":3409,"reason":"immutable"},{"id":"8389","type":"replace","offset":3664,"reason":"immutable"},{"id":"8389","type":"replace","offset":3735,"reason":"immutable"},{"id":"8389","type":"replace","offset":3800,"reason":"immutable"},{"id":"8401","type":"replace","offset":3848,"reason":"immutable"},{"id":"8403","type":"replace","offset":3891,"reason":"immutable"},{"id":"8399","type":"replace","offset":3932,"reason":"immutable"},{"id":"8395","type":"replace","offset":4011,"reason":"immutable"},{"id":"8403","type":"replace","offset":5554,"reason":"immutable"},{"id":"8395","type":"replace","offset":6582,"reason":"immutable"},{"id":"8395","type":"replace","offset":7005,"reason":"immutable"},{"id":"8395","type":"replace","offset":7135,"reason":"immutable"},{"id":"8395","type":"replace","offset":7323,"reason":"immutable"}],"transformationValues":{"immutables":{"8389":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9","8392":"0x0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951","8395":"0x00000000000000000000000058daec3116aae6d93017baaea7749052e8a04fa7","8397":"0x00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf","8399":"0x000000000000000000000000d88dcacf4e77b7ff2778aee824639d30cb1640cc","8401":"0x0000000000000000000000000000000000000000000000000000000000000bb8","8403":"0x000000000000000000000000000000000000000000000000000000000000003c","8406":"0x000000000000000000000000b7d64608e030b49236b1f791f332f967c2c7f69a","8409":"0x0000000000000000000000000000000000000000000005df06844b60d837b425","8412":"0x00000000000000000000000000000000000000000005bbcc5d319c932665ed09","8415":"0x0000000000000000000000003c74b2e6818d622d0867e771dba2c264e52fb0b6","8421":"0x0000000000000000000000004c515fceef14dd08e86d6fa0df0ec7f1ce2f579e"}}},"deployment":{"transactionHash":"0x9102fd204e273bd450de621f19876c4dbc3b05591ac5973b41126293e402e31a","blockNumber":"52043711","transactionIndex":"31","deployer":"0xd28d0b3dc4799D04E01A45f13b932ADAb89b7B0d"},"sources":{"src/LaunchpadFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {Clones} from \"@openzeppelin/contracts/proxy/Clones.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {PoolId, PoolIdLibrary} from \"@uniswap/v4-core/src/types/PoolId.sol\";\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {TickMath} from \"@uniswap/v4-core/src/libraries/TickMath.sol\";\nimport {FullMath} from \"@uniswap/v4-core/src/libraries/FullMath.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\n\nimport {Actions} from \"v4-periphery/src/libraries/Actions.sol\";\nimport {ActionConstants} from \"v4-periphery/src/libraries/ActionConstants.sol\";\nimport {LiquidityAmounts} from \"v4-periphery/src/libraries/LiquidityAmounts.sol\";\n\nimport {LaunchpadToken} from \"./LaunchpadToken.sol\";\nimport {ILaunchpadFactory} from \"./interfaces/ILaunchpadFactory.sol\";\n\n/// @dev Only the slice of the v4 PositionManager the factory actually touches.\ninterface IPositionManagerMinimal {\n    function initializePool(PoolKey calldata key, uint160 sqrtPriceX96) external payable returns (int24);\n    function modifyLiquidities(bytes calldata unlockData, uint256 deadline) external payable;\n    function nextTokenId() external view returns (uint256);\n    function transferFrom(address from, address to, uint256 id) external;\n    function ownerOf(uint256 id) external view returns (address);\n    function getPositionLiquidity(uint256 tokenId) external view returns (uint128);\n}\n\n/// @title LaunchpadFactory\n/// @notice Permissionless launchpad. Anyone can deploy a token that is paired against the\n///         company's tokenized stock, with liquidity locked forever, in one transaction.\n///\n/// @dev No owner. No admin. No pause. No parameter is settable after construction and no\n///      token can ever be removed from the registry. The factory custodies nothing once a\n///      launch returns: the whole supply goes into the pool, the LP NFT goes to 0xdead,\n///      and any rounding dust goes to 0xdead too.\n///\n///      HOW LIQUIDITY IS SEEDED. The launch is single-sided: 100% of the new token, zero\n///      stock. In Uniswap v4 that means opening the pool at the very edge of the position's\n///      range, so the whole position is denominated in the launch token and the first buyer\n///      walks the price up from there — a bonding curve, not a pre-priced pool. Which edge\n///      depends on currency ordering, which in turn depends on how the cloned token's\n///      address sorts against the stock's; `_rangeFor` handles both cases.\n///\n///      ON \"POOL ADDRESS\". Uniswap v4 is a singleton: pools are not contracts. There is no\n///      per-pool address to return, so the registry stores the `PoolId` and the full\n///      `PoolKey`. `poolManager` is the address that actually custodies every pool's\n///      reserves.\ncontract LaunchpadFactory is ILaunchpadFactory {\n    using SafeERC20 for IERC20;\n    using PoolIdLibrary for PoolKey;\n\n    address public constant DEAD = address(0x000000000000000000000000000000000000dEaD);\n\n    uint256 private constant Q192 = 1 << 192;\n\n    /// @notice Every launch mints exactly this. Fixed, so no caller can choose it.\n    /// @dev Because the opening tick is derived from the valuation rather than hardcoded, a\n    ///      fixed supply costs nothing in flexibility and buys a lot in legibility: every\n    ///      token on the platform has the same supply, so a holder's balance means the same\n    ///      thing everywhere and price comparisons across launches are direct.\n    uint256 public constant LAUNCH_SUPPLY = 1_000_000_000e18;\n    /// @notice A blink cannot outlive this. Restrictions are a launch mechanic, not a regime.\n    uint256 public constant MAX_BLINK_DURATION = 7 days;\n\n    IERC20 public immutable stock;\n    IPoolManager public immutable poolManager;\n    IPositionManagerMinimal public immutable positionManager;\n    address public immutable feeCollectorAddress;\n    address public immutable hookAddress;\n    uint24 public immutable defaultFee;\n    int24 public immutable defaultTickSpacing;\n\n    /// @notice Passed to every launched token as the address that may sweep stale dividends.\n    address public immutable dividendSweeper;\n\n    /// @notice Opening fully diluted valuation of every launch, denominated in TokenizedStock.\n    /// @dev Denominated in stock rather than dollars on purpose. A dollar target would need a\n    ///      price oracle, which would make the factory depend on something that can be changed\n    ///      or fail; this way the factory stays immutable and oracle-free, and the launch\n    ///      valuation simply tracks the share price. If the stock doubles, every new token\n    ///      opens at twice the dollar valuation, with no transaction and nothing to update.\n    ///\n    ///      The opening tick is derived from this and the token's own supply, so a 1e6-supply\n    ///      launch and a 1e12-supply launch both open at the same valuation. A single hardcoded\n    ///      tick would not: it would put those two launches six orders of magnitude apart.\n    uint256 public immutable launchFdvInStock;\n\n    /// @notice Opening valuation for the genesis launch only, in TokenizedStock.\n    /// @dev The flagship token opens far above the standard launch — a deliberate signal that\n    ///      it is not one of the crowd. It is not a privilege in any extractive sense: 100% of\n    ///      supply still goes into the pool single-sided, the creator still receives no\n    ///      premine, and a higher opening price is strictly worse for whoever buys it. What the\n    ///      reservation actually protects is which token gets the slot.\n    uint256 public immutable genesisFdvInStock;\n\n    /// @notice The only address whose launch may use `genesisFdvInStock`, and only once.\n    address public immutable genesisCreator;\n\n    /// @notice True once the genesis slot has been used. One-way; every later launch is standard.\n    bool public genesisUsed;\n\n    /// @notice The EIP-1167 implementation every launched token is a minimal proxy of.\n    address public immutable tokenImplementation;\n\n    mapping(address token => TokenInfo) private _tokenInfo;\n    mapping(address token => PoolKey) private _poolKeys;\n    mapping(address creator => address[] tokens) private _tokensByCreator;\n    address[] private _allTokens;\n\n    error ZeroAddress();\n    error EmptyName();\n    error EmptySymbol();\n    error InvalidBlinkDuration(uint256 duration, uint256 maximum);\n    error EmptyWhitelist();\n    error PoolInitializationFailed();\n    error UnknownToken(address token);\n    error NoLiquidityMinted();\n    error ZeroLaunchValuation();\n    error LaunchPriceOutOfRange(uint256 fdv);\n    error InvalidRange(uint256 index, uint256 length);\n\n    /// @param token     The freshly cloned ERC-20.\n    /// @param poolId    Uniswap v4 pool id for token/TokenizedStock. v4 pools are entries in\n    ///                  the PoolManager singleton, not contracts, so there is no pool address\n    ///                  to emit; `poolManager()` on this factory is the contract that holds\n    ///                  every pool's reserves.\n    /// @param lpTokenId The position NFT that was burned to 0xdead.\n    event TokenLaunched(\n        address indexed token,\n        address indexed creator,\n        PoolId indexed poolId,\n        uint256 lpTokenId,\n        string name,\n        string symbol,\n        uint256 supply,\n        uint64 blinkEnd,\n        uint256 timestamp\n    );\n\n    constructor(\n        address tokenizedStock_,\n        address poolManager_,\n        address positionManager_,\n        address feeCollector_,\n        address hook_,\n        uint24 defaultFee_,\n        int24 defaultTickSpacing_,\n        uint256 launchFdvInStock_,\n        uint256 genesisFdvInStock_,\n        address genesisCreator_,\n        address dividendSweeper_\n    ) {\n        if (\n            tokenizedStock_ == address(0) || poolManager_ == address(0) || positionManager_ == address(0)\n                || feeCollector_ == address(0) || hook_ == address(0)\n        ) revert ZeroAddress();\n\n        stock = IERC20(tokenizedStock_);\n        poolManager = IPoolManager(poolManager_);\n        positionManager = IPositionManagerMinimal(positionManager_);\n        feeCollectorAddress = feeCollector_;\n        hookAddress = hook_;\n        if (launchFdvInStock_ == 0 || genesisFdvInStock_ == 0) revert ZeroLaunchValuation();\n        if (genesisCreator_ == address(0) || dividendSweeper_ == address(0)) revert ZeroAddress();\n\n        defaultFee = defaultFee_;\n        defaultTickSpacing = defaultTickSpacing_;\n        launchFdvInStock = launchFdvInStock_;\n        genesisFdvInStock = genesisFdvInStock_;\n        genesisCreator = genesisCreator_;\n        dividendSweeper = dividendSweeper_;\n\n        tokenImplementation = address(new LaunchpadToken());\n    }\n\n    // -------------------------------------------------------------------------\n    // Launch\n    // -------------------------------------------------------------------------\n\n    /// @notice Launch a token paired against the tokenized stock, liquidity locked forever.\n    /// @dev Supply is fixed at `LAUNCH_SUPPLY` for every token; only the metadata varies.\n    function createToken(string calldata name, string calldata symbol) external returns (address token) {\n        return _launch(name, symbol, 0, new address[](0));\n    }\n\n    /// @notice Launch with a blink window: for `blinkDuration` seconds only wallets vouched\n    ///         for by one of `whitelistedApps` may buy, and no wallet may buy more than 2%\n    ///         of supply. Selling is unrestricted throughout. Everything lifts on its own.\n    function createTokenWithBlink(\n        string calldata name,\n        string calldata symbol,\n        uint256 blinkDuration,\n        address[] calldata whitelistedApps\n    ) external returns (address token) {\n        if (blinkDuration == 0 || blinkDuration > MAX_BLINK_DURATION) {\n            revert InvalidBlinkDuration(blinkDuration, MAX_BLINK_DURATION);\n        }\n        if (whitelistedApps.length == 0) revert EmptyWhitelist();\n        return _launch(name, symbol, blinkDuration, whitelistedApps);\n    }\n\n    function _launch(\n        string calldata name,\n        string calldata symbol,\n        uint256 blinkDuration,\n        address[] memory whitelistedApps\n    ) internal returns (address token) {\n        if (bytes(name).length == 0) revert EmptyName();\n        if (bytes(symbol).length == 0) revert EmptySymbol();\n\n        // The flagship opens high, exactly once, and only for the address reserved for it.\n        uint256 fdv = launchFdvInStock;\n        if (!genesisUsed && msg.sender == genesisCreator) {\n            genesisUsed = true;\n            fdv = genesisFdvInStock;\n        }\n\n        // The registry index is part of the salt, so two identical launches can never collide.\n        bytes32 salt = keccak256(abi.encode(msg.sender, _allTokens.length, name, symbol));\n        token = Clones.cloneDeterministic(tokenImplementation, salt);\n\n        LaunchpadToken(token)\n            .initialize(\n                LaunchpadToken.InitParams({\n                name: name,\n                symbol: symbol,\n                supply: LAUNCH_SUPPLY,\n                creator: msg.sender,\n                poolManager: address(poolManager),\n                dividendToken: address(stock),\n                sweeper: dividendSweeper,\n                blinkDuration: blinkDuration,\n                whitelistedApps: whitelistedApps\n            })\n            );\n\n        (PoolKey memory key, uint256 lpTokenId) = _openPoolAndLockLiquidity(token, fdv);\n        _register(token, name, symbol, key, lpTokenId);\n    }\n\n    /// @dev Split out of `_launch` purely to keep the stack shallow enough for the\n    ///      non-IR codegen; it is one logical step with the launch above it.\n    function _register(\n        address token,\n        string calldata name,\n        string calldata symbol,\n        PoolKey memory key,\n        uint256 lpTokenId\n    ) internal {\n        TokenInfo memory info = TokenInfo({\n            token: token,\n            creator: msg.sender,\n            name: name,\n            symbol: symbol,\n            supply: LAUNCH_SUPPLY,\n            poolId: PoolId.unwrap(key.toId()),\n            lpTokenId: lpTokenId,\n            launchedAt: uint64(block.timestamp),\n            blinkEnd: LaunchpadToken(token).blinkEnd()\n        });\n\n        _poolKeys[token] = key;\n        _tokenInfo[token] = info;\n        _allTokens.push(token);\n        _tokensByCreator[msg.sender].push(token);\n\n        emit TokenLaunched(\n            info.token,\n            info.creator,\n            PoolId.wrap(info.poolId),\n            info.lpTokenId,\n            info.name,\n            info.symbol,\n            info.supply,\n            info.blinkEnd,\n            info.launchedAt\n        );\n    }\n\n    /// @dev Creates the pool, deposits the entire supply single-sided, and burns the LP NFT.\n    function _openPoolAndLockLiquidity(address token, uint256 fdv)\n        internal\n        returns (PoolKey memory key, uint256 lpTokenId)\n    {\n        uint256 supply = LAUNCH_SUPPLY;\n        bool tokenIsCurrency0 = token < address(stock);\n        key = PoolKey({\n            currency0: Currency.wrap(tokenIsCurrency0 ? token : address(stock)),\n            currency1: Currency.wrap(tokenIsCurrency0 ? address(stock) : token),\n            fee: defaultFee,\n            tickSpacing: defaultTickSpacing,\n            hooks: IHooks(hookAddress)\n        });\n\n        (int24 tickLower, int24 tickUpper, int24 startTick) = _rangeFor(tokenIsCurrency0, fdv);\n\n        // `initializePool` swallows a revert and returns int24.max if the pool already\n        // exists. It cannot here — the token address is minutes old — but check anyway.\n        if (positionManager.initializePool(key, TickMath.getSqrtPriceAtTick(startTick)) == type(int24).max) {\n            revert PoolInitializationFailed();\n        }\n\n        uint128 liquidity = _liquidityFor(tokenIsCurrency0, tickLower, tickUpper, supply);\n        lpTokenId = _mintAndBurnPosition(token, supply, key, tickLower, tickUpper, liquidity, tokenIsCurrency0);\n    }\n\n    /// @dev How much liquidity the full supply buys across the single-sided range.\n    function _liquidityFor(bool tokenIsCurrency0, int24 tickLower, int24 tickUpper, uint256 supply)\n        internal\n        pure\n        returns (uint128 liquidity)\n    {\n        uint160 sqrtLower = TickMath.getSqrtPriceAtTick(tickLower);\n        uint160 sqrtUpper = TickMath.getSqrtPriceAtTick(tickUpper);\n        liquidity = tokenIsCurrency0\n            ? LiquidityAmounts.getLiquidityForAmount0(sqrtLower, sqrtUpper, supply)\n            : LiquidityAmounts.getLiquidityForAmount1(sqrtLower, sqrtUpper, supply);\n        if (liquidity == 0) revert NoLiquidityMinted();\n    }\n\n    /// @dev Mints the position to this factory and immediately burns the NFT to 0xdead.\n    ///      The supply is handed to the PositionManager first so it can settle out of its\n    ///      own balance, which keeps Permit2 out of the launch path entirely.\n    function _mintAndBurnPosition(\n        address token,\n        uint256 supply,\n        PoolKey memory key,\n        int24 tickLower,\n        int24 tickUpper,\n        uint128 liquidity,\n        bool tokenIsCurrency0\n    ) internal returns (uint256 lpTokenId) {\n        IERC20(token).safeTransfer(address(positionManager), supply);\n\n        bytes memory actions =\n            abi.encodePacked(uint8(Actions.MINT_POSITION), uint8(Actions.SETTLE), uint8(Actions.SWEEP));\n        bytes[] memory params = new bytes[](3);\n        params[0] = abi.encode(\n            key,\n            tickLower,\n            tickUpper,\n            uint256(liquidity),\n            // Cap the stock side at zero: the factory holds no stock, so a range that\n            // somehow demanded any must fail loudly rather than half-open a pool.\n            tokenIsCurrency0 ? uint128(supply) : uint128(0),\n            tokenIsCurrency0 ? uint128(0) : uint128(supply),\n            address(this),\n            bytes(\"\")\n        );\n        params[1] = abi.encode(Currency.wrap(token), ActionConstants.OPEN_DELTA, false);\n        params[2] = abi.encode(Currency.wrap(token), address(this));\n\n        lpTokenId = positionManager.nextTokenId();\n        positionManager.modifyLiquidities(abi.encode(actions, params), block.timestamp);\n\n        // Liquidity locked forever: with the position NFT at 0xdead nobody — the creator,\n        // the factory, the protocol — can ever decrease this position.\n        positionManager.transferFrom(address(this), DEAD, lpTokenId);\n\n        // Whatever the liquidity math rounded off is burned too, so 100% of supply ends up\n        // either in the pool or unrecoverable. The factory never keeps a balance.\n        uint256 dust = IERC20(token).balanceOf(address(this));\n        if (dust != 0) IERC20(token).safeTransfer(DEAD, dust);\n    }\n\n    /// @dev Picks the position range and the opening tick so the position is 100% the launch\n    ///      token and 0% stock. For a range [lower, upper], a position is entirely currency0\n    ///      when the pool sits at (or below) `lower`, and entirely currency1 at `upper`.\n    function _rangeFor(bool tokenIsCurrency0, uint256 fdv)\n        internal\n        view\n        returns (int24 tickLower, int24 tickUpper, int24 startTick)\n    {\n        int24 spacing = defaultTickSpacing;\n        int24 minUsable = _floorTick(TickMath.MIN_TICK, spacing);\n        if (minUsable < TickMath.MIN_TICK) minUsable += spacing;\n        int24 maxUsable = _floorTick(TickMath.MAX_TICK, spacing);\n\n        int24 opening = _openingTick(tokenIsCurrency0, fdv);\n\n        if (tokenIsCurrency0) {\n            // price = stock per token; open low and let buyers walk it up. Flooring the tick\n            // rounds the opening valuation down.\n            tickLower = _floorTick(opening, spacing);\n            tickUpper = maxUsable;\n            startTick = tickLower;\n        } else {\n            // Ordering flipped, so price = token per stock and the tick is mirrored; open at\n            // the top of the range instead. Ceiling the tick means more tokens per stock,\n            // which rounds the opening valuation down here too.\n            tickLower = minUsable;\n            tickUpper = _ceilTick(opening, spacing);\n            startTick = tickUpper;\n        }\n\n        if (tickLower >= tickUpper) revert LaunchPriceOutOfRange(fdv);\n    }\n\n    /// @dev The tick whose price puts the whole supply at exactly `launchFdvInStock`.\n    ///      Pool price is always currency1 per currency0, so which ratio that is depends on\n    ///      how the freshly cloned token's address sorts against the stock's.\n    function _openingTick(bool tokenIsCurrency0, uint256 fdv) internal pure returns (int24) {\n        uint256 ratioX192 = tokenIsCurrency0\n            ? FullMath.mulDiv(fdv, Q192, LAUNCH_SUPPLY)  // stock per token\n            : FullMath.mulDiv(LAUNCH_SUPPLY, Q192, fdv); // token per stock\n\n        uint256 sqrtPriceX96 = Math.sqrt(ratioX192);\n        if (sqrtPriceX96 < TickMath.MIN_SQRT_PRICE || sqrtPriceX96 >= TickMath.MAX_SQRT_PRICE) {\n            revert LaunchPriceOutOfRange(fdv);\n        }\n        return TickMath.getTickAtSqrtPrice(uint160(sqrtPriceX96));\n    }\n\n    /// @dev Largest multiple of `spacing` that is <= `tick` (true floor, including negatives).\n    function _floorTick(int24 tick, int24 spacing) internal pure returns (int24) {\n        int24 quotient = tick / spacing;\n        if (tick < 0 && quotient * spacing != tick) --quotient;\n        return quotient * spacing;\n    }\n\n    /// @dev Smallest multiple of `spacing` that is >= `tick`.\n    function _ceilTick(int24 tick, int24 spacing) internal pure returns (int24) {\n        int24 floored = _floorTick(tick, spacing);\n        return floored == tick ? floored : floored + spacing;\n    }\n\n    // -------------------------------------------------------------------------\n    // Views\n    // -------------------------------------------------------------------------\n\n    function getAllTokens() external view returns (address[] memory) {\n        return _allTokens;\n    }\n\n    function getTokenInfo(address token) external view returns (TokenInfo memory info) {\n        info = _tokenInfo[token];\n        if (info.token == address(0)) revert UnknownToken(token);\n    }\n\n    function getTokenCount() external view returns (uint256) {\n        return _allTokens.length;\n    }\n\n    function getTokensByCreator(address creator) external view returns (address[] memory) {\n        return _tokensByCreator[creator];\n    }\n\n    /// @notice Page through the registry without loading all of it.\n    function getTokensRange(uint256 startIndex, uint256 endIndex) external view returns (address[] memory page) {\n        uint256 len = _allTokens.length;\n        if (startIndex > endIndex || endIndex > len) revert InvalidRange(startIndex, len);\n        page = new address[](endIndex - startIndex);\n        for (uint256 i = startIndex; i < endIndex; ++i) {\n            page[i - startIndex] = _allTokens[i];\n        }\n    }\n\n    /// @notice The full v4 PoolKey for a launched token's pool.\n    function poolKeyOf(address token) external view returns (PoolKey memory key) {\n        key = _poolKeys[token];\n        if (Currency.unwrap(key.currency0) == address(0) && Currency.unwrap(key.currency1) == address(0)) {\n            revert UnknownToken(token);\n        }\n    }\n\n    function isLaunchpadToken(address token) external view returns (bool) {\n        return _tokenInfo[token].token != address(0);\n    }\n\n    function hook() external view returns (address) {\n        return hookAddress;\n    }\n\n    function feeCollector() external view returns (address) {\n        return feeCollectorAddress;\n    }\n\n    function tokenizedStock() external view returns (address) {\n        return address(stock);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/Clones.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (proxy/Clones.sol)\n\npragma solidity ^0.8.20;\n\nimport {Create2} from \"../utils/Create2.sol\";\nimport {Errors} from \"../utils/Errors.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-1167[ERC-1167] is a standard for\n * deploying minimal proxy contracts, also known as \"clones\".\n *\n * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies\n * > a minimal bytecode implementation that delegates all calls to a known, fixed address.\n *\n * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`\n * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the\n * deterministic method.\n */\nlibrary Clones {\n    error CloneArgumentsTooLong();\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation`.\n     *\n     * This function uses the create opcode, which should never revert.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function clone(address implementation) internal returns (address instance) {\n        return clone(implementation, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-clone-address-}[clone], but with a `value` parameter to send native currency\n     * to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function clone(address implementation, uint256 value) internal returns (address instance) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        assembly (\"memory-safe\") {\n            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes\n            // of the `implementation` address with the bytecode before the address.\n            mstore(0x00, or(shr(232, shl(96, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))\n            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.\n            mstore(0x20, or(shl(120, implementation), 0x5af43d82803e903d91602b57fd5bf3))\n            instance := create(value, 0x09, 0x37)\n        }\n        if (instance == address(0)) {\n            revert Errors.FailedDeployment();\n        }\n    }\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation`.\n     *\n     * This function uses the create2 opcode and a `salt` to deterministically deploy\n     * the clone. Using the same `implementation` and `salt` multiple times will revert, since\n     * the clones cannot be deployed twice at the same address.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {\n        return cloneDeterministic(implementation, salt, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-cloneDeterministic-address-bytes32-}[cloneDeterministic], but with\n     * a `value` parameter to send native currency to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function cloneDeterministic(\n        address implementation,\n        bytes32 salt,\n        uint256 value\n    ) internal returns (address instance) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        assembly (\"memory-safe\") {\n            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes\n            // of the `implementation` address with the bytecode before the address.\n            mstore(0x00, or(shr(232, shl(96, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))\n            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.\n            mstore(0x20, or(shl(120, implementation), 0x5af43d82803e903d91602b57fd5bf3))\n            instance := create2(value, 0x09, 0x37, salt)\n        }\n        if (instance == address(0)) {\n            revert Errors.FailedDeployment();\n        }\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n     */\n    function predictDeterministicAddress(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            mstore(add(ptr, 0x38), deployer)\n            mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff)\n            mstore(add(ptr, 0x14), implementation)\n            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73)\n            mstore(add(ptr, 0x58), salt)\n            mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37))\n            predicted := and(keccak256(add(ptr, 0x43), 0x55), 0xffffffffffffffffffffffffffffffffffffffff)\n        }\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n     */\n    function predictDeterministicAddress(\n        address implementation,\n        bytes32 salt\n    ) internal view returns (address predicted) {\n        return predictDeterministicAddress(implementation, salt, address(this));\n    }\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation` with custom\n     * immutable arguments. These are provided through `args` and cannot be changed after deployment. To\n     * access the arguments within the implementation, use {fetchCloneArgs}.\n     *\n     * This function uses the create opcode, which should never revert.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function cloneWithImmutableArgs(address implementation, bytes memory args) internal returns (address instance) {\n        return cloneWithImmutableArgs(implementation, args, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-cloneWithImmutableArgs-address-bytes-}[cloneWithImmutableArgs], but with a `value`\n     * parameter to send native currency to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function cloneWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        uint256 value\n    ) internal returns (address instance) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        bytes memory bytecode = _cloneCodeWithImmutableArgs(implementation, args);\n        assembly (\"memory-safe\") {\n            instance := create(value, add(bytecode, 0x20), mload(bytecode))\n        }\n        if (instance == address(0)) {\n            revert Errors.FailedDeployment();\n        }\n    }\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation` with custom\n     * immutable arguments. These are provided through `args` and cannot be changed after deployment. To\n     * access the arguments within the implementation, use {fetchCloneArgs}.\n     *\n     * This function uses the create2 opcode and a `salt` to deterministically deploy the clone. Using the same\n     * `implementation`, `args` and `salt` multiple times will revert, since the clones cannot be deployed twice\n     * at the same address.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function cloneDeterministicWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        return cloneDeterministicWithImmutableArgs(implementation, args, salt, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-cloneDeterministicWithImmutableArgs-address-bytes-bytes32-}[cloneDeterministicWithImmutableArgs],\n     * but with a `value` parameter to send native currency to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function cloneDeterministicWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        uint256 value\n    ) internal returns (address instance) {\n        bytes memory bytecode = _cloneCodeWithImmutableArgs(implementation, args);\n        return Create2.deploy(value, salt, bytecode);\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministicWithImmutableArgs}.\n     */\n    function predictDeterministicAddressWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes memory bytecode = _cloneCodeWithImmutableArgs(implementation, args);\n        return Create2.computeAddress(salt, keccak256(bytecode), deployer);\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministicWithImmutableArgs}.\n     */\n    function predictDeterministicAddressWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal view returns (address predicted) {\n        return predictDeterministicAddressWithImmutableArgs(implementation, args, salt, address(this));\n    }\n\n    /**\n     * @dev Get the immutable args attached to a clone.\n     *\n     * - If `instance` is a clone that was deployed using `clone` or `cloneDeterministic`, this\n     *   function will return an empty array.\n     * - If `instance` is a clone that was deployed using `cloneWithImmutableArgs` or\n     *   `cloneDeterministicWithImmutableArgs`, this function will return the args array used at\n     *   creation.\n     * - If `instance` is NOT a clone deployed using this library, the behavior is undefined. This\n     *   function should only be used to check addresses that are known to be clones.\n     */\n    function fetchCloneArgs(address instance) internal view returns (bytes memory) {\n        bytes memory result = new bytes(instance.code.length - 0x2d); // revert if length is too short\n        assembly (\"memory-safe\") {\n            extcodecopy(instance, add(result, 0x20), 0x2d, mload(result))\n        }\n        return result;\n    }\n\n    /**\n     * @dev Helper that prepares the initcode of the proxy with immutable args.\n     *\n     * An assembly variant of this function requires copying the `args` array, which can be efficiently done using\n     * `mcopy`. Unfortunately, that opcode is not available before cancun. A pure solidity implementation using\n     * abi.encodePacked is more expensive but also more portable and easier to review.\n     *\n     * NOTE: https://eips.ethereum.org/EIPS/eip-170[EIP-170] limits the length of the contract code to 24576 bytes.\n     * With the proxy code taking 45 bytes, that limits the length of the immutable args to 24531 bytes.\n     */\n    function _cloneCodeWithImmutableArgs(\n        address implementation,\n        bytes memory args\n    ) private pure returns (bytes memory) {\n        if (args.length > 0x5fd3) revert CloneArgumentsTooLong();\n        return\n            abi.encodePacked(\n                hex\"61\",\n                uint16(args.length + 0x2d),\n                hex\"3d81600a3d39f3363d3d373d3d3d363d73\",\n                implementation,\n                hex\"5af43d82803e903d91602b57fd5bf3\",\n                args\n            );\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.7.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\nimport {IERC20Metadata} from \"../../../interfaces/IERC20Metadata.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /// @dev Attempts to fetch the token decimals. A return value of false indicates that the attempt failed in some way.\n    function tryGetDecimals(IERC20 token) internal view returns (bool success, uint8 decimals) {\n        bytes4 selector = IERC20Metadata.decimals.selector;\n        assembly (\"memory-safe\") {\n            mstore(0x00, selector)\n            success := staticcall(gas(), token, 0x00, 4, 0x00, 0x20)\n            success := and(and(success, gt(returndatasize(), 0x1f)), lt(mload(0x00), 0x100))\n            decimals := mul(success, mload(0x00))\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to approve\n     * @param bubble Behavior switch if the approve call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"./IHooks.sol\";\nimport {IERC6909Claims} from \"./external/IERC6909Claims.sol\";\nimport {IProtocolFees} from \"./IProtocolFees.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {IExtsload} from \"./IExtsload.sol\";\nimport {IExttload} from \"./IExttload.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\n\n/// @notice Interface for the PoolManager\ninterface IPoolManager is IProtocolFees, IERC6909Claims, IExtsload, IExttload {\n    /// @notice Thrown when a currency is not netted out after the contract is unlocked\n    error CurrencyNotSettled();\n\n    /// @notice Thrown when trying to interact with a non-initialized pool\n    error PoolNotInitialized();\n\n    /// @notice Thrown when unlock is called, but the contract is already unlocked\n    error AlreadyUnlocked();\n\n    /// @notice Thrown when a function is called that requires the contract to be unlocked, but it is not\n    error ManagerLocked();\n\n    /// @notice Pools are limited to type(int16).max tickSpacing in #initialize, to prevent overflow\n    error TickSpacingTooLarge(int24 tickSpacing);\n\n    /// @notice Pools must have a positive non-zero tickSpacing passed to #initialize\n    error TickSpacingTooSmall(int24 tickSpacing);\n\n    /// @notice PoolKey must have currencies where address(currency0) < address(currency1)\n    error CurrenciesOutOfOrderOrEqual(address currency0, address currency1);\n\n    /// @notice Thrown when a call to updateDynamicLPFee is made by an address that is not the hook,\n    /// or on a pool that does not have a dynamic swap fee.\n    error UnauthorizedDynamicLPFeeUpdate();\n\n    /// @notice Thrown when trying to swap amount of 0\n    error SwapAmountCannotBeZero();\n\n    ///@notice Thrown when native currency is passed to a non native settlement\n    error NonzeroNativeValue();\n\n    /// @notice Thrown when `clear` is called with an amount that is not exactly equal to the open currency delta.\n    error MustClearExactPositiveDelta();\n\n    /// @notice Emitted when a new pool is initialized\n    /// @param id The abi encoded hash of the pool key struct for the new pool\n    /// @param currency0 The first currency of the pool by address sort order\n    /// @param currency1 The second currency of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param hooks The hooks contract address for the pool, or address(0) if none\n    /// @param sqrtPriceX96 The price of the pool on initialization\n    /// @param tick The initial tick of the pool corresponding to the initialized price\n    event Initialize(\n        PoolId indexed id,\n        Currency indexed currency0,\n        Currency indexed currency1,\n        uint24 fee,\n        int24 tickSpacing,\n        IHooks hooks,\n        uint160 sqrtPriceX96,\n        int24 tick\n    );\n\n    /// @notice Emitted when a liquidity position is modified\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that modified the pool\n    /// @param tickLower The lower tick of the position\n    /// @param tickUpper The upper tick of the position\n    /// @param liquidityDelta The amount of liquidity that was added or removed\n    /// @param salt The extra data to make positions unique\n    event ModifyLiquidity(\n        PoolId indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt\n    );\n\n    /// @notice Emitted for swaps between currency0 and currency1\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that initiated the swap call, and that received the callback\n    /// @param amount0 The delta of the currency0 balance of the pool\n    /// @param amount1 The delta of the currency1 balance of the pool\n    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\n    /// @param liquidity The liquidity of the pool after the swap\n    /// @param tick The log base 1.0001 of the price of the pool after the swap\n    /// @param fee The swap fee in hundredths of a bip\n    event Swap(\n        PoolId indexed id,\n        address indexed sender,\n        int128 amount0,\n        int128 amount1,\n        uint160 sqrtPriceX96,\n        uint128 liquidity,\n        int24 tick,\n        uint24 fee\n    );\n\n    /// @notice Emitted for donations\n    /// @param id The abi encoded hash of the pool key struct for the pool that was donated to\n    /// @param sender The address that initiated the donate call\n    /// @param amount0 The amount donated in currency0\n    /// @param amount1 The amount donated in currency1\n    event Donate(PoolId indexed id, address indexed sender, uint256 amount0, uint256 amount1);\n\n    /// @notice All interactions on the contract that account deltas require unlocking. A caller that calls `unlock` must implement\n    /// `IUnlockCallback(msg.sender).unlockCallback(data)`, where they interact with the remaining functions on this contract.\n    /// @dev The only functions callable without an unlocking are `initialize` and `updateDynamicLPFee`\n    /// @param data Any data to pass to the callback, via `IUnlockCallback(msg.sender).unlockCallback(data)`\n    /// @return The data returned by the call to `IUnlockCallback(msg.sender).unlockCallback(data)`\n    function unlock(bytes calldata data) external returns (bytes memory);\n\n    /// @notice Initialize the state for a given pool ID\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The pool key for the pool to initialize\n    /// @param sqrtPriceX96 The initial square root price\n    /// @return tick The initial tick of the pool\n    function initialize(PoolKey memory key, uint160 sqrtPriceX96) external returns (int24 tick);\n\n    /// @notice Modify the liquidity for the given pool\n    /// @dev Poke by calling with a zero liquidityDelta\n    /// @param key The pool to modify liquidity in\n    /// @param params The parameters for modifying the liquidity\n    /// @param hookData The data to pass through to the add/removeLiquidity hooks\n    /// @return callerDelta The balance delta of the caller of modifyLiquidity. This is the total of both principal, fee deltas, and hook deltas if applicable\n    /// @return feesAccrued The balance delta of the fees generated in the liquidity range. Returned for informational purposes\n    /// @dev Note that feesAccrued can be artificially inflated by a malicious actor and integrators should be careful using the value\n    /// For pools with a single liquidity position, actors can donate to themselves to inflate feeGrowthGlobal (and consequently feesAccrued)\n    /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme\n    function modifyLiquidity(PoolKey memory key, ModifyLiquidityParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta callerDelta, BalanceDelta feesAccrued);\n\n    /// @notice Swap against the given pool\n    /// @param key The pool to swap in\n    /// @param params The parameters for swapping\n    /// @param hookData The data to pass through to the swap hooks\n    /// @return swapDelta The balance delta of the address swapping\n    /// @dev Swapping on low liquidity pools may cause unexpected swap amounts when liquidity available is less than amountSpecified.\n    /// Additionally note that if interacting with hooks that have the BEFORE_SWAP_RETURNS_DELTA_FLAG or AFTER_SWAP_RETURNS_DELTA_FLAG\n    /// the hook may alter the swap input/output. Integrators should perform checks on the returned swapDelta.\n    function swap(PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta swapDelta);\n\n    /// @notice Donate the given currency amounts to the in-range liquidity providers of a pool\n    /// @dev Calls to donate can be frontrun adding just-in-time liquidity, with the aim of receiving a portion donated funds.\n    /// Donors should keep this in mind when designing donation mechanisms.\n    /// @dev This function donates to in-range LPs at slot0.tick. In certain edge-cases of the swap algorithm, the `sqrtPrice` of\n    /// a pool can be at the lower boundary of tick `n`, but the `slot0.tick` of the pool is already `n - 1`. In this case a call to\n    /// `donate` would donate to tick `n - 1` (slot0.tick) not tick `n` (getTickAtSqrtPrice(slot0.sqrtPriceX96)).\n    /// Read the comments in `Pool.swap()` for more information about this.\n    /// @param key The key of the pool to donate to\n    /// @param amount0 The amount of currency0 to donate\n    /// @param amount1 The amount of currency1 to donate\n    /// @param hookData The data to pass through to the donate hooks\n    /// @return BalanceDelta The delta of the caller after the donate\n    function donate(PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        external\n        returns (BalanceDelta);\n\n    /// @notice Writes the current ERC20 balance of the specified currency to transient storage\n    /// This is used to checkpoint balances for the manager and derive deltas for the caller.\n    /// @dev This MUST be called before any ERC20 tokens are sent into the contract, but can be skipped\n    /// for native tokens because the amount to settle is determined by the sent value.\n    /// However, if an ERC20 token has been synced and not settled, and the caller instead wants to settle\n    /// native funds, this function can be called with the native currency to then be able to settle the native currency\n    function sync(Currency currency) external;\n\n    /// @notice Called by the user to net out some value owed to the user\n    /// @dev Will revert if the requested amount is not available, consider using `mint` instead\n    /// @dev Can also be used as a mechanism for free flash loans\n    /// @param currency The currency to withdraw from the pool manager\n    /// @param to The address to withdraw to\n    /// @param amount The amount of currency to withdraw\n    function take(Currency currency, address to, uint256 amount) external;\n\n    /// @notice Called by the user to pay what is owed\n    /// @return paid The amount of currency settled\n    function settle() external payable returns (uint256 paid);\n\n    /// @notice Called by the user to pay on behalf of another address\n    /// @param recipient The address to credit for the payment\n    /// @return paid The amount of currency settled\n    function settleFor(address recipient) external payable returns (uint256 paid);\n\n    /// @notice WARNING - Any currency that is cleared, will be non-retrievable, and locked in the contract permanently.\n    /// A call to clear will zero out a positive balance WITHOUT a corresponding transfer.\n    /// @dev This could be used to clear a balance that is considered dust.\n    /// Additionally, the amount must be the exact positive balance. This is to enforce that the caller is aware of the amount being cleared.\n    function clear(Currency currency, uint256 amount) external;\n\n    /// @notice Called by the user to move value into ERC6909 balance\n    /// @param to The address to mint the tokens to\n    /// @param id The currency address to mint to ERC6909s, as a uint256\n    /// @param amount The amount of currency to mint\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function mint(address to, uint256 id, uint256 amount) external;\n\n    /// @notice Called by the user to move value from ERC6909 balance\n    /// @param from The address to burn the tokens from\n    /// @param id The currency address to burn from ERC6909s, as a uint256\n    /// @param amount The amount of currency to burn\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function burn(address from, uint256 id, uint256 amount) external;\n\n    /// @notice Updates the pools lp fees for the a pool that has enabled dynamic lp fees.\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The key of the pool to update dynamic LP fees for\n    /// @param newDynamicLPFee The new dynamic pool LP fee\n    function updateDynamicLPFee(PoolKey memory key, uint24 newDynamicLPFee) external;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {BeforeSwapDelta} from \"../types/BeforeSwapDelta.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\n/// See the Hooks library for the full spec.\n/// @dev Should only be callable by the v4 PoolManager.\ninterface IHooks {\n    /// @notice The hook called before the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @return bytes4 The function selector for the hook\n    function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external returns (bytes4);\n\n    /// @notice The hook called after the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @param tick The current tick after the state of a pool is initialized\n    /// @return bytes4 The function selector for the hook\n    function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick)\n        external\n        returns (bytes4);\n\n    /// @notice The hook called before liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param delta The caller's balance delta after adding liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param delta The caller's balance delta after removing liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    /// @return uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\n    function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)\n        external\n        returns (bytes4, BeforeSwapDelta, uint24);\n\n    /// @notice The hook called after a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param delta The amount owed to the caller (positive) or owed to the pool (negative)\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterSwap(\n        address sender,\n        PoolKey calldata key,\n        SwapParams calldata params,\n        BalanceDelta delta,\n        bytes calldata hookData\n    ) external returns (bytes4, int128);\n\n    /// @notice The hook called before donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function afterDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"./Currency.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {PoolIdLibrary} from \"./PoolId.sol\";\n\nusing PoolIdLibrary for PoolKey global;\n\n/// @notice Returns the key for identifying a pool\nstruct PoolKey {\n    /// @notice The lower currency of the pool, sorted numerically\n    Currency currency0;\n    /// @notice The higher currency of the pool, sorted numerically\n    Currency currency1;\n    /// @notice The pool LP fee, capped at 1_000_000. If the highest bit is 1, the pool has a dynamic fee and must be exactly equal to 0x800000\n    uint24 fee;\n    /// @notice Ticks that involve positions must be a multiple of tick spacing\n    int24 tickSpacing;\n    /// @notice The hooks of the pool\n    IHooks hooks;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"./PoolKey.sol\";\n\ntype PoolId is bytes32;\n\n/// @notice Library for computing the ID of a pool\nlibrary PoolIdLibrary {\n    /// @notice Returns value equal to keccak256(abi.encode(poolKey))\n    function toId(PoolKey memory poolKey) internal pure returns (PoolId poolId) {\n        assembly (\"memory-safe\") {\n            // 0xa0 represents the total size of the poolKey struct (5 slots of 32 bytes)\n            poolId := keccak256(poolKey, 0xa0)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20Minimal} from \"../interfaces/external/IERC20Minimal.sol\";\nimport {CustomRevert} from \"../libraries/CustomRevert.sol\";\n\ntype Currency is address;\n\nusing {greaterThan as >, lessThan as <, greaterThanOrEqualTo as >=, equals as ==} for Currency global;\nusing CurrencyLibrary for Currency global;\n\nfunction equals(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) == Currency.unwrap(other);\n}\n\nfunction greaterThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) > Currency.unwrap(other);\n}\n\nfunction lessThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) < Currency.unwrap(other);\n}\n\nfunction greaterThanOrEqualTo(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) >= Currency.unwrap(other);\n}\n\n/// @title CurrencyLibrary\n/// @dev This library allows for transferring and holding native tokens and ERC20 tokens\nlibrary CurrencyLibrary {\n    /// @notice Additional context for ERC-7751 wrapped error when a native transfer fails\n    error NativeTransferFailed();\n\n    /// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails\n    error ERC20TransferFailed();\n\n    /// @notice A constant to represent the native currency\n    Currency public constant ADDRESS_ZERO = Currency.wrap(address(0));\n\n    function transfer(Currency currency, address to, uint256 amount) internal {\n        // altered from https://github.com/transmissions11/solmate/blob/44a9963d4c78111f77caa0e65d677b8b46d6f2e6/src/utils/SafeTransferLib.sol\n        // modified custom error selectors\n\n        bool success;\n        if (currency.isAddressZero()) {\n            assembly (\"memory-safe\") {\n                // Transfer the ETH and revert if it fails.\n                success := call(gas(), to, amount, 0, 0, 0, 0)\n            }\n            // revert with NativeTransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);\n            }\n        } else {\n            assembly (\"memory-safe\") {\n                // Get a pointer to some free memory.\n                let fmp := mload(0x40)\n\n                // Write the abi-encoded calldata into memory, beginning with the function selector.\n                mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)\n                mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the \"to\" argument.\n                mstore(add(fmp, 36), amount) // Append the \"amount\" argument. Masking not required as it's a full 32 byte type.\n\n                success :=\n                    and(\n                        // Set success to whether the call reverted, if not we check it either\n                        // returned exactly 1 (can't just be non-zero data), or had no return data.\n                        or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),\n                        // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.\n                        // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.\n                        // Counterintuitively, this call must be positioned second to the or() call in the\n                        // surrounding and() call or else returndatasize() will be zero during the computation.\n                        call(gas(), currency, 0, fmp, 68, 0, 32)\n                    )\n\n                // Now clean the memory we used\n                mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here\n                mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here\n                mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here\n            }\n            // revert with ERC20TransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(\n                    Currency.unwrap(currency), IERC20Minimal.transfer.selector, ERC20TransferFailed.selector\n                );\n            }\n        }\n    }\n\n    function balanceOfSelf(Currency currency) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return address(this).balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(address(this));\n        }\n    }\n\n    function balanceOf(Currency currency, address owner) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return owner.balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(owner);\n        }\n    }\n\n    function isAddressZero(Currency currency) internal pure returns (bool) {\n        return Currency.unwrap(currency) == Currency.unwrap(ADDRESS_ZERO);\n    }\n\n    function toId(Currency currency) internal pure returns (uint256) {\n        return uint160(Currency.unwrap(currency));\n    }\n\n    // If the upper 12 bytes are non-zero, they will be zero-ed out\n    // Therefore, fromId() and toId() are not inverses of each other\n    function fromId(uint256 id) internal pure returns (Currency) {\n        return Currency.wrap(address(uint160(id)));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {BitMath} from \"./BitMath.sol\";\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Math library for computing sqrt prices from ticks and vice versa\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\n/// prices between 2**-128 and 2**128\nlibrary TickMath {\n    using CustomRevert for bytes4;\n\n    /// @notice Thrown when the tick passed to #getSqrtPriceAtTick is not between MIN_TICK and MAX_TICK\n    error InvalidTick(int24 tick);\n    /// @notice Thrown when the price passed to #getTickAtSqrtPrice does not correspond to a price between MIN_TICK and MAX_TICK\n    error InvalidSqrtPrice(uint160 sqrtPriceX96);\n\n    /// @dev The minimum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**-128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MIN_TICK = -887272;\n    /// @dev The maximum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MAX_TICK = 887272;\n\n    /// @dev The minimum tick spacing value drawn from the range of type int16 that is greater than 0, i.e. min from the range [1, 32767]\n    int24 internal constant MIN_TICK_SPACING = 1;\n    /// @dev The maximum tick spacing value drawn from the range of type int16, i.e. max from the range [1, 32767]\n    int24 internal constant MAX_TICK_SPACING = type(int16).max;\n\n    /// @dev The minimum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MIN_TICK)\n    uint160 internal constant MIN_SQRT_PRICE = 4295128739;\n    /// @dev The maximum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MAX_TICK)\n    uint160 internal constant MAX_SQRT_PRICE = 1461446703485210103287273052203988822378723970342;\n    /// @dev A threshold used for optimized bounds check, equals `MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1`\n    uint160 internal constant MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE =\n        1461446703485210103287273052203988822378723970342 - 4295128739 - 1;\n\n    /// @notice Given a tickSpacing, compute the maximum usable tick\n    function maxUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MAX_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Given a tickSpacing, compute the minimum usable tick\n    function minUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MIN_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Calculates sqrt(1.0001^tick) * 2^96\n    /// @dev Throws if |tick| > max tick\n    /// @param tick The input tick for the above formula\n    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the price of the two assets (currency1/currency0)\n    /// at the given tick\n    function getSqrtPriceAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {\n        unchecked {\n            uint256 absTick;\n            assembly (\"memory-safe\") {\n                tick := signextend(2, tick)\n                // mask = 0 if tick >= 0 else -1 (all 1s)\n                let mask := sar(255, tick)\n                // if tick >= 0, |tick| = tick = 0 ^ tick\n                // if tick < 0, |tick| = ~~|tick| = ~(-|tick| - 1) = ~(tick - 1) = (-1) ^ (tick - 1)\n                // either way, |tick| = mask ^ (tick + mask)\n                absTick := xor(mask, add(mask, tick))\n            }\n\n            if (absTick > uint256(int256(MAX_TICK))) InvalidTick.selector.revertWith(tick);\n\n            // The tick is decomposed into bits, and for each bit with index i that is set, the product of 1/sqrt(1.0001^(2^i))\n            // is calculated (using Q128.128). The constants used for this calculation are rounded to the nearest integer\n\n            // Equivalent to:\n            //     price = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;\n            //     or price = int(2**128 / sqrt(1.0001)) if (absTick & 0x1) else 1 << 128\n            uint256 price;\n            assembly (\"memory-safe\") {\n                price := xor(shl(128, 1), mul(xor(shl(128, 1), 0xfffcb933bd6fad37aa2d162d1a594001), and(absTick, 0x1)))\n            }\n            if (absTick & 0x2 != 0) price = (price * 0xfff97272373d413259a46990580e213a) >> 128;\n            if (absTick & 0x4 != 0) price = (price * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\n            if (absTick & 0x8 != 0) price = (price * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\n            if (absTick & 0x10 != 0) price = (price * 0xffcb9843d60f6159c9db58835c926644) >> 128;\n            if (absTick & 0x20 != 0) price = (price * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\n            if (absTick & 0x40 != 0) price = (price * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\n            if (absTick & 0x80 != 0) price = (price * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\n            if (absTick & 0x100 != 0) price = (price * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\n            if (absTick & 0x200 != 0) price = (price * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\n            if (absTick & 0x400 != 0) price = (price * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\n            if (absTick & 0x800 != 0) price = (price * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\n            if (absTick & 0x1000 != 0) price = (price * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\n            if (absTick & 0x2000 != 0) price = (price * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\n            if (absTick & 0x4000 != 0) price = (price * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\n            if (absTick & 0x8000 != 0) price = (price * 0x31be135f97d08fd981231505542fcfa6) >> 128;\n            if (absTick & 0x10000 != 0) price = (price * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\n            if (absTick & 0x20000 != 0) price = (price * 0x5d6af8dedb81196699c329225ee604) >> 128;\n            if (absTick & 0x40000 != 0) price = (price * 0x2216e584f5fa1ea926041bedfe98) >> 128;\n            if (absTick & 0x80000 != 0) price = (price * 0x48a170391f7dc42444e8fa2) >> 128;\n\n            assembly (\"memory-safe\") {\n                // if (tick > 0) price = type(uint256).max / price;\n                if sgt(tick, 0) { price := div(not(0), price) }\n\n                // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\n                // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\n                // we round up in the division so getTickAtSqrtPrice of the output price is always consistent\n                // `sub(shl(32, 1), 1)` is `type(uint32).max`\n                // `price + type(uint32).max` will not overflow because `price` fits in 192 bits\n                sqrtPriceX96 := shr(32, add(price, sub(shl(32, 1), 1)))\n            }\n        }\n    }\n\n    /// @notice Calculates the greatest tick value such that getSqrtPriceAtTick(tick) <= sqrtPriceX96\n    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_PRICE, as MIN_SQRT_PRICE is the lowest value getSqrtPriceAtTick may\n    /// ever return.\n    /// @param sqrtPriceX96 The sqrt price for which to compute the tick as a Q64.96\n    /// @return tick The greatest tick for which the getSqrtPriceAtTick(tick) is less than or equal to the input sqrtPriceX96\n    function getTickAtSqrtPrice(uint160 sqrtPriceX96) internal pure returns (int24 tick) {\n        unchecked {\n            // Equivalent: if (sqrtPriceX96 < MIN_SQRT_PRICE || sqrtPriceX96 >= MAX_SQRT_PRICE) revert InvalidSqrtPrice();\n            // second inequality must be >= because the price can never reach the price at the max tick\n            // if sqrtPriceX96 < MIN_SQRT_PRICE, the `sub` underflows and `gt` is true\n            // if sqrtPriceX96 >= MAX_SQRT_PRICE, sqrtPriceX96 - MIN_SQRT_PRICE > MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1\n            if ((sqrtPriceX96 - MIN_SQRT_PRICE) > MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE) {\n                InvalidSqrtPrice.selector.revertWith(sqrtPriceX96);\n            }\n\n            uint256 price = uint256(sqrtPriceX96) << 32;\n\n            uint256 r = price;\n            uint256 msb = BitMath.mostSignificantBit(r);\n\n            if (msb >= 128) r = price >> (msb - 127);\n            else r = price << (127 - msb);\n\n            int256 log_2 = (int256(msb) - 128) << 64;\n\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(63, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(62, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(61, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(60, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(59, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(58, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(57, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(56, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(55, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(54, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(53, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(52, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(51, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(50, f))\n            }\n\n            int256 log_sqrt10001 = log_2 * 255738958999603826347141; // Q22.128 number\n\n            // Magic number represents the ceiling of the maximum value of the error when approximating log_sqrt10001(x)\n            int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);\n\n            // Magic number represents the minimum value of the error when approximating log_sqrt10001(x), when\n            // sqrtPrice is from the range (2^-64, 2^64). This is safe as MIN_SQRT_PRICE is more than 2^-64. If MIN_SQRT_PRICE\n            // is changed, this may need to be changed too\n            int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);\n\n            tick = tickLow == tickHi ? tickLow : getSqrtPriceAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/FullMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Contains 512-bit math functions\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\n/// @dev Handles \"phantom overflow\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\nlibrary FullMath {\n    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n    /// @param a The multiplicand\n    /// @param b The multiplier\n    /// @param denominator The divisor\n    /// @return result The 256-bit result\n    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\n    function mulDiv(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = a * b\n            // Compute the product mod 2**256 and mod 2**256 - 1\n            // then use the Chinese Remainder Theorem to reconstruct\n            // the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2**256 + prod0\n            uint256 prod0 = a * b; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly (\"memory-safe\") {\n                let mm := mulmod(a, b, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Make sure the result is less than 2**256.\n            // Also prevents denominator == 0\n            require(denominator > prod1);\n\n            // Handle non-overflow cases, 256 by 256 division\n            if (prod1 == 0) {\n                assembly (\"memory-safe\") {\n                    result := div(prod0, denominator)\n                }\n                return result;\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0]\n            // Compute remainder using mulmod\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                remainder := mulmod(a, b, denominator)\n            }\n            // Subtract 256 bit number from 512 bit number\n            assembly (\"memory-safe\") {\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator\n            // Compute largest power of two divisor of denominator.\n            // Always >= 1.\n            uint256 twos = (0 - denominator) & denominator;\n            // Divide denominator by power of two\n            assembly (\"memory-safe\") {\n                denominator := div(denominator, twos)\n            }\n\n            // Divide [prod1 prod0] by the factors of two\n            assembly (\"memory-safe\") {\n                prod0 := div(prod0, twos)\n            }\n            // Shift in bits from prod1 into prod0. For this we need\n            // to flip `twos` such that it is 2**256 / twos.\n            // If twos is zero, then it becomes one\n            assembly (\"memory-safe\") {\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2**256\n            // Now that denominator is an odd number, it has an inverse\n            // modulo 2**256 such that denominator * inv = 1 mod 2**256.\n            // Compute the inverse by starting with a seed that is correct\n            // correct for four bits. That is, denominator * inv = 1 mod 2**4\n            uint256 inv = (3 * denominator) ^ 2;\n            // Now use Newton-Raphson iteration to improve the precision.\n            // Thanks to Hensel's lifting lemma, this also works in modular\n            // arithmetic, doubling the correct bits in each step.\n            inv *= 2 - denominator * inv; // inverse mod 2**8\n            inv *= 2 - denominator * inv; // inverse mod 2**16\n            inv *= 2 - denominator * inv; // inverse mod 2**32\n            inv *= 2 - denominator * inv; // inverse mod 2**64\n            inv *= 2 - denominator * inv; // inverse mod 2**128\n            inv *= 2 - denominator * inv; // inverse mod 2**256\n\n            // Because the division is now exact we can divide by multiplying\n            // with the modular inverse of denominator. This will give us the\n            // correct result modulo 2**256. Since the preconditions guarantee\n            // that the outcome is less than 2**256, this is the final result.\n            // We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inv;\n            return result;\n        }\n    }\n\n    /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n    /// @param a The multiplicand\n    /// @param b The multiplier\n    /// @param denominator The divisor\n    /// @return result The 256-bit result\n    function mulDivRoundingUp(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            result = mulDiv(a, b, denominator);\n            if (mulmod(a, b, denominator) != 0) {\n                require(++result > 0);\n            }\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Return the 512-bit addition of two uint256.\n     *\n     * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n     */\n    function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        assembly (\"memory-safe\") {\n            low := add(a, b)\n            high := lt(low, a)\n        }\n    }\n\n    /**\n     * @dev Return the 512-bit multiplication of two uint256.\n     *\n     * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n     */\n    function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n        // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n        // variables such that product = high * 2²⁵⁶ + low.\n        assembly (\"memory-safe\") {\n            let mm := mulmod(a, b, not(0))\n            low := mul(a, b)\n            high := sub(sub(mm, low), lt(mm, low))\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            success = c >= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a - b;\n            success = c <= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a * b;\n            assembly (\"memory-safe\") {\n                // Only true when the multiplication doesn't overflow\n                // (c / a == b) || (a == 0)\n                success := or(eq(div(c, a), b), iszero(a))\n            }\n            // equivalent to: success ? c : 0\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `DIV` opcode returns zero when the denominator is 0.\n                result := div(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `MOD` opcode returns zero when the denominator is 0.\n                result := mod(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryAdd(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n     */\n    function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n        (, uint256 result) = trySub(a, b);\n        return result;\n    }\n\n    /**\n     * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryMul(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // (a + b) / 2 can overflow.\n            return (a & b) + (a ^ b) / 2;\n        }\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (high == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return low / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= high) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [high low].\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                high := sub(high, gt(remainder, low))\n                low := sub(low, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly (\"memory-safe\") {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [high low] by twos.\n                low := div(low, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from high into low.\n            low |= high * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n            // is no longer required.\n            result = low * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n            if (high >= 1 << n) {\n                Panic.panic(Panic.UNDER_OVERFLOW);\n            }\n            return (high << (256 - n)) | (low >> n);\n        }\n    }\n\n    /**\n     * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n        return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory buffer) private pure returns (bool) {\n        uint256 chunk;\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            // See _unsafeReadBytesOffset from utils/Bytes.sol\n            assembly (\"memory-safe\") {\n                chunk := mload(add(add(buffer, 0x20), i))\n            }\n            if (chunk >> (8 * saturatingSub(i + 0x20, buffer.length)) != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // If upper 8 bits of 16-bit half set, add 8 to result\n        r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n        // If upper 4 bits of 8-bit half set, add 4 to result\n        r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n        // Shifts value right by the current result and use it as an index into this lookup table:\n        //\n        // | x (4 bits) |  index  | table[index] = MSB position |\n        // |------------|---------|-----------------------------|\n        // |    0000    |    0    |        table[0] = 0         |\n        // |    0001    |    1    |        table[1] = 0         |\n        // |    0010    |    2    |        table[2] = 1         |\n        // |    0011    |    3    |        table[3] = 1         |\n        // |    0100    |    4    |        table[4] = 2         |\n        // |    0101    |    5    |        table[5] = 2         |\n        // |    0110    |    6    |        table[6] = 2         |\n        // |    0111    |    7    |        table[7] = 2         |\n        // |    1000    |    8    |        table[8] = 3         |\n        // |    1001    |    9    |        table[9] = 3         |\n        // |    1010    |   10    |        table[10] = 3        |\n        // |    1011    |   11    |        table[11] = 3        |\n        // |    1100    |   12    |        table[12] = 3        |\n        // |    1101    |   13    |        table[13] = 3        |\n        // |    1110    |   14    |        table[14] = 3        |\n        // |    1111    |   15    |        table[15] = 3        |\n        //\n        // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the first 16 bytes (most significant half).\n        assembly (\"memory-safe\") {\n            r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n        return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits in a uint256.\n     */\n    function clz(uint256 x) internal pure returns (uint256) {\n        return ternary(x == 0, 256, 255 - log2(x));\n    }\n}\n"},"lib/v4-periphery/src/libraries/Actions.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Library to define different pool actions.\n/// @dev These are suggested common commands, however additional commands should be defined as required\n/// Some of these actions are not supported in the Router contracts or Position Manager contracts, but are left as they may be helpful commands for other peripheral contracts.\nlibrary Actions {\n    // pool actions\n    // liquidity actions\n    uint256 internal constant INCREASE_LIQUIDITY = 0x00;\n    uint256 internal constant DECREASE_LIQUIDITY = 0x01;\n    uint256 internal constant MINT_POSITION = 0x02;\n    uint256 internal constant BURN_POSITION = 0x03;\n\n    /// @notice DEPRECATED: Vulnerable to sandwich attacks - do not use.\n    /// @dev The delta-based approach lacks minimum liquidity slippage protection, allowing\n    /// attackers to manipulate the price and reduce the liquidity received.\n    /// Use INCREASE_LIQUIDITY instead.\n    uint256 internal constant INCREASE_LIQUIDITY_FROM_DELTAS = 0x04;\n\n    /// @notice DEPRECATED: Vulnerable to sandwich attacks - do not use.\n    /// @dev The delta-based approach lacks minimum liquidity slippage protection, allowing\n    /// attackers to manipulate the price and reduce the liquidity received.\n    /// Use MINT_POSITION instead.\n    uint256 internal constant MINT_POSITION_FROM_DELTAS = 0x05;\n\n    // swapping\n    uint256 internal constant SWAP_EXACT_IN_SINGLE = 0x06;\n    uint256 internal constant SWAP_EXACT_IN = 0x07;\n    uint256 internal constant SWAP_EXACT_OUT_SINGLE = 0x08;\n    uint256 internal constant SWAP_EXACT_OUT = 0x09;\n\n    // donate\n    // note this is not supported in the position manager or router\n    uint256 internal constant DONATE = 0x0a;\n\n    // closing deltas on the pool manager\n    // settling\n    uint256 internal constant SETTLE = 0x0b;\n    uint256 internal constant SETTLE_ALL = 0x0c;\n    uint256 internal constant SETTLE_PAIR = 0x0d;\n    // taking\n    uint256 internal constant TAKE = 0x0e;\n    uint256 internal constant TAKE_ALL = 0x0f;\n    uint256 internal constant TAKE_PORTION = 0x10;\n    uint256 internal constant TAKE_PAIR = 0x11;\n\n    uint256 internal constant CLOSE_CURRENCY = 0x12;\n    uint256 internal constant CLEAR_OR_TAKE = 0x13;\n    uint256 internal constant SWEEP = 0x14;\n\n    uint256 internal constant WRAP = 0x15;\n    uint256 internal constant UNWRAP = 0x16;\n\n    // minting/burning 6909s to close deltas\n    // note this is not supported in the position manager or router\n    uint256 internal constant MINT_6909 = 0x17;\n    uint256 internal constant BURN_6909 = 0x18;\n\n    // permissioned-pools specific actions\n    // routes a currency's positive delta with a fallback cascade: LP → defaultRecipient → 6909 mint to defaultRecipient\n    uint256 internal constant UNWIND_WITH_FALLBACK = 0x19;\n    // subscribing/unsubscribing via position manager\n    uint256 internal constant SUBSCRIBE = 0x1a;\n    uint256 internal constant UNSUBSCRIBE = 0x1b;\n}\n"},"lib/v4-periphery/src/libraries/ActionConstants.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Action Constants\n/// @notice Common constants used in actions\n/// @dev Constants are gas efficient alternatives to their literal values\nlibrary ActionConstants {\n    /// @notice used to signal that an action should use the input value of the open delta on the pool manager\n    /// or of the balance that the contract holds\n    uint128 internal constant OPEN_DELTA = 0;\n    /// @notice used to signal that an action should use the contract's entire balance of a currency\n    /// This value is equivalent to 1<<255, i.e. a singular 1 in the most significant bit.\n    uint256 internal constant CONTRACT_BALANCE = 0x8000000000000000000000000000000000000000000000000000000000000000;\n\n    /// @notice used to signal that the recipient of an action should be the msgSender\n    address internal constant MSG_SENDER = address(1);\n\n    /// @notice used to signal that the recipient of an action should be the address(this)\n    address internal constant ADDRESS_THIS = address(2);\n}\n"},"lib/v4-periphery/src/libraries/LiquidityAmounts.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {FullMath} from \"@uniswap/v4-core/src/libraries/FullMath.sol\";\nimport {FixedPoint96} from \"@uniswap/v4-core/src/libraries/FixedPoint96.sol\";\nimport {SafeCast} from \"@uniswap/v4-core/src/libraries/SafeCast.sol\";\n\n/// @notice Provides functions for computing liquidity amounts from token amounts and prices\nlibrary LiquidityAmounts {\n    using SafeCast for uint256;\n\n    /// @notice Computes the amount of liquidity received for a given amount of token0 and price range\n    /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower))\n    /// @param sqrtPriceAX96 A sqrt price representing the first tick boundary\n    /// @param sqrtPriceBX96 A sqrt price representing the second tick boundary\n    /// @param amount0 The amount0 being sent in\n    /// @return liquidity The amount of returned liquidity\n    function getLiquidityForAmount0(uint160 sqrtPriceAX96, uint160 sqrtPriceBX96, uint256 amount0)\n        internal\n        pure\n        returns (uint128 liquidity)\n    {\n        unchecked {\n            if (sqrtPriceAX96 > sqrtPriceBX96) (sqrtPriceAX96, sqrtPriceBX96) = (sqrtPriceBX96, sqrtPriceAX96);\n            uint256 intermediate = FullMath.mulDiv(sqrtPriceAX96, sqrtPriceBX96, FixedPoint96.Q96);\n            return FullMath.mulDiv(amount0, intermediate, sqrtPriceBX96 - sqrtPriceAX96).toUint128();\n        }\n    }\n\n    /// @notice Computes the amount of liquidity received for a given amount of token1 and price range\n    /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).\n    /// @param sqrtPriceAX96 A sqrt price representing the first tick boundary\n    /// @param sqrtPriceBX96 A sqrt price representing the second tick boundary\n    /// @param amount1 The amount1 being sent in\n    /// @return liquidity The amount of returned liquidity\n    function getLiquidityForAmount1(uint160 sqrtPriceAX96, uint160 sqrtPriceBX96, uint256 amount1)\n        internal\n        pure\n        returns (uint128 liquidity)\n    {\n        unchecked {\n            if (sqrtPriceAX96 > sqrtPriceBX96) (sqrtPriceAX96, sqrtPriceBX96) = (sqrtPriceBX96, sqrtPriceAX96);\n            return FullMath.mulDiv(amount1, FixedPoint96.Q96, sqrtPriceBX96 - sqrtPriceAX96).toUint128();\n        }\n    }\n\n    /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current\n    /// pool prices and the prices at the tick boundaries\n    /// @param sqrtPriceX96 A sqrt price representing the current pool prices\n    /// @param sqrtPriceAX96 A sqrt price representing the first tick boundary\n    /// @param sqrtPriceBX96 A sqrt price representing the second tick boundary\n    /// @param amount0 The amount of token0 being sent in\n    /// @param amount1 The amount of token1 being sent in\n    /// @return liquidity The maximum amount of liquidity received\n    function getLiquidityForAmounts(\n        uint160 sqrtPriceX96,\n        uint160 sqrtPriceAX96,\n        uint160 sqrtPriceBX96,\n        uint256 amount0,\n        uint256 amount1\n    ) internal pure returns (uint128 liquidity) {\n        if (sqrtPriceAX96 > sqrtPriceBX96) {\n            (sqrtPriceAX96, sqrtPriceBX96) = (sqrtPriceBX96, sqrtPriceAX96);\n        }\n\n        if (sqrtPriceX96 <= sqrtPriceAX96) {\n            liquidity = getLiquidityForAmount0(sqrtPriceAX96, sqrtPriceBX96, amount0);\n        } else if (sqrtPriceX96 < sqrtPriceBX96) {\n            uint128 liquidity0 = getLiquidityForAmount0(sqrtPriceX96, sqrtPriceBX96, amount0);\n            uint128 liquidity1 = getLiquidityForAmount1(sqrtPriceAX96, sqrtPriceX96, amount1);\n\n            liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;\n        } else {\n            liquidity = getLiquidityForAmount1(sqrtPriceAX96, sqrtPriceBX96, amount1);\n        }\n    }\n}\n"},"src/LaunchpadToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {SafeCast} from \"@openzeppelin/contracts/utils/math/SafeCast.sol\";\nimport {ISocialTradingApp} from \"./interfaces/ISocialTradingApp.sol\";\n\n/// @title LaunchpadToken\n/// @notice The minimal ERC-20 the LaunchpadFactory clones (EIP-1167) for every launch, and the\n///         dividend ledger for that token's own holders.\n///\n/// @dev Half of the protocol fee a token generates is paid back to that token's holders, in\n///      TokenizedStock. Hold PEPE, earn stock from PEPE's trading. Each launch keeps its own\n///      pool of dividends; they are never mixed between tokens.\n///\n///      WHY THE LEDGER LIVES HERE. Paying holders pro rata needs per-holder balance history at\n///      the moment of every distribution, which cannot be obtained from outside a token — an\n///      external distributor would have to iterate the whole holder set. Because the factory\n///      deploys this token, the ledger can live in `_update` instead and cost O(1) per\n///      transfer. No snapshots, no wrapper, no staking step.\n///\n///      EXCLUSIONS ARE LOAD-BEARING HERE. At launch, 100% of supply sits in the Uniswap v4\n///      PoolManager, and it never claims anything. If it accrued, essentially every dividend\n///      would be stranded. Excluding it makes the dividend denominator the *circulating*\n///      supply — tokens actually held by people — which is what \"dividends to holders\" means.\n///      The list is fixed at initialization and can never be edited.\n///\n///      Beyond the dividend ledger and the optional blink window there is no owner, no admin,\n///      no mint after initialization, no pause and no upgrade path.\ncontract LaunchpadToken is ERC20 {\n    using SafeERC20 for IERC20;\n    using SafeCast for uint256;\n\n    /// @notice Cumulative buy cap per address during the blink, in basis points of supply.\n    uint256 public constant BLINK_MAX_BUY_BPS = 200; // 2%\n    uint256 private constant BPS_DENOMINATOR = 10_000;\n\n    /// @dev Fixed-point scale for the per-share accumulator. 2^96 keeps full precision for a\n    ///      1-wei dividend spread across a 1e27 supply while leaving the corrections\n    ///      arithmetic far from an int256 overflow.\n    uint256 internal constant MAGNITUDE = 2 ** 96;\n\n    /// @dev Floor on the dividend denominator. Below this the per-share accumulator could grow\n    ///      fast enough to strain the corrections maths, so a distribution is deferred instead.\n    uint256 public constant MIN_ELIGIBLE_SUPPLY = 1e15;\n\n    /// @notice How long a holder may go without claiming before dividends can be swept.\n    uint256 public constant STALE_AFTER = 31 days;\n\n    address public constant DEAD = address(0x000000000000000000000000000000000000dEaD);\n\n    string private _tokenName;\n    string private _tokenSymbol;\n\n    /// @notice The LaunchpadFactory that cloned this token.\n    address public factory;\n    /// @notice The address that called `createToken` / `createTokenWithBlink`.\n    address public creator;\n    /// @notice The Uniswap v4 PoolManager singleton. Tells a buy from a transfer, and never accrues.\n    address public poolManager;\n    /// @notice The asset dividends are paid in — the company's tokenized share.\n    IERC20 public dividendToken;\n    /// @notice May sweep dividends left unclaimed past `STALE_AFTER`.\n    address public sweeper;\n\n    /// @notice Unix timestamp the blink window ends. Zero means this token never had one.\n    uint64 public blinkEnd;\n    /// @notice Per-address cumulative buy cap while the blink is live.\n    uint128 public maxBuyPerAddress;\n\n    address[] private _whitelistedApps;\n\n    /// @notice How much each address has bought out of the pool during the blink window.\n    mapping(address account => uint256 amount) public blinkPurchased;\n\n    uint256 internal _magnifiedDividendPerShare;\n    mapping(address account => int256) internal _magnifiedCorrections;\n\n    mapping(address account => uint256) public withdrawnDividends;\n    mapping(address account => uint256) public lastClaimAt;\n    /// @notice Holders that do not accrue. Fixed at initialization.\n    mapping(address account => bool) public excludedFromDividends;\n\n    /// @notice Circulating supply that actually accrues. The dividend denominator.\n    uint256 public dividendEligibleSupply;\n    uint256 public totalDividendsDistributed;\n    uint256 public totalDividendsClaimed;\n    uint256 public totalDividendsSwept;\n\n    bool private _initialized;\n\n    error AlreadyInitialized();\n    error ZeroSupply();\n    error EmptyWhitelist();\n    error BlinkBuyerNotVerified(address buyer);\n    error BlinkMaxBuyExceeded(address buyer, uint256 attempted, uint256 cap);\n    error NoEligibleSupply();\n    error NothingToClaim();\n    error NotSweeper();\n    error NotStale(address account, uint256 claimableAt);\n\n    event DividendsDistributed(address indexed from, uint256 amount, uint256 perShareAdded);\n    event DividendsClaimed(address indexed account, uint256 amount);\n    event DividendsSwept(address indexed account, address indexed to, uint256 amount);\n\n    /// @dev Locks the implementation. Clones get fresh (zeroed) storage and stay openable once.\n    constructor() ERC20(\"\", \"\") {\n        _initialized = true;\n    }\n\n    struct InitParams {\n        string name;\n        string symbol;\n        uint256 supply;\n        address creator;\n        address poolManager;\n        address dividendToken;\n        address sweeper;\n        uint256 blinkDuration;\n        address[] whitelistedApps;\n    }\n\n    /// @notice One-shot setup, called by the factory in the same transaction as the clone.\n    /// @dev Mints the full supply to the factory, which immediately deposits all of it as\n    ///      single-sided liquidity. Callable exactly once; there is no way to mint again.\n    function initialize(InitParams calldata p) external {\n        if (_initialized) revert AlreadyInitialized();\n        if (p.supply == 0) revert ZeroSupply();\n        _initialized = true;\n\n        _tokenName = p.name;\n        _tokenSymbol = p.symbol;\n        factory = msg.sender;\n        creator = p.creator;\n        poolManager = p.poolManager;\n        dividendToken = IERC20(p.dividendToken);\n        sweeper = p.sweeper;\n\n        // Addresses that hold but can never claim. Fixed here, forever.\n        excludedFromDividends[p.poolManager] = true; // every pool's reserves live here\n        excludedFromDividends[msg.sender] = true; // the factory, mid-launch\n        excludedFromDividends[DEAD] = true;\n        excludedFromDividends[address(this)] = true;\n\n        if (p.blinkDuration != 0) {\n            if (p.whitelistedApps.length == 0) revert EmptyWhitelist();\n            blinkEnd = uint64(block.timestamp + p.blinkDuration);\n            maxBuyPerAddress = uint128((p.supply * BLINK_MAX_BUY_BPS) / BPS_DENOMINATOR);\n            _whitelistedApps = p.whitelistedApps;\n        }\n\n        _mint(msg.sender, p.supply);\n    }\n\n    function name() public view override returns (string memory) {\n        return _tokenName;\n    }\n\n    function symbol() public view override returns (string memory) {\n        return _tokenSymbol;\n    }\n\n    // -------------------------------------------------------------------------\n    // Dividends\n    // -------------------------------------------------------------------------\n\n    /// @notice Pay `amount` of the dividend token in, to be shared pro rata among holders.\n    /// @dev Permissionless: the caller's tokens are pulled first, so calling it is a donation.\n    ///      The launchpad's FeeCollector is the normal caller.\n    function distributeDividends(uint256 amount) external {\n        if (amount == 0) return;\n\n        // Reverts while the whole supply is still in the pool, i.e. before anyone holds any.\n        // The FeeCollector treats that as \"retry later\" rather than losing the fee.\n        uint256 eligible = dividendEligibleSupply;\n        if (eligible < MIN_ELIGIBLE_SUPPLY) revert NoEligibleSupply();\n\n        dividendToken.safeTransferFrom(msg.sender, address(this), amount);\n\n        uint256 perShareAdded = (amount * MAGNITUDE) / eligible;\n        _magnifiedDividendPerShare += perShareAdded;\n        totalDividendsDistributed += amount;\n\n        emit DividendsDistributed(msg.sender, amount, perShareAdded);\n    }\n\n    /// @notice Total dividends ever credited to `account`, claimed or not.\n    function accumulativeDividendOf(address account) public view returns (uint256) {\n        if (excludedFromDividends[account]) return 0;\n        int256 magnified = (_magnifiedDividendPerShare * balanceOf(account)).toInt256() + _magnifiedCorrections[account];\n        return magnified <= 0 ? 0 : uint256(magnified) / MAGNITUDE;\n    }\n\n    /// @notice Dividends `account` can claim right now.\n    function withdrawableDividendOf(address account) public view returns (uint256) {\n        return accumulativeDividendOf(account) - withdrawnDividends[account];\n    }\n\n    function staleAt(address account) public view returns (uint256) {\n        return lastClaimAt[account] + STALE_AFTER;\n    }\n\n    function isStale(address account) public view returns (bool) {\n        return lastClaimAt[account] != 0 && block.timestamp >= staleAt(account) && withdrawableDividendOf(account) > 0;\n    }\n\n    /// @notice Claim your dividends. Resets your staleness clock.\n    function claim() external returns (uint256 amount) {\n        return _claimFor(msg.sender);\n    }\n\n    /// @notice Claim on someone else's behalf. Pays them, and resets their clock — so anyone can\n    ///         protect a holder from the sweep without needing the holder's keys.\n    function claimFor(address account) external returns (uint256 amount) {\n        return _claimFor(account);\n    }\n\n    function _claimFor(address account) internal returns (uint256 amount) {\n        amount = withdrawableDividendOf(account);\n        if (amount == 0) revert NothingToClaim();\n\n        withdrawnDividends[account] += amount;\n        totalDividendsClaimed += amount;\n        lastClaimAt[account] = block.timestamp;\n\n        dividendToken.safeTransfer(account, amount);\n        emit DividendsClaimed(account, amount);\n    }\n\n    /// @notice Sweep dividends from holders who have not claimed for `STALE_AFTER`.\n    /// @dev The one privileged function, and it moves balances credited to someone else. Two\n    ///      mitigations are built in: the window is a constant and can never be shortened, and\n    ///      `claimFor` is open to anyone, so a keeper or a third party can pay a holder and\n    ///      reset their clock. Holders must still be told plainly that 31 days of silence\n    ///      forfeits their accrual.\n    function sweepStale(address[] calldata accounts) external returns (uint256 total) {\n        if (msg.sender != sweeper) revert NotSweeper();\n\n        for (uint256 i = 0; i < accounts.length; ++i) {\n            address account = accounts[i];\n            uint256 amount = withdrawableDividendOf(account);\n            if (amount == 0) continue;\n            if (lastClaimAt[account] == 0 || block.timestamp < staleAt(account)) {\n                revert NotStale(account, staleAt(account));\n            }\n\n            withdrawnDividends[account] += amount;\n            totalDividendsSwept += amount;\n            lastClaimAt[account] = block.timestamp;\n            total += amount;\n\n            dividendToken.safeTransfer(sweeper, amount);\n            emit DividendsSwept(account, sweeper, amount);\n        }\n    }\n\n    // -------------------------------------------------------------------------\n    // Blink\n    // -------------------------------------------------------------------------\n\n    function blinkActive() public view returns (bool) {\n        return blinkEnd != 0 && block.timestamp < blinkEnd;\n    }\n\n    function whitelistedApps() external view returns (address[] memory) {\n        return _whitelistedApps;\n    }\n\n    /// @notice True if any whitelisted app vouches for `wallet`.\n    function isBlinkVerified(address wallet) public view returns (bool) {\n        address[] memory apps = _whitelistedApps;\n        for (uint256 i = 0; i < apps.length; ++i) {\n            // A broken or malicious app must not be able to brick the token, so a reverting\n            // app just counts as \"not verified\".\n            try ISocialTradingApp(apps[i]).isVerifiedUser(wallet) returns (bool ok) {\n                if (ok) return true;\n            } catch {}\n        }\n        return false;\n    }\n\n    function blinkRemainingAllowance(address wallet) external view returns (uint256) {\n        if (!blinkActive()) return type(uint256).max;\n        uint256 used = blinkPurchased[wallet];\n        return used >= maxBuyPerAddress ? 0 : maxBuyPerAddress - used;\n    }\n\n    // -------------------------------------------------------------------------\n    // Ledger maintenance\n    // -------------------------------------------------------------------------\n\n    /// @dev Enforces the blink window and keeps the dividend ledger exact, both in O(1).\n    ///\n    ///      Blink gating: tokens leaving the PoolManager singleton is what a buy looks like on\n    ///      Uniswap v4, since every pool's reserves are custodied there. Sells (tokens moving\n    ///      *into* the PoolManager) and ordinary wallet-to-wallet transfers are never\n    ///      restricted, at any time.\n    ///\n    ///      Caveat: if a buyer routes through an aggregator that takes custody mid-route, the\n    ///      address the PoolManager pays out to is the router, not the end user, and the check\n    ///      lands on the router. Buying via the v4 router with the recipient set to the buyer\n    ///      (the normal path, and the one the tests exercise) gates correctly.\n    ///\n    ///      Dividend ledger: a correction cancels the accrual an account would otherwise appear\n    ///      to have earned on tokens it did not hold when the distribution happened.\n    function _update(address from, address to, uint256 value) internal override {\n        if (from == poolManager && blinkActive()) {\n            if (!isBlinkVerified(to)) revert BlinkBuyerNotVerified(to);\n\n            uint256 purchased = blinkPurchased[to] + value;\n            if (purchased > maxBuyPerAddress) {\n                revert BlinkMaxBuyExceeded(to, purchased, maxBuyPerAddress);\n            }\n            blinkPurchased[to] = purchased;\n        }\n\n        super._update(from, to, value);\n\n        uint256 perShare = _magnifiedDividendPerShare;\n\n        if (from != address(0) && !excludedFromDividends[from]) {\n            dividendEligibleSupply -= value;\n            _magnifiedCorrections[from] += (perShare * value).toInt256();\n        }\n\n        if (to != address(0) && !excludedFromDividends[to]) {\n            dividendEligibleSupply += value;\n            _magnifiedCorrections[to] -= (perShare * value).toInt256();\n            // Start the staleness clock the first time an address holds, so a holder is never\n            // sweepable before they have had a full window to notice.\n            if (lastClaimAt[to] == 0) lastClaimAt[to] = block.timestamp;\n        }\n    }\n}\n"},"src/interfaces/ILaunchpadFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\n\n/// @notice Registry view of the permissionless launchpad.\ninterface ILaunchpadFactory {\n    struct TokenInfo {\n        address token;\n        address creator;\n        string name;\n        string symbol;\n        uint256 supply;\n        bytes32 poolId;\n        uint256 lpTokenId;\n        uint64 launchedAt;\n        uint64 blinkEnd;\n    }\n\n    function getAllTokens() external view returns (address[] memory);\n\n    function getTokenInfo(address token) external view returns (TokenInfo memory);\n\n    function getTokenCount() external view returns (uint256);\n\n    function getTokensByCreator(address creator) external view returns (address[] memory);\n\n    function poolKeyOf(address token) external view returns (PoolKey memory);\n\n    function hook() external view returns (address);\n\n    function feeCollector() external view returns (address);\n\n    function tokenizedStock() external view returns (address);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Create2.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/Create2.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\nimport {LowLevelCall} from \"./LowLevelCall.sol\";\n\n/**\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\n * `CREATE2` can be used to compute in advance the address where a smart\n * contract will be deployed, which allows for interesting new mechanisms known\n * as 'counterfactual interactions'.\n *\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\n * information.\n */\nlibrary Create2 {\n    /**\n     * @dev There's no code to deploy.\n     */\n    error Create2EmptyBytecode();\n\n    /**\n     * @dev Deploys a contract using `CREATE2`. The address where the contract\n     * will be deployed can be known in advance via {computeAddress}.\n     *\n     * The bytecode for a contract can be obtained from Solidity with\n     * `type(contractName).creationCode`.\n     *\n     * Requirements:\n     *\n     * - `bytecode` must not be empty.\n     * - `salt` must have not been used for `bytecode` already.\n     * - the factory must have a balance of at least `amount`.\n     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\n     */\n    function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\n        if (address(this).balance < amount) {\n            revert Errors.InsufficientBalance(address(this).balance, amount);\n        }\n        if (bytecode.length == 0) {\n            revert Create2EmptyBytecode();\n        }\n        assembly (\"memory-safe\") {\n            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\n        }\n        if (addr == address(0)) {\n            if (LowLevelCall.returnDataSize() == 0) {\n                revert Errors.FailedDeployment();\n            } else {\n                LowLevelCall.bubbleRevert();\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\n     * `bytecodeHash` or `salt` will result in a new destination address.\n     */\n    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\n        return computeAddress(salt, bytecodeHash, address(this));\n    }\n\n    /**\n     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\n     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\n     */\n    function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40) // Get free memory pointer\n\n            // |                     | ↓ ptr ...  ↓ ptr + 0x0B (start) ...  ↓ ptr + 0x20 ...  ↓ ptr + 0x40 ...   |\n            // |---------------------|---------------------------------------------------------------------------|\n            // | bytecodeHash        |                                                        CCCCCCCCCCCCC...CC |\n            // | salt                |                                      BBBBBBBBBBBBB...BB                   |\n            // | deployer            | 000000...0000AAAAAAAAAAAAAAAAAAA...AA                                     |\n            // | 0xFF                |            FF                                                             |\n            // |---------------------|---------------------------------------------------------------------------|\n            // | memory              | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\n            // | keccak(start, 0x55) |            ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ |\n\n            mstore(add(ptr, 0x40), bytecodeHash)\n            mstore(add(ptr, 0x20), salt)\n            mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\n            let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\n            mstore8(start, 0xff)\n            addr := and(keccak256(start, 0x55), 0xffffffffffffffffffffffffffffffffffffffff)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error InsufficientBalance(uint256 balance, uint256 needed);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedCall();\n\n    /**\n     * @dev The deployment failed.\n     */\n    error FailedDeployment();\n\n    /**\n     * @dev A necessary precompile is missing.\n     */\n    error MissingPrecompile(address);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for claims over a contract balance, wrapped as a ERC6909\ninterface IERC6909Claims {\n    /*//////////////////////////////////////////////////////////////\n                                 EVENTS\n    //////////////////////////////////////////////////////////////*/\n\n    event OperatorSet(address indexed owner, address indexed operator, bool approved);\n\n    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);\n\n    event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);\n\n    /*//////////////////////////////////////////////////////////////\n                                 FUNCTIONS\n    //////////////////////////////////////////////////////////////*/\n\n    /// @notice Owner balance of an id.\n    /// @param owner The address of the owner.\n    /// @param id The id of the token.\n    /// @return amount The balance of the token.\n    function balanceOf(address owner, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Spender allowance of an id.\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @return amount The allowance of the token.\n    function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Checks if a spender is approved by an owner as an operator\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @return approved The approval status.\n    function isOperator(address owner, address spender) external view returns (bool approved);\n\n    /// @notice Transfers an amount of an id from the caller to a receiver.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Transfers an amount of an id from a sender to a receiver.\n    /// @param sender The address of the sender.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Approves an amount of an id to a spender.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always\n    function approve(address spender, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Sets or removes an operator for the caller.\n    /// @param operator The address of the operator.\n    /// @param approved The approval status.\n    /// @return bool True, always\n    function setOperator(address operator, bool approved) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\n\n/// @notice Interface for all protocol-fee related functions in the pool manager\ninterface IProtocolFees {\n    /// @notice Thrown when protocol fee is set too high\n    error ProtocolFeeTooLarge(uint24 fee);\n\n    /// @notice Thrown when collectProtocolFees or setProtocolFee is not called by the controller.\n    error InvalidCaller();\n\n    /// @notice Thrown when collectProtocolFees is attempted on a token that is synced.\n    error ProtocolFeeCurrencySynced();\n\n    /// @notice Emitted when the protocol fee controller address is updated in setProtocolFeeController.\n    event ProtocolFeeControllerUpdated(address indexed protocolFeeController);\n\n    /// @notice Emitted when the protocol fee is updated for a pool.\n    event ProtocolFeeUpdated(PoolId indexed id, uint24 protocolFee);\n\n    /// @notice Given a currency address, returns the protocol fees accrued in that currency\n    /// @param currency The currency to check\n    /// @return amount The amount of protocol fees accrued in the currency\n    function protocolFeesAccrued(Currency currency) external view returns (uint256 amount);\n\n    /// @notice Sets the protocol fee for the given pool\n    /// @param key The key of the pool to set a protocol fee for\n    /// @param newProtocolFee The fee to set\n    function setProtocolFee(PoolKey memory key, uint24 newProtocolFee) external;\n\n    /// @notice Sets the protocol fee controller\n    /// @param controller The new protocol fee controller\n    function setProtocolFeeController(address controller) external;\n\n    /// @notice Collects the protocol fees for a given recipient and currency, returning the amount collected\n    /// @dev This will revert if the contract is unlocked\n    /// @param recipient The address to receive the protocol fees\n    /// @param currency The currency to withdraw\n    /// @param amount The amount of currency to withdraw\n    /// @return amountCollected The amount of currency successfully withdrawn\n    function collectProtocolFees(address recipient, Currency currency, uint256 amount)\n        external\n        returns (uint256 amountCollected);\n\n    /// @notice Returns the current protocol fee controller address\n    /// @return address The current protocol fee controller address\n    function protocolFeeController() external view returns (address);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {SafeCast} from \"../libraries/SafeCast.sol\";\n\n/// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0\n/// and the lower 128 bits represent the amount1.\ntype BalanceDelta is int256;\n\nusing {add as +, sub as -, eq as ==, neq as !=} for BalanceDelta global;\nusing BalanceDeltaLibrary for BalanceDelta global;\nusing SafeCast for int256;\n\nfunction toBalanceDelta(int128 _amount0, int128 _amount1) pure returns (BalanceDelta balanceDelta) {\n    assembly (\"memory-safe\") {\n        balanceDelta := or(shl(128, _amount0), and(sub(shl(128, 1), 1), _amount1))\n    }\n}\n\nfunction add(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := add(a0, b0)\n        res1 := add(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction sub(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := sub(a0, b0)\n        res1 := sub(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction eq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) == BalanceDelta.unwrap(b);\n}\n\nfunction neq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) != BalanceDelta.unwrap(b);\n}\n\n/// @notice Library for getting the amount0 and amount1 deltas from the BalanceDelta type\nlibrary BalanceDeltaLibrary {\n    /// @notice A BalanceDelta of 0\n    BalanceDelta public constant ZERO_DELTA = BalanceDelta.wrap(0);\n\n    function amount0(BalanceDelta balanceDelta) internal pure returns (int128 _amount0) {\n        assembly (\"memory-safe\") {\n            _amount0 := sar(128, balanceDelta)\n        }\n    }\n\n    function amount1(BalanceDelta balanceDelta) internal pure returns (int128 _amount1) {\n        assembly (\"memory-safe\") {\n            _amount1 := signextend(15, balanceDelta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for functions to access any storage slot in a contract\ninterface IExtsload {\n    /// @notice Called by external contracts to access granular pool state\n    /// @param slot Key of slot to sload\n    /// @return value The value of the slot as bytes32\n    function extsload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access granular pool state\n    /// @param startSlot Key of slot to start sloading from\n    /// @param nSlots Number of slots to load into return value\n    /// @return values List of loaded values.\n    function extsload(bytes32 startSlot, uint256 nSlots) external view returns (bytes32[] memory values);\n\n    /// @notice Called by external contracts to access sparse pool state\n    /// @param slots List of slots to SLOAD from.\n    /// @return values List of loaded values.\n    function extsload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @notice Interface for functions to access any transient storage slot in a contract\ninterface IExttload {\n    /// @notice Called by external contracts to access transient storage of the contract\n    /// @param slot Key of slot to tload\n    /// @return value The value of the slot as bytes32\n    function exttload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access sparse transient pool state\n    /// @param slots List of slots to tload\n    /// @return values List of loaded values\n    function exttload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\n\n/// @notice Parameter struct for `ModifyLiquidity` pool operations\nstruct ModifyLiquidityParams {\n    // the lower and upper tick of the position\n    int24 tickLower;\n    int24 tickUpper;\n    // how to modify the liquidity\n    int256 liquidityDelta;\n    // a value to set if you want unique liquidity positions at the same range\n    bytes32 salt;\n}\n\n/// @notice Parameter struct for `Swap` pool operations\nstruct SwapParams {\n    /// Whether to swap token0 for token1 or vice versa\n    bool zeroForOne;\n    /// The desired input amount if negative (exactIn), or the desired output amount if positive (exactOut)\n    int256 amountSpecified;\n    /// The sqrt price at which, if reached, the swap will stop executing\n    uint160 sqrtPriceLimitX96;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// Return type of the beforeSwap hook.\n// Upper 128 bits is the delta in specified tokens. Lower 128 bits is delta in unspecified tokens (to match the afterSwap hook)\ntype BeforeSwapDelta is int256;\n\n// Creates a BeforeSwapDelta from specified and unspecified\nfunction toBeforeSwapDelta(int128 deltaSpecified, int128 deltaUnspecified)\n    pure\n    returns (BeforeSwapDelta beforeSwapDelta)\n{\n    assembly (\"memory-safe\") {\n        beforeSwapDelta := or(shl(128, deltaSpecified), and(sub(shl(128, 1), 1), deltaUnspecified))\n    }\n}\n\n/// @notice Library for getting the specified and unspecified deltas from the BeforeSwapDelta type\nlibrary BeforeSwapDeltaLibrary {\n    /// @notice A BeforeSwapDelta of 0\n    BeforeSwapDelta public constant ZERO_DELTA = BeforeSwapDelta.wrap(0);\n\n    /// extracts int128 from the upper 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap\n    function getSpecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaSpecified) {\n        assembly (\"memory-safe\") {\n            deltaSpecified := sar(128, delta)\n        }\n    }\n\n    /// extracts int128 from the lower 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap and afterSwap\n    function getUnspecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaUnspecified) {\n        assembly (\"memory-safe\") {\n            deltaUnspecified := signextend(15, delta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Minimal ERC20 interface for Uniswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3\ninterface IERC20Minimal {\n    /// @notice Returns an account's balance in the token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n    /// @param from The account from which the tokens were sent, i.e. the balance decreased\n    /// @param to The account to which the tokens were sent, i.e. the balance increased\n    /// @param value The amount of tokens that were transferred\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n    /// @param owner The account that approved spending of its tokens\n    /// @param spender The account for which the spending allowance was modified\n    /// @param value The new allowance from the owner to the spender\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Library for reverting with custom errors efficiently\n/// @notice Contains functions for reverting with custom errors with different argument types efficiently\n/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with\n/// `CustomError.selector.revertWith()`\n/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately\nlibrary CustomRevert {\n    /// @dev ERC-7751 error for wrapping bubbled up reverts\n    error WrappedError(address target, bytes4 selector, bytes reason, bytes details);\n\n    /// @dev Reverts with the selector of a custom error in the scratch space\n    function revertWith(bytes4 selector) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            revert(0, 0x04)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an address argument in the scratch space\n    function revertWith(bytes4 selector, address addr) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an int24 argument in the scratch space\n    function revertWith(bytes4 selector, int24 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, signextend(2, value))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with a uint160 argument in the scratch space\n    function revertWith(bytes4 selector, uint160 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two int24 arguments\n    function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), signextend(2, value1))\n            mstore(add(fmp, 0x24), signextend(2, value2))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two uint160 arguments\n    function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two address arguments\n    function revertWith(bytes4 selector, address value1, address value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error\n    /// @dev this method can be vulnerable to revert data bombs\n    function bubbleUpAndRevertWith(\n        address revertingContract,\n        bytes4 revertingFunctionSelector,\n        bytes4 additionalContext\n    ) internal pure {\n        bytes4 wrappedErrorSelector = WrappedError.selector;\n        assembly (\"memory-safe\") {\n            // Ensure the size of the revert data is a multiple of 32 bytes\n            let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)\n\n            let fmp := mload(0x40)\n\n            // Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason\n            mstore(fmp, wrappedErrorSelector)\n            mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(\n                add(fmp, 0x24),\n                and(revertingFunctionSelector, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            // offset revert reason\n            mstore(add(fmp, 0x44), 0x80)\n            // offset additional context\n            mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))\n            // size revert reason\n            mstore(add(fmp, 0x84), returndatasize())\n            // revert reason\n            returndatacopy(add(fmp, 0xa4), 0, returndatasize())\n            // size additional context\n            mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)\n            // additional context\n            mstore(\n                add(fmp, add(0xc4, encodedDataSize)),\n                and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            revert(fmp, add(0xe4, encodedDataSize))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title BitMath\n/// @dev This library provides functionality for computing bit properties of an unsigned integer\n/// @author Solady (https://github.com/Vectorized/solady/blob/8200a70e8dc2a77ecb074fc2e99a2a0d36547522/src/utils/LibBit.sol)\nlibrary BitMath {\n    /// @notice Returns the index of the most significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the most significant bit, must be greater than 0\n    /// @return r the index of the most significant bit\n    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(0x1f, shr(shr(r, x), 0x8421084210842108cc6318c6db6d54be)),\n                0x0706060506020500060203020504000106050205030304010505030400000000))\n        }\n    }\n\n    /// @notice Returns the index of the least significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the least significant bit, must be greater than 0\n    /// @return r the index of the least significant bit\n    function leastSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            // Isolate the least significant bit.\n            x := and(x, sub(0, x))\n            // For the upper 3 bits of the result, use a De Bruijn-like lookup.\n            // Credit to adhusson: https://blog.adhusson.com/cheap-find-first-set-evm/\n            // forgefmt: disable-next-item\n            r := shl(5, shr(252, shl(shl(2, shr(250, mul(x,\n                0xb6db6db6ddddddddd34d34d349249249210842108c6318c639ce739cffffffff))),\n                0x8040405543005266443200005020610674053026020000107506200176117077)))\n            // For the lower 5 bits of the result, use a De Bruijn lookup.\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(div(0xd76453e0, shr(r, x)), 0x1f),\n                0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.sol.eta.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev A uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title FixedPoint96\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\n/// @dev Used in SqrtPriceMath.sol\nlibrary FixedPoint96 {\n    uint8 internal constant RESOLUTION = 96;\n    uint256 internal constant Q96 = 0x1000000000000000000000000;\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\nlibrary SafeCast {\n    using CustomRevert for bytes4;\n\n    error SafeCastOverflow();\n\n    /// @notice Cast a uint256 to a uint160, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint160\n    function toUint160(uint256 x) internal pure returns (uint160 y) {\n        y = uint160(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a uint128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint128\n    function toUint128(uint256 x) internal pure returns (uint128 y) {\n        y = uint128(x);\n        if (x != y) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a int128 to a uint128, revert on overflow or underflow\n    /// @param x The int128 to be casted\n    /// @return y The casted integer, now type uint128\n    function toUint128(int128 x) internal pure returns (uint128 y) {\n        if (x < 0) SafeCastOverflow.selector.revertWith();\n        y = uint128(x);\n    }\n\n    /// @notice Cast a int256 to a int128, revert on overflow or underflow\n    /// @param x The int256 to be downcasted\n    /// @return y The downcasted integer, now type int128\n    function toInt128(int256 x) internal pure returns (int128 y) {\n        y = int128(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int256, revert on overflow\n    /// @param x The uint256 to be casted\n    /// @return y The casted integer, now type int256\n    function toInt256(uint256 x) internal pure returns (int256 y) {\n        y = int256(x);\n        if (y < 0) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return The downcasted integer, now type int128\n    function toInt128(uint256 x) internal pure returns (int128) {\n        if (x >= 1 << 127) SafeCastOverflow.selector.revertWith();\n        return int128(int256(x));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC20Metadata} from \"./extensions/IERC20Metadata.sol\";\nimport {Context} from \"../../utils/Context.sol\";\nimport {IERC20Errors} from \"../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC-20\n * applications.\n */\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n    mapping(address account => uint256) private _balances;\n\n    mapping(address account => mapping(address spender => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * Both values are immutable: they can only be set once during construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual returns (uint8) {\n        return 18;\n    }\n\n    /// @inheritdoc IERC20\n    function totalSupply() public view virtual returns (uint256) {\n        return _totalSupply;\n    }\n\n    /// @inheritdoc IERC20\n    function balanceOf(address account) public view virtual returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `value`.\n     */\n    function transfer(address to, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, value);\n        return true;\n    }\n\n    /// @inheritdoc IERC20\n    function allowance(address owner, address spender) public view virtual returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, value);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Skips emitting an {Approval} event indicating an allowance update. This is not\n     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `value`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `value`.\n     */\n    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, value);\n        _transfer(from, to, value);\n        return true;\n    }\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _transfer(address from, address to, uint256 value) internal {\n        if (from == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        if (to == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(from, to, value);\n    }\n\n    /**\n     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n     * this function.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _update(address from, address to, uint256 value) internal virtual {\n        if (from == address(0)) {\n            // Overflow check required: The rest of the code assumes that totalSupply never overflows\n            _totalSupply += value;\n        } else {\n            uint256 fromBalance = _balances[from];\n            if (fromBalance < value) {\n                revert ERC20InsufficientBalance(from, fromBalance, value);\n            }\n            unchecked {\n                // Overflow not possible: value <= fromBalance <= totalSupply.\n                _balances[from] = fromBalance - value;\n            }\n        }\n\n        if (to == address(0)) {\n            unchecked {\n                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\n                _totalSupply -= value;\n            }\n        } else {\n            unchecked {\n                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\n                _balances[to] += value;\n            }\n        }\n\n        emit Transfer(from, to, value);\n    }\n\n    /**\n     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n     * Relies on the `_update` mechanism\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _mint(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(address(0), account, value);\n    }\n\n    /**\n     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n     * Relies on the `_update` mechanism.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead\n     */\n    function _burn(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        _update(account, address(0), value);\n    }\n\n    /**\n     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address owner, address spender, uint256 value) internal {\n        _approve(owner, spender, value, true);\n    }\n\n    /**\n     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n     *\n     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n     * `_spendAllowance` during the `transferFrom` operation sets the flag to false. This saves gas by not emitting any\n     * `Approval` event during `transferFrom` operations.\n     *\n     * Anyone who wishes to continue emitting `Approval` events on the `transferFrom` operation can force the flag to\n     * true using the following override:\n     *\n     * ```solidity\n     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n     *     super._approve(owner, spender, value, true);\n     * }\n     * ```\n     *\n     * Requirements are the same as {_approve}.\n     */\n    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {\n        if (owner == address(0)) {\n            revert ERC20InvalidApprover(address(0));\n        }\n        if (spender == address(0)) {\n            revert ERC20InvalidSpender(address(0));\n        }\n        _allowances[owner][spender] = value;\n        if (emitEvent) {\n            emit Approval(owner, spender, value);\n        }\n    }\n\n    /**\n     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.\n     *\n     * Does not update the allowance value in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Does not emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance < type(uint256).max) {\n            if (currentAllowance < value) {\n                revert ERC20InsufficientAllowance(spender, currentAllowance, value);\n            }\n            unchecked {\n                _approve(owner, spender, currentAllowance - value, false);\n            }\n        }\n    }\n}\n"},"src/interfaces/ISocialTradingApp.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice Interface a social trading app must expose so the launchpad can gate\n///         blink-window buys on that app's verified user set.\n/// @dev During a token's blink window the token asks every whitelisted app\n///      whether the buyer is one of its verified users. A single `true` is enough.\ninterface ISocialTradingApp {\n    /// @param wallet The address attempting to buy during the blink window.\n    /// @return True if this app considers `wallet` a verified user.\n    function isVerifiedUser(address wallet) external view returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/LowLevelCall.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/LowLevelCall.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library of low level call functions that implement different calling strategies to deal with the return data.\n *\n * WARNING: Using this library requires an advanced understanding of Solidity and how the EVM works. It is recommended\n * to use the {Address} library instead.\n */\nlibrary LowLevelCall {\n    /// @dev Performs a Solidity function call using a low level `call` and ignoring the return data.\n    function callNoReturn(address target, bytes memory data) internal returns (bool success) {\n        return callNoReturn(target, 0, data);\n    }\n\n    /// @dev Same as {callNoReturn-address-bytes}, but allows specifying the value to be sent in the call.\n    function callNoReturn(address target, uint256 value, bytes memory data) internal returns (bool success) {\n        assembly (\"memory-safe\") {\n            success := call(gas(), target, value, add(data, 0x20), mload(data), 0x00, 0x00)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `call` and returns the first 64 bytes of the result\n    /// in the scratch space of memory. Useful for functions that return a tuple with two single-word values.\n    ///\n    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated\n    /// and this function doesn't zero it out.\n    function callReturn64Bytes(\n        address target,\n        bytes memory data\n    ) internal returns (bool success, bytes32 result1, bytes32 result2) {\n        return callReturn64Bytes(target, 0, data);\n    }\n\n    /// @dev Same as {callReturn64Bytes-address-bytes}, but allows specifying the value to be sent in the call.\n    function callReturn64Bytes(\n        address target,\n        uint256 value,\n        bytes memory data\n    ) internal returns (bool success, bytes32 result1, bytes32 result2) {\n        assembly (\"memory-safe\") {\n            success := call(gas(), target, value, add(data, 0x20), mload(data), 0x00, 0x40)\n            result1 := mload(0x00)\n            result2 := mload(0x20)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `staticcall` and ignoring the return data.\n    function staticcallNoReturn(address target, bytes memory data) internal view returns (bool success) {\n        assembly (\"memory-safe\") {\n            success := staticcall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x00)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `staticcall` and returns the first 64 bytes of the result\n    /// in the scratch space of memory. Useful for functions that return a tuple with two single-word values.\n    ///\n    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated\n    /// and this function doesn't zero it out.\n    function staticcallReturn64Bytes(\n        address target,\n        bytes memory data\n    ) internal view returns (bool success, bytes32 result1, bytes32 result2) {\n        assembly (\"memory-safe\") {\n            success := staticcall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x40)\n            result1 := mload(0x00)\n            result2 := mload(0x20)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `delegatecall` and ignoring the return data.\n    function delegatecallNoReturn(address target, bytes memory data) internal returns (bool success) {\n        assembly (\"memory-safe\") {\n            success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x00)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `delegatecall` and returns the first 64 bytes of the result\n    /// in the scratch space of memory. Useful for functions that return a tuple with two single-word values.\n    ///\n    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated\n    /// and this function doesn't zero it out.\n    function delegatecallReturn64Bytes(\n        address target,\n        bytes memory data\n    ) internal returns (bool success, bytes32 result1, bytes32 result2) {\n        assembly (\"memory-safe\") {\n            success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x40)\n            result1 := mload(0x00)\n            result2 := mload(0x20)\n        }\n    }\n\n    /// @dev Returns the size of the return data buffer.\n    function returnDataSize() internal pure returns (uint256 size) {\n        assembly (\"memory-safe\") {\n            size := returndatasize()\n        }\n    }\n\n    /// @dev Returns a buffer containing the return data from the last call.\n    function returnData() internal pure returns (bytes memory result) {\n        assembly (\"memory-safe\") {\n            result := mload(0x40)\n            mstore(result, returndatasize())\n            returndatacopy(add(result, 0x20), 0x00, returndatasize())\n            mstore(0x40, add(result, add(0x20, returndatasize())))\n        }\n    }\n\n    /// @dev Revert with the return data from the last call.\n    function bubbleRevert() internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            returndatacopy(fmp, 0x00, returndatasize())\n            revert(fmp, returndatasize())\n        }\n    }\n\n    function bubbleRevert(bytes memory returndata) internal pure {\n        assembly (\"memory-safe\") {\n            revert(add(returndata, 0x20), mload(returndata))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)\n\npragma solidity >=0.8.4;\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.26+commit.8a97fa7a","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts/=lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/","permit2/=lib/v4-periphery/lib/permit2/","forge-std/=lib/forge-std/src/","ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/","solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/","forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/","@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"]},"name":"LaunchpadFactory","fullyQualifiedName":"src/LaunchpadFactory.sol:LaunchpadFactory"},"abi":[{"type":"constructor","inputs":[{"name":"tokenizedStock_","type":"address","internalType":"address"},{"name":"poolManager_","type":"address","internalType":"address"},{"name":"positionManager_","type":"address","internalType":"address"},{"name":"feeCollector_","type":"address","internalType":"address"},{"name":"hook_","type":"address","internalType":"address"},{"name":"defaultFee_","type":"uint24","internalType":"uint24"},{"name":"defaultTickSpacing_","type":"int24","internalType":"int24"},{"name":"launchFdvInStock_","type":"uint256","internalType":"uint256"},{"name":"genesisFdvInStock_","type":"uint256","internalType":"uint256"},{"name":"genesisCreator_","type":"address","internalType":"address"},{"name":"dividendSweeper_","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"EmptyName","type":"error","inputs":[]},{"name":"EmptySymbol","type":"error","inputs":[]},{"name":"EmptyWhitelist","type":"error","inputs":[]},{"name":"FailedDeployment","type":"error","inputs":[]},{"name":"InsufficientBalance","type":"error","inputs":[{"name":"balance","type":"uint256","internalType":"uint256"},{"name":"needed","type":"uint256","internalType":"uint256"}]},{"name":"InvalidBlinkDuration","type":"error","inputs":[{"name":"duration","type":"uint256","internalType":"uint256"},{"name":"maximum","type":"uint256","internalType":"uint256"}]},{"name":"InvalidRange","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"length","type":"uint256","internalType":"uint256"}]},{"name":"LaunchPriceOutOfRange","type":"error","inputs":[{"name":"fdv","type":"uint256","internalType":"uint256"}]},{"name":"NoLiquidityMinted","type":"error","inputs":[]},{"name":"PoolInitializationFailed","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"UnknownToken","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"ZeroLaunchValuation","type":"error","inputs":[]},{"name":"TokenLaunched","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"creator","type":"address","indexed":true,"internalType":"address"},{"name":"poolId","type":"bytes32","indexed":true,"internalType":"PoolId"},{"name":"lpTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"name","type":"string","indexed":false,"internalType":"string"},{"name":"symbol","type":"string","indexed":false,"internalType":"string"},{"name":"supply","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"blinkEnd","type":"uint64","indexed":false,"internalType":"uint64"},{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"DEAD","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"LAUNCH_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_BLINK_DURATION","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"createToken","type":"function","inputs":[{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"}],"outputs":[{"name":"token","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"createTokenWithBlink","type":"function","inputs":[{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"blinkDuration","type":"uint256","internalType":"uint256"},{"name":"whitelistedApps","type":"address[]","internalType":"address[]"}],"outputs":[{"name":"token","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"defaultFee","type":"function","inputs":[],"outputs":[{"name":"","type":"uint24","internalType":"uint24"}],"stateMutability":"view"},{"name":"defaultTickSpacing","type":"function","inputs":[],"outputs":[{"name":"","type":"int24","internalType":"int24"}],"stateMutability":"view"},{"name":"dividendSweeper","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeCollector","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeCollectorAddress","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"genesisCreator","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"genesisFdvInStock","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"genesisUsed","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"getAllTokens","type":"function","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"getTokenCount","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getTokenInfo","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"info","type":"tuple","components":[{"name":"token","type":"address","internalType":"address"},{"name":"creator","type":"address","internalType":"address"},{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"supply","type":"uint256","internalType":"uint256"},{"name":"poolId","type":"bytes32","internalType":"bytes32"},{"name":"lpTokenId","type":"uint256","internalType":"uint256"},{"name":"launchedAt","type":"uint64","internalType":"uint64"},{"name":"blinkEnd","type":"uint64","internalType":"uint64"}],"internalType":"struct ILaunchpadFactory.TokenInfo"}],"stateMutability":"view"},{"name":"getTokensByCreator","type":"function","inputs":[{"name":"creator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"getTokensRange","type":"function","inputs":[{"name":"startIndex","type":"uint256","internalType":"uint256"},{"name":"endIndex","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"page","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"hook","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"hookAddress","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"isLaunchpadToken","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"launchFdvInStock","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"poolKeyOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"key","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"}],"stateMutability":"view"},{"name":"poolManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPoolManager"}],"stateMutability":"view"},{"name":"positionManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPositionManagerMinimal"}],"stateMutability":"view"},{"name":"stock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"name":"tokenImplementation","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"tokenizedStock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"}],"metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"tokenizedStock_","type":"address"},{"internalType":"address","name":"poolManager_","type":"address"},{"internalType":"address","name":"positionManager_","type":"address"},{"internalType":"address","name":"feeCollector_","type":"address"},{"internalType":"address","name":"hook_","type":"address"},{"internalType":"uint24","name":"defaultFee_","type":"uint24"},{"internalType":"int24","name":"defaultTickSpacing_","type":"int24"},{"internalType":"uint256","name":"launchFdvInStock_","type":"uint256"},{"internalType":"uint256","name":"genesisFdvInStock_","type":"uint256"},{"internalType":"address","name":"genesisCreator_","type":"address"},{"internalType":"address","name":"dividendSweeper_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EmptyName","type":"error"},{"inputs":[],"name":"EmptySymbol","type":"error"},{"inputs":[],"name":"EmptyWhitelist","type":"error"},{"inputs":[],"name":"FailedDeployment","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"maximum","type":"uint256"}],"name":"InvalidBlinkDuration","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"InvalidRange","type":"error"},{"inputs":[{"internalType":"uint256","name":"fdv","type":"uint256"}],"name":"LaunchPriceOutOfRange","type":"error"},{"inputs":[],"name":"NoLiquidityMinted","type":"error"},{"inputs":[],"name":"PoolInitializationFailed","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"UnknownToken","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroLaunchValuation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"PoolId","name":"poolId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"lpTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"blinkEnd","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokenLaunched","type":"event"},{"inputs":[],"name":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LAUNCH_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BLINK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"createToken","outputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"blinkDuration","type":"uint256"},{"internalType":"address[]","name":"whitelistedApps","type":"address[]"}],"name":"createTokenWithBlink","outputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultTickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendSweeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisFdvInStock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bytes32","name":"poolId","type":"bytes32"},{"internalType":"uint256","name":"lpTokenId","type":"uint256"},{"internalType":"uint64","name":"launchedAt","type":"uint64"},{"internalType":"uint64","name":"blinkEnd","type":"uint64"}],"internalType":"struct ILaunchpadFactory.TokenInfo","name":"info","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"}],"name":"getTokensByCreator","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"getTokensRange","outputs":[{"internalType":"address[]","name":"page","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hook","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hookAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isLaunchpadToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchFdvInStock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"poolKeyOf","outputs":[{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"key","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolManager","outputs":[{"internalType":"contract IPoolManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"positionManager","outputs":[{"internalType":"contract IPositionManagerMinimal","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stock","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenizedStock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"devdoc":{"details":"No owner. No admin. No pause. No parameter is settable after construction and no      token can ever be removed from the registry. The factory custodies nothing once a      launch returns: the whole supply goes into the pool, the LP NFT goes to 0xdead,      and any rounding dust goes to 0xdead too.      HOW LIQUIDITY IS SEEDED. The launch is single-sided: 100% of the new token, zero      stock. In Uniswap v4 that means opening the pool at the very edge of the position's      range, so the whole position is denominated in the launch token and the first buyer      walks the price up from there — a bonding curve, not a pre-priced pool. Which edge      depends on currency ordering, which in turn depends on how the cloned token's      address sorts against the stock's; `_rangeFor` handles both cases.      ON \"POOL ADDRESS\". Uniswap v4 is a singleton: pools are not contracts. There is no      per-pool address to return, so the registry stores the `PoolId` and the full      `PoolKey`. `poolManager` is the address that actually custodies every pool's      reserves.","errors":{"FailedDeployment()":[{"details":"The deployment failed."}],"InsufficientBalance(uint256,uint256)":[{"details":"The ETH balance of the account is not enough to perform the operation."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"events":{"TokenLaunched(address,address,bytes32,uint256,string,string,uint256,uint64,uint256)":{"params":{"lpTokenId":"The position NFT that was burned to 0xdead.","poolId":"Uniswap v4 pool id for token/TokenizedStock. v4 pools are entries in                  the PoolManager singleton, not contracts, so there is no pool address                  to emit; `poolManager()` on this factory is the contract that holds                  every pool's reserves.","token":"The freshly cloned ERC-20."}}},"kind":"dev","methods":{"createToken(string,string)":{"details":"Supply is fixed at `LAUNCH_SUPPLY` for every token; only the metadata varies."}},"stateVariables":{"LAUNCH_SUPPLY":{"details":"Because the opening tick is derived from the valuation rather than hardcoded, a      fixed supply costs nothing in flexibility and buys a lot in legibility: every      token on the platform has the same supply, so a holder's balance means the same      thing everywhere and price comparisons across launches are direct."},"genesisFdvInStock":{"details":"The flagship token opens far above the standard launch — a deliberate signal that      it is not one of the crowd. It is not a privilege in any extractive sense: 100% of      supply still goes into the pool single-sided, the creator still receives no      premine, and a higher opening price is strictly worse for whoever buys it. What the      reservation actually protects is which token gets the slot."},"launchFdvInStock":{"details":"Denominated in stock rather than dollars on purpose. A dollar target would need a      price oracle, which would make the factory depend on something that can be changed      or fail; this way the factory stays immutable and oracle-free, and the launch      valuation simply tracks the share price. If the stock doubles, every new token      opens at twice the dollar valuation, with no transaction and nothing to update.      The opening tick is derived from this and the token's own supply, so a 1e6-supply      launch and a 1e12-supply launch both open at the same valuation. A single hardcoded      tick would not: it would put those two launches six orders of magnitude apart."}},"title":"LaunchpadFactory","version":1},"userdoc":{"kind":"user","methods":{"LAUNCH_SUPPLY()":{"notice":"Every launch mints exactly this. Fixed, so no caller can choose it."},"MAX_BLINK_DURATION()":{"notice":"A blink cannot outlive this. Restrictions are a launch mechanic, not a regime."},"createToken(string,string)":{"notice":"Launch a token paired against the tokenized stock, liquidity locked forever."},"createTokenWithBlink(string,string,uint256,address[])":{"notice":"Launch with a blink window: for `blinkDuration` seconds only wallets vouched         for by one of `whitelistedApps` may buy, and no wallet may buy more than 2%         of supply. Selling is unrestricted throughout. Everything lifts on its own."},"dividendSweeper()":{"notice":"Passed to every launched token as the address that may sweep stale dividends."},"genesisCreator()":{"notice":"The only address whose launch may use `genesisFdvInStock`, and only once."},"genesisFdvInStock()":{"notice":"Opening valuation for the genesis launch only, in TokenizedStock."},"genesisUsed()":{"notice":"True once the genesis slot has been used. One-way; every later launch is standard."},"getTokensRange(uint256,uint256)":{"notice":"Page through the registry without loading all of it."},"launchFdvInStock()":{"notice":"Opening fully diluted valuation of every launch, denominated in TokenizedStock."},"poolKeyOf(address)":{"notice":"The full v4 PoolKey for a launched token's pool."},"tokenImplementation()":{"notice":"The EIP-1167 implementation every launched token is a minimal proxy of."}},"notice":"Permissionless launchpad. Anyone can deploy a token that is paired against the         company's tokenized stock, with liquidity locked forever, in one transaction.","version":1}},"settings":{"compilationTarget":{"src/LaunchpadFactory.sol":"LaunchpadFactory"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"none"},"optimizer":{"enabled":true,"runs":200},"remappings":[":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/",":ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",":forge-std/=lib/forge-std/src/",":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":permit2/=lib/v4-periphery/lib/permit2/",":solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",":v4-core/=lib/v4-periphery/lib/v4-core/src/",":v4-periphery/=lib/v4-periphery/"]},"sources":{"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"keccak256":"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d","license":"MIT","urls":["bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100","dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"keccak256":"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc","license":"MIT","urls":["bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037","dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"keccak256":"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44","license":"MIT","urls":["bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d","dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"keccak256":"0xd735962e3d6660884153ba8a972b5f100dde4c482f2ff1c525ba7fdefb154cbd","license":"MIT","urls":["bzz-raw://5a264d17b093f585844b0d977e9f60555b8c8d6513b304fde863cdf652a0d336","dweb:/ipfs/QmWXfaJisjVnrjTUjZGryZpMob9wKivvtbodLS3PTc1ttq"]},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol":{"keccak256":"0x1b88b3fb3d85ba5496d7d5f396f83ee1fddcdd6762059ff65992655b67920998","license":"MIT","urls":["bzz-raw://89393bb3212da1c0889601b9706a07b39419ddc4d2faab9eaf6e7f9152cf6a1c","dweb:/ipfs/QmcCfzzxv1Bkdz1c1yF4gQCeYb6Us5BJANnzTFqawfd1HL"]},"lib/openzeppelin-contracts/contracts/proxy/Clones.sol":{"keccak256":"0x5a1847c0c6b92d60711f04cba9eaff572ae1f657cff1b8ca4ba065bcdbd68d8b","license":"MIT","urls":["bzz-raw://403f015277242179edf64150e044b4a18f6ee2cc5edaf6b067a7791545732ed9","dweb:/ipfs/QmYoLCcvqZDofK8ZcvbQcv3Wj5HHku7nF8Y3pXx2efawJb"]},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"keccak256":"0x669464167428061ee0f8618b73b3ee90aff8405683e7ddde8cd77dadaa1afe29","license":"MIT","urls":["bzz-raw://0dda78587a7358b4fdf6b9fca0fde5a5e34930f36d5268a16028627fc0170195","dweb:/ipfs/QmQ1b6cCceDRWNxti9HifsTCzmVP25Haxs1bWugm52vTqH"]},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2","license":"MIT","urls":["bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303","dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV"]},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"keccak256":"0xd6fa4088198f04eef10c5bce8a2f4d60554b7ec4b987f684393c01bf79b94d9f","license":"MIT","urls":["bzz-raw://f95ee0bbd4dd3ac730d066ba3e785ded4565e890dbec2fa7d3b9fe3bad9d0d6e","dweb:/ipfs/QmSLr6bHkPFWT7ntj34jmwfyskpwo97T9jZUrk5sz3sdtR"]},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x318ea37780610ca7808852275651885d428669402b81488cb7434fde361e9704","license":"MIT","urls":["bzz-raw://4aad80ad93cedad85619900fd7c2084c4d2f4b28f1dbda27e491c5f4fd31025d","dweb:/ipfs/QmUyXtX7FUi2u1W5fs7ufka9XkRVb5ss2menQHTsrsSmqZ"]},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"keccak256":"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2","license":"MIT","urls":["bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12","dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF"]},"lib/openzeppelin-contracts/contracts/utils/Create2.sol":{"keccak256":"0xe06ddfff69f3ba154d92102d9a85db2780e045303a587360cf12195216e851ca","license":"MIT","urls":["bzz-raw://ac19cc390a227758c239c06d3a11d0a2c40c8f58eabb034154b661269d4a0851","dweb:/ipfs/QmdSsfYsPX5RyAXSfHRvR5zdY9MffAgZVa3vdxQUypFBa5"]},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"keccak256":"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123","license":"MIT","urls":["bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf","dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB"]},"lib/openzeppelin-contracts/contracts/utils/LowLevelCall.sol":{"keccak256":"0x6ba3db1346fc75a832aa6cd075e12f6f1fa172fa2122a020f324c319fe5be75e","license":"MIT","urls":["bzz-raw://ab92e9e1cb08144c43fa3a383a87c48f49a652d51156950b928c2a50bee6b3a5","dweb:/ipfs/QmWeKkKZBgLDKgRFGKCzsKybYF7C8g9ysg5kU1b1p7QFBi"]},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","license":"MIT","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"]},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c","license":"MIT","urls":["bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617","dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"]},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","license":"MIT","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"]},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"keccak256":"0xd82c88ac9354d3086f0c1b70a333b8fcf130b06afc7c16da0b736647a21e7da3","license":"MIT","urls":["bzz-raw://4f483b884d6b15294e5a7b85c0750f6f638c6be5ef9451dba88854d864f402a5","dweb:/ipfs/QmZxsiG5J8Xo62AqbzZnMaRU2cuFyHx44bL39ePfzqnX7A"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"keccak256":"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43","license":"MIT","urls":["bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1","dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"keccak256":"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937","license":"MIT","urls":["bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8","dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"keccak256":"0xc131ffa2d04c10a012fe715fe2c115811526b7ea34285cf0a04ce7ce8320da8d","license":"MIT","urls":["bzz-raw://3b212358897db5d99c21244d88f97b2e788527552cb430629b472a8cc6289aec","dweb:/ipfs/QmQtwV4dDe2RYk2ErLpaAX7U82jWh1L6Lw2HRuKDvBi84G"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"keccak256":"0xbdab3544da3d32dfdf7457baa94e17d5a3012952428559e013ffac45d067038e","license":"MIT","urls":["bzz-raw://ce95ff864468e37c76adf71df061d4f3d6f3a5ec1f9bc3aea090463bc72798f4","dweb:/ipfs/QmSbWh1pLbz51yQF4HEu5NRhr8XVv9JYGEw1hq1HudAnCi"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"keccak256":"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848","license":"MIT","urls":["bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d","dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J"]},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"keccak256":"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f","license":"MIT","urls":["bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de","dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d"]},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"keccak256":"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48","license":"MIT","urls":["bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f","dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK"]},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"keccak256":"0x51b9be4f5c4fd3e80cbc9631a65244a2eb2be250b6b7f128a2035080e18aee8d","license":"MIT","urls":["bzz-raw://fe98bbd5498e912146b9319827fc63621eb66ff55d5baae0fa02a7a972ab8d1e","dweb:/ipfs/QmY5hCuyrtgsJtk4AavrxcvBkRrChfr4N6ZnhdC8roPpNi"]},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"keccak256":"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de","license":"MIT","urls":["bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd","dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt"]},"lib/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol":{"keccak256":"0xef5c3fd41aee26bb12aa1c32873cfee88e67eddfe7c2b32283786265ac669741","license":"MIT","urls":["bzz-raw://4de298d02f662a1c36c7be0a150f18c2a161408a5d3e48432e707efd01fac9a4","dweb:/ipfs/QmSiM4oeMmLVKmAtJXz2feYkv4R9ZcyBpkTRW5Nhw5KDyJ"]},"lib/v4-periphery/lib/v4-core/src/libraries/FullMath.sol":{"keccak256":"0x4fc73a00817193fd3cac1cc03d8167d21af97d75f1815a070ee31a90c702b4c2","license":"MIT","urls":["bzz-raw://c3b2d66d36b1ad56b1ab6e2eb8a816740877b40b461c93f125e88621c8378e52","dweb:/ipfs/QmPGvMZzKQvNiWKd8aRzzdW7oAizwrMgcMtnaworDkVHFC"]},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"keccak256":"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86","license":"MIT","urls":["bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59","dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj"]},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"keccak256":"0x4e1a11e154eb06106cb1c4598f06cca5f5ca16eaa33494ba2f0e74981123eca8","license":"MIT","urls":["bzz-raw://a79a57f7b240783b045168d1c4f774ac1812caf8f9a83cb6959a86b0b07b6c70","dweb:/ipfs/QmTb5kvxwDNW8jDuQaqdJ445cCFejNkUqEB17Bjo8UBiva"]},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"keccak256":"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f","license":"MIT","urls":["bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9","dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H"]},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"keccak256":"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78","license":"MIT","urls":["bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782","dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K"]},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"keccak256":"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93","license":"MIT","urls":["bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01","dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5"]},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"keccak256":"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af","license":"MIT","urls":["bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918","dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y"]},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"keccak256":"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786","license":"MIT","urls":["bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639","dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi"]},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"keccak256":"0x7a1a107fc1f2208abb2c9364c8c54e56e98dca27673e9441bed2b949b6382162","license":"MIT","urls":["bzz-raw://4ad2470383bc5595d5af17840c64971f457adac68895a4db41ba5c71a4478e07","dweb:/ipfs/QmdwKhBHDZFuqXrR2BfDBD9r7rB2ULGQBznsajRTkTmL4c"]},"lib/v4-periphery/src/libraries/ActionConstants.sol":{"keccak256":"0x3d6f0e5b4a7b1e60bad93e73dce5db67fb66bebef11c31ed8355014a79aa03b3","license":"MIT","urls":["bzz-raw://6dfa42e24b1b5c7f66e75304ab034fbb6768518eb2410ccfff8b3defdd1658f2","dweb:/ipfs/QmQQ7fud9mmv7PEWPAQiNzeZhNkWf28Z6nCHc2e6WJFfa7"]},"lib/v4-periphery/src/libraries/Actions.sol":{"keccak256":"0xaeeaf62b8dbfe5b0f6ebbea891622f6ca15df8ba8b82a37cc9394df69a7ef975","license":"MIT","urls":["bzz-raw://5dc7bdaf9420c5dcc4ea43b0201068dd467f242e5dc4e4f8c8e234df08ff4f41","dweb:/ipfs/QmbpLmepau8dmtCRx56iPiB47gXHBPHY8Vjh4e3d1aH5Hu"]},"lib/v4-periphery/src/libraries/LiquidityAmounts.sol":{"keccak256":"0xc1ed6daa98eee0330327cf8b98ded5172f904a0db107258f9ce571144803773d","license":"MIT","urls":["bzz-raw://32285a7dd49dbc48e89157e6d064fbbe292de673baf7b00776f2d86fb8484e00","dweb:/ipfs/QmQLmrc9KrTofxYzgmpqKfXEY351RzQAVKs1t3HTVWQdP5"]},"src/LaunchpadFactory.sol":{"keccak256":"0xf6c69aa10495d542e1fc471f088085a9e6f32b2b73acaf005e1605019780093c","license":"MIT","urls":["bzz-raw://818e3ed12ffdaa5ee94962f792d0f156ed9032e3f8dff976476b40865a927df3","dweb:/ipfs/QmWd4U5SC5q5W1roECWECgw3v5fbW1LWj6mhdPUMC96WRk"]},"src/LaunchpadToken.sol":{"keccak256":"0xd681f31b061a470ae79d260850283bf59a4d7e169d1f9281292e99924ebc0c29","license":"MIT","urls":["bzz-raw://af04206e6406fdf8ea41489bad59951a5bf11cde7e8fff8fa631e22603a61c07","dweb:/ipfs/QmdTqJNUNaRYXuGtzz2SBUovkXHboYJe7wstcFXLALTBgh"]},"src/interfaces/ILaunchpadFactory.sol":{"keccak256":"0x180b4ea32c8e13f595bb870fd91b76d81d5640809aed2e6b5ab78f6810385efa","license":"MIT","urls":["bzz-raw://d5985a051dbf91227f9d73ad92361b304e69928403464afeae781d8706a35f48","dweb:/ipfs/QmTrFz8cUNfEXQBYoYhkMYS31vfbQR943XF5JAPajSUnG6"]},"src/interfaces/ISocialTradingApp.sol":{"keccak256":"0x6284c812bb9eca7dcd9da6e26484d481fd7d9b04fb92e482345070863f37edf1","license":"MIT","urls":["bzz-raw://fbf4c5b48fee51837e49a47a17ef37386dd974e463229018d6df62f919cc5937","dweb:/ipfs/QmV8oUq4hYwB4zHM8GRhXTm6SLTyveh7pFnopfyrdcVSBq"]}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_int24":{"label":"int24","encoding":"inplace","numberOfBytes":"3"},"t_uint24":{"label":"uint24","encoding":"inplace","numberOfBytes":"3"},"t_uint64":{"label":"uint64","encoding":"inplace","numberOfBytes":"8"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_contract(IHooks)5789":{"label":"contract IHooks","encoding":"inplace","numberOfBytes":"20"},"t_array(t_address)dyn_storage":{"base":"t_address","label":"address[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_struct(PoolKey)7951_storage":{"label":"struct PoolKey","members":[{"slot":"0","type":"t_userDefinedValueType(Currency)7605","astId":7936,"label":"currency0","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_userDefinedValueType(Currency)7605","astId":7940,"label":"currency1","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_uint24","astId":7943,"label":"fee","offset":20,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_int24","astId":7946,"label":"tickSpacing","offset":23,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"2","type":"t_contract(IHooks)5789","astId":7950,"label":"hooks","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"}],"encoding":"inplace","numberOfBytes":"96"},"t_struct(TokenInfo)10669_storage":{"label":"struct ILaunchpadFactory.TokenInfo","members":[{"slot":"0","type":"t_address","astId":10652,"label":"token","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_address","astId":10654,"label":"creator","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"2","type":"t_string_storage","astId":10656,"label":"name","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"3","type":"t_string_storage","astId":10658,"label":"symbol","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"4","type":"t_uint256","astId":10660,"label":"supply","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"5","type":"t_bytes32","astId":10662,"label":"poolId","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"6","type":"t_uint256","astId":10664,"label":"lpTokenId","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"7","type":"t_uint64","astId":10666,"label":"launchedAt","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"7","type":"t_uint64","astId":10668,"label":"blinkEnd","offset":8,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"}],"encoding":"inplace","numberOfBytes":"256"},"t_userDefinedValueType(Currency)7605":{"label":"Currency","encoding":"inplace","numberOfBytes":"20"},"t_mapping(t_address,t_array(t_address)dyn_storage)":{"key":"t_address","label":"mapping(address => address[])","value":"t_array(t_address)dyn_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(PoolKey)7951_storage)":{"key":"t_address","label":"mapping(address => struct PoolKey)","value":"t_struct(PoolKey)7951_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(TokenInfo)10669_storage)":{"key":"t_address","label":"mapping(address => struct ILaunchpadFactory.TokenInfo)","value":"t_struct(TokenInfo)10669_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_bool","astId":8418,"label":"genesisUsed","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_mapping(t_address,t_struct(TokenInfo)10669_storage)","astId":8426,"label":"_tokenInfo","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"2","type":"t_mapping(t_address,t_struct(PoolKey)7951_storage)","astId":8431,"label":"_poolKeys","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"3","type":"t_mapping(t_address,t_array(t_address)dyn_storage)","astId":8436,"label":"_tokensByCreator","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"4","type":"t_array(t_address)dyn_storage","astId":8439,"label":"_allTokens","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"}]},"transientStorageLayout":null,"userdoc":{"kind":"user","notice":"Permissionless launchpad. Anyone can deploy a token that is paired against the         company's tokenized stock, with liquidity locked forever, in one transaction.","methods":{"genesisUsed()":{"notice":"True once the genesis slot has been used. One-way; every later launch is standard."},"LAUNCH_SUPPLY()":{"notice":"Every launch mints exactly this. Fixed, so no caller can choose it."},"genesisCreator()":{"notice":"The only address whose launch may use `genesisFdvInStock`, and only once."},"dividendSweeper()":{"notice":"Passed to every launched token as the address that may sweep stale dividends."},"launchFdvInStock()":{"notice":"Opening fully diluted valuation of every launch, denominated in TokenizedStock."},"poolKeyOf(address)":{"notice":"The full v4 PoolKey for a launched token's pool."},"genesisFdvInStock()":{"notice":"Opening valuation for the genesis launch only, in TokenizedStock."},"MAX_BLINK_DURATION()":{"notice":"A blink cannot outlive this. Restrictions are a launch mechanic, not a regime."},"tokenImplementation()":{"notice":"The EIP-1167 implementation every launched token is a minimal proxy of."},"createToken(string,string)":{"notice":"Launch a token paired against the tokenized stock, liquidity locked forever."},"getTokensRange(uint256,uint256)":{"notice":"Page through the registry without loading all of it."},"createTokenWithBlink(string,string,uint256,address[])":{"notice":"Launch with a blink window: for `blinkDuration` seconds only wallets vouched         for by one of `whitelistedApps` may buy, and no wallet may buy more than 2%         of supply. Selling is unrestricted throughout. Everything lifts on its own."}},"version":1},"devdoc":{"kind":"dev","title":"LaunchpadFactory","errors":{"FailedDeployment()":[{"details":"The deployment failed."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"InsufficientBalance(uint256,uint256)":[{"details":"The ETH balance of the account is not enough to perform the operation."}]},"events":{"TokenLaunched(address,address,bytes32,uint256,string,string,uint256,uint64,uint256)":{"params":{"token":"The freshly cloned ERC-20.","poolId":"Uniswap v4 pool id for token/TokenizedStock. v4 pools are entries in                  the PoolManager singleton, not contracts, so there is no pool address                  to emit; `poolManager()` on this factory is the contract that holds                  every pool's reserves.","lpTokenId":"The position NFT that was burned to 0xdead."}}},"details":"No owner. No admin. No pause. No parameter is settable after construction and no      token can ever be removed from the registry. The factory custodies nothing once a      launch returns: the whole supply goes into the pool, the LP NFT goes to 0xdead,      and any rounding dust goes to 0xdead too.      HOW LIQUIDITY IS SEEDED. The launch is single-sided: 100% of the new token, zero      stock. In Uniswap v4 that means opening the pool at the very edge of the position's      range, so the whole position is denominated in the launch token and the first buyer      walks the price up from there — a bonding curve, not a pre-priced pool. Which edge      depends on currency ordering, which in turn depends on how the cloned token's      address sorts against the stock's; `_rangeFor` handles both cases.      ON \"POOL ADDRESS\". Uniswap v4 is a singleton: pools are not contracts. There is no      per-pool address to return, so the registry stores the `PoolId` and the full      `PoolKey`. `poolManager` is the address that actually custodies every pool's      reserves.","methods":{"createToken(string,string)":{"details":"Supply is fixed at `LAUNCH_SUPPLY` for every token; only the metadata varies."}},"version":1,"stateVariables":{"LAUNCH_SUPPLY":{"details":"Because the opening tick is derived from the valuation rather than hardcoded, a      fixed supply costs nothing in flexibility and buys a lot in legibility: every      token on the platform has the same supply, so a holder's balance means the same      thing everywhere and price comparisons across launches are direct."},"launchFdvInStock":{"details":"Denominated in stock rather than dollars on purpose. A dollar target would need a      price oracle, which would make the factory depend on something that can be changed      or fail; this way the factory stays immutable and oracle-free, and the launch      valuation simply tracks the share price. If the stock doubles, every new token      opens at twice the dollar valuation, with no transaction and nothing to update.      The opening tick is derived from this and the token's own supply, so a 1e6-supply      launch and a 1e12-supply launch both open at the same valuation. A single hardcoded      tick would not: it would put those two launches six orders of magnitude apart."},"genesisFdvInStock":{"details":"The flagship token opens far above the standard launch — a deliberate signal that      it is not one of the crowd. It is not a privilege in any extractive sense: 100% of      supply still goes into the pool single-sided, the creator still receives no      premine, and a higher opening price is strictly worse for whoever buys it. What the      reservation actually protects is which token gets the slot."}}},"sourceIds":{"src/LaunchpadToken.sol":{"id":41},"src/LaunchpadFactory.sol":{"id":40},"src/interfaces/ILaunchpadFactory.sol":{"id":42},"src/interfaces/ISocialTradingApp.sol":{"id":43},"lib/v4-periphery/src/libraries/Actions.sol":{"id":38},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"id":34},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"id":35},"lib/v4-periphery/src/libraries/ActionConstants.sol":{"id":37},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"id":33},"lib/v4-periphery/src/libraries/LiquidityAmounts.sol":{"id":39},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"id":14},"lib/openzeppelin-contracts/contracts/proxy/Clones.sol":{"id":5},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"id":12},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"id":10},"lib/openzeppelin-contracts/contracts/utils/Create2.sol":{"id":11},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"id":20},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"id":25},"lib/v4-periphery/lib/v4-core/src/libraries/FullMath.sol":{"id":28},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"id":29},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"id":30},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"id":31},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":16},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"id":36},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"id":18},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"id":19},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":2},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"id":6},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"id":32},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":1},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":7},"lib/openzeppelin-contracts/contracts/utils/LowLevelCall.sol":{"id":13},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"id":26},"lib/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol":{"id":27},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":0},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":17},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"id":21},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"id":22},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"id":3},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol":{"id":4},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":9},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":15},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"id":23},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"id":24},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":8}},"additionalInput":null,"stdJsonInput":{"sources":{"src/LaunchpadToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {SafeCast} from \"@openzeppelin/contracts/utils/math/SafeCast.sol\";\nimport {ISocialTradingApp} from \"./interfaces/ISocialTradingApp.sol\";\n\n/// @title LaunchpadToken\n/// @notice The minimal ERC-20 the LaunchpadFactory clones (EIP-1167) for every launch, and the\n///         dividend ledger for that token's own holders.\n///\n/// @dev Half of the protocol fee a token generates is paid back to that token's holders, in\n///      TokenizedStock. Hold PEPE, earn stock from PEPE's trading. Each launch keeps its own\n///      pool of dividends; they are never mixed between tokens.\n///\n///      WHY THE LEDGER LIVES HERE. Paying holders pro rata needs per-holder balance history at\n///      the moment of every distribution, which cannot be obtained from outside a token — an\n///      external distributor would have to iterate the whole holder set. Because the factory\n///      deploys this token, the ledger can live in `_update` instead and cost O(1) per\n///      transfer. No snapshots, no wrapper, no staking step.\n///\n///      EXCLUSIONS ARE LOAD-BEARING HERE. At launch, 100% of supply sits in the Uniswap v4\n///      PoolManager, and it never claims anything. If it accrued, essentially every dividend\n///      would be stranded. Excluding it makes the dividend denominator the *circulating*\n///      supply — tokens actually held by people — which is what \"dividends to holders\" means.\n///      The list is fixed at initialization and can never be edited.\n///\n///      Beyond the dividend ledger and the optional blink window there is no owner, no admin,\n///      no mint after initialization, no pause and no upgrade path.\ncontract LaunchpadToken is ERC20 {\n    using SafeERC20 for IERC20;\n    using SafeCast for uint256;\n\n    /// @notice Cumulative buy cap per address during the blink, in basis points of supply.\n    uint256 public constant BLINK_MAX_BUY_BPS = 200; // 2%\n    uint256 private constant BPS_DENOMINATOR = 10_000;\n\n    /// @dev Fixed-point scale for the per-share accumulator. 2^96 keeps full precision for a\n    ///      1-wei dividend spread across a 1e27 supply while leaving the corrections\n    ///      arithmetic far from an int256 overflow.\n    uint256 internal constant MAGNITUDE = 2 ** 96;\n\n    /// @dev Floor on the dividend denominator. Below this the per-share accumulator could grow\n    ///      fast enough to strain the corrections maths, so a distribution is deferred instead.\n    uint256 public constant MIN_ELIGIBLE_SUPPLY = 1e15;\n\n    /// @notice How long a holder may go without claiming before dividends can be swept.\n    uint256 public constant STALE_AFTER = 31 days;\n\n    address public constant DEAD = address(0x000000000000000000000000000000000000dEaD);\n\n    string private _tokenName;\n    string private _tokenSymbol;\n\n    /// @notice The LaunchpadFactory that cloned this token.\n    address public factory;\n    /// @notice The address that called `createToken` / `createTokenWithBlink`.\n    address public creator;\n    /// @notice The Uniswap v4 PoolManager singleton. Tells a buy from a transfer, and never accrues.\n    address public poolManager;\n    /// @notice The asset dividends are paid in — the company's tokenized share.\n    IERC20 public dividendToken;\n    /// @notice May sweep dividends left unclaimed past `STALE_AFTER`.\n    address public sweeper;\n\n    /// @notice Unix timestamp the blink window ends. Zero means this token never had one.\n    uint64 public blinkEnd;\n    /// @notice Per-address cumulative buy cap while the blink is live.\n    uint128 public maxBuyPerAddress;\n\n    address[] private _whitelistedApps;\n\n    /// @notice How much each address has bought out of the pool during the blink window.\n    mapping(address account => uint256 amount) public blinkPurchased;\n\n    uint256 internal _magnifiedDividendPerShare;\n    mapping(address account => int256) internal _magnifiedCorrections;\n\n    mapping(address account => uint256) public withdrawnDividends;\n    mapping(address account => uint256) public lastClaimAt;\n    /// @notice Holders that do not accrue. Fixed at initialization.\n    mapping(address account => bool) public excludedFromDividends;\n\n    /// @notice Circulating supply that actually accrues. The dividend denominator.\n    uint256 public dividendEligibleSupply;\n    uint256 public totalDividendsDistributed;\n    uint256 public totalDividendsClaimed;\n    uint256 public totalDividendsSwept;\n\n    bool private _initialized;\n\n    error AlreadyInitialized();\n    error ZeroSupply();\n    error EmptyWhitelist();\n    error BlinkBuyerNotVerified(address buyer);\n    error BlinkMaxBuyExceeded(address buyer, uint256 attempted, uint256 cap);\n    error NoEligibleSupply();\n    error NothingToClaim();\n    error NotSweeper();\n    error NotStale(address account, uint256 claimableAt);\n\n    event DividendsDistributed(address indexed from, uint256 amount, uint256 perShareAdded);\n    event DividendsClaimed(address indexed account, uint256 amount);\n    event DividendsSwept(address indexed account, address indexed to, uint256 amount);\n\n    /// @dev Locks the implementation. Clones get fresh (zeroed) storage and stay openable once.\n    constructor() ERC20(\"\", \"\") {\n        _initialized = true;\n    }\n\n    struct InitParams {\n        string name;\n        string symbol;\n        uint256 supply;\n        address creator;\n        address poolManager;\n        address dividendToken;\n        address sweeper;\n        uint256 blinkDuration;\n        address[] whitelistedApps;\n    }\n\n    /// @notice One-shot setup, called by the factory in the same transaction as the clone.\n    /// @dev Mints the full supply to the factory, which immediately deposits all of it as\n    ///      single-sided liquidity. Callable exactly once; there is no way to mint again.\n    function initialize(InitParams calldata p) external {\n        if (_initialized) revert AlreadyInitialized();\n        if (p.supply == 0) revert ZeroSupply();\n        _initialized = true;\n\n        _tokenName = p.name;\n        _tokenSymbol = p.symbol;\n        factory = msg.sender;\n        creator = p.creator;\n        poolManager = p.poolManager;\n        dividendToken = IERC20(p.dividendToken);\n        sweeper = p.sweeper;\n\n        // Addresses that hold but can never claim. Fixed here, forever.\n        excludedFromDividends[p.poolManager] = true; // every pool's reserves live here\n        excludedFromDividends[msg.sender] = true; // the factory, mid-launch\n        excludedFromDividends[DEAD] = true;\n        excludedFromDividends[address(this)] = true;\n\n        if (p.blinkDuration != 0) {\n            if (p.whitelistedApps.length == 0) revert EmptyWhitelist();\n            blinkEnd = uint64(block.timestamp + p.blinkDuration);\n            maxBuyPerAddress = uint128((p.supply * BLINK_MAX_BUY_BPS) / BPS_DENOMINATOR);\n            _whitelistedApps = p.whitelistedApps;\n        }\n\n        _mint(msg.sender, p.supply);\n    }\n\n    function name() public view override returns (string memory) {\n        return _tokenName;\n    }\n\n    function symbol() public view override returns (string memory) {\n        return _tokenSymbol;\n    }\n\n    // -------------------------------------------------------------------------\n    // Dividends\n    // -------------------------------------------------------------------------\n\n    /// @notice Pay `amount` of the dividend token in, to be shared pro rata among holders.\n    /// @dev Permissionless: the caller's tokens are pulled first, so calling it is a donation.\n    ///      The launchpad's FeeCollector is the normal caller.\n    function distributeDividends(uint256 amount) external {\n        if (amount == 0) return;\n\n        // Reverts while the whole supply is still in the pool, i.e. before anyone holds any.\n        // The FeeCollector treats that as \"retry later\" rather than losing the fee.\n        uint256 eligible = dividendEligibleSupply;\n        if (eligible < MIN_ELIGIBLE_SUPPLY) revert NoEligibleSupply();\n\n        dividendToken.safeTransferFrom(msg.sender, address(this), amount);\n\n        uint256 perShareAdded = (amount * MAGNITUDE) / eligible;\n        _magnifiedDividendPerShare += perShareAdded;\n        totalDividendsDistributed += amount;\n\n        emit DividendsDistributed(msg.sender, amount, perShareAdded);\n    }\n\n    /// @notice Total dividends ever credited to `account`, claimed or not.\n    function accumulativeDividendOf(address account) public view returns (uint256) {\n        if (excludedFromDividends[account]) return 0;\n        int256 magnified = (_magnifiedDividendPerShare * balanceOf(account)).toInt256() + _magnifiedCorrections[account];\n        return magnified <= 0 ? 0 : uint256(magnified) / MAGNITUDE;\n    }\n\n    /// @notice Dividends `account` can claim right now.\n    function withdrawableDividendOf(address account) public view returns (uint256) {\n        return accumulativeDividendOf(account) - withdrawnDividends[account];\n    }\n\n    function staleAt(address account) public view returns (uint256) {\n        return lastClaimAt[account] + STALE_AFTER;\n    }\n\n    function isStale(address account) public view returns (bool) {\n        return lastClaimAt[account] != 0 && block.timestamp >= staleAt(account) && withdrawableDividendOf(account) > 0;\n    }\n\n    /// @notice Claim your dividends. Resets your staleness clock.\n    function claim() external returns (uint256 amount) {\n        return _claimFor(msg.sender);\n    }\n\n    /// @notice Claim on someone else's behalf. Pays them, and resets their clock — so anyone can\n    ///         protect a holder from the sweep without needing the holder's keys.\n    function claimFor(address account) external returns (uint256 amount) {\n        return _claimFor(account);\n    }\n\n    function _claimFor(address account) internal returns (uint256 amount) {\n        amount = withdrawableDividendOf(account);\n        if (amount == 0) revert NothingToClaim();\n\n        withdrawnDividends[account] += amount;\n        totalDividendsClaimed += amount;\n        lastClaimAt[account] = block.timestamp;\n\n        dividendToken.safeTransfer(account, amount);\n        emit DividendsClaimed(account, amount);\n    }\n\n    /// @notice Sweep dividends from holders who have not claimed for `STALE_AFTER`.\n    /// @dev The one privileged function, and it moves balances credited to someone else. Two\n    ///      mitigations are built in: the window is a constant and can never be shortened, and\n    ///      `claimFor` is open to anyone, so a keeper or a third party can pay a holder and\n    ///      reset their clock. Holders must still be told plainly that 31 days of silence\n    ///      forfeits their accrual.\n    function sweepStale(address[] calldata accounts) external returns (uint256 total) {\n        if (msg.sender != sweeper) revert NotSweeper();\n\n        for (uint256 i = 0; i < accounts.length; ++i) {\n            address account = accounts[i];\n            uint256 amount = withdrawableDividendOf(account);\n            if (amount == 0) continue;\n            if (lastClaimAt[account] == 0 || block.timestamp < staleAt(account)) {\n                revert NotStale(account, staleAt(account));\n            }\n\n            withdrawnDividends[account] += amount;\n            totalDividendsSwept += amount;\n            lastClaimAt[account] = block.timestamp;\n            total += amount;\n\n            dividendToken.safeTransfer(sweeper, amount);\n            emit DividendsSwept(account, sweeper, amount);\n        }\n    }\n\n    // -------------------------------------------------------------------------\n    // Blink\n    // -------------------------------------------------------------------------\n\n    function blinkActive() public view returns (bool) {\n        return blinkEnd != 0 && block.timestamp < blinkEnd;\n    }\n\n    function whitelistedApps() external view returns (address[] memory) {\n        return _whitelistedApps;\n    }\n\n    /// @notice True if any whitelisted app vouches for `wallet`.\n    function isBlinkVerified(address wallet) public view returns (bool) {\n        address[] memory apps = _whitelistedApps;\n        for (uint256 i = 0; i < apps.length; ++i) {\n            // A broken or malicious app must not be able to brick the token, so a reverting\n            // app just counts as \"not verified\".\n            try ISocialTradingApp(apps[i]).isVerifiedUser(wallet) returns (bool ok) {\n                if (ok) return true;\n            } catch {}\n        }\n        return false;\n    }\n\n    function blinkRemainingAllowance(address wallet) external view returns (uint256) {\n        if (!blinkActive()) return type(uint256).max;\n        uint256 used = blinkPurchased[wallet];\n        return used >= maxBuyPerAddress ? 0 : maxBuyPerAddress - used;\n    }\n\n    // -------------------------------------------------------------------------\n    // Ledger maintenance\n    // -------------------------------------------------------------------------\n\n    /// @dev Enforces the blink window and keeps the dividend ledger exact, both in O(1).\n    ///\n    ///      Blink gating: tokens leaving the PoolManager singleton is what a buy looks like on\n    ///      Uniswap v4, since every pool's reserves are custodied there. Sells (tokens moving\n    ///      *into* the PoolManager) and ordinary wallet-to-wallet transfers are never\n    ///      restricted, at any time.\n    ///\n    ///      Caveat: if a buyer routes through an aggregator that takes custody mid-route, the\n    ///      address the PoolManager pays out to is the router, not the end user, and the check\n    ///      lands on the router. Buying via the v4 router with the recipient set to the buyer\n    ///      (the normal path, and the one the tests exercise) gates correctly.\n    ///\n    ///      Dividend ledger: a correction cancels the accrual an account would otherwise appear\n    ///      to have earned on tokens it did not hold when the distribution happened.\n    function _update(address from, address to, uint256 value) internal override {\n        if (from == poolManager && blinkActive()) {\n            if (!isBlinkVerified(to)) revert BlinkBuyerNotVerified(to);\n\n            uint256 purchased = blinkPurchased[to] + value;\n            if (purchased > maxBuyPerAddress) {\n                revert BlinkMaxBuyExceeded(to, purchased, maxBuyPerAddress);\n            }\n            blinkPurchased[to] = purchased;\n        }\n\n        super._update(from, to, value);\n\n        uint256 perShare = _magnifiedDividendPerShare;\n\n        if (from != address(0) && !excludedFromDividends[from]) {\n            dividendEligibleSupply -= value;\n            _magnifiedCorrections[from] += (perShare * value).toInt256();\n        }\n\n        if (to != address(0) && !excludedFromDividends[to]) {\n            dividendEligibleSupply += value;\n            _magnifiedCorrections[to] -= (perShare * value).toInt256();\n            // Start the staleness clock the first time an address holds, so a holder is never\n            // sweepable before they have had a full window to notice.\n            if (lastClaimAt[to] == 0) lastClaimAt[to] = block.timestamp;\n        }\n    }\n}\n"},"src/LaunchpadFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {Clones} from \"@openzeppelin/contracts/proxy/Clones.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {PoolId, PoolIdLibrary} from \"@uniswap/v4-core/src/types/PoolId.sol\";\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {TickMath} from \"@uniswap/v4-core/src/libraries/TickMath.sol\";\nimport {FullMath} from \"@uniswap/v4-core/src/libraries/FullMath.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\n\nimport {Actions} from \"v4-periphery/src/libraries/Actions.sol\";\nimport {ActionConstants} from \"v4-periphery/src/libraries/ActionConstants.sol\";\nimport {LiquidityAmounts} from \"v4-periphery/src/libraries/LiquidityAmounts.sol\";\n\nimport {LaunchpadToken} from \"./LaunchpadToken.sol\";\nimport {ILaunchpadFactory} from \"./interfaces/ILaunchpadFactory.sol\";\n\n/// @dev Only the slice of the v4 PositionManager the factory actually touches.\ninterface IPositionManagerMinimal {\n    function initializePool(PoolKey calldata key, uint160 sqrtPriceX96) external payable returns (int24);\n    function modifyLiquidities(bytes calldata unlockData, uint256 deadline) external payable;\n    function nextTokenId() external view returns (uint256);\n    function transferFrom(address from, address to, uint256 id) external;\n    function ownerOf(uint256 id) external view returns (address);\n    function getPositionLiquidity(uint256 tokenId) external view returns (uint128);\n}\n\n/// @title LaunchpadFactory\n/// @notice Permissionless launchpad. Anyone can deploy a token that is paired against the\n///         company's tokenized stock, with liquidity locked forever, in one transaction.\n///\n/// @dev No owner. No admin. No pause. No parameter is settable after construction and no\n///      token can ever be removed from the registry. The factory custodies nothing once a\n///      launch returns: the whole supply goes into the pool, the LP NFT goes to 0xdead,\n///      and any rounding dust goes to 0xdead too.\n///\n///      HOW LIQUIDITY IS SEEDED. The launch is single-sided: 100% of the new token, zero\n///      stock. In Uniswap v4 that means opening the pool at the very edge of the position's\n///      range, so the whole position is denominated in the launch token and the first buyer\n///      walks the price up from there — a bonding curve, not a pre-priced pool. Which edge\n///      depends on currency ordering, which in turn depends on how the cloned token's\n///      address sorts against the stock's; `_rangeFor` handles both cases.\n///\n///      ON \"POOL ADDRESS\". Uniswap v4 is a singleton: pools are not contracts. There is no\n///      per-pool address to return, so the registry stores the `PoolId` and the full\n///      `PoolKey`. `poolManager` is the address that actually custodies every pool's\n///      reserves.\ncontract LaunchpadFactory is ILaunchpadFactory {\n    using SafeERC20 for IERC20;\n    using PoolIdLibrary for PoolKey;\n\n    address public constant DEAD = address(0x000000000000000000000000000000000000dEaD);\n\n    uint256 private constant Q192 = 1 << 192;\n\n    /// @notice Every launch mints exactly this. Fixed, so no caller can choose it.\n    /// @dev Because the opening tick is derived from the valuation rather than hardcoded, a\n    ///      fixed supply costs nothing in flexibility and buys a lot in legibility: every\n    ///      token on the platform has the same supply, so a holder's balance means the same\n    ///      thing everywhere and price comparisons across launches are direct.\n    uint256 public constant LAUNCH_SUPPLY = 1_000_000_000e18;\n    /// @notice A blink cannot outlive this. Restrictions are a launch mechanic, not a regime.\n    uint256 public constant MAX_BLINK_DURATION = 7 days;\n\n    IERC20 public immutable stock;\n    IPoolManager public immutable poolManager;\n    IPositionManagerMinimal public immutable positionManager;\n    address public immutable feeCollectorAddress;\n    address public immutable hookAddress;\n    uint24 public immutable defaultFee;\n    int24 public immutable defaultTickSpacing;\n\n    /// @notice Passed to every launched token as the address that may sweep stale dividends.\n    address public immutable dividendSweeper;\n\n    /// @notice Opening fully diluted valuation of every launch, denominated in TokenizedStock.\n    /// @dev Denominated in stock rather than dollars on purpose. A dollar target would need a\n    ///      price oracle, which would make the factory depend on something that can be changed\n    ///      or fail; this way the factory stays immutable and oracle-free, and the launch\n    ///      valuation simply tracks the share price. If the stock doubles, every new token\n    ///      opens at twice the dollar valuation, with no transaction and nothing to update.\n    ///\n    ///      The opening tick is derived from this and the token's own supply, so a 1e6-supply\n    ///      launch and a 1e12-supply launch both open at the same valuation. A single hardcoded\n    ///      tick would not: it would put those two launches six orders of magnitude apart.\n    uint256 public immutable launchFdvInStock;\n\n    /// @notice Opening valuation for the genesis launch only, in TokenizedStock.\n    /// @dev The flagship token opens far above the standard launch — a deliberate signal that\n    ///      it is not one of the crowd. It is not a privilege in any extractive sense: 100% of\n    ///      supply still goes into the pool single-sided, the creator still receives no\n    ///      premine, and a higher opening price is strictly worse for whoever buys it. What the\n    ///      reservation actually protects is which token gets the slot.\n    uint256 public immutable genesisFdvInStock;\n\n    /// @notice The only address whose launch may use `genesisFdvInStock`, and only once.\n    address public immutable genesisCreator;\n\n    /// @notice True once the genesis slot has been used. One-way; every later launch is standard.\n    bool public genesisUsed;\n\n    /// @notice The EIP-1167 implementation every launched token is a minimal proxy of.\n    address public immutable tokenImplementation;\n\n    mapping(address token => TokenInfo) private _tokenInfo;\n    mapping(address token => PoolKey) private _poolKeys;\n    mapping(address creator => address[] tokens) private _tokensByCreator;\n    address[] private _allTokens;\n\n    error ZeroAddress();\n    error EmptyName();\n    error EmptySymbol();\n    error InvalidBlinkDuration(uint256 duration, uint256 maximum);\n    error EmptyWhitelist();\n    error PoolInitializationFailed();\n    error UnknownToken(address token);\n    error NoLiquidityMinted();\n    error ZeroLaunchValuation();\n    error LaunchPriceOutOfRange(uint256 fdv);\n    error InvalidRange(uint256 index, uint256 length);\n\n    /// @param token     The freshly cloned ERC-20.\n    /// @param poolId    Uniswap v4 pool id for token/TokenizedStock. v4 pools are entries in\n    ///                  the PoolManager singleton, not contracts, so there is no pool address\n    ///                  to emit; `poolManager()` on this factory is the contract that holds\n    ///                  every pool's reserves.\n    /// @param lpTokenId The position NFT that was burned to 0xdead.\n    event TokenLaunched(\n        address indexed token,\n        address indexed creator,\n        PoolId indexed poolId,\n        uint256 lpTokenId,\n        string name,\n        string symbol,\n        uint256 supply,\n        uint64 blinkEnd,\n        uint256 timestamp\n    );\n\n    constructor(\n        address tokenizedStock_,\n        address poolManager_,\n        address positionManager_,\n        address feeCollector_,\n        address hook_,\n        uint24 defaultFee_,\n        int24 defaultTickSpacing_,\n        uint256 launchFdvInStock_,\n        uint256 genesisFdvInStock_,\n        address genesisCreator_,\n        address dividendSweeper_\n    ) {\n        if (\n            tokenizedStock_ == address(0) || poolManager_ == address(0) || positionManager_ == address(0)\n                || feeCollector_ == address(0) || hook_ == address(0)\n        ) revert ZeroAddress();\n\n        stock = IERC20(tokenizedStock_);\n        poolManager = IPoolManager(poolManager_);\n        positionManager = IPositionManagerMinimal(positionManager_);\n        feeCollectorAddress = feeCollector_;\n        hookAddress = hook_;\n        if (launchFdvInStock_ == 0 || genesisFdvInStock_ == 0) revert ZeroLaunchValuation();\n        if (genesisCreator_ == address(0) || dividendSweeper_ == address(0)) revert ZeroAddress();\n\n        defaultFee = defaultFee_;\n        defaultTickSpacing = defaultTickSpacing_;\n        launchFdvInStock = launchFdvInStock_;\n        genesisFdvInStock = genesisFdvInStock_;\n        genesisCreator = genesisCreator_;\n        dividendSweeper = dividendSweeper_;\n\n        tokenImplementation = address(new LaunchpadToken());\n    }\n\n    // -------------------------------------------------------------------------\n    // Launch\n    // -------------------------------------------------------------------------\n\n    /// @notice Launch a token paired against the tokenized stock, liquidity locked forever.\n    /// @dev Supply is fixed at `LAUNCH_SUPPLY` for every token; only the metadata varies.\n    function createToken(string calldata name, string calldata symbol) external returns (address token) {\n        return _launch(name, symbol, 0, new address[](0));\n    }\n\n    /// @notice Launch with a blink window: for `blinkDuration` seconds only wallets vouched\n    ///         for by one of `whitelistedApps` may buy, and no wallet may buy more than 2%\n    ///         of supply. Selling is unrestricted throughout. Everything lifts on its own.\n    function createTokenWithBlink(\n        string calldata name,\n        string calldata symbol,\n        uint256 blinkDuration,\n        address[] calldata whitelistedApps\n    ) external returns (address token) {\n        if (blinkDuration == 0 || blinkDuration > MAX_BLINK_DURATION) {\n            revert InvalidBlinkDuration(blinkDuration, MAX_BLINK_DURATION);\n        }\n        if (whitelistedApps.length == 0) revert EmptyWhitelist();\n        return _launch(name, symbol, blinkDuration, whitelistedApps);\n    }\n\n    function _launch(\n        string calldata name,\n        string calldata symbol,\n        uint256 blinkDuration,\n        address[] memory whitelistedApps\n    ) internal returns (address token) {\n        if (bytes(name).length == 0) revert EmptyName();\n        if (bytes(symbol).length == 0) revert EmptySymbol();\n\n        // The flagship opens high, exactly once, and only for the address reserved for it.\n        uint256 fdv = launchFdvInStock;\n        if (!genesisUsed && msg.sender == genesisCreator) {\n            genesisUsed = true;\n            fdv = genesisFdvInStock;\n        }\n\n        // The registry index is part of the salt, so two identical launches can never collide.\n        bytes32 salt = keccak256(abi.encode(msg.sender, _allTokens.length, name, symbol));\n        token = Clones.cloneDeterministic(tokenImplementation, salt);\n\n        LaunchpadToken(token)\n            .initialize(\n                LaunchpadToken.InitParams({\n                name: name,\n                symbol: symbol,\n                supply: LAUNCH_SUPPLY,\n                creator: msg.sender,\n                poolManager: address(poolManager),\n                dividendToken: address(stock),\n                sweeper: dividendSweeper,\n                blinkDuration: blinkDuration,\n                whitelistedApps: whitelistedApps\n            })\n            );\n\n        (PoolKey memory key, uint256 lpTokenId) = _openPoolAndLockLiquidity(token, fdv);\n        _register(token, name, symbol, key, lpTokenId);\n    }\n\n    /// @dev Split out of `_launch` purely to keep the stack shallow enough for the\n    ///      non-IR codegen; it is one logical step with the launch above it.\n    function _register(\n        address token,\n        string calldata name,\n        string calldata symbol,\n        PoolKey memory key,\n        uint256 lpTokenId\n    ) internal {\n        TokenInfo memory info = TokenInfo({\n            token: token,\n            creator: msg.sender,\n            name: name,\n            symbol: symbol,\n            supply: LAUNCH_SUPPLY,\n            poolId: PoolId.unwrap(key.toId()),\n            lpTokenId: lpTokenId,\n            launchedAt: uint64(block.timestamp),\n            blinkEnd: LaunchpadToken(token).blinkEnd()\n        });\n\n        _poolKeys[token] = key;\n        _tokenInfo[token] = info;\n        _allTokens.push(token);\n        _tokensByCreator[msg.sender].push(token);\n\n        emit TokenLaunched(\n            info.token,\n            info.creator,\n            PoolId.wrap(info.poolId),\n            info.lpTokenId,\n            info.name,\n            info.symbol,\n            info.supply,\n            info.blinkEnd,\n            info.launchedAt\n        );\n    }\n\n    /// @dev Creates the pool, deposits the entire supply single-sided, and burns the LP NFT.\n    function _openPoolAndLockLiquidity(address token, uint256 fdv)\n        internal\n        returns (PoolKey memory key, uint256 lpTokenId)\n    {\n        uint256 supply = LAUNCH_SUPPLY;\n        bool tokenIsCurrency0 = token < address(stock);\n        key = PoolKey({\n            currency0: Currency.wrap(tokenIsCurrency0 ? token : address(stock)),\n            currency1: Currency.wrap(tokenIsCurrency0 ? address(stock) : token),\n            fee: defaultFee,\n            tickSpacing: defaultTickSpacing,\n            hooks: IHooks(hookAddress)\n        });\n\n        (int24 tickLower, int24 tickUpper, int24 startTick) = _rangeFor(tokenIsCurrency0, fdv);\n\n        // `initializePool` swallows a revert and returns int24.max if the pool already\n        // exists. It cannot here — the token address is minutes old — but check anyway.\n        if (positionManager.initializePool(key, TickMath.getSqrtPriceAtTick(startTick)) == type(int24).max) {\n            revert PoolInitializationFailed();\n        }\n\n        uint128 liquidity = _liquidityFor(tokenIsCurrency0, tickLower, tickUpper, supply);\n        lpTokenId = _mintAndBurnPosition(token, supply, key, tickLower, tickUpper, liquidity, tokenIsCurrency0);\n    }\n\n    /// @dev How much liquidity the full supply buys across the single-sided range.\n    function _liquidityFor(bool tokenIsCurrency0, int24 tickLower, int24 tickUpper, uint256 supply)\n        internal\n        pure\n        returns (uint128 liquidity)\n    {\n        uint160 sqrtLower = TickMath.getSqrtPriceAtTick(tickLower);\n        uint160 sqrtUpper = TickMath.getSqrtPriceAtTick(tickUpper);\n        liquidity = tokenIsCurrency0\n            ? LiquidityAmounts.getLiquidityForAmount0(sqrtLower, sqrtUpper, supply)\n            : LiquidityAmounts.getLiquidityForAmount1(sqrtLower, sqrtUpper, supply);\n        if (liquidity == 0) revert NoLiquidityMinted();\n    }\n\n    /// @dev Mints the position to this factory and immediately burns the NFT to 0xdead.\n    ///      The supply is handed to the PositionManager first so it can settle out of its\n    ///      own balance, which keeps Permit2 out of the launch path entirely.\n    function _mintAndBurnPosition(\n        address token,\n        uint256 supply,\n        PoolKey memory key,\n        int24 tickLower,\n        int24 tickUpper,\n        uint128 liquidity,\n        bool tokenIsCurrency0\n    ) internal returns (uint256 lpTokenId) {\n        IERC20(token).safeTransfer(address(positionManager), supply);\n\n        bytes memory actions =\n            abi.encodePacked(uint8(Actions.MINT_POSITION), uint8(Actions.SETTLE), uint8(Actions.SWEEP));\n        bytes[] memory params = new bytes[](3);\n        params[0] = abi.encode(\n            key,\n            tickLower,\n            tickUpper,\n            uint256(liquidity),\n            // Cap the stock side at zero: the factory holds no stock, so a range that\n            // somehow demanded any must fail loudly rather than half-open a pool.\n            tokenIsCurrency0 ? uint128(supply) : uint128(0),\n            tokenIsCurrency0 ? uint128(0) : uint128(supply),\n            address(this),\n            bytes(\"\")\n        );\n        params[1] = abi.encode(Currency.wrap(token), ActionConstants.OPEN_DELTA, false);\n        params[2] = abi.encode(Currency.wrap(token), address(this));\n\n        lpTokenId = positionManager.nextTokenId();\n        positionManager.modifyLiquidities(abi.encode(actions, params), block.timestamp);\n\n        // Liquidity locked forever: with the position NFT at 0xdead nobody — the creator,\n        // the factory, the protocol — can ever decrease this position.\n        positionManager.transferFrom(address(this), DEAD, lpTokenId);\n\n        // Whatever the liquidity math rounded off is burned too, so 100% of supply ends up\n        // either in the pool or unrecoverable. The factory never keeps a balance.\n        uint256 dust = IERC20(token).balanceOf(address(this));\n        if (dust != 0) IERC20(token).safeTransfer(DEAD, dust);\n    }\n\n    /// @dev Picks the position range and the opening tick so the position is 100% the launch\n    ///      token and 0% stock. For a range [lower, upper], a position is entirely currency0\n    ///      when the pool sits at (or below) `lower`, and entirely currency1 at `upper`.\n    function _rangeFor(bool tokenIsCurrency0, uint256 fdv)\n        internal\n        view\n        returns (int24 tickLower, int24 tickUpper, int24 startTick)\n    {\n        int24 spacing = defaultTickSpacing;\n        int24 minUsable = _floorTick(TickMath.MIN_TICK, spacing);\n        if (minUsable < TickMath.MIN_TICK) minUsable += spacing;\n        int24 maxUsable = _floorTick(TickMath.MAX_TICK, spacing);\n\n        int24 opening = _openingTick(tokenIsCurrency0, fdv);\n\n        if (tokenIsCurrency0) {\n            // price = stock per token; open low and let buyers walk it up. Flooring the tick\n            // rounds the opening valuation down.\n            tickLower = _floorTick(opening, spacing);\n            tickUpper = maxUsable;\n            startTick = tickLower;\n        } else {\n            // Ordering flipped, so price = token per stock and the tick is mirrored; open at\n            // the top of the range instead. Ceiling the tick means more tokens per stock,\n            // which rounds the opening valuation down here too.\n            tickLower = minUsable;\n            tickUpper = _ceilTick(opening, spacing);\n            startTick = tickUpper;\n        }\n\n        if (tickLower >= tickUpper) revert LaunchPriceOutOfRange(fdv);\n    }\n\n    /// @dev The tick whose price puts the whole supply at exactly `launchFdvInStock`.\n    ///      Pool price is always currency1 per currency0, so which ratio that is depends on\n    ///      how the freshly cloned token's address sorts against the stock's.\n    function _openingTick(bool tokenIsCurrency0, uint256 fdv) internal pure returns (int24) {\n        uint256 ratioX192 = tokenIsCurrency0\n            ? FullMath.mulDiv(fdv, Q192, LAUNCH_SUPPLY)  // stock per token\n            : FullMath.mulDiv(LAUNCH_SUPPLY, Q192, fdv); // token per stock\n\n        uint256 sqrtPriceX96 = Math.sqrt(ratioX192);\n        if (sqrtPriceX96 < TickMath.MIN_SQRT_PRICE || sqrtPriceX96 >= TickMath.MAX_SQRT_PRICE) {\n            revert LaunchPriceOutOfRange(fdv);\n        }\n        return TickMath.getTickAtSqrtPrice(uint160(sqrtPriceX96));\n    }\n\n    /// @dev Largest multiple of `spacing` that is <= `tick` (true floor, including negatives).\n    function _floorTick(int24 tick, int24 spacing) internal pure returns (int24) {\n        int24 quotient = tick / spacing;\n        if (tick < 0 && quotient * spacing != tick) --quotient;\n        return quotient * spacing;\n    }\n\n    /// @dev Smallest multiple of `spacing` that is >= `tick`.\n    function _ceilTick(int24 tick, int24 spacing) internal pure returns (int24) {\n        int24 floored = _floorTick(tick, spacing);\n        return floored == tick ? floored : floored + spacing;\n    }\n\n    // -------------------------------------------------------------------------\n    // Views\n    // -------------------------------------------------------------------------\n\n    function getAllTokens() external view returns (address[] memory) {\n        return _allTokens;\n    }\n\n    function getTokenInfo(address token) external view returns (TokenInfo memory info) {\n        info = _tokenInfo[token];\n        if (info.token == address(0)) revert UnknownToken(token);\n    }\n\n    function getTokenCount() external view returns (uint256) {\n        return _allTokens.length;\n    }\n\n    function getTokensByCreator(address creator) external view returns (address[] memory) {\n        return _tokensByCreator[creator];\n    }\n\n    /// @notice Page through the registry without loading all of it.\n    function getTokensRange(uint256 startIndex, uint256 endIndex) external view returns (address[] memory page) {\n        uint256 len = _allTokens.length;\n        if (startIndex > endIndex || endIndex > len) revert InvalidRange(startIndex, len);\n        page = new address[](endIndex - startIndex);\n        for (uint256 i = startIndex; i < endIndex; ++i) {\n            page[i - startIndex] = _allTokens[i];\n        }\n    }\n\n    /// @notice The full v4 PoolKey for a launched token's pool.\n    function poolKeyOf(address token) external view returns (PoolKey memory key) {\n        key = _poolKeys[token];\n        if (Currency.unwrap(key.currency0) == address(0) && Currency.unwrap(key.currency1) == address(0)) {\n            revert UnknownToken(token);\n        }\n    }\n\n    function isLaunchpadToken(address token) external view returns (bool) {\n        return _tokenInfo[token].token != address(0);\n    }\n\n    function hook() external view returns (address) {\n        return hookAddress;\n    }\n\n    function feeCollector() external view returns (address) {\n        return feeCollectorAddress;\n    }\n\n    function tokenizedStock() external view returns (address) {\n        return address(stock);\n    }\n}\n"},"src/interfaces/ILaunchpadFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\n\n/// @notice Registry view of the permissionless launchpad.\ninterface ILaunchpadFactory {\n    struct TokenInfo {\n        address token;\n        address creator;\n        string name;\n        string symbol;\n        uint256 supply;\n        bytes32 poolId;\n        uint256 lpTokenId;\n        uint64 launchedAt;\n        uint64 blinkEnd;\n    }\n\n    function getAllTokens() external view returns (address[] memory);\n\n    function getTokenInfo(address token) external view returns (TokenInfo memory);\n\n    function getTokenCount() external view returns (uint256);\n\n    function getTokensByCreator(address creator) external view returns (address[] memory);\n\n    function poolKeyOf(address token) external view returns (PoolKey memory);\n\n    function hook() external view returns (address);\n\n    function feeCollector() external view returns (address);\n\n    function tokenizedStock() external view returns (address);\n}\n"},"src/interfaces/ISocialTradingApp.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice Interface a social trading app must expose so the launchpad can gate\n///         blink-window buys on that app's verified user set.\n/// @dev During a token's blink window the token asks every whitelisted app\n///      whether the buyer is one of its verified users. A single `true` is enough.\ninterface ISocialTradingApp {\n    /// @param wallet The address attempting to buy during the blink window.\n    /// @return True if this app considers `wallet` a verified user.\n    function isVerifiedUser(address wallet) external view returns (bool);\n}\n"},"lib/v4-periphery/src/libraries/Actions.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Library to define different pool actions.\n/// @dev These are suggested common commands, however additional commands should be defined as required\n/// Some of these actions are not supported in the Router contracts or Position Manager contracts, but are left as they may be helpful commands for other peripheral contracts.\nlibrary Actions {\n    // pool actions\n    // liquidity actions\n    uint256 internal constant INCREASE_LIQUIDITY = 0x00;\n    uint256 internal constant DECREASE_LIQUIDITY = 0x01;\n    uint256 internal constant MINT_POSITION = 0x02;\n    uint256 internal constant BURN_POSITION = 0x03;\n\n    /// @notice DEPRECATED: Vulnerable to sandwich attacks - do not use.\n    /// @dev The delta-based approach lacks minimum liquidity slippage protection, allowing\n    /// attackers to manipulate the price and reduce the liquidity received.\n    /// Use INCREASE_LIQUIDITY instead.\n    uint256 internal constant INCREASE_LIQUIDITY_FROM_DELTAS = 0x04;\n\n    /// @notice DEPRECATED: Vulnerable to sandwich attacks - do not use.\n    /// @dev The delta-based approach lacks minimum liquidity slippage protection, allowing\n    /// attackers to manipulate the price and reduce the liquidity received.\n    /// Use MINT_POSITION instead.\n    uint256 internal constant MINT_POSITION_FROM_DELTAS = 0x05;\n\n    // swapping\n    uint256 internal constant SWAP_EXACT_IN_SINGLE = 0x06;\n    uint256 internal constant SWAP_EXACT_IN = 0x07;\n    uint256 internal constant SWAP_EXACT_OUT_SINGLE = 0x08;\n    uint256 internal constant SWAP_EXACT_OUT = 0x09;\n\n    // donate\n    // note this is not supported in the position manager or router\n    uint256 internal constant DONATE = 0x0a;\n\n    // closing deltas on the pool manager\n    // settling\n    uint256 internal constant SETTLE = 0x0b;\n    uint256 internal constant SETTLE_ALL = 0x0c;\n    uint256 internal constant SETTLE_PAIR = 0x0d;\n    // taking\n    uint256 internal constant TAKE = 0x0e;\n    uint256 internal constant TAKE_ALL = 0x0f;\n    uint256 internal constant TAKE_PORTION = 0x10;\n    uint256 internal constant TAKE_PAIR = 0x11;\n\n    uint256 internal constant CLOSE_CURRENCY = 0x12;\n    uint256 internal constant CLEAR_OR_TAKE = 0x13;\n    uint256 internal constant SWEEP = 0x14;\n\n    uint256 internal constant WRAP = 0x15;\n    uint256 internal constant UNWRAP = 0x16;\n\n    // minting/burning 6909s to close deltas\n    // note this is not supported in the position manager or router\n    uint256 internal constant MINT_6909 = 0x17;\n    uint256 internal constant BURN_6909 = 0x18;\n\n    // permissioned-pools specific actions\n    // routes a currency's positive delta with a fallback cascade: LP → defaultRecipient → 6909 mint to defaultRecipient\n    uint256 internal constant UNWIND_WITH_FALLBACK = 0x19;\n    // subscribing/unsubscribing via position manager\n    uint256 internal constant SUBSCRIBE = 0x1a;\n    uint256 internal constant UNSUBSCRIBE = 0x1b;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"./PoolKey.sol\";\n\ntype PoolId is bytes32;\n\n/// @notice Library for computing the ID of a pool\nlibrary PoolIdLibrary {\n    /// @notice Returns value equal to keccak256(abi.encode(poolKey))\n    function toId(PoolKey memory poolKey) internal pure returns (PoolId poolId) {\n        assembly (\"memory-safe\") {\n            // 0xa0 represents the total size of the poolKey struct (5 slots of 32 bytes)\n            poolId := keccak256(poolKey, 0xa0)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"./Currency.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {PoolIdLibrary} from \"./PoolId.sol\";\n\nusing PoolIdLibrary for PoolKey global;\n\n/// @notice Returns the key for identifying a pool\nstruct PoolKey {\n    /// @notice The lower currency of the pool, sorted numerically\n    Currency currency0;\n    /// @notice The higher currency of the pool, sorted numerically\n    Currency currency1;\n    /// @notice The pool LP fee, capped at 1_000_000. If the highest bit is 1, the pool has a dynamic fee and must be exactly equal to 0x800000\n    uint24 fee;\n    /// @notice Ticks that involve positions must be a multiple of tick spacing\n    int24 tickSpacing;\n    /// @notice The hooks of the pool\n    IHooks hooks;\n}\n"},"lib/v4-periphery/src/libraries/ActionConstants.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Action Constants\n/// @notice Common constants used in actions\n/// @dev Constants are gas efficient alternatives to their literal values\nlibrary ActionConstants {\n    /// @notice used to signal that an action should use the input value of the open delta on the pool manager\n    /// or of the balance that the contract holds\n    uint128 internal constant OPEN_DELTA = 0;\n    /// @notice used to signal that an action should use the contract's entire balance of a currency\n    /// This value is equivalent to 1<<255, i.e. a singular 1 in the most significant bit.\n    uint256 internal constant CONTRACT_BALANCE = 0x8000000000000000000000000000000000000000000000000000000000000000;\n\n    /// @notice used to signal that the recipient of an action should be the msgSender\n    address internal constant MSG_SENDER = address(1);\n\n    /// @notice used to signal that the recipient of an action should be the address(this)\n    address internal constant ADDRESS_THIS = address(2);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20Minimal} from \"../interfaces/external/IERC20Minimal.sol\";\nimport {CustomRevert} from \"../libraries/CustomRevert.sol\";\n\ntype Currency is address;\n\nusing {greaterThan as >, lessThan as <, greaterThanOrEqualTo as >=, equals as ==} for Currency global;\nusing CurrencyLibrary for Currency global;\n\nfunction equals(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) == Currency.unwrap(other);\n}\n\nfunction greaterThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) > Currency.unwrap(other);\n}\n\nfunction lessThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) < Currency.unwrap(other);\n}\n\nfunction greaterThanOrEqualTo(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) >= Currency.unwrap(other);\n}\n\n/// @title CurrencyLibrary\n/// @dev This library allows for transferring and holding native tokens and ERC20 tokens\nlibrary CurrencyLibrary {\n    /// @notice Additional context for ERC-7751 wrapped error when a native transfer fails\n    error NativeTransferFailed();\n\n    /// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails\n    error ERC20TransferFailed();\n\n    /// @notice A constant to represent the native currency\n    Currency public constant ADDRESS_ZERO = Currency.wrap(address(0));\n\n    function transfer(Currency currency, address to, uint256 amount) internal {\n        // altered from https://github.com/transmissions11/solmate/blob/44a9963d4c78111f77caa0e65d677b8b46d6f2e6/src/utils/SafeTransferLib.sol\n        // modified custom error selectors\n\n        bool success;\n        if (currency.isAddressZero()) {\n            assembly (\"memory-safe\") {\n                // Transfer the ETH and revert if it fails.\n                success := call(gas(), to, amount, 0, 0, 0, 0)\n            }\n            // revert with NativeTransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);\n            }\n        } else {\n            assembly (\"memory-safe\") {\n                // Get a pointer to some free memory.\n                let fmp := mload(0x40)\n\n                // Write the abi-encoded calldata into memory, beginning with the function selector.\n                mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)\n                mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the \"to\" argument.\n                mstore(add(fmp, 36), amount) // Append the \"amount\" argument. Masking not required as it's a full 32 byte type.\n\n                success :=\n                    and(\n                        // Set success to whether the call reverted, if not we check it either\n                        // returned exactly 1 (can't just be non-zero data), or had no return data.\n                        or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),\n                        // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.\n                        // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.\n                        // Counterintuitively, this call must be positioned second to the or() call in the\n                        // surrounding and() call or else returndatasize() will be zero during the computation.\n                        call(gas(), currency, 0, fmp, 68, 0, 32)\n                    )\n\n                // Now clean the memory we used\n                mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here\n                mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here\n                mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here\n            }\n            // revert with ERC20TransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(\n                    Currency.unwrap(currency), IERC20Minimal.transfer.selector, ERC20TransferFailed.selector\n                );\n            }\n        }\n    }\n\n    function balanceOfSelf(Currency currency) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return address(this).balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(address(this));\n        }\n    }\n\n    function balanceOf(Currency currency, address owner) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return owner.balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(owner);\n        }\n    }\n\n    function isAddressZero(Currency currency) internal pure returns (bool) {\n        return Currency.unwrap(currency) == Currency.unwrap(ADDRESS_ZERO);\n    }\n\n    function toId(Currency currency) internal pure returns (uint256) {\n        return uint160(Currency.unwrap(currency));\n    }\n\n    // If the upper 12 bytes are non-zero, they will be zero-ed out\n    // Therefore, fromId() and toId() are not inverses of each other\n    function fromId(uint256 id) internal pure returns (Currency) {\n        return Currency.wrap(address(uint160(id)));\n    }\n}\n"},"lib/v4-periphery/src/libraries/LiquidityAmounts.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {FullMath} from \"@uniswap/v4-core/src/libraries/FullMath.sol\";\nimport {FixedPoint96} from \"@uniswap/v4-core/src/libraries/FixedPoint96.sol\";\nimport {SafeCast} from \"@uniswap/v4-core/src/libraries/SafeCast.sol\";\n\n/// @notice Provides functions for computing liquidity amounts from token amounts and prices\nlibrary LiquidityAmounts {\n    using SafeCast for uint256;\n\n    /// @notice Computes the amount of liquidity received for a given amount of token0 and price range\n    /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower))\n    /// @param sqrtPriceAX96 A sqrt price representing the first tick boundary\n    /// @param sqrtPriceBX96 A sqrt price representing the second tick boundary\n    /// @param amount0 The amount0 being sent in\n    /// @return liquidity The amount of returned liquidity\n    function getLiquidityForAmount0(uint160 sqrtPriceAX96, uint160 sqrtPriceBX96, uint256 amount0)\n        internal\n        pure\n        returns (uint128 liquidity)\n    {\n        unchecked {\n            if (sqrtPriceAX96 > sqrtPriceBX96) (sqrtPriceAX96, sqrtPriceBX96) = (sqrtPriceBX96, sqrtPriceAX96);\n            uint256 intermediate = FullMath.mulDiv(sqrtPriceAX96, sqrtPriceBX96, FixedPoint96.Q96);\n            return FullMath.mulDiv(amount0, intermediate, sqrtPriceBX96 - sqrtPriceAX96).toUint128();\n        }\n    }\n\n    /// @notice Computes the amount of liquidity received for a given amount of token1 and price range\n    /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).\n    /// @param sqrtPriceAX96 A sqrt price representing the first tick boundary\n    /// @param sqrtPriceBX96 A sqrt price representing the second tick boundary\n    /// @param amount1 The amount1 being sent in\n    /// @return liquidity The amount of returned liquidity\n    function getLiquidityForAmount1(uint160 sqrtPriceAX96, uint160 sqrtPriceBX96, uint256 amount1)\n        internal\n        pure\n        returns (uint128 liquidity)\n    {\n        unchecked {\n            if (sqrtPriceAX96 > sqrtPriceBX96) (sqrtPriceAX96, sqrtPriceBX96) = (sqrtPriceBX96, sqrtPriceAX96);\n            return FullMath.mulDiv(amount1, FixedPoint96.Q96, sqrtPriceBX96 - sqrtPriceAX96).toUint128();\n        }\n    }\n\n    /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current\n    /// pool prices and the prices at the tick boundaries\n    /// @param sqrtPriceX96 A sqrt price representing the current pool prices\n    /// @param sqrtPriceAX96 A sqrt price representing the first tick boundary\n    /// @param sqrtPriceBX96 A sqrt price representing the second tick boundary\n    /// @param amount0 The amount of token0 being sent in\n    /// @param amount1 The amount of token1 being sent in\n    /// @return liquidity The maximum amount of liquidity received\n    function getLiquidityForAmounts(\n        uint160 sqrtPriceX96,\n        uint160 sqrtPriceAX96,\n        uint160 sqrtPriceBX96,\n        uint256 amount0,\n        uint256 amount1\n    ) internal pure returns (uint128 liquidity) {\n        if (sqrtPriceAX96 > sqrtPriceBX96) {\n            (sqrtPriceAX96, sqrtPriceBX96) = (sqrtPriceBX96, sqrtPriceAX96);\n        }\n\n        if (sqrtPriceX96 <= sqrtPriceAX96) {\n            liquidity = getLiquidityForAmount0(sqrtPriceAX96, sqrtPriceBX96, amount0);\n        } else if (sqrtPriceX96 < sqrtPriceBX96) {\n            uint128 liquidity0 = getLiquidityForAmount0(sqrtPriceX96, sqrtPriceBX96, amount0);\n            uint128 liquidity1 = getLiquidityForAmount1(sqrtPriceAX96, sqrtPriceX96, amount1);\n\n            liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;\n        } else {\n            liquidity = getLiquidityForAmount1(sqrtPriceAX96, sqrtPriceBX96, amount1);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/Clones.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (proxy/Clones.sol)\n\npragma solidity ^0.8.20;\n\nimport {Create2} from \"../utils/Create2.sol\";\nimport {Errors} from \"../utils/Errors.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-1167[ERC-1167] is a standard for\n * deploying minimal proxy contracts, also known as \"clones\".\n *\n * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies\n * > a minimal bytecode implementation that delegates all calls to a known, fixed address.\n *\n * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`\n * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the\n * deterministic method.\n */\nlibrary Clones {\n    error CloneArgumentsTooLong();\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation`.\n     *\n     * This function uses the create opcode, which should never revert.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function clone(address implementation) internal returns (address instance) {\n        return clone(implementation, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-clone-address-}[clone], but with a `value` parameter to send native currency\n     * to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function clone(address implementation, uint256 value) internal returns (address instance) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        assembly (\"memory-safe\") {\n            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes\n            // of the `implementation` address with the bytecode before the address.\n            mstore(0x00, or(shr(232, shl(96, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))\n            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.\n            mstore(0x20, or(shl(120, implementation), 0x5af43d82803e903d91602b57fd5bf3))\n            instance := create(value, 0x09, 0x37)\n        }\n        if (instance == address(0)) {\n            revert Errors.FailedDeployment();\n        }\n    }\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation`.\n     *\n     * This function uses the create2 opcode and a `salt` to deterministically deploy\n     * the clone. Using the same `implementation` and `salt` multiple times will revert, since\n     * the clones cannot be deployed twice at the same address.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {\n        return cloneDeterministic(implementation, salt, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-cloneDeterministic-address-bytes32-}[cloneDeterministic], but with\n     * a `value` parameter to send native currency to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function cloneDeterministic(\n        address implementation,\n        bytes32 salt,\n        uint256 value\n    ) internal returns (address instance) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        assembly (\"memory-safe\") {\n            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes\n            // of the `implementation` address with the bytecode before the address.\n            mstore(0x00, or(shr(232, shl(96, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))\n            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.\n            mstore(0x20, or(shl(120, implementation), 0x5af43d82803e903d91602b57fd5bf3))\n            instance := create2(value, 0x09, 0x37, salt)\n        }\n        if (instance == address(0)) {\n            revert Errors.FailedDeployment();\n        }\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n     */\n    function predictDeterministicAddress(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            mstore(add(ptr, 0x38), deployer)\n            mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff)\n            mstore(add(ptr, 0x14), implementation)\n            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73)\n            mstore(add(ptr, 0x58), salt)\n            mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37))\n            predicted := and(keccak256(add(ptr, 0x43), 0x55), 0xffffffffffffffffffffffffffffffffffffffff)\n        }\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n     */\n    function predictDeterministicAddress(\n        address implementation,\n        bytes32 salt\n    ) internal view returns (address predicted) {\n        return predictDeterministicAddress(implementation, salt, address(this));\n    }\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation` with custom\n     * immutable arguments. These are provided through `args` and cannot be changed after deployment. To\n     * access the arguments within the implementation, use {fetchCloneArgs}.\n     *\n     * This function uses the create opcode, which should never revert.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function cloneWithImmutableArgs(address implementation, bytes memory args) internal returns (address instance) {\n        return cloneWithImmutableArgs(implementation, args, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-cloneWithImmutableArgs-address-bytes-}[cloneWithImmutableArgs], but with a `value`\n     * parameter to send native currency to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function cloneWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        uint256 value\n    ) internal returns (address instance) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        bytes memory bytecode = _cloneCodeWithImmutableArgs(implementation, args);\n        assembly (\"memory-safe\") {\n            instance := create(value, add(bytecode, 0x20), mload(bytecode))\n        }\n        if (instance == address(0)) {\n            revert Errors.FailedDeployment();\n        }\n    }\n\n    /**\n     * @dev Deploys and returns the address of a clone that mimics the behavior of `implementation` with custom\n     * immutable arguments. These are provided through `args` and cannot be changed after deployment. To\n     * access the arguments within the implementation, use {fetchCloneArgs}.\n     *\n     * This function uses the create2 opcode and a `salt` to deterministically deploy the clone. Using the same\n     * `implementation`, `args` and `salt` multiple times will revert, since the clones cannot be deployed twice\n     * at the same address.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     */\n    function cloneDeterministicWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        return cloneDeterministicWithImmutableArgs(implementation, args, salt, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Clones-cloneDeterministicWithImmutableArgs-address-bytes-bytes32-}[cloneDeterministicWithImmutableArgs],\n     * but with a `value` parameter to send native currency to the new contract.\n     *\n     * WARNING: This function does not check if `implementation` has code. A clone that points to an address\n     * without code cannot be initialized. Initialization calls may appear to be successful when, in reality, they\n     * have no effect and leave the clone uninitialized, allowing a third party to initialize it later.\n     *\n     * NOTE: Using a non-zero value at creation will require the contract using this function (e.g. a factory)\n     * to always have enough balance for new deployments. Consider exposing this function under a payable method.\n     */\n    function cloneDeterministicWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        uint256 value\n    ) internal returns (address instance) {\n        bytes memory bytecode = _cloneCodeWithImmutableArgs(implementation, args);\n        return Create2.deploy(value, salt, bytecode);\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministicWithImmutableArgs}.\n     */\n    function predictDeterministicAddressWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes memory bytecode = _cloneCodeWithImmutableArgs(implementation, args);\n        return Create2.computeAddress(salt, keccak256(bytecode), deployer);\n    }\n\n    /**\n     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministicWithImmutableArgs}.\n     */\n    function predictDeterministicAddressWithImmutableArgs(\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal view returns (address predicted) {\n        return predictDeterministicAddressWithImmutableArgs(implementation, args, salt, address(this));\n    }\n\n    /**\n     * @dev Get the immutable args attached to a clone.\n     *\n     * - If `instance` is a clone that was deployed using `clone` or `cloneDeterministic`, this\n     *   function will return an empty array.\n     * - If `instance` is a clone that was deployed using `cloneWithImmutableArgs` or\n     *   `cloneDeterministicWithImmutableArgs`, this function will return the args array used at\n     *   creation.\n     * - If `instance` is NOT a clone deployed using this library, the behavior is undefined. This\n     *   function should only be used to check addresses that are known to be clones.\n     */\n    function fetchCloneArgs(address instance) internal view returns (bytes memory) {\n        bytes memory result = new bytes(instance.code.length - 0x2d); // revert if length is too short\n        assembly (\"memory-safe\") {\n            extcodecopy(instance, add(result, 0x20), 0x2d, mload(result))\n        }\n        return result;\n    }\n\n    /**\n     * @dev Helper that prepares the initcode of the proxy with immutable args.\n     *\n     * An assembly variant of this function requires copying the `args` array, which can be efficiently done using\n     * `mcopy`. Unfortunately, that opcode is not available before cancun. A pure solidity implementation using\n     * abi.encodePacked is more expensive but also more portable and easier to review.\n     *\n     * NOTE: https://eips.ethereum.org/EIPS/eip-170[EIP-170] limits the length of the contract code to 24576 bytes.\n     * With the proxy code taking 45 bytes, that limits the length of the immutable args to 24531 bytes.\n     */\n    function _cloneCodeWithImmutableArgs(\n        address implementation,\n        bytes memory args\n    ) private pure returns (bytes memory) {\n        if (args.length > 0x5fd3) revert CloneArgumentsTooLong();\n        return\n            abi.encodePacked(\n                hex\"61\",\n                uint16(args.length + 0x2d),\n                hex\"3d81600a3d39f3363d3d373d3d3d363d73\",\n                implementation,\n                hex\"5af43d82803e903d91602b57fd5bf3\",\n                args\n            );\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error InsufficientBalance(uint256 balance, uint256 needed);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedCall();\n\n    /**\n     * @dev The deployment failed.\n     */\n    error FailedDeployment();\n\n    /**\n     * @dev A necessary precompile is missing.\n     */\n    error MissingPrecompile(address);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Create2.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/Create2.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\nimport {LowLevelCall} from \"./LowLevelCall.sol\";\n\n/**\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\n * `CREATE2` can be used to compute in advance the address where a smart\n * contract will be deployed, which allows for interesting new mechanisms known\n * as 'counterfactual interactions'.\n *\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\n * information.\n */\nlibrary Create2 {\n    /**\n     * @dev There's no code to deploy.\n     */\n    error Create2EmptyBytecode();\n\n    /**\n     * @dev Deploys a contract using `CREATE2`. The address where the contract\n     * will be deployed can be known in advance via {computeAddress}.\n     *\n     * The bytecode for a contract can be obtained from Solidity with\n     * `type(contractName).creationCode`.\n     *\n     * Requirements:\n     *\n     * - `bytecode` must not be empty.\n     * - `salt` must have not been used for `bytecode` already.\n     * - the factory must have a balance of at least `amount`.\n     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\n     */\n    function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\n        if (address(this).balance < amount) {\n            revert Errors.InsufficientBalance(address(this).balance, amount);\n        }\n        if (bytecode.length == 0) {\n            revert Create2EmptyBytecode();\n        }\n        assembly (\"memory-safe\") {\n            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\n        }\n        if (addr == address(0)) {\n            if (LowLevelCall.returnDataSize() == 0) {\n                revert Errors.FailedDeployment();\n            } else {\n                LowLevelCall.bubbleRevert();\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\n     * `bytecodeHash` or `salt` will result in a new destination address.\n     */\n    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\n        return computeAddress(salt, bytecodeHash, address(this));\n    }\n\n    /**\n     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\n     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\n     */\n    function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40) // Get free memory pointer\n\n            // |                     | ↓ ptr ...  ↓ ptr + 0x0B (start) ...  ↓ ptr + 0x20 ...  ↓ ptr + 0x40 ...   |\n            // |---------------------|---------------------------------------------------------------------------|\n            // | bytecodeHash        |                                                        CCCCCCCCCCCCC...CC |\n            // | salt                |                                      BBBBBBBBBBBBB...BB                   |\n            // | deployer            | 000000...0000AAAAAAAAAAAAAAAAAAA...AA                                     |\n            // | 0xFF                |            FF                                                             |\n            // |---------------------|---------------------------------------------------------------------------|\n            // | memory              | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\n            // | keccak(start, 0x55) |            ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ |\n\n            mstore(add(ptr, 0x40), bytecodeHash)\n            mstore(add(ptr, 0x20), salt)\n            mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\n            let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\n            mstore8(start, 0xff)\n            addr := and(keccak256(start, 0x55), 0xffffffffffffffffffffffffffffffffffffffff)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {BeforeSwapDelta} from \"../types/BeforeSwapDelta.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\n/// See the Hooks library for the full spec.\n/// @dev Should only be callable by the v4 PoolManager.\ninterface IHooks {\n    /// @notice The hook called before the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @return bytes4 The function selector for the hook\n    function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external returns (bytes4);\n\n    /// @notice The hook called after the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @param tick The current tick after the state of a pool is initialized\n    /// @return bytes4 The function selector for the hook\n    function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick)\n        external\n        returns (bytes4);\n\n    /// @notice The hook called before liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param delta The caller's balance delta after adding liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param delta The caller's balance delta after removing liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    /// @return uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\n    function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)\n        external\n        returns (bytes4, BeforeSwapDelta, uint24);\n\n    /// @notice The hook called after a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param delta The amount owed to the caller (positive) or owed to the pool (negative)\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterSwap(\n        address sender,\n        PoolKey calldata key,\n        SwapParams calldata params,\n        BalanceDelta delta,\n        bytes calldata hookData\n    ) external returns (bytes4, int128);\n\n    /// @notice The hook called before donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function afterDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title BitMath\n/// @dev This library provides functionality for computing bit properties of an unsigned integer\n/// @author Solady (https://github.com/Vectorized/solady/blob/8200a70e8dc2a77ecb074fc2e99a2a0d36547522/src/utils/LibBit.sol)\nlibrary BitMath {\n    /// @notice Returns the index of the most significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the most significant bit, must be greater than 0\n    /// @return r the index of the most significant bit\n    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(0x1f, shr(shr(r, x), 0x8421084210842108cc6318c6db6d54be)),\n                0x0706060506020500060203020504000106050205030304010505030400000000))\n        }\n    }\n\n    /// @notice Returns the index of the least significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the least significant bit, must be greater than 0\n    /// @return r the index of the least significant bit\n    function leastSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            // Isolate the least significant bit.\n            x := and(x, sub(0, x))\n            // For the upper 3 bits of the result, use a De Bruijn-like lookup.\n            // Credit to adhusson: https://blog.adhusson.com/cheap-find-first-set-evm/\n            // forgefmt: disable-next-item\n            r := shl(5, shr(252, shl(shl(2, shr(250, mul(x,\n                0xb6db6db6ddddddddd34d34d349249249210842108c6318c639ce739cffffffff))),\n                0x8040405543005266443200005020610674053026020000107506200176117077)))\n            // For the lower 5 bits of the result, use a De Bruijn lookup.\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(div(0xd76453e0, shr(r, x)), 0x1f),\n                0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/FullMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Contains 512-bit math functions\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\n/// @dev Handles \"phantom overflow\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\nlibrary FullMath {\n    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n    /// @param a The multiplicand\n    /// @param b The multiplier\n    /// @param denominator The divisor\n    /// @return result The 256-bit result\n    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\n    function mulDiv(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = a * b\n            // Compute the product mod 2**256 and mod 2**256 - 1\n            // then use the Chinese Remainder Theorem to reconstruct\n            // the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2**256 + prod0\n            uint256 prod0 = a * b; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly (\"memory-safe\") {\n                let mm := mulmod(a, b, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Make sure the result is less than 2**256.\n            // Also prevents denominator == 0\n            require(denominator > prod1);\n\n            // Handle non-overflow cases, 256 by 256 division\n            if (prod1 == 0) {\n                assembly (\"memory-safe\") {\n                    result := div(prod0, denominator)\n                }\n                return result;\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0]\n            // Compute remainder using mulmod\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                remainder := mulmod(a, b, denominator)\n            }\n            // Subtract 256 bit number from 512 bit number\n            assembly (\"memory-safe\") {\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator\n            // Compute largest power of two divisor of denominator.\n            // Always >= 1.\n            uint256 twos = (0 - denominator) & denominator;\n            // Divide denominator by power of two\n            assembly (\"memory-safe\") {\n                denominator := div(denominator, twos)\n            }\n\n            // Divide [prod1 prod0] by the factors of two\n            assembly (\"memory-safe\") {\n                prod0 := div(prod0, twos)\n            }\n            // Shift in bits from prod1 into prod0. For this we need\n            // to flip `twos` such that it is 2**256 / twos.\n            // If twos is zero, then it becomes one\n            assembly (\"memory-safe\") {\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2**256\n            // Now that denominator is an odd number, it has an inverse\n            // modulo 2**256 such that denominator * inv = 1 mod 2**256.\n            // Compute the inverse by starting with a seed that is correct\n            // correct for four bits. That is, denominator * inv = 1 mod 2**4\n            uint256 inv = (3 * denominator) ^ 2;\n            // Now use Newton-Raphson iteration to improve the precision.\n            // Thanks to Hensel's lifting lemma, this also works in modular\n            // arithmetic, doubling the correct bits in each step.\n            inv *= 2 - denominator * inv; // inverse mod 2**8\n            inv *= 2 - denominator * inv; // inverse mod 2**16\n            inv *= 2 - denominator * inv; // inverse mod 2**32\n            inv *= 2 - denominator * inv; // inverse mod 2**64\n            inv *= 2 - denominator * inv; // inverse mod 2**128\n            inv *= 2 - denominator * inv; // inverse mod 2**256\n\n            // Because the division is now exact we can divide by multiplying\n            // with the modular inverse of denominator. This will give us the\n            // correct result modulo 2**256. Since the preconditions guarantee\n            // that the outcome is less than 2**256, this is the final result.\n            // We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inv;\n            return result;\n        }\n    }\n\n    /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n    /// @param a The multiplicand\n    /// @param b The multiplier\n    /// @param denominator The divisor\n    /// @return result The 256-bit result\n    function mulDivRoundingUp(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            result = mulDiv(a, b, denominator);\n            if (mulmod(a, b, denominator) != 0) {\n                require(++result > 0);\n            }\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\nlibrary SafeCast {\n    using CustomRevert for bytes4;\n\n    error SafeCastOverflow();\n\n    /// @notice Cast a uint256 to a uint160, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint160\n    function toUint160(uint256 x) internal pure returns (uint160 y) {\n        y = uint160(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a uint128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint128\n    function toUint128(uint256 x) internal pure returns (uint128 y) {\n        y = uint128(x);\n        if (x != y) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a int128 to a uint128, revert on overflow or underflow\n    /// @param x The int128 to be casted\n    /// @return y The casted integer, now type uint128\n    function toUint128(int128 x) internal pure returns (uint128 y) {\n        if (x < 0) SafeCastOverflow.selector.revertWith();\n        y = uint128(x);\n    }\n\n    /// @notice Cast a int256 to a int128, revert on overflow or underflow\n    /// @param x The int256 to be downcasted\n    /// @return y The downcasted integer, now type int128\n    function toInt128(int256 x) internal pure returns (int128 y) {\n        y = int128(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int256, revert on overflow\n    /// @param x The uint256 to be casted\n    /// @return y The casted integer, now type int256\n    function toInt256(uint256 x) internal pure returns (int256 y) {\n        y = int256(x);\n        if (y < 0) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return The downcasted integer, now type int128\n    function toInt128(uint256 x) internal pure returns (int128) {\n        if (x >= 1 << 127) SafeCastOverflow.selector.revertWith();\n        return int128(int256(x));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {BitMath} from \"./BitMath.sol\";\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Math library for computing sqrt prices from ticks and vice versa\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\n/// prices between 2**-128 and 2**128\nlibrary TickMath {\n    using CustomRevert for bytes4;\n\n    /// @notice Thrown when the tick passed to #getSqrtPriceAtTick is not between MIN_TICK and MAX_TICK\n    error InvalidTick(int24 tick);\n    /// @notice Thrown when the price passed to #getTickAtSqrtPrice does not correspond to a price between MIN_TICK and MAX_TICK\n    error InvalidSqrtPrice(uint160 sqrtPriceX96);\n\n    /// @dev The minimum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**-128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MIN_TICK = -887272;\n    /// @dev The maximum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MAX_TICK = 887272;\n\n    /// @dev The minimum tick spacing value drawn from the range of type int16 that is greater than 0, i.e. min from the range [1, 32767]\n    int24 internal constant MIN_TICK_SPACING = 1;\n    /// @dev The maximum tick spacing value drawn from the range of type int16, i.e. max from the range [1, 32767]\n    int24 internal constant MAX_TICK_SPACING = type(int16).max;\n\n    /// @dev The minimum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MIN_TICK)\n    uint160 internal constant MIN_SQRT_PRICE = 4295128739;\n    /// @dev The maximum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MAX_TICK)\n    uint160 internal constant MAX_SQRT_PRICE = 1461446703485210103287273052203988822378723970342;\n    /// @dev A threshold used for optimized bounds check, equals `MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1`\n    uint160 internal constant MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE =\n        1461446703485210103287273052203988822378723970342 - 4295128739 - 1;\n\n    /// @notice Given a tickSpacing, compute the maximum usable tick\n    function maxUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MAX_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Given a tickSpacing, compute the minimum usable tick\n    function minUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MIN_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Calculates sqrt(1.0001^tick) * 2^96\n    /// @dev Throws if |tick| > max tick\n    /// @param tick The input tick for the above formula\n    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the price of the two assets (currency1/currency0)\n    /// at the given tick\n    function getSqrtPriceAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {\n        unchecked {\n            uint256 absTick;\n            assembly (\"memory-safe\") {\n                tick := signextend(2, tick)\n                // mask = 0 if tick >= 0 else -1 (all 1s)\n                let mask := sar(255, tick)\n                // if tick >= 0, |tick| = tick = 0 ^ tick\n                // if tick < 0, |tick| = ~~|tick| = ~(-|tick| - 1) = ~(tick - 1) = (-1) ^ (tick - 1)\n                // either way, |tick| = mask ^ (tick + mask)\n                absTick := xor(mask, add(mask, tick))\n            }\n\n            if (absTick > uint256(int256(MAX_TICK))) InvalidTick.selector.revertWith(tick);\n\n            // The tick is decomposed into bits, and for each bit with index i that is set, the product of 1/sqrt(1.0001^(2^i))\n            // is calculated (using Q128.128). The constants used for this calculation are rounded to the nearest integer\n\n            // Equivalent to:\n            //     price = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;\n            //     or price = int(2**128 / sqrt(1.0001)) if (absTick & 0x1) else 1 << 128\n            uint256 price;\n            assembly (\"memory-safe\") {\n                price := xor(shl(128, 1), mul(xor(shl(128, 1), 0xfffcb933bd6fad37aa2d162d1a594001), and(absTick, 0x1)))\n            }\n            if (absTick & 0x2 != 0) price = (price * 0xfff97272373d413259a46990580e213a) >> 128;\n            if (absTick & 0x4 != 0) price = (price * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\n            if (absTick & 0x8 != 0) price = (price * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\n            if (absTick & 0x10 != 0) price = (price * 0xffcb9843d60f6159c9db58835c926644) >> 128;\n            if (absTick & 0x20 != 0) price = (price * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\n            if (absTick & 0x40 != 0) price = (price * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\n            if (absTick & 0x80 != 0) price = (price * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\n            if (absTick & 0x100 != 0) price = (price * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\n            if (absTick & 0x200 != 0) price = (price * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\n            if (absTick & 0x400 != 0) price = (price * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\n            if (absTick & 0x800 != 0) price = (price * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\n            if (absTick & 0x1000 != 0) price = (price * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\n            if (absTick & 0x2000 != 0) price = (price * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\n            if (absTick & 0x4000 != 0) price = (price * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\n            if (absTick & 0x8000 != 0) price = (price * 0x31be135f97d08fd981231505542fcfa6) >> 128;\n            if (absTick & 0x10000 != 0) price = (price * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\n            if (absTick & 0x20000 != 0) price = (price * 0x5d6af8dedb81196699c329225ee604) >> 128;\n            if (absTick & 0x40000 != 0) price = (price * 0x2216e584f5fa1ea926041bedfe98) >> 128;\n            if (absTick & 0x80000 != 0) price = (price * 0x48a170391f7dc42444e8fa2) >> 128;\n\n            assembly (\"memory-safe\") {\n                // if (tick > 0) price = type(uint256).max / price;\n                if sgt(tick, 0) { price := div(not(0), price) }\n\n                // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\n                // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\n                // we round up in the division so getTickAtSqrtPrice of the output price is always consistent\n                // `sub(shl(32, 1), 1)` is `type(uint32).max`\n                // `price + type(uint32).max` will not overflow because `price` fits in 192 bits\n                sqrtPriceX96 := shr(32, add(price, sub(shl(32, 1), 1)))\n            }\n        }\n    }\n\n    /// @notice Calculates the greatest tick value such that getSqrtPriceAtTick(tick) <= sqrtPriceX96\n    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_PRICE, as MIN_SQRT_PRICE is the lowest value getSqrtPriceAtTick may\n    /// ever return.\n    /// @param sqrtPriceX96 The sqrt price for which to compute the tick as a Q64.96\n    /// @return tick The greatest tick for which the getSqrtPriceAtTick(tick) is less than or equal to the input sqrtPriceX96\n    function getTickAtSqrtPrice(uint160 sqrtPriceX96) internal pure returns (int24 tick) {\n        unchecked {\n            // Equivalent: if (sqrtPriceX96 < MIN_SQRT_PRICE || sqrtPriceX96 >= MAX_SQRT_PRICE) revert InvalidSqrtPrice();\n            // second inequality must be >= because the price can never reach the price at the max tick\n            // if sqrtPriceX96 < MIN_SQRT_PRICE, the `sub` underflows and `gt` is true\n            // if sqrtPriceX96 >= MAX_SQRT_PRICE, sqrtPriceX96 - MIN_SQRT_PRICE > MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1\n            if ((sqrtPriceX96 - MIN_SQRT_PRICE) > MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE) {\n                InvalidSqrtPrice.selector.revertWith(sqrtPriceX96);\n            }\n\n            uint256 price = uint256(sqrtPriceX96) << 32;\n\n            uint256 r = price;\n            uint256 msb = BitMath.mostSignificantBit(r);\n\n            if (msb >= 128) r = price >> (msb - 127);\n            else r = price << (127 - msb);\n\n            int256 log_2 = (int256(msb) - 128) << 64;\n\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(63, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(62, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(61, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(60, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(59, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(58, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(57, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(56, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(55, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(54, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(53, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(52, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(51, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(50, f))\n            }\n\n            int256 log_sqrt10001 = log_2 * 255738958999603826347141; // Q22.128 number\n\n            // Magic number represents the ceiling of the maximum value of the error when approximating log_sqrt10001(x)\n            int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);\n\n            // Magic number represents the minimum value of the error when approximating log_sqrt10001(x), when\n            // sqrtPrice is from the range (2^-64, 2^64). This is safe as MIN_SQRT_PRICE is more than 2^-64. If MIN_SQRT_PRICE\n            // is changed, this may need to be changed too\n            int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);\n\n            tick = tickLow == tickHi ? tickLow : getSqrtPriceAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {SafeCast} from \"../libraries/SafeCast.sol\";\n\n/// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0\n/// and the lower 128 bits represent the amount1.\ntype BalanceDelta is int256;\n\nusing {add as +, sub as -, eq as ==, neq as !=} for BalanceDelta global;\nusing BalanceDeltaLibrary for BalanceDelta global;\nusing SafeCast for int256;\n\nfunction toBalanceDelta(int128 _amount0, int128 _amount1) pure returns (BalanceDelta balanceDelta) {\n    assembly (\"memory-safe\") {\n        balanceDelta := or(shl(128, _amount0), and(sub(shl(128, 1), 1), _amount1))\n    }\n}\n\nfunction add(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := add(a0, b0)\n        res1 := add(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction sub(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := sub(a0, b0)\n        res1 := sub(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction eq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) == BalanceDelta.unwrap(b);\n}\n\nfunction neq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) != BalanceDelta.unwrap(b);\n}\n\n/// @notice Library for getting the amount0 and amount1 deltas from the BalanceDelta type\nlibrary BalanceDeltaLibrary {\n    /// @notice A BalanceDelta of 0\n    BalanceDelta public constant ZERO_DELTA = BalanceDelta.wrap(0);\n\n    function amount0(BalanceDelta balanceDelta) internal pure returns (int128 _amount0) {\n        assembly (\"memory-safe\") {\n            _amount0 := sar(128, balanceDelta)\n        }\n    }\n\n    function amount1(BalanceDelta balanceDelta) internal pure returns (int128 _amount1) {\n        assembly (\"memory-safe\") {\n            _amount1 := signextend(15, balanceDelta)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Return the 512-bit addition of two uint256.\n     *\n     * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n     */\n    function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        assembly (\"memory-safe\") {\n            low := add(a, b)\n            high := lt(low, a)\n        }\n    }\n\n    /**\n     * @dev Return the 512-bit multiplication of two uint256.\n     *\n     * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n     */\n    function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n        // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n        // variables such that product = high * 2²⁵⁶ + low.\n        assembly (\"memory-safe\") {\n            let mm := mulmod(a, b, not(0))\n            low := mul(a, b)\n            high := sub(sub(mm, low), lt(mm, low))\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            success = c >= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a - b;\n            success = c <= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a * b;\n            assembly (\"memory-safe\") {\n                // Only true when the multiplication doesn't overflow\n                // (c / a == b) || (a == 0)\n                success := or(eq(div(c, a), b), iszero(a))\n            }\n            // equivalent to: success ? c : 0\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `DIV` opcode returns zero when the denominator is 0.\n                result := div(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `MOD` opcode returns zero when the denominator is 0.\n                result := mod(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryAdd(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n     */\n    function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n        (, uint256 result) = trySub(a, b);\n        return result;\n    }\n\n    /**\n     * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryMul(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // (a + b) / 2 can overflow.\n            return (a & b) + (a ^ b) / 2;\n        }\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (high == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return low / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= high) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [high low].\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                high := sub(high, gt(remainder, low))\n                low := sub(low, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly (\"memory-safe\") {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [high low] by twos.\n                low := div(low, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from high into low.\n            low |= high * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n            // is no longer required.\n            result = low * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n            if (high >= 1 << n) {\n                Panic.panic(Panic.UNDER_OVERFLOW);\n            }\n            return (high << (256 - n)) | (low >> n);\n        }\n    }\n\n    /**\n     * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n        return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory buffer) private pure returns (bool) {\n        uint256 chunk;\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            // See _unsafeReadBytesOffset from utils/Bytes.sol\n            assembly (\"memory-safe\") {\n                chunk := mload(add(add(buffer, 0x20), i))\n            }\n            if (chunk >> (8 * saturatingSub(i + 0x20, buffer.length)) != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // If upper 8 bits of 16-bit half set, add 8 to result\n        r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n        // If upper 4 bits of 8-bit half set, add 4 to result\n        r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n        // Shifts value right by the current result and use it as an index into this lookup table:\n        //\n        // | x (4 bits) |  index  | table[index] = MSB position |\n        // |------------|---------|-----------------------------|\n        // |    0000    |    0    |        table[0] = 0         |\n        // |    0001    |    1    |        table[1] = 0         |\n        // |    0010    |    2    |        table[2] = 1         |\n        // |    0011    |    3    |        table[3] = 1         |\n        // |    0100    |    4    |        table[4] = 2         |\n        // |    0101    |    5    |        table[5] = 2         |\n        // |    0110    |    6    |        table[6] = 2         |\n        // |    0111    |    7    |        table[7] = 2         |\n        // |    1000    |    8    |        table[8] = 3         |\n        // |    1001    |    9    |        table[9] = 3         |\n        // |    1010    |   10    |        table[10] = 3        |\n        // |    1011    |   11    |        table[11] = 3        |\n        // |    1100    |   12    |        table[12] = 3        |\n        // |    1101    |   13    |        table[13] = 3        |\n        // |    1110    |   14    |        table[14] = 3        |\n        // |    1111    |   15    |        table[15] = 3        |\n        //\n        // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the first 16 bytes (most significant half).\n        assembly (\"memory-safe\") {\n            r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n        return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits in a uint256.\n     */\n    function clz(uint256 x) internal pure returns (uint256) {\n        return ternary(x == 0, 256, 255 - log2(x));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\n\n/// @notice Parameter struct for `ModifyLiquidity` pool operations\nstruct ModifyLiquidityParams {\n    // the lower and upper tick of the position\n    int24 tickLower;\n    int24 tickUpper;\n    // how to modify the liquidity\n    int256 liquidityDelta;\n    // a value to set if you want unique liquidity positions at the same range\n    bytes32 salt;\n}\n\n/// @notice Parameter struct for `Swap` pool operations\nstruct SwapParams {\n    /// Whether to swap token0 for token1 or vice versa\n    bool zeroForOne;\n    /// The desired input amount if negative (exactIn), or the desired output amount if positive (exactOut)\n    int256 amountSpecified;\n    /// The sqrt price at which, if reached, the swap will stop executing\n    uint160 sqrtPriceLimitX96;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for functions to access any storage slot in a contract\ninterface IExtsload {\n    /// @notice Called by external contracts to access granular pool state\n    /// @param slot Key of slot to sload\n    /// @return value The value of the slot as bytes32\n    function extsload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access granular pool state\n    /// @param startSlot Key of slot to start sloading from\n    /// @param nSlots Number of slots to load into return value\n    /// @return values List of loaded values.\n    function extsload(bytes32 startSlot, uint256 nSlots) external view returns (bytes32[] memory values);\n\n    /// @notice Called by external contracts to access sparse pool state\n    /// @param slots List of slots to SLOAD from.\n    /// @return values List of loaded values.\n    function extsload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @notice Interface for functions to access any transient storage slot in a contract\ninterface IExttload {\n    /// @notice Called by external contracts to access transient storage of the contract\n    /// @param slot Key of slot to tload\n    /// @return value The value of the slot as bytes32\n    function exttload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access sparse transient pool state\n    /// @param slots List of slots to tload\n    /// @return values List of loaded values\n    function exttload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC20Metadata} from \"./extensions/IERC20Metadata.sol\";\nimport {Context} from \"../../utils/Context.sol\";\nimport {IERC20Errors} from \"../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC-20\n * applications.\n */\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n    mapping(address account => uint256) private _balances;\n\n    mapping(address account => mapping(address spender => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * Both values are immutable: they can only be set once during construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual returns (uint8) {\n        return 18;\n    }\n\n    /// @inheritdoc IERC20\n    function totalSupply() public view virtual returns (uint256) {\n        return _totalSupply;\n    }\n\n    /// @inheritdoc IERC20\n    function balanceOf(address account) public view virtual returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `value`.\n     */\n    function transfer(address to, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, value);\n        return true;\n    }\n\n    /// @inheritdoc IERC20\n    function allowance(address owner, address spender) public view virtual returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, value);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Skips emitting an {Approval} event indicating an allowance update. This is not\n     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `value`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `value`.\n     */\n    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, value);\n        _transfer(from, to, value);\n        return true;\n    }\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _transfer(address from, address to, uint256 value) internal {\n        if (from == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        if (to == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(from, to, value);\n    }\n\n    /**\n     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n     * this function.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _update(address from, address to, uint256 value) internal virtual {\n        if (from == address(0)) {\n            // Overflow check required: The rest of the code assumes that totalSupply never overflows\n            _totalSupply += value;\n        } else {\n            uint256 fromBalance = _balances[from];\n            if (fromBalance < value) {\n                revert ERC20InsufficientBalance(from, fromBalance, value);\n            }\n            unchecked {\n                // Overflow not possible: value <= fromBalance <= totalSupply.\n                _balances[from] = fromBalance - value;\n            }\n        }\n\n        if (to == address(0)) {\n            unchecked {\n                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\n                _totalSupply -= value;\n            }\n        } else {\n            unchecked {\n                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\n                _balances[to] += value;\n            }\n        }\n\n        emit Transfer(from, to, value);\n    }\n\n    /**\n     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n     * Relies on the `_update` mechanism\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _mint(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(address(0), account, value);\n    }\n\n    /**\n     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n     * Relies on the `_update` mechanism.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead\n     */\n    function _burn(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        _update(account, address(0), value);\n    }\n\n    /**\n     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address owner, address spender, uint256 value) internal {\n        _approve(owner, spender, value, true);\n    }\n\n    /**\n     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n     *\n     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n     * `_spendAllowance` during the `transferFrom` operation sets the flag to false. This saves gas by not emitting any\n     * `Approval` event during `transferFrom` operations.\n     *\n     * Anyone who wishes to continue emitting `Approval` events on the `transferFrom` operation can force the flag to\n     * true using the following override:\n     *\n     * ```solidity\n     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n     *     super._approve(owner, spender, value, true);\n     * }\n     * ```\n     *\n     * Requirements are the same as {_approve}.\n     */\n    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {\n        if (owner == address(0)) {\n            revert ERC20InvalidApprover(address(0));\n        }\n        if (spender == address(0)) {\n            revert ERC20InvalidSpender(address(0));\n        }\n        _allowances[owner][spender] = value;\n        if (emitEvent) {\n            emit Approval(owner, spender, value);\n        }\n    }\n\n    /**\n     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.\n     *\n     * Does not update the allowance value in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Does not emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance < type(uint256).max) {\n            if (currentAllowance < value) {\n                revert ERC20InsufficientAllowance(spender, currentAllowance, value);\n            }\n            unchecked {\n                _approve(owner, spender, currentAllowance - value, false);\n            }\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// Return type of the beforeSwap hook.\n// Upper 128 bits is the delta in specified tokens. Lower 128 bits is delta in unspecified tokens (to match the afterSwap hook)\ntype BeforeSwapDelta is int256;\n\n// Creates a BeforeSwapDelta from specified and unspecified\nfunction toBeforeSwapDelta(int128 deltaSpecified, int128 deltaUnspecified)\n    pure\n    returns (BeforeSwapDelta beforeSwapDelta)\n{\n    assembly (\"memory-safe\") {\n        beforeSwapDelta := or(shl(128, deltaSpecified), and(sub(shl(128, 1), 1), deltaUnspecified))\n    }\n}\n\n/// @notice Library for getting the specified and unspecified deltas from the BeforeSwapDelta type\nlibrary BeforeSwapDeltaLibrary {\n    /// @notice A BeforeSwapDelta of 0\n    BeforeSwapDelta public constant ZERO_DELTA = BeforeSwapDelta.wrap(0);\n\n    /// extracts int128 from the upper 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap\n    function getSpecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaSpecified) {\n        assembly (\"memory-safe\") {\n            deltaSpecified := sar(128, delta)\n        }\n    }\n\n    /// extracts int128 from the lower 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap and afterSwap\n    function getUnspecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaUnspecified) {\n        assembly (\"memory-safe\") {\n            deltaUnspecified := signextend(15, delta)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/LowLevelCall.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/LowLevelCall.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library of low level call functions that implement different calling strategies to deal with the return data.\n *\n * WARNING: Using this library requires an advanced understanding of Solidity and how the EVM works. It is recommended\n * to use the {Address} library instead.\n */\nlibrary LowLevelCall {\n    /// @dev Performs a Solidity function call using a low level `call` and ignoring the return data.\n    function callNoReturn(address target, bytes memory data) internal returns (bool success) {\n        return callNoReturn(target, 0, data);\n    }\n\n    /// @dev Same as {callNoReturn-address-bytes}, but allows specifying the value to be sent in the call.\n    function callNoReturn(address target, uint256 value, bytes memory data) internal returns (bool success) {\n        assembly (\"memory-safe\") {\n            success := call(gas(), target, value, add(data, 0x20), mload(data), 0x00, 0x00)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `call` and returns the first 64 bytes of the result\n    /// in the scratch space of memory. Useful for functions that return a tuple with two single-word values.\n    ///\n    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated\n    /// and this function doesn't zero it out.\n    function callReturn64Bytes(\n        address target,\n        bytes memory data\n    ) internal returns (bool success, bytes32 result1, bytes32 result2) {\n        return callReturn64Bytes(target, 0, data);\n    }\n\n    /// @dev Same as {callReturn64Bytes-address-bytes}, but allows specifying the value to be sent in the call.\n    function callReturn64Bytes(\n        address target,\n        uint256 value,\n        bytes memory data\n    ) internal returns (bool success, bytes32 result1, bytes32 result2) {\n        assembly (\"memory-safe\") {\n            success := call(gas(), target, value, add(data, 0x20), mload(data), 0x00, 0x40)\n            result1 := mload(0x00)\n            result2 := mload(0x20)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `staticcall` and ignoring the return data.\n    function staticcallNoReturn(address target, bytes memory data) internal view returns (bool success) {\n        assembly (\"memory-safe\") {\n            success := staticcall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x00)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `staticcall` and returns the first 64 bytes of the result\n    /// in the scratch space of memory. Useful for functions that return a tuple with two single-word values.\n    ///\n    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated\n    /// and this function doesn't zero it out.\n    function staticcallReturn64Bytes(\n        address target,\n        bytes memory data\n    ) internal view returns (bool success, bytes32 result1, bytes32 result2) {\n        assembly (\"memory-safe\") {\n            success := staticcall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x40)\n            result1 := mload(0x00)\n            result2 := mload(0x20)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `delegatecall` and ignoring the return data.\n    function delegatecallNoReturn(address target, bytes memory data) internal returns (bool success) {\n        assembly (\"memory-safe\") {\n            success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x00)\n        }\n    }\n\n    /// @dev Performs a Solidity function call using a low level `delegatecall` and returns the first 64 bytes of the result\n    /// in the scratch space of memory. Useful for functions that return a tuple with two single-word values.\n    ///\n    /// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated\n    /// and this function doesn't zero it out.\n    function delegatecallReturn64Bytes(\n        address target,\n        bytes memory data\n    ) internal returns (bool success, bytes32 result1, bytes32 result2) {\n        assembly (\"memory-safe\") {\n            success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0x00, 0x40)\n            result1 := mload(0x00)\n            result2 := mload(0x20)\n        }\n    }\n\n    /// @dev Returns the size of the return data buffer.\n    function returnDataSize() internal pure returns (uint256 size) {\n        assembly (\"memory-safe\") {\n            size := returndatasize()\n        }\n    }\n\n    /// @dev Returns a buffer containing the return data from the last call.\n    function returnData() internal pure returns (bytes memory result) {\n        assembly (\"memory-safe\") {\n            result := mload(0x40)\n            mstore(result, returndatasize())\n            returndatacopy(add(result, 0x20), 0x00, returndatasize())\n            mstore(0x40, add(result, add(0x20, returndatasize())))\n        }\n    }\n\n    /// @dev Revert with the return data from the last call.\n    function bubbleRevert() internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            returndatacopy(fmp, 0x00, returndatasize())\n            revert(fmp, returndatasize())\n        }\n    }\n\n    function bubbleRevert(bytes memory returndata) internal pure {\n        assembly (\"memory-safe\") {\n            revert(add(returndata, 0x20), mload(returndata))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Library for reverting with custom errors efficiently\n/// @notice Contains functions for reverting with custom errors with different argument types efficiently\n/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with\n/// `CustomError.selector.revertWith()`\n/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately\nlibrary CustomRevert {\n    /// @dev ERC-7751 error for wrapping bubbled up reverts\n    error WrappedError(address target, bytes4 selector, bytes reason, bytes details);\n\n    /// @dev Reverts with the selector of a custom error in the scratch space\n    function revertWith(bytes4 selector) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            revert(0, 0x04)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an address argument in the scratch space\n    function revertWith(bytes4 selector, address addr) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an int24 argument in the scratch space\n    function revertWith(bytes4 selector, int24 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, signextend(2, value))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with a uint160 argument in the scratch space\n    function revertWith(bytes4 selector, uint160 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two int24 arguments\n    function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), signextend(2, value1))\n            mstore(add(fmp, 0x24), signextend(2, value2))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two uint160 arguments\n    function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two address arguments\n    function revertWith(bytes4 selector, address value1, address value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error\n    /// @dev this method can be vulnerable to revert data bombs\n    function bubbleUpAndRevertWith(\n        address revertingContract,\n        bytes4 revertingFunctionSelector,\n        bytes4 additionalContext\n    ) internal pure {\n        bytes4 wrappedErrorSelector = WrappedError.selector;\n        assembly (\"memory-safe\") {\n            // Ensure the size of the revert data is a multiple of 32 bytes\n            let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)\n\n            let fmp := mload(0x40)\n\n            // Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason\n            mstore(fmp, wrappedErrorSelector)\n            mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(\n                add(fmp, 0x24),\n                and(revertingFunctionSelector, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            // offset revert reason\n            mstore(add(fmp, 0x44), 0x80)\n            // offset additional context\n            mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))\n            // size revert reason\n            mstore(add(fmp, 0x84), returndatasize())\n            // revert reason\n            returndatacopy(add(fmp, 0xa4), 0, returndatasize())\n            // size additional context\n            mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)\n            // additional context\n            mstore(\n                add(fmp, add(0xc4, encodedDataSize)),\n                and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            revert(fmp, add(0xe4, encodedDataSize))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title FixedPoint96\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\n/// @dev Used in SqrtPriceMath.sol\nlibrary FixedPoint96 {\n    uint8 internal constant RESOLUTION = 96;\n    uint256 internal constant Q96 = 0x1000000000000000000000000;\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.sol.eta.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev A uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"./IHooks.sol\";\nimport {IERC6909Claims} from \"./external/IERC6909Claims.sol\";\nimport {IProtocolFees} from \"./IProtocolFees.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {IExtsload} from \"./IExtsload.sol\";\nimport {IExttload} from \"./IExttload.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\n\n/// @notice Interface for the PoolManager\ninterface IPoolManager is IProtocolFees, IERC6909Claims, IExtsload, IExttload {\n    /// @notice Thrown when a currency is not netted out after the contract is unlocked\n    error CurrencyNotSettled();\n\n    /// @notice Thrown when trying to interact with a non-initialized pool\n    error PoolNotInitialized();\n\n    /// @notice Thrown when unlock is called, but the contract is already unlocked\n    error AlreadyUnlocked();\n\n    /// @notice Thrown when a function is called that requires the contract to be unlocked, but it is not\n    error ManagerLocked();\n\n    /// @notice Pools are limited to type(int16).max tickSpacing in #initialize, to prevent overflow\n    error TickSpacingTooLarge(int24 tickSpacing);\n\n    /// @notice Pools must have a positive non-zero tickSpacing passed to #initialize\n    error TickSpacingTooSmall(int24 tickSpacing);\n\n    /// @notice PoolKey must have currencies where address(currency0) < address(currency1)\n    error CurrenciesOutOfOrderOrEqual(address currency0, address currency1);\n\n    /// @notice Thrown when a call to updateDynamicLPFee is made by an address that is not the hook,\n    /// or on a pool that does not have a dynamic swap fee.\n    error UnauthorizedDynamicLPFeeUpdate();\n\n    /// @notice Thrown when trying to swap amount of 0\n    error SwapAmountCannotBeZero();\n\n    ///@notice Thrown when native currency is passed to a non native settlement\n    error NonzeroNativeValue();\n\n    /// @notice Thrown when `clear` is called with an amount that is not exactly equal to the open currency delta.\n    error MustClearExactPositiveDelta();\n\n    /// @notice Emitted when a new pool is initialized\n    /// @param id The abi encoded hash of the pool key struct for the new pool\n    /// @param currency0 The first currency of the pool by address sort order\n    /// @param currency1 The second currency of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param hooks The hooks contract address for the pool, or address(0) if none\n    /// @param sqrtPriceX96 The price of the pool on initialization\n    /// @param tick The initial tick of the pool corresponding to the initialized price\n    event Initialize(\n        PoolId indexed id,\n        Currency indexed currency0,\n        Currency indexed currency1,\n        uint24 fee,\n        int24 tickSpacing,\n        IHooks hooks,\n        uint160 sqrtPriceX96,\n        int24 tick\n    );\n\n    /// @notice Emitted when a liquidity position is modified\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that modified the pool\n    /// @param tickLower The lower tick of the position\n    /// @param tickUpper The upper tick of the position\n    /// @param liquidityDelta The amount of liquidity that was added or removed\n    /// @param salt The extra data to make positions unique\n    event ModifyLiquidity(\n        PoolId indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt\n    );\n\n    /// @notice Emitted for swaps between currency0 and currency1\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that initiated the swap call, and that received the callback\n    /// @param amount0 The delta of the currency0 balance of the pool\n    /// @param amount1 The delta of the currency1 balance of the pool\n    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\n    /// @param liquidity The liquidity of the pool after the swap\n    /// @param tick The log base 1.0001 of the price of the pool after the swap\n    /// @param fee The swap fee in hundredths of a bip\n    event Swap(\n        PoolId indexed id,\n        address indexed sender,\n        int128 amount0,\n        int128 amount1,\n        uint160 sqrtPriceX96,\n        uint128 liquidity,\n        int24 tick,\n        uint24 fee\n    );\n\n    /// @notice Emitted for donations\n    /// @param id The abi encoded hash of the pool key struct for the pool that was donated to\n    /// @param sender The address that initiated the donate call\n    /// @param amount0 The amount donated in currency0\n    /// @param amount1 The amount donated in currency1\n    event Donate(PoolId indexed id, address indexed sender, uint256 amount0, uint256 amount1);\n\n    /// @notice All interactions on the contract that account deltas require unlocking. A caller that calls `unlock` must implement\n    /// `IUnlockCallback(msg.sender).unlockCallback(data)`, where they interact with the remaining functions on this contract.\n    /// @dev The only functions callable without an unlocking are `initialize` and `updateDynamicLPFee`\n    /// @param data Any data to pass to the callback, via `IUnlockCallback(msg.sender).unlockCallback(data)`\n    /// @return The data returned by the call to `IUnlockCallback(msg.sender).unlockCallback(data)`\n    function unlock(bytes calldata data) external returns (bytes memory);\n\n    /// @notice Initialize the state for a given pool ID\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The pool key for the pool to initialize\n    /// @param sqrtPriceX96 The initial square root price\n    /// @return tick The initial tick of the pool\n    function initialize(PoolKey memory key, uint160 sqrtPriceX96) external returns (int24 tick);\n\n    /// @notice Modify the liquidity for the given pool\n    /// @dev Poke by calling with a zero liquidityDelta\n    /// @param key The pool to modify liquidity in\n    /// @param params The parameters for modifying the liquidity\n    /// @param hookData The data to pass through to the add/removeLiquidity hooks\n    /// @return callerDelta The balance delta of the caller of modifyLiquidity. This is the total of both principal, fee deltas, and hook deltas if applicable\n    /// @return feesAccrued The balance delta of the fees generated in the liquidity range. Returned for informational purposes\n    /// @dev Note that feesAccrued can be artificially inflated by a malicious actor and integrators should be careful using the value\n    /// For pools with a single liquidity position, actors can donate to themselves to inflate feeGrowthGlobal (and consequently feesAccrued)\n    /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme\n    function modifyLiquidity(PoolKey memory key, ModifyLiquidityParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta callerDelta, BalanceDelta feesAccrued);\n\n    /// @notice Swap against the given pool\n    /// @param key The pool to swap in\n    /// @param params The parameters for swapping\n    /// @param hookData The data to pass through to the swap hooks\n    /// @return swapDelta The balance delta of the address swapping\n    /// @dev Swapping on low liquidity pools may cause unexpected swap amounts when liquidity available is less than amountSpecified.\n    /// Additionally note that if interacting with hooks that have the BEFORE_SWAP_RETURNS_DELTA_FLAG or AFTER_SWAP_RETURNS_DELTA_FLAG\n    /// the hook may alter the swap input/output. Integrators should perform checks on the returned swapDelta.\n    function swap(PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta swapDelta);\n\n    /// @notice Donate the given currency amounts to the in-range liquidity providers of a pool\n    /// @dev Calls to donate can be frontrun adding just-in-time liquidity, with the aim of receiving a portion donated funds.\n    /// Donors should keep this in mind when designing donation mechanisms.\n    /// @dev This function donates to in-range LPs at slot0.tick. In certain edge-cases of the swap algorithm, the `sqrtPrice` of\n    /// a pool can be at the lower boundary of tick `n`, but the `slot0.tick` of the pool is already `n - 1`. In this case a call to\n    /// `donate` would donate to tick `n - 1` (slot0.tick) not tick `n` (getTickAtSqrtPrice(slot0.sqrtPriceX96)).\n    /// Read the comments in `Pool.swap()` for more information about this.\n    /// @param key The key of the pool to donate to\n    /// @param amount0 The amount of currency0 to donate\n    /// @param amount1 The amount of currency1 to donate\n    /// @param hookData The data to pass through to the donate hooks\n    /// @return BalanceDelta The delta of the caller after the donate\n    function donate(PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        external\n        returns (BalanceDelta);\n\n    /// @notice Writes the current ERC20 balance of the specified currency to transient storage\n    /// This is used to checkpoint balances for the manager and derive deltas for the caller.\n    /// @dev This MUST be called before any ERC20 tokens are sent into the contract, but can be skipped\n    /// for native tokens because the amount to settle is determined by the sent value.\n    /// However, if an ERC20 token has been synced and not settled, and the caller instead wants to settle\n    /// native funds, this function can be called with the native currency to then be able to settle the native currency\n    function sync(Currency currency) external;\n\n    /// @notice Called by the user to net out some value owed to the user\n    /// @dev Will revert if the requested amount is not available, consider using `mint` instead\n    /// @dev Can also be used as a mechanism for free flash loans\n    /// @param currency The currency to withdraw from the pool manager\n    /// @param to The address to withdraw to\n    /// @param amount The amount of currency to withdraw\n    function take(Currency currency, address to, uint256 amount) external;\n\n    /// @notice Called by the user to pay what is owed\n    /// @return paid The amount of currency settled\n    function settle() external payable returns (uint256 paid);\n\n    /// @notice Called by the user to pay on behalf of another address\n    /// @param recipient The address to credit for the payment\n    /// @return paid The amount of currency settled\n    function settleFor(address recipient) external payable returns (uint256 paid);\n\n    /// @notice WARNING - Any currency that is cleared, will be non-retrievable, and locked in the contract permanently.\n    /// A call to clear will zero out a positive balance WITHOUT a corresponding transfer.\n    /// @dev This could be used to clear a balance that is considered dust.\n    /// Additionally, the amount must be the exact positive balance. This is to enforce that the caller is aware of the amount being cleared.\n    function clear(Currency currency, uint256 amount) external;\n\n    /// @notice Called by the user to move value into ERC6909 balance\n    /// @param to The address to mint the tokens to\n    /// @param id The currency address to mint to ERC6909s, as a uint256\n    /// @param amount The amount of currency to mint\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function mint(address to, uint256 id, uint256 amount) external;\n\n    /// @notice Called by the user to move value from ERC6909 balance\n    /// @param from The address to burn the tokens from\n    /// @param id The currency address to burn from ERC6909s, as a uint256\n    /// @param amount The amount of currency to burn\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function burn(address from, uint256 id, uint256 amount) external;\n\n    /// @notice Updates the pools lp fees for the a pool that has enabled dynamic lp fees.\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The key of the pool to update dynamic LP fees for\n    /// @param newDynamicLPFee The new dynamic pool LP fee\n    function updateDynamicLPFee(PoolKey memory key, uint24 newDynamicLPFee) external;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\n\n/// @notice Interface for all protocol-fee related functions in the pool manager\ninterface IProtocolFees {\n    /// @notice Thrown when protocol fee is set too high\n    error ProtocolFeeTooLarge(uint24 fee);\n\n    /// @notice Thrown when collectProtocolFees or setProtocolFee is not called by the controller.\n    error InvalidCaller();\n\n    /// @notice Thrown when collectProtocolFees is attempted on a token that is synced.\n    error ProtocolFeeCurrencySynced();\n\n    /// @notice Emitted when the protocol fee controller address is updated in setProtocolFeeController.\n    event ProtocolFeeControllerUpdated(address indexed protocolFeeController);\n\n    /// @notice Emitted when the protocol fee is updated for a pool.\n    event ProtocolFeeUpdated(PoolId indexed id, uint24 protocolFee);\n\n    /// @notice Given a currency address, returns the protocol fees accrued in that currency\n    /// @param currency The currency to check\n    /// @return amount The amount of protocol fees accrued in the currency\n    function protocolFeesAccrued(Currency currency) external view returns (uint256 amount);\n\n    /// @notice Sets the protocol fee for the given pool\n    /// @param key The key of the pool to set a protocol fee for\n    /// @param newProtocolFee The fee to set\n    function setProtocolFee(PoolKey memory key, uint24 newProtocolFee) external;\n\n    /// @notice Sets the protocol fee controller\n    /// @param controller The new protocol fee controller\n    function setProtocolFeeController(address controller) external;\n\n    /// @notice Collects the protocol fees for a given recipient and currency, returning the amount collected\n    /// @dev This will revert if the contract is unlocked\n    /// @param recipient The address to receive the protocol fees\n    /// @param currency The currency to withdraw\n    /// @param amount The amount of currency to withdraw\n    /// @return amountCollected The amount of currency successfully withdrawn\n    function collectProtocolFees(address recipient, Currency currency, uint256 amount)\n        external\n        returns (uint256 amountCollected);\n\n    /// @notice Returns the current protocol fee controller address\n    /// @return address The current protocol fee controller address\n    function protocolFeeController() external view returns (address);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)\n\npragma solidity >=0.8.4;\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.7.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\nimport {IERC20Metadata} from \"../../../interfaces/IERC20Metadata.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /// @dev Attempts to fetch the token decimals. A return value of false indicates that the attempt failed in some way.\n    function tryGetDecimals(IERC20 token) internal view returns (bool success, uint8 decimals) {\n        bytes4 selector = IERC20Metadata.decimals.selector;\n        assembly (\"memory-safe\") {\n            mstore(0x00, selector)\n            success := staticcall(gas(), token, 0x00, 4, 0x00, 0x20)\n            success := and(and(success, gt(returndatasize(), 0x1f)), lt(mload(0x00), 0x100))\n            decimals := mul(success, mload(0x00))\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to approve\n     * @param bubble Behavior switch if the approve call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Minimal ERC20 interface for Uniswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3\ninterface IERC20Minimal {\n    /// @notice Returns an account's balance in the token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n    /// @param from The account from which the tokens were sent, i.e. the balance decreased\n    /// @param to The account to which the tokens were sent, i.e. the balance increased\n    /// @param value The amount of tokens that were transferred\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n    /// @param owner The account that approved spending of its tokens\n    /// @param spender The account for which the spending allowance was modified\n    /// @param value The new allowance from the owner to the spender\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for claims over a contract balance, wrapped as a ERC6909\ninterface IERC6909Claims {\n    /*//////////////////////////////////////////////////////////////\n                                 EVENTS\n    //////////////////////////////////////////////////////////////*/\n\n    event OperatorSet(address indexed owner, address indexed operator, bool approved);\n\n    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);\n\n    event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);\n\n    /*//////////////////////////////////////////////////////////////\n                                 FUNCTIONS\n    //////////////////////////////////////////////////////////////*/\n\n    /// @notice Owner balance of an id.\n    /// @param owner The address of the owner.\n    /// @param id The id of the token.\n    /// @return amount The balance of the token.\n    function balanceOf(address owner, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Spender allowance of an id.\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @return amount The allowance of the token.\n    function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Checks if a spender is approved by an owner as an operator\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @return approved The approval status.\n    function isOperator(address owner, address spender) external view returns (bool approved);\n\n    /// @notice Transfers an amount of an id from the caller to a receiver.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Transfers an amount of an id from a sender to a receiver.\n    /// @param sender The address of the sender.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Approves an amount of an id to a spender.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always\n    function approve(address spender, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Sets or removes an operator for the caller.\n    /// @param operator The address of the operator.\n    /// @param approved The approval status.\n    /// @return bool True, always\n    function setOperator(address operator, bool approved) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"}},"language":"Solidity","settings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts/=lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/","permit2/=lib/v4-periphery/lib/permit2/","forge-std/=lib/forge-std/src/","ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/","solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/","forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/","@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"]}},"stdJsonOutput":{"sources":{"src/LaunchpadToken.sol":{"id":41},"src/LaunchpadFactory.sol":{"id":40},"src/interfaces/ILaunchpadFactory.sol":{"id":42},"src/interfaces/ISocialTradingApp.sol":{"id":43},"lib/v4-periphery/src/libraries/Actions.sol":{"id":38},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"id":34},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"id":35},"lib/v4-periphery/src/libraries/ActionConstants.sol":{"id":37},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"id":33},"lib/v4-periphery/src/libraries/LiquidityAmounts.sol":{"id":39},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"id":14},"lib/openzeppelin-contracts/contracts/proxy/Clones.sol":{"id":5},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"id":12},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"id":10},"lib/openzeppelin-contracts/contracts/utils/Create2.sol":{"id":11},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"id":20},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"id":25},"lib/v4-periphery/lib/v4-core/src/libraries/FullMath.sol":{"id":28},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"id":29},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"id":30},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"id":31},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":16},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"id":36},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"id":18},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"id":19},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":2},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"id":6},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"id":32},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":1},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":7},"lib/openzeppelin-contracts/contracts/utils/LowLevelCall.sol":{"id":13},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"id":26},"lib/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol":{"id":27},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":0},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":17},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"id":21},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"id":22},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"id":3},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol":{"id":4},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":9},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":15},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"id":23},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"id":24},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":8}},"contracts":{"src/LaunchpadFactory.sol":{"LaunchpadFactory":{"abi":[{"type":"constructor","inputs":[{"name":"tokenizedStock_","type":"address","internalType":"address"},{"name":"poolManager_","type":"address","internalType":"address"},{"name":"positionManager_","type":"address","internalType":"address"},{"name":"feeCollector_","type":"address","internalType":"address"},{"name":"hook_","type":"address","internalType":"address"},{"name":"defaultFee_","type":"uint24","internalType":"uint24"},{"name":"defaultTickSpacing_","type":"int24","internalType":"int24"},{"name":"launchFdvInStock_","type":"uint256","internalType":"uint256"},{"name":"genesisFdvInStock_","type":"uint256","internalType":"uint256"},{"name":"genesisCreator_","type":"address","internalType":"address"},{"name":"dividendSweeper_","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"EmptyName","type":"error","inputs":[]},{"name":"EmptySymbol","type":"error","inputs":[]},{"name":"EmptyWhitelist","type":"error","inputs":[]},{"name":"FailedDeployment","type":"error","inputs":[]},{"name":"InsufficientBalance","type":"error","inputs":[{"name":"balance","type":"uint256","internalType":"uint256"},{"name":"needed","type":"uint256","internalType":"uint256"}]},{"name":"InvalidBlinkDuration","type":"error","inputs":[{"name":"duration","type":"uint256","internalType":"uint256"},{"name":"maximum","type":"uint256","internalType":"uint256"}]},{"name":"InvalidRange","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"length","type":"uint256","internalType":"uint256"}]},{"name":"LaunchPriceOutOfRange","type":"error","inputs":[{"name":"fdv","type":"uint256","internalType":"uint256"}]},{"name":"NoLiquidityMinted","type":"error","inputs":[]},{"name":"PoolInitializationFailed","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"UnknownToken","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"ZeroLaunchValuation","type":"error","inputs":[]},{"name":"TokenLaunched","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"creator","type":"address","indexed":true,"internalType":"address"},{"name":"poolId","type":"bytes32","indexed":true,"internalType":"PoolId"},{"name":"lpTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"name","type":"string","indexed":false,"internalType":"string"},{"name":"symbol","type":"string","indexed":false,"internalType":"string"},{"name":"supply","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"blinkEnd","type":"uint64","indexed":false,"internalType":"uint64"},{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"DEAD","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"LAUNCH_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_BLINK_DURATION","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"createToken","type":"function","inputs":[{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"}],"outputs":[{"name":"token","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"createTokenWithBlink","type":"function","inputs":[{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"blinkDuration","type":"uint256","internalType":"uint256"},{"name":"whitelistedApps","type":"address[]","internalType":"address[]"}],"outputs":[{"name":"token","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"defaultFee","type":"function","inputs":[],"outputs":[{"name":"","type":"uint24","internalType":"uint24"}],"stateMutability":"view"},{"name":"defaultTickSpacing","type":"function","inputs":[],"outputs":[{"name":"","type":"int24","internalType":"int24"}],"stateMutability":"view"},{"name":"dividendSweeper","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeCollector","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeCollectorAddress","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"genesisCreator","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"genesisFdvInStock","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"genesisUsed","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"getAllTokens","type":"function","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"getTokenCount","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getTokenInfo","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"info","type":"tuple","components":[{"name":"token","type":"address","internalType":"address"},{"name":"creator","type":"address","internalType":"address"},{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"supply","type":"uint256","internalType":"uint256"},{"name":"poolId","type":"bytes32","internalType":"bytes32"},{"name":"lpTokenId","type":"uint256","internalType":"uint256"},{"name":"launchedAt","type":"uint64","internalType":"uint64"},{"name":"blinkEnd","type":"uint64","internalType":"uint64"}],"internalType":"struct ILaunchpadFactory.TokenInfo"}],"stateMutability":"view"},{"name":"getTokensByCreator","type":"function","inputs":[{"name":"creator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"getTokensRange","type":"function","inputs":[{"name":"startIndex","type":"uint256","internalType":"uint256"},{"name":"endIndex","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"page","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"hook","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"hookAddress","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"isLaunchpadToken","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"launchFdvInStock","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"poolKeyOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"key","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"}],"stateMutability":"view"},{"name":"poolManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPoolManager"}],"stateMutability":"view"},{"name":"positionManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPositionManagerMinimal"}],"stateMutability":"view"},{"name":"stock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"name":"tokenImplementation","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"tokenizedStock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"}],"metadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenizedStock_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"poolManager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"positionManager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"feeCollector_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"hook_\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"defaultFee_\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"defaultTickSpacing_\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"launchFdvInStock_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"genesisFdvInStock_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"genesisCreator_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dividendSweeper_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"EmptyName\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptySymbol\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyWhitelist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedDeployment\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maximum\",\"type\":\"uint256\"}],\"name\":\"InvalidBlinkDuration\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"InvalidRange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fdv\",\"type\":\"uint256\"}],\"name\":\"LaunchPriceOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoLiquidityMinted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PoolInitializationFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"UnknownToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroLaunchValuation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"PoolId\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lpTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"supply\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"blinkEnd\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"TokenLaunched\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEAD\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LAUNCH_SUPPLY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_BLINK_DURATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"name\":\"createToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"blinkDuration\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"whitelistedApps\",\"type\":\"address[]\"}],\"name\":\"createTokenWithBlink\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultTickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dividendSweeper\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCollectorAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisCreator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisFdvInStock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisUsed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllTokens\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"supply\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"lpTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"launchedAt\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"blinkEnd\",\"type\":\"uint64\"}],\"internalType\":\"struct ILaunchpadFactory.TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"}],\"name\":\"getTokensByCreator\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"startIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endIndex\",\"type\":\"uint256\"}],\"name\":\"getTokensRange\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"page\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hook\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hookAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isLaunchpadToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"launchFdvInStock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"poolKeyOf\",\"outputs\":[{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"key\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolManager\",\"outputs\":[{\"internalType\":\"contract IPoolManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"positionManager\",\"outputs\":[{\"internalType\":\"contract IPositionManagerMinimal\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stock\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenizedStock\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"No owner. No admin. No pause. No parameter is settable after construction and no      token can ever be removed from the registry. The factory custodies nothing once a      launch returns: the whole supply goes into the pool, the LP NFT goes to 0xdead,      and any rounding dust goes to 0xdead too.      HOW LIQUIDITY IS SEEDED. The launch is single-sided: 100% of the new token, zero      stock. In Uniswap v4 that means opening the pool at the very edge of the position's      range, so the whole position is denominated in the launch token and the first buyer      walks the price up from there — a bonding curve, not a pre-priced pool. Which edge      depends on currency ordering, which in turn depends on how the cloned token's      address sorts against the stock's; `_rangeFor` handles both cases.      ON \\\"POOL ADDRESS\\\". Uniswap v4 is a singleton: pools are not contracts. There is no      per-pool address to return, so the registry stores the `PoolId` and the full      `PoolKey`. `poolManager` is the address that actually custodies every pool's      reserves.\",\"errors\":{\"FailedDeployment()\":[{\"details\":\"The deployment failed.\"}],\"InsufficientBalance(uint256,uint256)\":[{\"details\":\"The ETH balance of the account is not enough to perform the operation.\"}],\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}]},\"events\":{\"TokenLaunched(address,address,bytes32,uint256,string,string,uint256,uint64,uint256)\":{\"params\":{\"lpTokenId\":\"The position NFT that was burned to 0xdead.\",\"poolId\":\"Uniswap v4 pool id for token/TokenizedStock. v4 pools are entries in                  the PoolManager singleton, not contracts, so there is no pool address                  to emit; `poolManager()` on this factory is the contract that holds                  every pool's reserves.\",\"token\":\"The freshly cloned ERC-20.\"}}},\"kind\":\"dev\",\"methods\":{\"createToken(string,string)\":{\"details\":\"Supply is fixed at `LAUNCH_SUPPLY` for every token; only the metadata varies.\"}},\"stateVariables\":{\"LAUNCH_SUPPLY\":{\"details\":\"Because the opening tick is derived from the valuation rather than hardcoded, a      fixed supply costs nothing in flexibility and buys a lot in legibility: every      token on the platform has the same supply, so a holder's balance means the same      thing everywhere and price comparisons across launches are direct.\"},\"genesisFdvInStock\":{\"details\":\"The flagship token opens far above the standard launch — a deliberate signal that      it is not one of the crowd. It is not a privilege in any extractive sense: 100% of      supply still goes into the pool single-sided, the creator still receives no      premine, and a higher opening price is strictly worse for whoever buys it. What the      reservation actually protects is which token gets the slot.\"},\"launchFdvInStock\":{\"details\":\"Denominated in stock rather than dollars on purpose. A dollar target would need a      price oracle, which would make the factory depend on something that can be changed      or fail; this way the factory stays immutable and oracle-free, and the launch      valuation simply tracks the share price. If the stock doubles, every new token      opens at twice the dollar valuation, with no transaction and nothing to update.      The opening tick is derived from this and the token's own supply, so a 1e6-supply      launch and a 1e12-supply launch both open at the same valuation. A single hardcoded      tick would not: it would put those two launches six orders of magnitude apart.\"}},\"title\":\"LaunchpadFactory\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"LAUNCH_SUPPLY()\":{\"notice\":\"Every launch mints exactly this. Fixed, so no caller can choose it.\"},\"MAX_BLINK_DURATION()\":{\"notice\":\"A blink cannot outlive this. Restrictions are a launch mechanic, not a regime.\"},\"createToken(string,string)\":{\"notice\":\"Launch a token paired against the tokenized stock, liquidity locked forever.\"},\"createTokenWithBlink(string,string,uint256,address[])\":{\"notice\":\"Launch with a blink window: for `blinkDuration` seconds only wallets vouched         for by one of `whitelistedApps` may buy, and no wallet may buy more than 2%         of supply. Selling is unrestricted throughout. Everything lifts on its own.\"},\"dividendSweeper()\":{\"notice\":\"Passed to every launched token as the address that may sweep stale dividends.\"},\"genesisCreator()\":{\"notice\":\"The only address whose launch may use `genesisFdvInStock`, and only once.\"},\"genesisFdvInStock()\":{\"notice\":\"Opening valuation for the genesis launch only, in TokenizedStock.\"},\"genesisUsed()\":{\"notice\":\"True once the genesis slot has been used. One-way; every later launch is standard.\"},\"getTokensRange(uint256,uint256)\":{\"notice\":\"Page through the registry without loading all of it.\"},\"launchFdvInStock()\":{\"notice\":\"Opening fully diluted valuation of every launch, denominated in TokenizedStock.\"},\"poolKeyOf(address)\":{\"notice\":\"The full v4 PoolKey for a launched token's pool.\"},\"tokenImplementation()\":{\"notice\":\"The EIP-1167 implementation every launched token is a minimal proxy of.\"}},\"notice\":\"Permissionless launchpad. Anyone can deploy a token that is paired against the         company's tokenized stock, with liquidity locked forever, in one transaction.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/LaunchpadFactory.sol\":\"LaunchpadFactory\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/\",\":ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":permit2/=lib/v4-periphery/lib/permit2/\",\":solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/\",\":v4-core/=lib/v4-periphery/lib/v4-core/src/\",\":v4-periphery/=lib/v4-periphery/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100\",\"dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037\",\"dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d\",\"dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol\":{\"keccak256\":\"0xd735962e3d6660884153ba8a972b5f100dde4c482f2ff1c525ba7fdefb154cbd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5a264d17b093f585844b0d977e9f60555b8c8d6513b304fde863cdf652a0d336\",\"dweb:/ipfs/QmWXfaJisjVnrjTUjZGryZpMob9wKivvtbodLS3PTc1ttq\"]},\"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x1b88b3fb3d85ba5496d7d5f396f83ee1fddcdd6762059ff65992655b67920998\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://89393bb3212da1c0889601b9706a07b39419ddc4d2faab9eaf6e7f9152cf6a1c\",\"dweb:/ipfs/QmcCfzzxv1Bkdz1c1yF4gQCeYb6Us5BJANnzTFqawfd1HL\"]},\"lib/openzeppelin-contracts/contracts/proxy/Clones.sol\":{\"keccak256\":\"0x5a1847c0c6b92d60711f04cba9eaff572ae1f657cff1b8ca4ba065bcdbd68d8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://403f015277242179edf64150e044b4a18f6ee2cc5edaf6b067a7791545732ed9\",\"dweb:/ipfs/QmYoLCcvqZDofK8ZcvbQcv3Wj5HHku7nF8Y3pXx2efawJb\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0x669464167428061ee0f8618b73b3ee90aff8405683e7ddde8cd77dadaa1afe29\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0dda78587a7358b4fdf6b9fca0fde5a5e34930f36d5268a16028627fc0170195\",\"dweb:/ipfs/QmQ1b6cCceDRWNxti9HifsTCzmVP25Haxs1bWugm52vTqH\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0xd6fa4088198f04eef10c5bce8a2f4d60554b7ec4b987f684393c01bf79b94d9f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f95ee0bbd4dd3ac730d066ba3e785ded4565e890dbec2fa7d3b9fe3bad9d0d6e\",\"dweb:/ipfs/QmSLr6bHkPFWT7ntj34jmwfyskpwo97T9jZUrk5sz3sdtR\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x318ea37780610ca7808852275651885d428669402b81488cb7434fde361e9704\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4aad80ad93cedad85619900fd7c2084c4d2f4b28f1dbda27e491c5f4fd31025d\",\"dweb:/ipfs/QmUyXtX7FUi2u1W5fs7ufka9XkRVb5ss2menQHTsrsSmqZ\"]},\"lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]},\"lib/openzeppelin-contracts/contracts/utils/Create2.sol\":{\"keccak256\":\"0xe06ddfff69f3ba154d92102d9a85db2780e045303a587360cf12195216e851ca\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ac19cc390a227758c239c06d3a11d0a2c40c8f58eabb034154b661269d4a0851\",\"dweb:/ipfs/QmdSsfYsPX5RyAXSfHRvR5zdY9MffAgZVa3vdxQUypFBa5\"]},\"lib/openzeppelin-contracts/contracts/utils/Errors.sol\":{\"keccak256\":\"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf\",\"dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB\"]},\"lib/openzeppelin-contracts/contracts/utils/LowLevelCall.sol\":{\"keccak256\":\"0x6ba3db1346fc75a832aa6cd075e12f6f1fa172fa2122a020f324c319fe5be75e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ab92e9e1cb08144c43fa3a383a87c48f49a652d51156950b928c2a50bee6b3a5\",\"dweb:/ipfs/QmWeKkKZBgLDKgRFGKCzsKybYF7C8g9ysg5kU1b1p7QFBi\"]},\"lib/openzeppelin-contracts/contracts/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]},\"lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0xd82c88ac9354d3086f0c1b70a333b8fcf130b06afc7c16da0b736647a21e7da3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4f483b884d6b15294e5a7b85c0750f6f638c6be5ef9451dba88854d864f402a5\",\"dweb:/ipfs/QmZxsiG5J8Xo62AqbzZnMaRU2cuFyHx44bL39ePfzqnX7A\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol\":{\"keccak256\":\"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1\",\"dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol\":{\"keccak256\":\"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8\",\"dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol\":{\"keccak256\":\"0xc131ffa2d04c10a012fe715fe2c115811526b7ea34285cf0a04ce7ce8320da8d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3b212358897db5d99c21244d88f97b2e788527552cb430629b472a8cc6289aec\",\"dweb:/ipfs/QmQtwV4dDe2RYk2ErLpaAX7U82jWh1L6Lw2HRuKDvBi84G\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol\":{\"keccak256\":\"0xbdab3544da3d32dfdf7457baa94e17d5a3012952428559e013ffac45d067038e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce95ff864468e37c76adf71df061d4f3d6f3a5ec1f9bc3aea090463bc72798f4\",\"dweb:/ipfs/QmSbWh1pLbz51yQF4HEu5NRhr8XVv9JYGEw1hq1HudAnCi\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol\":{\"keccak256\":\"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d\",\"dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol\":{\"keccak256\":\"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de\",\"dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol\":{\"keccak256\":\"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f\",\"dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol\":{\"keccak256\":\"0x51b9be4f5c4fd3e80cbc9631a65244a2eb2be250b6b7f128a2035080e18aee8d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fe98bbd5498e912146b9319827fc63621eb66ff55d5baae0fa02a7a972ab8d1e\",\"dweb:/ipfs/QmY5hCuyrtgsJtk4AavrxcvBkRrChfr4N6ZnhdC8roPpNi\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol\":{\"keccak256\":\"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd\",\"dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol\":{\"keccak256\":\"0xef5c3fd41aee26bb12aa1c32873cfee88e67eddfe7c2b32283786265ac669741\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4de298d02f662a1c36c7be0a150f18c2a161408a5d3e48432e707efd01fac9a4\",\"dweb:/ipfs/QmSiM4oeMmLVKmAtJXz2feYkv4R9ZcyBpkTRW5Nhw5KDyJ\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/FullMath.sol\":{\"keccak256\":\"0x4fc73a00817193fd3cac1cc03d8167d21af97d75f1815a070ee31a90c702b4c2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c3b2d66d36b1ad56b1ab6e2eb8a816740877b40b461c93f125e88621c8378e52\",\"dweb:/ipfs/QmPGvMZzKQvNiWKd8aRzzdW7oAizwrMgcMtnaworDkVHFC\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol\":{\"keccak256\":\"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59\",\"dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol\":{\"keccak256\":\"0x4e1a11e154eb06106cb1c4598f06cca5f5ca16eaa33494ba2f0e74981123eca8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a79a57f7b240783b045168d1c4f774ac1812caf8f9a83cb6959a86b0b07b6c70\",\"dweb:/ipfs/QmTb5kvxwDNW8jDuQaqdJ445cCFejNkUqEB17Bjo8UBiva\"]},\"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol\":{\"keccak256\":\"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9\",\"dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H\"]},\"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol\":{\"keccak256\":\"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782\",\"dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K\"]},\"lib/v4-periphery/lib/v4-core/src/types/Currency.sol\":{\"keccak256\":\"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01\",\"dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol\":{\"keccak256\":\"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918\",\"dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol\":{\"keccak256\":\"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639\",\"dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol\":{\"keccak256\":\"0x7a1a107fc1f2208abb2c9364c8c54e56e98dca27673e9441bed2b949b6382162\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ad2470383bc5595d5af17840c64971f457adac68895a4db41ba5c71a4478e07\",\"dweb:/ipfs/QmdwKhBHDZFuqXrR2BfDBD9r7rB2ULGQBznsajRTkTmL4c\"]},\"lib/v4-periphery/src/libraries/ActionConstants.sol\":{\"keccak256\":\"0x3d6f0e5b4a7b1e60bad93e73dce5db67fb66bebef11c31ed8355014a79aa03b3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6dfa42e24b1b5c7f66e75304ab034fbb6768518eb2410ccfff8b3defdd1658f2\",\"dweb:/ipfs/QmQQ7fud9mmv7PEWPAQiNzeZhNkWf28Z6nCHc2e6WJFfa7\"]},\"lib/v4-periphery/src/libraries/Actions.sol\":{\"keccak256\":\"0xaeeaf62b8dbfe5b0f6ebbea891622f6ca15df8ba8b82a37cc9394df69a7ef975\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5dc7bdaf9420c5dcc4ea43b0201068dd467f242e5dc4e4f8c8e234df08ff4f41\",\"dweb:/ipfs/QmbpLmepau8dmtCRx56iPiB47gXHBPHY8Vjh4e3d1aH5Hu\"]},\"lib/v4-periphery/src/libraries/LiquidityAmounts.sol\":{\"keccak256\":\"0xc1ed6daa98eee0330327cf8b98ded5172f904a0db107258f9ce571144803773d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://32285a7dd49dbc48e89157e6d064fbbe292de673baf7b00776f2d86fb8484e00\",\"dweb:/ipfs/QmQLmrc9KrTofxYzgmpqKfXEY351RzQAVKs1t3HTVWQdP5\"]},\"src/LaunchpadFactory.sol\":{\"keccak256\":\"0xf6c69aa10495d542e1fc471f088085a9e6f32b2b73acaf005e1605019780093c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://818e3ed12ffdaa5ee94962f792d0f156ed9032e3f8dff976476b40865a927df3\",\"dweb:/ipfs/QmWd4U5SC5q5W1roECWECgw3v5fbW1LWj6mhdPUMC96WRk\"]},\"src/LaunchpadToken.sol\":{\"keccak256\":\"0xd681f31b061a470ae79d260850283bf59a4d7e169d1f9281292e99924ebc0c29\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://af04206e6406fdf8ea41489bad59951a5bf11cde7e8fff8fa631e22603a61c07\",\"dweb:/ipfs/QmdTqJNUNaRYXuGtzz2SBUovkXHboYJe7wstcFXLALTBgh\"]},\"src/interfaces/ILaunchpadFactory.sol\":{\"keccak256\":\"0x180b4ea32c8e13f595bb870fd91b76d81d5640809aed2e6b5ab78f6810385efa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d5985a051dbf91227f9d73ad92361b304e69928403464afeae781d8706a35f48\",\"dweb:/ipfs/QmTrFz8cUNfEXQBYoYhkMYS31vfbQR943XF5JAPajSUnG6\"]},\"src/interfaces/ISocialTradingApp.sol\":{\"keccak256\":\"0x6284c812bb9eca7dcd9da6e26484d481fd7d9b04fb92e482345070863f37edf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fbf4c5b48fee51837e49a47a17ef37386dd974e463229018d6df62f919cc5937\",\"dweb:/ipfs/QmV8oUq4hYwB4zHM8GRhXTm6SLTyveh7pFnopfyrdcVSBq\"]}},\"version\":1}","userdoc":{"kind":"user","notice":"Permissionless launchpad. Anyone can deploy a token that is paired against the         company's tokenized stock, with liquidity locked forever, in one transaction.","methods":{"genesisUsed()":{"notice":"True once the genesis slot has been used. One-way; every later launch is standard."},"LAUNCH_SUPPLY()":{"notice":"Every launch mints exactly this. Fixed, so no caller can choose it."},"genesisCreator()":{"notice":"The only address whose launch may use `genesisFdvInStock`, and only once."},"dividendSweeper()":{"notice":"Passed to every launched token as the address that may sweep stale dividends."},"launchFdvInStock()":{"notice":"Opening fully diluted valuation of every launch, denominated in TokenizedStock."},"poolKeyOf(address)":{"notice":"The full v4 PoolKey for a launched token's pool."},"genesisFdvInStock()":{"notice":"Opening valuation for the genesis launch only, in TokenizedStock."},"MAX_BLINK_DURATION()":{"notice":"A blink cannot outlive this. Restrictions are a launch mechanic, not a regime."},"tokenImplementation()":{"notice":"The EIP-1167 implementation every launched token is a minimal proxy of."},"createToken(string,string)":{"notice":"Launch a token paired against the tokenized stock, liquidity locked forever."},"getTokensRange(uint256,uint256)":{"notice":"Page through the registry without loading all of it."},"createTokenWithBlink(string,string,uint256,address[])":{"notice":"Launch with a blink window: for `blinkDuration` seconds only wallets vouched         for by one of `whitelistedApps` may buy, and no wallet may buy more than 2%         of supply. Selling is unrestricted throughout. Everything lifts on its own."}},"version":1},"devdoc":{"kind":"dev","title":"LaunchpadFactory","errors":{"FailedDeployment()":[{"details":"The deployment failed."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"InsufficientBalance(uint256,uint256)":[{"details":"The ETH balance of the account is not enough to perform the operation."}]},"events":{"TokenLaunched(address,address,bytes32,uint256,string,string,uint256,uint64,uint256)":{"params":{"token":"The freshly cloned ERC-20.","poolId":"Uniswap v4 pool id for token/TokenizedStock. v4 pools are entries in                  the PoolManager singleton, not contracts, so there is no pool address                  to emit; `poolManager()` on this factory is the contract that holds                  every pool's reserves.","lpTokenId":"The position NFT that was burned to 0xdead."}}},"details":"No owner. No admin. No pause. No parameter is settable after construction and no      token can ever be removed from the registry. The factory custodies nothing once a      launch returns: the whole supply goes into the pool, the LP NFT goes to 0xdead,      and any rounding dust goes to 0xdead too.      HOW LIQUIDITY IS SEEDED. The launch is single-sided: 100% of the new token, zero      stock. In Uniswap v4 that means opening the pool at the very edge of the position's      range, so the whole position is denominated in the launch token and the first buyer      walks the price up from there — a bonding curve, not a pre-priced pool. Which edge      depends on currency ordering, which in turn depends on how the cloned token's      address sorts against the stock's; `_rangeFor` handles both cases.      ON \"POOL ADDRESS\". Uniswap v4 is a singleton: pools are not contracts. There is no      per-pool address to return, so the registry stores the `PoolId` and the full      `PoolKey`. `poolManager` is the address that actually custodies every pool's      reserves.","methods":{"createToken(string,string)":{"details":"Supply is fixed at `LAUNCH_SUPPLY` for every token; only the metadata varies."}},"version":1,"stateVariables":{"LAUNCH_SUPPLY":{"details":"Because the opening tick is derived from the valuation rather than hardcoded, a      fixed supply costs nothing in flexibility and buys a lot in legibility: every      token on the platform has the same supply, so a holder's balance means the same      thing everywhere and price comparisons across launches are direct."},"launchFdvInStock":{"details":"Denominated in stock rather than dollars on purpose. A dollar target would need a      price oracle, which would make the factory depend on something that can be changed      or fail; this way the factory stays immutable and oracle-free, and the launch      valuation simply tracks the share price. If the stock doubles, every new token      opens at twice the dollar valuation, with no transaction and nothing to update.      The opening tick is derived from this and the token's own supply, so a 1e6-supply      launch and a 1e12-supply launch both open at the same valuation. A single hardcoded      tick would not: it would put those two launches six orders of magnitude apart."},"genesisFdvInStock":{"details":"The flagship token opens far above the standard launch — a deliberate signal that      it is not one of the crowd. It is not a privilege in any extractive sense: 100% of      supply still goes into the pool single-sided, the creator still receives no      premine, and a higher opening price is strictly worse for whoever buys it. What the      reservation actually protects is which token gets the slot."}}},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_int24":{"label":"int24","encoding":"inplace","numberOfBytes":"3"},"t_uint24":{"label":"uint24","encoding":"inplace","numberOfBytes":"3"},"t_uint64":{"label":"uint64","encoding":"inplace","numberOfBytes":"8"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_contract(IHooks)5789":{"label":"contract IHooks","encoding":"inplace","numberOfBytes":"20"},"t_array(t_address)dyn_storage":{"base":"t_address","label":"address[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_struct(PoolKey)7951_storage":{"label":"struct PoolKey","members":[{"slot":"0","type":"t_userDefinedValueType(Currency)7605","astId":7936,"label":"currency0","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_userDefinedValueType(Currency)7605","astId":7940,"label":"currency1","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_uint24","astId":7943,"label":"fee","offset":20,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_int24","astId":7946,"label":"tickSpacing","offset":23,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"2","type":"t_contract(IHooks)5789","astId":7950,"label":"hooks","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"}],"encoding":"inplace","numberOfBytes":"96"},"t_struct(TokenInfo)10669_storage":{"label":"struct ILaunchpadFactory.TokenInfo","members":[{"slot":"0","type":"t_address","astId":10652,"label":"token","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_address","astId":10654,"label":"creator","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"2","type":"t_string_storage","astId":10656,"label":"name","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"3","type":"t_string_storage","astId":10658,"label":"symbol","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"4","type":"t_uint256","astId":10660,"label":"supply","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"5","type":"t_bytes32","astId":10662,"label":"poolId","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"6","type":"t_uint256","astId":10664,"label":"lpTokenId","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"7","type":"t_uint64","astId":10666,"label":"launchedAt","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"7","type":"t_uint64","astId":10668,"label":"blinkEnd","offset":8,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"}],"encoding":"inplace","numberOfBytes":"256"},"t_userDefinedValueType(Currency)7605":{"label":"Currency","encoding":"inplace","numberOfBytes":"20"},"t_mapping(t_address,t_array(t_address)dyn_storage)":{"key":"t_address","label":"mapping(address => address[])","value":"t_array(t_address)dyn_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(PoolKey)7951_storage)":{"key":"t_address","label":"mapping(address => struct PoolKey)","value":"t_struct(PoolKey)7951_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(TokenInfo)10669_storage)":{"key":"t_address","label":"mapping(address => struct ILaunchpadFactory.TokenInfo)","value":"t_struct(TokenInfo)10669_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_bool","astId":8418,"label":"genesisUsed","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"1","type":"t_mapping(t_address,t_struct(TokenInfo)10669_storage)","astId":8426,"label":"_tokenInfo","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"2","type":"t_mapping(t_address,t_struct(PoolKey)7951_storage)","astId":8431,"label":"_poolKeys","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"3","type":"t_mapping(t_address,t_array(t_address)dyn_storage)","astId":8436,"label":"_tokensByCreator","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"},{"slot":"4","type":"t_array(t_address)dyn_storage","astId":8439,"label":"_allTokens","offset":0,"contract":"src/LaunchpadFactory.sol:LaunchpadFactory"}]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"610200604052348015610010575f80fd5b50604051614fed380380614fed83398101604081905261002f916101ca565b6001600160a01b038b16158061004c57506001600160a01b038a16155b8061005e57506001600160a01b038916155b8061007057506001600160a01b038816155b8061008257506001600160a01b038716155b156100a05760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03808c166080528a811660a05289811660c05288811660e0528716610100528315806100d1575082155b156100ef57604051636440abcf60e11b815260040160405180910390fd5b6001600160a01b038216158061010c57506001600160a01b038116155b1561012a5760405163d92e233d60e01b815260040160405180910390fd5b62ffffff861661012052600285900b610140526101808490526101a08390526001600160a01b038083166101c05281166101605260405161016a906101a2565b604051809103905ff080158015610183573d5f803e3d5ffd5b506001600160a01b03166101e052506102949950505050505050505050565b611df4806131f983390190565b80516001600160a01b03811681146101c5575f80fd5b919050565b5f805f805f805f805f805f6101608c8e0312156101e5575f80fd5b6101ee8c6101af565b9a506101fc60208d016101af565b995061020a60408d016101af565b985061021860608d016101af565b975061022660808d016101af565b965060a08c015162ffffff8116811461023d575f80fd5b8096505060c08c01518060020b8114610254575f80fd5b60e08d01516101008e0151919650945092506102736101208d016101af565b91506102826101408d016101af565b90509295989b509295989b9093969950565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e051612e486103b15f395f81816102b40152610c2701525f818161053a0152610b9501525f81816103420152610bcb01525f81816102020152610b5f01525f81816102490152610d5101525f818161046601528181610f3301526115b201525f818161038f0152610f0801525f81816102db015281816103f60152610f5c01525f818161049d015261051301525f81816103d201528181610fab015281816119b601528181611b5d01528181611bdf0152611c9b01525f81816104d90152610d0101525f81816103660152818161043f01528181610d2901528181610e5001528181610e970152610ed80152612e485ff3fe608060405234801561000f575f80fd5b50600436106101bb575f3560e01c80635a6c72d0116100f3578063c415b95c11610093578063df517ddf1161006e578063df517ddf146104fb578063f108e2251461050e578063f700f06e14610535578063fb1ace181461055c575f80fd5b8063c415b95c1461049b578063d5c71275146104c1578063dc4c90d3146104d4575f80fd5b80637f5a7c7b116100ce5780637f5a7c7b146103f45780638652edf91461041a578063bdf3c4ae1461043a578063bf11b4d514610461575f80fd5b80635a6c72d01461038a57806378a89567146103c5578063791b98bc146103cd575f80fd5b80632f2f2d561161015e5780634690b68d116101395780634690b68d146102fd57806347868b32146103105780634aa445341461033d5780634eec9e0914610364575f80fd5b80632f2f2d561461029c5780632f3a3d5d146102af57806332a3cf96146102d6575f80fd5b80631f69565f116101995780631f69565f14610224578063223a980b1461024457806325637fd61461026b5780632a5c792a14610287575f80fd5b806303bdd5cf146101bf57806303fd2a45146101dc57806311b1868f146101fd575b5f80fd5b6101c962093a8081565b6040519081526020015b60405180910390f35b6101e561dead81565b6040516001600160a01b0390911681526020016101d3565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b61023761023236600461253d565b61056f565b6040516101d39190612591565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b5f546102779060ff1681565b60405190151581526020016101d3565b61028f61078d565b6040516101d3919061265a565b6101e56102aa3660046126e9565b6107ed565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b61028f61030b366004612753565b61082f565b61027761031e36600461253d565b6001600160a01b039081165f9081526001602052604090205416151590565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6103b17f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff90911681526020016101d3565b6004546101c9565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61042d61042836600461253d565b61092b565b6040516101d391906127b6565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6104887f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b81526020016101d3565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61028f6104cf36600461253d565b6109ff565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e56105093660046127c4565b610a72565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101c96b033b2e3c9fd0803ce800000081565b6040805161012080820183525f80835260208084018290526060848601819052808501526080840182905260a0840182905260c0840182905260e0840182905261010084018290526001600160a01b038681168352600180835292869020865194850187528054821685529283015416908301526002810180549394929391928401916105fb9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106279061289a565b80156106725780601f1061064957610100808354040283529160200191610672565b820191905f5260205f20905b81548152906001019060200180831161065557829003601f168201915b5050505050815260200160038201805461068b9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106b79061289a565b80156107025780601f106106d957610100808354040283529160200191610702565b820191905f5260205f20905b8154815290600101906020018083116106e557829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460608201526007909101546001600160401b038082166080840152600160401b9091041660a09091015280519091506001600160a01b0316610788576040516340d1d8df60e11b81526001600160a01b03831660048201526024015b60405180910390fd5b919050565b606060048054806020026020016040519081016040528092919081815260200182805480156107e357602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107c5575b5050505050905090565b5f610826858585858580604051908082528060200260200182016040528015610820578160200160208202803683370190505b50610b19565b95945050505050565b6004546060908284118061084257508083115b1561086a57604051632457cde760e01b8152600481018590526024810182905260440161077f565b61087484846128fa565b6001600160401b0381111561088b5761088b6128d2565b6040519080825280602002602001820160405280156108b4578160200160208202803683370190505b509150835b8381101561092357600481815481106108d4576108d461290d565b5f918252602090912001546001600160a01b0316836108f387846128fa565b815181106109035761090361290d565b6001600160a01b03909216602092830291909101909101526001016108b9565b505092915050565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506001600160a01b038082165f90815260026020818152604092839020835160a0810185528154861680825260018301548088169483019490945262ffffff600160a01b85041695820195909552600160b81b909204830b60608301529091015490921660808301521580156109d6575060208101516001600160a01b0316155b15610788576040516340d1d8df60e11b81526001600160a01b038316600482015260240161077f565b6001600160a01b0381165f90815260036020908152604091829020805483518184028101840190945280845260609392830182828015610a6657602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a48575b50505050509050919050565b5f831580610a82575062093a8084115b15610aac57604051630f4a61d160e31b81526004810185905262093a80602482015260440161077f565b5f829003610acd5760405163d302698f60e01b815260040160405180910390fd5b610b0d88888888888888808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610b1992505050565b98975050505050505050565b5f858103610b3a57604051632ef1310560e01b815260040160405180910390fd5b5f849003610b5b57604051630cc613fb60e11b815260040160405180910390fd5b5f547f00000000000000000000000000000000000000000000000000000000000000009060ff16158015610bb75750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b15610beb57505f805460ff191660011790557f00000000000000000000000000000000000000000000000000000000000000005b6004546040515f91610c0a913391908c908c908c908c90602001612949565b604051602081830303815290604052805190602001209050610c4c7f000000000000000000000000000000000000000000000000000000000000000082610dfd565b9250826001600160a01b031663277b806d6040518061012001604052808c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c90819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce80000006020820152336040808301919091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660608401527f0000000000000000000000000000000000000000000000000000000000000000811660808401527f00000000000000000000000000000000000000000000000000000000000000001660a083015260c082018a905260e0918201899052519083901b6001600160e01b0319168152610da391906004016129c6565b5f604051808303815f87803b158015610dba575f80fd5b505af1158015610dcc573d5f803e3d5ffd5b505050505f80610ddc8585610e12565b91509150610def858c8c8c8c8787611085565b505050509695505050505050565b5f610e0983835f611511565b90505b92915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525f806b033b2e3c9fd0803ce800000090505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161090506040518060a0016040528082610ebb577f0000000000000000000000000000000000000000000000000000000000000000610ebd565b875b6001600160a01b0316815260200182610ed65787610ef8565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b031681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000060020b81526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681525093505f805f610f9684896115ad565b91945092509050627fffff6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f702040589610fda85611680565b6040518363ffffffff1660e01b8152600401610ff7929190612a8f565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110379190612ab5565b60020b0361105857604051633b47c30b60e21b815260040160405180910390fd5b5f61106585858589611938565b90506110768a878a8787868b6119a6565b96505050505050509250929050565b5f604051806101200160405280896001600160a01b03168152602001336001600160a01b0316815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8901819004810282018101909252878152918101919088908890819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce800000060208201526040016111428560a0902090565b8152602001838152602001426001600160401b03168152602001896001600160a01b0316631dec7ed56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111bc9190612ad5565b6001600160401b031681525090508260025f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160146101000a81548162ffffff021916908362ffffff16021790555060608201518160010160176101000a81548162ffffff021916908360020b62ffffff1602179055506080820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050508060015f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201908161134f9190612b46565b50606082015160038201906113649082612b46565b506080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015f6101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160070160086101000a8154816001600160401b0302191690836001600160401b03160217905550905050600488908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555060035f336001600160a01b03166001600160a01b031681526020019081526020015f2088908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055508060a0015181602001516001600160a01b0316825f01516001600160a01b03167f11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df8460c001518560400151866060015187608001518861010001518960e001516040516114ff96959493929190612c00565b60405180910390a45050505050505050565b5f8147101561153c5760405163cf47918160e01b81524760048201526024810183905260440161077f565b763d602d80600a3d3981f3363d3d373d3d3d363d730000008460601b60e81c175f526e5af43d82803e903d91602b57fd5bf38460781b17602052826037600984f590506001600160a01b0381166115a65760405163b06ebf3d60e01b815260040160405180910390fd5b9392505050565b5f80807f0000000000000000000000000000000000000000000000000000000000000000816115e0620d89e71983611d90565b9050620d89e719600282900b12156115ff576115fc8282612c53565b90505b5f61160d620d89e884611d90565b90505f61161a8989611de3565b905088156116395761162c8185611d90565b965081955086945061164c565b8296506116468185611e84565b95508594505b8560020b8760020b126116755760405163bd7e0d4360e01b81526004810189905260240161077f565b505050509250925092565b60020b5f60ff82901d80830118620d89e88111156116a9576116a96345c3193d60e11b84611eae565b7001fffcb933bd6fad37aa2d162d1a5940016001821602600160801b1860028216156116e5576ffff97272373d413259a46990580e213a0260801c5b6004821615611704576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615611723576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615611742576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615611761576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615611780576fff2ea16466c96a3843ec78b326b528610260801c5b608082161561179f576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156117bf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156117df576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156117ff576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161561181f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b61100082161561183f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b61200082161561185f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b61400082161561187f576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161561189f576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156118c0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b620200008216156118e0576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156118ff576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561191c576b048a170391f7dc42444e8fa20260801c5b5f841315611928575f19045b63ffffffff0160201c9392505050565b5f8061194385611680565b90505f61194f85611680565b90508661196657611961828286611ebd565b611971565b611971828286611efe565b9250826001600160801b03165f0361199c5760405163f564880560e01b815260040160405180910390fd5b5050949350505050565b5f6119db6001600160a01b0389167f000000000000000000000000000000000000000000000000000000000000000089611f5a565b604051600160f91b6020820152600b60f81b6021820152600560fa1b60228201525f9060230160408051808303601f1901815260038084526080840190925292505f9190816020015b6060815260200190600190039081611a24579050509050878787876001600160801b031687611a53575f611a55565b8c5b88611a60578d611a62565b5f5b60408051602080820183525f82529151611a859897969594939230929101612c78565b604051602081830303815290604052815f81518110611aa657611aa661290d565b602090810291909101810191909152604080516001600160a01b038d16928101929092525f908201819052606082015260800160405160208183030381529060405281600181518110611afb57611afb61290d565b60200260200101819052508930604051602001611b2e9291906001600160a01b0392831681529116602082015260400190565b60405160208183030381529060405281600281518110611b5057611b5061290d565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612cef565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dd46508f8383604051602001611c1f929190612d06565b604051602081830303815290604052426040518363ffffffff1660e01b8152600401611c4c929190612d7b565b5f604051808303815f87803b158015611c63575f80fd5b505af1158015611c75573d5f803e3d5ffd5b50506040516323b872dd60e01b815230600482015261dead6024820152604481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506323b872dd91506064015f604051808303815f87803b158015611ce6575f80fd5b505af1158015611cf8573d5f803e3d5ffd5b50506040516370a0823160e01b81523060048201525f92506001600160a01b038d1691506370a0823190602401602060405180830381865afa158015611d40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d649190612cef565b90508015611d8257611d826001600160a01b038c1661dead83611f5a565b505050979650505050505050565b5f80611d9c8385612db0565b90505f8460020b128015611dc05750600284900b611dba8483612df4565b60020b14155b15611dd157611dce81612e1a565b90505b611ddb8382612df4565b949350505050565b5f8083611e0a57611e056b033b2e3c9fd0803ce8000000600160c01b85611f94565b611e25565b611e2583600160c01b6b033b2e3c9fd0803ce8000000611f94565b90505f611e3182612030565b90506401000276a3811080611e5a575073fffd8963efd1fc6a506488495d951d5263988d268110155b15611e7b5760405163bd7e0d4360e01b81526004810185905260240161077f565b61082681612183565b5f80611e908484611d90565b90508360020b8160020b146115a657611ea98382612c53565b611ddb565b815f528060020b60045260245ffd5b5f826001600160a01b0316846001600160a01b03161115611edc579192915b611ddb611ef983600160601b8787036001600160a01b0316611f94565b612413565b5f826001600160a01b0316846001600160a01b03161115611f1d579192915b5f611f3f856001600160a01b0316856001600160a01b0316600160601b611f94565b9050610826611ef984838888036001600160a01b0316611f94565b611f678383836001612434565b611f8f57604051635274afe760e01b81526001600160a01b038416600482015260240161077f565b505050565b5f838302815f1985870982811083820303915050808411611fb3575f80fd5b805f03611fc5575082900490506115a6565b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f6001821161203d575090565b816001600160801b82106120565760809190911c9060401b5b600160401b821061206c5760409190911c9060201b5b64010000000082106120835760209190911c9060101b5b6201000082106120985760109190911c9060081b5b61010082106120ac5760089190911c9060041b5b601082106120bf5760049190911c9060021b5b600482106120cb5760011b5b600302600190811c908185816120e3576120e3612d9c565b048201901c905060018185816120fb576120fb612d9c565b048201901c9050600181858161211357612113612d9c565b048201901c9050600181858161212b5761212b612d9c565b048201901c9050600181858161214357612143612d9c565b048201901c9050600181858161215b5761215b612d9c565b048201901c905061217a81858161217457612174612d9c565b04821190565b90039392505050565b5f73fffd8963efd1fc6a506488495d951d51639616826401000276a21983016001600160a01b031611156121c2576121c26318521d4960e21b83612496565b640100000000600160c01b03602083901b16805f6121df826124ab565b60ff169050608081106121fa57607f810383901c9150612204565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461240457886001600160a01b03166123e982611680565b6001600160a01b031611156123fe5781612406565b80612406565b815b9998505050505050505050565b806001600160801b0381168114610788576107886393dafdf160e01b612535565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661248a57838315161561247e573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b815f526001600160a01b03811660045260245ffd5b5f8082116124b7575f80fd5b507f0706060506020500060203020504000106050205030304010505030400000000601f6f8421084210842108cc6318c6db6d54be6001600160801b03841160071b84811c6001600160401b031060061b1784811c63ffffffff1060051b1784811c61ffff1060041b1784811c60ff1060031b1793841c1c161a1790565b805f5260045ffd5b5f6020828403121561254d575f80fd5b81356001600160a01b03811681146115a6575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526125ab6020820183516001600160a01b03169052565b5f60208301516125c660408401826001600160a01b03169052565b50604083015161012060608401526125e2610140840182612563565b90506060840151601f198483030160808501526125ff8282612563565b915050608084015160a084015260a084015160c084015260c084015160e084015260e084015161263b6101008501826001600160401b03169052565b506101008401516001600160401b038116610120850152509392505050565b602080825282518282018190525f918401906040840190835b8181101561269a5783516001600160a01b0316835260209384019390920191600101612673565b509095945050505050565b5f8083601f8401126126b5575f80fd5b5081356001600160401b038111156126cb575f80fd5b6020830191508360208285010111156126e2575f80fd5b9250929050565b5f805f80604085870312156126fc575f80fd5b84356001600160401b03811115612711575f80fd5b61271d878288016126a5565b90955093505060208501356001600160401b0381111561273b575f80fd5b612747878288016126a5565b95989497509550505050565b5f8060408385031215612764575f80fd5b50508035926020909101359150565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610e0c8284612773565b5f805f805f805f6080888a0312156127da575f80fd5b87356001600160401b038111156127ef575f80fd5b6127fb8a828b016126a5565b90985096505060208801356001600160401b03811115612819575f80fd5b6128258a828b016126a5565b9096509450506040880135925060608801356001600160401b0381111561284a575f80fd5b8801601f81018a1361285a575f80fd5b80356001600160401b0381111561286f575f80fd5b8a60208260051b8401011115612883575f80fd5b602082019350809250505092959891949750929550565b600181811c908216806128ae57607f821691505b6020821081036128cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610e0c57610e0c6128e6565b634e487b7160e01b5f52603260045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0387168152856020820152608060408201525f612970608083018688612921565b8281036060840152612406818587612921565b5f8151808452602084019350602083015f5b828110156129bc5781516001600160a01b0316865260209586019590910190600101612995565b5093949350505050565b602081525f825161012060208401526129e3610140840182612563565b90506020840151601f19848303016040850152612a008282612563565b915050604084015160608401526060840151612a2760808501826001600160a01b03169052565b5060808401516001600160a01b03811660a08501525060a08401516001600160a01b03811660c08501525060c08401516001600160a01b03811660e08501525060e0840151610100840152610100840151601f19848303016101208501526108268282612983565b60c08101612a9d8285612773565b6001600160a01b039290921660a09190910152919050565b5f60208284031215612ac5575f80fd5b81518060020b81146115a6575f80fd5b5f60208284031215612ae5575f80fd5b81516001600160401b03811681146115a6575f80fd5b601f821115611f8f57805f5260205f20601f840160051c81016020851015612b205750805b601f840160051c820191505b81811015612b3f575f8155600101612b2c565b5050505050565b81516001600160401b03811115612b5f57612b5f6128d2565b612b7381612b6d845461289a565b84612afb565b6020601f821160018114612ba5575f8315612b8e5750848201515b5f19600385901b1c1916600184901b178455612b3f565b5f84815260208120601f198516915b82811015612bd45787850151825560209485019460019092019101612bb4565b5084821015612bf157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b86815260c060208201525f612c1860c0830188612563565b8281036040840152612c2a8188612563565b606084019690965250506001600160401b039283166080820152911660a0909101529392505050565b600281810b9083900b01627fffff8113627fffff1982121715610e0c57610e0c6128e6565b612c82818a612773565b8760020b60a08201528660020b60c08201528560e08201526001600160801b0385166101008201526001600160801b03841661012082015260018060a01b0383166101408201526101806101608201525f612ce1610180830184612563565b9a9950505050505050505050565b5f60208284031215612cff575f80fd5b5051919050565b604081525f612d186040830185612563565b828103602084015280845180835260208301915060208160051b840101602087015f5b83811015612d6d57601f19868403018552612d57838351612563565b6020958601959093509190910190600101612d3b565b509098975050505050505050565b604081525f612d8d6040830185612563565b90508260208301529392505050565b634e487b7160e01b5f52601260045260245ffd5b5f8160020b8360020b80612dd257634e487b7160e01b5f52601260045260245ffd5b627fffff1982145f1982141615612deb57612deb6128e6565b90059392505050565b5f8260020b8260020b028060020b9150808214612e1357612e136128e6565b5092915050565b5f8160020b627fffff198103612e3257612e326128e6565b5f19019291505056fea164736f6c634300081a000a608060405234801561000f575f80fd5b5060408051602080820183525f808352835191820190935291825290600361003783826100f1565b50600461004482826100f1565b50506018805460ff19166001179055506101ab565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061008157607f821691505b60208210810361009f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156100ec57805f5260205f20601f840160051c810160208510156100ca5750805b601f840160051c820191505b818110156100e9575f81556001016100d6565b50505b505050565b81516001600160401b0381111561010a5761010a610059565b61011e81610118845461006d565b846100a5565b6020601f821160018114610150575f83156101395750848201515b5f19600385901b1c1916600184901b1784556100e9565b5f84815260208120601f198516915b8281101561017f578785015182556020948501946001909201910161015f565b508482101561019c57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b611c3c806101b85f395ff3fe608060405234801561000f575f80fd5b506004361061024a575f3560e01c80634e7b827f11610140578063a8b9d240116100bf578063dd62ed3e11610084578063dd62ed3e14610516578063ddeae0331461054e578063de3aaf6114610561578063e172387f14610580578063f461f6e714610593578063f93bf8c2146105a6575f80fd5b8063a8b9d240146104bc578063a9059cbb146104cf578063b86b0fd0146104e2578063c45a0155146104f0578063dc4c90d314610503575f80fd5b806385a6b3ae1161010557806385a6b3ae1461047c5780639189a59e1461048557806395d89b41146104985780639f13464e146104a0578063a467db7a146104a9575f80fd5b80634e7b827f146103df5780636871e8ba146104015780636a73c4041461041457806370a082311461043f57806381041b8014610467575f80fd5b806323b872dd116101cc5780633243c791116101915780633243c791146103aa5780633757b7b2146103bd5780633c168e43146103c55780634831313b146103ce5780634e71d92d146103d7575f80fd5b806323b872dd1461034d578063277b806d1461036057806327ce0147146103755780632ad7a5c414610388578063313ce5671461039b575f80fd5b8063095ea7b311610212578063095ea7b3146102d35780630d08c74f146102f65780631582358e146102fe57806318160ddd146103115780631dec7ed514610319575f80fd5b806302d05d3f1461024e57806303822d3b1461027e57806303fd2a45146102ab57806306fdde03146102b457806308ccb24f146102c9575b5f80fd5b600854610261906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61029d61028c366004611779565b60126020525f908152604090205481565b604051908152602001610275565b61026161dead81565b6102bc6105c5565b6040516102759190611792565b61029d6228de8081565b6102e66102e13660046117c7565b610655565b6040519015158152602001610275565b6102e661066e565b600a54610261906001600160a01b031681565b60025461029d565b600b5461033490600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610275565b6102e661035b3660046117ef565b6106a9565b61037361036e366004611829565b6106cc565b005b61029d610383366004611779565b61099a565b6102e6610396366004611779565b610a28565b60405160128152602001610275565b6103736103b8366004611861565b610b39565b61029d60c881565b61029d60175481565b61029d60145481565b61029d610c10565b6102e66103ed366004611779565b60136020525f908152604090205460ff1681565b61029d61040f366004611779565b610c1a565b600c54610427906001600160801b031681565b6040516001600160801b039091168152602001610275565b61029d61044d366004611779565b6001600160a01b03165f9081526020819052604090205490565b61046f610c40565b6040516102759190611878565b61029d60155481565b600b54610261906001600160a01b031681565b6102bc610c9f565b61029d60165481565b61029d6104b73660046118c3565b610cae565b61029d6104ca366004611779565b610e71565b6102e66104dd3660046117c7565b610e9c565b61029d66038d7ea4c6800081565b600754610261906001600160a01b031681565b600954610261906001600160a01b031681565b61029d610524366004611934565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61029d61055c366004611779565b610ea9565b61029d61056f366004611779565b60116020525f908152604090205481565b61029d61058e366004611779565b610eb3565b6102e66105a1366004611779565b610f0a565b61029d6105b4366004611779565b600e6020525f908152604090205481565b6060600580546105d490611965565b80601f016020809104026020016040519081016040528092919081815260200182805461060090611965565b801561064b5780601f106106225761010080835404028352916020019161064b565b820191905f5260205f20905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b5f33610662818585610f50565b60019150505b92915050565b600b545f90600160a01b900467ffffffffffffffff16158015906106a45750600b54600160a01b900467ffffffffffffffff1642105b905090565b5f336106b6858285610f62565b6106c1858585610fde565b506001949350505050565b60185460ff16156106ef5760405162dc149f60e41b815260040160405180910390fd5b80604001355f036107135760405163c16f3a9360e01b815260040160405180910390fd5b6018805460ff1916600117905561072a818061199d565b600591610738919083611a46565b50610746602082018261199d565b600691610754919083611a46565b50600780546001600160a01b031916331790556107776080820160608301611779565b600880546001600160a01b0319166001600160a01b03929092169190911790556107a760a0820160808301611779565b600980546001600160a01b0319166001600160a01b03929092169190911790556107d760c0820160a08301611779565b600a80546001600160a01b0319166001600160a01b039290921691909117905561080760e0820160c08301611779565b600b80546001600160a01b0319166001600160a01b0392909216919091179055600160135f61083c60a0850160808601611779565b6001600160a01b0316815260208082019290925260409081015f908120805494151560ff1995861617905533815260139092528082208054841660019081179091557f2264e2d7bacabe6058f5009f42467b9be28015e7760f87409562384c94ac271c80548516821790553083529120805490921617905560e081013515610989576108cc610100820182611b00565b90505f036108ed5760405163d302698f60e01b815260040160405180910390fd5b6108fb60e082013542611b5a565b600b805467ffffffffffffffff92909216600160a01b0267ffffffffffffffff60a01b1990921691909117905561271061093a60c86040840135611b6d565b6109449190611b84565b600c80546fffffffffffffffffffffffffffffffff19166001600160801b039290921691909117905561097b610100820182611b00565b61098791600d916116f2565b505b61099733826040013561103b565b50565b6001600160a01b0381165f9081526013602052604081205460ff16156109c157505f919050565b6001600160a01b0382165f9081526010602090815260408083205491839052822054600f546109f8916109f391611b6d565b611073565b610a029190611ba3565b90505f811315610a1f57610a1a600160601b82611b84565b610a21565b5f5b9392505050565b5f80600d805480602002602001604051908101604052809291908181526020018280548015610a7e57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a60575b505050505090505f5b8151811015610b3057818181518110610aa257610aa2611bca565b6020908102919091010151604051633da1c0c360e01b81526001600160a01b03868116600483015290911690633da1c0c390602401602060405180830381865afa925050508015610b10575060408051601f3d908101601f19168201909252610b0d91810190611bde565b60015b15610b28578015610b2657506001949350505050565b505b600101610a87565b505f9392505050565b805f03610b435750565b60145466038d7ea4c68000811015610b6e5760405163a16645af60e01b815260040160405180910390fd5b600a54610b86906001600160a01b03163330856110a3565b5f81610b96600160601b85611b6d565b610ba09190611b84565b905080600f5f828254610bb39190611b5a565b925050819055508260155f828254610bcb9190611b5a565b9091555050604080518481526020810183905233917fd2f6b4ff9fc44f9f09c0bf947cfb196c17c66213ea2a7d59a42bab3428ccd94e910160405180910390a2505050565b5f6106a4336110d9565b6001600160a01b0381165f90815260126020526040812054610668906228de8090611b5a565b6060600d80548060200260200160405190810160405280929190818152602001828054801561064b57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610c78575050505050905090565b6060600680546105d490611965565b600b545f906001600160a01b03163314610cdb57604051630982ebb360e01b815260040160405180910390fd5b5f5b82811015610e6a575f848483818110610cf857610cf8611bca565b9050602002016020810190610d0d9190611779565b90505f610d1982610e71565b9050805f03610d29575050610e62565b6001600160a01b0382165f908152601260205260409020541580610d545750610d5182610c1a565b42105b15610d925781610d6383610c1a565b6040516302b0d36f60e61b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b6001600160a01b0382165f9081526011602052604081208054839290610db9908490611b5a565b925050819055508060175f828254610dd19190611b5a565b90915550506001600160a01b0382165f908152601260205260409020429055610dfa8185611b5a565b600b54600a54919550610e1a916001600160a01b039081169116836111bb565b600b546040518281526001600160a01b03918216918416907f8fdcb6d96dc9ffee0f7af16253290d5a13adb41861202b8c88c8ab57b1ba76d19060200160405180910390a350505b600101610cdd565b5092915050565b6001600160a01b0381165f90815260116020526040812054610e928361099a565b6106689190611bfd565b5f33610662818585610fde565b5f610668826110d9565b5f610ebc61066e565b610ec857505f19919050565b6001600160a01b0382165f908152600e6020526040902054600c546001600160801b0316811015610a1f57600c54610a1a9082906001600160801b0316611bfd565b6001600160a01b0381165f9081526012602052604081205415801590610f385750610f3482610c1a565b4210155b801561066857505f610f4983610e71565b1192915050565b610f5d83838360016111f0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610fd85781811015610fca57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610d89565b610fd884848484035f6111f0565b50505050565b6001600160a01b03831661100757604051634b637e8f60e11b81525f6004820152602401610d89565b6001600160a01b0382166110305760405163ec442f0560e01b81525f6004820152602401610d89565b610f5d8383836112c2565b6001600160a01b0382166110645760405163ec442f0560e01b81525f6004820152602401610d89565b61106f5f83836112c2565b5050565b5f6001600160ff1b0382111561109f5760405163123baf0360e11b815260048101839052602401610d89565b5090565b6110b18484848460016114fd565b610fd857604051635274afe760e01b81526001600160a01b0385166004820152602401610d89565b5f6110e382610e71565b9050805f03611105576040516312d37ee560e31b815260040160405180910390fd5b6001600160a01b0382165f908152601160205260408120805483929061112c908490611b5a565b925050819055508060165f8282546111449190611b5a565b90915550506001600160a01b038083165f908152601260205260409020429055600a54611173911683836111bb565b816001600160a01b03167f16b8533c95f66ab8c192c98ddcf5031bcb3ee6f4022988bdadd57d3422da3073826040516111ae91815260200190565b60405180910390a2919050565b6111c8838383600161156a565b610f5d57604051635274afe760e01b81526001600160a01b0384166004820152602401610d89565b6001600160a01b0384166112195760405163e602df0560e01b81525f6004820152602401610d89565b6001600160a01b03831661124257604051634a1406b160e11b81525f6004820152602401610d89565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610fd857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112b491815260200190565b60405180910390a350505050565b6009546001600160a01b0384811691161480156112e257506112e261066e565b156113a8576112f082610a28565b611318576040516301dc97db60e51b81526001600160a01b0383166004820152602401610d89565b6001600160a01b0382165f908152600e602052604081205461133b908390611b5a565b600c549091506001600160801b031681111561138f57600c546040516371f270e960e11b81526001600160a01b0385166004820152602481018390526001600160801b039091166044820152606401610d89565b6001600160a01b0383165f908152600e60205260409020555b6113b38383836115cc565b600f546001600160a01b038416158015906113e657506001600160a01b0384165f9081526013602052604090205460ff16155b1561143c578160145f8282546113fc9190611bfd565b9091555061140f90506109f38383611b6d565b6001600160a01b0385165f9081526010602052604081208054909190611436908490611ba3565b90915550505b6001600160a01b0383161580159061146c57506001600160a01b0383165f9081526013602052604090205460ff16155b15610fd8578160145f8282546114829190611b5a565b9091555061149590506109f38383611b6d565b6001600160a01b0384165f90815260106020526040812080549091906114bc908490611c10565b90915550506001600160a01b0383165f908152601260205260408120549003610fd85750506001600160a01b03165f90815260126020526040902042905550565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661155957838315161561154d573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f511483166115c05783831516156115b4573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b6001600160a01b0383166115f6578060025f8282546115eb9190611b5a565b909155506116669050565b6001600160a01b0383165f90815260208190526040902054818110156116485760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610d89565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216611682576002805482900390556116a0565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116e591815260200190565b60405180910390a3505050565b828054828255905f5260205f20908101928215611743579160200282015b828111156117435781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611710565b5061109f9291505b8082111561109f575f815560010161174b565b80356001600160a01b0381168114611774575f80fd5b919050565b5f60208284031215611789575f80fd5b610a218261175e565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f80604083850312156117d8575f80fd5b6117e18361175e565b946020939093013593505050565b5f805f60608486031215611801575f80fd5b61180a8461175e565b92506118186020850161175e565b929592945050506040919091013590565b5f60208284031215611839575f80fd5b813567ffffffffffffffff81111561184f575f80fd5b82016101208185031215610a21575f80fd5b5f60208284031215611871575f80fd5b5035919050565b602080825282518282018190525f918401906040840190835b818110156118b85783516001600160a01b0316835260209384019390920191600101611891565b509095945050505050565b5f80602083850312156118d4575f80fd5b823567ffffffffffffffff8111156118ea575f80fd5b8301601f810185136118fa575f80fd5b803567ffffffffffffffff811115611910575f80fd5b8560208260051b8401011115611924575f80fd5b6020919091019590945092505050565b5f8060408385031215611945575f80fd5b61194e8361175e565b915061195c6020840161175e565b90509250929050565b600181811c9082168061197957607f821691505b60208210810361199757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f808335601e198436030181126119b2575f80fd5b83018035915067ffffffffffffffff8211156119cc575f80fd5b6020019150368190038213156119e0575f80fd5b9250929050565b634e487b7160e01b5f52604160045260245ffd5b601f821115610f5d57805f5260205f20601f840160051c81016020851015611a205750805b601f840160051c820191505b81811015611a3f575f8155600101611a2c565b5050505050565b67ffffffffffffffff831115611a5e57611a5e6119e7565b611a7283611a6c8354611965565b836119fb565b5f601f841160018114611aa3575f8515611a8c5750838201355b5f19600387901b1c1916600186901b178355611a3f565b5f83815260208120601f198716915b82811015611ad25786850135825560209485019460019092019101611ab2565b5086821015611aee575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f808335601e19843603018112611b15575f80fd5b83018035915067ffffffffffffffff821115611b2f575f80fd5b6020019150600581901b36038213156119e0575f80fd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561066857610668611b46565b808202811582820484141761066857610668611b46565b5f82611b9e57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018281125f831280158216821582161715611bc257611bc2611b46565b505092915050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611bee575f80fd5b81518015158114610a21575f80fd5b8181038181111561066857610668611b46565b8181035f831280158383131683831282161715610e6a57610e6a611b4656fea164736f6c634300081a000a","sourceMap":"3150:18985:40:-:0;;;7783:1352;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;8180:29:40;;;;:59;;-1:-1:-1;;;;;;8213:26:40;;;8180:59;:93;;;-1:-1:-1;;;;;;8243:30:40;;;8180:93;:140;;;-1:-1:-1;;;;;;8293:27:40;;;8180:140;:163;;;-1:-1:-1;;;;;;8324:19:40;;;8180:163;8163:211;;;8361:13;;-1:-1:-1;;;8361:13:40;;;;;;;;;;;8163:211;-1:-1:-1;;;;;8385:31:40;;;;;8426:40;;;;;8476:59;;;;;8545:35;;;;;8590:19;;;;8623:22;;;:49;;-1:-1:-1;8649:23:40;;8623:49;8619:83;;;8681:21;;-1:-1:-1;;;8681:21:40;;;;;;;;;;;8619:83;-1:-1:-1;;;;;8716:29:40;;;;:63;;-1:-1:-1;;;;;;8749:30:40;;;8716:63;8712:89;;;8788:13;;-1:-1:-1;;;8788:13:40;;;;;;;;;;;8712:89;8812:24;;;;;8846:40;;;;;;8896:36;;;;8942:38;;;;-1:-1:-1;;;;;8990:32:40;;;;;9032:34;;;;-1:-1:-1;9107:20:40;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;9077:51:40;;;-1:-1:-1;3150:18985:40;;-1:-1:-1;;;;;;;;;;3150:18985:40;;;;;;;;;:::o;14:177:44:-;93:13;;-1:-1:-1;;;;;135:31:44;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:1271::-;353:6;361;369;377;385;393;401;409;417;425;433:7;487:3;475:9;466:7;462:23;458:33;455:53;;;504:1;501;494:12;455:53;527:40;557:9;527:40;:::i;:::-;517:50;;586:49;631:2;620:9;616:18;586:49;:::i;:::-;576:59;;654:49;699:2;688:9;684:18;654:49;:::i;:::-;644:59;;722:49;767:2;756:9;752:18;722:49;:::i;:::-;712:59;;790:50;835:3;824:9;820:19;790:50;:::i;:::-;780:60;;883:3;872:9;868:19;862:26;928:8;921:5;917:20;910:5;907:31;897:59;;952:1;949;942:12;897:59;975:5;965:15;;;1025:3;1014:9;1010:19;1004:26;1075:7;1072:1;1061:22;1052:7;1049:35;1039:63;;1098:1;1095;1088:12;1039:63;1194:3;1179:19;;1173:26;1291:3;1276:19;;1270:26;1121:7;;-1:-1:-1;1173:26:44;-1:-1:-1;1270:26:44;-1:-1:-1;1341:50:44;1386:3;1371:19;;1341:50;:::i;:::-;1331:60;;1411:50;1456:3;1445:9;1441:19;1411:50;:::i;:::-;1400:61;;196:1271;;;;;;;;;;;;;;:::o;:::-;3150:18985:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"608060405234801561000f575f80fd5b50600436106101bb575f3560e01c80635a6c72d0116100f3578063c415b95c11610093578063df517ddf1161006e578063df517ddf146104fb578063f108e2251461050e578063f700f06e14610535578063fb1ace181461055c575f80fd5b8063c415b95c1461049b578063d5c71275146104c1578063dc4c90d3146104d4575f80fd5b80637f5a7c7b116100ce5780637f5a7c7b146103f45780638652edf91461041a578063bdf3c4ae1461043a578063bf11b4d514610461575f80fd5b80635a6c72d01461038a57806378a89567146103c5578063791b98bc146103cd575f80fd5b80632f2f2d561161015e5780634690b68d116101395780634690b68d146102fd57806347868b32146103105780634aa445341461033d5780634eec9e0914610364575f80fd5b80632f2f2d561461029c5780632f3a3d5d146102af57806332a3cf96146102d6575f80fd5b80631f69565f116101995780631f69565f14610224578063223a980b1461024457806325637fd61461026b5780632a5c792a14610287575f80fd5b806303bdd5cf146101bf57806303fd2a45146101dc57806311b1868f146101fd575b5f80fd5b6101c962093a8081565b6040519081526020015b60405180910390f35b6101e561dead81565b6040516001600160a01b0390911681526020016101d3565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b61023761023236600461253d565b61056f565b6040516101d39190612591565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b5f546102779060ff1681565b60405190151581526020016101d3565b61028f61078d565b6040516101d3919061265a565b6101e56102aa3660046126e9565b6107ed565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b61028f61030b366004612753565b61082f565b61027761031e36600461253d565b6001600160a01b039081165f9081526001602052604090205416151590565b6101c97f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6103b17f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff90911681526020016101d3565b6004546101c9565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61042d61042836600461253d565b61092b565b6040516101d391906127b6565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6104887f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b81526020016101d3565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b61028f6104cf36600461253d565b6109ff565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e56105093660046127c4565b610a72565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101e57f000000000000000000000000000000000000000000000000000000000000000081565b6101c96b033b2e3c9fd0803ce800000081565b6040805161012080820183525f80835260208084018290526060848601819052808501526080840182905260a0840182905260c0840182905260e0840182905261010084018290526001600160a01b038681168352600180835292869020865194850187528054821685529283015416908301526002810180549394929391928401916105fb9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106279061289a565b80156106725780601f1061064957610100808354040283529160200191610672565b820191905f5260205f20905b81548152906001019060200180831161065557829003601f168201915b5050505050815260200160038201805461068b9061289a565b80601f01602080910402602001604051908101604052809291908181526020018280546106b79061289a565b80156107025780601f106106d957610100808354040283529160200191610702565b820191905f5260205f20905b8154815290600101906020018083116106e557829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460608201526007909101546001600160401b038082166080840152600160401b9091041660a09091015280519091506001600160a01b0316610788576040516340d1d8df60e11b81526001600160a01b03831660048201526024015b60405180910390fd5b919050565b606060048054806020026020016040519081016040528092919081815260200182805480156107e357602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107c5575b5050505050905090565b5f610826858585858580604051908082528060200260200182016040528015610820578160200160208202803683370190505b50610b19565b95945050505050565b6004546060908284118061084257508083115b1561086a57604051632457cde760e01b8152600481018590526024810182905260440161077f565b61087484846128fa565b6001600160401b0381111561088b5761088b6128d2565b6040519080825280602002602001820160405280156108b4578160200160208202803683370190505b509150835b8381101561092357600481815481106108d4576108d461290d565b5f918252602090912001546001600160a01b0316836108f387846128fa565b815181106109035761090361290d565b6001600160a01b03909216602092830291909101909101526001016108b9565b505092915050565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506001600160a01b038082165f90815260026020818152604092839020835160a0810185528154861680825260018301548088169483019490945262ffffff600160a01b85041695820195909552600160b81b909204830b60608301529091015490921660808301521580156109d6575060208101516001600160a01b0316155b15610788576040516340d1d8df60e11b81526001600160a01b038316600482015260240161077f565b6001600160a01b0381165f90815260036020908152604091829020805483518184028101840190945280845260609392830182828015610a6657602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610a48575b50505050509050919050565b5f831580610a82575062093a8084115b15610aac57604051630f4a61d160e31b81526004810185905262093a80602482015260440161077f565b5f829003610acd5760405163d302698f60e01b815260040160405180910390fd5b610b0d88888888888888808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610b1992505050565b98975050505050505050565b5f858103610b3a57604051632ef1310560e01b815260040160405180910390fd5b5f849003610b5b57604051630cc613fb60e11b815260040160405180910390fd5b5f547f00000000000000000000000000000000000000000000000000000000000000009060ff16158015610bb75750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b15610beb57505f805460ff191660011790557f00000000000000000000000000000000000000000000000000000000000000005b6004546040515f91610c0a913391908c908c908c908c90602001612949565b604051602081830303815290604052805190602001209050610c4c7f000000000000000000000000000000000000000000000000000000000000000082610dfd565b9250826001600160a01b031663277b806d6040518061012001604052808c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c90819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce80000006020820152336040808301919091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660608401527f0000000000000000000000000000000000000000000000000000000000000000811660808401527f00000000000000000000000000000000000000000000000000000000000000001660a083015260c082018a905260e0918201899052519083901b6001600160e01b0319168152610da391906004016129c6565b5f604051808303815f87803b158015610dba575f80fd5b505af1158015610dcc573d5f803e3d5ffd5b505050505f80610ddc8585610e12565b91509150610def858c8c8c8c8787611085565b505050509695505050505050565b5f610e0983835f611511565b90505b92915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525f806b033b2e3c9fd0803ce800000090505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161090506040518060a0016040528082610ebb577f0000000000000000000000000000000000000000000000000000000000000000610ebd565b875b6001600160a01b0316815260200182610ed65787610ef8565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b031681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000060020b81526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681525093505f805f610f9684896115ad565b91945092509050627fffff6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f702040589610fda85611680565b6040518363ffffffff1660e01b8152600401610ff7929190612a8f565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110379190612ab5565b60020b0361105857604051633b47c30b60e21b815260040160405180910390fd5b5f61106585858589611938565b90506110768a878a8787868b6119a6565b96505050505050509250929050565b5f604051806101200160405280896001600160a01b03168152602001336001600160a01b0316815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250505090825250604080516020601f8901819004810282018101909252878152918101919088908890819084018382808284375f920191909152505050908252506b033b2e3c9fd0803ce800000060208201526040016111428560a0902090565b8152602001838152602001426001600160401b03168152602001896001600160a01b0316631dec7ed56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111bc9190612ad5565b6001600160401b031681525090508260025f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160146101000a81548162ffffff021916908362ffffff16021790555060608201518160010160176101000a81548162ffffff021916908360020b62ffffff1602179055506080820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050508060015f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201908161134f9190612b46565b50606082015160038201906113649082612b46565b506080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015f6101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160070160086101000a8154816001600160401b0302191690836001600160401b03160217905550905050600488908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555060035f336001600160a01b03166001600160a01b031681526020019081526020015f2088908060018154018082558091505060019003905f5260205f20015f9091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055508060a0015181602001516001600160a01b0316825f01516001600160a01b03167f11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df8460c001518560400151866060015187608001518861010001518960e001516040516114ff96959493929190612c00565b60405180910390a45050505050505050565b5f8147101561153c5760405163cf47918160e01b81524760048201526024810183905260440161077f565b763d602d80600a3d3981f3363d3d373d3d3d363d730000008460601b60e81c175f526e5af43d82803e903d91602b57fd5bf38460781b17602052826037600984f590506001600160a01b0381166115a65760405163b06ebf3d60e01b815260040160405180910390fd5b9392505050565b5f80807f0000000000000000000000000000000000000000000000000000000000000000816115e0620d89e71983611d90565b9050620d89e719600282900b12156115ff576115fc8282612c53565b90505b5f61160d620d89e884611d90565b90505f61161a8989611de3565b905088156116395761162c8185611d90565b965081955086945061164c565b8296506116468185611e84565b95508594505b8560020b8760020b126116755760405163bd7e0d4360e01b81526004810189905260240161077f565b505050509250925092565b60020b5f60ff82901d80830118620d89e88111156116a9576116a96345c3193d60e11b84611eae565b7001fffcb933bd6fad37aa2d162d1a5940016001821602600160801b1860028216156116e5576ffff97272373d413259a46990580e213a0260801c5b6004821615611704576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615611723576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615611742576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615611761576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615611780576fff2ea16466c96a3843ec78b326b528610260801c5b608082161561179f576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156117bf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156117df576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156117ff576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161561181f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b61100082161561183f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b61200082161561185f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b61400082161561187f576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161561189f576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156118c0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b620200008216156118e0576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156118ff576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561191c576b048a170391f7dc42444e8fa20260801c5b5f841315611928575f19045b63ffffffff0160201c9392505050565b5f8061194385611680565b90505f61194f85611680565b90508661196657611961828286611ebd565b611971565b611971828286611efe565b9250826001600160801b03165f0361199c5760405163f564880560e01b815260040160405180910390fd5b5050949350505050565b5f6119db6001600160a01b0389167f000000000000000000000000000000000000000000000000000000000000000089611f5a565b604051600160f91b6020820152600b60f81b6021820152600560fa1b60228201525f9060230160408051808303601f1901815260038084526080840190925292505f9190816020015b6060815260200190600190039081611a24579050509050878787876001600160801b031687611a53575f611a55565b8c5b88611a60578d611a62565b5f5b60408051602080820183525f82529151611a859897969594939230929101612c78565b604051602081830303815290604052815f81518110611aa657611aa661290d565b602090810291909101810191909152604080516001600160a01b038d16928101929092525f908201819052606082015260800160405160208183030381529060405281600181518110611afb57611afb61290d565b60200260200101819052508930604051602001611b2e9291906001600160a01b0392831681529116602082015260400190565b60405160208183030381529060405281600281518110611b5057611b5061290d565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612cef565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dd46508f8383604051602001611c1f929190612d06565b604051602081830303815290604052426040518363ffffffff1660e01b8152600401611c4c929190612d7b565b5f604051808303815f87803b158015611c63575f80fd5b505af1158015611c75573d5f803e3d5ffd5b50506040516323b872dd60e01b815230600482015261dead6024820152604481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506323b872dd91506064015f604051808303815f87803b158015611ce6575f80fd5b505af1158015611cf8573d5f803e3d5ffd5b50506040516370a0823160e01b81523060048201525f92506001600160a01b038d1691506370a0823190602401602060405180830381865afa158015611d40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d649190612cef565b90508015611d8257611d826001600160a01b038c1661dead83611f5a565b505050979650505050505050565b5f80611d9c8385612db0565b90505f8460020b128015611dc05750600284900b611dba8483612df4565b60020b14155b15611dd157611dce81612e1a565b90505b611ddb8382612df4565b949350505050565b5f8083611e0a57611e056b033b2e3c9fd0803ce8000000600160c01b85611f94565b611e25565b611e2583600160c01b6b033b2e3c9fd0803ce8000000611f94565b90505f611e3182612030565b90506401000276a3811080611e5a575073fffd8963efd1fc6a506488495d951d5263988d268110155b15611e7b5760405163bd7e0d4360e01b81526004810185905260240161077f565b61082681612183565b5f80611e908484611d90565b90508360020b8160020b146115a657611ea98382612c53565b611ddb565b815f528060020b60045260245ffd5b5f826001600160a01b0316846001600160a01b03161115611edc579192915b611ddb611ef983600160601b8787036001600160a01b0316611f94565b612413565b5f826001600160a01b0316846001600160a01b03161115611f1d579192915b5f611f3f856001600160a01b0316856001600160a01b0316600160601b611f94565b9050610826611ef984838888036001600160a01b0316611f94565b611f678383836001612434565b611f8f57604051635274afe760e01b81526001600160a01b038416600482015260240161077f565b505050565b5f838302815f1985870982811083820303915050808411611fb3575f80fd5b805f03611fc5575082900490506115a6565b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f6001821161203d575090565b816001600160801b82106120565760809190911c9060401b5b600160401b821061206c5760409190911c9060201b5b64010000000082106120835760209190911c9060101b5b6201000082106120985760109190911c9060081b5b61010082106120ac5760089190911c9060041b5b601082106120bf5760049190911c9060021b5b600482106120cb5760011b5b600302600190811c908185816120e3576120e3612d9c565b048201901c905060018185816120fb576120fb612d9c565b048201901c9050600181858161211357612113612d9c565b048201901c9050600181858161212b5761212b612d9c565b048201901c9050600181858161214357612143612d9c565b048201901c9050600181858161215b5761215b612d9c565b048201901c905061217a81858161217457612174612d9c565b04821190565b90039392505050565b5f73fffd8963efd1fc6a506488495d951d51639616826401000276a21983016001600160a01b031611156121c2576121c26318521d4960e21b83612496565b640100000000600160c01b03602083901b16805f6121df826124ab565b60ff169050608081106121fa57607f810383901c9150612204565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461240457886001600160a01b03166123e982611680565b6001600160a01b031611156123fe5781612406565b80612406565b815b9998505050505050505050565b806001600160801b0381168114610788576107886393dafdf160e01b612535565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661248a57838315161561247e573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b815f526001600160a01b03811660045260245ffd5b5f8082116124b7575f80fd5b507f0706060506020500060203020504000106050205030304010505030400000000601f6f8421084210842108cc6318c6db6d54be6001600160801b03841160071b84811c6001600160401b031060061b1784811c63ffffffff1060051b1784811c61ffff1060041b1784811c60ff1060031b1793841c1c161a1790565b805f5260045ffd5b5f6020828403121561254d575f80fd5b81356001600160a01b03811681146115a6575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526125ab6020820183516001600160a01b03169052565b5f60208301516125c660408401826001600160a01b03169052565b50604083015161012060608401526125e2610140840182612563565b90506060840151601f198483030160808501526125ff8282612563565b915050608084015160a084015260a084015160c084015260c084015160e084015260e084015161263b6101008501826001600160401b03169052565b506101008401516001600160401b038116610120850152509392505050565b602080825282518282018190525f918401906040840190835b8181101561269a5783516001600160a01b0316835260209384019390920191600101612673565b509095945050505050565b5f8083601f8401126126b5575f80fd5b5081356001600160401b038111156126cb575f80fd5b6020830191508360208285010111156126e2575f80fd5b9250929050565b5f805f80604085870312156126fc575f80fd5b84356001600160401b03811115612711575f80fd5b61271d878288016126a5565b90955093505060208501356001600160401b0381111561273b575f80fd5b612747878288016126a5565b95989497509550505050565b5f8060408385031215612764575f80fd5b50508035926020909101359150565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610e0c8284612773565b5f805f805f805f6080888a0312156127da575f80fd5b87356001600160401b038111156127ef575f80fd5b6127fb8a828b016126a5565b90985096505060208801356001600160401b03811115612819575f80fd5b6128258a828b016126a5565b9096509450506040880135925060608801356001600160401b0381111561284a575f80fd5b8801601f81018a1361285a575f80fd5b80356001600160401b0381111561286f575f80fd5b8a60208260051b8401011115612883575f80fd5b602082019350809250505092959891949750929550565b600181811c908216806128ae57607f821691505b6020821081036128cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610e0c57610e0c6128e6565b634e487b7160e01b5f52603260045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0387168152856020820152608060408201525f612970608083018688612921565b8281036060840152612406818587612921565b5f8151808452602084019350602083015f5b828110156129bc5781516001600160a01b0316865260209586019590910190600101612995565b5093949350505050565b602081525f825161012060208401526129e3610140840182612563565b90506020840151601f19848303016040850152612a008282612563565b915050604084015160608401526060840151612a2760808501826001600160a01b03169052565b5060808401516001600160a01b03811660a08501525060a08401516001600160a01b03811660c08501525060c08401516001600160a01b03811660e08501525060e0840151610100840152610100840151601f19848303016101208501526108268282612983565b60c08101612a9d8285612773565b6001600160a01b039290921660a09190910152919050565b5f60208284031215612ac5575f80fd5b81518060020b81146115a6575f80fd5b5f60208284031215612ae5575f80fd5b81516001600160401b03811681146115a6575f80fd5b601f821115611f8f57805f5260205f20601f840160051c81016020851015612b205750805b601f840160051c820191505b81811015612b3f575f8155600101612b2c565b5050505050565b81516001600160401b03811115612b5f57612b5f6128d2565b612b7381612b6d845461289a565b84612afb565b6020601f821160018114612ba5575f8315612b8e5750848201515b5f19600385901b1c1916600184901b178455612b3f565b5f84815260208120601f198516915b82811015612bd45787850151825560209485019460019092019101612bb4565b5084821015612bf157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b86815260c060208201525f612c1860c0830188612563565b8281036040840152612c2a8188612563565b606084019690965250506001600160401b039283166080820152911660a0909101529392505050565b600281810b9083900b01627fffff8113627fffff1982121715610e0c57610e0c6128e6565b612c82818a612773565b8760020b60a08201528660020b60c08201528560e08201526001600160801b0385166101008201526001600160801b03841661012082015260018060a01b0383166101408201526101806101608201525f612ce1610180830184612563565b9a9950505050505050505050565b5f60208284031215612cff575f80fd5b5051919050565b604081525f612d186040830185612563565b828103602084015280845180835260208301915060208160051b840101602087015f5b83811015612d6d57601f19868403018552612d57838351612563565b6020958601959093509190910190600101612d3b565b509098975050505050505050565b604081525f612d8d6040830185612563565b90508260208301529392505050565b634e487b7160e01b5f52601260045260245ffd5b5f8160020b8360020b80612dd257634e487b7160e01b5f52601260045260245ffd5b627fffff1982145f1982141615612deb57612deb6128e6565b90059392505050565b5f8260020b8260020b028060020b9150808214612e1357612e136128e6565b5092915050565b5f8160020b627fffff198103612e3257612e326128e6565b5f19019291505056fea164736f6c634300081a000a","sourceMap":"3150:18985:40:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4007:51;;4052:6;4007:51;;;;;160:25:44;;;148:2;133:18;4007:51:40;;;;;;;;3273:82;;3312:42;3273:82;;;;;-1:-1:-1;;;;;469:32:44;;;451:51;;439:2;424:18;3273:82:40;305:203:44;5385:41:40;;;;;20427:190;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;4483:40::-;;;;;6251:23;;;;;;;;;;;;2550:14:44;;2543:22;2525:41;;2513:2;2498:18;6251:23:40;2385:187:44;20322:99:40;;;:::i;:::-;;;;;;;:::i;9502:166::-;;;;;;:::i;:::-;;:::i;6369:44::-;;;;;4259:36;;;;;20937:418;;;;;;:::i;:::-;;:::i;21706:131::-;;;;;;:::i;:::-;-1:-1:-1;;;;;21793:17:40;;;21770:4;21793:17;;;:10;:17;;;;;:23;;:37;;;21706:131;5967:42;;;;;22037:96;22120:5;22037:96;;4301:34;;;;;;;;4818:8:44;4806:21;;;4788:40;;4776:2;4761:18;4301:34:40;4644:190:44;20623:98:40;20697:10;:17;20623:98;;4147:56;;;;;21843:83;21908:11;21843:83;;21426:274;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;4065:29::-;;;;;4341:41;;;;;;;;6154:1:44;6143:21;;;;6125:40;;6113:2;6098:18;4341:41:40;5983:188:44;21932:99:40;22005:19;21932:99;;20727:135;;;;;;:::i;:::-;;:::i;4100:41::-;;;;;9951:507;;;;;;:::i;:::-;;:::i;4209:44::-;;;;;6106:39;;;;;3850:56;;3890:16;3850:56;;20427:190;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20527:17:40;;;;;:10;:17;;;;;;;20520:24;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;20520:24:40;;20527:17;;20520:24;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;20520:24:40;;;-1:-1:-1;;20520:24:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20520:24:40;;;;;;;-1:-1:-1;;;20520:24:40;;;;;;;;;20558:10;;20520:24;;-1:-1:-1;;;;;;20558:24:40;20554:56;;20591:19;;-1:-1:-1;;;20591:19:40;;-1:-1:-1;;;;;469:32:44;;20591:19:40;;;451:51:44;424:18;;20591:19:40;;;;;;;;20554:56;20427:190;;;:::o;20322:99::-;20369:16;20404:10;20397:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20397:17:40;;;;;;;;;;;;;;;;;;;;;;;20322:99;:::o;9502:166::-;9587:13;9619:42;9627:4;;9633:6;;9587:13;;9644:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9644:16:40;;9619:7;:42::i;:::-;9612:49;9502:166;-1:-1:-1;;;;;9502:166:40:o;20937:418::-;21069:10;:17;21022:21;;21100;;;;:39;;;21136:3;21125:8;:14;21100:39;21096:81;;;21148:29;;-1:-1:-1;;;21148:29:40;;;;;8436:25:44;;;8477:18;;;8470:34;;;8409:18;;21148:29:40;8262:248:44;21096:81:40;21208:21;21219:10;21208:8;:21;:::i;:::-;-1:-1:-1;;;;;21194:36:40;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21194:36:40;-1:-1:-1;21187:43:40;-1:-1:-1;21257:10:40;21240:109;21273:8;21269:1;:12;21240:109;;;21325:10;21336:1;21325:13;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;21325:13:40;21302:4;21307:14;21311:10;21307:1;:14;:::i;:::-;21302:20;;;;;;;;:::i;:::-;-1:-1:-1;;;;;21302:36:40;;;:20;;;;;;;;;;;:36;21283:3;;21240:109;;;;21045:310;20937:418;;;;:::o;21426:274::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21519:16:40;;;;;;;:9;:16;;;;;;;;;21513:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21513:22:40;;;;;;;;;;-1:-1:-1;;;21513:22:40;;;;;;;;;;;;;;;;;;;;21549:44;:92;;;;-1:-1:-1;21613:13:40;;;;-1:-1:-1;;;;;21597:44:40;;21549:92;21545:149;;;21664:19;;-1:-1:-1;;;21664:19:40;;-1:-1:-1;;;;;469:32:44;;21664:19:40;;;451:51:44;424:18;;21664:19:40;305:203:44;20727:135:40;-1:-1:-1;;;;;20830:25:40;;;;;;:16;:25;;;;;;;;;20823:32;;;;;;;;;;;;;;;;;20795:16;;20823:32;;;20830:25;20823:32;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20823:32:40;;;;;;;;;;;;;;;;;;;;;;;20727:135;;;:::o;9951:507::-;10142:13;10171:18;;;:56;;;4052:6;10193:13;:34;10171:56;10167:149;;;10250:55;;-1:-1:-1;;;10250:55:40;;;;;8436:25:44;;;4052:6:40;8477:18:44;;;8470:34;8409:18;;10250:55:40;8262:248:44;10167:149:40;10355:1;10329:27;;;10325:56;;10365:16;;-1:-1:-1;;;10365:16:40;;;;;;;;;;;10325:56;10398:53;10406:4;;10412:6;;10420:13;10435:15;;10398:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10398:7:40;;-1:-1:-1;;;10398:53:40:i;:::-;10391:60;9951:507;-1:-1:-1;;;;;;;;9951:507:40:o;10464:1493::-;10640:13;10669:23;;;10665:47;;10701:11;;-1:-1:-1;;;10701:11:40;;;;;;;;;;;10665:47;10750:1;10726:25;;;10722:51;;10760:13;;-1:-1:-1;;;10760:13:40;;;;;;;;;;;10722:51;10876:11;10921;10890:16;;10921:11;;10920:12;:44;;;;-1:-1:-1;10936:10:40;-1:-1:-1;;;;;10950:14:40;10936:28;;10920:44;10916:130;;;-1:-1:-1;10980:11:40;:18;;-1:-1:-1;;10980:18:40;10994:4;10980:18;;;11018:17;10916:130;11200:10;:17;11177:55;;11152:12;;11177:55;;11188:10;;11200:17;11219:4;;;;11225:6;;;;11177:55;;;:::i;:::-;;;;;;;;;;;;;11167:66;;;;;;11152:81;;11251:52;11277:19;11298:4;11251:25;:52::i;:::-;11243:60;;11329:5;-1:-1:-1;;;;;11314:45:40;;11377:413;;;;;;;;11427:4;;11377:413;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11377:413:40;;;-1:-1:-1;11377:413:40;;;;;;;;;;;;;;;;;;;;;;;;;;;11457:6;;;;;;11377:413;;11457:6;;;;11377:413;;;;;;;;;-1:-1:-1;;;11377:413:40;;;-1:-1:-1;3890:16:40;11377:413;;;;11529:10;11377:413;;;;;;;;-1:-1:-1;;;;;11578:11:40;11377:413;;;;;;11631:5;11377:413;;;;;;11664:15;11377:413;;;;;;;;;;;;;;;;;;11314:490;;;;;-1:-1:-1;;;;;;11314:490:40;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11816:18;11836:17;11857:37;11883:5;11890:3;11857:25;:37::i;:::-;11815:79;;;;11904:46;11914:5;11921:4;;11927:6;;11935:3;11940:9;11904;:46::i;:::-;10655:1302;;;;10464:1493;;;;;;;;:::o;3871:169:5:-;3955:16;3990:43;4009:14;4025:4;4031:1;3990:18;:43::i;:::-;3983:50;;3871:169;;;;;:::o;13226:1205:40:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13343:17:40;13376:14;3890:16;13376:30;;13416:21;13456:5;-1:-1:-1;;;;;13440:22:40;:5;-1:-1:-1;;;;;13440:22:40;;13416:46;;13478:295;;;;;;;;13525:16;:41;;13560:5;13525:41;;;13544:5;13525:41;-1:-1:-1;;;;;13478:295:40;;;;;13606:16;:41;;13642:5;13606:41;;;13633:5;13606:41;-1:-1:-1;;;;;13478:295:40;;;;;13667:10;13478:295;;;;;;13704:18;13478:295;;;;;;13750:11;-1:-1:-1;;;;;13478:295:40;;;;13472:301;;13785:15;13802;13819;13838:32;13848:16;13866:3;13838:9;:32::i;:::-;13784:86;;-1:-1:-1;13784:86:40;-1:-1:-1;13784:86:40;-1:-1:-1;14145:15:40;-1:-1:-1;;;;;14066:15:40;:30;;14097:3;14102:38;13784:86;14102:27;:38::i;:::-;14066:75;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;14062:158;;14183:26;;-1:-1:-1;;;14183:26:40;;;;;;;;;;;14062:158;14230:17;14250:61;14264:16;14282:9;14293;14304:6;14250:13;:61::i;:::-;14230:81;;14333:91;14354:5;14361:6;14369:3;14374:9;14385;14396;14407:16;14333:20;:91::i;:::-;14321:103;;13366:1065;;;;;;13226:1205;;;;;:::o;12125:1001::-;12309:21;12333:353;;;;;;;;12364:5;-1:-1:-1;;;;;12333:353:40;;;;;12392:10;-1:-1:-1;;;;;12333:353:40;;;;;12422:4;;12333:353;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;12333:353:40;;;-1:-1:-1;12333:353:40;;;;;;;;;;;;;;;;;;;;;;;;;;;12448:6;;;;;;12333:353;;12448:6;;;;12333:353;;;;;;;;;-1:-1:-1;;;12333:353:40;;;-1:-1:-1;3890:16:40;12333:353;;;;;;12525:10;:3;515:4:34;496:24;;;271:265;12525:10:40;12333:353;;;;12561:9;12333:353;;;;12603:15;-1:-1:-1;;;;;12333:353:40;;;;;12658:5;-1:-1:-1;;;;;12643:30:40;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;12333:353:40;;;;12309:377;;12716:3;12697:9;:16;12707:5;-1:-1:-1;;;;;12697:16:40;-1:-1:-1;;;;;12697:16:40;;;;;;;;;;;;:22;;;;;;;;;;;;;-1:-1:-1;;;;;12697:22:40;;;;;-1:-1:-1;;;;;12697:22:40;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12697:22:40;;;;;-1:-1:-1;;;;;12697:22:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12697:22:40;;;;;-1:-1:-1;;;;;12697:22:40;;;;;;;;;12749:4;12729:10;:17;12740:5;-1:-1:-1;;;;;12729:17:40;-1:-1:-1;;;;;12729:17:40;;;;;;;;;;;;:24;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;12729:24:40;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12729:24:40;;;;;-1:-1:-1;;;;;12729:24:40;;;;;;;;;12763:10;12779:5;12763:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12763:22:40;;;;;-1:-1:-1;;;;;12763:22:40;;;;;;12795:16;:28;12812:10;-1:-1:-1;;;;;12795:28:40;-1:-1:-1;;;;;12795:28:40;;;;;;;;;;;;12829:5;12795:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12795:40:40;;;;;-1:-1:-1;;;;;12795:40:40;;;;;;12940:4;:11;;;12902:4;:12;;;-1:-1:-1;;;;;12851:268:40;12878:4;:10;;;-1:-1:-1;;;;;12851:268:40;;12966:4;:14;;;12994:4;:9;;;13017:4;:11;;;13042:4;:11;;;13067:4;:13;;;13094:4;:15;;;12851:268;;;;;;;;;;;:::i;:::-;;;;;;;;12299:827;12125:1001;;;;;;;:::o;4801:970:5:-;4930:16;4986:5;4962:21;:29;4958:123;;;5014:56;;-1:-1:-1;;;5014:56:5;;5041:21;5014:56;;;8436:25:44;8477:18;;;8470:34;;;8409:18;;5014:56:5;8262:248:44;4958:123:5;5364:48;5346:14;5342:2;5338:23;5333:3;5329:33;5326:87;5320:4;5313:101;5570:32;5553:14;5548:3;5544:24;5541:62;5535:4;5528:76;5656:4;5650;5644;5637:5;5629:32;5617:44;-1:-1:-1;;;;;;5684:22:5;;5680:85;;5729:25;;-1:-1:-1;;;5729:25:5;;;;;;;;;;;5680:85;4801:970;;;;;:::o;17477:1240:40:-;17579:15;;;17660:18;17579:15;17706:38;-1:-1:-1;;17660:18:40;17706:10;:38::i;:::-;17688:56;-1:-1:-1;;;17758:29:40;;;;;17754:55;;;17789:20;17802:7;17789:20;;:::i;:::-;;;17754:55;17819:15;17837:38;1317:6:30;17867:7:40;17837:10;:38::i;:::-;17819:56;;17886:13;17902:35;17915:16;17933:3;17902:12;:35::i;:::-;17886:51;;17952:16;17948:691;;;18140:28;18151:7;18160;18140:10;:28::i;:::-;18128:40;;18194:9;18182:21;;18229:9;18217:21;;17948:691;;;18531:9;18519:21;;18566:27;18576:7;18585;18566:9;:27::i;:::-;18554:39;;18619:9;18607:21;;17948:691;18666:9;18653:22;;:9;:22;;;18649:61;;18684:26;;-1:-1:-1;;;18684:26:40;;;;;160:25:44;;;133:18;;18684:26:40;14:177:44;18649:61:40;17634:1083;;;;17477:1240;;;;;:::o;3149:4018:30:-;3359:1;3348:19;3212:20;3458:3;3454:14;;;3726:15;;;3716:26;1317:6;3774:35;;3770:78;;;3811:37;-1:-1:-1;;;3843:4:30;3811:31;:37::i;:::-;4456:52;4523:3;4510:17;;4452:76;-1:-1:-1;;;4435:94:30;4570:3;4560:13;;:18;4556:83;;4597:34;4589:42;4636:3;4588:51;4556:83;4667:3;4657:13;;:18;4653:83;;4694:34;4686:42;4733:3;4685:51;4653:83;4764:3;4754:13;;:18;4750:83;;4791:34;4783:42;4830:3;4782:51;4750:83;4861:4;4851:14;;:19;4847:84;;4889:34;4881:42;4928:3;4880:51;4847:84;4959:4;4949:14;;:19;4945:84;;4987:34;4979:42;5026:3;4978:51;4945:84;5057:4;5047:14;;:19;5043:84;;5085:34;5077:42;5124:3;5076:51;5043:84;5155:4;5145:14;;:19;5141:84;;5183:34;5175:42;5222:3;5174:51;5141:84;5253:5;5243:15;;:20;5239:85;;5282:34;5274:42;5321:3;5273:51;5239:85;5352:5;5342:15;;:20;5338:85;;5381:34;5373:42;5420:3;5372:51;5338:85;5451:5;5441:15;;:20;5437:85;;5480:34;5472:42;5519:3;5471:51;5437:85;5550:5;5540:15;;:20;5536:85;;5579:34;5571:42;5618:3;5570:51;5536:85;5649:6;5639:16;;:21;5635:86;;5679:34;5671:42;5718:3;5670:51;5635:86;5749:6;5739:16;;:21;5735:86;;5779:34;5771:42;5818:3;5770:51;5735:86;5849:6;5839:16;;:21;5835:86;;5879:34;5871:42;5918:3;5870:51;5835:86;5949:6;5939:16;;:21;5935:86;;5979:34;5971:42;6018:3;5970:51;5935:86;6049:7;6039:17;;:22;6035:86;;6080:33;6072:41;6118:3;6071:50;6035:86;6149:7;6139:17;;:22;6135:85;;6180:32;6172:40;6217:3;6171:49;6135:85;6248:7;6238:17;;:22;6234:83;;6279:30;6271:38;6314:3;6270:47;6234:83;6345:7;6335:17;;:22;6331:78;;6376:25;6368:33;6406:3;6367:42;6331:78;6548:1;6542:4;6538:12;6535:47;;;-1:-1:-1;;6562:18:30;6535:47;7117:18;7106:30;7125:2;7098:39;;3149:4018;-1:-1:-1;;;3149:4018:30:o;14521:571:40:-;14664:17;14697;14717:38;14745:9;14717:27;:38::i;:::-;14697:58;;14765:17;14785:38;14813:9;14785:27;:38::i;:::-;14765:58;;14845:16;:184;;14960:69;15000:9;15011;15022:6;14960:39;:69::i;:::-;14845:184;;;14876:69;14916:9;14927;14938:6;14876:39;:69::i;:::-;14833:196;;15043:9;-1:-1:-1;;;;;15043:14:40;15056:1;15043:14;15039:46;;15066:19;;-1:-1:-1;;;15066:19:40;;;;;;;;;;;15039:46;14687:405;;14521:571;;;;;;:::o;15357:1836::-;15594:17;15623:60;-1:-1:-1;;;;;15623:26:40;;15658:15;15676:6;15623:26;:60::i;:::-;15729:91;;-1:-1:-1;;;15729:91:40;;;15726:49:44;-1:-1:-1;;;15791:11:44;;;15784:57;-1:-1:-1;;;15857:11:44;;;15850:57;15694:20:40;;15923:11:44;;15729:91:40;;;;;;-1:-1:-1;;15729:91:40;;;15866:1;15854:14;;;;;;;;;15729:91;-1:-1:-1;15830:21:40;;15729:91;15854:14;;;;;;;;;;;;;;;;;;;;15830:38;;15914:3;15931:9;15954;15985;-1:-1:-1;;;;;15977:18:40;16179:16;:47;;16224:1;16179:47;;;16206:6;16179:47;16240:16;:47;;16280:6;16240:47;;;16267:1;16240:47;16328:9;;;;;;;;;-1:-1:-1;16328:9:40;;15890:457;;;;;;;;;;16309:4;;16328:9;15890:457;;:::i;:::-;;;;;;;;;;;;;15878:6;15885:1;15878:9;;;;;;;;:::i;:::-;;;;;;;;;;;:469;;;;16369:67;;;-1:-1:-1;;;;;17116:32:44;;16369:67:40;;;17098:51:44;;;;434:1:37;17165:18:44;;;17158:75;;;17249:18;;;17242:50;17071:18;;16369:67:40;;;;;;;;;;;;16357:6;16364:1;16357:9;;;;;;;;:::i;:::-;;;;;;:79;;;;16483:5;16499:4;16458:47;;;;;;;;-1:-1:-1;;;;;17524:32:44;;;17506:51;;17593:32;;17588:2;17573:18;;17566:60;17494:2;17479:18;;17303:329;16458:47:40;;;;;;;;;;;;;16446:6;16453:1;16446:9;;;;;;;;:::i;:::-;;;;;;:59;;;;16528:15;-1:-1:-1;;;;;16528:27:40;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;16516:41;;16567:15;-1:-1:-1;;;;;16567:33:40;;16612:7;16621:6;16601:27;;;;;;;;;:::i;:::-;;;;;;;;;;;;;16630:15;16567:79;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16824:60:40;;-1:-1:-1;;;16824:60:40;;16861:4;16824:60;;;19230:51:44;3312:42:40;19297:18:44;;;19290:60;19366:18;;;19359:34;;;16824:15:40;-1:-1:-1;;;;;16824:28:40;;-1:-1:-1;16824:28:40;;-1:-1:-1;19203:18:44;;16824:60:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;17085:38:40;;-1:-1:-1;;;17085:38:40;;17117:4;17085:38;;;451:51:44;17070:12:40;;-1:-1:-1;;;;;;17085:23:40;;;-1:-1:-1;17085:23:40;;424:18:44;;17085:38:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;17070:53;-1:-1:-1;17137:9:40;;17133:53;;17148:38;-1:-1:-1;;;;;17148:26:40;;3312:42;17181:4;17148:26;:38::i;:::-;15613:1580;;;15357:1836;;;;;;;;;:::o;19651:224::-;19721:5;;19755:14;19762:7;19755:4;:14;:::i;:::-;19738:31;;19790:1;19783:4;:8;;;:38;;;;-1:-1:-1;19795:26:40;;;;:18;19806:7;19795:8;:18;:::i;:::-;:26;;;;19783:38;19779:54;;;19823:10;;;:::i;:::-;;;19779:54;19850:18;19861:7;19850:8;:18;:::i;:::-;19843:25;19651:224;-1:-1:-1;;;;19651:224:40:o;18982:567::-;19063:5;19080:17;19100:16;:148;;19207:41;3890:16;-1:-1:-1;;;19244:3:40;19207:15;:41::i;:::-;19100:148;;;19131:41;19147:3;-1:-1:-1;;;3890:16:40;19131:15;:41::i;:::-;19080:168;;19278:20;19301;19311:9;19301;:20::i;:::-;19278:43;-1:-1:-1;1862:10:30;19335:38:40;;;:81;;-1:-1:-1;2042:49:30;19377:39:40;;;19335:81;19331:145;;;19439:26;;-1:-1:-1;;;19439:26:40;;;;;160:25:44;;;133:18;;19439:26:40;14:177:44;19331:145:40;19492:50;19528:12;19492:27;:50::i;19944:196::-;20013:5;20030:13;20046:25;20057:4;20063:7;20046:10;:25::i;:::-;20030:41;;20099:4;20088:15;;:7;:15;;;:45;;20116:17;20126:7;20116;:17;:::i;:::-;20088:45;;1357:223:26;1480:8;1477:1;1470:19;1529:5;1526:1;1515:20;1509:4;1502:34;1559:4;1556:1;1549:15;1850:420:39;1992:17;2069:13;-1:-1:-1;;;;;2053:29:39;:13;-1:-1:-1;;;;;2053:29:39;;2049:98;;;2118:13;;2133;2049:98;2168:85;:73;2184:7;-1:-1:-1;;;2227:13:39;2211;:29;-1:-1:-1;;;;;2168:73:39;:15;:73::i;:::-;:83;:85::i;895:516::-;1037:17;1114:13;-1:-1:-1;;;;;1098:29:39;:13;-1:-1:-1;;;;;1098:29:39;;1094:98;;;1163:13;;1178;1094:98;1206:20;1229:63;1245:13;-1:-1:-1;;;;;1229:63:39;1260:13;-1:-1:-1;;;;;1229:63:39;-1:-1:-1;;;1229:15:39;:63::i;:::-;1206:86;;1313:81;:69;1329:7;1338:12;1368:13;1352;:29;-1:-1:-1;;;;;1313:69:39;:15;:69::i;1290:204:9:-;1377:37;1391:5;1398:2;1402:5;1409:4;1377:13;:37::i;:::-;1372:116;;1437:40;;-1:-1:-1;;;1437:40:9;;-1:-1:-1;;;;;469:32:44;;1437:40:9;;;451:51:44;424:18;;1437:40:9;305:203:44;1372:116:9;1290:204;;;:::o;741:4141:28:-;823:14;1212:5;;;823:14;-1:-1:-1;;1216:1:28;1212;1400:20;1473:5;1469:2;1466:13;1458:5;1454:2;1450:14;1446:34;1437:43;;;1633:5;1619:11;:19;1611:28;;;;;;1720:5;1729:1;1720:10;1716:177;;-1:-1:-1;1807:23:28;;;;-1:-1:-1;1865:13:28;;1716:177;2193:17;2293:11;2290:1;2287;2280:25;2701:12;2717:15;;;2716:31;;2869:22;;;;;3776:1;3757;:15;;3756:21;;4019:17;;;4015:21;;4008:28;4081:17;;;4077:21;;4070:28;4144:17;;;4140:21;;4133:28;4207:17;;;4203:21;;4196:28;4270:17;;;4266:21;;4259:28;4334:17;;;4330:21;;;4323:28;3313:12;;;;3309:23;;;3334:1;3305:31;2454:20;;;2443:32;;;3372:12;;;;2501:21;;;;3029:16;;;;3363:21;;;;4827:11;;;;;-1:-1:-1;;741:4141:28;;;;;:::o;20859:5181:16:-;20907:7;21025:1;21020;:6;21016:53;;-1:-1:-1;21053:1:16;20859:5181::o;21016:53::-;22009:1;22037;-1:-1:-1;;;22057:16:16;;22053:92;;22100:3;22093:10;;;;;22128:2;22121:9;22053:92;-1:-1:-1;;;22162:2:16;:15;22158:90;;22204:2;22197:9;;;;;22231:2;22224:9;22158:90;22272:7;22265:2;:15;22261:90;;22307:2;22300:9;;;;;22334:2;22327:9;22261:90;22375:7;22368:2;:15;22364:89;;22410:2;22403:9;;;;;22437:1;22430:8;22364:89;22477:6;22470:2;:14;22466:87;;22511:1;22504:8;;;;;22537:1;22530:8;22466:87;22577:6;22570:2;:14;22566:87;;22611:1;22604:8;;;;;22637:1;22630:8;22566:87;22677:6;22670:2;:14;22666:61;;22711:1;22704:8;22666:61;23153:1;:6;23164:1;23152:13;;;;;25063:1;23152:13;25063:6;;;;:::i;:::-;;25058:2;:11;25057:18;;25052:23;;25183:1;25176:2;25172:1;:6;;;;;:::i;:::-;;25167:2;:11;25166:18;;25161:23;;25294:1;25287:2;25283:1;:6;;;;;:::i;:::-;;25278:2;:11;25277:18;;25272:23;;25403:1;25396:2;25392:1;:6;;;;;:::i;:::-;;25387:2;:11;25386:18;;25381:23;;25513:1;25506:2;25502:1;:6;;;;;:::i;:::-;;25497:2;:11;25496:18;;25491:23;;25623:1;25616:2;25612:1;:6;;;;;:::i;:::-;;25607:2;:11;25606:18;;25601:23;;25995:28;26020:2;26016:1;:6;;;;;:::i;:::-;;26011:11;;;34797:145:17;25995:28:16;25990:33;;;20859:5181;-1:-1:-1;;;20859:5181:16:o;7627:4752:30:-;7700:10;2282:66;-1:-1:-1;;8183:29:30;;-1:-1:-1;;;;;8182:79:30;;8178:168;;;8281:50;-1:-1:-1;;;8318:12:30;8281:36;:50::i;:::-;-1:-1:-1;;;;;8401:2:30;8376:27;;;;;8360:13;8463:29;8376:27;8463:26;:29::i;:::-;8449:43;;;;8518:3;8511;:10;8507:83;;8543:3;8537;:9;8527:5;:20;;8523:24;;8507:83;;;8586:3;8580;:9;8570:5;:20;;8566:24;;8507:83;8717:9;;;8712:3;8708:19;;;8753:11;;;;8833:9;;;;8926;;8917:19;;;8962:11;;;9042:9;9135;;9126:19;;;9171:11;;;9251:9;9344;;9335:19;;;9380:11;;;9460:9;9553;;9544:19;;;9589:11;;;9669:9;9762;;9753:19;;;9798:11;;;9878:9;9971;;9962:19;;;10007:11;;;10087:9;10180;;10171:19;;;10216:11;;;10296:9;10389;;10380:19;;;10425:11;;;10505:9;10598;;10589:19;;;10634:11;;;10714:9;10807;;10798:19;;;10843:11;;;10923:9;11016;;11007:19;;;11052:11;;;11132:9;11225;;11216:19;;;11261:11;;;;11341:9;;;;11434;;11425:19;;;;;8717:9;-1:-1:-1;;8621:17:30;;8643:2;8620:25;8800:10;;;;;;;8790:21;9009:10;;;;;;;8999:21;;;;9218:10;;;;;;;9208:21;;;;9427:10;;;;;;;9417:21;;;;9636:10;;;;;;;9626:21;;;;9845:10;;;;;;;9835:21;;;;10054:10;;;;;;;10044:21;10263:10;;;;;;;10253:21;10472:10;;;;;;;10462:21;10681:10;;;;;;;10671:21;10890:10;;;;;;;10880:21;11099:10;;;;;;;11089:21;11308:10;;;;;;;11298:21;11517:10;;;;;;;11507:21;11587:24;11579:32;;-1:-1:-1;;11788:53:30;;8635:3;11787:62;;;;12201:39;12185:55;;12184:64;;12271:17;;;;;;;;;:91;;12331:12;-1:-1:-1;;;;;12301:42:30;:26;12320:6;12301:18;:26::i;:::-;-1:-1:-1;;;;;12301:42:30;;;:61;;12355:7;12271:91;;12301:61;12346:6;12271:91;;;12291:7;12271:91;12264:98;7627:4752;-1:-1:-1;;;;;;;;;7627:4752:30:o;790:155:29:-;876:1;-1:-1:-1;;;;;892:6:29;;;;888:50;;900:38;-1:-1:-1;;;900:36:29;:38::i;9022:1244:9:-;9249:4;9243:11;-1:-1:-1;;;9116:12:9;9267:22;;;-1:-1:-1;;;;;9315:24:9;;9309:4;9302:38;9360:4;9353:19;;;9116:12;9436:4;9116:12;9424:4;9116:12;;9408:5;9401;9396:45;9385:56;;9653:1;9646:4;9640:11;9637:18;9628:7;9624:32;9614:606;;9785:6;9775:7;9768:15;9764:28;9761:165;;;9841:16;9835:4;9830:3;9815:43;9891:16;9886:3;9879:29;9761:165;10202:1;10194:5;10182:18;10179:25;10160:16;10153:24;10149:56;10140:7;10136:70;10125:81;;9614:606;10240:4;10233:17;-1:-1:-1;9022:1244:9;;-1:-1:-1;;;;9022:1244:9:o;1672:259:26:-;1797:8;1794:1;1787:19;-1:-1:-1;;;;;1836:5:26;1832:54;1826:4;1819:68;1910:4;1907:1;1900:15;653:664:25;715:7;746:1;742;:5;734:14;;;;;;-1:-1:-1;1233:66:25;1158:4;1179:34;-1:-1:-1;;;;;810:41:25;-1:-1:-1;807:1:25;803:49;906:9;;;-1:-1:-1;;;;;883:33:25;880:1;876:41;870:48;964:9;;;952:10;949:25;946:1;942:33;936:40;1018:9;;;1010:6;1007:21;1004:1;1000:29;994:36;1070:9;;;1064:4;1061:19;1058:1;1054:27;1048:34;1168:9;;;1164:50;1154:61;1149:151;1143:158;;653:664::o;753:163:26:-;863:8;860:1;853:19;895:4;892:1;885:15;513:286:44;572:6;625:2;613:9;604:7;600:23;596:32;593:52;;;641:1;638;631:12;593:52;667:23;;-1:-1:-1;;;;;719:31:44;;709:42;;699:70;;765:1;762;755:12;804:289;846:3;884:5;878:12;911:6;906:3;899:19;967:6;960:4;953:5;949:16;942:4;937:3;933:14;927:47;1019:1;1012:4;1003:6;998:3;994:16;990:27;983:38;1082:4;1075:2;1071:7;1066:2;1058:6;1054:15;1050:29;1045:3;1041:39;1037:50;1030:57;;;804:289;;;;:::o;1205:1175::-;1390:2;1379:9;1372:21;1402:53;1451:2;1440:9;1436:18;1427:6;1421:13;-1:-1:-1;;;;;262:31:44;250:44;;196:104;1402:53;1353:4;1502:2;1494:6;1490:15;1484:22;1515:52;1563:2;1552:9;1548:18;1534:12;-1:-1:-1;;;;;262:31:44;250:44;;196:104;1515:52;;1616:2;1608:6;1604:15;1598:22;1656:6;1651:2;1640:9;1636:18;1629:34;1686:54;1735:3;1724:9;1720:19;1704:14;1686:54;:::i;:::-;1672:68;;1789:2;1781:6;1777:15;1771:22;1862:2;1858:7;1846:9;1838:6;1834:22;1830:36;1824:3;1813:9;1809:19;1802:65;1890:41;1924:6;1908:14;1890:41;:::i;:::-;1876:55;;;1986:3;1978:6;1974:16;1968:23;1962:3;1951:9;1947:19;1940:52;2047:3;2039:6;2035:16;2029:23;2023:3;2012:9;2008:19;2001:52;2108:3;2100:6;2096:16;2090:23;2084:3;2073:9;2069:19;2062:52;2163:3;2155:6;2151:16;2145:23;2177:54;2226:3;2215:9;2211:19;2195:14;-1:-1:-1;;;;;1163:30:44;1151:43;;1098:102;2177:54;-1:-1:-1;2280:3:44;2268:16;;2262:23;-1:-1:-1;;;;;1163:30:44;;2343:6;2328:22;;1151:43;-1:-1:-1;2368:6:44;1205:1175;-1:-1:-1;;;1205:1175:44:o;2577:637::-;2767:2;2779:21;;;2849:13;;2752:18;;;2871:22;;;2719:4;;2950:15;;;2924:2;2909:18;;;2719:4;2993:195;3007:6;3004:1;3001:13;2993:195;;;3072:13;;-1:-1:-1;;;;;3068:39:44;3056:52;;3137:2;3163:15;;;;3128:12;;;;3104:1;3022:9;2993:195;;;-1:-1:-1;3205:3:44;;2577:637;-1:-1:-1;;;;;2577:637:44:o;3219:348::-;3271:8;3281:6;3335:3;3328:4;3320:6;3316:17;3312:27;3302:55;;3353:1;3350;3343:12;3302:55;-1:-1:-1;3376:20:44;;-1:-1:-1;;;;;3408:30:44;;3405:50;;;3451:1;3448;3441:12;3405:50;3488:4;3480:6;3476:17;3464:29;;3540:3;3533:4;3524:6;3516;3512:19;3508:30;3505:39;3502:59;;;3557:1;3554;3547:12;3502:59;3219:348;;;;;:::o;3572:716::-;3664:6;3672;3680;3688;3741:2;3729:9;3720:7;3716:23;3712:32;3709:52;;;3757:1;3754;3747:12;3709:52;3797:9;3784:23;-1:-1:-1;;;;;3822:6:44;3819:30;3816:50;;;3862:1;3859;3852:12;3816:50;3901:59;3952:7;3943:6;3932:9;3928:22;3901:59;:::i;:::-;3979:8;;-1:-1:-1;3875:85:44;-1:-1:-1;;4067:2:44;4052:18;;4039:32;-1:-1:-1;;;;;4083:32:44;;4080:52;;;4128:1;4125;4118:12;4080:52;4167:61;4220:7;4209:8;4198:9;4194:24;4167:61;:::i;:::-;3572:716;;;;-1:-1:-1;4247:8:44;-1:-1:-1;;;;3572:716:44:o;4293:346::-;4361:6;4369;4422:2;4410:9;4401:7;4397:23;4393:32;4390:52;;;4438:1;4435;4428:12;4390:52;-1:-1:-1;;4483:23:44;;;4603:2;4588:18;;;4575:32;;-1:-1:-1;4293:346:44:o;5079:424::-;5156:12;;-1:-1:-1;;;;;5152:38:44;;;5140:51;;5244:4;5233:16;;;5227:23;5223:49;;5207:14;;;5200:73;5326:4;5315:16;;;5309:23;5334:8;5305:38;5289:14;;;5282:62;5407:4;5396:16;;;5390:23;5387:1;5376:38;5360:14;;;5353:62;5468:4;5457:16;;;5451:23;5447:49;5431:14;;5424:73;5079:424::o;5508:247::-;5692:3;5677:19;;5705:44;5681:9;5731:6;5705:44;:::i;6405:1335::-;6542:6;6550;6558;6566;6574;6582;6590;6643:3;6631:9;6622:7;6618:23;6614:33;6611:53;;;6660:1;6657;6650:12;6611:53;6700:9;6687:23;-1:-1:-1;;;;;6725:6:44;6722:30;6719:50;;;6765:1;6762;6755:12;6719:50;6804:59;6855:7;6846:6;6835:9;6831:22;6804:59;:::i;:::-;6882:8;;-1:-1:-1;6778:85:44;-1:-1:-1;;6970:2:44;6955:18;;6942:32;-1:-1:-1;;;;;6986:32:44;;6983:52;;;7031:1;7028;7021:12;6983:52;7070:61;7123:7;7112:8;7101:9;7097:24;7070:61;:::i;:::-;7150:8;;-1:-1:-1;7044:87:44;-1:-1:-1;;7254:2:44;7239:18;;7226:32;;-1:-1:-1;7335:2:44;7320:18;;7307:32;-1:-1:-1;;;;;7351:32:44;;7348:52;;;7396:1;7393;7386:12;7348:52;7419:24;;7474:4;7466:13;;7462:27;-1:-1:-1;7452:55:44;;7503:1;7500;7493:12;7452:55;7543:2;7530:16;-1:-1:-1;;;;;7561:6:44;7558:30;7555:50;;;7601:1;7598;7591:12;7555:50;7654:7;7649:2;7639:6;7636:1;7632:14;7628:2;7624:23;7620:32;7617:45;7614:65;;;7675:1;7672;7665:12;7614:65;7706:2;7702;7698:11;7688:21;;7728:6;7718:16;;;;6405:1335;;;;;;;;;;:::o;7745:380::-;7824:1;7820:12;;;;7867;;;7888:61;;7942:4;7934:6;7930:17;7920:27;;7888:61;7995:2;7987:6;7984:14;7964:18;7961:38;7958:161;;8041:10;8036:3;8032:20;8029:1;8022:31;8076:4;8073:1;8066:15;8104:4;8101:1;8094:15;7958:161;;7745:380;;;:::o;8130:127::-;8191:10;8186:3;8182:20;8179:1;8172:31;8222:4;8219:1;8212:15;8246:4;8243:1;8236:15;8515:127;8576:10;8571:3;8567:20;8564:1;8557:31;8607:4;8604:1;8597:15;8631:4;8628:1;8621:15;8647:128;8714:9;;;8735:11;;;8732:37;;;8749:18;;:::i;8780:127::-;8841:10;8836:3;8832:20;8829:1;8822:31;8872:4;8869:1;8862:15;8896:4;8893:1;8886:15;8912:267;9001:6;8996:3;8989:19;9053:6;9046:5;9039:4;9034:3;9030:14;9017:43;-1:-1:-1;9105:1:44;9080:16;;;9098:4;9076:27;;;9069:38;;;;9161:2;9140:15;;;-1:-1:-1;;9136:29:44;9127:39;;;9123:50;;8912:267::o;9184:607::-;9486:1;9482;9477:3;9473:11;9469:19;9461:6;9457:32;9446:9;9439:51;9526:6;9521:2;9510:9;9506:18;9499:34;9569:3;9564:2;9553:9;9549:18;9542:31;9420:4;9596:63;9654:3;9643:9;9639:19;9631:6;9623;9596:63;:::i;:::-;9707:9;9699:6;9695:22;9690:2;9679:9;9675:18;9668:50;9735;9778:6;9770;9762;9735:50;:::i;9796:446::-;9849:3;9887:5;9881:12;9914:6;9909:3;9902:19;9946:4;9941:3;9937:14;9930:21;;9985:4;9978:5;9974:16;10008:1;10018:199;10032:6;10029:1;10026:13;10018:199;;;10097:13;;-1:-1:-1;;;;;10093:39:44;10081:52;;10162:4;10153:14;;;;10190:17;;;;10129:1;10047:9;10018:199;;;-1:-1:-1;10233:3:44;;9796:446;-1:-1:-1;;;;9796:446:44:o;10247:1335::-;10432:2;10421:9;10414:21;10395:4;10470:6;10464:13;10513:6;10508:2;10497:9;10493:18;10486:34;10543:52;10590:3;10579:9;10575:19;10561:12;10543:52;:::i;:::-;10529:66;;10644:2;10636:6;10632:15;10626:22;10716:2;10712:7;10700:9;10692:6;10688:22;10684:36;10679:2;10668:9;10664:18;10657:64;10744:41;10778:6;10762:14;10744:41;:::i;:::-;10730:55;;;10839:2;10831:6;10827:15;10821:22;10816:2;10805:9;10801:18;10794:50;10893:2;10885:6;10881:15;10875:22;10906:55;10956:3;10945:9;10941:19;10925:14;-1:-1:-1;;;;;262:31:44;250:44;;196:104;10906:55;-1:-1:-1;11010:3:44;10998:16;;10992:23;-1:-1:-1;;;;;262:31:44;;11074:3;11059:19;;250:44;-1:-1:-1;11128:3:44;11116:16;;11110:23;-1:-1:-1;;;;;262:31:44;;11192:3;11177:19;;250:44;-1:-1:-1;11246:3:44;11234:16;;11228:23;-1:-1:-1;;;;;262:31:44;;11310:3;11295:19;;250:44;11260:55;11370:3;11362:6;11358:16;11352:23;11346:3;11335:9;11331:19;11324:52;11425:3;11417:6;11413:16;11407:23;11502:2;11498:7;11486:9;11478:6;11474:22;11470:36;11461:6;11450:9;11446:22;11439:68;11524:52;11569:6;11553:14;11524:52;:::i;11587:345::-;11799:3;11784:19;;11812:44;11788:9;11838:6;11812:44;:::i;:::-;-1:-1:-1;;;;;11893:32:44;;;;11913:3;11872:19;;;;11865:61;11587:345;;-1:-1:-1;11587:345:44:o;11937:277::-;12005:6;12058:2;12046:9;12037:7;12033:23;12029:32;12026:52;;;12074:1;12071;12064:12;12026:52;12106:9;12100:16;12159:5;12156:1;12145:20;12138:5;12135:31;12125:59;;12180:1;12177;12170:12;12219:288;12288:6;12341:2;12329:9;12320:7;12316:23;12312:32;12309:52;;;12357:1;12354;12347:12;12309:52;12389:9;12383:16;-1:-1:-1;;;;;12432:5:44;12428:30;12421:5;12418:41;12408:69;;12473:1;12470;12463:12;12638:518;12740:2;12735:3;12732:11;12729:421;;;12776:5;12773:1;12766:16;12820:4;12817:1;12807:18;12890:2;12878:10;12874:19;12871:1;12867:27;12861:4;12857:38;12926:4;12914:10;12911:20;12908:47;;;-1:-1:-1;12949:4:44;12908:47;13004:2;12999:3;12995:12;12992:1;12988:20;12982:4;12978:31;12968:41;;13059:81;13077:2;13070:5;13067:13;13059:81;;;13136:1;13122:16;;13103:1;13092:13;13059:81;;;13063:3;;12638:518;;;:::o;13332:1299::-;13458:3;13452:10;-1:-1:-1;;;;;13477:6:44;13474:30;13471:56;;;13507:18;;:::i;:::-;13536:97;13626:6;13586:38;13618:4;13612:11;13586:38;:::i;:::-;13580:4;13536:97;:::i;:::-;13682:4;13713:2;13702:14;;13730:1;13725:649;;;;14418:1;14435:6;14432:89;;;-1:-1:-1;14487:19:44;;;14481:26;14432:89;-1:-1:-1;;13289:1:44;13285:11;;;13281:24;13277:29;13267:40;13313:1;13309:11;;;13264:57;14534:81;;13695:930;;13725:649;12585:1;12578:14;;;12622:4;12609:18;;-1:-1:-1;;13761:20:44;;;13879:222;13893:7;13890:1;13887:14;13879:222;;;13975:19;;;13969:26;13954:42;;14082:4;14067:20;;;;14035:1;14023:14;;;;13909:12;13879:222;;;13883:3;14129:6;14120:7;14117:19;14114:201;;;14190:19;;;14184:26;-1:-1:-1;;14273:1:44;14269:14;;;14285:3;14265:24;14261:37;14257:42;14242:58;14227:74;;14114:201;-1:-1:-1;;;;14361:1:44;14345:14;;;14341:22;14328:36;;-1:-1:-1;13332:1299:44:o;14636:718::-;14942:6;14931:9;14924:25;14985:3;14980:2;14969:9;14965:18;14958:31;14905:4;15012:46;15053:3;15042:9;15038:19;15030:6;15012:46;:::i;:::-;15106:9;15098:6;15094:22;15089:2;15078:9;15074:18;15067:50;15134:33;15160:6;15152;15134:33;:::i;:::-;15198:2;15183:18;;15176:34;;;;-1:-1:-1;;;;;;;15247:31:44;;;15241:3;15226:19;;15219:60;15316:31;;15310:3;15295:19;;;15288:60;15126:41;14636:718;-1:-1:-1;;;14636:718:44:o;15359:189::-;15455:1;15426:16;;;15444;;;;15422:39;15509:7;15476:18;;-1:-1:-1;;15496:22:44;;15473:46;15470:72;;;15522:18;;:::i;15945:923::-;16312:44;16346:9;16338:6;16312:44;:::i;:::-;16407:6;16404:1;16393:21;16387:3;16376:9;16372:19;16365:50;16466:6;16463:1;16452:21;16446:3;16435:9;16431:19;16424:50;16511:6;16505:3;16494:9;16490:19;16483:35;-1:-1:-1;;;;;16559:6:44;16555:47;16549:3;16538:9;16534:19;16527:76;-1:-1:-1;;;;;16644:6:44;16640:47;16634:3;16623:9;16619:19;16612:76;16754:1;16750;16745:3;16741:11;16737:19;16729:6;16725:32;16719:3;16708:9;16704:19;16697:61;16795:3;16789;16778:9;16774:19;16767:32;16293:4;16816:46;16857:3;16846:9;16842:19;16834:6;16816:46;:::i;:::-;16808:54;15945:923;-1:-1:-1;;;;;;;;;;15945:923:44:o;17637:184::-;17707:6;17760:2;17748:9;17739:7;17735:23;17731:32;17728:52;;;17776:1;17773;17766:12;17728:52;-1:-1:-1;17799:16:44;;17637:184;-1:-1:-1;17637:184:44:o;17826:903::-;18069:2;18058:9;18051:21;18032:4;18095:45;18136:2;18125:9;18121:18;18113:6;18095:45;:::i;:::-;18188:9;18180:6;18176:22;18171:2;18160:9;18156:18;18149:50;18219:6;18254;18248:13;18285:6;18277;18270:22;18320:2;18312:6;18308:15;18301:22;;18379:2;18369:6;18366:1;18362:14;18354:6;18350:27;18346:36;18417:2;18409:6;18405:15;18438:1;18448:252;18462:6;18459:1;18456:13;18448:252;;;18552:2;18548:7;18539:6;18531;18527:19;18523:33;18518:3;18511:46;18580:40;18613:6;18604;18598:13;18580:40;:::i;:::-;18655:2;18678:12;;;;18570:50;;-1:-1:-1;18643:15:44;;;;;18484:1;18477:9;18448:252;;;-1:-1:-1;18717:6:44;;17826:903;-1:-1:-1;;;;;;;;17826:903:44:o;18734:289::-;18909:2;18898:9;18891:21;18872:4;18929:45;18970:2;18959:9;18955:18;18947:6;18929:45;:::i;:::-;18921:53;;19010:6;19005:2;18994:9;18990:18;18983:34;18734:289;;;;;:::o;19404:127::-;19465:10;19460:3;19456:20;19453:1;19446:31;19496:4;19493:1;19486:15;19520:4;19517:1;19510:15;19536:372;19574:1;19615;19612;19601:16;19651:1;19648;19637:16;19672:3;19662:134;;19718:10;19713:3;19709:20;19706:1;19699:31;19753:4;19750:1;19743:15;19781:4;19778:1;19771:15;19662:134;-1:-1:-1;;19812:21:44;;-1:-1:-1;;19835:15:44;;19808:43;19805:69;;;19854:18;;:::i;:::-;19888:14;;;19536:372;-1:-1:-1;;;19536:372:44:o;19913:237::-;19951:7;20028:1;20025;20014:16;20010:1;20007;19996:16;19992:39;20065:11;20062:1;20051:26;20040:37;;20108:11;20099:7;20096:24;20086:58;;20124:18;;:::i;:::-;20086:58;19913:237;;;;:::o;20155:192::-;20192:3;20239:5;20236:1;20225:20;20273:7;20269:12;20260:7;20257:25;20254:51;;20285:18;;:::i;:::-;-1:-1:-1;;20321:20:44;;20155:192;-1:-1:-1;;20155:192:44:o","linkReferences":{},"immutableReferences":{"8389":[{"start":870,"length":32},{"start":1087,"length":32},{"start":3369,"length":32},{"start":3664,"length":32},{"start":3735,"length":32},{"start":3800,"length":32}],"8392":[{"start":1241,"length":32},{"start":3329,"length":32}],"8395":[{"start":978,"length":32},{"start":4011,"length":32},{"start":6582,"length":32},{"start":7005,"length":32},{"start":7135,"length":32},{"start":7323,"length":32}],"8397":[{"start":1181,"length":32},{"start":1299,"length":32}],"8399":[{"start":731,"length":32},{"start":1014,"length":32},{"start":3932,"length":32}],"8401":[{"start":911,"length":32},{"start":3848,"length":32}],"8403":[{"start":1126,"length":32},{"start":3891,"length":32},{"start":5554,"length":32}],"8406":[{"start":585,"length":32},{"start":3409,"length":32}],"8409":[{"start":514,"length":32},{"start":2911,"length":32}],"8412":[{"start":834,"length":32},{"start":3019,"length":32}],"8415":[{"start":1338,"length":32},{"start":2965,"length":32}],"8421":[{"start":692,"length":32},{"start":3111,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"createToken(string,string)","signatureHash4":"0x2f2f2d56","signatureHash32":"0x2f2f2d566d84ef3cc2e3aea406e2dbde759053fd6221738b02c19590b33dd0d9"},{"signature":"createTokenWithBlink(string,string,uint256,address[])","signatureHash4":"0xdf517ddf","signatureHash32":"0xdf517ddf3f238e7f99c44b2b5094be396fab9c2bd3e98a38a265819cce176dcb"},{"signature":"DEAD()","signatureHash4":"0x03fd2a45","signatureHash32":"0x03fd2a45e4e9a30abc8ac3256509917cadcd5e1844b2f19e7167e41b8181284b"},{"signature":"defaultFee()","signatureHash4":"0x5a6c72d0","signatureHash32":"0x5a6c72d03f1150bd92ff8ffe0b187c79edc185f56e7e6aa0a53d3172a53b827f"},{"signature":"defaultTickSpacing()","signatureHash4":"0xbf11b4d5","signatureHash32":"0xbf11b4d59f2618f35cc435a7ddd4d26aa5fdca8e944a4944810e7de3a0949496"},{"signature":"dividendSweeper()","signatureHash4":"0x223a980b","signatureHash32":"0x223a980b88764328045ed9f3f0521719fa77f3d10bb3d92c32bf62905e520342"},{"signature":"feeCollector()","signatureHash4":"0xc415b95c","signatureHash32":"0xc415b95c09c7e90f8c299832d8e0d7df8a5b154ae0ac7eb20de39b58b93e210c"},{"signature":"feeCollectorAddress()","signatureHash4":"0xf108e225","signatureHash32":"0xf108e225d5d7316fbd96b89cf8309369bdf903ea56aeeff33f209d15b48e9403"},{"signature":"genesisCreator()","signatureHash4":"0xf700f06e","signatureHash32":"0xf700f06e3a8022be74ce3ec4773b90232aa596256519afcd99a76597580d0df2"},{"signature":"genesisFdvInStock()","signatureHash4":"0x4aa44534","signatureHash32":"0x4aa445349d2c04b9209eb7144d49fceb4b826fb8776f654438bd3ad35d6dbd5b"},{"signature":"genesisUsed()","signatureHash4":"0x25637fd6","signatureHash32":"0x25637fd6a2c8552179783818b0627a97ad250e01c71032be0ff5d7b46fd86c92"},{"signature":"getAllTokens()","signatureHash4":"0x2a5c792a","signatureHash32":"0x2a5c792aa23f4ff4f9aee1244235304367caae6a2d4803fe2319c55d7bf81fa0"},{"signature":"getTokenCount()","signatureHash4":"0x78a89567","signatureHash32":"0x78a89567fadc510c1a4bff3f2d272fd1b3b83967fae0604e2aa798944680ac34"},{"signature":"getTokenInfo(address)","signatureHash4":"0x1f69565f","signatureHash32":"0x1f69565f02ff7c1760ba5a9607b1eba1a0aee343866c982ce29f42a2d89db9a0"},{"signature":"getTokensByCreator(address)","signatureHash4":"0xd5c71275","signatureHash32":"0xd5c7127513733280e3a423676c5465bc0a5d7c26055ce898164f611b0d644e05"},{"signature":"getTokensRange(uint256,uint256)","signatureHash4":"0x4690b68d","signatureHash32":"0x4690b68d87a6efab9f5ea71164b39bc811dfb7d6835faf630cb22180744acf06"},{"signature":"hook()","signatureHash4":"0x7f5a7c7b","signatureHash32":"0x7f5a7c7bdca9de90f9a6519c8d200a03eeda3484497129351fe5e935bcecff7f"},{"signature":"hookAddress()","signatureHash4":"0x32a3cf96","signatureHash32":"0x32a3cf969100d19949ba64e7a90c7e413bcdad92c4ed55209ca8179c3e36f850"},{"signature":"isLaunchpadToken(address)","signatureHash4":"0x47868b32","signatureHash32":"0x47868b324b05e003c73092bc471c99bb1d2e94847ba5396aa04fb228f58c8655"},{"signature":"launchFdvInStock()","signatureHash4":"0x11b1868f","signatureHash32":"0x11b1868f16f993c56136c5c5e9363a9e3b2cb7c55f12ff145863ffed69ade663"},{"signature":"LAUNCH_SUPPLY()","signatureHash4":"0xfb1ace18","signatureHash32":"0xfb1ace186fd5d1886c283daba53d40052d4fbd4ffe218cef003cbb02c31328a4"},{"signature":"MAX_BLINK_DURATION()","signatureHash4":"0x03bdd5cf","signatureHash32":"0x03bdd5cfdde56cbb42dcbb16b7040915df122469f201596104c2f88e3ed6544b"},{"signature":"poolKeyOf(address)","signatureHash4":"0x8652edf9","signatureHash32":"0x8652edf940896e65d3297262244d3a68aed5fd2743a3980865d47962a9d88e64"},{"signature":"poolManager()","signatureHash4":"0xdc4c90d3","signatureHash32":"0xdc4c90d3c2342c5afe26871a21a4ecf482fcb45ae1ac8294d1dcff7a134352c0"},{"signature":"positionManager()","signatureHash4":"0x791b98bc","signatureHash32":"0x791b98bc38d035871370995f0afa1d26676383e34628f71308157d4e9c5e95f9"},{"signature":"stock()","signatureHash4":"0xbdf3c4ae","signatureHash32":"0xbdf3c4ae4ce31ea5704d8b8cecee33f1d2784a913d120e330599f9f46c025854"},{"signature":"tokenImplementation()","signatureHash4":"0x2f3a3d5d","signatureHash32":"0x2f3a3d5d1dc29e442f8f3808d86af2aaed29caabadb3a99fb676d3f19e79fbde"},{"signature":"tokenizedStock()","signatureHash4":"0x4eec9e09","signatureHash32":"0x4eec9e09e31199c5c42576aff183626ca7e66b2b1c8be0238c9c2b909ac02401"}],"event":[{"signature":"TokenLaunched(address,address,bytes32,uint256,string,string,uint256,uint64,uint256)","signatureHash4":"0x11f71bf8","signatureHash32":"0x11f71bf8da8f31e2f8c7696deda04a74c37d87f50b9a4f019c8bfc1add13a4df"}],"error":[{"signature":"EmptyName()","signatureHash4":"0x2ef13105","signatureHash32":"0x2ef131051921ac1500c097e497a691f596827ccfeb2703bc406b6c5e1fd0bb26"},{"signature":"EmptySymbol()","signatureHash4":"0x198c27f6","signatureHash32":"0x198c27f65e3907c62c92c38d5f89703a806bc0adfb424866c5fb0d1c955c35e8"},{"signature":"EmptyWhitelist()","signatureHash4":"0xd302698f","signatureHash32":"0xd302698f202a8aebc2815d1b41e19485ae32462e0bd6c123cf26456f9c639584"},{"signature":"FailedDeployment()","signatureHash4":"0xb06ebf3d","signatureHash32":"0xb06ebf3d5067824a3fe5d5ba19471e035a7de6c88dac362c77b162830a5b9093"},{"signature":"InsufficientBalance(uint256,uint256)","signatureHash4":"0xcf479181","signatureHash32":"0xcf4791818fba6e019216eb4864093b4947f674afada5d305e57d598b641dad1d"},{"signature":"InvalidBlinkDuration(uint256,uint256)","signatureHash4":"0x7a530e88","signatureHash32":"0x7a530e88db131717ec3c806233df8263ede4ca74b28f44f2b4ef62360473e768"},{"signature":"InvalidRange(uint256,uint256)","signatureHash4":"0x2457cde7","signatureHash32":"0x2457cde7ae4cb8113b9cc103c3906e10e19c2a639e9c866b26c29929a35621fa"},{"signature":"LaunchPriceOutOfRange(uint256)","signatureHash4":"0xbd7e0d43","signatureHash32":"0xbd7e0d43fd4c6060848f4a68626bf964d9d047ed9a4d09a0fd74cdb5f85b91b9"},{"signature":"NoLiquidityMinted()","signatureHash4":"0xf5648805","signatureHash32":"0xf56488053cd1045b8547aa64f407fa8c0dd5e2dbef318de63f0fca0a2367551e"},{"signature":"PoolInitializationFailed()","signatureHash4":"0xed1f0c2c","signatureHash32":"0xed1f0c2c51ff1e5696778fba709942a6091910bc24dd1947e180c8a321dcb0e2"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"},{"signature":"UnknownToken(address)","signatureHash4":"0x81a3b1be","signatureHash32":"0x81a3b1be793a33711a37ddbe59cab61462924094bee93f89ee4f8da7f0005496"},{"signature":"ZeroAddress()","signatureHash4":"0xd92e233d","signatureHash32":"0xd92e233df2717d4a40030e20904abd27b68fcbeede117eaaccbbdac9618c8c73"},{"signature":"ZeroLaunchValuation()","signatureHash4":"0xc881579e","signatureHash32":"0xc881579ec3174c23e733e3173ec40b7bd55617cf101affb7aecf56b214492787"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"4663","address":"0x160Ea85a96DF909EAC3f79b14c7A69200ceb4898"}