module.exports=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=2)}([function(e,t){e.exports=require("path")},function(e,t){e.exports=require("electron")},function(e,t,o){e.exports=o(3)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(4),("browser"===process.type?global.xlDesktopApplicationSolution:window.xlDesktopApplicationSolution).GetPerformanceMonitorReport().initPerformanceMonitor("",{mainLoopHangCheckEnabled:!0,cpuUsageCheckEnabled:!0,memoryUsageCheckEnabled:!0})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=o(5);"browser"===process.type?global.xlDesktopApplicationSolution=r.xlDesktopApplicationSolution:(window.xlDesktopApplicationSolution=r.xlDesktopApplicationSolution,process.once("loaded",()=>{window.xlDesktopApplicationSolution=r.xlDesktopApplicationSolution}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=o(6);var n;!function(e){e.XDAS=class{constructor(){this.performanceMonitorReport=null}GetPerformanceMonitorReport(){return null===this.performanceMonitorReport&&(this.performanceMonitorReport=new r.PerformanceMonitorReport),this.performanceMonitorReport}}}(n||(n={})),t.xlDesktopApplicationSolution=new n.XDAS},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=o(0),n=o(7),i=o(1),l=o(8),c="xdas_profile_stat";let p=o(9).default(r.join(l.GlobalDataNS.getRootDir(),"../bin/ThunderHelper.node")),s=p.performanceMonitorReporter;t.PerformanceMonitorReport=class{trackColdStartUpEvent(e){let t=p.iSColdStartUp()?1:0,o=n.release(),r=s.getProcessUptime();return function(e,t="",o="",r=0,n=0,i=0,l=0,c="",s=0){let u=0;do{if(void 0===e){u=1;break}u=p.trackEvent(e,t,o,r,n,i,l,c,s)}while(0);return u}(c,"cold_start_up","",0,0,0,0,`key=${e},cold_start_up=${t},os_version=${o},cost_time=${r}`)}initPerformanceMonitor(e,t){s.init("browser"===process.type,process.pid,function(e){let t="";if(0===e.length&&"renderer"===process.type){let e=r.normalize(decodeURIComponent(i.remote.getCurrentWebContents().getURL())),o=e.indexOf(process.resourcesPath);o=o>-1?o+process.resourcesPath.length+1:o;let n=e.length-1,l=e.indexOf("?"),c=e.indexOf("#");n=l>-1?Math.min(l-1,n):n,n=c>-1?Math.min(c-1,n):n,o>-1&&n>=o&&(t=e.substr(o,n-o+1))}return 0===t.length&&(t=0!==e.length?e:process.type),t=t.replace(/\||,|;/g,"_")}(e),n.release(),t),s.start()}uninitPerformanceMonitor(){s.stop()}}},function(e,t){e.exports=require("os")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=o(0),n=o(1);let i=null,l=(i="browser"===process.type?n.app:n.remote.app).getAppPath().replace(/\\/g,"/"),c=r.resolve(l,"../../../profiles").replace(/\\/g,"/");!function(e){e.getRootDir=function(){return l},e.getProfilesDir=function(){return c}}(t.GlobalDataNS||(t.GlobalDataNS={}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return require(e)}}]);
//# sourceMappingURL=common-preload.js.map