!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.20.10"}}catch(e){}}(),System.register(["./comlink-legacy-DnRkZjgj.js"],(function(e,t){var n,i,a,o,r,s;async function d(){if(s.isRegistered&&s.tabId)return s.tabId;console.log("[Coordinator] Registering tab...");const e=new MessageChannel;o.postMessage({type:"connect",port:e.port1},[e.port1]);const t=await r.registerTab(n(e.port2,[e.port2]));return s.tabId=t,s.isRegistered=!0,console.log(`[Coordinator] Registered as tab: ${t}`),window.addEventListener("beforeunload",c),window.addEventListener("pagehide",c),window.addEventListener("pageshow",(e=>{e.persisted&&!s.isRegistered&&(console.log("[Coordinator] Page restored from bfcache, re-registering..."),d().catch(console.error))})),document.addEventListener("visibilitychange",(()=>{"visible"!==document.visibilityState||s.isRegistered||(console.log("[Coordinator] Page became visible, re-registering..."),d().catch(console.error))})),t}function c(){s.tabId&&(r.unregisterTab(s.tabId).catch(console.error),s.isRegistered=!1,s.tabId=null)}async function l(){await d()}return e({exec:async function(e){await l(),await r.exec(e)},getStoredVersion:async function(){return await l(),await r.getStoredVersion()},initialize:async function({version:e}){await l(),await r.initialize({version:e})},isInitialized:async function(){return await r.isInitialized()},loadNodeTypes:async function(e){await l(),await r.loadNodeTypes(e)},query:async function(e){return await l(),await r.query(e)},queryWithParams:async function(e,t){return await l(),await r.queryWithParams(e,t)},storeVersion:async function(e){await l(),await r.storeVersion(e)}}),{setters:[function(e){n=e.n,i=e.r}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(n=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="55b628d8-d00f-4f36-87c6-33ea12f9fc34",e._sentryDebugIdIdentifier="sentry-dbid-55b628d8-d00f-4f36-87c6-33ea12f9fc34")}catch(e){}var e,n;(a=new SharedWorker(new URL("/%7B%7BBASE_PATH%7D%7D/assets/worker-BbnDp7F0.js",""+t.meta.url),{type:"module",name:"n8n-coordinator"})).port.start(),o=new Worker(new URL("/%7B%7BBASE_PATH%7D%7D/assets/worker-WHIPMjr_.js",""+t.meta.url),{type:"module",name:"n8n-data"}),r=i(a.port),s={tabId:null,isRegistered:!1}}}}));
//# sourceMappingURL=workers-legacy-X6IDxCox.js.map