(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{5839:function(e,t,n){"use strict";n.r(t);var a=n(2),i=n.n(a),o=n(5),l=n(9),r=n(598),u=n(5840),c=n(5737),s=n(1912),d=n(2435),f=n(2429),m=n(5842),p=n(5738);window.BroadcastChannel=window.BroadcastChannel||r.default,window.onpageshow=function(e){e.persisted&&window.location.reload()};let w=!1;window.requestIdleCallback=window.requestIdleCallback||function(e){return setTimeout((function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)};const g=document.getElementById("app-root");function h(e){!function(){let e=document.getElementsByClassName("pm-loader")[0];e&&e.classList.add("is-hidden")}(),e?Object(o.render)(i.a.createElement(d.default,{showError:!0}),g):Object(o.render)(i.a.createElement(d.default,null,i.a.createElement(f.Theme,null,i.a.createElement(l.ToastProvider,null,i.a.createElement(p.default,null)))),g,(()=>{let e=Object(c.getWindowLoadTime)();s.default.addEvent("app_performance_metric","requester_window_loaded",null,null,{load_time:e})}))}t.default=function(e){w||m.default.init((()=>{u.default.init((()=>{w=!0,h(),e&&e()}))}))}},5840:function(e,t,n){"use strict";n.r(t),function(e){var a=n(607),i=n.n(a),o=(n(654),n(878),n(1046),n(1633)),l=n(5490),r=(n(5491),n(5495),n(5498),n(5500),n(5540)),u=n(5550),c=n(5551),s=n(5616),d=n(5617),f=n(5625),m=(n(5626),n(5634)),p=n(3161),w=n.n(p),g=n(1701),h=n(5637),b=n(1971),k=(n(1726),n(5841)),C=n(5655),E=n(5656),O=n(5722),v=n(5723);n(1713),n(2258),n(5724);const _={process:"requester",ui:!0};window.pm=window.pm||{},window.process={},t.default={init:t=>{e.assign(window.pm,{windowConfig:_});const n=[E.default,h.initializeNavigationForDomains,u.bootWindowConfig,r.default,o.default,O.cleanupCookies,O.initializeCommunicationForCookies,l.default,d.default,f.default,C.default,c.default,v.default];i()(n,(n=>{Object(s.default)(n);let a=w.a.Url.parse(location.href).query;if(e.find(a,{key:"access_token"})){console.log("Found access token in URL, logging user in...",a);let t=e.mapValues(e.keyBy(a,"key"),"value"),n={email:t.email,id:t.user_id,name:t.name,username:t.username,auth:{access_token:t.access_token}};pm.eventBus.channel("auth-handler-events").publish(Object(g.createEvent)("authenticated","authentication",{userData:n,hasAccounts:!1}))}return n&&pm.logger.error("Error in requester boot sequence",n),Object(m.default)(),b.default.deleteOfflineWorkspace().catch((e=>{pm.logger.warn("Requester~init: Error while deleting default offline workspace",e)})).then((()=>{Object(k.setupSocketStatusReaction)(),t&&t(n)}))}))}}}.call(this,n(599))},5841:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"setupSocketStatusReaction",(function(){return u}));var a=n(1696),i=n(1702),o=n(2309),l=n(2308);const r="userOffline";function u(){Object(a.reaction)((()=>Object(i.getStore)("SyncStatusStore").isSocketConnected),e.debounce((function(e){e?o.default.dismiss(r):o.default.trigger({id:r,message:"You seem to be offline. Data in this workspace might not be up to date.",meta:{targets:[l.WORKSPACE_PRIVATE,l.WORKSPACE_PERSONAL,l.WORKSPACE_TEAM,l.WORKSPACE_PUBLIC]}})}),1e3,{leading:!1,trailing:!0}))}}.call(this,n(599))},5842:function(e,t,n){"use strict";n.r(t),function(e){var a=n(607),i=n.n(a),o=n(654),l=n(1046),r=n(5491),u=n(5495),c=n(5500),s=n(5616),d=n(5626),f=n(5729),m=n(3150),p=n(5731),w=n(1912),g=n(5634),h=n(5708),b=n(2343),k=n(5720),C=n(5732),E=n(5843);const O={process:"shared",ui:!1};window.pm=window.pm||{},pm.init=t=>{h.default.markPoint("app_exec:start");const n="browser"===window.SDK_PLATFORM?[o.Config.init(O),E.default,t=>{let n=e.get(pm,"preloadCache.initialWorkspace");!e.isEmpty(n)&&Object(b.handleWorkspaceContextMismatch)(n),t()},u.default,c.default,d.initializeConfigurations,l.default,r.default,f.default,m.cleanupRunner,p.default,k.default,C.default]:[];i()(n,(e=>{Object(s.default)(e),e&&(pm.bulkAnalytics&&w.default.addEventV2AndPublish({category:"app_boot_failure",action:e.name,label:e.message},{noActiveWorkspace:!0}),pm.logger.error("Error in the app boot sequence",e)),Object(g.default)(),t&&t(e)}))},t.default=pm}.call(this,n(599))},5843:function(e,t,n){"use strict";n.r(t),t.default=function(e){"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then((function(e){for(let t of e)t.unregister()})),e&&"function"==typeof e&&e()}}}]);