Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/Program Files/Avast Software/Avast/gui_resources/default_av/ |
//{"name":"plugins","version":"1.2.159","created":"2021-03-09T11:52:51.315Z"} import{debugMode as e,moduleManager as o,windowApi as n}from"./napi.js";import t from"./napiAdapter.js";function r(){const o=["log","info","debug","warn","error"],n={};let t=!1;function r(){const e="true"!==localStorage.getItem("developerLogs");e!==t&&(e?(o.forEach((e=>{n[e]=window.console[e],window.console[e]=(...o)=>{let t;o._consoleType=e;try{t=JSON.stringify(o)}catch(r){n.warn("fileLogging: failed to stringify args",o),t=o}n[e].apply(console,[t])}})),t=!0,console.log("fileLogging enabled")):(o.forEach((e=>{window.console[e]=n[e]})),t=!1,console.log("fileLogging disabled")))}o.forEach((e=>{n[e]=window.console[e]})),e.on("enabledChanged",r),r()}const i=["napi","napiExtensions","i18n","libs"];function l(){e.on("enabledChanged",c),window.NAPI=t,c()}function c(){if(!e.isEnabled())return delete window.nitro,void console.log("The global nitro object is deleted.");console.log("Setting the global nitro object..");const n=i,t=n.map((e=>o.importModule(e,"debug",{silent:!0})));return Promise.allSettled(t).then((e=>{e.forEach(((e,o)=>{const t=n[o];window.nitro=window.nitro||{},"fulfilled"===e.status&&(window.nitro[t]=e.value)})),console.groupCollapsed("%c NITRO DEBUG API (window.nitro) %c","background: #f90; color: #000","background: #00689c; color: #FFF");for(const o in window.nitro)console.log(o);console.groupEnd()}))}function s(e){const o={};for(const[n,t]of e)o[n]=t;return o}function d(){Object.fromEntries=Object.fromEntries||s}function a(e){const o=e.map((e=>e instanceof Promise||"function"==typeof e.then&&"function"==typeof e.catch?e.then((e=>({status:"fulfilled",value:e}))).catch((e=>({status:"rejected",reason:e}))):{status:"fulfilled",value:e}));return Promise.all(o)}function u(){Promise.allSettled=Promise.allSettled||a}let f=!1;function m(){return document.addEventListener("keydown",g,!1),function(){document.removeEventListener("mousedown",w,!1),document.removeEventListener("keydown",g,!1),document.querySelector("body").classList.remove("tabbed"),f=!1}}function g(e){"Tab"===e.code&&(f=!0,document.querySelector("body").classList.add("tabbed"),document.removeEventListener("keydown",g,!1),document.addEventListener("mousedown",w,!1))}function w(){f&&(document.querySelector("body").classList.remove("tabbed"),document.removeEventListener("mousedown",w,!1),document.addEventListener("keydown",g,!1))}function b(e){const o=e.querySelectorAll("a");function t(e){return e.preventDefault(),n.browse(e.target.getAttribute("href")),!1}return o.forEach((e=>{e.addEventListener("click",t,!1)})),{destroy(){o.forEach((e=>{e.removeEventListener("click",t)}))}}}export{b as externalLinks,r as fileLogging,l as nitroObjectSetup,d as objectFromEntriesPolyfill,u as promiseAllSettledPolyfill,m as tabNavigation};const p={name:"plugins",version:"1.2.159",created:"2021-03-09T11:52:51.315Z"};export{p as metadata};