window.OmegaPopup={},$script(["js/index.js","js/profiles.js"],"om-main"),$script(["js/i18n.js"]),$script("../js/omega_target_popup.js","om-target",(function(){function init(){OmegaTargetPopup.getActivePageInfo((function(err,info){window.OmegaPopup.pageInfo=info,$script.done("om-page-info")})),OmegaTargetPopup.getState(["availableProfiles","currentProfileName","validResultProfiles","isSystemProfile","currentProfileCanAddRule","proxyNotControllable","externalProfile","showExternalProfile","customCss"],(function(err,state){window.OmegaPopup.state=state,$script.done("om-state")}))}$script("js/style.js","om-style");const permissionValue={origins:["<all_urls>"]};globalThis.browser&&browser.proxy&&browser.proxy.onRequest?Promise.all([browser.permissions.contains(permissionValue),browser.extension.isAllowedIncognitoAccess()]).then((([sitePermissions,isAllowedIncognitoAccess])=>{!sitePermissions||chrome.contextMenus&&!isAllowedIncognitoAccess?location.href="grant_permissions.html":init()})):init()}));