@intuned/runtime-dev 1.7.0-dev-52-4 → 1.7.0-dev-52-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/assets/nopecha-extension/_metadata/computed_hashes.json +1 -0
- package/dist/common/assets/nopecha-extension/_metadata/verified_contents.json +1 -0
- package/dist/common/assets/nopecha-extension/background.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/awscaptcha.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/funcaptcha.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/geetest.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/lemincaptcha.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/perimeterx.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/recaptcha.js +2 -0
- package/dist/common/assets/nopecha-extension/captcha/textcaptcha.js +1 -0
- package/dist/common/assets/nopecha-extension/captcha/turnstile.js +1 -0
- package/dist/common/assets/nopecha-extension/eventhook/loader.js +1 -0
- package/dist/common/assets/nopecha-extension/eventhook.js +1 -0
- package/dist/common/assets/nopecha-extension/icon/128.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/128g.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/16.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/16g.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/32.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/32g.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/48.png +0 -0
- package/dist/common/assets/nopecha-extension/icon/48g.png +0 -0
- package/dist/common/assets/nopecha-extension/lib/selector.js +1 -0
- package/dist/common/assets/nopecha-extension/locate.js +76 -0
- package/dist/common/assets/nopecha-extension/manifest.json +59 -0
- package/dist/common/assets/nopecha-extension/pages/funcaptcha-demo.js +1 -0
- package/dist/common/assets/nopecha-extension/pages/integrate.js +1 -0
- package/dist/common/assets/nopecha-extension/pages/setup.js +1 -0
- package/dist/common/assets/nopecha-extension/popup.css +1 -0
- package/dist/common/assets/nopecha-extension/popup.html +19 -0
- package/dist/common/assets/nopecha-extension/popup.js +2 -0
- package/dist/common/assets/nopecha-extension/setup.html +18 -0
- package/dist/common/getPlaywrightConstructs.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file_hashes":[{"block_hashes":["5+2q32ZHR80eN/SkSLc0RrgqFug1kTYS5414VTPGE9w=","nK7ZefoGQCui3eiPi8E/sb00T3CJg1Snv8NFnYYEdr0=","JEQC6Yno1hl/ZzHUzE9FuZMOxvSTeey8fFhjr5Yqvm4="],"block_size":4096,"path":"background.js"},{"block_hashes":["BMOmajCx+Y3L+cvnFk+94OdgpzFobQv+QzG66b1rkuU=","T5pXARxaMTjKl79pVgqkPY7wFovI0B0h789H5IMWVPI="],"block_size":4096,"path":"captcha/awscaptcha.js"},{"block_hashes":["ihbUuNc1O//pw4QvVj0eCW8rNehZpGyYGehxI+MqJng=","XAWwVhnwkoYwGHrUIhZl2CvgRnyGbQm0MmY9KIn5AgI="],"block_size":4096,"path":"captcha/funcaptcha.js"},{"block_hashes":["HElEz+OpLLn8hPEc3b8OQe47CW3hqXHLMUt504Tcd4E=","pdkWKtoFxBRJ3vA6LhIRSxszVD8aoGKrVoZP7t5cd0c=","wZ8xJMT3iFMwRfWVChoA1iN7aqQbFJQz5mHcTkVKZWc="],"block_size":4096,"path":"captcha/geetest.js"},{"block_hashes":["1fg2FZdnu8U1LW2/PQKcHmkAnd/hIrcYqCIu4m9MDzg=","0QsZfFvxQebhCiXqIP93H0+LdPPBV86JJb+szcpcBFA=","Bjd8qcnRsuKIg7XPbvhfVr81JynxuxSxWDqV/OI85iU="],"block_size":4096,"path":"captcha/lemincaptcha.js"},{"block_hashes":["V7spilHH2BjyZzQgBCMQuyIPVSjwiyFJw1EF/53foMk="],"block_size":4096,"path":"captcha/perimeterx.js"},{"block_hashes":["L0g7ixbkEYGyHONUOQQPOU8OOu+PYp1M28PLXtJCNas=","8lm+hl40S6sCD0Vw2vl3MpP8ZtEp28Vylyg3OjlNkA4="],"block_size":4096,"path":"captcha/recaptcha.js"},{"block_hashes":["uKizqjqXT7utDRgVZI30z9OYXfC7koaV5H4hzA9BgM0=","RLt8CxTlaNxDsdUSCv4GeQ9pTQzVy2lJVS040W0aD18="],"block_size":4096,"path":"captcha/textcaptcha.js"},{"block_hashes":["KbGsn7bE8hW8/udjQfioBWvuEzh/0nH2iakHpCFaDYU=","UXfKfCvQy3kbFyOQAUprK+aONNj0oVtd0pPr2vNwFWc="],"block_size":4096,"path":"captcha/turnstile.js"},{"block_hashes":["JtNucIXE9yr1rFZyE1qeOVPibmcI3FtbD8/fUeF5Vac="],"block_size":4096,"path":"eventhook.js"},{"block_hashes":["2DIhj1B+IuaNhcHK0EhnBpY4JamsRpaIZ711IwI7M0E="],"block_size":4096,"path":"eventhook/loader.js"},{"block_hashes":["dnVoxq9Xd1hoXbYlzjNruBvrpwQVrVrElvqBMUC8tt4=","1FJw5HELANO4xjpGgMuKKI0Ur+k2dIxyClfvqgsKjwQ=","cZJgF8ap45g2QqCWwkB6j21gaZkH/dz7thaw6pcppoU="],"block_size":4096,"path":"icon/128g.png"},{"block_hashes":["xTmpxUmHMeq+Rlm85Dao9nAu6N+bFU9BvQyL9wJ1Tpo=","gIjTnumcntNg/SewVO/6MqNHTXZKv2I6DI5RxsgJ2GU="],"block_size":4096,"path":"icon/16g.png"},{"block_hashes":["RtrJagSgkAJ54Hvuncu2VFJiw0FA7lcyuHFtHjRvr1I=","e5AyizGNfIw3d9EUiUTXMbJ97DyZxFCnSVfyhgdhWBY="],"block_size":4096,"path":"icon/32g.png"},{"block_hashes":["7+zNNqS6ZZDpovo+PfJROxentYS19yiUJB3qi+ED+lQ=","R7hxEiC19mgAHvvPa5gJyAjQLMd1rJpHmFLcFa10Qs4=","qKhhJdsqF+b4o9b5istijuNge0BE/U2qx/zxeunFkQ8="],"block_size":4096,"path":"icon/48g.png"},{"block_hashes":["O4wsVKJslquLPUKVlJJYk72NPEgwgJDVZa3TR/yygls=","h+HBEkcJuaSAQw9aTzaoHiZDdLPPdVHv8o/uMhJ6Q5Q=","T/xCntd1b9jAI1wuJ113TiN1cAJqC+3wEumm5FBpzcM="],"block_size":4096,"path":"lib/selector.js"},{"block_hashes":["4GM1/ILISSKokA0wMl0kPkxt7ljS9qGlnAR8CGd9wNw=","rB4S1405A1ydrJaZ/ZJsLCO6bBuJTYmXC8kmQ2yVNJI=","bGH2xT28HmbltK0jlUVCO//d5rXZ7QR6wrnHVq8oy4g="],"block_size":4096,"path":"locate.js"},{"block_hashes":["CpVJb82GL0zfiUAupTD8VYs7GNQoxKR4jICBz6NzIz0=","HqHroYBMJsl06vXqDlPj6D3N/0O1UDnT6fbMWEb+sRg=","W+TR0bemT28DkjPSNiApNxa5Z56wD8pE/EyHo7dqk8M=","80lU8JZG3JOs8GOL7VmPj/xKzodxylhJgqLS8fUoxVU="],"block_size":4096,"path":"pages/funcaptcha-demo.js"},{"block_hashes":["FjppqhjVuXSB/vot51fZWh5xUbpPLq/srSewp8lDDAk="],"block_size":4096,"path":"pages/integrate.js"},{"block_hashes":["MSOZUnzrMiKBs9yLZ2a3oC2pD2nXRVokUOiKGSANF30="],"block_size":4096,"path":"pages/setup.js"},{"block_hashes":["9WGr1z8eVlTUGYzOHayKQzuETfDiC4mJ2gNsYdF0EYE=","BRgLK0n4q220+n4UYi609bhH/jTaKDhaeUkrjCLbbtg=","H3CNMNOKZHtSgp+h44Ldw0M19QsydKtHx73U2O9/tRY="],"block_size":4096,"path":"popup.css"},{"block_hashes":["Lr1DraJUwLFC89HHeGAk6UH6QnBREHPYZc8OILX+fOE="],"block_size":4096,"path":"popup.html"},{"block_hashes":["OMOD36I1S8+XuYREm6hgvZYZLngn6IpcwzpmhnwLLR4=","SehUlc7zeOizVDR5mpw9bvCIIpp057iQg4J4ojmbs/A=","ckFQQGi3kr3jcwJTfVHhxd2yGrCE6jKY7cuEBLdMqSk=","e65LSyjnrYadsomlIGTTfTHVIx4I5opYG0deNHExfuE=","Z/SPJ3snrLx6uXC9LDS8FQ10l9ht/IwI6isbc3sZdgY=","0Hk91nTbBmb4RllGVdu/dMKLM554naO5NIptpC+EnJM=","YrkNz5Ds2Iq/B5WOx6IZsXTk/h+dXRSoUGybooE83mU=","4tYh+Ck/A+ILeB19l8KG5lXyrDNcQTvWcXOYrgkTclA=","ZvwTEe0G+smFZQOtv+4tFcW8XcrTjZ4HkVW2uc8FdJw=","PCBxIYoGV7orERUEYXW0iSIblCKUI5XgkasnOZBgCFg=","ggDfhOjsYLzo+svjHGNbc5aCvAU508DXjlzFP0BLTwU=","m48/7Gfu/EySCKV7eL67HQv2YTiasbkWUJ2Xaryu820=","kJa1Cy84O/N8/UDVp2I2Ru0m1xL77JORwsfak3bxc0U=","TKGmP97DXbZIxZ4Tp/K5P0B8jRXcaqLRZnyeuW3MFqA=","TjFvl1SFlC5+EzlOEKaBzVQqibJ6TUd0hp7RnLPKYuE="],"block_size":4096,"path":"popup.js"},{"block_hashes":["5JGO7r2cfjBRUy3kulzECH4TPRpYSle90u/G41CsKBU="],"block_size":4096,"path":"setup.html"}],"version":2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"description":"treehash per file","signed_content":{"payload":"eyJjb250ZW50X2hhc2hlcyI6W3siYmxvY2tfc2l6ZSI6NDA5NiwiZGlnZXN0Ijoic2hhMjU2IiwiZmlsZXMiOlt7InBhdGgiOiJiYWNrZ3JvdW5kLmpzIiwicm9vdF9oYXNoIjoiVkJVTTdDUmUwV3REQ1FDNkl0UmxZZGh6RDRJV0syVGdCVERBMDZQbHlEMCJ9LHsicGF0aCI6ImNhcHRjaGEvYXdzY2FwdGNoYS5qcyIsInJvb3RfaGFzaCI6IjFfWC1xRHBMVWdrYUhVM0NCQWVfbEZyS1JGX0xVNDdiNWxFSXk0MHEzdWMifSx7InBhdGgiOiJjYXB0Y2hhL2Z1bmNhcHRjaGEuanMiLCJyb290X2hhc2giOiJaalRLbnBnOEV1bU1qRS1qdHpxeGFCTDJEaDVkR3BOVWhTSzlPTmpoazhJIn0seyJwYXRoIjoiY2FwdGNoYS9nZWV0ZXN0LmpzIiwicm9vdF9oYXNoIjoiUVVfSk5NYjktUFROemlGOHJyVzFCWDNqNHJvcTJQRTBMUG5RRTMxbkppbyJ9LHsicGF0aCI6ImNhcHRjaGEvbGVtaW5jYXB0Y2hhLmpzIiwicm9vdF9oYXNoIjoiNmpidWUwSVQ1V2tKT0l1bmgwNHJqUG5oMTBnQmplRzJKSjV6NGp2TW10WSJ9LHsicGF0aCI6ImNhcHRjaGEvcGVyaW1ldGVyeC5qcyIsInJvb3RfaGFzaCI6IlY3c3BpbEhIMkJqeVp6UWdCQ01RdXlJUFZTandpeUZKdzFFRl81M2ZvTWsifSx7InBhdGgiOiJjYXB0Y2hhL3JlY2FwdGNoYS5qcyIsInJvb3RfaGFzaCI6IjVQRWtXdE56NlR0S2wwTmRqdDVCRzJVVWl3RjFYeVQtQ2pkci1xclRoN28ifSx7InBhdGgiOiJjYXB0Y2hhL3RleHRjYXB0Y2hhLmpzIiwicm9vdF9oYXNoIjoiampodGZubjF6THNFR2h6cGFnZjJYMEVRTVhZTGVPR2RuSWxlTVJJQnNjVSJ9LHsicGF0aCI6ImNhcHRjaGEvdHVybnN0aWxlLmpzIiwicm9vdF9oYXNoIjoickoxNHdZOU9xcV9WYVhDdG9Jd2w5cklqTmhZSlkybGd5TG9DSEdmdHg1WSJ9LHsicGF0aCI6ImV2ZW50aG9vay5qcyIsInJvb3RfaGFzaCI6Ikp0TnVjSVhFOXlyMXJGWnlFMXFlT1ZQaWJtY0kzRnRiRDhfZlVlRjVWYWMifSx7InBhdGgiOiJldmVudGhvb2svbG9hZGVyLmpzIiwicm9vdF9oYXNoIjoiMkRJaGoxQi1JdWFOaGNISzBFaG5CcFk0SmFtc1JwYUlaNzExSXdJN00wRSJ9LHsicGF0aCI6Imljb24vMTI4LnBuZyIsInJvb3RfaGFzaCI6IncySTdfMEdOODFOaFozMFlTSnl6WXhvYjVoaGZHeExsTExiQU1jTExHUGMifSx7InBhdGgiOiJpY29uLzEyOGcucG5nIiwicm9vdF9oYXNoIjoiLVFMc0ZMVkllS2lMQ0toUHVWd3RPR2x4Y1hXekxDVGpCa3lUcUwyYzFacyJ9LHsicGF0aCI6Imljb24vMTYucG5nIiwicm9vdF9oYXNoIjoiUHpwT1kwTlgzTzNGUWRMZkJhYkdXVDQ1TmxrWGR4VEkwVFRnVURDazJFdyJ9LHsicGF0aCI6Imljb24vMTZnLnBuZyIsInJvb3RfaGFzaCI6IjZOX1oyNFJQd3lZcG5Bc1hWQjVINU9OMkl1amZ0MGtZbGVadTNNXzZwR1kifSx7InBhdGgiOiJpY29uLzMyLnBuZyIsInJvb3RfaGFzaCI6Im1xcE8tTFhfdGR2QjU0aTk3M0JUa0luRGJZZ1JEaW5LSkJ0UkI5Z093a1kifSx7InBhdGgiOiJpY29uLzMyZy5wbmciLCJyb290X2hhc2giOiJCNjJ2OFp5SWEyV211WTJoNzRET21YeFg4U3RBVzgyaDFnNjRCclpyYlFZIn0seyJwYXRoIjoiaWNvbi80OC5wbmciLCJyb290X2hhc2giOiJvWUxpMHhNVVNlcXZxc0xZXzFYTi1GRzhSWGhjeXQyMXdvQXlWVjJwOXVvIn0seyJwYXRoIjoiaWNvbi80OGcucG5nIiwicm9vdF9oYXNoIjoiMkc5LTVqTVRZWTJha1h5dUEzSWNUcFd5Y3h3UXhvNDI1U0E2X005b3VaSSJ9LHsicGF0aCI6ImxpYi9zZWxlY3Rvci5qcyIsInJvb3RfaGFzaCI6Ijg2Vy1OdjBlMDlYa0RWb0F1WHN3MUlqYkJ1cXVNem1kaEZsTjZNS0ZxcFkifSx7InBhdGgiOiJsb2NhdGUuanMiLCJyb290X2hhc2giOiJtRTd0ZXhsa3pjXzNTaG04akZWN2RYYjhYS0dXQk5ITS1kOWs2UmE3cklVIn0seyJwYXRoIjoibWFuaWZlc3QuanNvbiIsInJvb3RfaGFzaCI6IktHSGR5Zms1X3RuVnRRaGFSaHhmNTR6UkN4bGtZQkgwWEpYbk1aU1NMN2MifSx7InBhdGgiOiJwYWdlcy9mdW5jYXB0Y2hhLWRlbW8uanMiLCJyb290X2hhc2giOiJaVzYwSjFiYkpqdkp3cWtqVkxyRXNGdmJVbUNvUzVfMHJGTVQxUXdiT1ZJIn0seyJwYXRoIjoicGFnZXMvaW50ZWdyYXRlLmpzIiwicm9vdF9oYXNoIjoiRmpwcHFoalZ1WFNCX3ZvdDUxZlpXaDV4VWJwUExxX3NyU2V3cDhsRERBayJ9LHsicGF0aCI6InBhZ2VzL3NldHVwLmpzIiwicm9vdF9oYXNoIjoiTVNPWlVuenJNaUtCczl5TFoyYTNvQzJwRDJuWFJWb2tVT2lLR1NBTkYzMCJ9LHsicGF0aCI6InBvcHVwLmNzcyIsInJvb3RfaGFzaCI6IjZ4TTJQV0hnbTlLa1hQQ0ZaaXNsMW5GSHlhb0VEYlNETHQ2SHJBdlVPbzgifSx7InBhdGgiOiJwb3B1cC5odG1sIiwicm9vdF9oYXNoIjoiTHIxRHJhSlV3TEZDODlISGVHQWs2VUg2UW5CUkVIUFlaYzhPSUxYLWZPRSJ9LHsicGF0aCI6InBvcHVwLmpzIiwicm9vdF9oYXNoIjoiMUhCX3ZDRW1YdER6Z0hyd0hRNWZrV1Q4Y1RNdk9BWDhyUG50TWE2NnZhOCJ9LHsicGF0aCI6InNldHVwLmh0bWwiLCJyb290X2hhc2giOiI1SkdPN3IyY2ZqQlJVeTNrdWx6RUNINFRQUnBZU2xlOTB1X0c0MUNzS0JVIn1dLCJmb3JtYXQiOiJ0cmVlaGFzaCIsImhhc2hfYmxvY2tfc2l6ZSI6NDA5Nn1dLCJpdGVtX2lkIjoiZGtubGZtamFhbmZibGdmZGZlYmhpamFsZm1obWpqam8iLCJpdGVtX3ZlcnNpb24iOiIwLjQuMTMiLCJwcm90b2NvbF92ZXJzaW9uIjoxfQ","signatures":[{"header":{"kid":"publisher"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"JfH1es7__tiGyg0KMV9guFzIg9nfNR_3vMmrQEeSDFBSmlUCrl_4HRexruTJbKWcjdge84h0R5T3KCmMO9HMdSPfr2KAQxkm7tMt9mYV8S47l2Kh_H4SYpoH4K-KbJ2Qa5ml5BTLqCyHy9_CFQmzot0Ixte1xC0x2RJ2M-aVQ0bFa8mhE7771yuudVnyHHZR3hfZiLyDWyhQ889pczOAVrHzBk0cILdCu48pxHID9C5-AMsPPV_jgg4xsWhIJPvQGQp_7ZNCAYtP8TMZKNP3Ly9QXPW1Yd46bO4-cJ85Nvb3PHl244Yl9sgoQvHcBlv3lEe1-qupOD1yeD0r2cEeew"},{"header":{"kid":"webstore"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"b36bPHSnD2izzT5M7So3wjS3oVVnFILPwUJEQKNrK_7TMGPfend26qf97Iopseyh8y3CD6mTKlY1HajJP6A4GjrKtEgk4kErxgpBNsoscFsFaLnqYG1GYcD7whoAayBI97XWbqvpaMLZ1MSEXKkispppc6SLXehceZnKRMOlDSG02T3-kXCm0AXqFt03m23hcQ1mzco33REAENRYKF4Hgth2umiJINC6CJOCbM12fmArumF4Mrvu2t5jB4_VjeCmSj490Ia3poH7i_rQRjVFH83BTEFLkCiaSBYRouHB89kfbjY1VMja-JJpK3NYyXDr2KMB_uii5HzWotiAIKNISw"}]}}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{{let e="1";async function t(){return new Promise(n=>{chrome.scripting.getRegisteredContentScripts().then(a=>{n(a.map(c=>c.id))})})}let o=chrome.runtime.getManifest().content_scripts.filter(n=>n.js.includes("eventhook.js")).map(n=>n.matches);t().then(n=>{n.includes(e)||chrome.scripting.registerContentScripts([{id:e,matches:o.flat(),js:["eventhook/loader.js"],runAt:"document_start",allFrames:!0,world:"MAIN"}])})}var i=chrome;var x="https://api.nopecha.com",s="https://www.nopecha.com",j="https://developers.nopecha.com",g={doc:{url:j,automation:{url:`${j}/guides/extension_advanced/#automation-build`}},api:{url:x,recognition:{url:`${x}/recognition`},status:{url:`${x}/status`}},www:{url:s,annoucement:{url:`${s}/json/announcement.json`},demo:{url:`${s}/captcha`,recaptcha:{url:`${s}/captcha/recaptcha`},funcaptcha:{url:`${s}/captcha/funcaptcha`},awscaptcha:{url:`${s}/captcha/awscaptcha`},textcaptcha:{url:`${s}/captcha/textcaptcha`},turnstile:{url:`${s}/captcha/turnstile`},perimeterx:{url:`${s}/captcha/perimeterx`},geetest:{url:`${s}/captcha/geetest`},lemincaptcha:{url:`${s}/captcha/lemincaptcha`}},manage:{url:`${s}/manage`},pricing:{url:`${s}/pricing`},setup:{url:`${s}/setup`}},discord:{url:`${s}/discord`},github:{url:`${s}/github`,release:{url:`${s}/github/release`}}};var te="en",re="en";{let e=function(t,r,o,n){return{id:n,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{addOrReplaceParams:[{key:t,value:r}]}}}},condition:{regexFilter:o,resourceTypes:["sub_frame"]}}};i.declarativeNetRequest.updateDynamicRules({addRules:[e("hl",te,"^https?://[^\\.]*\\.(google\\.com|recaptcha\\.net)/recaptcha",1),e("lang",re,"^https?://[^\\.]*\\.(funcaptcha\\.com?|arkoselabs\\.c(om|n)|arkose\\.com\\.cn)/fc/gc/",2)],removeRuleIds:[1,2]})}var p=new Map;chrome.tabs.onUpdated.addListener((e,t)=>{p.has(e)&&!("url"in t)||p.set(e,new Set)});chrome.tabs.onRemoved.addListener(e=>{p.delete(e)});async function U([e],t){let r=t.tab?.id;if(!r)return console.warn("[@nope/background/tabs] unable to figure out tabId");p.has(r)||p.set(r,new Set),p.get(r).add(e)}async function q(){let e=await new Promise(t=>{i.tabs.query({active:!0,currentWindow:!0},([r])=>{t(r)})});return p.has(e.id)?[...p.get(e.id)]:[]}var y={version:18,key:"",keys:[],enabled:!0,disabled_hosts:[],awscaptcha_auto_open:!1,awscaptcha_auto_solve:!1,awscaptcha_solve_delay_time:1e3,awscaptcha_solve_delay:!0,geetest_auto_open:!1,geetest_auto_solve:!1,geetest_solve_delay_time:1e3,geetest_solve_delay:!0,funcaptcha_auto_open:!0,funcaptcha_auto_solve:!0,funcaptcha_solve_delay_time:1e3,funcaptcha_solve_delay:!0,hcaptcha_auto_open:!0,hcaptcha_auto_solve:!0,hcaptcha_solve_delay_time:3e3,hcaptcha_solve_delay:!0,lemincaptcha_auto_open:!1,lemincaptcha_auto_solve:!1,lemincaptcha_solve_delay_time:1e3,lemincaptcha_solve_delay:!0,perimeterx_auto_solve:!1,perimeterx_solve_delay_time:1e3,perimeterx_solve_delay:!0,recaptcha_auto_open:!0,recaptcha_auto_solve:!0,recaptcha_solve_delay_time:2e3,recaptcha_solve_delay:!0,textcaptcha_auto_solve:!1,textcaptcha_image_selector:"",textcaptcha_input_selector:"",textcaptcha_solve_delay_time:100,textcaptcha_solve_delay:!0,turnstile_auto_solve:!0,turnstile_solve_delay_time:1e3,turnstile_solve_delay:!0};var v=i.action,R=!0;function P(e){if(e===R)return;R=e;let t=e?"":"g",r=[new Promise(o=>{v.setIcon({path:Object.fromEntries([16,32,48,128].map(n=>[n,`/icon/${n}${t}.png`]))},o)})];return w&&r.push(new Promise(o=>{v.setBadgeText({text:e?w:""},o)})),Promise.all(r)}var w="";function k(e,t){if(e!==w)return w=e,Promise.all([new Promise(r=>{if(!R)return r();v.setBadgeText({text:e},r)}),new Promise(r=>{v.setBadgeBackgroundColor({color:t},r)})])}function N(e,t){return t.tab.url}function B(){return new Promise(e=>{i.tabs.query({active:!0,currentWindow:!0},([t])=>e(t))})}async function m(){return(await B()).id}async function J(){let e=await B();return e&&e.url&&new URL(e.url).href}async function M(){let e=await B();return JSON.stringify(e)}var I=new Set,A=new Set;i.runtime.onConnect.addListener(e=>{e.name==="stream"?(I.add(e),e.onDisconnect.addListener(()=>{I.delete(e)})):e.name==="broadcast"&&(A.add(e),e.onDisconnect.addListener(()=>{A.delete(e)}))});function O(e){I.forEach(t=>t.postMessage(e))}async function F(e){let t=await m();e={data:e,event:"broadcast"},A.forEach(r=>{r.sender?.tab?.id!==void 0&&t===r.sender?.tab?.id&&r.postMessage(e)})}var L=new Promise(e=>{i.storage.local.get("settings",t=>{if(!t?.settings)return e(y);let{settings:r}=t;r.version!==y.version&&(r={...y,key:r.key}),r.enabled||P(!1),e(r)})});function f(){return L}async function E(e){let t={...await L,...e};return P(t.enabled),new Promise(r=>{i.storage.local.set({settings:t},()=>{L=Promise.resolve(t),O({event:"settingsUpdate",settings:e}),r(null)})})}var S="2";async function ne(){return new Promise(e=>{chrome.scripting.getRegisteredContentScripts().then(t=>{e(t.map(r=>r.id))})})}async function H(){let e=await f(),t=await ne();if(e.turnstile_auto_solve){if(t.includes(S))return;chrome.scripting.registerContentScripts([{id:S,matches:["*://challenges.cloudflare.com/*"],js:["captcha/turnstile.js"],runAt:"document_start",allFrames:!0,world:"MAIN"}])}else{if(!t.includes(S))return;chrome.scripting.unregisterContentScripts({ids:[S]})}}H();chrome.storage.onChanged.addListener(H);function V(){let e;return t=>e||(e=t().finally(()=>e=void 0),e)}var W,oe=V();function T(){return oe(()=>se())}async function G(){return W}var ae=i.runtime.getManifest().version;async function se(){let e=new URLSearchParams;e.append("v",ae);let t=(await f()).key;t&&e.append("key",t);let r=`${g.api.status.url}?${e.toString()}`,o,n=null;try{n=await fetch(r),o=await n.json()}catch(a){console.error("[@nope/background/api/status] failed to fetch status",n,a),o={error:-1,message:n?n.status===522?"Server not responding":n.status===502?"Server has routing issues":`Unknown server error: ${n.status}`:"Server connection failure."}}return n&&!n.ok&&(!o||!("error"in o))&&(console.error("[@nope/background/api/status] received non 2xx",n,o),o={error:-1,message:`Server error: ${n.status}`}),W=o,"error"in o?k("ERR","#FDE047"):typeof o.credit=="number"&&typeof o.quota=="number"?k(o.credit>=9999?`${Math.floor(o.credit/o.quota*100)}`:o.credit.toString(),o.credit?"#0a95ff":"#FB7185"):k("","#fff0"),o}T();function h(e){return new Promise(t=>setTimeout(t,e))}function $(e,t=2166136261){let r=t;for(let o of e)r^=o,r+=r<<1;return r>>>0}var ie=30,_=[];function C(e,t){let r;if(!t.method||t.method==="GET"){let n=new URLSearchParams(e.split("?")[1]).get("id");if(!n)return;let a=_.find(c=>{let u=c.postres[c.postres.length-1];return!u?.responseBody||!("data"in u.responseBody)?!1:u?.responseBody?.data===n});a&&(r=a.id,a.getreq={time:+new Date,url:e,options:t})}else for(r=""+[+new Date,performance.now(),Math.random()],_.push({id:r,postreq:{time:+new Date,url:e,options:t},getreq:{time:0,url:"",options:{}},postres:[],getres:[]});_.length>ie;)_.shift();return r}function b(e,t){let r=_.find(o=>o.id===e);r&&(r.getreq.time?(r.getres.push({time:+new Date,...t}),t.responseBody&&"data"in t.responseBody&&(r.answer=t.responseBody.data)):r.postres.push({time:+new Date,...t}))}function K(){return JSON.stringify(_)}var ce=[15,16,12,10,17];async function X(e){let t=new Headers;t.append("accept","application/json"),t.append("content-type","application/json");let r=typeof e.v=="string"?$(e.v.split("").map(c=>c.charCodeAt(0))):-1;e.key&&e.key!=="undefined"&&t.append("authorization",`Bearer ${e.key}`);let o;for(let c=30;c>0&&r===2860377017;c--){let u=C(g.api.url,{method:"POST",headers:t,body:e}),l=await fetch(g.api.url,{method:"POST",headers:t,body:JSON.stringify(e)});if(l.status>=500){b(u,{response:l,attempts:c}),await h(1e3);continue}let d=await l.json();if(b(u,{response:l,responseBody:d,attempts:c}),"error"in d){if(ce.includes(d.error))return d;d.error!==11&&console.warn("[@nope/background/api/recognition] unknown error",d),await h(1e3)}else{o=d.data;break}}if(!o)return{error:-1,message:"Server timeout"};t.delete("content-type");let n,a=`${g.api.url}?id=${o}&key=${e.key}`;for(let c=60;c>0;c--){n=C(a,{headers:t});let u=await fetch(a,{headers:t});if(u.status>=500){b(n,{response:u,attempts:c}),await h(1e3);continue}let l=await u.json();if(b(n,{response:u,responseBody:l,attempts:c}),"error"in l)l.error!==14&&console.warn("[@nope/background/api/recognition] unknown error",l),await h(1e3);else return l}return n&&b(n,{failed:!0}),{error:-1,message:"Server timeout"}}async function z([e,t]){let r=await fetch(e,t);return{headers:Object.fromEntries(r.headers.entries()),status:r.status,ok:r.ok,text:await r.text()}}async function Q([e,t]){let r=await fetch(e,t),o=await r.blob(),n=new FileReader;return await new Promise(a=>{n.addEventListener("load",a),n.readAsDataURL(o)}),{headers:Object.fromEntries(r.headers.entries()),status:r.status,ok:r.ok,data:n.result}}function D(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(r=>r.charCodeAt(0));return Z(t)}var Y=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let r=8;r--;)t=t&1?3988292384^t>>>1:t>>>1;Y[e]=t}function Z(e){let t=-1;for(let r of e)t=t>>>8^Y[t&255^r];return(t^-1)>>>0}async function ee(e){!e&&(e=await m(),!e)||chrome.scripting.executeScript({target:{tabId:e,allFrames:!0},files:["lib/selector.js","locate.js"],world:"ISOLATED",injectImmediately:!0})}var ue={"echo::sender":(e,t)=>t,"log::getLogs":K,"settings::get":f,"settings::update":([e])=>E(e),"api::fetchStatus":T,"api::getCachedStatus":G,"api::recognition":([e])=>X(e),"tab::getCurrentId":m,"tab::getCurrentJSON":M,"tab::getCurrentURL":J,"tab::getURL":N,"tab::registerDetectedCaptcha":U,"tab::getDetectedCaptchas":q,"fetch::universalFetch":z,"fetch::asData":Q,"tab::broadcast":([e])=>F(e),"locator::inject":(e,t)=>ee(t?.tab?.id)};i.runtime.onMessage.addListener((e,t,r)=>{let o=e[1],n=ue[o];return Promise.resolve(n(e.slice(2),t)).then(a=>{r([D(e[0]),a])}).catch(a=>{console.error(`[@nope/background/rpc] [${o}] errored!`,e.slice(2),a),r([D(e[0]),""+a])}),!0});})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var s=chrome;var h="https://api.nopecha.com",o="https://www.nopecha.com",v="https://developers.nopecha.com",X={doc:{url:v,automation:{url:`${v}/guides/extension_advanced/#automation-build`}},api:{url:h,recognition:{url:`${h}/recognition`},status:{url:`${h}/status`}},www:{url:o,annoucement:{url:`${o}/json/announcement.json`},demo:{url:`${o}/captcha`,recaptcha:{url:`${o}/captcha/recaptcha`},funcaptcha:{url:`${o}/captcha/funcaptcha`},awscaptcha:{url:`${o}/captcha/awscaptcha`},textcaptcha:{url:`${o}/captcha/textcaptcha`},turnstile:{url:`${o}/captcha/turnstile`},perimeterx:{url:`${o}/captcha/perimeterx`},geetest:{url:`${o}/captcha/geetest`},lemincaptcha:{url:`${o}/captcha/lemincaptcha`}},manage:{url:`${o}/manage`},pricing:{url:`${o}/pricing`},setup:{url:`${o}/setup`}},discord:{url:`${o}/discord`},github:{url:`${o}/github`,release:{url:`${o}/github/release`}}};function S(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(n=>n.charCodeAt(0));return x(t)}var M=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let n=8;n--;)t=t&1?3988292384^t>>>1:t>>>1;M[e]=t}function x(e){let t=-1;for(let n of e)t=t>>>8^M[t&255^n];return(t^-1)>>>0}async function a(e,t){let n=""+[+new Date,performance.now(),Math.random()],[c,u]=await new Promise(m=>{s.runtime.sendMessage([n,e,...t],m)});if(c===S(n))return u}function B(){let e;return t=>e||(e=t().finally(()=>e=void 0),e)}var j=B(),i;function C(){return j(async()=>(i||(i=await a("settings::get",[])),i))}function q(e){i&&(i={...i,...e},A(i))}function f(){return i}function r(e){return new Promise(t=>setTimeout(t,e))}var k=[];function b(e,t){e.timedout=!1,k.push(e);let n,c=setInterval(async()=>{await $(e,f())||(clearTimeout(n),clearInterval(c))},400);t&&(n=setTimeout(()=>clearInterval(c),t),e.timedout=!0)}async function $(e,t){if(e.timedout)return!1;let n=e.condition(t);if(n===e.running())return!1;if(!n&&e.running())return e.quit(),!1;if(n&&!e.running()){for(;!e.ready();)await r(200);return e.start(),!1}}function A(e){k.forEach(t=>$(t,e))}function R(){s.runtime.connect({name:"stream"}).onMessage.addListener(t=>{t.event==="settingsUpdate"&&q(t.settings)})}function w(e){if(document.readyState!=="loading")setTimeout(e,0);else{let t;t=()=>{removeEventListener("DOMContentLoaded",t),e()},addEventListener("DOMContentLoaded",t)}}var F,_=!1;function L(){return!!(document.querySelector("#captcha-container")&&document.querySelector("#amzn-captcha-verify-button"))}function T(){_=!0,K()}function E(){F.disconnect(),_=!1}function P(){return _}async function K(){await r(400),document.querySelector("#amzn-captcha-verify-button")?.click()}function N(){if(document.querySelector('script[src*="awswaf"]')||H(document))return!0;for(let e of document.querySelectorAll("awswaf-captcha")){let t=e.shadowRoot;if(H(t))return!0}return!1}function H(e){let t=e.querySelector("#amzn-captcha-verify-button, #amzn-btn-verify-internal");return!!(e.querySelector("#captcha-container, .amzn-captcha-modal")||t)}async function O(e,t){let n={v:s.runtime.getManifest().version,key:G(e)};return n.url=await a("tab::getURL",[]),n}function G(e){return!e.keys||!e.keys.length?e.key:e.keys[Math.floor(Math.random()*e.keys.length)]}var d,y=!1;function I(){if(D(document))return!0;for(let e of document.querySelectorAll("awswaf-captcha")){let t=e.shadowRoot;if(D(t))return!0}return!1}function U(){y=!0;let e=t=>{t.filter(n=>n.type==="childList"&&n.addedNodes.length).map(n=>[...n.addedNodes]).flat().filter(n=>n.nodeName==="AWSWAF-CAPTCHA").map(n=>n.shadowRoot).forEach(n=>{d.observe(n,{subtree:!0,childList:!0}),l(n)}),[3,4,5].includes(t.length)?l(t[0].target.parentElement):t.length===1&&t[0].addedNodes.length&&t[0].addedNodes[0].id==="root"&&l(t[0].addedNodes[0])};d=new MutationObserver(e),d.observe(document,{subtree:!0,childList:!0}),l(document),document.querySelectorAll("awswaf-captcha").forEach(t=>{let n=t.shadowRoot;d.observe(n,{subtree:!0,childList:!0}),l(n)})}function W(){d.disconnect(),y=!1}function Q(){return y}function l(e){let t=e.querySelector("#amzn-btn-audio, #amzn-btn-audio-internal");e.querySelector("audio")||t?.click(),e.querySelector("audio")&&J(e),(e.querySelector("audio")||t)&&a("tab::registerDetectedCaptcha",["awscaptcha"])}function D(e){let t=e.querySelector("#amzn-btn-audio, #amzn-btn-audio-internal");return!!(e.querySelector("audio")||t)}var z;async function J(e){let t=e.querySelector("audio").src.replace("data:audio/aac;base64,","");if(t===z||(z=t,!t))return;let n=f(),c=new Date().valueOf(),u=await a("api::recognition",[{type:"awscaptcha",audio_data:[t],...await O(n)}]);if(!u||"error"in u)return;let m=new Date().valueOf();if(n.awscaptcha_solve_delay){let p=n.awscaptcha_solve_delay_time-m+c;p>0&&await r(p)}let g=u.data[0];g?(e.querySelector("input").value=g,await r(200),e.querySelector("#amzn-btn-verify-internal")?.click()):e.querySelector("#amzn-btn-refresh-internal")?.click()}async function V(){let e=!1;for(let n=0;n<3;n++)if(await r(1e3),N()){e=!0;break}if(!e)return;R(),await C(),await a("tab::registerDetectedCaptcha",["awscaptcha"]);let t=location.hostname;b({name:"awscaptcha/auto-open",condition:n=>n.enabled&&n.awscaptcha_auto_open&&!n.disabled_hosts.includes(t),ready:L,start:T,quit:E,running:P}),b({name:"awscaptcha/auto-solve",condition:n=>n.enabled&&n.awscaptcha_auto_solve&&!n.disabled_hosts.includes(t),ready:I,start:U,quit:W,running:Q})}w(V);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{function A(){if("ancestorOrigins"in location){let t=location.ancestorOrigins,n=t[1]??t[0];if(n)return n.split("/")[2]}let e=document.referrer;return e?e.split("/")[2]:location.origin}var h=chrome;var x="https://api.nopecha.com",i="https://www.nopecha.com",L="https://developers.nopecha.com",_e={doc:{url:L,automation:{url:`${L}/guides/extension_advanced/#automation-build`}},api:{url:x,recognition:{url:`${x}/recognition`},status:{url:`${x}/status`}},www:{url:i,annoucement:{url:`${i}/json/announcement.json`},demo:{url:`${i}/captcha`,recaptcha:{url:`${i}/captcha/recaptcha`},funcaptcha:{url:`${i}/captcha/funcaptcha`},awscaptcha:{url:`${i}/captcha/awscaptcha`},textcaptcha:{url:`${i}/captcha/textcaptcha`},turnstile:{url:`${i}/captcha/turnstile`},perimeterx:{url:`${i}/captcha/perimeterx`},geetest:{url:`${i}/captcha/geetest`},lemincaptcha:{url:`${i}/captcha/lemincaptcha`}},manage:{url:`${i}/manage`},pricing:{url:`${i}/pricing`},setup:{url:`${i}/setup`}},discord:{url:`${i}/discord`},github:{url:`${i}/github`,release:{url:`${i}/github/release`}}};function P(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(n=>n.charCodeAt(0));return q(t)}var E=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let n=8;n--;)t=t&1?3988292384^t>>>1:t>>>1;E[e]=t}function q(e){let t=-1;for(let n of e)t=t>>>8^E[t&255^n];return(t^-1)>>>0}async function u(e,t){let n=""+[+new Date,performance.now(),Math.random()],[a,o]=await new Promise(r=>{h.runtime.sendMessage([n,e,...t],r)});if(a===P(n))return o}function b(){let e;return t=>e||(e=t().finally(()=>e=void 0),e)}var oe=b(),g;function O(){return oe(async()=>(g||(g=await u("settings::get",[])),g))}function F(e){g&&(g={...g,...e},U(g))}function _(){return g}function l(e){return new Promise(t=>setTimeout(t,e))}var N=[];function T(e,t){e.timedout=!1,N.push(e);let n,a=setInterval(async()=>{await W(e,_())||(clearTimeout(n),clearInterval(a))},400);t&&(n=setTimeout(()=>clearInterval(a),t),e.timedout=!0)}async function W(e,t){if(e.timedout)return!1;let n=e.condition(t);if(n===e.running())return!1;if(!n&&e.running())return e.quit(),!1;if(n&&!e.running()){for(;!e.ready();)await l(200);return e.start(),!1}}function U(e){N.forEach(t=>W(t,e))}function z(){h.runtime.connect({name:"stream"}).onMessage.addListener(t=>{t.event==="settingsUpdate"&&F(t.settings)})}function k(e){if(document.readyState!=="loading")setTimeout(e,0);else{let t;t=()=>{removeEventListener("DOMContentLoaded",t),e()},addEventListener("DOMContentLoaded",t)}}var Oe=b();var re=["#home_children_button","#wrong_children_button","#wrongTimeout_children_button","button[data-theme*=verifyButton]","[class*=game-fail] .button",".error .button"],G=["#root","#app","#home","#wrong","#wrongTimeout",".container[dir]"].join(", "),C,S=!1;function V(){return!!document.querySelector(G)}function j(){S=!0;let e=()=>{ie(),document.querySelectorAll(G).forEach(t=>{C.observe(t,{childList:!0})})};C=new MutationObserver(e),e()}function Q(){C.disconnect(),S=!1}function K(){return S}async function ie(){await l(400),re.map(e=>document.querySelector(e)).filter(e=>e).map(e=>e.click())}function ce(e,t){let n=document.createElement("canvas");return n.width=e,n.height=t,n}function I(e){return e.toDataURL("image/jpeg").replace(/data:image\/[a-z]+;base64,/g,"")}function se(e){try{e.getContext("2d").getImageData(0,0,1,1)}catch{return!0}return!1}async function B(e,t,n=1e4){if(!t&&!e.complete&&!await new Promise(c=>{let d=setTimeout(()=>{c(!1)},n);e.addEventListener("load",()=>{clearTimeout(d),c(!0)})}))return;let a=ce(e.naturalWidth||t?.clientWidth,e.naturalHeight||t?.clientHeight);return a.getContext("2d").drawImage(e,0,0),!se(a)&&a}async function M(e){let n=getComputedStyle(e).backgroundImage;if(!n||n==="none")if("src"in e&&e.src)n=`url("${e.src}")`;else return;if("computedStyleMap"in e&&!/url\(["']https?:\/\//.test(n)){let s=e.computedStyleMap().get("background-image");if(s instanceof CSSImageValue){let f=await B(s,e);if(f)return f}}let a=/"(.+)"/.exec(n);if(!a)return;n=a[1];let o=document.createElement("a");if(o.href=n,new URL(o.href).origin===document.location.origin){let s=new Image;s.crossOrigin="anonymous",s.src=n;let f=await B(s);if(f)return f}let r=await u("fetch::asData",[n,{}]),c=new Image;c.crossOrigin="anonymous",c.src=r.data;let d=await B(c);if(d)return d}function ue(e,t,n,a){let o=(a*t+n)*4;return[e[o],e[o+1],e[o+2]]}function le(e,t){return e.every(n=>n<=t)}function de(e,t){return e.every(n=>n>=t)}function $(e,t=0,n=230,a=.99){let o=e.getContext("2d"),r=o.canvas.width,c=o.canvas.height;if(r===0||c===0)return!0;let d=o.getImageData(0,0,r,c).data,s=0;for(let v=0;v<c;v++)for(let w=0;w<r;w++){let D=ue(d,r,w,v);(le(D,t)||de(D,n))&&s++}return s/(r*c)>a}function J(){return[]}function X(e){return new Promise(t=>{e.push(t)})}function m(e){e.forEach(t=>t()),e.splice(0)}async function Y(e,t){let n={v:h.runtime.getManifest().version,key:ge(e)};return n.url=await u("tab::getURL",[]),n}function ge(e){return!e.keys||!e.keys.length?e.key:e.keys[Math.floor(Math.random()*e.keys.length)]}var p=J(),R,y=!1;function ee(){return H()!==void 0}function te(){y=!0,m(p),R=new MutationObserver(e=>{let t=H();for(let n of e)if(n.type==="childList"&&n.removedNodes.length&&["app","game"].includes(n.target.id)){setTimeout(()=>m(p),200);return}t===1&&e.length===24&&!document.querySelector(".loading-spinner")&&setTimeout(()=>m(p),200),t===2&&[8,13].includes(e.length)&&!document.querySelector(".loading-spinner")&&setTimeout(()=>m(p),200)}),R.observe(document,{childList:!0,subtree:!0,attributes:!0}),fe()}function ne(){R.disconnect(),y=!1,m(p)}function ae(){return y}var me={[0]:{async getTask(){let e=document.querySelector("#game_children_text h2"),t=document.querySelector("#game_challengeItem_image"),n=[...document.querySelectorAll("#game_children_challenge a")];if(!(!e||!t||n.length!==6))return{payload:{type:"funcaptcha",task:e.textContent,image_data:[t.src.replace(/data:image\/[a-z]+;base64,/g,"")]},cells:n}},async solution(e,t){e.cells.forEach((n,a)=>{t.data[a]&&n.click()})}},[1]:{async getTask(){let e=document.querySelector(".tile-game h2"),t=[...document.querySelectorAll(".challenge-container button")];if(!e||t.length!==6)return;let n=await M(t[0]);if(n&&!$(n))return{payload:{type:"funcaptcha",task:e.textContent,image_data:[I(n)]},cells:t}},async solution(e,t){e.cells.forEach((n,a)=>{t.data[a]&&n.click()})}},[2]:{async getTask(){let e=document.querySelector(".match-game h2"),t=document.querySelector(".key-frame-image");if(!e||!t)return;let n=await M(t);if(n&&!$(n))return{payload:{type:"funcaptcha_match",task:e.textContent,image_data:[I(n)]}}},async solution(e,t){let n=document.querySelector(".right-arrow"),a=t.data.indexOf(!0);for(let r=0;r<a;r++)n.click(),await l(100);await l(500),document.querySelector(".button").click()}}},pe=[["script[src*=tile-game-ui]",0],[".tile-game",1],[".match-game",2]];function H(){return pe.filter(([e])=>document.querySelector(e)).map(([e,t])=>t)[0]}var Z=!1;async function fe(){if(!Z)for(Z=!0;y;){let e=H();if(e===void 0){await l(500);continue}let t=me[e],n=await t.getTask();if(!n){await l(500);continue}let a=_(),o=new Date().valueOf(),r=await u("api::recognition",[{...n.payload,...await Y(a,!0)}]);if(!r||"error"in r){await l(2e3);continue}let c=new Date().valueOf();if(a.funcaptcha_solve_delay){let s=a.funcaptcha_solve_delay_time-c+o;s>0&&await l(s)}await t.solution(n,r);let d=setTimeout(()=>{m(p)},1e3*5);await X(p),clearTimeout(d)}}async function he(){z(),await O(),await u("tab::registerDetectedCaptcha",["funcaptcha"]);let e=A();T({name:"funcaptcha/auto-open",condition:t=>t.enabled&&t.funcaptcha_auto_open&&!t.disabled_hosts.includes(e),ready:V,start:j,quit:Q,running:K}),T({name:"funcaptcha/auto-solve",condition:t=>t.enabled&&t.funcaptcha_auto_solve&&!t.disabled_hosts.includes(e),ready:ee,start:te,quit:ne,running:ae})}k(he);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var x=chrome;var I="https://api.nopecha.com",d="https://www.nopecha.com",U="https://developers.nopecha.com",Ie={doc:{url:U,automation:{url:`${U}/guides/extension_advanced/#automation-build`}},api:{url:I,recognition:{url:`${I}/recognition`},status:{url:`${I}/status`}},www:{url:d,annoucement:{url:`${d}/json/announcement.json`},demo:{url:`${d}/captcha`,recaptcha:{url:`${d}/captcha/recaptcha`},funcaptcha:{url:`${d}/captcha/funcaptcha`},awscaptcha:{url:`${d}/captcha/awscaptcha`},textcaptcha:{url:`${d}/captcha/textcaptcha`},turnstile:{url:`${d}/captcha/turnstile`},perimeterx:{url:`${d}/captcha/perimeterx`},geetest:{url:`${d}/captcha/geetest`},lemincaptcha:{url:`${d}/captcha/lemincaptcha`}},manage:{url:`${d}/manage`},pricing:{url:`${d}/pricing`},setup:{url:`${d}/setup`}},discord:{url:`${d}/discord`},github:{url:`${d}/github`,release:{url:`${d}/github/release`}}};function N(e){let n=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(t=>t.charCodeAt(0));return z(n)}var W=new Uint32Array(256);for(let e=256;e--;){let n=e;for(let t=8;t--;)n=n&1?3988292384^n>>>1:n>>>1;W[e]=n}function z(e){let n=-1;for(let t of e)n=n>>>8^W[n&255^t];return(n^-1)>>>0}async function f(e,n){let t=""+[+new Date,performance.now(),Math.random()],[o,a]=await new Promise(r=>{x.runtime.sendMessage([t,e,...n],r)});if(o===N(t))return a}function F(){let e;return n=>e||(e=n().finally(()=>e=void 0),e)}var he=F(),_;function X(){return he(async()=>(_||(_=await f("settings::get",[])),_))}function Y(e){_&&(_={..._,...e},K(_))}function B(){return _}function l(e){return new Promise(n=>setTimeout(n,e))}var Q=[];function E(e,n){e.timedout=!1,Q.push(e);let t,o=setInterval(async()=>{await j(e,B())||(clearTimeout(t),clearInterval(o))},400);n&&(t=setTimeout(()=>clearInterval(o),n),e.timedout=!0)}async function j(e,n){if(e.timedout)return!1;let t=e.condition(n);if(t===e.running())return!1;if(!t&&e.running())return e.quit(),!1;if(t&&!e.running()){for(;!e.ready();)await l(200);return e.start(),!1}}function K(e){Q.forEach(n=>j(n,e))}function V(){x.runtime.connect({name:"stream"}).onMessage.addListener(n=>{n.event==="settingsUpdate"&&Y(n.settings)})}function R(e){if(document.readyState!=="loading")setTimeout(e,0);else{let n;n=()=>{removeEventListener("DOMContentLoaded",n),e()},addEventListener("DOMContentLoaded",n)}}var _e=(e,n,t)=>new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:n,screenY:t,clientX:n,clientY:t,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});function G(e,{events:n=null,x:t=null,y:o=null}={}){let a=document.querySelector(e);if(!a)return;if(t===null||o===null){let i=a.getBoundingClientRect();t=i.left+i.width/2,o=i.top+i.height/2}let r=n??["mouseover","mousedown","mouseup","click"];for(let i of r)a.dispatchEvent(_e(i,t,o))}var $,H=!1;function J(){return!!document.querySelector(".geetest_btn_click")}function Z(){H=!0;let e=()=>{if(!document.querySelector(".geetest_captcha")?.classList.contains("geetest_nextReady"))return;document.querySelector(".geetest_btn_click").attributes["aria-label"]?.value==="Click to verify"&&ve()};$=new MutationObserver(e),$.observe(document.querySelector(".geetest_captcha"),{subtree:!0,childList:!0}),e()}function ee(){$.disconnect(),H=!1}function te(){return H}async function ve(){await l(400),G(".geetest_btn_click")}function S(e,n){let t=document.createElement("canvas");return t.width=e,t.height=n,t}function ne(e){return e.toDataURL("image/jpeg").replace(/data:image\/[a-z]+;base64,/g,"")}function we(e){try{e.getContext("2d").getImageData(0,0,1,1)}catch{return!0}return!1}async function L(e,n,t=1e4){if(!n&&!e.complete&&!await new Promise(i=>{let c=setTimeout(()=>{i(!1)},t);e.addEventListener("load",()=>{clearTimeout(c),i(!0)})}))return;let o=S(e.naturalWidth||n?.clientWidth,e.naturalHeight||n?.clientHeight);return o.getContext("2d").drawImage(e,0,0),!we(o)&&o}async function oe(e){let t=getComputedStyle(e).backgroundImage;if(!t||t==="none")if("src"in e&&e.src)t=`url("${e.src}")`;else return;if("computedStyleMap"in e&&!/url\(["']https?:\/\//.test(t)){let s=e.computedStyleMap().get("background-image");if(s instanceof CSSImageValue){let g=await L(s,e);if(g)return g}}let o=/"(.+)"/.exec(t);if(!o)return;t=o[1];let a=document.createElement("a");if(a.href=t,new URL(a.href).origin===document.location.origin){let s=new Image;s.crossOrigin="anonymous",s.src=t;let g=await L(s);if(g)return g}let r=await f("fetch::asData",[t,{}]),i=new Image;i.crossOrigin="anonymous",i.src=r.data;let c=await L(i);if(c)return c}function ae(e,n="",t=""){let o=e.getContext("2d").getImageData(0,0,e.width,e.height),a=S(e.width,e.height),r=a.getContext("2d");r.putImageData(o,0,0);let i=75,c=75,s=e.width,g=e.height,m=s/g,u=s,p=g;u>i&&(u=i,p=u/m),p>c&&(p=c,u=p*m);function D(b,T,C,O){let h=10,y=O,k,v;if(b.font=`${y}px Arial`,v=b.measureText(T).width,v<=C)return`${y}px Arial`;for(;y-h>.1;)k=(y+h)/2,b.font=`${k}px Arial`,v=b.measureText(T).width,v>C?y=k:h=k;for(;v<C&&h<O;)h+=.1,b.font=`${h.toFixed(1)}px Arial`,v=b.measureText(T).width;return v>C&&(h-=.1),`${h.toFixed(1)}px Arial`}r.font=D(r,t,s,200),r.textBaseline="top";let w=r.measureText(t),fe=w.width,be=w.actualBoundingBoxAscent+w.actualBoundingBoxDescent;r.fillStyle="white",r.fillRect(0,0,fe,be),r.fillStyle="black",r.fillText(t,0,0);let q=a.toDataURL(),A=new Image;A.onload=function(){let b=[`background: url(${q}) no-repeat;`,`padding: ${p}px ${u}px;`,"background-size: contain;","font-size: 1px;"].join(" ");console.log(`%c ${n}`,b)},A.src=q}function xe(e,n,t,o){let a=(o*n+t)*4;return[e[a],e[a+1],e[a+2]]}function ye(e,n){return e.every(t=>t<=n)}function Ce(e,n){return e.every(t=>t>=n)}function ie(e,n=0,t=230,o=.99){let a=e.getContext("2d"),r=a.canvas.width,i=a.canvas.height;if(r===0||i===0)return!0;let c=a.getImageData(0,0,r,i).data,s=0;for(let m=0;m<i;m++)for(let u=0;u<r;u++){let p=xe(c,r,u,m);(ye(p,n)||Ce(p,t))&&s++}return s/(r*i)>o}function re(e,n=500,t=500){let o=e.getContext("2d"),a=o.canvas.width,r=o.canvas.height,i=o.getImageData(0,0,a,r),c=i.width,s=i.height,g=c/s,m=c,u=s;if(m>n&&(m=n,u=Math.floor(m/g)),u>t&&(u=t,m=Math.floor(u*g)),m===c&&u===s)return e;let p=S(c,s);p.getContext("2d").putImageData(i,0,0);let w=S(m,u);return w.getContext("2d").drawImage(p,0,0,c,s,0,0,m,u),w}async function se(e,n){let t={v:x.runtime.getManifest().version,key:ke(e)};return t.url=await f("tab::getURL",[]),t}function ke(e){return!e.keys||!e.keys.length?e.key:e.keys[Math.floor(Math.random()*e.keys.length)]}var P,M=!1;function de(){let e=document.querySelector(".geetest_bg");return!!(e&&e.style.display!=="none"&&e.style["background-image"]!=="none")}function ge(){M=!0,P=new MutationObserver(e=>{e[0].addedNodes.length>0&&ue()}),P.observe(document.querySelector(".geetest_box_wrap"),{childList:!0}),document.querySelector(".geetest_bg")&&ue()}function me(){P.disconnect(),M=!1}function pe(){return M}var ce=!1;async function ue(){if(ce)return;ce=!0;let e;for(;M;){if(document.querySelector(".geetest_box").style.display==="none"){await l(1e3);continue}let t=B(),o=Date.now().valueOf(),a=document.querySelector(".geetest_text_tips")?.textContent;if(!a){e=void 0,await l(1e3);continue}let r=512,i=document.querySelector(".geetest_bg"),c=await Be(r,i);if(!c){e=void 0,await l(1e3);continue}let s=`${a}:${c}`;if(s===e){await l(1e3);continue}e=s;let g=await f("api::recognition",[{type:"hcaptcha_area_select",task:a,image_data:[c],...await se(t)}]);if(!g||"error"in g){document.querySelector(".geetest_refresh")?.click(),await l(3e3);continue}let m=new Date().valueOf();if(t.geetest_solve_delay){let p=t.geetest_solve_delay_time-m+o;p>0&&await l(p)}let u=g.data.x;if(u){let p=parseInt(u);await Me(p),await l(5e3)}else document.querySelector(".geetest_refresh")?.click(),await l(3e3)}}async function Be(e,n){let t=await oe(n);if(t&&(ae(t,"[@nope/geetest]",`${t.width}x${t.height}`),!ie(t)))return e!==null&&(t=re(t,e,e)),ne(t)}function Se(e){for(;e=e.parentElement;)if(e.classList.contains("geetest_box"))return e;console.error("no .geetest_box found")}async function le(e,n,t,o=50){let a=n.left!==void 0?n:n.getBoundingClientRect(),r=t.left!==void 0?t:t.getBoundingClientRect(),[i,c]=[(r.left-a.left)/o,(r.top-a.top)/o];for(let s=0;s<o;s++)e.dispatchEvent(new MouseEvent("mousemove",{clientX:i*s+a.left,clientY:c*s+a.top})),await l(10);await l(50)}async function Me(e){let n=document.querySelector(".geetest_btn"),t=n.getBoundingClientRect(),o=n.parentElement.getBoundingClientRect(),a=.95,r=o.width*a*e/100,i=Se(n);await le(i,{left:500,top:500},t),n.dispatchEvent(new MouseEvent("mousemove",{clientX:t.left+30,clientY:t.top+30})),await l(50),n.dispatchEvent(new MouseEvent("mousedown",{clientX:t.left+30,clientY:t.top+30})),await l(50),await le(n,t,{left:t.left+r,top:t.top}),await l(50);let c=new MouseEvent("mouseup",{clientX:t.left+r,clientY:t.top});n.dispatchEvent(c),i.dispatchEvent(c)}async function Te(){V(),await X(),await f("tab::registerDetectedCaptcha",["geetest"]);let n=new URLSearchParams(location.hash.substring(1)).get("host");E({name:"geetest/auto-open",condition:t=>t.enabled&&t.geetest_auto_open&&!t.disabled_hosts.includes(n),ready:J,start:Z,quit:ee,running:te}),E({name:"geetest/auto-solve",condition:t=>t.enabled&&t.geetest_auto_solve&&!t.disabled_hosts.includes(n),ready:de,start:ge,quit:me,running:pe})}R(Te);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var y=chrome;var L="https://api.nopecha.com",m="https://www.nopecha.com",W="https://developers.nopecha.com",Me={doc:{url:W,automation:{url:`${W}/guides/extension_advanced/#automation-build`}},api:{url:L,recognition:{url:`${L}/recognition`},status:{url:`${L}/status`}},www:{url:m,annoucement:{url:`${m}/json/announcement.json`},demo:{url:`${m}/captcha`,recaptcha:{url:`${m}/captcha/recaptcha`},funcaptcha:{url:`${m}/captcha/funcaptcha`},awscaptcha:{url:`${m}/captcha/awscaptcha`},textcaptcha:{url:`${m}/captcha/textcaptcha`},turnstile:{url:`${m}/captcha/turnstile`},perimeterx:{url:`${m}/captcha/perimeterx`},geetest:{url:`${m}/captcha/geetest`},lemincaptcha:{url:`${m}/captcha/lemincaptcha`}},manage:{url:`${m}/manage`},pricing:{url:`${m}/pricing`},setup:{url:`${m}/setup`}},discord:{url:`${m}/discord`},github:{url:`${m}/github`,release:{url:`${m}/github/release`}}};function F(e){let n=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(t=>t.charCodeAt(0));return X(n)}var z=new Uint32Array(256);for(let e=256;e--;){let n=e;for(let t=8;t--;)n=n&1?3988292384^n>>>1:n>>>1;z[e]=n}function X(e){let n=-1;for(let t of e)n=n>>>8^z[n&255^t];return(n^-1)>>>0}async function h(e,n){let t=""+[+new Date,performance.now(),Math.random()],[a,c]=await new Promise(i=>{y.runtime.sendMessage([t,e,...n],i)});if(a===F(t))return c}function Y(){let e;return n=>e||(e=n().finally(()=>e=void 0),e)}var he=Y(),_;function K(){return he(async()=>(_||(_=await h("settings::get",[])),_))}function Q(e){_&&(_={..._,...e},j(_))}function $(){return _}function p(e){return new Promise(n=>setTimeout(n,e))}var V=[];function P(e,n){e.timedout=!1,V.push(e);let t,a=setInterval(async()=>{await G(e,$())||(clearTimeout(t),clearInterval(a))},400);n&&(t=setTimeout(()=>clearInterval(a),n),e.timedout=!0)}async function G(e,n){if(e.timedout)return!1;let t=e.condition(n);if(t===e.running())return!1;if(!t&&e.running())return e.quit(),!1;if(t&&!e.running()){for(;!e.ready();)await p(200);return e.start(),!1}}function j(e){V.forEach(n=>G(n,e))}function J(){y.runtime.connect({name:"stream"}).onMessage.addListener(n=>{n.event==="settingsUpdate"&&Q(n.settings)})}function q(e){if(document.readyState!=="loading")setTimeout(e,0);else{let n;n=()=>{removeEventListener("DOMContentLoaded",n),e()},addEventListener("DOMContentLoaded",n)}}var be=(e,n,t)=>new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:n,screenY:t,clientX:n,clientY:t,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});function Z(e,{events:n=null,x:t=null,y:a=null}={}){let c=document.querySelector(e);if(!c)return;if(t===null||a===null){let o=c.getBoundingClientRect();t=o.left+o.width/2,a=o.top+o.height/2}let i=n??["mouseover","mousedown","mouseup","click"];for(let o of i)c.dispatchEvent(be(o,t,a))}var A,D=!1;function ee(){return!!document.querySelector('input[name="lemin_challenge_id"]')}function te(){D=!0;let e=()=>{document.querySelector(".lemin-captcha-input-box").classList.contains("pending")||ve()};A=new MutationObserver(e),A.observe(document.querySelector(".lemin-captcha-input-box"),{attributes:!0,attributeFilter:["class"]}),e()}function ne(){A.disconnect(),D=!1}function oe(){return D}async function ve(){await p(400),Z('span[class="checkmark"]')}function I(e,n){let t=document.createElement("canvas");return t.width=e,t.height=n,t}function ae(e){return e.toDataURL("image/jpeg").replace(/data:image\/[a-z]+;base64,/g,"")}function _e(e){try{e.getContext("2d").getImageData(0,0,1,1)}catch{return!0}return!1}async function O(e,n,t=1e4){if(!n&&!e.complete&&!await new Promise(o=>{let s=setTimeout(()=>{o(!1)},t);e.addEventListener("load",()=>{clearTimeout(s),o(!0)})}))return;let a=I(e.naturalWidth||n?.clientWidth,e.naturalHeight||n?.clientHeight);return a.getContext("2d").drawImage(e,0,0),!_e(a)&&a}async function ie(e){let t=getComputedStyle(e).backgroundImage;if(!t||t==="none")if("src"in e&&e.src)t=`url("${e.src}")`;else return;if("computedStyleMap"in e&&!/url\(["']https?:\/\//.test(t)){let r=e.computedStyleMap().get("background-image");if(r instanceof CSSImageValue){let d=await O(r,e);if(d)return d}}let a=/"(.+)"/.exec(t);if(!a)return;t=a[1];let c=document.createElement("a");if(c.href=t,new URL(c.href).origin===document.location.origin){let r=new Image;r.crossOrigin="anonymous",r.src=t;let d=await O(r);if(d)return d}let i=await h("fetch::asData",[t,{}]),o=new Image;o.crossOrigin="anonymous",o.src=i.data;let s=await O(o);if(s)return s}function re(e,n="",t=""){let a=e.getContext("2d").getImageData(0,0,e.width,e.height),c=I(e.width,e.height),i=c.getContext("2d");i.putImageData(a,0,0);let o=75,s=75,r=e.width,d=e.height,l=r/d,u=r,g=d;u>o&&(u=o,g=u/l),g>s&&(g=s,u=g*l);function C(b,H,k,N){let v=10,B=N,M,w;if(b.font=`${B}px Arial`,w=b.measureText(H).width,w<=k)return`${B}px Arial`;for(;B-v>.1;)M=(B+v)/2,b.font=`${M}px Arial`,w=b.measureText(H).width,w>k?B=M:v=M;for(;w<k&&v<N;)v+=.1,b.font=`${v.toFixed(1)}px Arial`,w=b.measureText(H).width;return w>k&&(v-=.1),`${v.toFixed(1)}px Arial`}i.font=C(i,t,r,200),i.textBaseline="top";let f=i.measureText(t),R=f.width,E=f.actualBoundingBoxAscent+f.actualBoundingBoxDescent;i.fillStyle="white",i.fillRect(0,0,R,E),i.fillStyle="black",i.fillText(t,0,0);let x=c.toDataURL(),S=new Image;S.onload=function(){let b=[`background: url(${x}) no-repeat;`,`padding: ${g}px ${u}px;`,"background-size: contain;","font-size: 1px;"].join(" ");console.log(`%c ${n}`,b)},S.src=x}function we(e,n,t,a){let c=(a*n+t)*4;return[e[c],e[c+1],e[c+2]]}function xe(e,n){return e.every(t=>t<=n)}function ye(e,n){return e.every(t=>t>=n)}function ce(e,n=0,t=230,a=.99){let c=e.getContext("2d"),i=c.canvas.width,o=c.canvas.height;if(i===0||o===0)return!0;let s=c.getImageData(0,0,i,o).data,r=0;for(let l=0;l<o;l++)for(let u=0;u<i;u++){let g=we(s,i,u,l);(xe(g,n)||ye(g,t))&&r++}return r/(i*o)>a}function se(e,n=500,t=500){let a=e.getContext("2d"),c=a.canvas.width,i=a.canvas.height,o=a.getImageData(0,0,c,i),s=o.width,r=o.height,d=s/r,l=s,u=r;if(l>n&&(l=n,u=Math.floor(l/d)),u>t&&(u=t,l=Math.floor(u*d)),l===s&&u===r)return e;let g=I(s,r);g.getContext("2d").putImageData(o,0,0);let f=I(l,u);return f.getContext("2d").drawImage(g,0,0,s,r,0,0,l,u),f}async function ue(e,n){let t={v:y.runtime.getManifest().version,key:Ce(e)};return t.url=await h("tab::getURL",[]),t}function Ce(e){return!e.keys||!e.keys.length?e.key:e.keys[Math.floor(Math.random()*e.keys.length)]}var U,T=!1;function me(){return!!document.querySelector(".lemin-captcha-popup")}function ge(){T=!0,U=new MutationObserver(e=>{e[0].addedNodes.length>0&&de()}),U.observe(document.querySelector(".lemin-captcha-popup"),{childList:!0}),document.querySelector(".lemin-captcha-popup")&&de()}function pe(){U.disconnect(),T=!1}function fe(){return T}var le=!1;async function de(){if(le)return;le=!0;let e;for(;T;){let n=$(),t=Date.now().valueOf(),a=document.querySelector("#lemin-captcha-caption")?.textContent;if(!a){e=void 0,await p(1e3);continue}let c=512,i=document.querySelector(".lemin-captcha-popup").querySelectorAll('img[name*="image"]')?.[0],o=await Se(c,i);if(!o){e=void 0,await p(1e3);continue}let s=`${a}:${o}`;if(s===e){await p(1e3);continue}e=s;let r=await h("api::recognition",[{type:"hcaptcha_area_select",task:a,image_data:[o],...await ue(n)}]);if(!r||"error"in r){document.querySelector(".lemincaptcha_refresh")?.click(),await p(3e3);continue}let d=new Date().valueOf();if(n.lemincaptcha_solve_delay){let u=n.lemincaptcha_solve_delay_time-d+t;u>0&&await p(u)}let l=r.data;l?(await Be({x:parseInt(l.x),y:parseInt(l.y)}),await p(5e3),document.querySelector(".verify-button")?.click()):(document.querySelector(".lemincaptcha_refresh")?.click(),await p(3e3))}}async function Se(e,n){let t=await ie(n);if(t&&(re(t,"[@nope/lemincaptcha]",`${t.width}x${t.height}`),!ce(t)))return e!==null&&(t=se(t,e,e)),ae(t)}function Be({x:e,y:n,duration:t=1e3,framerate:a=60}={}){return new Promise(c=>{let i=document.querySelectorAll('img[name*="image"]'),o=i?.[0]?.parentElement,s=i?.[1]?.parentElement;if(!s||!o)return console.error("Draggable or $target element not found");let r=o.getBoundingClientRect(),d=s.getBoundingClientRect(),l=d.left+window.scrollX,u=d.top+window.scrollY,g=r.left+window.scrollX+r.width*e/100,C=r.top+window.scrollY+r.height*n/100,f=t/1e3*a,R=(g-l)/f,E=(C-u)/f,x=0;function S(){x++<=f&&(s.dispatchEvent(new MouseEvent("mousemove",{clientX:l+R*x,clientY:u+E*x,bubbles:!0})),requestAnimationFrame(S))}s.dispatchEvent(new MouseEvent("mousedown",{clientX:l,clientY:u,bubbles:!0})),requestAnimationFrame(S),setTimeout(()=>{s.dispatchEvent(new MouseEvent("mouseup",{clientX:g,clientY:C,bubbles:!0}))},t),setTimeout(()=>{c(!0)},t+100)})}async function ke(){J(),await K(),await h("tab::registerDetectedCaptcha",["lemincaptcha"]);let n=new URLSearchParams(location.hash.substring(1)).get("host");P({name:"lemincaptcha/auto-open",condition:t=>t.enabled&&t.lemincaptcha_auto_open&&!t.disabled_hosts.includes(n),ready:ee,start:te,quit:ne,running:oe}),P({name:"lemincaptcha/auto-solve",condition:t=>t.enabled&&t.lemincaptcha_auto_solve&&!t.disabled_hosts.includes(n),ready:me,start:ge,quit:pe,running:fe})}q(ke);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var u=chrome;var l="https://api.nopecha.com",o="https://www.nopecha.com",b="https://developers.nopecha.com",L={doc:{url:b,automation:{url:`${b}/guides/extension_advanced/#automation-build`}},api:{url:l,recognition:{url:`${l}/recognition`},status:{url:`${l}/status`}},www:{url:o,annoucement:{url:`${o}/json/announcement.json`},demo:{url:`${o}/captcha`,recaptcha:{url:`${o}/captcha/recaptcha`},funcaptcha:{url:`${o}/captcha/funcaptcha`},awscaptcha:{url:`${o}/captcha/awscaptcha`},textcaptcha:{url:`${o}/captcha/textcaptcha`},turnstile:{url:`${o}/captcha/turnstile`},perimeterx:{url:`${o}/captcha/perimeterx`},geetest:{url:`${o}/captcha/geetest`},lemincaptcha:{url:`${o}/captcha/lemincaptcha`}},manage:{url:`${o}/manage`},pricing:{url:`${o}/pricing`},setup:{url:`${o}/setup`}},discord:{url:`${o}/discord`},github:{url:`${o}/github`,release:{url:`${o}/github/release`}}};function h(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(n=>n.charCodeAt(0));return v(t)}var _=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let n=8;n--;)t=t&1?3988292384^t>>>1:t>>>1;_[e]=t}function v(e){let t=-1;for(let n of e)t=t>>>8^_[t&255^n];return(t^-1)>>>0}async function s(e,t){let n=""+[+new Date,performance.now(),Math.random()],[i,f]=await new Promise(T=>{u.runtime.sendMessage([n,e,...t],T)});if(i===h(n))return f}function w(){let e;return t=>e||(e=t().finally(()=>e=void 0),e)}var k=w(),r;function S(){return k(async()=>(r||(r=await s("settings::get",[])),r))}function x(e){r&&(r={...r,...e},y(r))}function c(){return r}function a(e){return new Promise(t=>setTimeout(t,e))}var $=[];function C(e,t){e.timedout=!1,$.push(e);let n,i=setInterval(async()=>{await B(e,c())||(clearTimeout(n),clearInterval(i))},400);t&&(n=setTimeout(()=>clearInterval(i),t),e.timedout=!0)}async function B(e,t){if(e.timedout)return!1;let n=e.condition(t);if(n===e.running())return!1;if(!n&&e.running())return e.quit(),!1;if(n&&!e.running()){for(;!e.ready();)await a(200);return e.start(),!1}}function y(e){$.forEach(t=>B(t,e))}function M(){u.runtime.connect({name:"stream"}).onMessage.addListener(t=>{t.event==="settingsUpdate"&&x(t.settings)})}function d(e){if(document.readyState!=="loading")setTimeout(e,0);else{let t;t=()=>{removeEventListener("DOMContentLoaded",t),e()},addEventListener("DOMContentLoaded",t)}}var p,m=!1;function P(){return!(!g()||!document.querySelector("[role=button]"))}function q(){m=!0,p=new MutationObserver(()=>{document.querySelector("[role=button]").dispatchEvent(new MouseEvent("mouseup"))}),p.observe(document.querySelector('[aria-label="Human challenge"], [aria-label="Press & Hold"]'),{attributes:!0,attributeFilter:["aria-label"]}),E()}function A(){m=!1,p.disconnect()}function H(){return m}function g(){try{return!!(window.top!==window&&window.top.top===window.top&&[...window.top.document.querySelectorAll("script")].some(e=>e.innerText.includes("_pxAppId"))&&document.querySelector('[aria-label="Human challenge"], [aria-label="Press & Hold"]'))}catch{return!1}}async function E(){let e=c();e.perimeterx_solve_delay&&await a(e.perimeterx_solve_delay_time),document.querySelector("[role=button]").dispatchEvent(new MouseEvent("mousedown"))}async function N(){let e=!1;for(let n=0;n<3;n++)if(await a(1e3),g()){e=!0;break}if(!e)return;M(),await S(),await s("tab::registerDetectedCaptcha",["perimeterx"]);let t=location.hostname;C({name:"perimeterx/auto-solve",condition:n=>n.enabled&&n.perimeterx_auto_solve&&!n.disabled_hosts.includes(t),ready:P,start:q,quit:A,running:H})}d(N);})();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{function A(){if("ancestorOrigins"in location){let t=location.ancestorOrigins,n=t[1]??t[0];if(n)return n.split("/")[2]}let e=document.referrer;return e?e.split("/")[2]:location.origin}var b=chrome;var M="https://api.nopecha.com",r="https://www.nopecha.com",D="https://developers.nopecha.com",Be={doc:{url:D,automation:{url:`${D}/guides/extension_advanced/#automation-build`}},api:{url:M,recognition:{url:`${M}/recognition`},status:{url:`${M}/status`}},www:{url:r,annoucement:{url:`${r}/json/announcement.json`},demo:{url:`${r}/captcha`,recaptcha:{url:`${r}/captcha/recaptcha`},funcaptcha:{url:`${r}/captcha/funcaptcha`},awscaptcha:{url:`${r}/captcha/awscaptcha`},textcaptcha:{url:`${r}/captcha/textcaptcha`},turnstile:{url:`${r}/captcha/turnstile`},perimeterx:{url:`${r}/captcha/perimeterx`},geetest:{url:`${r}/captcha/geetest`},lemincaptcha:{url:`${r}/captcha/lemincaptcha`}},manage:{url:`${r}/manage`},pricing:{url:`${r}/pricing`},setup:{url:`${r}/setup`}},discord:{url:`${r}/discord`},github:{url:`${r}/github`,release:{url:`${r}/github/release`}}};function O(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(n=>n.charCodeAt(0));return V(t)}var q=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let n=8;n--;)t=t&1?3988292384^t>>>1:t>>>1;q[e]=t}function V(e){let t=-1;for(let n of e)t=t>>>8^q[t&255^n];return(t^-1)>>>0}async function d(e,t){let n=""+[+new Date,performance.now(),Math.random()],[o,a]=await new Promise(i=>{b.runtime.sendMessage([n,e,...t],i)});if(o===O(n))return a}function y(){let e;return t=>e||(e=t().finally(()=>e=void 0),e)}var de=y(),p;function N(){return de(async()=>(p||(p=await d("settings::get",[])),p))}function W(e){p&&(p={...p,...e},U(p))}function C(){return p}function l(e){return new Promise(t=>setTimeout(t,e))}var j=[];function E(e,t){e.timedout=!1,j.push(e);let n,o=setInterval(async()=>{await z(e,C())||(clearTimeout(n),clearInterval(o))},400);t&&(n=setTimeout(()=>clearInterval(o),t),e.timedout=!0)}async function z(e,t){if(e.timedout)return!1;let n=e.condition(t);if(n===e.running())return!1;if(!n&&e.running())return e.quit(),!1;if(n&&!e.running()){for(;!e.ready();)await l(200);return e.start(),!1}}function U(e){j.forEach(t=>z(t,e))}function F(){b.runtime.connect({name:"stream"}).onMessage.addListener(t=>{t.event==="settingsUpdate"&&W(t.settings)})}function $(e){if(document.readyState!=="loading")setTimeout(e,0);else{let t;t=()=>{removeEventListener("DOMContentLoaded",t),e()},addEventListener("DOMContentLoaded",t)}}var Xe=y();function J(e){postMessage({source:"nopecha",...e})}function _(e){J(e)}var T,L,H=!1;function Q(){return!!document.querySelector(".recaptcha-checkbox")}function Y(){H=!0,T=new MutationObserver(t=>{t.length===2&&X(),t.length&&t[0].target.classList.contains("recaptcha-checkbox-expired")&&window.location.reload()}),T.observe(document.querySelector(".recaptcha-checkbox"),{attributes:!0});let e=!1;L=new IntersectionObserver(()=>{e||(e=!0,X())},{threshold:0}),L.observe(document.body)}function G(){T.disconnect(),L.disconnect(),H=!1}function K(){return H}async function X(){await l(400),_({action:"click",selector:".recaptcha-checkbox"})}function ge(e,t){let n=document.createElement("canvas");return n.width=e,n.height=t,n}function Z(e){return e.toDataURL("image/jpeg").replace(/data:image\/[a-z]+;base64,/g,"")}function pe(e){try{e.getContext("2d").getImageData(0,0,1,1)}catch{return!0}return!1}async function ee(e,t,n=1e4){if(!t&&!e.complete&&!await new Promise(u=>{let c=setTimeout(()=>{u(!1)},n);e.addEventListener("load",()=>{clearTimeout(c),u(!0)})}))return;let o=ge(e.naturalWidth||t?.clientWidth,e.naturalHeight||t?.clientHeight);return o.getContext("2d").drawImage(e,0,0),!pe(o)&&o}function fe(e,t,n,o){let a=(o*t+n)*4;return[e[a],e[a+1],e[a+2]]}function he(e,t){return e.every(n=>n<=t)}function be(e,t){return e.every(n=>n>=t)}function te(e,t=0,n=230,o=.99){let a=e.getContext("2d"),i=a.canvas.width,u=a.canvas.height;if(i===0||u===0)return!0;let c=a.getImageData(0,0,i,u).data,m=0;for(let v=0;v<u;v++)for(let f=0;f<i;f++){let g=fe(c,i,f,v);(he(g,t)||be(g,n))&&m++}return m/(i*u)>o}function ne(){return[]}function oe(e){return new Promise(t=>{e.push(t)})}function k(e){e.forEach(t=>t()),e.splice(0)}async function ae(e,t){let n={v:b.runtime.getManifest().version,key:_e(e)};return n.url=await d("tab::getURL",[]),n}function _e(e){return!e.keys||!e.keys.length?e.key:e.keys[Math.floor(Math.random()*e.keys.length)]}var ve,S=ne(),R,w=!1;function ie(){return!!document.querySelector(".rc-imageselect, .rc-imageselect-target")}function ce(){w=!0,k(S);let e;R=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>k(S),200)}),R.observe(document.body,{childList:!0,subtree:!0}),ke()}function se(){R.disconnect(),w=!1,k(S)}function le(){return w}function we(){return document.querySelector(".rc-doscaptcha-header")}function xe(){let e=document.querySelector("#recaptcha-verify-button");return e&&e.getAttribute("disabled")}var ye={[1]:1,[0]:3,[2]:4};async function Ce(){for(;;){await l(1e3);let e=document.querySelector(".rc-imageselect-instructions");if(!e)continue;let t=e.innerText.split(`
|
|
2
|
+
`),n=t.slice(0,2).join(" ").replace(/\s+/g," ").trim(),o=[...document.querySelectorAll("table tr td")];if(o.length!==9&&o.length!==16)continue;let a=o.map(c=>c.querySelector("img")).filter(c=>c).filter(c=>c.src.trim());if(a.length!==9&&a.length!==16)continue;let i=o.length===16?2:a.some(c=>c.classList.contains("rc-image-tile-11"))?1:0,u=t.length===3&&i!==2;return{task:n,type:i,cells:o,images:a,waitAfterSolve:u}}}var re=!1;async function ke(){if(!re){for(re=!0;w&&(we()||xe());)await l(1e3);for(;w;){let{task:e,type:t,cells:n,images:o,waitAfterSolve:a}=await Ce(),i=C(),u=new Date().valueOf(),c=[...n];t!==1&&(o=[o[0]]);let m=await Promise.all(o.map(s=>ee(s)));if(t===1){let s=[],x=[];for(let[B,h]of m.entries())h.width!==100||h.height!==100||(s.push(c[B]),x.push(h));c=s,m=x}if(m.length===0){_({action:"click",selector:"#recaptcha-verify-button"}),await l(3e3);continue}let I=!1;for(let s of m)if(te(s)){I=!0;break}if(I){await l(3e3);continue}let v=m.map(Z),f=ye[t],g=await d("api::recognition",[{type:"recaptcha",task:e,image_data:v,grid:[f,f].join("x"),...await ae(i)}]);if(!g||"error"in g){console.warn(`[@nope/recaptcha/${ve}]`,"api error",g),await l(2e3);continue}let ue=new Date().valueOf();if(i.recaptcha_solve_delay){let s=i.recaptcha_solve_delay_time-ue+u;s>0&&await l(s)}let P=t===2?4:3;for(c.forEach((s,x)=>{let B=s.classList.contains("rc-imageselect-tileselected"),h=n.indexOf(s);g.data[x]!==B&&_({action:"click",selector:`tr:nth-child(${Math.floor(h/P)+1}) td:nth-child(${h%P+1})`})}),(!a||!g.data.some(s=>s))&&(await l(200),_({action:"click",selector:"#recaptcha-verify-button"})),await oe(S);document.querySelectorAll(".rc-imageselect-dynamic-selected").length>0;)await l(1e3)}}}async function Se(){F(),await N(),await d("tab::registerDetectedCaptcha",["recaptcha"]);let e=A();location.pathname.endsWith("/anchor")?E({name:"recaptcha/auto-open",condition:t=>t.enabled&&t.recaptcha_auto_open&&!t.disabled_hosts.includes(e),ready:Q,start:Y,quit:G,running:K}):E({name:"recaptcha/auto-solve",condition:t=>t.enabled&&t.recaptcha_auto_solve&&!t.disabled_hosts.includes(e),ready:ie,start:ce,quit:se,running:le})}$(Se);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var f=chrome;var y="https://api.nopecha.com",i="https://www.nopecha.com",B="https://developers.nopecha.com",ie={doc:{url:B,automation:{url:`${B}/guides/extension_advanced/#automation-build`}},api:{url:y,recognition:{url:`${y}/recognition`},status:{url:`${y}/status`}},www:{url:i,annoucement:{url:`${i}/json/announcement.json`},demo:{url:`${i}/captcha`,recaptcha:{url:`${i}/captcha/recaptcha`},funcaptcha:{url:`${i}/captcha/funcaptcha`},awscaptcha:{url:`${i}/captcha/awscaptcha`},textcaptcha:{url:`${i}/captcha/textcaptcha`},turnstile:{url:`${i}/captcha/turnstile`},perimeterx:{url:`${i}/captcha/perimeterx`},geetest:{url:`${i}/captcha/geetest`},lemincaptcha:{url:`${i}/captcha/lemincaptcha`}},manage:{url:`${i}/manage`},pricing:{url:`${i}/pricing`},setup:{url:`${i}/setup`}},discord:{url:`${i}/discord`},github:{url:`${i}/github`,release:{url:`${i}/github/release`}}};function M(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(n=>n.charCodeAt(0));return I(t)}var T=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let n=8;n--;)t=t&1?3988292384^t>>>1:t>>>1;T[e]=t}function I(e){let t=-1;for(let n of e)t=t>>>8^T[t&255^n];return(t^-1)>>>0}async function d(e,t){let n=""+[+new Date,performance.now(),Math.random()],[a,o]=await new Promise(c=>{f.runtime.sendMessage([n,e,...t],c)});if(a===M(n))return o}function $(){let e;return t=>e||(e=t().finally(()=>e=void 0),e)}var G=$(),m;function H(){return G(async()=>(m||(m=await d("settings::get",[])),m))}function E(e){m&&(m={...m,...e},L(m))}function h(){return m}function r(e){return new Promise(t=>setTimeout(t,e))}var P=[];function D(e,t){e.timedout=!1,P.push(e);let n,a=setInterval(async()=>{await R(e,h())||(clearTimeout(n),clearInterval(a))},400);t&&(n=setTimeout(()=>clearInterval(a),t),e.timedout=!0)}async function R(e,t){if(e.timedout)return!1;let n=e.condition(t);if(n===e.running())return!1;if(!n&&e.running())return e.quit(),!1;if(n&&!e.running()){for(;!e.ready();)await r(200);return e.start(),!1}}function L(e){P.forEach(t=>R(t,e))}function A(){f.runtime.connect({name:"stream"}).onMessage.addListener(t=>{t.event==="settingsUpdate"&&E(t.settings)})}function C(e){if(document.readyState!=="loading")setTimeout(e,0);else{let t;t=()=>{removeEventListener("DOMContentLoaded",t),e()},addEventListener("DOMContentLoaded",t)}}function J(e,t){let n=document.createElement("canvas");return n.width=e,n.height=t,n}function q(e){return e.toDataURL("image/jpeg").replace(/data:image\/[a-z]+;base64,/g,"")}function X(e){try{e.getContext("2d").getImageData(0,0,1,1)}catch{return!0}return!1}async function b(e,t,n=1e4){if(!t&&!e.complete&&!await new Promise(s=>{let u=setTimeout(()=>{s(!1)},n);e.addEventListener("load",()=>{clearTimeout(u),s(!0)})}))return;let a=J(e.naturalWidth||t?.clientWidth,e.naturalHeight||t?.clientHeight);return a.getContext("2d").drawImage(e,0,0),!X(a)&&a}async function U(e){let n=getComputedStyle(e).backgroundImage;if(!n||n==="none")if("src"in e&&e.src)n=`url("${e.src}")`;else return;if("computedStyleMap"in e&&!/url\(["']https?:\/\//.test(n)){let l=e.computedStyleMap().get("background-image");if(l instanceof CSSImageValue){let g=await b(l,e);if(g)return g}}let a=/"(.+)"/.exec(n);if(!a)return;n=a[1];let o=document.createElement("a");if(o.href=n,new URL(o.href).origin===document.location.origin){let l=new Image;l.crossOrigin="anonymous",l.src=n;let g=await b(l);if(g)return g}let c=await d("fetch::asData",[n,{}]),s=new Image;s.crossOrigin="anonymous",s.src=c.data;let u=await b(s);if(u)return u}function Y(e,t,n,a){let o=(a*t+n)*4;return[e[o],e[o+1],e[o+2]]}function Z(e,t){return e.every(n=>n<=t)}function ee(e,t){return e.every(n=>n>=t)}function N(e,t=0,n=230,a=.99){let o=e.getContext("2d"),c=o.canvas.width,s=o.canvas.height;if(c===0||s===0)return!0;let u=o.getImageData(0,0,c,s).data,l=0;for(let p=0;p<s;p++)for(let x=0;x<c;x++){let k=Y(u,c,x,p);(Z(k,t)||ee(k,n))&&l++}return l/(c*s)>a}function W(){return[]}function O(e){return new Promise(t=>{e.push(t)})}function v(e){e.forEach(t=>t()),e.splice(0)}async function z(e,t){let n={v:f.runtime.getManifest().version,key:te(e)};return n.url=await d("tab::getURL",[]),n}function te(e){return!e.keys||!e.keys.length?e.key:e.keys[Math.floor(Math.random()*e.keys.length)]}var _=W(),S,w=!1;function j(){let e=h(),t=document.querySelector(e.textcaptcha_image_selector),n=document.querySelector(e.textcaptcha_input_selector);return!t||!n?!1:(d("tab::registerDetectedCaptcha",["textcaptcha"]),!0)}function V(){w=!0,v(_),S=new MutationObserver(()=>{setTimeout(()=>v(_),200)}),S.observe(document.body,{subtree:!0,childList:!0,attributes:!0}),ae()}function K(){S.disconnect(),w=!1,v(_)}function Q(){return w}async function ne(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLImageElement&&(e.src||e.srcset)){let t=await b(e);if(t)return t}return await U(e)}var F=!1;async function ae(){if(F)return;F=!0;let e;for(;w;){let t=h(),n=document.querySelector(t.textcaptcha_image_selector),a=document.querySelector(t.textcaptcha_input_selector);if(!n){await r(500);continue}if(!a){await r(500);continue}if(a.click(),a.focus(),await r(200),a.value!==""){await r(500);continue}let o=await ne(n);if(!o){await r(500);continue}if(N(o)){await r(500);continue}let c=q(o);if(e===c){await r(500);continue}e=c;let s=new Date().valueOf(),u=await d("api::recognition",[{type:"textcaptcha",image_data:[c],...await z(t)}]);if(!u||"error"in u){console.warn("[@nope/textcaptcha] api error",u),await r(2e3);continue}let l=new Date().valueOf();if(t.textcaptcha_solve_delay){let g=t.textcaptcha_solve_delay_time-l+s;g>0&&await r(g)}if(u.data&&u.data.length>0&&!a.value){a.click(),a.focus(),await r(200),Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(a,u.data[0]);for(let p of u.data[0])a.dispatchEvent(new KeyboardEvent("keydown",{key:p,bubbles:!0})),await r(15),a.dispatchEvent(new KeyboardEvent("keypress",{key:p,bubbles:!0})),await r(10),a.dispatchEvent(new KeyboardEvent("keyup",{key:p,bubbles:!0})),await r(15);a.dispatchEvent(new Event("input",{bubbles:!0})),a.dispatchEvent(new Event("change",{bubbles:!0}))}await O(_)}}async function oe(){A(),await H(),await d("tab::registerDetectedCaptcha",["textcaptcha"]);let e=location.hostname;D({name:"textcaptcha/auto-solve",condition:t=>t.enabled&&t.textcaptcha_auto_solve&&!t.disabled_hosts.includes(e)&&!!t.textcaptcha_image_selector&&!!t.textcaptcha_input_selector,ready:j,start:V,quit:K,running:Q})}C(oe);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{let F=w(u=>{let L=u.map(A=>A+"").join(""),o=1,t=0,y,v;if(L)for(o=0,y=L.length-1;y>=0;y--)v=L.charCodeAt(y),o=(o<<6&268435455)+v+(v<<14),t=o&266338304,o=t!==0?o^t>>21:o;return~~String(o).slice(0,3)},1);function l(u){return S[u>-41?u+21:u<-41?u<-41?u+97:u+47:u+17]}let S=V.call(this);function j(u,L){return Object.defineProperty(u,l(-97),{value:L,configurable:!0}),u}let O=[],M=l(-96),I=w((...u)=>{let L=w(o=>S[o>33?o+73:o>33?o+63:o<-24?o+100:o>33?o+92:o<-24?o-39:o<33?o+23:o+72],1);if(u[L(-23)]=L(-22),u[l(-95)]=L(-20),u[l(-96)]=w(o=>{for(let t=F(o)-105;t;t--)o.unshift(o.pop());return o},1)(["#GDgZ","xojg][A","SP(g*[yC","0aOf][UC","$z+f^fQC","TPX<d,SC","?z.Jj>yC","fu^I","e5(g[*aC","mXzIf>4C","]DwJb","EEzg6=yC",'oDabh,f5^J"1UD',"o!f0X*6SjJM;wDfeRu,EJkzXG","Y2(ar9A","v5J.H8Vv.630dwhlk8Yb*1LZ4N9E=E","/O|<xzVp9O","s%2f_yS0IRvHcDuoL5c3yuLB3Ul<]Oeej8[2U<keF25","jzQeN3jvw53c?a!eMXDFb7$StL:($E","+t./A_S{~R~(8bO","d8_1l`;B","?in<=[oC","ma_=L[R1H$57RZTjOB","ZuDgh`ZBMSb6^a)ggA",'$"7P6p)_;Cv)aeFT',"kr<=f,SC","_%$J","kr<=f,0CH","=i,<v;A","maNKw)yC","2XKzg,mC","PP(gK:iC","4an<d","O881U<JTH","]DU=b,iC"]),u[L(-21)]>u[l(-95)]-(u[l(-95)]-163))return u[39];{let o=w(t=>S[t>39?t>96?t-25:t<39?t-71:t>96?t+20:t<39?t-37:t>39?t>96?t-43:t<39?t-41:t>96?t-74:t-40:t+59:t-40],1);return M?u[u[o(42)]-o(43)].pop():M++,u[L(-22)]}},0)();function K(){try{return global||window||new Function("return this")()}catch{try{return this}catch{return{}}}}let D=K()||{},T=D.TextDecoder,Y=D.Uint8Array,J=D.Buffer,U=D.String||String,G=D.Array||Array,H=w(()=>{let u=new G(128),L=U[l(-90)]||U.fromCharCode,o=[];return j(w((...t)=>{let y=w(f=>S[f<35?f-70:f<35?f+28:f<35?f-87:f>92?f-20:f-36],1);t[l(-97)]=y(45),t[y(40)]=t.S5KMH6;let v,A;t[y(40)]=t[l(-96)][y(36)],o[l(-97)]=l(-96);for(let f=y(37);f<t[y(40)];){let g=w(R=>S[R>49?R+44:R>-8?R<49?R<-8?R+17:R<-8?R-57:R>-8?R>49?R+4:R>49?R+66:R+7:R+67:R-98:R+4],1);if(A=t[g(-6)][f++],A<=127)v=A;else if(A<=223)v=(A&g(6))<<l(-91)|t[y(37)][f++]&l(-92);else if(A<=239){let R=w(h=>S[h>102?h-89:h>102?h-38:h<102?h<102?h<102?h-46:h-3:h-11:h-54],1);v=(A&15)<<R(54)|(t[g(-6)][f++]&y(41))<<R(52)|t[g(-6)][f++]&R(51)}else if(U[g(0)]){let R=w(h=>S[h<1?h+7:h<58?h-2:h+59],1);v=(A&l(-47))<<y(71)|(t[y(37)][f++]&g(-2))<<l(-89)|(t[y(37)][f++]&R(7))<<R(8)|t[R(3)][f++]&y(41)}else v=w(h=>S[h>-78?h>-78?h<-21?h>-21?h+54:h<-78?h-62:h>-21?h-13:h>-78?h+77:h+74:h-89:h+40:h-60],1)(-72),f+=g(8);o.push(u[v]||(u[v]=L(v)))}return o.join("")},0),l(-88))},0)();j(X,l(-88));function X(...u){let L=w(o=>S[o<-89?o-83:o>-32?o+21:o+88],1);return u[L(-88)]=L(-79),u[l(-87)]=-l(-86),typeof T!==L(-76)&&T?new T().decode(new Y(u[u[L(-78)]+L(-77)])):typeof J!==l(-85)&&J?J.from(u[l(-96)]).toString("utf-8"):H(u[u[L(-78)]+l(-86)])}let N=[C(l(-84))],$={[l(-55)]:C(l(-79))};j(Z,l(-83));function Z(...u){let L=w(o=>S[o>-97?o>-97?o<-97?o+31:o<-40?o>-97?o+96:o+38:o-50:o+8:o+75],1);switch(u[L(-96)]=L(-82),u[L(-80)]=u[L(-95)],E){case-l(-82):return!u[l(-81)]}}j(Q,l(-88));function Q(...u){let L=w(o=>S[o<99?o<42?o-94:o<99?o<42?o+67:o-43:o+90:o-56],1);return u[l(-97)]=l(-88),u[l(-80)]=l(-60),u[u[L(60)]-(u[l(-80)]-L(44))]=E+(E=u[L(44)],l(-96)),u[L(60)]>L(67)?u[L(62)]:u[L(44)]}let E;(()=>{let u=w(t=>S[t<71?t+37:t<71?t+50:t<128?t<71?t+7:t<71?t+99:t>71?t>71?t>71?t-72:t-95:t-92:t-83:t-70],1),L=C(u(90)),o={[u(102)]:C(u(124))};(()=>{let t=w(f=>S[f<-37?f+12:f>20?f-95:f<20?f<-37?f-13:f<20?f>20?f-38:f<20?f>20?f+46:f<-37?f+75:f+36:f+96:f+96:f+34],1),y={[u(101)]:C(t(15))};j(v,l(-88));async function v(...f){let g=w(R=>S[R>-25?R<32?R>-25?R>32?R-2:R<-25?R+90:R<-25?R+82:R+24:R-96:R+95:R-44],1);for(f[g(-24)]=l(-88),f[l(-77)]=l(-78),f[u(111)]=C(f[l(-77)]-77),f[l(-83)]=C[g(16)](u(93),f[l(-77)]-93),f[l(-61)]=[C(f[u(92)]-81)],f[g(1)]={[g(2)]:C[g(-2)](g(-3),[11])};;){let R=w(h=>S[h<6?h<6?h>-51?h+50:h+90:h-96:h+79],1);if(f[g(3)]=[C(u(80))],f[l(-91)]=C[u(94)](R(-29),[f[l(-77)]-92]),await new Promise(j((...h)=>{let P=w(b=>S[b<-23?b<-80?b-36:b<-80?b-8:b>-23?b-5:b<-23?b>-80?b+79:b+36:b+28:b-86],1);return h[P(-79)]=P(-70),h[P(-56)]=-R(-41),h[g(-1)]>h[P(-56)]+R(-26)?h[-196]:setTimeout(h[g(-23)],500)},R(-41))),f[R(-22)]=f[R(-49)][C[R(-28)](R(-29),[g(30)])+f[l(-91)]+l(-59)](C[l(-75)](u(93),[10])+f[g(1)][u(98)]+f[R(-23)][u(73)]),f[R(-22)]){let h=w(P=>S[P<-23?P-96:P<-23?P-51:P+22],1);f[h(11)]=[C(16)],f[l(-66)]={[g(8)]:C[R(-28)](h(-1),[f[R(-30)]-R(-40)]),[g(17)]:C(27)};for(let P of[y[g(5)]+o[g(6)],f[g(7)][u(104)],f[l(-64)][f[l(-77)]-h(-3)]]){let b=w(z=>S[z>16?z+25:z+40],1);f[g(10)]=C(f[b(-20)]-84),f[u(100)][f[h(12)]+C(R(-15))+"t"](new MouseEvent(P,{[C(19)]:b(-31),[f[g(12)][f[b(-20)]-R(-31)]]:window,[C(21)]:Z(f[l(-77)]-g(-5),E=-l(-82)),[C(22)+C[l(-75)](b(-19),[23])]:Z(u(73),E=-b(-25))}))}if(f[h(6)][f[f[g(-4)]-(f[g(-4)]-g(-10))]+C(l(-60))+g(14)](f[u(111)])?.[C[R(-10)](u(93),25)+C(26)](f[h(9)][R(-9)]+C(28)))break}}}let A=Element[C(l(-54))+$[l(-55)]][N[u(73)]+C[l(-57)](t(-15),l(-53))];Element[C(t(7))+L][C(t(-23))+C(t(8))]=j(function(...f){let g=w(R=>S[R>-86?R<-29?R>-29?R-39:R>-29?R-93:R<-29?R>-86?R+85:R-4:R+80:R+10:R+85],1);return f[u(72)]=l(-88),f[g(-40)]=f[u(73)],f[t(10)]=A[C(33)](this,f[g(-40)]),f[g(-39)]&&window[C(34)]!==window&&v(f[l(-51)]),f[g(-39)]},u(81))})()})(),j(B,l(-88));function B(...u){let L=w(o=>S[o>-12?o-30:o>-12?o+69:o<-12?o>-12?o-81:o>-69?o>-69?o>-12?o-71:o>-12?o-52:o+68:o+16:o-95:o+54],1);u[l(-97)]=l(-88),u[l(-48)]=u.BSy0NN,u[l(-88)]='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,./:;<=>?@[]^_`{|}~"',u[l(-50)]=u.mzY211,u[l(-50)]=""+(u[l(-96)]||""),u[l(-82)]=u[l(-50)].length,u[l(-49)]=u.IqY3SDJ,u[l(-44)]=[],u[l(-49)]=l(-96),u[l(-48)]=l(-96),u[L(-18)]=-L(-59);for(let o=L(-67);o<u[l(-82)];o++)if(u[L(-31)]=u[l(-88)].indexOf(u[L(-21)][o]),u[L(-31)]!==-l(-88))if(u[L(-18)]<L(-67))u[L(-18)]=u[L(-31)];else{let t=w(y=>S[y<154?y>154?y+25:y<97?y-92:y-98:y+28],1);u[L(-18)]+=u[L(-31)]*91,u[L(-20)]|=u[l(-47)]<<u[L(-19)],u[l(-48)]+=(u[L(-18)]&8191)>88?t(149):t(150);do{let y=w(v=>S[v<-17?v>-74?v<-74?v+97:v<-17?v<-17?v<-74?v+95:v<-74?v-1:v<-17?v+73:v+44:v+45:v-40:v-55:v-46],1);u[t(151)].push(u[t(146)]&L(-13)),u[y(-25)]>>=t(152),u[y(-24)]-=y(-19)}while(u[t(147)]>l(-47));u[l(-47)]=-L(-59)}if(u[l(-47)]>-l(-88)){let o=w(t=>S[t<41?t-20:t<41?t+1:t-42],1);u[L(-15)].push((u[l(-49)]|u[o(92)]<<u[l(-48)])&o(97))}return X(u[L(-15)])}function C(u,L,o,t=B,y=O){return o?L[O[o]]=C(u,L):(L&&([y,L]=[t(y),u||o]),L?u[y[L]]:O[u]||(o=(y[u],t),O[u]=o(I[u])))}function V(){return["length",0,"RNGV32",35,"AsZkyC",63,6,"fromCodePoint",12,1,86,118,"undefined",31,2,3,"amvb1Y","zovKfp",30,101,"zothlTI",void 0,"apply",225,55,"ovGmb4","t6TegIq","AcCo6Mv","vfXptf","vtTP_5","MJJYYKs","hEl2yF","iytSMC","AZPlrU","RnjasR8",18,"_ZeSas",9,"r","D4Z77l","call","FvcEn2_","hsQKPnT",29,32,"v2iGxb","dWIRzXf","Ok0p907",151,"Rv4PE8",7,13,14,4,8,255]}function w(u,L){let o=function(){return u(...arguments)};return Object.defineProperty(o,"length",{value:L,configurable:!0}),o}})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{function g(){let i=new WeakMap,m=50+Math.floor(Math.random()*1e3),d=50+Math.floor(Math.random()*2e3);function y(e,n,t,r){return{x:e,y:n,clientX:e,clientY:n,layerX:e,layerY:n,offsetX:e-1,offsetY:n-1,pageX:e,pageY:n,screenX:t+e,screenY:r+n}}function w(e,n){i.get(e).filter(([r])=>r===n.type).forEach(([r,o])=>{o(n)})}let b={click:({selector:e,offset:n,screenOffset:t,events:r})=>{let o=document.querySelector(e);if(!o||!i.has(o))return;let a=o.getBoundingClientRect(),u=n?n[0]:Math.floor(Math.random()*a.width),s=n?n[1]:Math.floor(Math.random()*a.height),p=t?t[0]:m,c=t?t[1]:d,l=r??["click"];for(let f of l){let M=h("PointerEvent",f,{...y(u,s,p,c),composed:!0,pointerId:1,pointerType:"mouse",srcElement:o,target:o},{target:o});w(o,M)}},mousedata:({data:e,timeOffset:n})=>{let t=Date.now,r=0;Date.now=()=>r;let o=[["mm","mousemove"],["md","mousedown"],["mu","mouseup"]],a=document.body;o.forEach(([u,s])=>{e[u].forEach(([p,c,l])=>{let f=h("MouseEvent",s,{...y(p,c,0,0),composed:!0,pointerId:1,pointerType:"mouse",srcElement:a,target:a},{target:a,timestamp:n+l-performance.timeOrigin});r=Math.floor(n+l),w(a,f)})}),Date.now=t}};function h(e,n,t,r){{let o=new window[e](n,t),a={get(u,s,p){if(s==="isTrusted")return!0;if(s in r)return r[s];let c=o[s];return c instanceof Function?c.bind(o):c}};return new Proxy(o,a)}}function v(e){typeof e=="string"&&(e=JSON.parse(e)),b[e.action](e)}function k(e,n){i.has(e)||i.set(e,[]),i.get(e).push(n)}{let e=Element.prototype;e.addEventListener=new Proxy(e.addEventListener,{apply(n,t,r){return k(t,r),n.apply(t,r)}})}return v}function E(){let i=g();addEventListener("message",m=>{let d=m.data;typeof d!="object"||d.source!=="nopecha"||(m.stopImmediatePropagation(),i(d))})}E();})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{function o(e){postMessage({source:"nopecha",...e})}function l(e){o(e)}})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CssSelectorGenerator=e():t.CssSelectorGenerator=e()}(self,(()=>(()=>{"use strict";var t,e,n={d:(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},o={};function r(t){return t&&t instanceof Element}function i(t="unknown problem",...e){console.warn(`CssSelectorGenerator: ${t}`,...e)}n.r(o),n.d(o,{default:()=>z,getCssSelector:()=>U}),function(t){t.NONE="none",t.DESCENDANT="descendant",t.CHILD="child"}(t||(t={})),function(t){t.id="id",t.class="class",t.tag="tag",t.attribute="attribute",t.nthchild="nthchild",t.nthoftype="nthoftype"}(e||(e={}));const c={selectors:[e.id,e.class,e.tag,e.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY};function u(t){return t instanceof RegExp}function s(t){return["string","function"].includes(typeof t)||u(t)}function l(t){return Array.isArray(t)?t.filter(s):[]}function a(t){const e=[Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE,Node.ELEMENT_NODE];return function(t){return t instanceof Node}(t)&&e.includes(t.nodeType)}function f(t,e){if(a(t))return t.contains(e)||i("element root mismatch","Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will nto work as intended."),t;const n=e.getRootNode({composed:!1});return a(n)?(n!==document&&i("shadow root inferred","You did not provide a root and the element is a child of Shadow DOM. This will produce a selector using ShadowRoot as a root. If you plan to use the selector using document as a root (e.g. `document.querySelector`), it will not work as intended."),n):e.ownerDocument.querySelector(":root")}function d(t){return"number"==typeof t?t:Number.POSITIVE_INFINITY}function m(t=[]){const[e=[],...n]=t;return 0===n.length?e:n.reduce(((t,e)=>t.filter((t=>e.includes(t)))),e)}function p(t){return[].concat(...t)}function h(t){const e=t.map((t=>{if(u(t))return e=>t.test(e);if("function"==typeof t)return e=>{const n=t(e);return"boolean"!=typeof n?(i("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",t),!1):n};if("string"==typeof t){const e=new RegExp("^"+t.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")+"$");return t=>e.test(t)}return i("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",t),()=>!1}));return t=>e.some((e=>e(t)))}function g(t,e,n){const o=Array.from(f(n,t[0]).querySelectorAll(e));return o.length===t.length&&t.every((t=>o.includes(t)))}function y(t,e){e=null!=e?e:function(t){return t.ownerDocument.querySelector(":root")}(t);const n=[];let o=t;for(;r(o)&&o!==e;)n.push(o),o=o.parentElement;return n}function b(t,e){return m(t.map((t=>y(t,e))))}const N={[t.NONE]:{type:t.NONE,value:""},[t.DESCENDANT]:{type:t.DESCENDANT,value:" > "},[t.CHILD]:{type:t.CHILD,value:" "}},S=new RegExp(["^$","\\s"].join("|")),E=new RegExp(["^$"].join("|")),w=[e.nthoftype,e.tag,e.id,e.class,e.attribute,e.nthchild],v=h(["class","id","ng-*"]);function C({nodeName:t}){return`[${t}]`}function O({nodeName:t,nodeValue:e}){return`[${t}='${L(e)}']`}function T(t){const e=Array.from(t.attributes).filter((e=>function({nodeName:t},e){const n=e.tagName.toLowerCase();return!(["input","option"].includes(n)&&"value"===t||v(t))}(e,t)));return[...e.map(C),...e.map(O)]}function I(t){return(t.getAttribute("class")||"").trim().split(/\s+/).filter((t=>!E.test(t))).map((t=>`.${L(t)}`))}function x(t){const e=t.getAttribute("id")||"",n=`#${L(e)}`,o=t.getRootNode({composed:!1});return!S.test(e)&&g([t],n,o)?[n]:[]}function j(t){const e=t.parentNode;if(e){const n=Array.from(e.childNodes).filter(r).indexOf(t);if(n>-1)return[`:nth-child(${n+1})`]}return[]}function A(t){return[L(t.tagName.toLowerCase())]}function D(t){const e=[...new Set(p(t.map(A)))];return 0===e.length||e.length>1?[]:[e[0]]}function $(t){const e=D([t])[0],n=t.parentElement;if(n){const o=Array.from(n.children).filter((t=>t.tagName.toLowerCase()===e)),r=o.indexOf(t);if(r>-1)return[`${e}:nth-of-type(${r+1})`]}return[]}function R(t=[],{maxResults:e=Number.POSITIVE_INFINITY}={}){const n=[];let o=0,r=k(1);for(;r.length<=t.length&&o<e;)o+=1,n.push(r.map((e=>t[e]))),r=P(r,t.length-1);return n}function P(t=[],e=0){const n=t.length;if(0===n)return[];const o=[...t];o[n-1]+=1;for(let t=n-1;t>=0;t--)if(o[t]>e){if(0===t)return k(n+1);o[t-1]++,o[t]=o[t-1]+1}return o[n-1]>e?k(n+1):o}function k(t=1){return Array.from(Array(t).keys())}const _=":".charCodeAt(0).toString(16).toUpperCase(),M=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function L(t=""){var e,n;return null!==(n=null===(e=null===CSS||void 0===CSS?void 0:CSS.escape)||void 0===e?void 0:e.call(CSS,t))&&void 0!==n?n:function(t=""){return t.split("").map((t=>":"===t?`\\${_} `:M.test(t)?`\\${t}`:escape(t).replace(/%/g,"\\"))).join("")}(t)}const q={tag:D,id:function(t){return 0===t.length||t.length>1?[]:x(t[0])},class:function(t){return m(t.map(I))},attribute:function(t){return m(t.map(T))},nthchild:function(t){return m(t.map(j))},nthoftype:function(t){return m(t.map($))}},F={tag:A,id:x,class:I,attribute:T,nthchild:j,nthoftype:$};function V(t){return t.includes(e.tag)||t.includes(e.nthoftype)?[...t]:[...t,e.tag]}function Y(t={}){const n=[...w];return t[e.tag]&&t[e.nthoftype]&&n.splice(n.indexOf(e.tag),1),n.map((e=>{return(o=t)[n=e]?o[n].join(""):"";var n,o})).join("")}function B(t,e,n="",o){const r=function(t,e){return""===e?t:function(t,e){return[...t.map((t=>e+" "+t)),...t.map((t=>e+" > "+t))]}(t,e)}(function(t,e,n){const o=function(t,e){const{blacklist:n,whitelist:o,combineWithinSelector:r,maxCombinations:i}=e,c=h(n),u=h(o);return function(t){const{selectors:e,includeTag:n}=t,o=[].concat(e);return n&&!o.includes("tag")&&o.push("tag"),o}(e).reduce(((e,n)=>{const o=function(t,e){var n;return(null!==(n=q[e])&&void 0!==n?n:()=>[])(t)}(t,n),s=function(t=[],e,n){return t.filter((t=>n(t)||!e(t)))}(o,c,u),l=function(t=[],e){return t.sort(((t,n)=>{const o=e(t),r=e(n);return o&&!r?-1:!o&&r?1:0}))}(s,u);return e[n]=r?R(l,{maxResults:i}):l.map((t=>[t])),e}),{})}(t,n),r=function(t,e){return function(t){const{selectors:e,combineBetweenSelectors:n,includeTag:o,maxCandidates:r}=t,i=n?R(e,{maxResults:r}):e.map((t=>[t]));return o?i.map(V):i}(e).map((e=>function(t,e){const n={};return t.forEach((t=>{const o=e[t];o.length>0&&(n[t]=o)})),function(t={}){let e=[];return Object.entries(t).forEach((([t,n])=>{e=n.flatMap((n=>0===e.length?[{[t]:n}]:e.map((e=>Object.assign(Object.assign({},e),{[t]:n})))))})),e}(n).map(Y)}(e,t))).filter((t=>t.length>0))}(o,n),i=p(r);return[...new Set(i)]}(t,o.root,o),n);for(const e of r)if(g(t,e,o.root))return e;return null}function G(t){return{value:t,include:!1}}function W({selectors:t,operator:n}){let o=[...w];t[e.tag]&&t[e.nthoftype]&&(o=o.filter((t=>t!==e.tag)));let r="";return o.forEach((e=>{(t[e]||[]).forEach((({value:t,include:e})=>{e&&(r+=t)}))})),n.value+r}function H(n){return[":root",...y(n).reverse().map((n=>{const o=function(e,n,o=t.NONE){const r={};return n.forEach((t=>{Reflect.set(r,t,function(t,e){return F[e](t)}(e,t).map(G))})),{element:e,operator:N[o],selectors:r}}(n,[e.nthchild],t.DESCENDANT);return o.selectors.nthchild.forEach((t=>{t.include=!0})),o})).map(W)].join("")}function U(t,n={}){const o=function(t){const e=(Array.isArray(t)?t:[t]).filter(r);return[...new Set(e)]}(t),i=function(t,n={}){const o=Object.assign(Object.assign({},c),n);return{selectors:(r=o.selectors,Array.isArray(r)?r.filter((t=>{return n=e,o=t,Object.values(n).includes(o);var n,o})):[]),whitelist:l(o.whitelist),blacklist:l(o.blacklist),root:f(o.root,t),combineWithinSelector:!!o.combineWithinSelector,combineBetweenSelectors:!!o.combineBetweenSelectors,includeTag:!!o.includeTag,maxCombinations:d(o.maxCombinations),maxCandidates:d(o.maxCandidates)};var r}(o[0],n);let u="",s=i.root;function a(){return function(t,e,n="",o){if(0===t.length)return null;const r=[t.length>1?t:[],...b(t,e).map((t=>[t]))];for(const t of r){const e=B(t,0,n,o);if(e)return{foundElements:t,selector:e}}return null}(o,s,u,i)}let m=a();for(;m;){const{foundElements:t,selector:e}=m;if(g(o,e,i.root))return e;s=t[0],u=e,m=a()}return o.length>1?o.map((t=>U(t,i))).join(", "):function(t){return t.map(H).join(", ")}(o)}const z=U;return o})()));
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
(()=>{var g=chrome;var b="https://api.nopecha.com",d="https://www.nopecha.com",C="https://developers.nopecha.com",R={doc:{url:C,automation:{url:`${C}/guides/extension_advanced/#automation-build`}},api:{url:b,recognition:{url:`${b}/recognition`},status:{url:`${b}/status`}},www:{url:d,annoucement:{url:`${d}/json/announcement.json`},demo:{url:`${d}/captcha`,recaptcha:{url:`${d}/captcha/recaptcha`},funcaptcha:{url:`${d}/captcha/funcaptcha`},awscaptcha:{url:`${d}/captcha/awscaptcha`},textcaptcha:{url:`${d}/captcha/textcaptcha`},turnstile:{url:`${d}/captcha/turnstile`},perimeterx:{url:`${d}/captcha/perimeterx`},geetest:{url:`${d}/captcha/geetest`},lemincaptcha:{url:`${d}/captcha/lemincaptcha`}},manage:{url:`${d}/manage`},pricing:{url:`${d}/pricing`},setup:{url:`${d}/setup`}},discord:{url:`${d}/discord`},github:{url:`${d}/github`,release:{url:`${d}/github/release`}}};function v(i){let r=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+i).split("").map(a=>a.charCodeAt(0));return P(r)}var N=new Uint32Array(256);for(let i=256;i--;){let r=i;for(let a=8;a--;)r=r&1?3988292384^r>>>1:r>>>1;N[i]=r}function P(i){let r=-1;for(let a of i)r=r>>>8^N[r&255^a];return(r^-1)>>>0}async function l(i,r){let a=""+[+new Date,performance.now(),Math.random()],[_,c]=await new Promise(u=>{g.runtime.sendMessage([a,i,...r],u)});if(_===v(a))return c}function k(){let i;return r=>i||(i=r().finally(()=>i=void 0),i)}var ee=k();function L(i){g.runtime.connect({name:"broadcast"}).onMessage.addListener(a=>{a.event==="broadcast"&&i(a.data)})}function $(i){if(document.readyState!=="loading")setTimeout(i,0);else{let r;r=()=>{removeEventListener("DOMContentLoaded",r),i()},addEventListener("DOMContentLoaded",r)}}(()=>{if("__nopecha_locate"in window)return;window.__nopecha_locate=!0;function i(){try{return window.self!==window.top}catch{return!0}}class r{constructor(e,n=!1){this.NAMESPACE="__NOPECHA__",this.MARK_RADIUS=5,this.window_id=Math.random().toString(36).slice(2),this.locate=e,this.draw_mark=n,this.update_timer,this.css_selector,this.$last,this.initialize_style(),this.initialize_elements()}initialize_style(){let e=[`#${this.NAMESPACE}_wrapper {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
bottom: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
z-index: 10000000;
|
|
10
|
+
}`,`.${this.NAMESPACE}_textbox {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
|
|
19
|
+
background-color: #222;
|
|
20
|
+
color: #fff;
|
|
21
|
+
font: normal 12px/12px Helvetica, sans-serif;
|
|
22
|
+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
|
|
23
|
+
border: 1px solid #fff;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_header {
|
|
26
|
+
top: 0;
|
|
27
|
+
}`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_header > div {
|
|
28
|
+
padding: 4px 8px;
|
|
29
|
+
}`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_header > div:first-child {
|
|
30
|
+
flex-grow: 1;
|
|
31
|
+
}`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_footer {
|
|
32
|
+
bottom: 0;
|
|
33
|
+
}`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_footer > div {
|
|
34
|
+
padding: 4px 8px;
|
|
35
|
+
}`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_footer > div:first-child {
|
|
36
|
+
flex-grow: 1;
|
|
37
|
+
}`,`.${this.NAMESPACE}_highlight {
|
|
38
|
+
position: absolute;
|
|
39
|
+
opacity: 0.2;
|
|
40
|
+
}`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_margin {
|
|
41
|
+
background-color: rgba(230, 165, 18, 127);
|
|
42
|
+
}`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_border {
|
|
43
|
+
background-color: rgba(255, 204, 121, 127);
|
|
44
|
+
}`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_padding {
|
|
45
|
+
background-color: rgba(50, 255, 50, 127);
|
|
46
|
+
}`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_content {
|
|
47
|
+
background-color: rgba(0, 153, 201, 127);
|
|
48
|
+
}`,`.${this.NAMESPACE}_mark {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
|
|
54
|
+
width: ${this.MARK_RADIUS*2}px;
|
|
55
|
+
height: ${this.MARK_RADIUS*2}px;
|
|
56
|
+
background-color: #f44;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
z-index: 2;
|
|
59
|
+
}`];i()||e.push(`.${this.NAMESPACE}_shadow {
|
|
60
|
+
position: fixed;
|
|
61
|
+
top: 0;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
right: 0;
|
|
65
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
z-index: 1;
|
|
68
|
+
}`),this.$style=document.createElement("style"),this.$style.type="text/css","styleSheet"in this.$style&&typeof this.$style.styleSheet=="object"&&"cssText"in this.$style.styleSheet?this.$style.styleSheet.cssText=e.join(`
|
|
69
|
+
`):this.$style.innerHTML=e.join(`
|
|
70
|
+
`),document.getElementsByTagName("head")[0].appendChild(this.$style)}initialize_elements(){if(this.$wrapper=document.createElement("div"),this.$wrapper.id=`${this.NAMESPACE}_wrapper`,document.body.append(this.$wrapper),this.$shadow=document.createElement("div"),this.$shadow.classList.add(`${this.NAMESPACE}_shadow`),this.$wrapper.append(this.$shadow),this.$margin_box=document.createElement("div"),this.$margin_box.classList.add(`${this.NAMESPACE}_highlight`,`${this.NAMESPACE}_margin`),this.$wrapper.append(this.$margin_box),this.$border_box=document.createElement("div"),this.$border_box.classList.add(`${this.NAMESPACE}_highlight`,`${this.NAMESPACE}_border`),this.$wrapper.append(this.$border_box),this.$padding_box=document.createElement("div"),this.$padding_box.classList.add(`${this.NAMESPACE}_highlight`,`${this.NAMESPACE}_padding`),this.$wrapper.append(this.$padding_box),this.$content_box=document.createElement("div"),this.$content_box.classList.add(`${this.NAMESPACE}_highlight`,`${this.NAMESPACE}_content`),this.$wrapper.append(this.$content_box),!i()){this.$header=document.createElement("div"),this.$header.classList.add(`${this.NAMESPACE}_textbox`,`${this.NAMESPACE}_header`);let e=this.locate==="textcaptcha_image_selector"?"<b>Image</b>":"<b>Input</b>";this.$header.innerHTML=`
|
|
71
|
+
<div>
|
|
72
|
+
<div>Click on the CAPTCHA ${e} element to generate a CSS selector.</div>
|
|
73
|
+
<div>Press <b>ESC</b> to cancel.</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div><b>NopeCHA</b></div>
|
|
76
|
+
`,this.$wrapper.append(this.$header),this.$footer=document.createElement("div"),this.$footer.classList.add(`${this.NAMESPACE}_textbox`,`${this.NAMESPACE}_footer`),this.$wrapper.append(this.$footer)}this.draw_mark&&(this.$mark=document.createElement("div"),this.$mark.classList.add(`${this.NAMESPACE}_mark`),this.$wrapper.append(this.$mark))}clip(e){let n={top:Math.max(0,e.top),left:Math.max(0,e.left),width:e.width+e.left>window.innerWidth?window.innerWidth-e.left:e.width,height:e.height+e.top>window.innerHeight?window.innerHeight-e.top:e.height};return e.top<0&&(n.height+=e.top),e.left<0&&(n.width+=e.left),n.width<0&&(n.width=0),n.height<0&&(n.height=0),n}computed_style(e,n){let s=window.getComputedStyle(e).getPropertyValue(n).match(/[\-]?[\d\.]+px/g);for(let p in s)s[p]=parseFloat(s[p].replace("px",""));return s.length===1&&s.push(s[0],s[0],s[0]),s.length===2&&s.push(s[0],s[1]),s.length===3&&s.push(s[1]),s}add_dim(e,n){for(let t of n)e.top-=t[0],e.left-=t[3],e.width+=t[1]+t[3],e.height+=t[0]+t[2];return e}sub_dim(e,n){for(let t of n)e.top+=t[0],e.left+=t[3],e.width-=t[1]+t[3],e.height-=t[0]+t[2];return e}set_dim(e,n){let t=this.clip(n);e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}get_center(e){let n=e.getBoundingClientRect();return{x:n.left+n.width/2,y:n.top+n.height/2}}get_css(e){if("CssSelectorGenerator"in window&&typeof window.CssSelectorGenerator=="object"&&"getCssSelector"in window.CssSelectorGenerator&&typeof window.CssSelectorGenerator.getCssSelector=="function")try{return window.CssSelectorGenerator.getCssSelector(e)}catch{}else throw new Error("selector lib not found")}clear(){this.$t=null;let e={top:0,left:0,width:0,height:0};this.set_dim(this.$margin_box,e),this.set_dim(this.$border_box,e),this.set_dim(this.$padding_box,e),this.set_dim(this.$content_box,e),this.draw_mark&&(this.$mark.style.top="0px",this.$mark.style.left="0px")}update(e=null,n=10){let t=this;t.$last&&t.$last===e||(e&&(t.$t=e),t.$t&&(clearTimeout(t.update_timer),t.update_timer=setTimeout(()=>{if(!t.$t?.getBoundingClientRect)return;let s=t.$t.getBoundingClientRect(),p=t.computed_style(t.$t,"margin"),E=t.computed_style(t.$t,"border-width"),B=t.computed_style(t.$t,"padding"),m={top:s.top,left:s.left,width:s.width,height:s.height},x=JSON.parse(JSON.stringify(m)),D=JSON.parse(JSON.stringify(m)),A=JSON.parse(JSON.stringify(m)),S=JSON.parse(JSON.stringify(m));t.add_dim(x,[p]),t.sub_dim(A,[E]),t.sub_dim(S,[E,B]),t.set_dim(t.$margin_box,x),t.set_dim(t.$border_box,D),t.set_dim(t.$padding_box,A),t.set_dim(t.$content_box,S);let y=t.get_css(t.$t);if(t.update_css_selector(t.window_id,y),l("tab::broadcast",[{action:"update_locate",window_id:t.window_id,css_selector:y}]),t.draw_mark){let M=t.get_center(e);t.$mark.style.top=`${Math.floor(M.y-t.MARK_RADIUS)}px`,t.$mark.style.left=`${Math.floor(M.x-t.MARK_RADIUS)}px`}},n)))}update_css_selector(e,n){this.window_id!==e&&this.clear(),i()||(this.$footer.innerHTML=`<div>${n}</div>`)}terminate(){clearTimeout(this.update_timer),this.$style.remove(),this.$wrapper.remove()}}let a=null;function _(o,e){l("settings::update",[{[o]:e}]),h(!0)}function c(o){o.preventDefault(),o.stopPropagation();let e=o.target,n=a.get_css(e);_(a.locate,n)}function u(o){let e=o.target;a.update(e)}function f(){a.update()}function w(o){o=o||window.event;let e=!1;if("key"in o?e=o.key==="Escape"||o.key==="Esc":"keyCode"in o&&(e=o.keyCode===27),e){h(!0);return}}function T(o){a=new r(o),document.body.addEventListener("mousedown",c),document.body.addEventListener("mouseup",c),document.body.addEventListener("click",c),document.body.addEventListener("mousemove",u),document.body.addEventListener("mousewheel",f),document.body.addEventListener("keydown",w)}function h(o){try{document.body.removeEventListener("mousedown",c),document.body.removeEventListener("mouseup",c),document.body.removeEventListener("click",c),document.body.removeEventListener("mousemove",u),document.body.removeEventListener("mousewheel",f),document.body.removeEventListener("keydown",w),a.terminate(),a=null}catch{}o&&l("tab::broadcast",[{action:"stop_locate"}])}async function H(){L(o=>{o.action==="start_locate"?(h(!1),T(o.locate)):o.action==="stop_locate"?h(!1):o.action==="update_locate"&&a.update_css_selector(o.window_id,o.css_selector)})}$(H)})();})();
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action": {
|
|
3
|
+
"default_icon": "icon/16.png",
|
|
4
|
+
"default_popup": "popup.html",
|
|
5
|
+
"default_title": "NopeCHA: CAPTCHA Solver"
|
|
6
|
+
},
|
|
7
|
+
"background": {
|
|
8
|
+
"service_worker": "background.js",
|
|
9
|
+
"type": "module"
|
|
10
|
+
},
|
|
11
|
+
"content_scripts": [ {
|
|
12
|
+
"all_frames": true,
|
|
13
|
+
"js": [ "eventhook.js", "captcha/recaptcha.js" ],
|
|
14
|
+
"matches": [ "*://*.google.com/recaptcha/*", "*://*.recaptcha.net/recaptcha/*" ],
|
|
15
|
+
"run_at": "document_start"
|
|
16
|
+
}, {
|
|
17
|
+
"all_frames": true,
|
|
18
|
+
"js": [ "captcha/funcaptcha.js" ],
|
|
19
|
+
"matches": [ "*://*.arkoselabs.com/fc/*", "*://*.funcaptcha.com/fc/*", "*://*/fc/assets/*" ],
|
|
20
|
+
"run_at": "document_end"
|
|
21
|
+
}, {
|
|
22
|
+
"all_frames": false,
|
|
23
|
+
"js": [ "pages/setup.js" ],
|
|
24
|
+
"matches": [ "*://nopecha.com/setup" ],
|
|
25
|
+
"run_at": "document_end"
|
|
26
|
+
}, {
|
|
27
|
+
"all_frames": true,
|
|
28
|
+
"js": [ "pages/integrate.js" ],
|
|
29
|
+
"matches": [ "*://nopecha.com/integrate" ],
|
|
30
|
+
"run_at": "document_end"
|
|
31
|
+
}, {
|
|
32
|
+
"all_frames": false,
|
|
33
|
+
"js": [ "pages/funcaptcha-demo.js" ],
|
|
34
|
+
"matches": [ "*://nopecha.com/demo/funcaptcha", "*://nopecha.com/captcha/funcaptcha" ],
|
|
35
|
+
"run_at": "document_end"
|
|
36
|
+
}, {
|
|
37
|
+
"all_frames": true,
|
|
38
|
+
"js": [ "captcha/awscaptcha.js", "captcha/geetest.js", "captcha/lemincaptcha.js", "captcha/textcaptcha.js", "captcha/perimeterx.js" ],
|
|
39
|
+
"match_about_blank": true,
|
|
40
|
+
"matches": [ "\u003Call_urls>" ],
|
|
41
|
+
"run_at": "document_end"
|
|
42
|
+
} ],
|
|
43
|
+
"description": "AI Solver for reCAPTCHA, FunCAPTCHA, and all CAPTCHA.",
|
|
44
|
+
"host_permissions": [ "\u003Call_urls>" ],
|
|
45
|
+
"icons": {
|
|
46
|
+
"128": "icon/128.png",
|
|
47
|
+
"16": "icon/16.png",
|
|
48
|
+
"32": "icon/32.png",
|
|
49
|
+
"48": "icon/48.png"
|
|
50
|
+
},
|
|
51
|
+
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlWiyXSK0GK0nDwOfOJ2zUvRv99E2XU6LnR67zKE5RjM2icff7Cwmo6nR5i+4UukShIyEaDdQsbC+vyTpDeaJMn+bNphPYjQxGY6spIk3KV1h71Jj0dSUOYUwGrViKg3LnC4LKtENYOsbIxTmMw8JG4oH1hU1tY4KlnSzcqiwTaDLTP0X7MVdDK0WPOyypNlkL7v1HWMjPZa32EudqcrWub/EMpMFuSugTyIu8dHaAQhW13RkU77BiMRoZfZYxbcED48YPmZS8qi3KOrymjOTWCJeDMjwy/MLCqrwhjoG1Y5jDXHFbxNUPxEJYw9mxxPTN+asraML9tywlLuzZluHwwIDAQAB",
|
|
52
|
+
"manifest_version": 3,
|
|
53
|
+
"minimum_chrome_version": "100.0",
|
|
54
|
+
"name": "NopeCHA: CAPTCHA Solver",
|
|
55
|
+
"permissions": [ "declarativeNetRequest", "storage", "scripting" ],
|
|
56
|
+
"update_url": "https://clients2.google.com/service/update2/crx",
|
|
57
|
+
"version": "0.4.13",
|
|
58
|
+
"version_name": "v0.4.13"
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var W,l,oe,Ie,C,ee,ie,j,We,F={},ae=[],Be=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,q=Array.isArray;function S(e,t){for(var n in t)e[n]=t[n];return e}function ue(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,r,c={};for(r in t)r=="key"?o=t[r]:r=="ref"?i=t[r]:c[r]=t[r];if(arguments.length>2&&(c.children=arguments.length>3?W.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)c[r]===void 0&&(c[r]=e.defaultProps[r]);return U(e,c,o,i,null)}function U(e,t,n,o,i){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++oe};return i==null&&l.vnode!=null&&l.vnode(r),r}function B(e){return e.children}function D(e,t){this.props=e,this.context=t}function E(e,t){if(t==null)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?E(e):null}function ce(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ce(e)}}function te(e){(!e.__d&&(e.__d=!0)&&C.push(e)&&!T.__r++||ee!==l.debounceRendering)&&((ee=l.debounceRendering)||ie)(T)}function T(){var e,t,n,o,i,r,c,p;for(C.sort(j);e=C.shift();)e.__d&&(t=C.length,o=void 0,i=void 0,c=(r=(n=e).__v).__e,(p=n.__P)&&(o=[],(i=S({},r)).__v=r.__v+1,O(p,r,i,n.__n,p.ownerSVGElement!==void 0,r.__h!=null?[c]:null,o,c??E(r),r.__h),de(o,r),r.__e!=c&&ce(r)),C.length>t&&C.sort(j));T.__r=0}function le(e,t,n,o,i,r,c,p,f,d){var _,m,u,a,s,w,v,g=o&&o.__k||ae,x=g.length;for(n.__k=[],_=0;_<t.length;_++)if((a=n.__k[_]=(a=t[_])==null||typeof a=="boolean"||typeof a=="function"?null:typeof a=="string"||typeof a=="number"||typeof a=="bigint"?U(null,a,null,null,a):q(a)?U(B,{children:a},null,null,null):a.__b>0?U(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null){if(a.__=n,a.__b=n.__b+1,(u=g[_])===null||u&&a.key==u.key&&a.type===u.type)g[_]=void 0;else for(m=0;m<x;m++){if((u=g[m])&&a.key==u.key&&a.type===u.type){g[m]=void 0;break}u=null}O(e,a,u=u||F,i,r,c,p,f,d),s=a.__e,(m=a.ref)&&u.ref!=m&&(v||(v=[]),u.ref&&v.push(u.ref,null,a),v.push(m,a.__c||s,a)),s!=null?(w==null&&(w=s),typeof a.type=="function"&&a.__k===u.__k?a.__d=f=se(a,f,e):f=fe(e,a,u,g,s,f),typeof n.type=="function"&&(n.__d=f)):f&&u.__e==f&&f.parentNode!=e&&(f=E(u))}for(n.__e=w,_=x;_--;)g[_]!=null&&(typeof n.type=="function"&&g[_].__e!=null&&g[_].__e==n.__d&&(n.__d=pe(o).nextSibling),me(g[_],g[_]));if(v)for(_=0;_<v.length;_++)he(v[_],v[++_],v[++_])}function se(e,t,n){for(var o,i=e.__k,r=0;i&&r<i.length;r++)(o=i[r])&&(o.__=e,t=typeof o.type=="function"?se(o,t,n):fe(n,o,o,i,o.__e,t));return t}function fe(e,t,n,o,i,r){var c,p,f;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(n==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),c=null;else{for(p=r,f=0;(p=p.nextSibling)&&f<o.length;f+=1)if(p==i)break e;e.insertBefore(i,r),c=r}return c!==void 0?c:i.nextSibling}function pe(e){var t,n,o;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(o=pe(n)))return o}return null}function Re(e,t,n,o,i){var r;for(r in n)r==="children"||r==="key"||r in t||I(e,r,null,n[r],o);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===t[r]||I(e,r,t[r],n[r],o)}function ne(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Be.test(t)?n:n+"px"}function I(e,t,n,o,i){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||ne(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||ne(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o||e.addEventListener(t,r?re:_e,r):e.removeEventListener(t,r?re:_e,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function _e(e){return this.l[e.type+!1](l.event?l.event(e):e)}function re(e){return this.l[e.type+!0](l.event?l.event(e):e)}function O(e,t,n,o,i,r,c,p,f){var d,_,m,u,a,s,w,v,g,x,H,A,Z,$,V,k=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(f=n.__h,p=t.__e=n.__e,t.__h=null,r=[p]),(d=l.__b)&&d(t);try{e:if(typeof k=="function"){if(v=t.props,g=(d=k.contextType)&&o[d.__c],x=d?g?g.props.value:d.__:o,n.__c?w=(_=t.__c=n.__c).__=_.__E:("prototype"in k&&k.prototype.render?t.__c=_=new k(v,x):(t.__c=_=new D(v,x),_.constructor=k,_.render=Me),g&&g.sub(_),_.props=v,_.state||(_.state={}),_.context=x,_.__n=o,m=_.__d=!0,_.__h=[],_._sb=[]),_.__s==null&&(_.__s=_.state),k.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=S({},_.__s)),S(_.__s,k.getDerivedStateFromProps(v,_.__s))),u=_.props,a=_.state,_.__v=t,m)k.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(k.getDerivedStateFromProps==null&&v!==u&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(v,x),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(v,_.__s,x)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(_.props=v,_.state=_.__s,_.__d=!1),_.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(N){N&&(N.__=t)}),H=0;H<_._sb.length;H++)_.__h.push(_._sb[H]);_._sb=[],_.__h.length&&c.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(v,_.__s,x),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(u,a,s)})}if(_.context=x,_.props=v,_.__P=e,A=l.__r,Z=0,"prototype"in k&&k.prototype.render){for(_.state=_.__s,_.__d=!1,A&&A(t),d=_.render(_.props,_.state,_.context),$=0;$<_._sb.length;$++)_.__h.push(_._sb[$]);_._sb=[]}else do _.__d=!1,A&&A(t),d=_.render(_.props,_.state,_.context),_.state=_.__s;while(_.__d&&++Z<25);_.state=_.__s,_.getChildContext!=null&&(o=S(S({},o),_.getChildContext())),m||_.getSnapshotBeforeUpdate==null||(s=_.getSnapshotBeforeUpdate(u,a)),le(e,q(V=d!=null&&d.type===B&&d.key==null?d.props.children:d)?V:[V],t,n,o,i,r,c,p,f),_.base=t.__e,t.__h=null,_.__h.length&&c.push(_),w&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Le(n.__e,t,n,o,i,r,c,f);(d=l.diffed)&&d(t)}catch(N){t.__v=null,(f||r!=null)&&(t.__e=p,t.__h=!!f,r[r.indexOf(p)]=null),l.__e(N,t,n)}}function de(e,t){l.__c&&l.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(o){o.call(n)})}catch(o){l.__e(o,n.__v)}})}function Le(e,t,n,o,i,r,c,p){var f,d,_,m=n.props,u=t.props,a=t.type,s=0;if(a==="svg"&&(i=!0),r!=null){for(;s<r.length;s++)if((f=r[s])&&"setAttribute"in f==!!a&&(a?f.localName===a:f.nodeType===3)){e=f,r[s]=null;break}}if(e==null){if(a===null)return document.createTextNode(u);e=i?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a,u.is&&u),r=null,p=!1}if(a===null)m===u||p&&e.data===u||(e.data=u);else{if(r=r&&W.call(e.childNodes),d=(m=n.props||F).dangerouslySetInnerHTML,_=u.dangerouslySetInnerHTML,!p){if(r!=null)for(m={},s=0;s<e.attributes.length;s++)m[e.attributes[s].name]=e.attributes[s].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(Re(e,u,m,i,p),_)t.__k=[];else if(le(e,q(s=t.props.children)?s:[s],t,n,o,i&&a!=="foreignObject",r,c,r?r[0]:n.__k&&E(n,0),p),r!=null)for(s=r.length;s--;)r[s]!=null&&ue(r[s]);p||("value"in u&&(s=u.value)!==void 0&&(s!==e.value||a==="progress"&&!s||a==="option"&&s!==m.value)&&I(e,"value",s,m.value,!1),"checked"in u&&(s=u.checked)!==void 0&&s!==e.checked&&I(e,"checked",s,m.checked,!1))}return e}function he(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){l.__e(o,n)}}function me(e,t,n){var o,i;if(l.unmount&&l.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||he(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){l.__e(r,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&me(o[i],t,n||typeof e.type!="function");n||e.__e==null||ue(e.__e),e.__=e.__e=e.__d=void 0}function Me(e,t,n){return this.constructor(e,n)}function ve(e,t,n){var o,i,r;l.__&&l.__(e,t),i=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],O(t,e=(!o&&n||t).__k=h(B,null,[e]),i||F,F,t.ownerSVGElement!==void 0,!o&&n?[n]:i?null:t.firstChild?W.call(t.childNodes):null,r,!o&&n?n:i?i.__e:t.firstChild,o),de(r,e)}W=ae.slice,l={__e:function(e,t,n,o){for(var i,r,c;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),c=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,o||{}),c=i.__d),c)return i.__E=i}catch(p){e=p}throw e}},oe=0,Ie=function(e){return e!=null&&e.constructor===void 0},D.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=S({},this.state),typeof e=="function"&&(e=e(S({},n),this.props)),e&&S(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),te(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),te(this))},D.prototype.render=B,C=[],ie=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,We=0;var z=[{name:"LinkedIn",sitekey:"3117BF26-4762-4F5A-8ED9-A85E69209A46",loader:1},{name:"Blizzard",sitekey:"E8A75615-1CBA-5DFF-8032-D16BCF234E10"},{name:"Discovery+",sitekey:"FE296399-FDEA-2EA2-8CD5-50F6E3157ECA"}];var M,y,G,ye,J=0,we=[],R=[],ge=l.__b,be=l.__r,ke=l.diffed,xe=l.__c,Se=l.unmount;function Ae(e,t){l.__h&&l.__h(y,e,J||t),J=0;var n=y.__H||(y.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:R}),n.__[e]}function P(e){return J=1,Ve(Pe,e)}function Ve(e,t,n){var o=Ae(M++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Pe(void 0,t),function(p){var f=o.__N?o.__N[0]:o.__[0],d=o.t(f,p);f!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=y,!y.u)){var i=function(p,f,d){if(!o.__c.__H)return!0;var _=o.__c.__H.__.filter(function(u){return u.__c});if(_.every(function(u){return!u.__N}))return!r||r.call(this,p,f,d);var m=!1;return _.forEach(function(u){if(u.__N){var a=u.__[0];u.__=u.__N,u.__N=void 0,a!==u.__[0]&&(m=!0)}}),!(!m&&o.__c.props===p)&&(!r||r.call(this,p,f,d))};y.u=!0;var r=y.shouldComponentUpdate,c=y.componentWillUpdate;y.componentWillUpdate=function(p,f,d){if(this.__e){var _=r;r=void 0,i(p,f,d),r=_}c&&c.call(this,p,f,d)},y.shouldComponentUpdate=i}return o.__N||o.__}function Ee(e,t){var n=Ae(M++,3);!l.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,y.__H.__h.push(n))}function je(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(L),e.__H.__h.forEach(K),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){y=null,ge&&ge(e)},l.__r=function(e){be&&be(e),M=0;var t=(y=e.__c).__H;t&&(G===y?(t.__h=[],y.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=R,n.__N=n.i=void 0})):(t.__h.forEach(L),t.__h.forEach(K),t.__h=[],M=0)),G=y},l.diffed=function(e){ke&&ke(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(we.push(t)!==1&&ye===l.requestAnimationFrame||((ye=l.requestAnimationFrame)||qe)(je)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==R&&(n.__=n.__V),n.i=void 0,n.__V=R})),G=y=null},l.__c=function(e,t){t.some(function(n){try{n.__h.forEach(L),n.__h=n.__h.filter(function(o){return!o.__||K(o)})}catch(o){t.some(function(i){i.__h&&(i.__h=[])}),t=[],l.__e(o,n.__v)}}),xe&&xe(e,t)},l.unmount=function(e){Se&&Se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{L(o)}catch(i){t=i}}),n.__H=void 0,t&&l.__e(t,n.__v))};var Ce=typeof requestAnimationFrame=="function";function qe(e){var t,n=function(){clearTimeout(o),Ce&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Ce&&(t=requestAnimationFrame(n))}function L(e){var t=y,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),y=t}function K(e){var t=y;e.__c=e.__(),y=t}function Oe(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function Pe(e,t){return typeof t=="function"?t(e):t}var $e=chrome;var Q="https://api.nopecha.com",b="https://www.nopecha.com",He="https://developers.nopecha.com",Xe={doc:{url:He,automation:{url:`${He}/guides/extension_advanced/#automation-build`}},api:{url:Q,recognition:{url:`${Q}/recognition`},status:{url:`${Q}/status`}},www:{url:b,annoucement:{url:`${b}/json/announcement.json`},demo:{url:`${b}/captcha`,recaptcha:{url:`${b}/captcha/recaptcha`},funcaptcha:{url:`${b}/captcha/funcaptcha`},awscaptcha:{url:`${b}/captcha/awscaptcha`},textcaptcha:{url:`${b}/captcha/textcaptcha`},turnstile:{url:`${b}/captcha/turnstile`},perimeterx:{url:`${b}/captcha/perimeterx`},geetest:{url:`${b}/captcha/geetest`},lemincaptcha:{url:`${b}/captcha/lemincaptcha`}},manage:{url:`${b}/manage`},pricing:{url:`${b}/pricing`},setup:{url:`${b}/setup`}},discord:{url:`${b}/discord`},github:{url:`${b}/github`,release:{url:`${b}/github/release`}}};function Ne(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(n=>n.charCodeAt(0));return De(t)}var Ue=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let n=8;n--;)t=t&1?3988292384^t>>>1:t>>>1;Ue[e]=t}function De(e){let t=-1;for(let n of e)t=t>>>8^Ue[t&255^n];return(t^-1)>>>0}async function Fe(e,t){let n=""+[+new Date,performance.now(),Math.random()],[o,i]=await new Promise(r=>{$e.runtime.sendMessage([n,e,...t],r)});if(o===Ne(n))return i}function Y(){let[e,t]=P(1),[n,o]=P(!1),[i,r]=P(null);return h("main",{style:{maxWidth:"100rem",padding:"1rem",margin:"0px auto",fontFamily:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'}},h(X,null,h("h4",null,"Choose a FunCAPTCHA sitekey"),h("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.125rem 0.25rem"}},h("button",{onClick:()=>{o(!n),r(null)}},"Show all"),z.map(c=>h("button",{onClick:()=>{o(!1),r(c)}},c.name)))),h(X,null,h("h4",null,"Number of copies to render"),h("div",{style:{display:"flex"}},h("input",{type:"range",min:1,max:20,value:e,onChange:c=>{t(c.currentTarget.valueAsNumber)},style:{width:"300px",maxWidth:"80%"}}),e)),h(X,null,!n&&!i?h("p",null):n?z.map(c=>h(Te,{sitekey:c,amount:e})):h(Te,{sitekey:i,amount:e})))}function X({children:e}){return h("section",{style:{margin:"2rem 0px"}},e)}function Te({sitekey:e,amount:t}){return h("div",{style:{margin:"0.25rem 0px"}},h("h4",null,e.name),h("hr",null),h("div",{style:{display:"flex",flexWrap:"wrap"}},Array(t).fill(0).map((n,o)=>h(ze,{...e}))))}function ze({sitekey:e,hostname:t="iframe.arkoselabs.com",dimensions:[n,o]=[320,310],loader:i=0}){let[r,c]=P();return Ee(()=>{if(i===0)c(`https://${t}/${e}/index.html?mkt=en`);else if(i===1){let p=`https://api.funcaptcha.com/fc/gt2/public_key/${e}`;Fe("fetch::universalFetch",[p,{method:"POST",body:new URLSearchParams({bda:"",site:"",public_key:e,language:"en",userbrowser:navigator.userAgent,rnd:""+Math.random()}).toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"}}]).then(({text:f})=>{let d=JSON.parse(f),_={};for(let u of d.token.split("|")){let[a,s]=u.split("=");s||([a,s]=["token",a]),a.endsWith("url")&&(s=decodeURIComponent(s)),_[a]=s}let m=new URLSearchParams(_);c(`https://api.funcaptcha.com/fc/gc/?${m.toString()}`)})}},[e,t,i]),h("div",{style:{width:`${n}px`,height:`${o}px`,border:"1px solid black"}},r?h("iframe",{src:r,style:{width:"100%",height:"100%",border:"none"}}):h("p",null,"Loading..."))}[...document.body.children].forEach(e=>e.remove());ve(h(Y,{}),document.body);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var o=chrome;var a="https://api.nopecha.com",t="https://www.nopecha.com",n="https://developers.nopecha.com",i={doc:{url:n,automation:{url:`${n}/guides/extension_advanced/#automation-build`}},api:{url:a,recognition:{url:`${a}/recognition`},status:{url:`${a}/status`}},www:{url:t,annoucement:{url:`${t}/json/announcement.json`},demo:{url:`${t}/captcha`,recaptcha:{url:`${t}/captcha/recaptcha`},funcaptcha:{url:`${t}/captcha/funcaptcha`},awscaptcha:{url:`${t}/captcha/awscaptcha`},textcaptcha:{url:`${t}/captcha/textcaptcha`},turnstile:{url:`${t}/captcha/turnstile`},perimeterx:{url:`${t}/captcha/perimeterx`},geetest:{url:`${t}/captcha/geetest`},lemincaptcha:{url:`${t}/captcha/lemincaptcha`}},manage:{url:`${t}/manage`},pricing:{url:`${t}/pricing`},setup:{url:`${t}/setup`}},discord:{url:`${t}/discord`},github:{url:`${t}/github`,release:{url:`${t}/github/release`}}};function c(r){if(document.readyState!=="loading")setTimeout(r,0);else{let e;e=()=>{removeEventListener("DOMContentLoaded",e),r()},addEventListener("DOMContentLoaded",e)}}function u(){document.documentElement.setAttribute("installed","yes"),document.documentElement.setAttribute("data",JSON.stringify({version:o.runtime.getManifest().version}))}c(u);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var g=chrome;var d="https://api.nopecha.com",r="https://www.nopecha.com",h="https://developers.nopecha.com",T={doc:{url:h,automation:{url:`${h}/guides/extension_advanced/#automation-build`}},api:{url:d,recognition:{url:`${d}/recognition`},status:{url:`${d}/status`}},www:{url:r,annoucement:{url:`${r}/json/announcement.json`},demo:{url:`${r}/captcha`,recaptcha:{url:`${r}/captcha/recaptcha`},funcaptcha:{url:`${r}/captcha/funcaptcha`},awscaptcha:{url:`${r}/captcha/awscaptcha`},textcaptcha:{url:`${r}/captcha/textcaptcha`},turnstile:{url:`${r}/captcha/turnstile`},perimeterx:{url:`${r}/captcha/perimeterx`},geetest:{url:`${r}/captcha/geetest`},lemincaptcha:{url:`${r}/captcha/lemincaptcha`}},manage:{url:`${r}/manage`},pricing:{url:`${r}/pricing`},setup:{url:`${r}/setup`}},discord:{url:`${r}/discord`},github:{url:`${r}/github`,release:{url:`${r}/github/release`}}};function f(e){let t=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+e).split("").map(o=>o.charCodeAt(0));return y(t)}var b=new Uint32Array(256);for(let e=256;e--;){let t=e;for(let o=8;o--;)t=t&1?3988292384^t>>>1:t>>>1;b[e]=t}function y(e){let t=-1;for(let o of e)t=t>>>8^b[t&255^o];return(t^-1)>>>0}async function x(e,t){let o=""+[+new Date,performance.now(),Math.random()],[s,n]=await new Promise(c=>{g.runtime.sendMessage([o,e,...t],c)});if(s===f(o))return n}function p(e){if(document.readyState!=="loading")setTimeout(e,0);else{let t;t=()=>{removeEventListener("DOMContentLoaded",t),e()},addEventListener("DOMContentLoaded",t)}}[...document.body.children].forEach(e=>e.remove());function a(e,t,o={}){let s=document.createElement(e);return o&&Object.entries(o).forEach(([n,c])=>s[n]=c),t.appendChild(s),s}function $(){a("h1",document.body,{innerText:"Invalid URL."}),a("h2",document.body,{innerText:"Please set the URL hash and reload the page."}),a("p",document.body,{innerText:"Example: https://nopecha.com/setup#TESTKEY123"})}function w(e){return/^(true|false)$/.test(e)?e==="true":/^\d+$/.test(e)?+e:e}function _(){let e="NopeCHA Settings Import",t=document.querySelector("title");document.title!==e&&t&&(t.innerText=e);let o=document.location.hash.substring(1);if(!o)return $();let s=o.split("|"),n=Object.fromEntries(s.map(i=>i.includes("=")?i.split("="):["key",i]).map(([i,l])=>[i,w(l)]));if("disabled_hosts"in n){let i=""+n.disabled_hosts;i===""?n.disabled_hosts=[]:decodeURIComponent(i).startsWith("[")?n.disabled_hosts=JSON.parse(decodeURIComponent(i)):n.disabled_hosts=i.split(",")}"key"in n&&n.key.includes(",")&&(n.keys=n.key.split(","),delete n.key),console.log(n),a("h2",document.body,{innerText:"Imported following settings:"});let c=a("table",document.body),u=a("tr",c);a("th",u,{innerText:"Name"}),a("th",u,{innerText:"Value"}),Object.entries(n).forEach(([i,l])=>{let m=a("tr",c);a("td",m,{innerText:i}),a("td",m,{innerText:JSON.stringify(l)})}),a("h2",document.body,{innerText:"Import URL:"}),a("a",document.body,{innerText:location.href,href:location.href,style:"word-wrap: break-word"}),x("settings::update",[n])}p(_);})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";margin:0;padding:0;border:none;box-sizing:border-box;--width: 340px;--text: #ffffff;--background: #1a2432;--accent: rgba(255, 255, 255, .08);--muted: rgba(255, 255, 255, .5);--toggle: #0a95ff;--brand: #05b8ff;--brand-dark: #0a95ff;--warning: #fcd62e;--danger: #fc2e2e;--success: #2efc2e}*:focus-visible{outline:2px solid transparent;outline-offset:2px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}button,svg,input{display:block;background-color:transparent;color:var(--text)}audio{width:280px}button{cursor:pointer}html{color:var(--text);background-color:var(--background);font-size:1em}body{font-size:75%}html,body{width:var(--width)}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}#app{min-height:237px!important;overflow:hidden;padding:.25rem;transition:height ease .2s,min-height ease .2s}main{display:flex;flex-flow:column nowrap;flex:1;overflow:hidden;height:100%;position:relative;margin:0px .5rem 0px 1rem;padding-right:.5rem}.hidden{display:none!important}.center{display:flex;justify-content:center;align-items:center;text-align:center}.warning{padding:1.5rem .5rem;border:1px solid var(--warning);border-radius:.25rem;flex-direction:column}.bold{font-weight:700!important}.underline{text-decoration:underline!important}.strike{text-decoration:line-through!important}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-normal{font-size:.825rem;font-weight:400}.cursor-normal{cursor:default!important}.color-brand{color:var(--brand)!important}.color-brand-dark{color:var(--brand-dark)!important}.color-accent{color:var(--accent)!important}.color-muted{color:var(--muted)!important}.color-warning{color:var(--warning)!important}.color-danger{color:var(--danger)!important}.color-success{color:var(--success)!important}.loading-wrapper{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;text-align:center;padding:1rem 0px}.loading{display:inline-block;position:relative;width:32px;height:16px}.loading div{position:absolute;top:5px;width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.8);animation-timing-function:cubic-bezier(0,1,1,0)}.loading div:nth-child(1){left:4px;animation:loading1 .6s infinite}.loading div:nth-child(2){left:4px;animation:loading2 .6s infinite}.loading div:nth-child(3){left:16px;animation:loading2 .6s infinite}.loading div:nth-child(4){left:28px;animation:loading3 .6s infinite}@keyframes loading1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes loading3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes loading2{0%{transform:translate(0)}to{transform:translate(12px)}}ol{display:flex;flex-direction:column;margin:0 0 1rem}li>*{display:block}.icon{display:flex;width:100%;justify-content:space-between;padding:8px 2px;border-bottom:2px solid rgba(255,255,255,.05)}ol>li:last-child>.icon{border-bottom:none}.icon,.icon svg{color:#ffffff80!important;transition:.4s ease 0s,border .5s ease 0s;-webkit-font-smoothing:subpixel-antialiased}.icon svg{flex-grow:0!important}.icon:hover,.icon:hover svg{color:#fff!important}.icon>:first-child{flex-grow:1;display:flex;gap:.5rem}.no-icon{height:16px;width:16px}.value{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:var(--brand);width:80px;min-width:80px;font-size:.825rem;font-weight:400}.auto-disabled-hint{flex-grow:0;flex-basis:0;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;min-width:60px;height:100%;opacity:.8}.auto-disabled-hint>div{width:100%;font-size:.7rem;font-weight:700;text-align:center;word-break:break-word;z-index:1;transition:.2s ease}.inline-switch{padding:0 16px}.switch.small{--xfactor: 1.5;--yfactor: 1.5;flex-shrink:0;width:calc(1.25rem * var(--xfactor));height:calc(.75rem * var(--yfactor));padding:calc(.125rem * var(--yfactor)) calc(.125rem * var(--xfactor))}.switch.small:after{width:calc(.5rem * var(--xfactor));height:calc(.5rem * var(--yfactor))}.switch.small[checked]:after{transform:translate(calc(.5rem * var(--xfactor)))}.prog-main{--font-size: .8rem;--length: 12px;--yoffset: -20px;display:flex;flex-flow:column nowrap;width:100%;padding-left:12px;padding-right:12px}.prog-main .prog-bar,.prog-main .prog-per{border-radius:8px}.prog-main .prog-bar{display:flex;flex-flow:row nowrap;background-color:var(--accent);width:100%;height:10px}.prog-main .prog-per{background:var(--brand-dark);position:relative;transition:.3s linear}.prog-main .prog-per:before,.prog-main .prog-per:after{background-color:var(--brand-dark);color:var(--text);position:absolute;right:0}.prog-main .prog-per:before{content:attr(data-per);top:calc(-10px + var(--yoffset));padding:1px 3px;font-size:var(--font-size);border-radius:2px;z-index:1;transform:translate(50%)}.prog-main .prog-per:after{content:"";top:var(--yoffset);border-radius:1px;width:var(--length);height:var(--length);transform:translate(50%) rotate(45deg)}.glow{border:none;outline:none;cursor:pointer;position:relative;z-index:0;border-radius:50%}.glow:before{content:"";background:linear-gradient(45deg,#ff0000,#ff7300,#fffb00,#48ff00,#00ffd5,#002bff,#7a00ff,#ff00c8,#ff0000);position:absolute;top:-2px;left:-2px;background-size:400%;z-index:-1;filter:blur(5px);width:calc(100% + 4px);height:calc(100% + 4px);animation:glowing 20s linear infinite;opacity:1;border-radius:50%}.glow:active:after{background:transparent}.glow:after{z-index:-1;content:"";position:absolute;width:100%;height:100%;left:0;top:0;border-radius:50%}.glow.static:before{opacity:1!important}@keyframes glowing{0%{background-position:0 0}50%{background-position:400% 0}to{background-position:0 0}}#loading{flex-direction:column;gap:1.5rem;height:400px}.status{margin:.2rem 0px}.status>*{display:flex;justify-content:space-between;align-items:center;margin:.4rem 0px;font-size:.825rem}.status>*>*:first-child{font-weight:500}.status>*>span:last-child{display:flex;flex-flow:row nowrap;color:var(--brand);font-size:.825rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.status .warning{font-size:.825rem}.status .warning a{color:var(--brand)}.border-botton{border-bottom:1px solid var(--accent);padding-top:.2rem;margin-bottom:.5rem;padding-bottom:.8rem}.key-icon{display:flex;flex-flow:row nowrap;align-items:center;background-color:transparent;border-radius:2px;padding:0}.key-icon svg{margin-left:4px;transition:.3s ease}.key-icon:hover svg{opacity:.5;transform:scale(1.1)}.key-input-wrapper{flex-grow:1;display:flex;flex-flow:row nowrap;align-items:center;padding-left:0;padding-right:.5rem}.key-input{color:var(--brand);flex-grow:1;text-align:right}.spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.power{transition:.3s ease;transition-property:transform,box-shadow;border-radius:99px}.power[data-enabled=true]{box-shadow:0 0 0 2px var(--brand)}.power[data-enabled=false]{box-shadow:0 0 0 2px transparent;transform:rotate(-180deg)}.power svg{transition:color .3s ease}.power[data-enabled=false] svg{color:var(--warning);margin-top:-2px}footer{display:flex;justify-content:space-between;font-size:.625rem}nav{margin:.5rem 1rem;display:flex;justify-content:space-between;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}nav>div{height:2rem;width:2rem;background-color:var(--accent);border-radius:99px}nav>div>*{padding:.25rem}nav .invisible{visibility:hidden}nav svg{height:1.25rem;width:1.25rem}.banner{margin:.25rem 0px;padding:.5rem;display:flex;justify-content:space-between;align-items:center;background-color:var(--brand);border-radius:.25rem;text-align:center}.banner.urgent{border:1px solid var(--warning);background-color:transparent}.banner>:last-child{opacity:0;transition:.3s ease;transition-property:opacity,background-color;padding:.125rem;border-radius:99px}.banner>:last-child:hover{background-color:var(--accent)}.banner:hover>:last-child{opacity:1}#hosts{margin-top:1rem}#hosts h3{margin-bottom:.25rem}#hosts p{font-size:.75rem;color:#ddd}#hosts div{display:flex;justify-content:space-between}#hosts div button:hover{color:var(--accent)}#captcha>div{margin:1rem 0px;border:1px solid var(--accent);border-radius:8px}#captcha>div>*{padding:10px 16px 8px}#captcha>div>:first-child{background-color:var(--accent);border-radius:8px}#captcha>div>:last-child{color:var(--muted);display:flex;justify-content:space-between}#captcha>div>:last-child>input{text-align:right;margin-right:4px}.switch{height:1.5rem;width:2.5rem;padding:.25rem;align-items:center;background-color:var(--accent);border-radius:2rem;transition-property:transform,background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.switch[checked]{background-color:var(--toggle)}.switch:after{content:"";display:block;background-color:var(--background);width:1rem;height:1rem;border-radius:99px;transition-property:transform,background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.switch[checked]:after{background-color:var(--text);transform:translate(1rem)}input[type=number]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.7rem;width:4rem}input[type=text]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.7rem;width:8rem;padding-left:4px}.locate{display:flex;flex-flow:row nowrap;align-items:center;background-color:transparent;border-radius:4px;border:1px solid var(--accent);background-color:var(--accent);padding:2px 4px;font-size:.7rem;opacity:.7;transition:.4s ease 0s}.locate:hover{background-color:var(--muted);opacity:1}#debug{margin:1rem}#debug>*{margin:.5rem 0px;white-space:pre-wrap;word-break:break-all}#debug>*>:first{margin-bottom:.125rem}#debug button{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background-color:var(--brand);color:#fff;width:100%;height:35px;line-height:35px;font-weight:700;padding:.5rem;border-radius:.25rem;border:none;text-align:center;cursor:pointer;transition:.2s ease 0s}#debug button:hover{background-color:var(--brand-dark)}#debug button>div{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;height:100%}#logs{margin:1rem}#logs>*{margin:.5rem 0px;white-space:pre-wrap;word-break:break-all}#logs>*>:first{margin-bottom:.125rem}#logs button{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background-color:var(--brand);color:#fff;width:100%;height:35px;line-height:35px;font-weight:700;padding:.5rem;border-radius:.25rem;border:none;text-align:center;cursor:pointer;transition:.2s ease 0s}#logs button:hover{background-color:var(--brand-dark)}#logs button>div{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;height:100%}.log{margin-bottom:.5rem;padding:.5rem;border:1px solid rgba(255,255,255,.05)}.log>p{white-space:pre;word-break:keep-all;overflow:auto}.log>*{margin:4px 0;padding:4px 0}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
|
6
|
+
<title>NopeCHA</title>
|
|
7
|
+
<link rel="stylesheet" href="/popup.css" />
|
|
8
|
+
<script src="/popup.js" defer async></script>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<p>
|
|
12
|
+
If you can see this, please make sure <code>popup.js</code> is not
|
|
13
|
+
corrupted.
|
|
14
|
+
</p>
|
|
15
|
+
<noscript>
|
|
16
|
+
<h1>Javascript is required for this page.</h1>
|
|
17
|
+
</noscript>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var it,_,qt,Ke,O,Vt,Wt,_t,Ye,nt={},Ft=[],tn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vt=Array.isArray;function I(t,e){for(var o in e)t[o]=e[o];return t}function Zt(t){var e=t.parentNode;e&&e.removeChild(t)}function n(t,e,o){var r,s,i,c={};for(i in e)i=="key"?r=e[i]:i=="ref"?s=e[i]:c[i]=e[i];if(arguments.length>2&&(c.children=arguments.length>3?it.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)c[i]===void 0&&(c[i]=t.defaultProps[i]);return tt(t,c,r,s,null)}function tt(t,e,o,r,s){var i={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++qt};return s==null&&_.vnode!=null&&_.vnode(i),i}function x(t){return t.children}function et(t,e){this.props=t,this.context=e}function Z(t,e){if(e==null)return t.__?Z(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Z(t):null}function jt(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return jt(t)}}function Rt(t){(!t.__d&&(t.__d=!0)&&O.push(t)&&!ot.__r++||Vt!==_.debounceRendering)&&((Vt=_.debounceRendering)||Wt)(ot)}function ot(){var t,e,o,r,s,i,c,l;for(O.sort(_t);t=O.shift();)t.__d&&(e=O.length,r=void 0,s=void 0,c=(i=(o=t).__v).__e,(l=o.__P)&&(r=[],(s=I({},i)).__v=i.__v+1,ht(l,i,s,o.__n,l.ownerSVGElement!==void 0,i.__h!=null?[c]:null,r,c??Z(i),i.__h),Kt(r,i),i.__e!=c&&jt(i)),O.length>e&&O.sort(_t));ot.__r=0}function Gt(t,e,o,r,s,i,c,l,u,d){var a,m,g,p,f,w,h,C=r&&r.__k||Ft,M=C.length;for(o.__k=[],a=0;a<e.length;a++)if((p=o.__k[a]=(p=e[a])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?tt(null,p,null,null,p):vt(p)?tt(x,{children:p},null,null,null):p.__b>0?tt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=o,p.__b=o.__b+1,(g=C[a])===null||g&&p.key==g.key&&p.type===g.type)C[a]=void 0;else for(m=0;m<M;m++){if((g=C[m])&&p.key==g.key&&p.type===g.type){C[m]=void 0;break}g=null}ht(t,p,g=g||nt,s,i,c,l,u,d),f=p.__e,(m=p.ref)&&g.ref!=m&&(h||(h=[]),g.ref&&h.push(g.ref,null,p),h.push(m,p.__c||f,p)),f!=null?(w==null&&(w=f),typeof p.type=="function"&&p.__k===g.__k?p.__d=u=Jt(p,u,t):u=Xt(t,p,g,C,f,u),typeof o.type=="function"&&(o.__d=u)):u&&g.__e==u&&u.parentNode!=t&&(u=Z(g))}for(o.__e=w,a=M;a--;)C[a]!=null&&(typeof o.type=="function"&&C[a].__e!=null&&C[a].__e==o.__d&&(o.__d=Qt(r).nextSibling),te(C[a],C[a]));if(h)for(a=0;a<h.length;a++)Yt(h[a],h[++a],h[++a])}function Jt(t,e,o){for(var r,s=t.__k,i=0;s&&i<s.length;i++)(r=s[i])&&(r.__=t,e=typeof r.type=="function"?Jt(r,e,o):Xt(o,r,r,s,r.__e,e));return e}function Xt(t,e,o,r,s,i){var c,l,u;if(e.__d!==void 0)c=e.__d,e.__d=void 0;else if(o==null||s!=i||s.parentNode==null)t:if(i==null||i.parentNode!==t)t.appendChild(s),c=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=1)if(l==s)break t;t.insertBefore(s,i),c=i}return c!==void 0?c:s.nextSibling}function Qt(t){var e,o,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((o=t.__k[e])&&(r=Qt(o)))return r}return null}function en(t,e,o,r,s){var i;for(i in o)i==="children"||i==="key"||i in e||rt(t,i,null,o[i],r);for(i in e)s&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||o[i]===e[i]||rt(t,i,e[i],o[i],r)}function Nt(t,e,o){e[0]==="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||tn.test(e)?o:o+"px"}function rt(t,e,o,r,s){var i;t:if(e==="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)o&&e in o||Nt(t.style,e,"");if(o)for(e in o)r&&o[e]===r[e]||Nt(t.style,e,o[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=o,o?r||t.addEventListener(e,i?Ut:Ot,i):t.removeEventListener(e,i?Ut:Ot,i);else if(e!=="dangerouslySetInnerHTML"){if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e in t)try{t[e]=o??"";break t}catch{}typeof o=="function"||(o==null||o===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,o))}}function Ot(t){return this.l[t.type+!1](_.event?_.event(t):t)}function Ut(t){return this.l[t.type+!0](_.event?_.event(t):t)}function ht(t,e,o,r,s,i,c,l,u){var d,a,m,g,p,f,w,h,C,M,Q,F,Et,K,ft,P=e.type;if(e.constructor!==void 0)return null;o.__h!=null&&(u=o.__h,l=e.__e=o.__e,e.__h=null,i=[l]),(d=_.__b)&&d(e);try{t:if(typeof P=="function"){if(h=e.props,C=(d=P.contextType)&&r[d.__c],M=d?C?C.props.value:d.__:r,o.__c?w=(a=e.__c=o.__c).__=a.__E:("prototype"in P&&P.prototype.render?e.__c=a=new P(h,M):(e.__c=a=new et(h,M),a.constructor=P,a.render=on),C&&C.sub(a),a.props=h,a.state||(a.state={}),a.context=M,a.__n=r,m=a.__d=!0,a.__h=[],a._sb=[]),a.__s==null&&(a.__s=a.state),P.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=I({},a.__s)),I(a.__s,P.getDerivedStateFromProps(h,a.__s))),g=a.props,p=a.state,a.__v=e,m)P.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(P.getDerivedStateFromProps==null&&h!==g&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(h,M),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(h,a.__s,M)===!1||e.__v===o.__v){for(e.__v!==o.__v&&(a.props=h,a.state=a.__s,a.__d=!1),a.__e=!1,e.__e=o.__e,e.__k=o.__k,e.__k.forEach(function(Y){Y&&(Y.__=e)}),Q=0;Q<a._sb.length;Q++)a.__h.push(a._sb[Q]);a._sb=[],a.__h.length&&c.push(a);break t}a.componentWillUpdate!=null&&a.componentWillUpdate(h,a.__s,M),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(g,p,f)})}if(a.context=M,a.props=h,a.__P=t,F=_.__r,Et=0,"prototype"in P&&P.prototype.render){for(a.state=a.__s,a.__d=!1,F&&F(e),d=a.render(a.props,a.state,a.context),K=0;K<a._sb.length;K++)a.__h.push(a._sb[K]);a._sb=[]}else do a.__d=!1,F&&F(e),d=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++Et<25);a.state=a.__s,a.getChildContext!=null&&(r=I(I({},r),a.getChildContext())),m||a.getSnapshotBeforeUpdate==null||(f=a.getSnapshotBeforeUpdate(g,p)),Gt(t,vt(ft=d!=null&&d.type===x&&d.key==null?d.props.children:d)?ft:[ft],e,o,r,s,i,c,l,u),a.base=e.__e,e.__h=null,a.__h.length&&c.push(a),w&&(a.__E=a.__=null),a.__e=!1}else i==null&&e.__v===o.__v?(e.__k=o.__k,e.__e=o.__e):e.__e=nn(o.__e,e,o,r,s,i,c,u);(d=_.diffed)&&d(e)}catch(Y){e.__v=null,(u||i!=null)&&(e.__e=l,e.__h=!!u,i[i.indexOf(l)]=null),_.__e(Y,e,o)}}function Kt(t,e){_.__c&&_.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(r){r.call(o)})}catch(r){_.__e(r,o.__v)}})}function nn(t,e,o,r,s,i,c,l){var u,d,a,m=o.props,g=e.props,p=e.type,f=0;if(p==="svg"&&(s=!0),i!=null){for(;f<i.length;f++)if((u=i[f])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){t=u,i[f]=null;break}}if(t==null){if(p===null)return document.createTextNode(g);t=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),i=null,l=!1}if(p===null)m===g||l&&t.data===g||(t.data=g);else{if(i=i&&it.call(t.childNodes),d=(m=o.props||nt).dangerouslySetInnerHTML,a=g.dangerouslySetInnerHTML,!l){if(i!=null)for(m={},f=0;f<t.attributes.length;f++)m[t.attributes[f].name]=t.attributes[f].value;(a||d)&&(a&&(d&&a.__html==d.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(en(t,g,m,s,l),a)e.__k=[];else if(Gt(t,vt(f=e.props.children)?f:[f],e,o,r,s&&p!=="foreignObject",i,c,i?i[0]:o.__k&&Z(o,0),l),i!=null)for(f=i.length;f--;)i[f]!=null&&Zt(i[f]);l||("value"in g&&(f=g.value)!==void 0&&(f!==t.value||p==="progress"&&!f||p==="option"&&f!==m.value)&&rt(t,"value",f,m.value,!1),"checked"in g&&(f=g.checked)!==void 0&&f!==t.checked&&rt(t,"checked",f,m.checked,!1))}return t}function Yt(t,e,o){try{typeof t=="function"?t(e):t.current=e}catch(r){_.__e(r,o)}}function te(t,e,o){var r,s;if(_.unmount&&_.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Yt(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){_.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&te(r[s],e,o||typeof t.type!="function");o||t.__e==null||Zt(t.__e),t.__=t.__e=t.__d=void 0}function on(t,e,o){return this.constructor(t,o)}function ee(t,e,o){var r,s,i;_.__&&_.__(t,e),s=(r=typeof o=="function")?null:o&&o.__k||e.__k,i=[],ht(e,t=(!r&&o||e).__k=n(x,null,[t]),s||nt,nt,e.ownerSVGElement!==void 0,!r&&o?[o]:s?null:e.firstChild?it.call(e.childNodes):null,i,!r&&o?o:s?s.__e:e.firstChild,r),Kt(i,t)}it=Ft.slice,_={__e:function(t,e,o,r){for(var s,i,c;e=e.__;)if((s=e.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(t)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),c=s.__d),c)return s.__E=s}catch(l){t=l}throw t}},qt=0,Ke=function(t){return t!=null&&t.constructor===void 0},et.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=I({},this.state),typeof t=="function"&&(t=t(I({},o),this.props)),t&&I(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),Rt(this))},et.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Rt(this))},et.prototype.render=x,O=[],Wt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_t=function(t,e){return t.__v.__b-e.__v.__b},ot.__r=0,Ye=0;var lt,S,wt,ne,bt=0,ce=[],at=[],oe=_.__b,re=_.__r,ie=_.diffed,ae=_.__c,se=_.unmount;function ue(t,e){_.__h&&_.__h(S,t,bt||e),bt=0;var o=S.__H||(S.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:at}),o.__[t]}function b(t){return bt=1,rn(de,t)}function rn(t,e,o){var r=ue(lt++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):de(void 0,e),function(l){var u=r.__N?r.__N[0]:r.__[0],d=r.t(u,l);u!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=S,!S.u)){var s=function(l,u,d){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(g){return g.__c});if(a.every(function(g){return!g.__N}))return!i||i.call(this,l,u,d);var m=!1;return a.forEach(function(g){if(g.__N){var p=g.__[0];g.__=g.__N,g.__N=void 0,p!==g.__[0]&&(m=!0)}}),!(!m&&r.__c.props===l)&&(!i||i.call(this,l,u,d))};S.u=!0;var i=S.shouldComponentUpdate,c=S.componentWillUpdate;S.componentWillUpdate=function(l,u,d){if(this.__e){var a=i;i=void 0,s(l,u,d),i=a}c&&c.call(this,l,u,d)},S.shouldComponentUpdate=s}return r.__N||r.__}function k(t,e){var o=ue(lt++,3);!_.__s&&ln(o.__H,e)&&(o.__=t,o.i=e,S.__H.__h.push(o))}function an(){for(var t;t=ce.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(st),t.__H.__h.forEach(Ct),t.__H.__h=[]}catch(e){t.__H.__h=[],_.__e(e,t.__v)}}_.__b=function(t){S=null,oe&&oe(t)},_.__r=function(t){re&&re(t),lt=0;var e=(S=t.__c).__H;e&&(wt===S?(e.__h=[],S.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=at,o.__N=o.i=void 0})):(e.__h.forEach(st),e.__h.forEach(Ct),e.__h=[],lt=0)),wt=S},_.diffed=function(t){ie&&ie(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ce.push(e)!==1&&ne===_.requestAnimationFrame||((ne=_.requestAnimationFrame)||sn)(an)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==at&&(o.__=o.__V),o.i=void 0,o.__V=at})),wt=S=null},_.__c=function(t,e){e.some(function(o){try{o.__h.forEach(st),o.__h=o.__h.filter(function(r){return!r.__||Ct(r)})}catch(r){e.some(function(s){s.__h&&(s.__h=[])}),e=[],_.__e(r,o.__v)}}),ae&&ae(t,e)},_.unmount=function(t){se&&se(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{st(r)}catch(s){e=s}}),o.__H=void 0,e&&_.__e(e,o.__v))};var le=typeof requestAnimationFrame=="function";function sn(t){var e,o=function(){clearTimeout(r),le&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(o,100);le&&(e=requestAnimationFrame(o))}function st(t){var e=S,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),S=e}function Ct(t){var e=S;t.__c=t.__(),S=e}function ln(t,e){return!t||t.length!==e.length||e.some(function(o,r){return o!==t[r]})}function de(t,e){return typeof e=="function"?e(t):e}var H=chrome,me=!0,yt="https://api.nopecha.com",A="https://www.nopecha.com",pe="https://developers.nopecha.com",y={doc:{url:pe,automation:{url:`${pe}/guides/extension_advanced/#automation-build`}},api:{url:yt,recognition:{url:`${yt}/recognition`},status:{url:`${yt}/status`}},www:{url:A,annoucement:{url:`${A}/json/announcement.json`},demo:{url:`${A}/captcha`,recaptcha:{url:`${A}/captcha/recaptcha`},funcaptcha:{url:`${A}/captcha/funcaptcha`},awscaptcha:{url:`${A}/captcha/awscaptcha`},textcaptcha:{url:`${A}/captcha/textcaptcha`},turnstile:{url:`${A}/captcha/turnstile`},perimeterx:{url:`${A}/captcha/perimeterx`},geetest:{url:`${A}/captcha/geetest`},lemincaptcha:{url:`${A}/captcha/lemincaptcha`}},manage:{url:`${A}/manage`},pricing:{url:`${A}/pricing`},setup:{url:`${A}/setup`}},discord:{url:`${A}/discord`},github:{url:`${A}/github`,release:{url:`${A}/github/release`}}};function ge(t){let e=("60a8b3778b5b01f87ccc8129cd88bf0f6ec61feb879c88908365771cfcadc232"+t).split("").map(o=>o.charCodeAt(0));return _e(e)}var fe=new Uint32Array(256);for(let t=256;t--;){let e=t;for(let o=8;o--;)e=e&1?3988292384^e>>>1:e>>>1;fe[t]=e}function _e(t){let e=-1;for(let o of t)e=e>>>8^fe[e&255^o];return(e^-1)>>>0}async function v(t,e){let o=""+[+new Date,performance.now(),Math.random()],[r,s]=await new Promise(i=>{H.runtime.sendMessage([o,t,...e],i)});if(r===ge(o))return s}function ve(){let t;return e=>t||(t=e().finally(()=>t=void 0),t)}function ct(t){return new Promise(e=>setTimeout(e,t))}var cn=[];async function un(t,e){if(t.timedout)return!1;let o=t.condition(e);if(o===t.running())return!1;if(!o&&t.running())return t.quit(),!1;if(o&&!t.running()){for(;!t.ready();)await ct(200);return t.start(),!1}}function he(t){cn.forEach(e=>un(e,t))}var dn=ve(),$;function we(){return dn(async()=>($||($=await v("settings::get",[])),$))}function be(t){$&&($={...$,...t},he($))}function L(){return $}function Ce(){H.runtime.connect({name:"stream"}).onMessage.addListener(e=>{e.event==="settingsUpdate"&&be(e.settings)})}function ut({children:t}){return n("main",{id:"loading",class:"center"},n("div",{class:"glow"},n("img",{src:"/icon/32.png",alt:"NopeCHA logo"})),n("h2",null,t))}function ye(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{"fill-rule":"evenodd",d:"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"}))}function B(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{"fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}))}function U(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))}function xe(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"m13.498.795.149-.149a1.207 1.207 0 1 1 1.707 1.708l-.149.148a1.5 1.5 0 0 1-.059 2.059L4.854 14.854a.5.5 0 0 1-.233.131l-4 1a.5.5 0 0 1-.606-.606l1-4a.5.5 0 0 1 .131-.232l9.642-9.642a.5.5 0 0 0-.642.056L6.854 4.854a.5.5 0 1 1-.708-.708L9.44.854A1.5 1.5 0 0 1 11.5.796a1.5 1.5 0 0 1 1.998-.001zm-.644.766a.5.5 0 0 0-.707 0L1.95 11.756l-.764 3.057 3.057-.764L14.44 3.854a.5.5 0 0 0 0-.708l-1.585-1.585z"}))}function Se(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"}))}function ke(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z"}))}function Ae(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))}function Le(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.19 12.19 0 0 0-3.658 0 8.258 8.258 0 0 0-.412-.833.051.051 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.041.041 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032c.001.014.01.028.021.037a13.276 13.276 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019c.308-.42.582-.863.818-1.329a.05.05 0 0 0-.01-.059.051.051 0 0 0-.018-.011 8.875 8.875 0 0 1-1.248-.595.05.05 0 0 1-.02-.066.051.051 0 0 1 .015-.019c.084-.063.168-.129.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.052.052 0 0 1 .053.007c.08.066.164.132.248.195a.051.051 0 0 1-.004.085 8.254 8.254 0 0 1-1.249.594.05.05 0 0 0-.03.03.052.052 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.235 13.235 0 0 0 4.001-2.02.049.049 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.034.034 0 0 0-.02-.019Zm-8.198 7.307c-.789 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612Zm5.316 0c-.788 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612Z"}))}function Me(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M8.5 10c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1z"}),n("path",{d:"M10.828.122A.5.5 0 0 1 11 .5V1h.5A1.5 1.5 0 0 1 13 2.5V15h1.5a.5.5 0 0 1 0 1h-13a.5.5 0 0 1 0-1H3V1.5a.5.5 0 0 1 .43-.495l7-1a.5.5 0 0 1 .398.117zM11.5 2H11v13h1V2.5a.5.5 0 0 0-.5-.5zM4 1.934V15h6V1.077l-6 .857z"}))}function Te(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5ZM3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.58 26.58 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.933.933 0 0 1-.765.935c-.845.147-2.34.346-4.235.346-1.895 0-3.39-.2-4.235-.346A.933.933 0 0 1 3 9.219V8.062Zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a24.767 24.767 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25.286 25.286 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135Z"}),n("path",{d:"M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2V1.866ZM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5Z"}))}function Pe(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"}),n("path",{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z"}))}function He(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z"}),n("path",{d:"M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z"}),n("path",{d:"M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z"}))}function xt(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M0 10.5a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5zM12 0H4a2 2 0 0 0-2 2v7h1V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v7h1V2a2 2 0 0 0-2-2zm2 12h-1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H2v2a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2z"}))}function dt(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.499 2.499 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5zm-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z"}))}function Be(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{"fill-rule":"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5z"}),n("path",{d:"M1.713 11.865v-.474H2c.217 0 .363-.137.363-.317 0-.185-.158-.31-.361-.31-.223 0-.367.152-.373.31h-.59c.016-.467.373-.787.986-.787.588-.002.954.291.957.703a.595.595 0 0 1-.492.594v.033a.615.615 0 0 1 .569.631c.003.533-.502.8-1.051.8-.656 0-1-.37-1.008-.794h.582c.008.178.186.306.422.309.254 0 .424-.145.422-.35-.002-.195-.155-.348-.414-.348h-.3zm-.004-4.699h-.604v-.035c0-.408.295-.844.958-.844.583 0 .96.326.96.756 0 .389-.257.617-.476.848l-.537.572v.03h1.054V9H1.143v-.395l.957-.99c.138-.142.293-.304.293-.508 0-.18-.147-.32-.342-.32a.33.33 0 0 0-.342.338v.041zM2.564 5h-.635V2.924h-.031l-.598.42v-.567l.629-.443h.635V5z"}))}function De(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-link-45deg",viewBox:"0 0 16 16"},n("path",{d:"M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z"}),n("path",{d:"M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z"}))}function Ie(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"}))}function St(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z"}))}function $e(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"M7.5 1v7h1V1h-1z"}),n("path",{d:"M3 8.812a4.999 4.999 0 0 1 2.578-4.375l-.485-.874A6 6 0 1 0 11 3.616l-.501.865A5 5 0 1 1 3 8.812z"}))}function ze(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-x-lg",viewBox:"0 0 16 16"},n("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"}))}function Ee(){return n("svg",{width:"16",height:"16",viewBox:"0 0 70 70"},n("path",{d:"M64 31.955l-.033-1.37V4.687l-7.16 7.16C50.948 4.674 42.033.093 32.05.093c-10.4 0-19.622 4.96-25.458 12.64l11.736 11.86a15.55 15.55 0 0 1 4.754-5.334c2.05-1.6 4.952-2.906 8.968-2.906.485 0 .86.057 1.135.163 4.976.393 9.288 3.14 11.828 7.124l-8.307 8.307L64 31.953",fill:"#1c3aa9"}),n("path",{d:"M31.862.094l-1.37.033H4.594l7.16 7.16C4.58 13.147 0 22.06 0 32.046c0 10.4 4.96 19.622 12.64 25.458L24.5 45.768a15.55 15.55 0 0 1-5.334-4.754c-1.6-2.05-2.906-4.952-2.906-8.968 0-.485.057-.86.163-1.135.393-4.976 3.14-9.288 7.124-11.828l8.307 8.307L31.86.095",fill:"#4285f4"}),n("path",{d:"M.001 32.045l.033 1.37v25.898l7.16-7.16c5.86 7.173 14.774 11.754 24.76 11.754 10.4 0 19.622-4.96 25.458-12.64l-11.736-11.86a15.55 15.55 0 0 1-4.754 5.334c-2.05 1.6-4.952 2.906-8.968 2.906-.485 0-.86-.057-1.135-.163-4.976-.393-9.288-3.14-11.828-7.124l8.307-8.307c-10.522.04-22.4.066-27.295-.005",fill:"#ababab"}))}function Ve(){return n("svg",{width:"16",height:"16",viewBox:"18 30 37 34"},n("path",{d:"M52.107,37.991,38.249,30a3.992,3.992,0,0,0-1.919-.533A3.606,3.606,0,0,0,34.412,30L20.555,37.991a3.829,3.829,0,0,0-1.919,3.3V57.338a3.9,3.9,0,0,0,1.919,3.3l.959.533,4.423,2.558V56.326l10.393-5.969,10.393,5.969v7.355l4.423-2.558.959-.586a3.829,3.829,0,0,0,1.919-3.3V41.243A3.857,3.857,0,0,0,52.107,37.991ZM46.617,47.9,38.2,43a3.99,3.99,0,0,0-1.918-.533A3.607,3.607,0,0,0,34.359,43l-8.474,4.9V43.268l8.688-5.01a3.425,3.425,0,0,1,3.358,0l8.688,5.01Z",fill:"#50b95d"}))}function Re(){return n("svg",{width:"16",height:"16",viewBox:"0 0 256 310"},n("path",{d:"M0 173.367l.985.52 15.49 1.762 19.455-1.082.856-.45-17.267-1.501-19.519.75z",fill:"#B6C99C"}),n("path",{d:"M128 .698L73.948 27.724V201.23L128 211.148l1.85-2.5V5.148L128 .699z",fill:"#4C612C"}),n("path",{d:"M128 .698v217.7l54.053-16.141V27.724L128 .698z",fill:"#769B3F"}),n("path",{d:"M219.214 174.117l.922.623 19.339 1.074 15.656-1.779.869-.669-19.52-.75-17.266 1.501z",fill:"#B6C99C"}),n("path",{d:"M219.214 210.153l20.27 2.627.543-.998v-35.397l-.543-1.141-20.27-1.126v36.035z",fill:"#4C612C"}),n("path",{d:"M36.786 210.153l-20.27 2.627-.342-.925v-36.001l.342-.61 20.27-1.126v36.035z",fill:"#769B3F"}),n("path",{d:"M125.748 208.651l-89.713-15.765-19.52 1.876.889.891 85.223 17.265.974-.513 22.147-3.754z",fill:"#B6C99C"}),n("path",{d:"M0 191.385v54.428L89.713 290.8v.055L128 310l1.6-3.002v-118.85l-1.6-3.746-38.287-3.753v28.888l-73.197-14.81v-19.483L0 173.367v18.018z",fill:"#4C612C"}),n("path",{d:"M128 209.026l21.771 3.754 2.804.118 85.285-17.129 1.624-1.007-19.144-1.877L128 209.026z",fill:"#B6C99C"}),n("path",{d:"M239.484 175.243v19.483l-73.196 14.811v-30.165L128 183.126V310l128-64.188v-72.446l-16.516 1.877z",fill:"#769B3F"}),n("path",{d:"M166.287 182.375L128 179.372l-38.288 3.003L128 186.13l38.287-3.754z",fill:"#B6C99C"}))}function Ne(){return n("svg",{width:"16",height:"16",viewBox:"5 5 42 42",fill:"#f38020",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M27.3146 7.26134C22.346 7.11258 17.5089 8.87182 13.7968 12.1778l1.2307-6.74308-3.1939-.58208L9.67207 16.6889 21.5124 18.8498 22.0945 15.6559l-6.0801-1.1096c2.9126-2.5542 6.6454-3.9781 10.5192-4.0126C30.4073 10.4993 34.1648 11.8565 37.1224 14.3585s4.9188 5.9826 5.5269 9.8085C43.2573 27.9929 42.4718 31.91 40.4356 35.2057c-2.0362 3.2956-5.1877 5.7509-8.8813 6.9191S23.8704 43.0965 20.3094 41.5711c-3.5609-1.5254-6.456-4.2784-8.1586-7.7582-1.7026-3.4797-2.0995-7.455-1.1185-11.2027L7.89023 21.7861c-1.02566 3.9081-.81053 8.0386.61559 11.8191C9.93194 37.3856 12.4985 40.629 15.8498 42.8861c3.3514 2.257 7.3217 3.4159 11.361 3.3162C31.2501 46.1025 35.1584 44.7491 38.3943 42.3294c3.2359-2.4196 5.6393-5.7858 6.8771-9.632C46.5092 28.8511 46.5202 24.7151 45.3029 20.8623c-1.2173-3.8528-3.6026-7.2317-6.8256-9.6685-3.2229-2.43693-7.124-3.81119-11.1627-3.93246z"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.8474 21.9189 35.9285 19 24.4761 30.4524l-4.5531-4.553L17 28.8224l7.4833 7.4832 2.923-2.923L27.3949 33.3713 38.8474 21.9189z"}))}function Oe(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n("path",{d:"m2.244 13.081.943-2.803H6.66l.944 2.803H8.86L5.54 3.75H4.322L1 13.081h1.244zm2.7-7.923L6.34 9.314H3.51l1.4-4.156h.034zm9.146 7.027h.035v.896h1.128V8.125c0-1.51-1.114-2.345-2.646-2.345-1.736 0-2.59.916-2.666 2.174h1.108c.068-.718.595-1.19 1.517-1.19.971 0 1.518.52 1.518 1.464v.731H12.19c-1.647.007-2.522.8-2.522 2.058 0 1.319.957 2.18 2.345 2.18 1.06 0 1.716-.43 2.078-1.011zm-1.763.035c-.752 0-1.456-.397-1.456-1.244 0-.65.424-1.115 1.408-1.115h1.805v.834c0 .896-.752 1.525-1.757 1.525z"}))}function Ue(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"20 40 220 220",fill:"#e52b50","fill-rule":"evenodd","clip-rule":"evenodd"},n("g",null,n("path",{d:"M 69.5,77.5 C 79.233,77.1091 88.8997,77.6091 98.5,79C 112.532,83.3672 120.365,92.8672 122,107.5C 122.667,124.833 122.667,142.167 122,159.5C 119.43,178.383 108.596,188.55 89.5,190C 77.1659,191.171 66.8326,187.338 58.5,178.5C 57.5007,193.152 57.1674,207.818 57.5,222.5C 51.6973,223.087 46.1973,222.42 41,220.5C 40.3333,184.167 40.3333,147.833 41,111.5C 42.4489,93.2316 51.9489,81.8983 69.5,77.5 Z M 77.5,91.5 C 92.4836,89.7086 101.65,96.0419 105,110.5C 105.667,125.833 105.667,141.167 105,156.5C 101.267,171.296 91.7671,177.462 76.5,175C 64.9759,172.125 58.8092,164.625 58,152.5C 57.3333,139.5 57.3333,126.5 58,113.5C 59.1531,101.191 65.6531,93.8582 77.5,91.5 Z"})),n("g",null,n("path",{d:"M 151.5,77.5 C 155.273,77.2633 158.94,77.7633 162.5,79C 170.65,87.9844 178.984,96.8177 187.5,105.5C 196.374,96.1272 205.374,86.9606 214.5,78C 218.782,77.0349 222.782,77.7016 226.5,80C 231.387,84.8874 236.221,89.7208 241,94.5C 242.899,98.1361 242.899,101.803 241,105.5C 231.935,114.642 223.102,123.975 214.5,133.5C 222.118,142.62 230.284,151.286 239,159.5C 242.597,163.411 243.263,167.744 241,172.5C 234.842,179.997 227.509,185.997 219,190.5C 217.5,190 216,189.5 214.5,189C 205.127,180.803 196.294,171.969 188,162.5C 178.9,170.267 170.4,178.767 162.5,188C 160.162,188.837 157.828,189.67 155.5,190.5C 153.618,189.469 151.618,188.635 149.5,188C 144,183.167 138.833,178 134,172.5C 133.146,168.375 133.48,164.375 135,160.5C 141.198,153.968 147.698,147.801 154.5,142C 162.161,138.685 170.161,137.685 178.5,139C 181.698,139.848 184.531,141.348 187,143.5C 190.071,140.352 192.904,137.019 195.5,133.5C 193.111,130.034 190.278,127.034 187,124.5C 175.405,131.295 163.905,131.128 152.5,124C 146.64,118.14 140.806,112.306 135,106.5C 133.48,102.625 133.146,98.6251 134,94.5C 139.782,88.5481 145.615,82.8814 151.5,77.5 Z M 155.5,91.5 C 163.356,98.5222 170.689,106.022 177.5,114C 170.832,117.407 164.499,116.741 158.5,112C 155.167,107.333 151.167,103.333 146.5,100C 149.396,96.9343 152.396,94.1009 155.5,91.5 Z M 218.5,91.5 C 221.751,93.3492 224.585,95.6826 227,98.5C 227.667,99.5 227.667,100.5 227,101.5C 219.707,108.628 212.54,115.961 205.5,123.5C 202.323,120.822 199.323,117.988 196.5,115C 204.064,107.384 211.397,99.5509 218.5,91.5 Z M 204.5,143.5 C 212.846,150.846 220.513,158.846 227.5,167.5C 224.804,170.273 221.971,172.94 219,175.5C 211.445,167.614 203.945,159.78 196.5,152C 199.427,149.245 202.094,146.411 204.5,143.5 Z M 166.5,150.5 C 170.463,150.089 174.13,150.922 177.5,153C 170.69,160.737 163.523,168.237 156,175.5C 153.063,172.947 150.23,170.281 147.5,167.5C 152.502,160.194 158.836,154.528 166.5,150.5 Z"})))}function qe(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 32 33",fill:"#347eff"},n("g",null,n("path",{d:"M31.4132299,15.0731132 L21.5168412,15.0731132 C20.7685687,12.1674923 17.9820968,10.2729999 15.0128625,10.6511277 C12.0436282,11.0292556 9.81802689,13.5620285 9.81802689,16.5629409 C9.81802689,19.5638532 12.0436282,22.0966262 15.0128625,22.474754 C17.9820968,22.8528818 20.7685687,20.9583894 21.5168412,18.0527685 L28.3819036,18.0527685 C27.7401286,23.6109911 23.559668,28.1006161 18.0730494,29.1240101 C12.5864307,30.1474041 7.07526456,27.4655142 4.48272671,22.5105732 C1.89018885,17.5556323 2.82186608,11.4850571 6.78020672,7.5407695 C10.7385474,3.5964819 16.798929,2.69982177 21.7248734,5.32964028 C20.9283685,7.55588796 21.8580336,10.0328622 23.9207791,11.1803513 C25.9835245,12.3278405 28.5717136,11.8078209 30.0341839,9.95204462 C31.4966542,8.09626831 31.4025961,5.45140372 29.8120149,3.70476992 C28.2214338,1.95813612 25.6028777,1.62425074 23.626882,2.91611947 C17.4530059,-0.657685124 9.65473085,0.371648118 4.61376657,5.42575546 C-0.427197707,10.4798628 -1.45389595,18.2985118 2.11055502,24.488545 C5.67500598,30.6785781 12.9418168,33.696522 19.8278979,31.8466485 C26.713979,29.9967749 31.5022986,23.7403466 31.5023865,16.5927374 C31.5023865,15.9968064 31.4726676,15.4902649 31.4132299,15.0731132 Z M15.7513775,19.5425962 C14.1100488,19.5425962 12.779489,18.2085591 12.779489,16.5629409 C12.779489,14.9173227 14.1100488,13.5832855 15.7513775,13.5832855 C17.3927062,13.5832855 18.723266,14.9173227 18.723266,16.5629409 C18.723266,18.2085591 17.3927062,19.5425962 15.7513775,19.5425962 Z M26.2421439,5.18065751 C26.9633539,5.18065751 27.6135489,5.61623934 27.8895441,6.28429187 C28.1655392,6.95234441 28.0129819,7.72130613 27.5030094,8.2326114 C26.9930369,8.74391667 26.2260796,8.89687267 25.5597684,8.62015625 C24.8934572,8.34343983 24.4590108,7.69154556 24.4590108,6.96845071 C24.4590108,5.98107979 25.2573467,5.18065751 26.2421439,5.18065751 Z"})))}function We(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"70 1 28 1",fill:"none"},n("g",{"clip-path":"url(#clip0_23_2)"},n("path",{d:"M83.9885 8.61757C82.4077 8.61757 78.5295 7.4943 78.5295 7.4943C78.3607 7.44546 78.0868 7.35628 77.9212 7.29683L71.1872 4.86661C71.1479 4.8528 71.1118 4.83051 71.0811 4.80184C71.0503 4.77318 71.0248 4.7392 71.0078 4.70204C70.9897 4.66382 70.9802 4.62348 70.9791 4.58101C70.9781 4.5396 70.9844 4.4982 70.9993 4.45891L72.6003 0.207886C72.63 0.128259 72.6905 0.0645573 72.768 0.0295213C72.8455 -0.0055146 72.9336 -0.00976138 73.0132 0.0189044L79.9723 2.54362C80.1379 2.60413 80.4118 2.69331 80.5817 2.74215C80.5817 2.74215 83.0086 3.4503 83.9906 3.4503C84.9726 3.4503 87.3995 2.74215 87.3995 2.74215C87.5683 2.69331 87.8422 2.60413 88.0079 2.54362L94.9648 0.0189044C95.0444 -0.00976138 95.1336 -0.0055146 95.21 0.0295213C95.2875 0.0645573 95.348 0.129321 95.3778 0.207886L96.9787 4.45891C96.9936 4.4982 97 4.5396 96.9989 4.58101C96.9978 4.62242 96.9872 4.66382 96.9702 4.70204C96.9522 4.74026 96.9278 4.77424 96.897 4.80184C96.8662 4.83051 96.8301 4.85174 96.7908 4.86661L90.0568 7.29683C89.8912 7.35628 89.6173 7.44546 89.4485 7.49536C89.4485 7.49536 85.634 8.61651 83.9895 8.61651L83.9885 8.61757Z",fill:"#FFD832"})))}function kt(){let t=H.runtime.getManifest();return n("footer",null,n("a",{href:y.github.release.url,target:"_blank"},t.version_name??t.version),n("a",{href:y.www.url,target:"_blank"},"\xA9 2022 - ",new Date().getUTCFullYear()," NopeCHA"))}function T({title:t,leftAction:e,rightAction:o}){return n("nav",null,n("div",{class:e?"center":"invisible"},e),n("h1",null,t),n("div",{class:o?"center":"invisible"},o))}function At({goal:t,onGoal:e}){let[o,r]=b(Fe(t));return k(()=>{let s=setInterval(()=>{r(Fe(t))},1e3);return()=>clearInterval(s)},[t]),k(()=>{o==="00:00:00"&&e?.()},[o]),n("span",{class:"mono",title:"Time remaining"},o)}function Fe(t){let e=Math.max(0,t-new Date().getTime()/1e3)^0,o=e/3600^0;e%=3600;let r=e/60^0;e%=60;let s=e^0,i=Intl.NumberFormat(void 0,{minimumIntegerDigits:2});return[o,r,s].map(i.format).join(":")}var j={icon:Me,name:"Auto-Open",description:"Automatically opens CAPTCHA challenges.",id:"auto_open",type:0},z={icon:Te,name:"Auto-Solve",description:"Automatically solves CAPTCHA challenges.",id:"auto_solve",type:0},E={icon:Pe,name:"Delay Solving",description:"Adds a delay to avoid detection.",id:"solve_delay",type:0},V={icon:He,name:"Delay Timer",description:"Milliseconds to delay solving.",placeholder:"Enter delay",id:"solve_delay_time",type:1},q=[{icon:Ee,name:"reCAPTCHA",id:"recaptcha",href:y.www.demo.recaptcha.url,options:[j,z,E,V]},{icon:Ve,name:"FunCAPTCHA",id:"funcaptcha",href:y.www.demo.funcaptcha.url,options:[j,z,E,V]},{icon:Re,name:"AWS CAPTCHA",id:"awscaptcha",href:y.www.demo.awscaptcha.url,options:[j,z,E,V]},{icon:Oe,name:"Text CAPTCHA",id:"textcaptcha",href:y.www.demo.textcaptcha.url,options:[z,E,V,{icon:xt,name:"Image Element",description:"CSS selector for the captcha image.",placeholder:"Enter CSS",id:"image_selector",type:2},{icon:xt,name:"Input Element",description:"CSS selector for the captcha input.",placeholder:"Enter CSS",id:"input_selector",type:2}]},{icon:Ne,name:"Cloudflare Turnstile",id:"turnstile",href:y.www.demo.turnstile.url,options:[z,E,V]},{icon:Ue,name:"Human (PerimeterX)",id:"perimeterx",href:y.www.demo.perimeterx.url,options:[z,E,V]},{icon:qe,name:"GeeTest",id:"geetest",href:y.www.demo.geetest.url,options:[j,z,E,V]},{icon:We,name:"Lemin CAPTCHA (beta)",id:"lemincaptcha",href:y.www.demo.lemincaptcha.url,options:[j,z,E,V]}];function G(t,e){if("field"in t)return e[t.field];if("value"in t)return t.value;if("condition"in t){let s=G(t.condition,e);return t.type==="NOT"?!s:t.type==="PLUS"?+s:-s}let o=G(t.left,e);if(t.type==="AND"&&!o)return o;if(t.type==="OR"&&o)return o;let r=G(t.right,e);switch(t.type){case"EQ":return o===r;case"NEQ":return o!==r;case"LT":return o<r;case"LE":return o<=r;case"GT":return o>r;case"GE":return o>=r;case"AND":return o&&r;case"OR":return o||r;case"ADD":return o+r;case"SUB":return o-r;case"MULT":return o*r;case"DIV":return o/r;case"MOD":return o%r}}var pt=[];try{let t=localStorage.getItem("dismissed");t&&pt.push(...JSON.parse(t))}catch{}function pn({text:t,id:e,href:o,urgent:r}){let[s,i]=b(pt.includes(e));return e&&e.startsWith("!")&&document.documentElement?.remove(),s&&e?null:n("div",{class:`banner${r?" urgent":""}`},n("div",null),o?n("a",{target:"_blank",href:o},t):n("span",null,t),e?n("button",{onClick:()=>{i(!0),pt.push(e),localStorage.setItem("dismissed",JSON.stringify(pt))},title:"Dismiss"},n(ze,null)):n("div",null))}function W({status:t,location:e}){let[o,r]=b();if(k(()=>{if(me){let u=localStorage.getItem("announcements");u&&r(JSON.parse(u));let d=localStorage.getItem("announcements:last-fetched");if(d&&+d>new Date().getTime()-36e5)return}fetch(`${y.www.annoucement.url}`).then(u=>u.json()).then(u=>{r(u),localStorage.setItem("announcements",JSON.stringify(u)),localStorage.setItem("announcements:last-fetched",""+new Date().getTime())})},[]),!o)return;let s=L(),i=H.runtime.getManifest().version.split(".").map(u=>+u);for(;i.length<4;)i.push(0);let c={bucket:mn(),time:new Date().getTime(),version:i.reverse().reduce((u,d,a)=>u|(d?d<<8*a:0),0),status:t&&!("error"in t),"flag.automation":!1,"flag.debug":!1,...t?Ze(t,"status."):[],...Ze(s,"settings.")},l=o.filter(u=>u.location===e).filter(u=>G(u.condition,c));return n(x,null,l.map(u=>n(pn,{...u.banner})))}function Ze(t,e){return Object.fromEntries(Object.entries(t).map(([o,r])=>[e+o,r]))}function mn(){let t=localStorage.getItem("bucket");if(t!==null)return+t;let e=Math.random();return localStorage.setItem("bucket",""+e),e}function Lt(t){let[e,o]=b(L().enabled);return n(x,null,n(T,{title:"NopeCHA",leftAction:n("button",{onClick:()=>t.setState([3,""]),class:"center"},n(ye,null)),rightAction:n("button",{class:"power","data-enabled":e,onClick:()=>{o(!e),v("settings::update",[{enabled:!e}])}},n($e,null))}),n("main",null,n(W,{status:t.status,location:"main"}),n(gn,{...t}),n(yn,{setState:t.setState})),n(kt,null))}function gn({status:t,refreshing:e,refresh:o}){return n("div",{class:"status"},n(Cn,{status:t,refreshing:e,refresh:o}),"error"in t?n("div",{class:"warning center"},t.error===12?n(x,null,n("p",null,"Your IP is ineligible for free credits."),n("p",null,n("a",{href:y.www.pricing.url,target:"_blank"},"Purchase a key")," ","to use with VPN/proxy.")):t.error===17?n(x,null,n("p",null,"You are using an outdated extension version."),n("a",{href:y.github.release.url,target:"_blank"},"Download newest release")):t.message??"Unknown error, contact support."):n(vn,{status:t,refresh:()=>!e&&o()}))}var fn=["Enterprise","Admin"],_n=["Free","GitHub","Discord"];function vn({status:t,refresh:e}){let o=mt(t),r=typeof t.duration>"u"&&typeof t.lastreset>"u",s=je(t),i=hn(t),c=s<=Math.max(i/100,10),l=s<=i/2,u="";return r||o?u="Refills":t.duration<0?u="Expires in":u="Refills in",k(()=>{let d=document.querySelector("#prog-credit");if(d){let m=i!==0?Math.min(Math.floor(100*s/i),100):0;(o||r)&&(m=0),d.dataset.per=`${m}%`,d.style.width=`${m}%`}let a=document.querySelector("#prog-timeleft");if(a&&typeof t.lastreset<"u"&&typeof t.duration<"u"){let m=Math.min(Math.floor(100*(1-t.ttl/Math.abs(t.duration))),100);t.duration<0&&(m=100-m),(o||r)&&(m=0),a.dataset.per=`${m}%`,a.style.width=`${m}%`}},[t]),n(x,null,n("div",null,n("span",null,"Credits"),n("span",null)),n("div",{class:"border-botton"},n("span",{class:r||o||c?"value color-danger":l?"value color-warning":"value",title:"Credits remaining"},wn(t)),n("div",{class:"prog-main"},n("div",{class:"prog-bar"},n("div",{id:"prog-credit",class:"prog-per","data-per":"0%"})))),n("div",null,n("span",null,u),n("span",null)),n("div",null,n("span",{class:r||o?"value color-danger":"value"},r||o?"Unavailable":n(At,{goal:t.ttl+Date.now()/1e3,onGoal:()=>setTimeout(e,1500)})),n("div",{class:"prog-main"},n("div",{class:"prog-bar"},n("div",{id:"prog-timeleft",class:"prog-per","data-per":"0%"})))))}function mt(t){return!("status"in t&&typeof t.status<"u"&&t.status==="Active")}function je(t){let e=typeof t.credit<"u";return mt(t)?0:e?t.credit:0}function hn(t){let e=typeof t.quota<"u";return mt(t)?0:e?t.quota:0}function wn(t){return`${je(t).toLocaleString()}`}function bn(t){return"status"in t&&typeof t.status<"u"?t.status:""}function Cn({status:t,refreshing:e,refresh:o}){let[r,s]=b(!1),[i,c]=b(""),l=mt(t);return k(()=>{r&&c(L().key)},[r]),n(x,null,n("div",null,n("span",{title:"Plan name",class:"plan"in t?"":"color-danger"},"plan"in t?`${t.plan} Plan`:"Unavailable"),r?n("div",{class:"key-input-wrapper"},n("input",{class:"key-input",type:"text",value:i,autoComplete:"off",spellcheck:!1,placeholder:"Enter your key",autofocus:!0,onInput:u=>{let d=u.currentTarget.value;c(d),d.length>i.length+1&&v("settings::update",[{key:d}]).then(o)},onChange:u=>c(u.currentTarget.value),onKeyPress:u=>{u.key==="Enter"&&(u.preventDefault(),s(!1),v("settings::update",[{key:u.currentTarget.value}]).then(o))},onBlur:u=>{s(!1),v("settings::update",[{key:u.currentTarget.value}]).then(o)}})):n("span",null,n("button",{class:"key-icon font-normal color-brand",title:"Click to edit",onClick:()=>{s(!0)},disabled:e,onMouseUp:()=>{setTimeout(()=>{document.querySelector(".key-input")?.select()},10)}},!("key"in t)||"key"in t&&t.key===""?"Enter your key":"Change key",n(xe,null)))),n("div",{class:"border-botton"},n("span",{class:l?"value color-danger":"value",title:"Plan status"},bn(t)),n("a",{href:y.www.manage.url,target:"_blank",class:"key-icon font-normal color-brand",title:"Manage or upgrade plan"},!("plan"in t)||_n.includes(t.plan)?"Create a key":fn.includes(t.plan)?"Manage keys":"Upgrade",n("svg",{class:"link-icon",fill:"currentColor",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16"},n("path",{d:"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"})))))}function yn({setState:t}){let[e,o]=b({}),r=i=>{let c=!e[i];o({...e,[i]:c}),v("settings::update",[{[i]:c}])},s=i=>{let c=!((!(`${i}_auto_open`in e)||e[`${i}_auto_open`])&&(!(`${i}_auto_solve`in e)||e[`${i}_auto_solve`]));`${i}_auto_open`in e&&e[`${i}_auto_open`]!==c&&r(`${i}_auto_open`),`${i}_auto_solve`in e&&e[`${i}_auto_solve`]!==c&&r(`${i}_auto_solve`)};return k(()=>{let i=L();o({...i})}),n("ol",{class:"captchas"},q.map(i=>n("li",{key:i.name},n("button",{onClick:()=>{t([5,i.id])},class:"icon"},n("span",null,i.icon?n(i.icon,null):n("div",{class:"no-icon"}),i.name),`${i.id}_auto_open`in e||`${i.id}_auto_solve`in e?n("span",{class:"inline-switch"},n("button",{class:"switch small",checked:(!(`${i.id}_auto_open`in e)||e[`${i.id}_auto_open`])&&(!(`${i.id}_auto_solve`in e)||e[`${i.id}_auto_solve`]),onClick:c=>{c.stopPropagation(),s(i.id)}})):"",n(U,null)))))}var xn=[{name:"Documentation and Guides",href:y.doc.url,icon:Se},{name:"Homepage",href:y.www.url,icon:ke},{name:"Discord",href:y.discord.url,icon:Le},{name:"Github",href:y.github.url,icon:Ae}];function Mt({setState:t}){return n(x,null,n(T,{title:"Settings",leftAction:n("button",{onClick:()=>t([2,""]),class:"center"},n(B,null))}),n("main",null,n(W,{location:"settings"}),n("ol",null,n("li",null,n("button",{onClick:()=>t([4,""]),class:"icon"},n("span",null,n(Be,null),"Disabled Hosts"),n(U,null))),n("li",null,n("button",{onClick:()=>{let e=L(),o=Object.entries(e).map(([r,s])=>r==="key"?s:r==="version"?"":`${r}=${s}`).filter(r=>r).join("|");open(`${y.www.setup.url}#${o}`)},class:"icon"},n("span",null,n(dt,null),"Export Settings"),n(U,null))),n("li",null,n("button",{onClick:()=>t([6,""]),class:"icon"},n("span",null,n(dt,null),"Debug"),n(U,null))),n("li",null,n("button",{onClick:()=>t([7,""]),class:"icon"},n("span",null,n(dt,null),"Logs"),n(U,null)))),n("hr",null),n("h2",null,"Links"),n("ol",null,xn.map(e=>n("li",{key:e.name},n("a",{href:e.href,target:"_blank",class:"icon"},n("span",null,n(e.icon,null),e.name),n(De,null)))))))}function Sn(){return new Promise(t=>{H.tabs.query({active:!0,currentWindow:!0},([e])=>t(e))})}async function gt(){let t=await Sn();return t&&t.url&&new URL(t.url).href}function Tt({setState:t}){let[e,o]=b(""),[r,s]=b(L().disabled_hosts);return k(()=>{gt().then(i=>i&&o(new URL(i).hostname))},[]),n(x,null,n(T,{title:"Disabled Hosts",leftAction:n("button",{onClick:()=>t([3,""]),class:"center"},n(B,null))}),n("main",{id:"hosts"},n("h3",null,"Current Page"),n("ol",null,n("li",null,e===""?n("button",{class:"icon cursor-normal"},"cannot disable on this page"):n("button",{class:"icon",title:r.includes(e)?"Remove disabled host":"Disable NopeCHA on this site",onClick:()=>{let i=r.includes(e)?r.filter(c=>c!==e):[...r,e];v("settings::update",[{disabled_hosts:i}]),s(i)}},e,r.includes(e)?n(St,null):n(Ie,null)))),n("h3",null,"Disabled Hosts"),n("ol",null,r.length===0?n("li",null,n("button",{class:"icon cursor-normal"},"no disabled hosts")):r.map(i=>n("li",{key:i},n("button",{class:"icon",title:"Remove disabled host",onClick:()=>{let c=r.filter(l=>l!==i);v("settings::update",[{disabled_hosts:c}]),s(c)}},i,n(St,null)))))))}function Pt({setState:t,captcha:e}){return n(x,null,n(T,{title:e.name,leftAction:n("button",{onClick:()=>t([2,""]),class:"center"},n(B,null)),rightAction:n("a",{href:e.href,target:"_blank"},e.icon?n(e.icon,null):n("div",{class:"no-icon"}))}),n("main",null,n(W,{location:`captcha:${e.id}`}),e.disclaimer&&n("div",{class:"warning center"},e.disclaimer),n("div",{id:"captcha"},e.options.map(o=>n(Je,{captcha:e,option:o})))))}var kn={[0]:function({captcha:e,option:o}){let r=`${e.id}_${o.id}`,[s,i]=b(L()[r]);return n("button",{class:"switch",checked:s,onClick:()=>{i(!s),v("settings::update",[{[r]:!s}])}})},[2]:function({captcha:e,option:o}){let r=`${e.id}_${o.id}`;return n("button",{type:"button",class:"locate",onClick:async()=>{try{this.disabled=!0,await v("locator::inject",[]),await ct(500),await v("tab::broadcast",[{action:"start_locate",locate:r}])}finally{this.disabled=!1}}},"Locate on page")}};function Ge({captcha:t,option:e,inputType:o}){let r=`${t.id}_${e.id}`,[s,i]=b(L()[r]);return k(()=>{let c=setTimeout(()=>{v("settings::update",[{[r]:s}])},2e3);return()=>clearTimeout(c)},[s]),n("input",{type:o,autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,value:s,onInput:c=>{i(c.currentTarget.value),v("settings::update",[{[r]:c.currentTarget.value}])},onKeyPress:c=>{c.key==="Enter"&&v("settings::update",[{[r]:c.currentTarget.value}])},onChange:c=>{i(c.currentTarget.value),v("settings::update",[{[r]:c.currentTarget.value}])},onBlur:c=>{v("settings::update",[{[r]:c.currentTarget.value}])}})}var An={[1]:function({captcha:e,option:o}){return n(Ge,{captcha:e,option:o,inputType:"number"})},[2]:function({captcha:e,option:o}){return n(Ge,{captcha:e,option:o,inputType:"text"})}};function Je({captcha:t,option:e}){let o=kn[e.type],r=An[e.type];return n("div",null,n("div",{class:"icon"},n("h3",null,n(e.icon,null),e.name),o&&n(o,{captcha:t,option:e})),n("div",null,e.description,r&&n(r,{captcha:t,option:e})))}var Ht=H.runtime.getManifest(),Xe=[{name:"OS",value:navigator.platform},{name:"Target",value:["chromium",3]},{name:"Machine",value:["browser"in window?"firefox":"chromium",Ht.manifest_version]},{name:"Version",value:[Ht.version,Ht.version_name]},{name:"Build flags",value:[!1,!1].filter(t=>t)},{name:"User-Agent",value:navigator.userAgent}];function Bt({setState:t}){let[e,o]=b([]);k(()=>{(async()=>{let s=L(),i=null;try{i=new URL(await gt()).href}catch{}let c=null;i&&(c=await v("tab::getDetectedCaptchas",[]));let l=new Date().getTime(),u=await v("api::fetchStatus",[]),d=new Date().getTime();o([{name:"Subscription key",value:s.key},{name:"Status",value:u},{name:"Status latency",value:`${Math.floor(d-l)}ms`},{name:"Enabled CAPTCHAs",value:q.filter(a=>s[`${a.id}_auto_solve`]).map(a=>a.name)},{name:"Global switch",value:s.enabled},{name:"Page URL",value:i},{name:"Detected CAPTCHAs",value:c}])})()},[]);let r=null;return n(x,null,n(T,{title:"Debug",leftAction:n("button",{onClick:()=>t([3,""]),class:"center"},n(B,null))}),n("div",{id:"debug"},n("button",{onClick:()=>{let s=[...Xe,...e].map(({name:i,value:c})=>`**${i}**: \`${JSON.stringify(c)}\``).join(`
|
|
2
|
+
`);navigator.clipboard.writeText(s),document.querySelector("#copy").classList.add("hidden"),document.querySelector("#copied").classList.remove("hidden"),document.querySelector("#debug button").classList.add("cursor-normal"),clearTimeout(r),r=setTimeout(()=>{document.querySelector("#copy").classList.remove("hidden"),document.querySelector("#copied").classList.add("hidden"),document.querySelector("#debug button").classList.remove("cursor-normal")},1e3)},class:"center"},e.length?n("div",{id:"copy-text"},n("div",{id:"copy"},"Copy to clipboard"),n("div",{id:"copied",class:"hidden"},"Copied!")):n("div",{id:"loading-text"},n("div",{class:"loading"},n("div",null),n("div",null),n("div",null),n("div",null)))),[...Xe,...e].map(({name:s,value:i})=>n("div",{key:s},n("h3",null,s),n("p",null,JSON.stringify(i))))))}function D(t,e){let o=document.createElement("canvas");return o.width=t,o.height=e,o}function R(t){return new Promise((e,o)=>{let r=new Image;r.onload=()=>e(r),r.onerror=s=>o(s),r.src=`data:image/png;base64,${t}`})}function N(t){return t.toDataURL("image/jpeg").replace(/data:image\/[a-z]+;base64,/g,"")}function Ln(t){let e={};return t.options.body&&(e.type=t.options.body.type,e.task=t.options.body.task,e.key=t.options.body.key,e.url=t.options.body.url),{...e}}async function Qe(t,e=100,o=100){let r=await R(t),s=r.width,i=r.height,c=s/i,l=s,u=i;if(l>e&&(l=e,u=Math.floor(l/c)),u>o&&(u=o,l=Math.floor(u*c)),l===s&&u===i)return{imageData:t,width:s,height:i};let d=D(s,i);d.getContext("2d").drawImage(r,0,0);let m=D(l,u);return m.getContext("2d").drawImage(d,0,0,s,i,0,0,l,u),{imageData:N(m),width:l,height:u}}async function Dt(t,e,o){let r=await R(t),i=D(r.width,r.height).getContext("2d");i.drawImage(r,0,0);let c=r.width/o,l=r.height/e,u=[];for(let d=0;d<e;d++)for(let a=0;a<o;a++){let m=D(c,l),g=m.getContext("2d"),p=i.getImageData(a*c,d*l,c,l);g.putImageData(p,0,0),u.push(N(m))}return u}async function It(t,e,o,r){let s=await Promise.all(t.map(async l=>await R(l))),i=D(100*o,100*e),c=i.getContext("2d");for(let l=0;l<s.length;l++){let u=s[l];c.drawImage(u,l%o*100,Math.floor(l/o)*100,100,100),r&&(c.beginPath(),c.strokeStyle="white",c.lineWidth=2,c.rect(l%o*100,Math.floor(l/o)*100,100,100),c.stroke())}return N(i)}async function X(t){let e=await R(t),o=D(e.width,e.height),r=o.getContext("2d");r.drawImage(e,0,0);let s=r.getImageData(0,0,e.width,e.height);for(let l=0;l<s.data.length;l+=4)s.data[l]>0&&(s.data[l+1]=Math.min(s.data[l+1]+100,255));r.putImageData(s,0,0);let i=2,c=2;return r.beginPath(),r.strokeStyle="green",r.lineWidth=i,r.rect(c,c,e.width-(i+c),e.height-(i+c)),r.stroke(),N(o)}async function Mn(t,e,o){let r=await R(t),s=D(r.width,r.height),i=s.getContext("2d");return i.drawImage(r,0,0),i.beginPath(),e=e/100*r.width,o=o/100*r.height,i.arc(e,o,10,0,2*Math.PI),i.fillStyle="red",i.fill(),N(s)}async function Tn(t,e,o,r,s){let i=await R(t),c=D(i.width,i.height),l=c.getContext("2d");return l.drawImage(i,0,0),l.beginPath(),e=e/100*i.width,o=o/100*i.height,r=r/100*i.width,s=s/100*i.height,l.rect(e,o,r,s),l.strokeStyle="red",l.lineWidth=5,l.stroke(),N(c)}function $t({setState:t}){let[e,o]=b([]);async function r(){let i=await v("log::getLogs",[]),c=JSON.parse(i);c.sort((l,u)=>u.postreq.time-l.postreq.time);for(let l of c)if(l.postreq.options.method==="POST"){l.audio=null,l.images=[];let u=l.postreq.options.body.audio_data;u&&(l.audio=`data:audio/wav;base64,${u}`);let d=l.postreq.options.body.image_data;if(d){if(d.length===1){let a=await Qe(d[0],300,300),{imageData:m,width:g,height:p}=a;if(l.answer){if(typeof l.answer=="object"&&"x"in l.answer&&"y"in l.answer&&"w"in l.answer&&"h"in l.answer&&(l.answer.w>0||l.answer.h>0))m=await Tn(m,l.answer.x,l.answer.y,l.answer.w,l.answer.h);else if(typeof l.answer=="object"&&"x"in l.answer&&"y"in l.answer)m=await Mn(m,l.answer.x,l.answer.y);else if(Array.isArray(l.answer)&&"grid"in l.postreq.options.body)if(l.postreq.options.body.grid==="4x4"){let f=await Dt(m,4,4);for(let w=0;w<f.length;w++)l.answer[w]===!0&&(f[w]=await X(f[w]));m=await It(f,4,4,!0)}else if(l.postreq.options.body.grid==="3x3"){let f=await Dt(m,3,3);for(let w=0;w<f.length;w++)l.answer[w]===!0&&(f[w]=await X(f[w]));m=await It(f,3,3,!1)}else l.postreq.options.body.grid==="1x1"&&(m=await X(m));else if(Array.isArray(l.answer)){let f=Math.ceil(g/100),w=Math.ceil(p/100),h=await Dt(m,w,f);for(let C=0;C<h.length;C++)l.answer[C]===!0&&(h[C]=await X(h[C]));m=await It(h,w,f,!1)}}l.images=[[`data:image/png;base64,${m}`,g,p]]}else if(d.length&&d.length<=9){let a=D(300,100*Math.ceil(d.length/3)),m=a.getContext("2d");for(let p=0;p<d.length;p++){let f=await Qe(d[p],100,100),{imageData:w,width:h,height:C}=f;l.answer&&Array.isArray(l.answer)&&l.answer.length===d.length&&l.answer[p]===!0&&(w=await X(w));let M=await R(w);m.drawImage(M,p%3*100,Math.floor(p/3)*100,100,100)}let g=N(a);l.images=[[`data:image/png;base64,${g}`,a.width,a.height]]}}}o(c)}k(()=>{r()},[]);let s=null;return n(x,null,n(T,{title:"Logs",leftAction:n("button",{onClick:()=>t([3,""]),class:"center"},n(B,null))}),n("div",{id:"logs"},n("button",{class:"center",onClick:async()=>{document.querySelector("#loading-text").classList.remove("hidden"),document.querySelector("#refresh-text").classList.add("hidden"),document.querySelector("#logs button").classList.add("cursor-normal"),document.querySelector("#no-logs")?.classList?.add("hidden"),await r(),clearTimeout(s),s=setTimeout(()=>{document.querySelector("#loading-text").classList.add("hidden"),document.querySelector("#refresh-text").classList.remove("hidden"),document.querySelector("#logs button").classList.remove("cursor-normal"),document.querySelector("#no-logs")?.classList?.remove("hidden")},1e3)}},n("div",{id:"refresh-text"},"Refresh"),n("div",{id:"loading-text",class:"hidden"},n("div",{class:"loading"},n("div",null),n("div",null),n("div",null),n("div",null)))),!e.length&&n("h3",{id:"no-logs"},"No logs"),e.map(({id:i,postreq:c,audio:l,images:u,answer:d})=>n("div",{"data-id":i,key:i,class:"log"},n("h3",null,"Submitted ",((Date.now()-c.time)/1e3).toFixed(1),"s ago"),n("p",{class:"mono color-muted"},JSON.stringify(Ln(c),null,2)),l?n("div",{style:"width: 280px; overflow: auto;"},n("audio",{controls:!0,src:l})):"",u?n(x,null,u.map(([a,m,g])=>n("img",{src:a,width:m-20,height:g}))):"",d?n("p",{class:"mono"},JSON.stringify(d)):n("p",{class:"mono"},"solution not yet available")))))}function zt(){let[t,e]=b([0,""]),[o,r]=b(null),[s,i]=b(!0),[c,l]=b(!1),u=async()=>{i(!0);let d=await v("api::fetchStatus",[]);r(d),i(!1)};return k(()=>{if(t[0]===0){Ce();let d=setTimeout(()=>{l(!0)},2e3);return we().then(a=>{a?e([1,""]):l(!0)}),()=>{clearTimeout(d)}}t[0]===1&&v("api::getCachedStatus",[]).then(d=>{d&&(r(d),e([2,""])),u().then(()=>{d||e([2,""])})})},[t]),n("div",{id:"app"},t[0]===0?n(ut,null,c?n("div",{class:"warning center"},n("p",null,"It appears the background service has crashed."),n("a",{href:"chrome://extensions/",target:"_blank"},"Please reload the extension.")):n("span",null,"Loading your settings...")):t[0]===1?n(ut,null,"Connecting to servers..."):t[0]===2?n(Lt,{status:o,setState:e,refreshing:s,refresh:u}):t[0]===3?n(Mt,{setState:e}):t[0]===4?n(Tt,{setState:e}):t[0]===5?n(Pt,{setState:e,captcha:q.find(d=>d.id===t[1])}):t[0]===6?n(Bt,{setState:e}):t[0]===7?n($t,{setState:e}):n("p",null,"How did you get here"))}[...document.body.children].forEach(t=>t.remove());ee(n(zt,{}),document.body);})();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
|
6
|
+
<title>NopeCHA</title>
|
|
7
|
+
<script src="/setup.js" defer async></script>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<p>
|
|
11
|
+
If you can see this, please make sure <code>setup.js</code> is not
|
|
12
|
+
corrupted.
|
|
13
|
+
</p>
|
|
14
|
+
<noscript>
|
|
15
|
+
<h1>Javascript is required for this page.</h1>
|
|
16
|
+
</noscript>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -48,10 +48,11 @@ async function getProductionPlaywrightConstructs({
|
|
|
48
48
|
const isChrome127There = await (0, _fsExtra.exists)(chromium127Path);
|
|
49
49
|
const userAgent = `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/Chrome/136.0.7103.25 Safari/537.36`;
|
|
50
50
|
const userDataDir = await createUserDirWithPreferences();
|
|
51
|
+
const nopechaExtensionPath = (0, _path.join)(__dirname, "./assets/nopecha_extension");
|
|
51
52
|
const context = await playwright.chromium.launchPersistentContext("...", {
|
|
52
53
|
headless: false,
|
|
53
54
|
viewport: null,
|
|
54
|
-
|
|
55
|
+
args: [`--load-extension=${nopechaExtensionPath}`]
|
|
55
56
|
});
|
|
56
57
|
context.once("close", async () => {
|
|
57
58
|
try {
|