var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,n,o,r,i){var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof u[r]&&u[r],s=a.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(e,n){if(!s[e]){if(!t[e]){var o="function"==typeof u[r]&&u[r];if(!n&&o)return o(e,!0);if(a)return a(e,!0);if(l&&"string"==typeof e)return l(e);var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}d.resolve=function(n){var o=t[e][1][n];return null!=o?o:n},d.cache={};var f=s[e]=new c.Module(e);t[e][0].call(f.exports,d,f,f.exports,this)}return s[e].exports;function d(e){var t=d.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=t,c.cache=s,c.parent=a,c.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]},Object.defineProperty(c,"root",{get:function(){return u[r]}}),u[r]=c;for(var f=0;f<n.length;f++)c(n[f]);if(o){var d=c(o);"object"==typeof exports&&"undefined"!=typeof module?module.exports=d:"function"==typeof e&&e.amd?e(function(){return d}):i&&(this[i]=d)}}({aD7VF:[function(e,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(n),o.export(n,"config",()=>r);let r={matches:["https://au.openorder.bot/*","https://openorder.bot/*","https://*.openorder.bot/*"],run_at:"document_idle"},i="authBridge:lastRunAt";"undefined"!=typeof chrome&&chrome?.runtime?.sendMessage&&(async()=>{try{try{let e=await chrome.storage.session.get(i),t=e?.[i];if("number"==typeof t&&Date.now()-t<3e5)return}catch{}let e=await fetch("/api/extension/settings",{credentials:"include"}),t=e.ok,n=null,o=null;if(t)try{let t=await e.json();n="string"==typeof t?.accessToken?t.accessToken:null,o="number"==typeof t?.expiresAt?t.expiresAt:null}catch{}try{await chrome.runtime.sendMessage({action:"recordAuthStatus",authenticated:t,accessToken:n,expiresAt:o}),console.log("[order-bot auth-bridge] reported authenticated =",t,n?"(with token)":"(no token)");try{await chrome.storage.session.set({[i]:Date.now()})}catch{}}catch(e){console.warn("[order-bot auth-bridge] sendMessage failed:",e)}}catch(e){console.warn("[order-bot auth-bridge] fetch failed:",e)}})()},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cHUbl:[function(e,t,n){n.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},n.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.exportAll=function(e,t){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t},n.export=function(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:n})}},{}]},["aD7VF"],"aD7VF","parcelRequireeee3"),globalThis.define=t;