File: blk03647.txt
d/Foundry USA Pool #dropgold/, text/plain;charset=utf-8 5{"tokenid":"7610","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 ,{"p":"sns","op":"reg","name":"susanoo.sats"}h! text/plain;charset=utf-8 "tokenid": "5698", https://trustless.computer https://trustless.computer text/plain;charset=utf-8 "tokenid": "416", text/plain;charset=utf-8 9{"tokenid": "1350","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "381", text/plain;charset=utf-8 "tokenid": "8562", text/plain;charset=utf-8 "tokenid": "681", text/plain;charset=utf-8 "tokenid": "611", text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 "tokenid": "1117", text/plain;charset=utf-8 "tokenid": "1116", text/plain;charset=utf-8 "tokenid": "1115", text/plain;charset=utf-8 "tokenid": "8880", text/plain;charset=utf-8 "tokenid": "3332", text/plain;charset=utf-8 "tokenid": "2220", text/plain;charset=utf-8 "tokenid": "3336", text/plain;charset=utf-8 "tokenid": "3339", text/plain;charset=utf-8 "tokenid": "3330", text/plain;charset=utf-8 "tokenid": "3331", text/plain;charset=utf-8 "tokenid": "1119", text/plain;charset=utf-8 "tokenid": "6661", text/plain;charset=utf-8 "tokenid": "265", text/plain;charset=utf-8 ?{ "p": "grc-721", "op": "mint", "id": "1", "tokenid": "574"}h! text/plain;charset=utf-8 ?{ "p": "grc-721", "op": "mint", "id": "1", "tokenid": "571"}h! text/plain;charset=utf-8 "tokenid": "7585", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 "tokenid": "8384", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"27773"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"10000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! text/plain;charset=utf-8 "tokenid": "8889", text/plain;charset=utf-8 {"p":"brc-721","op":"mint","tick":"Bitcoin-mfers","id":"8122166","ipfs":"ipfs://QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! d/Foundry USA Pool #dropgold/) text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! text/plain;charset=utf-8 5{"tokenid":"4280","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4287","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4286","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4282","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4283","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4288","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4285","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4284","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4290","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4289","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4281","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7615","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7618","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7617","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7614","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7613","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"9430","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7619","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7616","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7611","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7612","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 7{"tokenid": "14","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"btcsenders.btc"}h! text/plain;charset=utf-8 0{"p":"sns","op":"reg","name":"btcsenders.magic"}h! text/plain;charset=utf-8 &{"p":"sns","op":"reg","name":".magic"}h! text/plain;charset=utf-8 7{"tokenid": "21","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "96","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "94","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "93","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "38","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "39","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 ({"p":"sns","op":"reg","name":"ed.magic"}h! text/plain;charset=utf-8 7{"tokenid": "46","p": "grc-721","op": "mint","id": "1"}h! @j>=:BTC/BTC:thor1wx5av89rghsmgh2vh40aknx7csvs7xj2cr474n:25633079 w @j>=:BTC/BTC:thor1wx5av89rghsmgh2vh40aknx7csvs7xj2cr474n:31547340Re> FjDOUT:A31FA88BA7CA167C25B0CCB0D9206668D0ED3FC2A5869C6944A5E28FFF93F59B FjDOUT:5AF766D7E1E91EF5C226F6F0AD5E9E59BFE34A196C72D04C170B1A0240B2D4EA FjDOUT:CA9FA6EED34488AB7E735DD7C200ACC134F1A5B30A4289EC21BA39E3CFB5ADAB FjDOUT:A72878DEFD38D4D2E48C3F12F9859D2383952488F9DFA2373DC712F59016FEA7 FjDOUT:0C64603226BA0CA49E706573FA06489EE4B91ED6FFE6A00EEA4E16D530B9FB72 FjDOUT:6BCA97D41F1D9ACF362F1906A387EA103FA1957524111E93779E6D8D56A91F07 text/plain;charset=utf-8 "tokenid": "9098", text/plain;charset=utf-8 "tokenid": "7272", text/plain;charset=utf-8 "tokenid": "7749", text/plain;charset=utf-8 7{"tokenid": "53","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "42","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "62","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "61","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "43","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "54","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "57","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "60","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "67","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "56","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "52","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "65","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "63","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "64","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"lionheart.sats"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 "tokenid": "2714", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"3000"}h! text/plain;charset=utf-8 8{"tokenid": "168","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 5{"tokenid":"4678","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "1112", text/plain;charset=utf-8 5{"tokenid":"7632","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4123","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 "tokenid": "1114", text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 5{"tokenid":"6123","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"4000"}h! text/plain;charset=utf-8 5{"tokenid":"7123","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 "tokenid": "1113", text/plain;charset=utf-8 "tokenid": "1110", text/plain;charset=utf-8 5{"tokenid":"3910","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "7351", text/plain;charset=utf-8 5{"tokenid":"5912","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7456","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 7{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"80"}h! text/plain;charset=utf-8 ;{"p":"sns","op":"reg","name":"NationalDemocraticParty.btc"}h! text/plain;charset=utf-8 <{"p":"sns","op":"reg","name":"NationalDemocraticParty.sats"}h! text/plain;charset=utf-8 7{"tokenid": "69","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "168","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"10000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! text/plain;charset=utf-8 6{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"mxrc","amt":"5500"}h! text/plain;charset=utf-8 9{"tokenid": "1688","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "987", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 >{"p":"brc-20","op":"transfer","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 "tokenid": "6752", text/plain;charset=utf-8 5{"tokenid":"4894","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "928", text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"hsac","amt":"10000"}h! text/plain;charset=utf-8 "tokenid": "1680", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"3500"}h! text/plain;charset=utf-8 "tokenid": "4999", text/plain;charset=utf-8 "tokenid": "199", https://trustless.computer text/plain;charset=utf-8 text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"Ospy","amt":"25000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"xing","amt":"10000"}h! @j>=:BTC/BTC:thor1wx5av89rghsmgh2vh40aknx7csvs7xj2cr474n:31547340 {"type":"reveal","protocol":{"name":"BRC721","version":"0.4.0"},"content":"{\"weight\":1,\"metadataURL\":\"https://ipfs.io/ipfs/QmZhuqcFmZJNYHvBWRwALrEhh4d2zrm41anmUp8bs8rWs2/\",\"collectionInscriptionId\":\"05ff99b4e386a980d34ff331346c237eb1148582e66dad9597f6e9e8161c1dcdi0\"}","contentSignature":"304502204193b682826b449adbf78a39e665281868add0b70f3a5b916883cd73291dced3022100cb4ab3fc4831dd6cfaafa81abd29bbd57a2ad961ae87ccd067bf127cd9f7b04c"}h! text/plain;charset=utf-8 8{"tokenid": "688","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 ,{"p":"sns","op":"reg","name":"wodemaya.btc"}h! FjDOUT:B73D1ECAD06EC79417F408067CF7E977CC10F148BD4A833CC241BA377B0C9BEC text/plain;charset=utf-8 7{"tokenid": "70","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "89","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "78","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "79","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "76","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "71","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "75","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "83","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "86","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "87","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "81","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "90","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "97","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "85","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "72","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 7{"tokenid": "74","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"4000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 "tokenid": "1189", text/plain;charset=utf-8 "tokenid": "1185", text/plain;charset=utf-8 "tokenid": "1126", text/plain;charset=utf-8 "tokenid": "1226", text/plain;charset=utf-8 5{"tokenid":"3455","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3456","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3457","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "1569", text/plain;charset=utf-8 "tokenid": "1216", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 "tokenid": "8563", text/plain;charset=utf-8 "tokenid": "1567", text/plain;charset=utf-8 "tokenid": "1125", text/plain;charset=utf-8 "tokenid": "5691", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! text/plain;charset=utf-8 "tokenid": "158", text/plain;charset=utf-8 8{"tokenid": "178","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! text/plain;charset=utf-8 "tokenid": "8686", text/plain;charset=utf-8 8{"tokenid": "198","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"2280"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"WHEE","amt":"7000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"vamp","amt":"1000"}h! text/plain;charset=utf-8 8{"tokenid": "301","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 "tokenid": "679", text/plain;charset=utf-8 9{ "tokenid": "67","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "302","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 8{"tokenid": "303","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! @j>=:BTC/BTC:thor1wx5av89rghsmgh2vh40aknx7csvs7xj2cr474n:22861079 text/plain;charset=utf-8 "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 LN{"p":"sns","op":"reg","name":"@everyone visit https://btcsenders.xyz now.xbt"}h! text/plain;charset=utf-8 8{"tokenid": "101","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ordi","amt":"5990"}h! text/plain;charset=utf-8 8{"tokenid": "102","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "939","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "505","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "104","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "313","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "717","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "151","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "616","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "929","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "103","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "202","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "515","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "919","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "737","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "232","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "212","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "404","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "707","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "727","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "838","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "818","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "252","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "208","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "588","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "218","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "488","p": "grc-721","op": "mint","id": "1"}h! <j:SWAP:THOR.RUNE:thor1t2pfscuq3ctgtf5h3x7p6zrjd7e0jcvuszyvt5o <j:SWAP:THOR.RUNE:thor1t2pfscuq3ctgtf5h3x7p6zrjd7e0jcvuszyvt5n :j8SWAP:btc/btc:thor1t2pfscuq3ctgtf5h3x7p6zrjd7e0jcvuszyvt5Y :j8SWAP:btc/btc:thor1t2pfscuq3ctgtf5h3x7p6zrjd7e0jcvuszyvt5E; :j8SWAP:btc/btc:thor1t2pfscuq3ctgtf5h3x7p6zrjd7e0jcvuszyvt5 text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"hsac","amt":"10000"}h! text/plain;charset=utf-8 <{ "tokenid": "5718","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5731","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5726","p": "grc-721","op": "mint","id": "1" }h! https://trustless.computer text/plain;charset=utf-8 <{ "tokenid": "5720","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5737","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"20000"}h! text/plain;charset=utf-8 <{ "tokenid": "5733","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5737","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5722","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5738","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5730","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5734","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5724","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5727","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5721","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5725","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5729","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5728","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5736","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5735","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5732","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 <{ "tokenid": "5723","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"1005"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"13831"}h! text/plain;charset=utf-8 "tokenid": "9852", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"4000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 "tokenid": "6788", text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 "tokenid": "6790", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"4000"}h! text/plain;charset=utf-8 5{"tokenid":"9999","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 7{"tokenid":"454","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "6787", text/plain;charset=utf-8 9{"tokenid": "1353","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 -{"p":"sns","op":"reg","name":"Zionfelix.btc"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"3000"}h! {"protocol":{"name":"BRC721","version":"0.4.0"},"type":"inscription","content":"{\"collectionInscriptionId\":\"ae8973784086d1ee569dd9865b4ed1ed16e96da92fdcec71cea05d67a4d7c3e3i0\",\"price\":20000}","contentSignature":"3046022100da3bc07bbb19df3298176d36eb92fd88542f8f5975fa89e3e0b3ff372c6f3350022100eba1912f53c4e7f079ba8301c2c41cf45725695ad344770b4b6f4dfe0de1870d"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 :{"tokenid": "7000", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "4433", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "2211", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "7766", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "6655", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "3456", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "3322", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "1188", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "765", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "9900", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "2000", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "8000", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "5544", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "1100", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "5588", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "654", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"tokenid": "8877", "p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! "name": "satoshi.iam" text/plain;charset=utf-8 6{"p":"brc-20","op":"transfer","tick":"Oshi","amt":"2"}h! text/plain;charset=utf-8 "tokenid": "8869", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 6{"p":"brc-20","op":"transfer","tick":"Oshi","amt":"5"}h! text/plain;charset=utf-8 3{"p":"sns","op":"reg","name":"JODYHiGHROLLER.mllt"}h! text/plain;charset=utf-8 6{"p":"brc-20","op":"transfer","tick":"Oshi","amt":"3"}h! text/plain;charset=utf-8 {"p": "brc-721","op": "mint","tick":"Bitcoin BEANZ","id":"11055100","ipfs":"ipfs://QmdYeDpkVZedk1mkGodjNmF35UNxwafhFLVvsHrWgJoz6A/beanz_metadata/"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! text/plain;charset=utf-8 text/plain;charset=utf-8 +{"p":"sns","op":"reg","name":"tofino.sats"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8241"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8257"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! text/plain;charset=utf-8 8{"tokenid": "788","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "818","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"zbit","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 8{"tokenid": "266","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8246"}h! text/plain;charset=utf-8 "tokenid": "3335", text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8249"}h! text/plain;charset=utf-8 8{"tokenid": "878","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"zbit","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8242"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8250"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2507"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"PKMN","amt":"10000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 -{"p":"sns","op":"reg","name":"bitpepe.magic"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8243"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"4000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"4000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"zbit","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8247"}h! text/plain;charset=utf-8 "tokenid": "657", text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8254"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8244"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8256"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8255"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8251"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8248"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"HRDR","amt":"2000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8245"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8253"}h! text/plain;charset=utf-8 9{"tokenid": "656","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 6{"tokenid":"93","p":"grc-721","op":"mint","id":"8252"}h! text/plain;charset=utf-8 "tokenid": "108", text/plain;charset=utf-8 text/plain;charset=utf-8 "tokenid": "9998", text/plain;charset=utf-8 "tokenid": "101", text/plain;charset=utf-8 "tokenid": "118", text/plain;charset=utf-8 "tokenid": "5100", text/plain;charset=utf-8 5{"tokenid":"3256","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3756","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"7656","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"9966","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3856","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3656","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3295","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"4256","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"8866","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 4{"p":"brc-20","op":"mint","tick":"ocip","amt":"125"}h! text/plain;charset=utf-8 "tokenid": "007", {"protocol":{"name":"BRC721","version":"0.4.0"},"type":"inscription","content":"{\"collectionInscriptionId\":\"05ff99b4e386a980d34ff331346c237eb1148582e66dad9597f6e9e8161c1dcdi0\",\"price\":200000}","contentSignature":"3045022069ae4ffdfa33491234e29cc6548d8de2faa9f7696bc597cbab56f8c36c8a7be9022100db2b5866d79d055e076882a3578feeb736f9a0e2fd04129e18c405e493813110"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"Zionfelix.sats"}h! text/plain;charset=utf-8 "tokenid": "9991", text/plain;charset=utf-8 "tokenid": "301", text/plain;charset=utf-8 "tokenid": "1106", FjDOUT:5180C9BE8FC91229A831A774BA79F20519677B99ED367D192040DA15308FFA7D FjDOUT:84D9DAA579E9CA41BDC43DC160081C210CDCD6DF798EEB8A20B20D1E6EF0B83E FjDOUT:1369272238B630B0FD3EA8CF2F40DD0A038ACFC72ABC09589DF8A00762927A80 FjDOUT:4548552394DC830735CDB840132FA44E3486D3C303FD38C3637A48D34E8EA288 FjDOUT:ABD4A1AE6B340048527A2811872457AEE90512A5060D6CFD59F4898A46286B10 IjGREFUND:0530081F06F61FF3DF2A5B19E89C9F7F4CC949C34DD831DA2105A2727F8A27AF IjGREFUND:1C2B9FB7ED82FA8609AC1AEE180FA31A2CA89522649C56F42E054404F01ABF85 text/plain;charset=utf-8 "tokenid": "2716", text/plain;charset=utf-8 ;{"p":"brc-20","op":"transfer","tick":"nals","amt":"102392"}h! text/plain;charset=utf-8 ;{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"295000"}h! text/plain;charset=utf-8 ={ "tokenid": "7711","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 "tokenid": "2688", text/plain;charset=utf-8 "tokenid": "178", text/plain;charset=utf-8 "tokenid": "5688", text/plain;charset=utf-8 3{"p":"brc-20","op":"mint","tick":"BLUE","amt":"10"}h! text/plain;charset=utf-8 9{"tokenid": "1351","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"zbit","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 "tokenid": "4999", 2/5t?9(5@,5M/WS;}OVO[JTb@Is text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" FjDOUT:67C3FD2828463E5C7B8E4A20E37A1E1B619F90704046147B27E25D6A3F68BC2C text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" FjDOUT:89FFFF39E72AA3150A407CDCF2FF1388622EE292714F3C8D52360E16DE09A8BC text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 4{"tokenid":"332","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"334","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"335","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"337","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"336","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 ={ "tokenid": "7730","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7725","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7716","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7714","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7726","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7713","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7717","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7719","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7724","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7715","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7729","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7722","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7718","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7728","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7720","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7723","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7712","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7727","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 ={ "tokenid": "7721","p": "grc-721","op": "mint","id": "1" }h! text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/html;charset=utf-8 <meta charset="UTF-8"> <title>A simple template for launching your art on Bitcoin</title> Generative supports the most popular creative coding libraries. Simply uncomment the library you want to use below. Are we missing an important library? Let us know @generative_xyz. <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.min.js"></script> <!-- c2.min.js@1.0.0 <script sandbox="allow-scripts" type="text/javascript" src="https://cdn.generative.xyz/ajax/libs/c2/1.0.0/c2.min.js"></script> <!-- chromajs@2.4.2 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.4.2/chroma.min.js"></script> <!-- p5.grain.js@0.6.1 <script sandbox="allow-scripts" type="text/javascript" src="https://cdn.generative.xyz/ajax/libs/p5.grain/0.6.1/p5.grain.min.js"></M <!-- threejs@r124 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r124/three.min.js"></script> <!-- tonejs@14.8.49 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.49/Tone.js"></script> <!-- svgjs@3.1.2 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/svg.js/3.1.2/svg.min.js"></M <!-- aframejs@1.2.0 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/aframe/1.2.0/aframe.min.js"></script> <!-- babylonjs@5.47.0 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/babylonjs/5.47.0/babylon.js"></script> <!-- paperjs@0.12.17 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.1M 2.17/paper-full.min.js"></script> <!-- regljs@2.1.0 <script sandbox="allow-scripts" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/regl/2.1.0/regl.min.js"></script> <script type="text/javascript"> Add your script here Add your script here <script id="snippet-random-code" type="text/javascript"> // DO NOT EDIT THIS SECTION let seed = window.location.href.split('/').find(t => t.includes('i0')); if (seed == null) { const alphabet = "0123456789abcdefghijklmnopqrstuvwsyz"; seed = new URLSearchParams(window.location.search).get("seed") || Array(64).fill(0).map(_ => alphabet[(Math.random() * alphabet.length) | 0]).join('') + "i0"; let pattern = "seed="; for (let i = 0; i < seed.length - pattern.length; ++i) { if (seed.substring(i, i + pattern.length) == pattern) { seed = seed.substring(i + pattern.length); break; function cyrb128($) { let _ = 1779033703, u = 3144134277, i = 1013904242, l = 2773480762; for (let n = 0, r; n < $.length; n++) _ = u ^ Math.imul(_ ^ (r = $.charCodeAt(n)), 5M 97399067), u = i ^ Math.imul(u ^ r, 2869860233), i = l ^ Math.imul(i ^ r, 951274213), l = _ ^ Math.imul(l ^ r, 2716044179); return _ = Math.imul(i ^ _ >>> 18, 597399067), u = Math.imul(l ^ u >>> 22, 2869860233), i = Math.imul(_ ^ i >>> 17, 951274213), l = Math.imul(u ^ l >>> 19, 2716044179), [(_ ^ u ^ i ^ l) >>> 0, (u ^ _) >>> 0, (i ^ _) >>> 0, (l ^ _) >>> 0] function sfc32($, _, u, i) { return function () { u >>>= 0, i >>>= 0; var l M = ($ >>>= 0) + (_ >>>= 0) | 0; return $ = _ ^ _ >>> 9, _ = u + (u << 3) | 0, u = (u = u << 21 | u >>> 11) + (l = l + (i = i + 1 | 0) | 0) | 0, (l >>> 0) / 4294967296 // IMPORTANT: Instead of Math.random(), use this function mathRand() for random number generation. // This function generates a random number between 0 and 1 with on-chain seed. let mathRand = sfc32(...cyrb128(seed)); width: 100% !important; height: 100% !important; object-fit: contain; position: fixed; left: 0; <script type="text/javascript"> const rand = mathRand(); function T1(rand) { // calculate raritM if (rand > 0.5) { return true; return false // window.$generativeTraits contain list traits for token // you need to populate a $generativeTraits object in the window object window.$generativeTraits = { "T1": T1(rand), console.log(window.$generativeTraits) Add your code here var canvas = document.querySelector('canvas'), ctx = canvas.getContext('2d'); // Setting the width and height of the canvas canvas.width = window.innerWidth; canvas.height = window.innerHeight; // Setting up the letters var letters = 'ABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLM letters = letters.split(''); // Setting up the columns var fontSize = 10, columns = canvas.width / fontSize; // Setting up the drops var drops = []; for (var i = 0; i < columns; i++) { drops[i] = 1; // Setting up the draw function function draw() { ctx.fillStyle = 'rgba(0, 0, 0, .1)'; ctx.fillRect(0, 0, canvas.width, canvas.height); for (var i = 0; i < drops.length; i++) { var text = letters[Math.floor(Math.random() * letters.length)]; ctx.fillStyle = '#0f0'; ctx.fillText(text, i * fontSize, drops[i] * fontSize); drops[i]++; if (drops[i] * fontSize > canvas.height && Math.random() > .95) { drops[i] = 0; // Loop the animation setInterval(draw, 33); Add your code here text/plain;charset=utf-8 6{"tokenid":"4545","p":"grc-721","op": "mint","id":"1"}h! text/plain;charset=utf-8 8{"tokenid": "353","p": "grc-721","op": "mint","id": "1"}h! B$3R3?[18rK,(5@/WS;}O text/plain;charset=utf-8 ,{"p":"sns","op":"reg","name":"jezsats.sats"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 8{"tokenid": "292","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "393","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "191","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "373","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "898","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "383","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "262","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "363","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "767","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "272","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "787","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "959","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "757","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "676","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "696","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "171","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "969","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "282","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "797","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "858","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "161","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "160","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "898","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "991","p": "grc-721","op": "mint","id": "1"}h! =)6R3?(5@,5M39A/WS;}OJTb@Is text/plain;charset=utf-8 :{ "tokenid": "695","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 :{ "tokenid": "696","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"1073"}h! text/plain;charset=utf-8 "tokenid": "3939", text/plain;charset=utf-8 :{ "tokenid": "698","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "698", text/plain;charset=utf-8 :{ "tokenid": "697","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "1698", text/plain;charset=utf-8 "tokenid": "4899", text/plain;charset=utf-8 :{ "tokenid": "699","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "4898", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 /{"p":"sns","op":"reg","name":"megablends.sats"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"29000"}h! https://trustless.computer text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"tokenid":"1109","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"5566","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"tokenid":"4120","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"3009","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3250"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5499"}h! text/plain;charset=utf-8 5{"tokenid":"1999","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"tokenid":"5130","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"2000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"7773"}h! text/plain;charset=utf-8 5{"tokenid":"2790","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"tokenid":"6363","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"zbit","amt":"3000"}h! text/plain;charset=utf-8 "tokenid": "8000", text/plain;charset=utf-8 "tokenid": "2000", text/plain;charset=utf-8 "tokenid": "7000", text/plain;charset=utf-8 "tokenid": "4897", text/plain;charset=utf-8 "tokenid": "3475", text/plain;charset=utf-8 -{"p":"sns","op":"reg","name":"parsifal.sats"}h! text/plain;charset=utf-8 "tokenid": "4896", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 8{"tokenid": "311","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "318","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "316","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "313","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "312","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "315","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "317","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"20000"}h! {"protocol":{"name":"BRC721","version":"0.4.0"},"type":"inscription","content":"{\"collectionInscriptionId\":\"ae8973784086d1ee569dd9865b4ed1ed16e96da92fdcec71cea05d67a4d7c3e3i0\",\"price\":20000}","contentSignature":"3046022100da3bc07bbb19df3298176d36eb92fd88542f8f5975fa89e3e0b3ff372c6f3350022100eba1912f53c4e7f079ba8301c2c41cf45725695ad344770b4b6f4dfe0de1870d"}h! EjC=:ETH.ETH:0xbc739c6e30198845c8CBA4aC474d28C845EbF4C1:126161669:te:0 text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"7674"}h! text/plain;charset=utf-8 "tokenid": "8766", text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"2840"}h! text/plain;charset=utf-8 *{"p":"sns","op":"reg","name":" text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"10000"}h! text/plain;charset=utf-8 "tokenid": "1617", text/plain;charset=utf-8 "tokenid": "3350", text/plain;charset=utf-8 8{"p":"brc-20","op":"transfer","tick":"trac","amt":"800"}h! text/plain;charset=utf-8 "tokenid": "8181", text/plain;charset=utf-8 "tokenid": "7658", text/plain;charset=utf-8 "tokenid": "9394", text/plain;charset=utf-8 "tokenid": "236", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"7000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"10000"}h! text/plain;charset=utf-8 2{"p":"sns","op":"reg","name":"bitcoinreapers.btc"}h! Bj@=:ETH.ETH:0xf495f6616c194add230bc50FFD019A4d03132ffC:25572333::0 text/plain;charset=utf-8 5{"tokenid":"2211","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 {"tokenid":"2227","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2228","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2229","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2230","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2231","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2232","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2233","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2234","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2235","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2236","p":"grc-721","op":"mint" text/plain;charset=utf-8 5{"tokenid":"2221","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2239","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2237","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2224","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2238","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2223","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2240","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2225","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2226","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"tokenid": "1757","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1758","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1762","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1759","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1761","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1764","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1760","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1763","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 -{"p":"sns","op":"reg","name":"RiFFRAFF.mllt"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! EjC=:BNB.BNB:bnb1s2tvcmpz9k24mds8cxxjfp2kthwdskt9t5zjar:240625841:tr:0 CjA=:ETH.ETH:0x5a170716B9Aba46F9170f1c584968e7d52000B76:115662568::0 text/plain;charset=utf-8 "tokenid": "8181", EjC=:LTC.LTC:ltc1qne00w2ytvfvnmt0qksc42a4dn88h6dyk43l76g:58750313:tr:0 EjC=:BNB.BNB:bnb1xvlqvnpd6pucq3t3jn4spek85dq7vv63nqu27q:108513720:tr:0 text/plain;charset=utf-8 "tokenid": "3469", text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 "tokenid": "3470", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 "tokenid": "6357", text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"emersonsm.sats"}h! text/plain;charset=utf-8 6{"p":"brc-20","op":"transfer","tick":"Oshi","amt":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"3000"}h! text/plain;charset=utf-8 "tokenid": "1723", text/plain;charset=utf-8 "tokenid": "6485", GjE=:ETH.ETH:0x6e56cbb6d803869d5ee75b45ff87315f43df411a:1387902636:rg:30 text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"59640"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"58960"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"9635"}h! text/plain;charset=utf-8 ;{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"249654"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"28690"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"2654"}h! text/plain;charset=utf-8 F{"p":"sns","op":"reg","name":"@everyone-https://btcsenders.xyz/.pepe"}h! FjDOUT:C85D664B0A4431084F1711340A28ECBC89F8EA1D829ADA787E1B74E514FB7C2F FjDOUT:50A0E05C2D708C3325029903C04DE1FA1D210B128A7FD8F0C0B47CB59B23B7EF FjDOUT:CDA3D54EC02A3DA9AF27004115FA29A2C6DAE0C19C926BFE44ED1B6D63FD6C1F IjGREFUND:4B9B9A8D0D41A7CA5CD4C6F64B81FACF6C0A23A0F45FCA75A134F14FCCB15687 text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"9000"}h! text/plain;charset=utf-8 5{"tokenid":"2651","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2656","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2654","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2653","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2652","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2657","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"2655","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"9000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 4{"tokenid":"338","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"340","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"339","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"347","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"348","p":"grc-721","op":"mint","id":"1"}h! 2023-06-08T21:17:02+00:00S 2023-06-08T21:17:02+00:00"C/ 2023-06-08T21:18:52+00:00 text/plain;charset=utf-8 4{"tokenid":"349","p":"grc-721","op":"mint","id":"1"}h! https://trustless.computer ; '(,<2/5}83:?^/WS;}OVO[FGb text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x94a0e66de5aa2bbf012dc553f5db237eab8d6728248a963c8d339635dbd01b14"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x4be780e3020e0460ecbc52256de23c17b83227b199dfa474d17f9be162a28748"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x6e4b5df870c609ca68883799e285925eaf15b81608c5564765d07253644336d2"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x3dff632a6ce42485d3d700c4facc53af108b28ac2f0a18caa2fe2c84528d0b02"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0xdcf273e4431acb23ff3b1e0b666f76a83dedf5a616795717bfbd84c9dfe2a919"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0xf8b4a48222b10cc9349e9677429a378f1606213240cb9e3b0ae4412df55e9093"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x5099982461d02ea7a500b200e1216bb1511d7a73b2dfead408a6fc016e2feb91"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x5649e421749de27e61f0b6653b62d8013f921d633da89f490e034c3203b249f3"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x5e33f3db315bab576d3e20783e3f107219215aca229c86380124743525004ac1"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/plain;charset=utf-8 8{"tokenid": "220","p": "grc-721","op": "mint","id": "1"}h! 'A-,5M*;J:?^d7Gd6K/WS)hJ=oC;}OHhY text/plain;charset=utf-8 4{"tokenid":"343","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"346","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 4{"tokenid":"344","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 2{"p":"sns","op":"reg","name":"MiLLiONDOLLAR.mllt"}h! =)6R3?(5@39A/WS;}OJTb text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"30000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 8{"tokenid": "464","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "550","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "595","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "484","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "494","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "585","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "565","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "424","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "880","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "440","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "770","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "474","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "990","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "660","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "414","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "575","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "545","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "55556", text/plain;charset=utf-8 "tokenid": "55555", text/plain;charset=utf-8 text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"2000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"PSAT","amt":"1000"}h! text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 9{"tokenid": "3888","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "8008","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "8688","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "9888","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1280","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5643"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"scooby-doo.btc"}h! text/plain;charset=utf-8 ){"p":"sns","op":"reg","name":"toy.magic"}h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x3c227bbe460b2ce7bbafb035a5d2da599661f6af971452a183a8eb249e66a115"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x0a4210ff3419320c847faa101798f0e795b8b6e190f6eaa5aa87e77002b1699d"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0xb726eaf66f78081fb5c24facb26289f52a668b7b635b6670f5e7fb92078456a7"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0xecc447268fc675dcde0fd75688638ba3974d74bd91356212ed94923b90305719"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x94b57205dcfc046f94c79a0b1fea03b8b7fa2edc200c9bb46befa3ce0d2ba7f0"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0xf302f0ea1db5df02bef4e6520435b493640eff8cf840ac709d6b5e5f746b3f76"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"2500"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"3000"}h! text/plain;charset=utf-8 9{"tokenid": "6342","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6360","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6343","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6353","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6356","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6350","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6359","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6348","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6349","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6358","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6366","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6361","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6354","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6345","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6344","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6351","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6364","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 H{"p":"brc-20","op":"deploy","tick":" rd","max":"21000000","lim":"1000"}h! text/plain;charset=utf-8 9{"tokenid": "6352","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6363","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6347","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6357","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6367","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"25000"}h! text/plain;charset=utf-8 9{"tokenid": "6355","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6365","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6362","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6346","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "4089", text/plain;charset=utf-8 "tokenid": "4189", text/plain;charset=utf-8 "tokenid": "978", DjB=:BNB.BNB:bnb1kth3xytju86qpmqzv274dwp95ejjse2d3yt64u:58792578:tr:0 text/plain;charset=utf-8 "tokenid": "975", text/plain;charset=utf-8 "tokenid": "972", text/plain;charset=utf-8 "tokenid": "974", text/plain;charset=utf-8 "tokenid": "977", text/plain;charset=utf-8 "tokenid": "976", text/plain;charset=utf-8 "tokenid": "973", text/plain;charset=utf-8 9{"tokenid": "5342","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5365","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5357","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5360","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5343","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5353","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5351","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5345","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5352","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5354","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5348","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5344","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5355","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5346","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5350","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "4586", text/plain;charset=utf-8 9{"tokenid": "5363","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5356","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5358","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5362","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5364","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5361","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5359","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5347","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5349","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 5{"tokenid":"5353","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"tokenid":"5656","p":"grc-721","op":"mint","id":"1"}h! $(!'*"*+$--&1/(52+84-<g91t?9&+D6/@(5@,5M81C93G;4I<6L>7N?8P?9R 4d@:SA:TA;TA;U/WS;}O:Df@Is text/plain;charset=utf-8 "tokenid": "7423", text/plain;charset=utf-8 5{"tokenid":"5454","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "4056", text/plain;charset=utf-8 "tokenid": "5065", CjA=:BNB.BNB:bnb1ljgnx32gkgl5yaeu4c30pk75g2e4r7d4rcje7e:154108035::0 FjD=:ETH.ETH:0xBa4608694Bc7B971505F02D0bd1d02D10A673e12:5451246250:tr:0 text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"60000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"2160"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"8000"}h! text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"10000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"1000"}h! text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"2750"}h! text/plain;charset=utf-8 text/plain;charset=utf-8 text/plain;charset=utf-8 .eternaldigitalassetsh! text/plain;charset=utf-8 8{"p":"brc-20","op":"transfer","tick":"BXDX","amt":"800"}h! text/plain;charset=utf-8 ;{"p":"brc-20","op":"transfer","tick":"X22X","amt":"582772"}h! text/plain;charset=utf-8 8{"p":"brc-20","op":"transfer","tick":"doge","amt":"800"}h! text/plain;charset=utf-8 8{"tokenid": "112","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "113","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"50000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"$wap","amt":"10000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"50000"}h! text/plain;charset=utf-8 9{"tokenid": "1750","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1756","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "789", text/plain;charset=utf-8 8{"tokenid": "116","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1755","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "3888","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "9888","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1751","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "972", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 9{"tokenid": "5555","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "420", text/plain;charset=utf-8 9{"tokenid": "1757","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "1752","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "971", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"1000"}h! text/plain;charset=utf-8 9{"tokenid": "7888","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 {"p": "brc-721", "op": "mint","tick": "Bitcoin Bored Ape Yacht Club","id":"8122844","ipfs":"ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq"}h! text/plain;charset=utf-8 9{"tokenid": "1754","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"16708"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 9{"tokenid": "1753","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "9888","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 8{"tokenid": "414","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "585","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "616","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "545","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "565","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "707","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "454","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "484","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "404","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "676","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "717","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "424","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "515","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "494","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "505","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "474","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "656","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "595","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "575","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "696","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "464","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"10000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"23679"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"zbit","amt":"2000"}h! text/plain;charset=utf-8 5{"tokenid":"2121","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 {"tokenid":"2127","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2128","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2129","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2130","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2131","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2132","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2133","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2134","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2135","p":"grc-721","op":"mint","id":"1"}{"tokenid":"2136","p":"grc-721","op":"mint" text/plain;charset=utf-8 5{"tokenid":"2125","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "5354", text/plain;charset=utf-8 9{"tokenid": "6666","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "9379","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"50000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"ORNG","amt":"20000"}h! text/plain;charset=utf-8 9{"tokenid": "7980","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 "tokenid": "7776", text/plain;charset=utf-8 "tokenid": "5665", text/plain;charset=utf-8 "tokenid": "3580", text/plain;charset=utf-8 "tokenid": "1668", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"9500"}h! text/plain;charset=utf-8 5{"tokenid":"2123","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"39499"}h! text/plain;charset=utf-8 5{"tokenid":"2137","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 "tokenid": "1818", text/plain;charset=utf-8 5{"tokenid":"2122","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 5{"tokenid":"2124","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"60000"}h! text/plain;charset=utf-8 9{"tokenid": "8694","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "4980","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 5{"tokenid":"2138","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"17773"}h! text/plain;charset=utf-8 {"p":"brc-721","op":"mint","tick":"Bitcoin Bored Ape Yacht Club","id":"8122844","ipfs":"ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 5{"tokenid":"2139","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"50000"}h! text/plain;charset=utf-8 ){"p":"sns","op":"reg","name":"#50#.sats"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"1448"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"30000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"8000"}h! text/plain;charset=utf-8 5{"tokenid":"2140","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 9{"tokenid": "6677","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5679","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 9{"tokenid": "4539","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7841","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"2876"}h! text/plain;charset=utf-8 5{"tokenid":"2126","p":"grc-721","op":"mint","id":"1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"10000"}h! text/plain;charset=utf-8 "tokenid": "985", text/plain;charset=utf-8 text/plain;charset=utf-8 :{ "tokenid": "101","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 :{ "tokenid": "104","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 :{ "tokenid": "105","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 :{ "tokenid": "102","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 :{ "tokenid": "103","p": "grc-721", "op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 9{"tokenid": "2000","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"4200"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 /{"p":"sns","op":"reg","name":"Bitcoin&co.sats"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"BTCenergy.sats"}h! text/plain;charset=utf-8 ;{"p":"brc-20","op":"transfer","tick":"kBRC","amt":"160000"}h! @j>=:BTC/BTC:thor1wx5av89rghsmgh2vh40aknx7csvs7xj2cr474n:91894425 text/plain;charset=utf-8 /{"p":"sns","op":"reg","name":"ssaattss.unisat"}h! text/plain;charset=utf-8 +{"p":"sns","op":"reg","name":" OjLLs:ETH.FOX-52D:0x48efB6a72060fa88FbA1EE21A730EBe2dd6dc09E:3382764803078:ss:30 text/plain;charset=utf-8 "tokenid": "5089", text/plain;charset=utf-8 "tokenid": "5189", text/plain;charset=utf-8 "tokenid": "5256", text/plain;charset=utf-8 "tokenid": "5287", text/plain;charset=utf-8 I{"p":"brc-20","op":"deploy","tick":"STEK","max":"369000000","lim":"3690"}h! text/plain;charset=utf-8 9{"tokenid": "6369","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6382","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6389","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6374","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6380","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6386","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6370","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6368","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6387","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6375","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6379","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6381","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6377","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6373","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6388","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6383","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6384","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6378","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6372","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6385","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6376","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "6371","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "727","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 8{"tokenid": "737","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5386","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5382","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5389","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5371","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5388","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5387","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5373","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5367","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5379","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5372","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5384","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5383","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5374","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5370","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5385","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"VMPX","amt":"9320"}h! text/plain;charset=utf-8 9{"tokenid": "5368","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5369","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5380","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5376","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5375","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5366","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5377","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5378","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "5381","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7342","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7345","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7354","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7357","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7346","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7364","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7348","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7349","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7344","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7360","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7359","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7350","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7361","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7353","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7347","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7352","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7355","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7356","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7365","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7358","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7363","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7351","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7362","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 9{"tokenid": "7343","p": "grc-721","op": "mint","id": "1"}h! DjB=:ETH.ETH:0x144F788AE1350ee059ed638f2B3302F2847426e2:13967690:tr:0 text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"4000"}h! KjI=:BNB.BUSD-BD1:bnb1lkq0z6gxxf9c58fh7t3axmkx9grxvlvhrqnegm:7254451187:tr:0 text/plain;charset=utf-8 0{"p":"sns","op":"reg","name":"kennypowers.mllt"}h! text/plain;charset=utf-8 8{"p":"brc-20","op":"transfer","tick":"samy","amt":"575"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"5000"}h! https://trustless.computer 2/5t?9,5M:?^VO[JTb@Is text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 "tokenid": "113", text/plain;charset=utf-8 "tokenid": "115", text/plain;charset=utf-8 "tokenid": "117", text/plain;charset=utf-8 "tokenid": "116", text/plain;charset=utf-8 *{"p":"sns","op":"reg","name":"| text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":" text/plain;charset=utf-8 /{"p":"sns","op":"reg","name":"Btcmanager.sats"}h! text/plain;charset=utf-8 "tick": "Bitrocks", "ipfs": "ipfs://QmYrk1ntCovQhVVM3AEWvno3sAtGDd2VxBbH8Ux33qU4XF" text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"2876"}h! text/plain;charset=utf-8 "tokenid": "677", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"1000"}h! text/plain;charset=utf-8 "tokenid": "691", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 .{"p":"sns","op":"reg","name":"Xxxbtcxxx.sats"}h! text/plain;charset=utf-8 <{"p":"brc-20","op":"transfer","tick":"sats","amt":"1000000"}h! text/plain;charset=utf-8 "tokenid": "690", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"2000"}h! 2023-06-08T21:17:02+00:00S 2023-06-08T21:17:02+00:00"C/ 2023-06-08T21:19:02+00:00k text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"1000"}h! text/plain;charset=utf-8 9{"tokenid": "4444","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! https://trustless.computer text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 9{"tokenid": "1111","p": "grc-721","op": "mint","id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 "tokenid": "786", text/plain;charset=utf-8 <{"tokenid": "7211", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 <{"tokenid": "7214", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 <{"tokenid": "7215", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 <{"tokenid": "7218", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 <{"tokenid": "7212", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 <{"tokenid": "7219", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 "tokenid": "112", text/plain;charset=utf-8 "tokenid": "650", text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"oxbt","amt":"30000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"5500"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"ohms","amt":"4000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1500"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"samy","amt":"13942"}h! text/plain;charset=utf-8 <{"tokenid": "7217", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3500"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 "tokenid": "7210", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$ text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"ohms","amt":"16000"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 <{"tokenid": "7216", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"PSAT","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 5{"p":"brc-20","op":"mint","tick":"$wap","amt":"1000"}h! text/plain;charset=utf-8 <{"tokenid": "7213", "p": "grc-721", "op": "mint", "id": "1"}h! text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 "tokenid": "649", text/plain;charset=utf-8 :{"p":"brc-20","op":"transfer","tick":"2009","amt":"10000"}h! text/plain;charset=utf-8 "tokenid": "9595", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"PSAT","amt":"2000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"samy","amt":"2876"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"3000"}h! text/plain;charset=utf-8 "tokenid": "320", text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"MXRC","amt":"1000"}h! text/plain;charset=utf-8 "tokenid": "980", text/plain;charset=utf-8 8{"p":"brc-20","op":"transfer","tick":"biop","amt":"290"}h! text/plain;charset=utf-8 "tokenid": "219", text/plain;charset=utf-8 :{"p":"brc-20","op":"mint","tick":"sats","amt":"100000000"}h! text/plain;charset=utf-8 9{"p":"brc-20","op":"transfer","tick":"OXBT","amt":"5000"}h! text/plain;charset=utf-8 text/plain;charset=utf-8 3{"p":"brc-20","op":"mint","tick":" text/plain;charset=utf-8 3{"p":"brc-20","op":"mint","tick":" text/plain;charset=utf-8 3{"p":"brc-20","op":"mint","tick":" text/html;charset=utf-8 <title>Bitcoin Catch Game</title> /* Add the pixel font and other CSS here */ position: relative; height: 400px; width: 600px; border: 1px solid white; position: absolute; width: 20px; height: 20px; background: gold; position: absolute; bottom: 0; width: 50M height: 20px; background: grey; window.onload = function() { var gameArea = document.getElementById('gameArea'), wallet = document.getElementById('wallet'), bitcoins = [], score = 0; gameArea.addEventListener('mousemove', function(e) { wallet.style.left = (e.pageX - gameArea.offsetLeft - wallet.offsetWidth / 2) + 'px'; setIntervM var bitcoin = document.createElement('div'); bitcoin.className = 'bitcoin'; bitcoin.style.left = Math.random() * (gameArea.offsetWidth - bitcoin.offsetWidth) + 'px'; gameArea.appendChild(bitcoin); bitcoins.push(bitcoin); }, 1000); setInterval(function() { bitcoins.forEach(function(bitcoin, i) { bitcoin.style.top = (bitcoin.offsetTop + 1) + 'px'; if (collision(bitcoin, wallet)) { score++; document.getElementById('score').innerText = score; gameArea.removeChild(bitcoin); bitcoins.splice(i, 1); } if (bitcoin.offsetTop > gameArea.offsetHeight - bitcoin.offsetHeight) { gameArea.removeChild(bitcoin); bitcoins.splice(i, 1); } function collision(div1, div2) { var rect1 = div1.getBoundingClientRect(), rect2 = div2.getBoundingClientRect(); return !(rect1.right < rect2.left || rect1.left > rect2.right || rect1.bottom < rect2.top || rect1.top > rect2.bottom); <!-- Place the following in your main container --> <h1>Bitcoin Catch GameL <div id="gameArea"> <div id="wallet"></div> <h2>Score: <span id="score">0</span></h2> Aj?=:ETH.ETH:0x744725F0D236f3492Bb0f1a7560Af403782ef866:4416144::0 Aj?=:ETH.ETH:0x86A5f3cd22847F37AF9B977aBc74767C9D94446e:5290911::0 text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x3dace32eee0b4d7e3759c87ab816ff57e222560a715cdcda0e1e2c1478eb7f87"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x8f6fb4eb7f42c0e245e29e63f5b82cc3ba19852681d1ed9aed291f59cf75ec0e"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0xde967e98bc7e0e15f7e280b58842bee12a3fb5eaace2e2c8aba3622ffc6cd41b"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r?m.moveTo(e,t):m.lineTo(e,t),r=!1},y.bezierVertex=function(e,t,n,o,a,r){M(),m.bezierCurveTo(e,t,n,o,a,r)},y.quadraticVertex=function(e,M t,n,o){M(),m.quadraticCurveTo(e,t,n,o)},y.bezier=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.bezierVertex(n,o,a,r,i,l),y.endShape()},y.triangle=function(e,t,n,o,a,r){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.endShape(y.CLOSE)},y.quad=function(e,t,n,o,a,r,i,l){y.beginShape(),y.vertex(e,t),y.vertex(n,o),y.vertex(a,r),y.vertex(i,l),y.endShape(y.CLOSE)},y.endShape=function(e){M(),e&&m.closePath(),y._style.noFill||m.fill(),y._style.noStroke||m.stroke(),y._style.noFill&&y._style.noStroke&&(mM .save(),m.fillStyle="none",m.fill(),m.restore())},y.curveVertex=function(e,t){if(i.push([e,t]),!(i.length<4)){var e=i[i.length-4],t=i[i.length-3],n=i[i.length-2],o=i[i.length-1],a=function(t,n,o,a,r,i,l,s,u,e){function c(e,t,n,o,a,r){o=Math.pow(o-t,2)+Math.pow(a-n,2);return Math.pow(o,.5*r)+e}var h=[],f=c(0,t,n,o,a,e),d=c(f,o,a,r,i,e),p=c(d,r,i,l,s,e);for(let e=0;e<u;e++){var v=f+e/(u-1)*(d-f),y=[(f-v)/+f,+v/+f,(d-v)/(d-f),(v-f)/(d-f),(p-v)/(p-d),(v-d)/(p-d),(d-v)/+d,+v/+d,(p-v)/(p-f),(v-f)/(p-f)];for(let e=0;e<y.lM ength;e+=2)isNaN(y[e])&&(y[e]=1,y[e+1]=0),isFinite(y[e])||(0<y[e]?(y[e]=1,y[e+1]=0):(y[e]=0,y[e+1]=1));var v=t*y[0]+o*y[1],m=n*y[0]+a*y[1],g=o*y[2]+r*y[3],_=a*y[2]+i*y[3],M=r*y[4]+l*y[5],x=i*y[4]+s*y[5],v=v*y[6]+g*y[7],m=m*y[6]+_*y[7],g=g*y[8]+M*y[9],M=_*y[8]+x*y[9],_=v*y[2]+g*y[3],x=m*y[2]+M*y[3];h.push([_,x])}return h}(...e,...t,...n,...o,y._style.curveDetail,y._style.curveAlpha);for(let e=0;e<a.length;e++)r?m.moveTo(...a[e]):m.lineTo(...a[e]),r=!1}},y.curve=function(e,t,n,o,a,r,i,l){y.beginShape(),y.curveVertex(M e,t),y.curveVertex(n,o),y.curveVertex(a,r),y.curveVertex(i,l),y.endShape()},y.translate=function(e,t){m.translate(e,t)},y.rotate=function(e){m.rotate(e)},y.scale=function(e,t){null==t&&(t=e),m.scale(e,t)},y.applyMatrix=function(e,t,n,o,a,r){m.transform(e,t,n,o,a,r)},y.shearX=function(e){m.transform(1,0,Math.tan(e),1,0,0)},y.shearY=function(e){m.transform(1,Math.tan(e),0,1,0,0)},y.resetMatrix=function(){m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity)},y.pushMatrix=y.push=function(){y._styleCache.push({..M .y._style}),y._style=y._styleCache[y._styleCache.length-1],m.save()},y.popMatrix=y.pop=function(){y._styleCache.length-1&&(y._styleCache.pop(),y._style=y._styleCache[y._styleCache.length-1],m.restore())},y.image=function(t,e,n,o,a,r,i,l,s){var u,c,h=t.MAGIC==y.MAGIC?t.canvas:t;function f(){var e;t.MAGIC==y.MAGIC&&y._tint&&((e=t.canvas.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(d.canvas,0,0),e.restore())}t.MAGIC==y.MAGIC&&null!=y._tint&&(u=t.canvas.width,cM =t.canvas.height,null==d&&(d=document.createElement("canvas").getContext("2d")),null==u&&(u=m.canvas.width,c=m.canvas.height),d.canvas.width==u&&d.canvas.height==c||(d.canvas.width=u,d.canvas.height=c),d.drawImage(t.canvas,0,0),t.tinted(y._tint)),o?r?(l=l||h.width,s=s||h.height,m.drawImage(h,r,i,l,s,e,n,o,a)):m.drawImage(h,e,n,o,a):t.MAGIC==y.MAGIC||t.width?m.drawImage(h,e,n,t.width,t.height):m.drawImage(h,e,n,t.videoWidth,t.videoHeight),f()},y.loadPixels=function(){n=m.getImageData(0,0,y.canvas.width,y.canvas.heigM ht),y.pixels=n.data},y.updatePixels=function(){null!=n&&m.putImageData(n,0,0)},y.loadImage=function(e,t){l++;let n=y.createGraphics(100,100),o=n.canvas.getContext("2d"),a=new Image;return a.src=e,a.crossOrigin="Anonymous",a.onload=function(){o.canvas.width=a.width,o.canvas.height=a.height,n.width=a.width,n.height=a.height,o.drawImage(a,0,0),l--,t&&t(n)},n};let x={};function w(e,t){null==u&&(u=document.createElement("canvas").getContext("2d")),null==e&&(e=m.canvas.width,t=m.canvas.height),u.canvas.width==e&&u.canvasM .height==t||(u.canvas.width=e,u.canvas.height=t)}function R(){var e=m.canvas.width*m.canvas.height*4;null!=g&&e==g.length||(g=new Uint8ClampedArray(e))}function I(e){u.clearRect(0,0,u.canvas.width,u.canvas.height),u.filter=e,u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()}x[y.THRESHOLD]=function(t,n){null==n?n=127.5:n*=255;for(let e=0;e<t.length;e+=4){var o=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n<=o?255:0}}M ,x[y.GRAY]=function(t){for(let e=0;e<t.length;e+=4){var n=.2126*t[e]+.7152*t[e+1]+.0722*t[e+2];t[e]=t[e+1]=t[e+2]=n}},x[y.OPAQUE]=function(t){for(let e=0;e<t.length;e+=4)t[e+3]=255},x[y.INVERT]=function(t){for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2]},x[y.POSTERIZE]=function(t,n){var o=n-1;for(let e=0;e<t.length;e+=4)t[e]=255*(t[e]*n>>8)/o,t[e+1]=255*(t[e+1]*n>>8)/o,t[e+2]=255*(t[e+2]*n>>8)/o},x[y.DILATE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0M ;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.max(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.ERODE]=function(n){R(),g.set(n);var[o,a]=[m.canvas.width,m.canvas.height];for(let t=0;t<a;t++)for(let e=0;e<o;e++){var r=4*Math.max(e-1,0),i=4*Math.min(e+1,o-1),l=4*Math.max(t-1,0)*o,s=4*Math.min(t+1,a-1)*o,u=4*t*o,c=4*e;for(let e=0;e<4;e++){var h=e+l,f=e+s,d=e+u;n[u+c+e]=Math.miM n(g[h+c],g[d+r],g[d+c],g[d+i],g[f+c])}}},x[y.BLUR]=function(e,l){l=l||1,l=Math.floor(l*y._pixelDensity),R(),g.set(e);var s=2*l+1,u=function(t){var n=new Float32Array(t),o=.3*l+.8,a=o*o*2;for(let e=0;e<t;e++){var r=e-t/2,r=Math.exp(-r*r/a)/(2.5066282746*o);n[e]=r}return n}(s),[c,h]=[m.canvas.width,m.canvas.height];for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var f=Math.min(Math.max(r-l+e,0),c-1),f=4*(i*c+f);t+=g[f]*u[e],n+=g[1+f]*u[e],o+=g[2+f]*u[e],a+=g[3+f]*u[e]}var d=4*(i*c+r)M ;e[d]=t,e[1+d]=n,e[2+d]=o,e[3+d]=a}g.set(e);for(let i=0;i<h;i++)for(let r=0;r<c;r++){let t=0,n=0,o=0,a=0;for(let e=0;e<s;e++){var p=4*(Math.min(Math.max(i-l+e,0),h-1)*c+r);t+=g[p]*u[e],n+=g[1+p]*u[e],o+=g[2+p]*u[e],a+=g[3+p]*u[e]}var v=4*(i*c+r);e[v]=t,e[1+v]=n,e[2+v]=o,e[3+v]=a}},y.filter=function(e,t){var n;y.HARDWARE_FILTERS&&null!=m.filter?(w(),e==y.THRESHOLD?(null==t&&(t=.5),t=Math.max(t,1e-5),I(`saturate(0%) brightness(${Math.floor(.5/t*100)}%) contrast(1000000%)`)):e==y.GRAY?I("saturate(0%)"):e==y.OPAQUE?(u.M fillStyle="black",u.fillRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),m.save(),m.resetTransform(),m.drawImage(u.canvas,0,0),m.restore()):e==y.INVERT?I("invert(100%)"):e==y.BLUR?I(`blur(${Math.ceil(t*y._pixelDensity)||1}px)`):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))):(n=m.getImageData(0,0,m.canvas.width,m.canvas.height),x[e](n.data,t),m.putImageData(n,0,0))},y.resize=function(e,t){w(),u.drawImage(m.canvas,0,0),y.width=e,y.height=t,m.canvas.widthM =e*y._pixelDensity,m.canvas.height=t*y._pixelDensity,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0,m.canvas.width,m.canvas.height),m.restore()},y.get=function(e,t,n,o){if(null!=e&&null==n)return a=m.getImageData(e,t,1,1).data,new y.Color(a[0],a[1],a[2],a[3]/255);e=e||0,t=t||0,n=n||y.width,o=o||y.height;var a=y.createGraphics(n,o),e=(a.pixelDensity(y._pixelDensity),m.getImageData(e*y._pixelDensity,t*y._pixelDensity,n*y._pixelDensity,o*y._pixelDensity));return a.M canvas.getContext("2d").putImageData(e,0,0),a},y.set=function(e,t,n){var o;n.MAGIC==y.MAGIC?(o=y._tint,y._tint=null,y.image(n,e,t),y._tint=o):(o=4*(t*y._pixelDensity*m.canvas.width+e*y._pixelDensity),y.pixels[o]=n._r,y.pixels[1+o]=n._g,y.pixels[2+o]=n._b,y.pixels[3+o]=255*n._a)},y.tinted=function(){var e=y.color(...Array.from(arguments)),t=e._a,e=(e._a=1,w(),u.clearRect(0,0,u.canvas.width,u.canvas.height),u.fillStyle=e,u.fillRect(0,0,u.canvas.width,u.canvas.height),u.globalCompositeOperation="multiply",u.drawImage(M m.canvas,0,0),u.globalCompositeOperation="source-over",m.save(),m.resetTransform(),m.globalCompositeOperation);m.globalCompositeOperation="source-in",m.drawImage(u.canvas,0,0),m.globalCompositeOperation=e,m.restore(),u.globalAlpha=t,u.clearRect(0,0,u.canvas.width,u.canvas.height),u.drawImage(m.canvas,0,0),u.globalAlpha=1,m.save(),m.resetTransform(),m.clearRect(0,0,m.canvas.width,m.canvas.height),m.drawImage(u.canvas,0,0),m.restore()},y.tint=function(){y._tint=y.color(...Array.from(arguments))},y.noTint=function(){yM ._tint=null},y.mask=function(e){m.save(),m.resetTransform();var t=m.globalCompositeOperation;m.globalCompositeOperation="destination-in",m.drawImage(e.canvas,0,0),m.globalCompositeOperation=t,m.restore()},y.clearTemporaryBuffers=function(){u=null,d=null,g=null},y.save=function(e,t){e=e||"untitled",t=t||"png";var n=document.createElement("a");n.innerHTML="[Download]",n.addEventListener("click",function(){this.href=m.canvas.toDataURL(),this.download=e+"."+t},!1),document.body.appendChild(n),n.click(),document.body.reM moveChild(n)},y.saveCanvas=function(e,t,n){return e.MAGIC==y.MAGIC?(n&&e.save(t,n),n=t.split("."),e.save(n.slice(0,-1).join("."),n[n.length-1])):t?y.save(e,t):(n=e.split("."),y.save(n.slice(0,-1).join("."),n[n.length-1]))},y.loadFont=function(e,t){var n=e.split("/"),n=n[n.length-1].split(".")[0].replace(" ",""),e=`@font-face { font-family: '${n}'; src: url('${e}'); }`,o=document.createElement("style");return o.textContent=e,document.head.append(o),n},y.textFont=function(e){y._style.textFont=e}M ,y.textSize=function(e){y._style.textSize=e,y._style.textLeading=e},y.textLeading=function(e){y._style.textLeading=e},y.textStyle=function(e){y._style.textStyle=e},y.textAlign=function(e,t){m.textAlign=e,t&&(m.textBaseline=t==y.CENTER?"middle":t)},y.text=function(e,t,n,o){if(e&&(e=e.toString(),!y._style.noFill||!y._style.noStroke)){m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont;var a=e.split("\n");for(let e=0;e<a.length;e++)y._style.noFill||m.fillText(a[e],t,n,o),y._style.noStroke||m.strokM eText(a[e],t,n,o),n+=y._style.textLeading}},y.textWidth=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).width},y.textAscent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxAscent},y.textDescent=function(e){return m.font=`${y._style.textStyle} ${y._style.textSize}px `+y._style.textFont,m.measureText(e).actualBoundingBoxDescent};function C(e){return.5*(1-Math.cos(e*Math.PI))}var EM ,S=4,A=.5;y.noise=function(e,t,n){if(t=t||0,n=n||0,null==E){E=new Array(4096);for(var o=0;o<4096;o++)E[o]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),n<0&&(n=-n);for(var a,r,i=Math.floor(e),l=Math.floor(t),s=Math.floor(n),u=e-i,c=t-l,h=n-s,f=0,d=.5,p=0;p<S;p++){var v=i+(l<<4)+(s<<8),y=C(u),m=C(c),g=E[4095&v];g+=y*(E[v+1&4095]-g),a=E[v+16&4095],g+=m*((a+=y*(E[v+16+1&4095]-a))-g),a=E[4095&(v+=256)],a+=y*(E[v+1&4095]-a),r=E[v+16&4095],a+=m*((r+=y*(E[v+16+1&4095]-r))-a),f+=(g+=C(h)*(a-g))*d,d*=A,i<<=1,l<<=1,s<<=1,1<=(u*=2)&&M (i++,u--),1<=(c*=2)&&(l++,c--),1<=(h*=2)&&(s++,h--)}return f},y.noiseDetail=function(e,t){0<e&&(S=e),0<t&&(A=t)};function T(){let t,n,o=4294967295;return{setSeed(e){t=n=(null==e?Math.random()*o:e)>>>0},getSeed:()=>n,rand:()=>((t=(t=(t^=t<<17)^t>>13)^t<<5)>>>0)/o}}let D=T();D.setSeed(),y.noiseSeed=function(e){let t=null==e?4294967295*Math.random():e;E=E||new Float32Array(4096);for(var n=0;n<4096;n++)t=(t=(t^=t<<17)^t>>13)^t<<5,E[n]=(t>>>0)/4294967295},y.randomSeed=function(e){D.setSeed(e)},y.random=function(e,t){retM urn null==e?D.rand():"number"==typeof e?null!=t?D.rand()*(t-e)+e:D.rand()*e:e[~~(e.length*D.rand())]},y.randomGenerator=function(e){e==y.LCG?D=function(){const t=4294967296;let n,o;return{setSeed(e){o=n=(null==e?Math.random()*t:e)>>>0},getSeed:()=>n,rand:()=>(o=(1664525*o+1013904223)%t)/t}}():e==y.SHR3&&(D=T()),D.setSeed()};var P,b=new function(){var o,t,a,c=new Array(128),h=new Array(256),f=new Array(128),d=new Array(128),p=new Array(256),v=new Array(256),r=function(){return 4294967296*D.rand()-2147483648},i=functM ion(){return.5+2.328306e-10*(r()<<0)};this.SHR3=r,this.UNI=i,this.RNOR=function(){if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o];for(var e,t,n;;){if(e=a*f[o],0==o){for(;t=i(),n=i(),e=.2904764*-Math.log(t),(t=-Math.log(n))+t<e*e;);return 0<a?3.44262+e:-3.44262-e}if(d[o]+i()*(d[o-1]-d[o])<Math.exp(-.5*e*e))return e;if(a=r(),o=127&a,Math.abs(a)<c[o])return a*f[o]}},this.REXP=function(){if((t=r()>>>0)<c[o=255&t])return t*p[o];for(var e;;){if(0==o)return 7.69711-Math.log(i());if(e=t*p[o],v[o]+i()*(v[o-1]-v[o])<Math.expM (-e))return e;if((t=r())<h[o=255&t])return t*p[o]}},this.zigset=function(){var e,t=2147483648,n=4294967296,o=3.442619855899,a=o,r=.00991256303526217,i=7.697117470131487,l=i,s=.003949659822581572,u=r/Math.exp(-.5*o*o);for(c[0]=Math.floor(o/u*t),c[1]=0,f[0]=u/t,f[127]=o/t,d[0]=1,d[127]=Math.exp(-.5*o*o),e=126;1<=e;e--)o=Math.sqrt(-2*Math.log(r/o+Math.exp(-.5*o*o))),c[e+1]=Math.floor(o/a*t),a=o,d[e]=Math.exp(-.5*o*o),f[e]=o/t;for(u=s/Math.exp(-i),h[0]=Math.floor(i/u*n),h[1]=0,p[0]=u/n,p[255]=i/n,v[0]=1,v[255]=Math.expM (-i),e=254;1<=e;e--)i=-Math.log(s/i+Math.exp(-i)),h[e+1]=Math.floor(i/l*n),l=i,v[e]=Math.exp(-i),p[e]=i/n}};b.hasInit=!1,y.randomGaussian=function(e,t){return b.hasInit||(b.zigset(),b.hasInit=!0),b.RNOR()*t+e},y.randomExponential=function(){return b.hasInit||(b.zigset(),b.hasInit=!0),b.REXP()},y.print=console.log,y.cursor=function(e,t,n){let o="";e.includes(".")&&(e=`url("${e}")`,o=", auto"),null!=t&&(e+=" "+t+" "+n),y.canvas.style.cursor=e+o},y.noCursor=function(){y.canvas.style.cursor="none"},y.createCapture=funcM tion(e){var t=document.createElement("video");return t.playsinline="playsinline",t.autoplay="autoplay",navigator.mediaDevices.getUserMedia(e).then(function(e){t.srcObject=e}),t.style.position="absolute",t.style.opacity=1e-5,t.style.zIndex=-1e3,document.body.appendChild(t),t};for(P of["setup","draw","preload","mouseMoved","mousePressed","mouseReleased","mouseDragged","mouseClicked","keyPressed","keyReleased","keyTyped","touchStarted","touchEnded"]){let t="_"+P+"Fn";y[t]=function(){},y[t].isPlaceHolder=!0,y[P]?y[t]=yM [P]:Object.defineProperty(y,P,{set:function(e){y[t]=e}})}function z(){y._noLoop||(t=null==y._frameRate?requestAnimationFrame(z):setTimeout(z,1e3/y._frameRate)),M(),r=!0,y.push(),y._drawFn(),y.pop(),++y.frameCount}function O(e){var t=y.canvas.getBoundingClientRect(),n=y.canvas.scrollWidth/y.width||1,o=y.canvas.scrollHeight/y.height||1;return{x:(e.clientX-t.left)/n,y:(e.clientY-t.top)/o,id:e.identifier}}function k(){return y._touchStarted.isPlaceHolder&&y._touchMoved.isPlaceHolder&&y._touchEnded.isPlaceHolder}y.noLooM p=function(){y._noLoop=!0,t=null},y.loop=function(){y._noLoop=!1,null==t&&z()},y.redraw=function(){z()},y.frameRate=function(e){y._frameRate=e},setTimeout(function(){y._preloadFn(),s=window.performance.now(),function e(){return 0<l?setTimeout(e,10):(y._setupFn(),void z())}()},1),y.canvas.onmousemove=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed?y._mouseDraggedFn(e):y._mouseMovedFn(e)},y.canvas.onmousedown=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.M mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y.mouseButton=[y.LEFT,y.CENTER,y.RIGHT][e.button],y._mousePressedFn(e)},y.canvas.onmouseup=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!1,y._mouseReleasedFn(e)},y.canvas.onclick=function(e){y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=e.offsetX,y.mouseY=e.offsetY,y.mouseIsPressed=!0,y._mouseClickedFn(e),y.mouseIsPressed=!1},window.addEventListener("keydown",function(e){y.keyIsPressed=!0,y.key=e.keyM ,y.keyCode=e.keyCode,a[y.keyCode]=!0,y._keyPressedFn(e),1==e.key.length&&y._keyTypedFn(e)}),window.addEventListener("keyup",function(e){y.keyIsPressed=!1,y.key=e.key,y.keyCode=e.keyCode,a[y.keyCode]=!1,y._keyReleasedFn(e)}),y.keyIsDown=function(e){return!!a[e]},y.canvas.ontouchstart=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mousePressedFn(e)||e.preventDefault()),y._touchStartedFn(e)||M e.preventDefault()},y.canvas.ontouchmove=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!0,y.mouseButton=y.LEFT,y._mouseDraggedFn(e)||e.preventDefault()),y._touchMovedFn(e)||e.preventDefault()},y.canvas.ontouchend=y.canvas.ontouchcancel=function(e){y.touches=e.touches.map(O),k()&&(y.pmouseX=y.mouseX,y.pmouseY=y.mouseY,y.mouseX=y.touches[0].x,y.mouseY=y.touches[0].y,y.mouseIsPressed=!1,y._mouseReleasedFn(e)||e.prevenM tDefault()),y._touchEndedFn(e)||e.preventDefault()},y.hasSensorPermission=!window.DeviceOrientationEvent&&!window.DeviceMotionEvent||!(DeviceOrientationEvent.requestPermission||DeviceMotionEvent.requestPermission),y.requestSensorPermissions=function(){DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission().then(e=>{"granted"==e&&DeviceMotionEvent.requestPermission&&DeviceMotionEvent.requestPermission().then(e=>{"granted"==e&&(y.hasSensorPermission=!0)}).catch(alert)}).catch(alert)},windM ow.ondeviceorientation=function(e){y.pRotationX=y.rotationX,y.pRotationY=y.rotationY,y.pRotationZ=y.rotationZ,y.pRelRotationX=y.relRotationX,y.pRelRotationY=y.relRotationY,y.pRelRotationZ=y.relRotationZ,y.rotationX=e.beta*(Math.PI/180),y.rotationY=e.gamma*(Math.PI/180),y.rotationZ=e.alpha*(Math.PI/180),y.relRotationX=[-y.rotationY,-y.rotationX,y.rotationY][1+~~(window.orientation/90)],y.relRotationY=[-y.rotationX,y.rotationY,y.rotationX][1+~~(window.orientation/90)],y.relRotationZ=y.rotationZ},window.ondevicemotionM =function(e){var t,n;y.pAccelerationX=y.accelerationX,y.pAccelerationY=y.accelerationY,y.pAccelerationZ=y.accelerationZ,e.acceleration||(n=y.rotationY,n=[Math.cos(n),0,Math.sin(n),0,0,1,0,0,-Math.sin(n),0,Math.cos(n),0,0,0,0,1],t=y.rotationX,t=[1,0,0,0,0,Math.cos(t),-Math.sin(t),0,0,Math.sin(t),Math.cos(t),0,0,0,0,1],t=[((n=[n[0]*t[0]+n[1]*t[4]+n[2]*t[8]+n[3]*t[12],n[0]*t[1]+n[1]*t[5]+n[2]*t[9]+n[3]*t[13],n[0]*t[2]+n[1]*t[6]+n[2]*t[10]+n[3]*t[14],n[0]*t[3]+n[1]*t[7]+n[2]*t[11]+n[3]*t[15],n[4]*t[0]+n[5]*t[4]+n[6]*t[M 8]+n[7]*t[12],n[4]*t[1]+n[5]*t[5]+n[6]*t[9]+n[7]*t[13],n[4]*t[2]+n[5]*t[6]+n[6]*t[10]+n[7]*t[14],n[4]*t[3]+n[5]*t[7]+n[6]*t[11]+n[7]*t[15],n[8]*t[0]+n[9]*t[4]+n[10]*t[8]+n[11]*t[12],n[8]*t[1]+n[9]*t[5]+n[10]*t[9]+n[11]*t[13],n[8]*t[2]+n[9]*t[6]+n[10]*t[10]+n[11]*t[14],n[8]*t[3]+n[9]*t[7]+n[10]*t[11]+n[11]*t[15],n[12]*t[0]+n[13]*t[4]+n[14]*t[8]+n[15]*t[12],n[12]*t[1]+n[13]*t[5]+n[14]*t[9]+n[15]*t[13],n[12]*t[2]+n[13]*t[6]+n[14]*t[10]+n[15]*t[14],n[12]*t[3]+n[13]*t[7]+n[14]*t[11]+n[15]*t[15]])[0]*(t=[0,0,-9.80665])[0M ]+n[1]*t[1]+n[2]*t[2]+n[3])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[4]*t[0]+n[5]*t[1]+n[6]*t[2]+n[7])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15]),(n[8]*t[0]+n[9]*t[1]+n[10]*t[2]+n[11])/(n[12]*t[0]+n[13]*t[1]+n[14]*t[2]+n[15])],y.accelerationX=e.accelerationIncludingGravity.x+t[0],y.accelerationY=e.accelerationIncludingGravity.y+t[1],y.accelerationZ=e.accelerationIncludingGravity.z-t[2])},y.year=function(){return(new Date).getFullYear()},y.day=function(){return(new Date).getDay()},y.hour=function(){return(new Date)M .getHours()},y.minute=function(){return(new Date).getMinutes()},y.second=function(){return(new Date).getSeconds()},y.millis=function(){return window.performance.now()-s}}(e)}"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=Q5)</script><script>let q5=new Q5,lcg_index=0,moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,moveSteps2=0,moveStepsR2=0,moveSegments2=0,moveSegmentsR2=0;function lcg(){var e=Math.pow(2,32);return(lcg_index=(1664525*lcg_index+1013904223)%e)/e}function generateRandomHeM x(){let s="";var r="abcdef0123456789";for(let e=0;e<64;e++)s+=r.charAt(Math.floor(lcg()*r.length));return lcg_index++,"0x"+s}q5.mouseClicked=function(){sqord2.pause=!sqord2.pause,sqord2.pause&&(console.log(sqord2.hash),q5.fill(255),q5.rect(0,0,50,50))};const makeSqord=(e,s)=>{var r={hash:e,hashPairs:[]};s||(window.hash=e);for(let e=0;e<32;e++)r.hashPairs.push(r.hash.slice(2+2*e,4+2*e));return r.decPairs=r.hashPairs.map(e=>parseInt(e,16)),r.seed=parseInt(r.hash.slice(0,16),16),r.color=0,r.backgroundColor=0,r.ht=0,r.M wt=2,r.speed=r.decPairs[1]%128/100+.1,r.segments=q5.map(r.decPairs[26],0,255,12,20),r.startColor=r.decPairs[29],r.slinky=r.decPairs[31]<30,r.pipe=r.decPairs[22]<30,r.bold=r.decPairs[23]<15,r.segmented=r.decPairs[24]<30,r.fuzzy=r.pipe&&!r.slinky,r.flipper=r.decPairs[5]<15,r.familia=r.decPairs[4]<15,r.flowers=r.decPairs[3]<15,r.creepy=r.decPairs[7]<15,r.dodge=r.decPairs[8]<15,r.squared=r.decPairs[6]<15,r.spread=r.decPairs[28]<15?.5:q5.map(r.decPairs[28],0,255,5,50),r.index=0,r.pause=!1,r.steps=r.slinky?r.decPairs[17]M %100+1:r.fuzzy?r.decPairs[17]%2e3+1:r.decPairs[17]%400+1,s?(r.reverse=sqord2.reverse,r.amp=sqord2.amp,r.flipper=sqord2.flipper,r.familia=sqord2.familia,r.familia&&(r.startColor=sqord2.startColor,r.slinky=sqord2.slinky,r.pipe=sqord2.pipe,r.bold=sqord2.bold,r.segmented=sqord2.segmented,r.fuzzy=sqord2.fuzzy,r.flowers=sqord2.flowers,r.squared=sqord2.squared,r.creepy=sqord2.creepy,r.dodge=sqord2.creepy)):(r.amp=r.decPairs[2]%128/100,r.reverse=r.decPairs[30]<128),r.reverse||(moveSegmentsR2=q5.floor(r.segments),moveSegmenM ts2=q5.floor(r.segments),moveStepsR2=r.steps,moveSteps2=r.steps),r.start=!0,r};let sqord2=makeSqord(generateRandomHexSimple("0x388a123efd8c04ac587ec7d8da5fd957bc0be880e215fb61efbb6f40032fd855"),!1),stop=(console.log(sqord2.hash),!1);q5.setup=function(){q5.createCanvas(q5.windowWidth,q5.windowHeight),q5.colorMode(q5.HSB,360),q5.strokeWeight(q5.height/1200)},q5.windowResized=function(){q5.resizeCanvas(q5.windowWidth,q5.windowHeight)};const updateIndex=()=>{sqord2.index=sqord2.reverse?sqord2.index-sqord2.speed:sqord2.M index+sqord2.speed};function rnd(e){return e.seed^=e.seed<<13,e.seed^=e.seed>>17,e.seed^=e.seed<<5,(e.seed<0?1+~e.seed:e.seed)%1e3/1e3}function generateRandomHexSimple(e){return lcg_index=hashToNumber(e),e}function hashToNumber(e){return e.startsWith("0x")&&(e=e.substring(2)),parseInt(e.substring(0,16),16)/0x10000000000000000}q5.draw=function(){q5.background(0),sqord2.pause&&(q5.fill(255),q5.circle(20,20,10,10));var e,d=(e,s,r)=>{var o,d,t=r.flowers?1:s/r.steps,q=q5.width/r.segments/r.wt,a=-q5.height/r.ht,n=q5.heigM ht/r.ht,i=q*e,m=q*(e+1),p=q*(e+2),q=q*(e+3),l=q5.map(r.decPairs[e],0,255,a,n)*r.amp,g=q5.map(r.decPairs[e+1],0,255,a,n)*r.amp,c=q5.map(r.decPairs[e+2],0,255,a,n)*r.amp,e=q5.map(r.decPairs[e+3],0,255,a,n)*r.amp;let h=q5.curvePoint(i,m,p,q,t),v=q5.curvePoint(l,g,c,e,t);r.creepy&&(d=(n=(a=1-t)*a)*a,o=(S=t*t)*t,h=d*i+3*n*t*m+3*a*S*p+o*q,v=d*l+3*n*t*g+3*a*S*c+o*e),r.flowers&&(d=q5.curvePoint(i,m,p,q,0),n=q5.curvePoint(l,g,c,e,0),q5.beginShape(),q5.quadraticVertex(h,v,d,n),q5.endShape());var S,t=r.reverse?360-(r.color/r.M spread+r.startColor+q5.abs(r.index))%360:(r.color/r.spread+r.startColor+q5.abs(r.index))%360;r.fuzzy?(q5.noStroke(),q5.fill(t,255,255,20),a=h+q5.map(rnd(r),0,1,0,q5.height/10),S=v+q5.map(rnd(r),0,1,0,q5.height/10),q5.dist(h,v,a,S)<q5.height/10&&(r.squared?q5.square(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)):q5.circle(a,S,q5.map(rnd(r),0,1,q5.height/160,q5.height/16)))):(r.slinky&&r.pipe&&(0===s||s===r.steps-1?q5.fill(0):q5.noFill(),q5.stroke(0),r.squared?q5.square(h,v,q5.height/7):q5.circle(h,v,q5.height/7)M ),r.slinky?(0===s||s===r.steps-1?q5.fill(t,255,255):q5.noFill(),q5.stroke(t,255,255)):(q5.noStroke(),q5.fill(t,255,255)),r.squared?q5.square(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13):q5.circle(h,v,r.bold&&!r.slinky?q5.height/5:q5.height/13),!r.segmented||r.slinky||r.bold||s%r.div!=0&&0!==s&&s!==r.steps-1||(q5.noStroke(),q5.fill(r.decPairs[25]),r.squared?q5.square(h,v,q5.height/12):q5.circle(h,v,q5.height/12)))};if((sqord2=((e=sqord2).ht=q5.map(e.decPairs[27],0,255,3,4),e.color=0,e.div=Math.floor(q5.map(Math.rM ound(e.decPairs[24]),0,230,3,20)),q5.translate(q5.width/2-q5.width/e.wt/2,q5.height/2),e)).flipper){for(let s=0;s<sqord2.segments-1;s++){for(let e=0;e<=sqord2.steps;e++)d(s,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}updateIndex(),!sqord2.pause&&q5.abs(sqord2.index)>15*sqord2.speed&&(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash))}if(!sqord2.start&&!sqord2.flipper){for(let o=moveSegments;o<sqord2.segments-moveSegmentsR-1;o++){let s=0,r=0;o===moveSegments&&(s=moveStepM s),o===q5.floor(sqord2.segments)-moveSegmentsR-1&&(r=moveStepsR);for(let e=s;e<=sqord2.steps-r;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSteps++:moveStepsR++,updateIndex()),sqord2.reverse&&moveSteps===sqord2.steps&&(moveSegments++,moveSteps=0),sqord2.reverse||moveStepsR!==sqord2.steps||(moveSegmentsR++,moveStepsR=0),sqord2.reverse&&moveSegments===q5.floor(sqord2.segments)?(sqord2.pause||(sqord2=makeSqord(generateRM andomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=q5.floor(sqord2.segments),moveSegments2=q5.floor(sqord2.segments),moveStepsR2=sqord2.steps,moveSteps2=sqord2.steps,sqord2.reverse=!1,sqord2.start=!0):sqord2.reverse||moveSegmentsR!==q5.floor(sqord2.segments)||(sqord2.pause||(sqord2=makeSqord(generateRandomHex(),!0),console.log(sqord2.hash)),moveSegmentsR2=0,moveSegments2=0,moveStepsR2=0,moveSteps2=0,sqord2.reverse=!0,sqord2.start=!0)}if(sqord2.start&&!sqord2.flipper){for(let o=moveSegmentsR2;o<moveSegments2;o+M +){let s=0,r=0;s=sqord2.reverse?o===moveSegments2-1?moveSteps2:sqord2.steps:(r=o>moveSegmentsR2?0:moveStepsR2,moveSteps2);for(let e=r;e<=s;e++)d(o,e,sqord2),sqord2.color++;sqord2.seed=parseInt(sqord2.hash.slice(0,16),16)}q5.floor(q5.abs(sqord2.index))%1!=0||stop||(sqord2.reverse?moveSegments2<sqord2.segments&&moveSteps2++:0<=moveSegmentsR2&&moveStepsR2--,updateIndex()),sqord2.reverse&&moveSteps2===sqord2.steps&&moveSegments2<sqord2.segments&&(moveSegments2++,moveSteps2=0),!sqord2.reverse&&0===moveStepsR2&&0<=moveSeM gmentsR2&&(moveSegmentsR2--,moveStepsR2=sqord2.steps),!sqord2.changing&&sqord2.reverse&&moveSegments2>=q5.floor(sqord2.segments)?(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!1),sqord2.start=!1,sqord2.changing=!1},1e4)):!sqord2.changing&&!sqord2.reverse&&moveSegmentsR2<=0&&(sqord2.changing=!0,setTimeout(()=>{moveSteps=0,moveStepsR=0,moveSegments=0,moveSegmentsR=0,sqord2.dodge||(sqord2.reverse=!0),sqord2.start=!1,sqord2.changing=!1},1e4))}}L </script><style type="text/css">html{height:100%}body{min-height:100%;margin:0;padding:0;background-color:#000}canvas{padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0}</style>h! text/html;charset=utf-8 <meta name="viewport"content="width=device-width,initial-scale=1,maximum-scale=1"><meta charset="utf-8"><script>function Q5(e){"use strict";return new function o(e){let y="global"==e?window:this,m=(y.canvas=document.createElement("canvas"),y.canvas.getContext("2d")),t=(y.width=100,y.height=100,y.canvas.width=y.width,y.canvas.height=y.height,"offscreen"!=e&&(document.body?document.body.appendChild(y.canvas):window.addEventListener("load",function(){document.body.appendChild(y.canvas)})),h(),y.MAGIC=161533525,y.RGB=0M ,y.HSV=1,y.HSB=1,y.CHORD=0,y.PIE=1,y.OPEN=2,y.RADIUS=1,y.CORNER=2,y.CORNERS=3,y.ROUND="round",y.SQUARE="butt",y.PROJECT="square",y.MITER="miter",y.BEVEL="bevel",y.CLOSE=1,y.BLEND="source-over",y.REMOVE="destination-out",y.ADD="lighter",y.DARKEST="darken",y.LIGHTEST="lighten",y.DIFFERENCE="difference",y.SUBTRACT="subtract",y.EXCLUSION="exclusion",y.MULTIPLY="multiply",y.SCREEN="screen",y.REPLACE="copy",y.OVERLAY="overlay",y.HARD_LIGHT="hard-light",y.SOFT_LIGHT="soft-light",y.DODGE="color-dodge",y.BURN="color-burn",yM .NORMAL="normal",y.ITALIC="italic",y.BOLD="bold",y.BOLDITALIC="italic bold",y.CENTER="center",y.LEFT="left",y.RIGHT="right",y.TOP="top",y.BOTTOM="bottom",y.BASELINE="alphabetic",y.LANDSCAPE="landscape",y.PORTRAIT="portrait",y.ALT=18,y.BACKSPACE=8,y.CONTROL=17,y.DELETE=46,y.DOWN_ARROW=40,y.ENTER=13,y.ESCAPE=27,y.LEFT_ARROW=37,y.OPTION=18,y.RETURN=13,y.RIGHT_ARROW=39,y.SHIFT=16,y.TAB=9,y.UP_ARROW=38,y.HALF_PI=Math.PI/2,y.PI=Math.PI,y.QUARTER_PI=Math.PI/4,y.TAU=2*Math.PI,y.TWO_PI=2*Math.PI,y.THRESHOLD=1,y.GRAY=2,y.OPAM QUE=3,y.INVERT=4,y.POSTERIZE=5,y.DILATE=6,y.ERODE=7,y.BLUR=8,y.ARROW="default",y.CROSS="crosshair",y.HAND="pointer",y.MOVE="move",y.TEXT="text",y.VIDEO={video:!0,audio:!1},y.AUDIO={video:!1,audio:!0},y.SHR3=1,y.LCG=2,y.HARDWARE_FILTERS=!0,y.hint=function(e,t){y[e]=t},y.frameCount=0,y.mouseX=0,y.mouseY=0,y.pmouseX=0,y.pmouseY=0,y.mouseButton=null,y.keyIsPressed=!1,y.mouseIsPressed=!1,y.key=null,y.keyCode=null,y.pixels=null,y.accelerationX=0,y.accelerationY=0,y.accelerationZ=0,y.rotationX=0,y.rotationY=0,y.rotationZ=M 0,y.relRotationX=0,y.relRotationY=0,y.relRotationZ=0,y.pAccelerationX=0,y.pAccelerationY=0,y.pAccelerationZ=0,y.pRotationX=0,y.pRotationY=0,y.pRotationZ=0,y.pRelRotationX=0,y.pRelRotationY=0,y.pRelRotationZ=0,y.touches=[],y._styleCache=[{colorMode:y.RGB,noStroke:!1,noFill:!1,ellipseMode:y.CENTER,rectMode:y.CORNER,curveDetail:20,curveAlpha:0,textFont:"sans-serif",textSize:12,textLeading:12,textStyle:"normal"}],y._style=y._styleCache[y._styleCache.length-1],y._noLoop=!1,y._pixelDensity=1,y._frameRate=null,y._tint=nulM l),r=!0,i=[],n=null,l=0,a={},s=0,u=null,d=null,g=null;Object.defineProperty(y,"deviceOrientation",{get:function(){return 90==Math.abs(window.orientation)?y.LANDSCAPE:y.PORTRAIT}}),Object.defineProperty(y,"windowWidth",{get:function(){return window.innerWidth}}),Object.defineProperty(y,"windowHeight",{get:function(){return window.innerHeight}}),Object.defineProperty(y,"drawingContext",{get:function(){return m}}),y.createCanvas=function(e,t){return y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t,h(),y.canvas}M ,y.resizeCanvas=function(e,t){y.width=e,y.height=t,y.canvas.width=e,y.canvas.height=t},y.createGraphics=y.createImage=function(e,t){var n=new o("offscreen");return n.createCanvas(e,t),n.noLoop(),n},y.pixelDensity=function(e){return null==e||(y._pixelDensity=e,y.canvas.width=Math.ceil(y.width*e),y.canvas.height=Math.ceil(y.height*e),y.canvas.style.width=y.width+"px",y.canvas.style.height=y.height+"px",m.scale(y._pixelDensity,y._pixelDensity),h()),y._pixelDensity},y.map=function(e,t,n,o,a,r){e=o+(e-t)/(n-t)*(a-o);retM urn r?o<a?Math.min(Math.max(e,o),a):Math.min(Math.max(e,a),o):e},y.lerp=function(e,t,n){return e*(1-n)+t*n},y.constrain=function(e,t,n){return Math.min(Math.max(e,t),n)},y.dist=function(){return 4==arguments.length?Math.hypot(arguments[0]-arguments[2],arguments[1]-arguments[3]):Math.hypot(arguments[0]-arguments[3],arguments[1]-arguments[4],arguments[2]-arguments[5])},y.norm=function(e,t,n){return y.map(e,t,n,0,1)},y.sq=function(e){return e*e},y.fract=function(e){return e-Math.floor(e)},y.degrees=function(e){return M 180*e/Math.PI},y.radians=function(e){return e*Math.PI/180},y.abs=Math.abs,y.ceil=Math.ceil,y.exp=Math.exp,y.floor=Math.floor,y.log=Math.log,y.mag=Math.hypot,y.max=Math.max,y.min=Math.min,y.round=Math.round,y.sqrt=Math.sqrt,y.sin=Math.sin,y.cos=Math.cos,y.tan=Math.tan,y.asin=Math.asin,y.acos=Math.acos,y.atan=Math.atan,y.atan2=Math.atan2,y.Vector=function(e,t,n){let r=this,i=(r.x=e||0,r.y=t||0,r.z=n||0,null),l=null;function o(e,t,n){return null!=e.x?e:null!=t?{x:e,y:t,z:n||0}:{x:e,y:e,z:e}}function a(){null==l&&(l=r.M x*r.x+r.y*r.y+r.z*r.z,i=Math.sqrt(l))}function s(){l=null,i=null}r.set=function(e,t,n){r.x=e||0,r.y=t||0,r.z=n||0},r.copy=function(){return new y.Vector(r.x,r.y,r.z)},r.add=function(){var e=o.apply(null,arguments);return r.x+=e.x,r.y+=e.y,r.z+=e.z,s(),r},r.rem=function(){var e=o.apply(null,arguments);return r.x%=e.x,r.y%=e.y,r.z%=e.z,s(),r},r.sub=function(){var e=o.apply(null,arguments);return r.x-=e.x,r.y-=e.y,r.z-=e.z,s(),r},r.mult=function(){var e=o.apply(null,arguments);return r.x*=e.x,r.y*=e.y,r.z*=e.z,s(),r},M r.div=function(){var e=o.apply(null,arguments);return r.x/=e.x,r.y/=e.y,r.z/=e.z,s(),r},r.mag=function(){return a(),i},r.magSq=function(){return a(),l},r.dot=function(){var e=o.apply(null,arguments);return r.x*e.x+r.y*e.y+r.z*e.z},r.dist=function(){var e=o.apply(null,arguments),t=r.x-e.x,n=r.y-e.y,e=r.z-e.z;return Math.sqrt(t*t+n*n+e*e)},r.cross=function(){var e=o.apply(null,arguments),t=r.y*e.z-r.z*e.y,n=r.z*e.x-r.x*e.z,e=r.x*e.y-r.y*e.x;return r.x=t,r.y=n,r.z=e,s(),r},r.normalize=function(){a();var e=i;return r.xM /=e,r.y/=e,r.z/=e,i=1,l=1,r},r.limit=function(e){a();var t=i;return e<t&&(t=e/t,r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e),r},r.setMag=function(e){a();var t=e/i;return r.x*=t,r.y*=t,r.z*=t,i=e,l=e*e,r},r.heading=function(){return Math.atan2(r.y,r.x)},r.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),n=r.x*t-r.y*e,e=r.x*e+r.y*t;return r.x=n,r.y=e,r},r.angleBetween=function(){var e=o.apply(null,arguments),t=r.dot(e)/(r.mag()*e.mag());return Math.acos(Math.min(1,Math.max(-1,t)))*Math.sign(r.cross(e).z||1)},r.lerp=function(e,tM ){return r.x=r.x*(1-t)+e.x*t,r.y=r.y*(1-t)+e.y*t,r.z=r.z*(1-t)+e.z*t,s(),r},r.reflect=function(e){return e.normalize(),r.sub(e.mult(2*r.dot(e)))},r.array=function(){return[r.x,r.y,r.z]},r.equals=function(e,t){return null==t&&null==(t=Number.EPSILON)&&(t=0),Math.abs(e.x-r.x)<t&&Math.abs(e.y-r.y)<t&&Math.abs(e.z-r.z)<t},r.fromAngle=function(e,t){return null==t&&(t=1),i=t,l=t*t,r.x=t*Math.cos(e),r.y=t*Math.sin(e),r.z=0,r},r.fromAngles=function(e,t,n){null==n&&(n=1),i=n,l=n*n;var o=Math.cos(t),t=Math.sin(t),a=Math.cos(M e),e=Math.sin(e);return r.x=n*e*t,r.y=-n*a,r.z=n*e*o,r},r.random2D=function(){return i=1,l=1,r.fromAngle(Math.random()*Math.PI*2)},r.random3D=function(){return i=1,l=1,r.fromAngles(Math.random()*Math.PI*2,Math.random()*Math.PI*2)},r.toString=function(){return`[${r.x}, ${r.y}, ${r.z}]`}},y.Vector.add=function(e,t){return new y.Vector(e.x+t.x,e.y+t.y,e.z+t.z)},y.Vector.rem=function(e,t){return new y.Vector(e.x%t.x,e.y%t.y,e.z%t.z)},y.Vector.sub=function(e,t){return new y.Vector(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.multM =function(e,t){return null==t.x?new y.Vector(e.x*t,e.y*t,e.z*t):new y.Vector(e.x*t.x,e.y*t.y,e.z*t.z)},y.Vector.div=function(e,t){return null==t.x?new y.Vector(e.x/t,e.y/t,e.z/t):new y.Vector(e.x/t.x,e.y/t.y,e.z/t.z)},y.Vector.dist=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)},y.Vector.cross=function(e,t){return new y.Vector(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},y.Vector.lerp=function(e,t,n){return new y.Vector(e.x*(1-n)+t.x*n,e.y=e.y*(1-n)+t.y*n,e.z=e.z*(1-n)+t.z*n)},y.Vector.equals=functioM n(e,t,n){return e.equals(t,n)};for(let o of["fromAngle","fromAngles","random2D","random3D"])y.Vector[o]=function(e,t,n){return(new y.Vector)[o](e,t,n)};function c(e,t,n){let o,a,r,i,l,s,u,c,h;if(0==t)return[255*(o=n),255*(a=n),255*(r=n)];switch(360<(i=e)&&(i=0),u=n*(1-t),c=n*(1-t*(s=(i/=60)-(l=~~i))),h=n*(1-t*(1-s)),l){case 0:o=n,a=h,r=u;break;case 1:o=c,a=n,r=u;break;case 2:o=u,a=n,r=h;break;case 3:o=u,a=c,r=n;break;case 4:o=h,a=u,r=n;break;default:o=n,a=u,r=c}return[255*o,255*a,255*r]}function h(){m.fillStyle="whM ite",m.strokeStyle="black",m.lineCap="round",m.lineJoin="miter"}function f(e){if(!(0<=e&&e<2*Math.PI)){for(;e<0;)e+=2*Math.PI;for(;e>=Math.PI;)e-=2*Math.PI}return e}function p(t,n,o,a,e,r,i,l){if(!y._style.noFill||!y._style.noStroke){var s=f(e),u=f(r);m.beginPath();for(let e=0;e<l+1;e++){var c=e/l,c=y.lerp(s,u,c),h=Math.cos(c)*o/2,c=Math.sin(c)*a/2;m[e?"lineTo":"moveTo"](t+h,n+c)}i==y.CHORD?m.closePath():i==y.PIE&&(m.lineTo(t,n),m.closePath()),y._style.noFill||m.fill(),y._style.noStroke||m.stroke()}}function v(e,t,M n,o){y._style.noFill&&y._style.noStroke||(m.beginPath(),m.ellipse(e,t,n/2,o/2,0,0,2*Math.PI),y._style.noFill||m.fill(),y._style.noStroke)||m.stroke()}function _(e,t,n,o,a,r,i,l){var s,u,c,h;if(!y._style.noFill||!y._style.noStroke)return null==a?(h=e,s=t,u=n,c=o,y._style.noFill||m.fillRect(h,s,u,c),void(y._style.noStroke||m.strokeRect(h,s,u,c))):null==r?_(e,t,n,o,a,a,a,a):(h=Math.min(Math.abs(o),Math.abs(n))/2,a=Math.min(h,a),r=Math.min(h,r),l=Math.min(h,l),i=Math.min(h,i),m.beginPath(),m.moveTo(e+a,t),m.arcTo(e+n,tM ,e+n,t+o,r),m.arcTo(e+n,t+o,e,t+o,i),m.arcTo(e,t+o,e,t,l),m.arcTo(e,t,e+n,t,a),m.closePath(),y._style.noFill||m.fill(),void(y._style.noStroke||m.stroke()))}function M(){i=[]}y.createVector=function(e,t,n){return new y.Vector(e,t,n)},y.curvePoint=function(e,t,n,o,a){var r=a*a*a,i=a*a;return e*(-.5*r+i-.5*a)+t*(1.5*r-2.5*i+1)+n*(-1.5*r+2*i+.5*a)+o*(.5*r-.5*i)},y.bezierPoint=function(e,t,n,o,a){var r=1-a;return Math.pow(r,3)*e+3*Math.pow(r,2)*a*t+3*r*Math.pow(a,2)*n+Math.pow(a,3)*o},y.curveTangent=function(e,t,n,o,a){M var r=a*a;return e*(-3*r/2+2*a-.5)+t*(9*r/2-5*a)+n*(-9*r/2+4*a+.5)+o*(3*r/2-a)},y.bezierTangent=function(e,t,n,o,a){var r=1-a;return 3*o*Math.pow(a,2)-3*n*Math.pow(a,2)+6*n*r*a-6*t*r*a+3*t*Math.pow(r,2)-3*e*Math.pow(r,2)},y.Color=function(e,t,n,o){let a=this;a.MAGIC=786698,a._r=e,a._g=t,a._b=n,a._a=o,a._h=0,a._s=0,a._v=0,a._hsvInferred=!1,a.setRed=function(e){a._r=e,a._hsvInferred=!1},a.setGreen=function(e){a._g=e,a._hsvInferred=!1},a.setBlue=function(e){a._b=e,a._hsvInferred=!1},a.setAlpha=function(e){a._a=e/255,aM ._hsvInferred=!1},a._inferHSV=function(){a._hsvInferred||([a._h,a._s,a._v]=function(e,t,n){let o,a,r,i,l;return o=e<t?e<n?e:n:t<n?t:n,0==(l=100*(a=t<e?n<e?e:n:n<t?t:n)/255)?[r=0,i=0,l]:0==(i=100*(a-o)/a)?[r=0,i,l]:[r=a==e?0+60*(t-n)/(a-o):a==t?120+60*(n-e)/(a-o):240+60*(e-t)/(a-o),i,l]}(a._r,a._g,a._b),a._hsvInferred=!0)},a.toString=function(){return`rgba(${Math.round(a._r)},${Math.round(a._g)},${Math.round(a._b)},${~~(1e3*a._a)/1e3})`}},y.colorMode=function(e){y._style.colorMode=e},y.color=function(){if(1==argumenM ts.length&&786698==arguments[0].MAGIC)return arguments[0];if(y._style.colorMode==y.RGB){if(1==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],1);if(2==arguments.length)return new y.Color(arguments[0],arguments[0],arguments[0],arguments[1]/255);if(3==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],1);if(4==arguments.length)return new y.Color(arguments[0],arguments[1],arguments[2],arguments[3]/255)}else{if(1==arguments.length)return new y.Color(...c(0,0,arguments[M 0]/100),1);if(2==arguments.length)return new y.Color(...c(0,0,arguments[0]/100),arguments[1]/255);if(3==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),1);if(4==arguments.length)return new y.Color(...c(arguments[0],arguments[1]/100,arguments[2]/100),arguments[3])}return null},y.red=function(e){return e._r},y.green=function(e){return e._g},y.blue=function(e){return e._b},y.alpha=function(e){return 255*e._a},y.hue=function(e){return e._inferHSV(),e._h},y.saturation=function(e)M {return e._inferHSV(),e._s},y.brightness=function(e){return e._inferHSV(),e._v},y.lightness=function(e){return 100*(.2126*e._r+.7152*e._g+.0722*e._b)/255},y.lerpColor=function(e,t,n){return y._style.colorMode==y.RGB?new y.Color(y.constrain(y.lerp(e._r,t._r,n),0,255),y.constrain(y.lerp(e._g,t._g,n),0,255),y.constrain(y.lerp(e._b,t._b,n),0,255),y.constrain(y.lerp(e._a,t._a,n),0,1)):(e._inferHSV(),t._inferHSV(),new y.Color(y.constrain(function(e,t,n){n=[[Math.abs(t-e),y.map(n,0,1,e,t)],[Math.abs(t+360-e),y.map(n,0,1,eM ,t+360)],[Math.abs(t-360-e),y.map(n,0,1,e,t-360)]];return n.sort((e,t)=>e[0]-t[0]),(n[0][1]+720)%360}(e._h,t._h,n),0,360),y.constrain(y.lerp(e._s,t._s,n),0,100),y.constrain(y.lerp(e._v,t._v,n),0,100),y.constrain(y.lerp(e._a,t._a,n),0,1)))},y.strokeWeight=function(e){y._style_noStroke=!1,m.lineWidth=e},y.stroke=function(){var e;y._style.noStroke=!1,"string"==typeof arguments[0]?m.strokeStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noStroke=!0:m.strokeStyle=e},y.noStroke=function(){y._style.noStM roke=!0},y.fill=function(){var e;y._style.noFill=!1,"string"==typeof arguments[0]?m.fillStyle=arguments[0]:(e=y.color.apply(null,arguments))._a<=0?y._style.noFill=!0:m.fillStyle=e},y.noFill=function(){y._style.noFill=!0},y.blendMode=function(e){m.globalCompositeOperation=e},y.strokeCap=function(e){m.lineCap=e},y.strokeJoin=function(e){m.lineJoin=e},y.ellipseMode=function(e){y._style.ellipseMode=e},y.rectMode=function(e){y._style.rectMode=e},y.curveDetail=function(e){y._style.curveDetail=e},y.curveAlpha=function(e){M y._style.curveAlpha=e},y.curveTightness=function(e){console.warn("curveTightness() sets the 'alpha' parameter of Catmull-Rom curve, and is NOT identical to p5.js counterpart. As this might change in the future, please call curveAlpha() directly."),y._style.curveAlpha=e},y.clear=function(){m.clearRect(0,0,y.width,y.height)},y.background=function(){if(arguments[0]&&arguments[0].MAGIC==y.MAGIC)return y.image(arguments[0],0,0,y.width,y.height);m.save(),m.resetTransform(),m.scale(y._pixelDensity,y._pixelDensity),m.fillSM tyle="string"==typeof arguments[0]?arguments[0]:y.color(...Array.from(arguments)),m.fillRect(0,0,y.width,y.height),m.restore()},y.line=function(e,t,n,o){y._style.noStroke||(m.beginPath(),m.moveTo(e,t),m.lineTo(n,o),m.stroke())},y.arc=function(e,t,n,o,a,r,i,l){if(a==r)return y.ellipse(e,t,n,o);null==l&&(l=25),null==i&&(i=y.PIE),y._style.ellipseMode==y.CENTER?p(e,t,n,o,a,r,i,l):y._style.ellipseMode==y.RADIUS?p(e,t,2*n,2*o,a,r,i,l):y._style.ellipseMode==y.CORNER?p(e+n/2,t+o/2,n,o,a,r,i,l):y._style.ellipseMode==y.CORNEM RS&&p((e+n)/2,(t+o)/2,n-e,o-t,a,r,i,l)},y.ellipse=function(e,t,n,o){null==o&&(o=n),y._style.ellipseMode==y.CENTER?v(e,t,n,o):y._style.ellipseMode==y.RADIUS?v(e,t,2*n,2*o):y._style.ellipseMode==y.CORNER?v(e+n/2,t+o/2,n,o):y._style.ellipseMode==y.CORNERS&&v((e+n)/2,(t+o)/2,n-e,o-t)},y.circle=function(e,t,n){return y.ellipse(e,t,n,n)},y.point=function(e,t){e.x&&(t=e.y,e=e.x),m.beginPath(),m.ellipse(e,t,.4,.4,0,0,2*Math.PI),m.stroke()},y.rect=function(e,t,n,o,a,r,i,l){y._style.rectMode==y.CENTER?_(e-n/2,t-o/2,n,o,a,r,iM ,l):y._style.rectMode==y.RADIUS?_(e-n,t-o,2*n,2*o,a,r,i,l):y._style.rectMode==y.CORNER?_(e,t,n,o,a,r,i,l):y._style.rectMode==y.CORNERS&&_(e,t,n-e,o-t,a,r,i,l)},y.square=function(e,t,n,o,a,r,i){return y.rect(e,t,n,n,o,a,r,i)},y.beginShape=function(){M(),m.beginPath(),r=!0},y.beginContour=function(){m.closePath(),M(),r=!0},y.endContour=function(){M(),r=!0},y.vertex=function(e,t){M(),r