var i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),o}const s=["alarms","bookmarks","browserAction","commands","contextMenus","cookies","downloads","events","extension","extensionTypes","history","i18n","idle","notifications","permissions","pageAction","runtime","storage","tabs","webNavigation","webRequest","windows","storage","declarativeNetRequest","declarativeNetRequestWithHostAccess","scripting"];function c(){const e=this;try{chrome&&(e.env="chrome")}catch{}try{browser&&(e.env="firefox")}catch{}s.forEach(function(t){e[t]=null;try{chrome[t]&&(e[t]=chrome[t])}catch{}try{window[t]&&(e[t]=window[t])}catch{}try{browser[t]&&(e[t]=browser[t])}catch{}try{e.api=browser.extension[t]}catch{}});try{browser&&browser.runtime&&(this.runtime=browser.runtime)}catch{}try{browser&&browser.browserAction&&(this.browserAction=browser.browserAction)}catch{}}const u=new c;export{f as a,i as c,u as e,a as g};
