!function(){"use strict";const e=window.encodeURIComponent;function t(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function n(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function i(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}function r(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function o(){return window.performance&&window.performance.timing&&"function"==typeof window.performance.now?Math.round(window.performance.now())+window.performance.timing.navigationStart:(new Date).getTime()}class a{constructor(e){this._parent=e,this._config=e.getConfig(),this._complete=!1,this.data={}}isComplete(){return this._complete}markComplete(){this._complete=!0}done(){this._complete=!0,this.isAsync()&&this._parent.pluginDone()}resetState(){this._complete=!1,this.data={}}getData(){return this.data}collectData(){}isAsync(){return!1}}class s extends a{constructor(e){super(e)}collectData(){this._readLinkedinData()}_readLinkedinData(){this.data.timeSource=this._config["beacon-source"],this.data.treeId=this._getTreeId(),this._config["commit-id"]&&(this.data.sessionID=this._config["commit-id"]),this.data.isFromServiceWorker=this._getFromServiceWorker(),this.done()}_getTreeId(){let e=document.querySelector('meta[name="treeID"]');return e&&e.getAttribute("content")}_getFromServiceWorker(){let e=document.querySelector('meta[name="fromServiceWorker"]');return e&&"true"===e.getAttribute("content")}}class c extends a{constructor(e){super(e),this._navigationTimingRead=!1,this._navigationTimingFields=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]}collectData(){this._readNavigationTiming(),this.done()}_readNavigationTiming(){var e,t,n,i;if(!this._navigationTimingRead){if(window.performance&&window.performance.timing&&window.performance.navigation){for(this.data.navigationTimingApi=!0,e=window.performance.timing,t=0;t<this._navigationTimingFields.length;t++)e[n=this._navigationTimingFields[t]]&&(this.data[n]=e[n]);this.data.redirectCount=window.performance.navigation.redirectCount,this.data.navigationType=window.performance.navigation.type}else this.data.navigationTimingApi=!1;if(window.performance&&window.performance.getEntriesByType&&void 0!==(i=window.performance.getEntriesByType("navigation")[0])&&(this.data.workerStart=i.workerStart,"number"==typeof i.fetchStart&&"number"==typeof i.responseEnd&&"number"==typeof i.decodedBodySize&&"number"==typeof i.encodedBodySize&&"number"==typeof i.transferSize)){let e={};e.htmlFetchStart=i.fetchStart,e.htmlResponseEnd=i.responseEnd,e.htmlDecodedBodySize=i.decodedBodySize,e.htmlEncodedBodySize=i.encodedBodySize,e.htmlTransferSize=i.transferSize,this.data.htmlMetrics=e}this._navigationTimingRead=!0}}}class l extends a{constructor(e){super(e),this._imgEntries=[],this._resourceTimingFields={name:!0,entryType:!1,duration:!0,initiatorType:!0,fetchStart:!0,responseEnd:!0,startTime:!0,connectEnd:!0,connectStart:!0,domainLookupEnd:!0,domainLookupStart:!0,redirectEnd:!0,redirectStart:!0,requestStart:!0,responseStart:!0,secureConnectionStart:!0,nextHopProtocol:!0,transferSize:!0,decodedBodySize:!0,encodedBodySize:!0,workerStart:!0},this._requestSamplingRandVal=Math.random(),this._setupResourceTiming()}resetState(){super.resetState(),this._requestSamplingRandVal=Math.random()}collectData(){this._readResourceTiming(),this.done()}addTreeId(e,t){var n;if(this._treeIdUrlParser&&this._rsTimingUrlParser&&(this._treeIdUrlParser.href=t,this._readResourceTiming(),this.data.resourceTimingEntries))for(n=this.data.resourceTimingEntries.length-1;n>=0;n--)if(this._rsTimingUrlParser.href=this.data.resourceTimingEntries[n].name,this._treeIdUrlParser.protocol===this._rsTimingUrlParser.protocol&&this._treeIdUrlParser.host===this._rsTimingUrlParser.host&&this._treeIdUrlParser.pathname===this._rsTimingUrlParser.pathname&&(this._treeIdUrlParser.search===this._rsTimingUrlParser.search||""===this._treeIdUrlParser.search)){this.data.resourceTimingEntries[n].resourceTreeId=e;break}}_isResourceTimingSupported(){return window.performance&&"function"==typeof window.performance.getEntriesByType}_setupResourceTiming(){var e={default:.001,xmlhttprequest:1};if(null!==this._config["rs-sample-rate"]&&"object"==typeof this._config["rs-sample-rate"])for(var t in this._config["rs-sample-rate"])this._config["rs-sample-rate"].hasOwnProperty(t)&&(e[t]=this._config["rs-sample-rate"][t]);this._config["rs-sample-rate"]=e,this._isResourceTimingSupported()&&(this._readResourceTiming(),this._setBufferSize(100),null===window.performance.onresourcetimingbufferfull?window.performance.onresourcetimingbufferfull=this._readResourceTiming.bind(this):null===window.performance.onwebkitresourcetimingbufferfull&&(window.performance.onwebkitresourcetimingbufferfull=this._readResourceTiming.bind(this))),this._treeIdUrlParser=document.createElement("a"),this._rsTimingUrlParser=document.createElement("a")}_clearBuffer(){this._isResourceTimingSupported()&&this._config["enable-rs-timing"]&&(window.performance.clearResourceTimings&&"function"==typeof window.performance.clearResourceTimings?window.performance.clearResourceTimings():window.performance.webkitClearResourceTimings&&"function"==typeof window.performance.webkitClearResourceTimings&&window.performance.webkitClearResourceTimings())}_setBufferSize(e){this._isResourceTimingSupported()&&this._config["enable-rs-timing"]&&(window.performance.setResourceTimingBufferSize&&"function"==typeof window.performance.setResourceTimingBufferSize?window.performance.setResourceTimingBufferSize(e):window.performance.webkitSetResourceTimingBufferSize&&"function"==typeof window.performance.webkitSetResourceTimingBufferSize&&window.performance.webkitSetResourceTimingBufferSize(e))}_readResourceTiming(){var e,t,n,i,r,o,a=!1,s=this.data&&this.data.resourceTimingEntries||[];if(this._isResourceTimingSupported()&&this._config["enable-rs-timing"]){for(e=window.performance.getEntriesByType("resource"),t=0;t<e.length;t++){for(n in i={},e[t])!0===this._resourceTimingFields[n]&&(i[n]=e[t][n]);"img"===i.initiatorType&&this._imgEntries.push(i),null===this._parent._config.xcndUrl&&"script"===i.initiatorType&&(this._parent._config.xcndUrl=i.name),r=Math.random(),o=this._config["rs-sample-rate"][e[t].initiatorType]||this._config["rs-sample-rate"].default,((a=this._requestSamplingRandVal<=this._config["request-sampling-rate"])||r<=o)&&(s.push(i),i.sampleMode="",a&&(i.sampleMode="requestSampled,"),r<=o&&(i.sampleMode+="rand"+o.toString()))}this._clearBuffer(),s.length>0&&(this.data.resourceTimingEntries=s)}}}class u extends a{constructor(e){super(e)}collectData(){this._readUserTimingEntries(),this.done()}_clearUserTimings(){window.performance&&(window.performance.clearMarks&&window.performance.clearMarks(),window.performance.clearMeasures&&window.performance.clearMeasures())}_getUserTimingEntries(e,t){var n,i,r,o=[];for(i=0;i<e.length;i++)(n=e[i])&&((r={}).entryType=t,r.name=n.name,r.startTime=n.startTime,r.duration=n.duration,o.push(r));return o}_readUserTimingEntries(){var e,t=[];window.performance&&"function"==typeof window.performance.getEntriesByType&&(this._config["user-timing-measure-enabled"]&&(e=window.performance.getEntriesByType("measure"),t=t.concat(this._getUserTimingEntries(e,"MEASURE"))),this._config["user-timing-mark-enabled"]&&(e=window.performance.getEntriesByType("mark"),t=t.concat(this._getUserTimingEntries(e,"MARK")))),this.data.userTimingEntries=t,this._clearUserTimings()}}class d extends a{constructor(e){super(e),this._started=!1}resetState(){}isAsync(){return!0}collectData(){this._started||(this._started=!0,this._getCDNData())}_getCDNData(){let e=window.location.protocol,t=this._parent._config.xcndUrl,n=new XMLHttpRequest,i=this,r="",o="",a="";this.data.usedCDN={static_domain:r,ip_version:a,http_version:a},0===e.lastIndexOf("http",0)&&null!==t?(n.onreadystatechange=function(){var e=this.readyState?this:n;if(4===e.readyState){if(200===e.status){try{r=e.getResponseHeader("X-CDN"),o=e.getResponseHeader("X-CDN-CLIENT-IP-VERSION"),a=e.getResponseHeader("X-CDN-Proto")}catch(e){console.warn("Can't read the X-CDN header, possibly because of CORS restrictions")}i.data.usedCDN.static_domain=null===r?"":r,i.data.usedCDN.ip_version=null===o?"":o.toLowerCase(),i.data.usedCDN.http_version=null===a?"":a.toLowerCase()}else console.error("CDN request did not return a HTTP 200. Status: "+e.status);i.done()}},n.open("HEAD",t,!0),n.send()):this.done()}}class p extends a{constructor(e){super(e),this._started=!1}resetState(){}isAsync(){return!0}collectData(){this._started||(this._started=!0,this._getPoPData())}_getPoPData(){var e=window.location,t=e.protocol,n=t+"//"+e.host+"/fizzy/admin?"+(new Date).getTime(),i=new XMLHttpRequest,r=this;0===t.lastIndexOf("http",0)?(i.onreadystatechange=function(){var e=this.readyState?this:i;4===e.readyState&&(e.status>=200&&e.status<400?(r.data.pointOfPresenceId=e.getResponseHeader("X-Li-Pop"),r.data.rawXLiFabricHeader=e.getResponseHeader("X-Li-Fabric"),r.data.httpVersion=e.getResponseHeader("X-Li-proto")):console.error("PoP request was not successful. Status: "+e.status),r.done())},i.open("get",n,!0),i.send()):this.done()}}class h extends a{constructor(e){super(e),this.data.longTasks=[],this._longTaskFields=["duration","name","startTime"],this._observer=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{let t={};for(let n=0;n<this._longTaskFields.length;n++){let i=this._longTaskFields[n];void 0!==e[i]&&(t[i]=e[i])}this.data.longTasks.push(t)})});try{this._observer.observe({entryTypes:["longtask"]})}catch(e){console.warn("Longtask api is not supported")}}resetState(){this._complete=!1,this.data={},this.data.longTasks=[]}collectData(){this.done()}}class g extends a{constructor(e){super(e)}collectData(){this._readNetworkInformation(),this.done()}_readNetworkInformation(){if(navigator&&navigator.connection){let e={},t=navigator.connection.downlinkMax;e.connectionType=void 0===navigator.connection.type?"UNKNOWN":navigator.connection.type.toUpperCase(),e.effectiveType=this._formatEffectiveType(navigator.connection.effectiveType),e.roundTripTime=void 0===navigator.connection.rtt?-1:navigator.connection.rtt,e.downlinkBandwidth=void 0===navigator.connection.downlink?-1:navigator.connection.downlink,e.downlinkMaxBandwidth=void 0===t?-1:t===1/0?0:navigator.connection.downlinkMax,this.data.networkInformationMetrics=e}}_formatEffectiveType(e){return"2g"===e?"TWO_G":"3g"===e?"THREE_G":"4g"===e?"FOUR_G":"SLOW_2G"}}var f=["https://www.linkedin-ei.com/lite/rum-track","/li/track","https://lca1-mobile-tracking-frontend-vip-1.corp.linkedin.com/li/track"];class m{constructor(e){this._resetState(!1),this._defaults={enabled:!0,"beacon-url":"/li/track","beacon-service":"tracking","event-name":"RealUserMonitoringEvent","topic-name":"RealUserMonitoringEvent","app-id":"linkedin.rum.tracking","is-single-page-app":!0,"cross-origin":!1,"beacon-timeout":3e4,"request-sampling-rate":.01,"user-timing-mark-enabled":!1,"user-timing-measure-enabled":!0,"beacon-source":"apps","page-key-prefix":"","navigation-timing-only":!1,"pathname-depth":-1,"lazy-image-class-names":["lazy-image"],"enable-cdn-tracking":!1,"enable-pop-tracking":!1,"async-plugins-timeout":5e3,"non-spa-manual-send":!1},this._config=r(this._defaults,e),this._config.enabled&&(this._config.readyState||(this._config.readyState=document.readyState),this._config.xcndUrl=null,this._config["navigation-timing-only"]?this._config["enable-rs-timing"]=this._config["enable-rs-timing"]||!1:this._config["enable-rs-timing"]=!1!==this._config["enable-rs-timing"],this._config.plugins=[new s(this),new c(this),new l(this),new u(this),new g(this)],this._config["enable-cdn-tracking"]&&this._config.plugins.push(new d(this)),this._config["enable-pop-tracking"]&&this._config.plugins.push(new p(this)),"function"==typeof PerformanceObserver&&"function"==typeof PerformanceLongTaskTiming&&this._config.plugins.push(new h(this)),this._isInitialLoad=!0,this._initialStartTime=void 0,this._renderCompleteCount=0,this._isLazyRender=!1,this._allBeaconData=[],this._csrfToken="",this._isInternalApp=!1,this._config["beacon-source"]&&"internal-apps"===this._config["beacon-source"]&&(this._isInternalApp=!0,("lite"===this._config["beacon-service"]||f.indexOf(this._config["beacon-url"])>-1)&&(this._config["beacon-service"]="tracking",this._config["beacon-url"]="https://tracking.corp.linkedin.com/li/track/")),this._onLoad=()=>{setTimeout(()=>{this._collectPluginData()},500)},this._onUnload=()=>{this._collectPluginData()},this._config["navigation-timing-only"]&&!this._config["non-spa-manual-send"]?"complete"===this._config.readyState?this._onLoad():window.addEventListener("load",this._onLoad):this._config["navigation-timing-only"]||(this._config["non-spa-manual-send"]?console.error("Manual send mode not supported for SPA apps"):window.addEventListener("unload",this._onUnload)))}destroy(){this._config["navigation-timing-only"]&&!this._config["non-spa-manual-send"]?window.removeEventListener("load",this._onLoad):this._config["navigation-timing-only"]||(this._config["non-spa-manual-send"]?console.error("Manual send mode not supported for SPA apps"):(this._collectPluginData(),window.removeEventListener("unload",this._onUnload)))}setLixData(e={}){this._lixData=e,this._applyLixData()}_applyLixData(){isNaN(this._getTreatment("voyager-web.rum.beaconTimeout"))||(this._config["beacon-timeout"]=parseInt(this._getTreatment("voyager-web.rum.beaconTimeout")))}_getTreatment(e){return this._lixData[e]||"control"}setPageKey(e){this._beaconData.pageKey=e}setCurrentUser(e){this._isInternalApp&&"string"==typeof e&&(this._beaconData.sessionID=e)}appTransitionStart(e){(e||this._renderCompleteCount>0)&&(this._collectPluginData(),this._beaconData.navigationStart=o(),this._isInitialLoad=!1)}appRenderComplete(){this._renderCompleteCount++,this._beaconData.renderCompleteTime=o(),this._timeOutVal||(this._timeOutVal=setTimeout(()=>{this._collectPluginData()},this._config["beacon-timeout"]))}addTreeId(e,t){if(this._config.plugins&&this._config.plugins.length>2){var n=this._config.plugins[2];n&&n.addTreeId(e,t)}}appViewRenderStart(e,t){this._viewTimings[e]||(this._viewTimings[e]={renderName:t||e,viewName:t,viewId:e,renderStart:o()})}appViewRenderComplete(e,t){this._viewTimings[e]&&!this._viewTimings[e].renderEnd&&(this._viewTimings[e].renderEnd=o())}setDeepLinkTrackingId(e){this._shouldSendBeacon=!1}setWindowHiddenState(e){this._beaconData.isImpactedByHiddenWindow=e}setPageInstance(e){this._beaconData.pageInstance=e}setIsLazyRender(e){this._isLazyRender=e}getConfig(){return this._config}pluginDone(){for(var e,t=0;t<this._config.plugins.length;t++)if((e=this._config.plugins[t]).isAsync()&&!e.isComplete())return!1;setTimeout(()=>{this._sendAllData()},500)}manuallySetNonSpaPLTSendBeacon(){const e=o(),t=this._collectPlugin(),n=this._allBeaconData.length;n>0&&void 0!==this._allBeaconData[n-1].loadEventEnd&&(this._allBeaconData[n-1].loadEventEnd=e),this._checkAsyncPlugAndSend(t)}_resetState(e){this._beaconData={},this._viewTimings={},this._scrollTime=void 0,this._shouldSendBeacon=!0,this._timeOutVal&&(clearTimeout(this._timeOutVal),this._timeOutVal=void 0),e&&this._config.plugins.map(e=>{e.resetState()})}_readRenderTimingEntries(){if(Object.keys(this._viewTimings).length>0)for(var e in this._beaconData.detailedRenderTimingEntries=[],this._viewTimings)this._viewTimings.hasOwnProperty(e)&&this._beaconData.detailedRenderTimingEntries.push(this._viewTimings[e])}_collectPluginData(){let e=this._collectPlugin();this._checkAsyncPlugAndSend(e)}_collectPlugin(){var e=!0;if(this._config.enabled)return this._config.plugins.map((function(t){t.collectData(),t.isComplete()||(e=!1)})),this._pushCurrentBeaconData(),e}_checkAsyncPlugAndSend(e){e?this._sendAllData():setTimeout(()=>{this._markAllAsyncPluginComplete()},this._config["async-plugins-timeout"]),this._resetState(!0)}_markAllAsyncPluginComplete(){this._config.plugins.map((function(e){e.isAsync()&&e.markComplete()})),this._sendAllData()}_doesNotHaveLazyImageClass(e){var t,n=!0,i=this._config["lazy-image-class-names"];if(e&&e.className&&i)for(t=i.length-1;t>=0;t--)e.className.indexOf(i[t])>-1&&(n=!1);return n}_doesElementOverlapWithViewport(e){var t,n=e.getBoundingClientRect();return!((t={top:Math.max(n.top,0),left:Math.max(n.left,0),bottom:Math.min(n.bottom,window.innerHeight||document.documentElement.clientHeight),right:Math.min(n.right,window.innerWidth||document.documentElement.clientWidth)}).bottom<=t.top||t.right<=t.left)}_getImgResourceEntries(){var e,t,n=[],i=this._beaconData.resourceTimingEntries;if(i)for(e=i.length-1;e>=0;e--)"img"===(t=i[e]).initiatorType&&n.push(t);return n}_cleanUpResourceTimingEntries(){var e;if(this._beaconData.resourceTimingEntries)for(e=this._beaconData.resourceTimingEntries.length-1;e>=0;e--)this._beaconData.resourceTimingEntries[e].name&&(this._beaconData.resourceTimingEntries[e].name=this._beaconData.resourceTimingEntries[e].name.split(/[?#]/)[0])}_readPageKey(){this._beaconData&&!this._beaconData.pageKey&&this._isInitialLoad&&(this._beaconData.pageKey=this._getPageKey()),this._isInternalApp&&("EMBER"===this._config["web-ui-framework"]&&void 0!==this._beaconData.pageKey?this._beaconData.pageKey=this._config["page-key-prefix"]+":"+this._beaconData.pageKey:document.querySelector('meta[name="pageKey"]')||(this._beaconData.pageKey=this._config["page-key-prefix"]+":",this._config["pathname-depth"]>-1?this._beaconData.pageKey+=window.location.pathname.split(/[/#]/).slice(0,this._config["pathname-depth"]+1).join("/"):this._beaconData.pageKey+=window.location.pathname))}_getPageKey(){var e=document.querySelector('meta[name="pageKey"]');return e?e.getAttribute("content"):document.body.id?document.body.id.substring("pagekey-".length):""}_getRenderingMode(){var e,t=document.querySelector('meta[name="renderingMode"]');return t&&"BIGPIPE"===(e=t.getAttribute("data-mode"))&&(e="BIG_PIPE"),e}_doesRenderErrorCodeBlockExists(){return null!=document.querySelector("code#renderError")}_readSinglePageAppData(){this._beaconData.isSinglePageApp=this._config["is-single-page-app"],this._beaconData.isSinglePageApp&&(this._beaconData.webUIFramework=this._config["web-ui-framework"],this._beaconData.appRenderMode=this._getRenderingMode(),this._isInitialLoad?(this._beaconData.pageLoadMode="INITIAL",this._doesRenderErrorCodeBlockExists()&&(this._beaconData.isAppRenderFailed=!0)):this._beaconData.pageLoadMode="PARTIAL")}_sendAllData(){var e,t,n,i={};for(e=0;e<this._config.plugins.length;e++)(t=this._config.plugins[e]).isAsync()&&(i=r(i,t.getData()));for(e=0;e<this._allBeaconData.length;e++)n=r(this._allBeaconData[e],i),this._sendBeacon(n);this._allBeaconData=[]}_pushCurrentBeaconData(){var e;(e=this._getBeaconAndPluginData())&&this._allBeaconData.push(r({},e))}_readIsSSL(){window&&window.location&&(this._beaconData.isSSL="https:"===window.location.protocol?1:0)}_getBeaconAndPluginData(){if(this._readPageKey(),this._readSinglePageAppData(),this._readRenderTimingEntries(),this._readIsSSL(),this._config["app-version"]&&(this._beaconData.appVersion=this._config["app-version"]),this._config.plugins.map(e=>{this._beaconData=r(this._beaconData,e.getData())}),"navigationStart"in this._beaconData&&this._shouldSendBeacon){if(this._initialStartTime||(this._initialStartTime=this._beaconData.navigationStart),this._beaconData.boomerangStart=this._initialStartTime,this._cleanUpResourceTimingEntries(),this._beaconData.isSinglePageApp)if("renderCompleteTime"in this._beaconData)this._beaconData.timeDone=this._beaconData.renderCompleteTime-this._beaconData.navigationStart;else if(!this._config["navigation-timing-only"])return;return this._beaconData}}_sendBeacon(e){if(this._config.enabled)try{if(this._fireTrackingBeacon(e),"undefined"!=typeof CustomEvent){var t=new CustomEvent("RUMEvent",{detail:e});document.dispatchEvent(t)}}catch(e){}}_fireTrackingBeacon(e){var t,n={eventInfo:{eventName:this._config["event-name"],topicName:this._config["topic-name"],appId:this._config["app-id"]},eventBody:e};e.header={pageInstance:e.pageInstance},e.requestHeader={pageKey:e.pageKey},n.eventBody.trackingTime=-1,(t=new XMLHttpRequest).open("POST",this._config["beacon-url"],!0),t.setRequestHeader("content-type","application/json"),this._csrfToken||(this._csrfToken=this._getCsrfToken()),t.setRequestHeader("Csrf-Token",this._csrfToken),t.send(JSON.stringify([n]))}_getCookieString(){return document.cookie}_getCsrfToken(){for(var e=this._getCookieString().split(";"),t=0;t<e.length;t++){for(var n=e[t];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var i=n.substring("JSESSIONID=".length,n.length);return'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),i}}return""}}let v=null;var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e,t){return e(t={exports:{}},t.exports),t.exports}var w=b((function(e,t){!function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==y||"undefined"!=typeof self&&self;var n=t((function(e,t){!function(n,i){i(t,e)}(0,(function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,i=n&&!!window.requestIdleCallback,r=8,o={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,disableSendBeacon:!0,csrfToken:"",testId:"",testSegId:"",setProperty:function(e,t){void 0!==t&&(this[e]=t)},setTrackingUrl:function(e){this.setProperty("globalTrackingUrl",e)},setAppId:function(e){this.setProperty("globalTrackingAppId",e)},setCsrfToken:function(e){this.setProperty("csrfToken",e)},setTestId:function(e){this.setProperty("testId",e)},setTestSegId:function(e){this.setProperty("testSegId",e)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var e="JSESSIONID=",t=this.getCookieString().split(";"),n=0;n<t.length;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1);if(-1!==i.indexOf(e)){var r=i.substring(e.length,i.length);return'"'===r[0]&&'"'===r[r.length-1]&&(r=r.substring(1,r.length-1)),r}}return""},createXmlHttpObject:function(){return n&&window.XMLHttpRequest?new XMLHttpRequest:null},beacon:function(e,t,i,r){this._beacon(e,t,i,r||this.globalTrackingUrl,this.disableSendBeacon?null:n&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,n,i,r){if(r){var o=void 0;try{o=r(i,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+i+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,n,i)},ajax:function(e,t,n,i){var r;i?(r=this.createXmlHttpObject())&&(r.open(this.AJAX_METHOD,i,!0),r.withCredentials=!0,r.setRequestHeader("Content-type","application/json"),this.csrfToken?r.setRequestHeader("Csrf-Token",this.csrfToken):r.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&r.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&r.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||304===r.status?"function"==typeof t&&t(r):n&&n('Response is not "OK" or "Not Modified" for tracking request'))},4!==r.readyState&&r.send(e)):n&&n("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=this.maxQueueSize&&this.flush()},flush:function(){if(this.queue.length>0){var e=this;this.beacon(JSON.stringify(this.queue),null,e.logError),this.queue=[]}i?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,n=Date.now();return requestIdleCallback((function(i){i.timeRemaining()>r||i.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-n))}),{timeout:e})},addToQueue:function(e){if(this.queue.push(e),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var t=this;i&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,n){this.beacon(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return n(null,e)}),(function(e){return n(e)}),this.globalTrackingUrl+"/validate")},sendEvent:function(e,t){this.addToQueue({eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(e){return"string"==typeof e&&(e={eventName:e}),e&&"object"==typeof e?(e.appId||(e.appId=this.globalTrackingAppId),e):(this.logError("Event info must be object"),{})},populateEventHeaders:function(e){return e&&"object"==typeof e?e:(this.logError("Event body must be object"),{})},logError:function(e){var t=window.console;t&&t.error&&t.error(e)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),n&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){this.flush(),n&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};t.exports=o}))}));function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),r=0;r<t.length;r++){var o=t[r];if(null!==o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i}var r,o,a,s,c="li_trk_navigation",l="undefined";function u(){window.sessionStorage.removeItem(c)}function d(){if(typeof window!==l&&typeof window.sessionStorage!==l)try{return JSON.parse(window.sessionStorage.getItem(c))}catch(e){}}function p(e){if(typeof window!==l&&typeof window.sessionStorage!==l)try{window.sessionStorage.setItem(c,JSON.stringify(e))}catch(e){}}function h(){var e=window.location.pathname,t=e+window.location.search,n=window.location.href,i=d();if(!i)return null;for(var r=0;r<i.length;r++){var o=i[r].href;if(o===e||o===t||o===n){var a=i.splice(r,1)[0];return p(i),a}}return null}function g(e){var t=d()||[];t.push(e),p(t)}(s=e.ControlInteractionType||(e.ControlInteractionType={}))[s.FOCUS=0]="FOCUS",s[s.UNFOCUS=1]="UNFOCUS",s[s.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",s[s.DRAG=3]="DRAG",s[s.PINCH_OPEN=4]="PINCH_OPEN",s[s.PINCH_CLOSE=5]="PINCH_CLOSE",s[s.DOUBLE_PRESS=6]="DOUBLE_PRESS",s[s.LONG_PRESS=7]="LONG_PRESS",s[s.SHORT_PRESS=8]="SHORT_PRESS",s[s.SWIPE_UP=9]="SWIPE_UP",s[s.SWIPE_DOWN=10]="SWIPE_DOWN",s[s.SWIPE_LEFT=11]="SWIPE_LEFT",s[s.SWIPE_RIGHT=12]="SWIPE_RIGHT",s[s.FLICK_UP=13]="FLICK_UP",s[s.FLICK_DOWN=14]="FLICK_DOWN",s[s.FLICK_LEFT=15]="FLICK_LEFT",s[s.FLICK_RIGHT=16]="FLICK_RIGHT",s[s.SHAKE=17]="SHAKE",s[s.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",s[s.HOVER=19]="HOVER",(a=e.PageViewPageType||(e.PageViewPageType={}))[a.FULL=1]="FULL",a[a.AJAX=2]="AJAX",a[a.IFRAME=3]="IFRAME",a[a.REDIRECT=4]="REDIRECT",a[a.API=5]="API",a[a.FORM=6]="FORM",a[a.ROUTER=7]="ROUTER",a[a.ERROR=8]="ERROR",(o=e.EventTypes||(e.EventTypes={}))[o.PageViewEvent=0]="PageViewEvent",o[o.NavigationEvent=1]="NavigationEvent",o[o.ExternalNavigationEvent=2]="ExternalNavigationEvent",o[o.ControlInteractionEvent=3]="ControlInteractionEvent",o[o.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var f="undefined"!=typeof window?window:null;function m(){var e=f.crypto||f.msCrypto;if(!r&&e&&e.getRandomValues){var t=new Uint8Array(16);(r=function(){return e.getRandomValues(t),t})()}if(!r){var n=new Uint8Array(16);r=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=(t||0)>>>((3&e)<<3)&255;return n}}}f?m():r=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var v=[],b=0;b<256;b++)v[b]=(b+256).toString(16).substr(1);function w(){var e=new Uint8Array(16),t=0,n=r();n[6]=15&n[6]|64,n[8]=63&n[8]|128;for(var i=0;i<16;i++)e[t+i]=n[i];return e}function E(){return _(w())}function _(e){for(var t=32768,n=[],i=0;i<e.length;i+=t)n.push(String.fromCharCode.apply(null,e.subarray(i,i+t)));return btoa(n.join(""))}function T(e){return e?"urn:li:page:"+e:null}function I(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function k(e){return e?e.split(":").pop():null}function S(e,t){return e?{trackingId:t||E(),pageUrn:T(e)}:null}function C(e){return e?e.pageUrn+";"+e.trackingId:null}function A(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function P(e){return e&&e.referrer}function R(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var N=10,D=10,O=Object.assign||i,L=function(){function t(e){void 0===e&&(e={appId:null,initialPageInstance:null}),this.config=e;var t=this.config.disableInitialAnchorPageViewEvent||!1;if(!this.config.appId)throw new Error("TrackingTwo requires an appId.");if(!this.config.initialPageInstance){var i=document.querySelector('meta[name="trk-pageinstance"]');if(i&&(this.config.initialPageInstance=A(i.getAttribute("content"))),!this.config.initialPageInstance)throw new Error("TrackingTwo requires an initialPageInstance");t=!0}this.config.eventHeaderProperties?this.config.eventHeaderProperties.pageInstance&&delete this.config.eventHeaderProperties.pageInstance:this.config.eventHeaderProperties={},this.config.userRequestHeaderProperties?this.config.userRequestHeaderProperties.pageKey&&delete this.config.userRequestHeaderProperties.pageKey:this.config.userRequestHeaderProperties={},this.config.validationMode=!!this.config.validationMode||!1,this.config.trackingUrl=this.config.trackingUrl||"/li/track";var r=h();r&&(e.previousPageInstance=r.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),n.init(),n.setProperty("disableSendBeacon",!1),n.setTrackingUrl(this.config.trackingUrl),n.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||N),n.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||D)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var o=this.config.prevControlName||(r?r.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,o),t||this.firePageViewEvent(),this._boundDocumentClickHandler=this._handleDocumentClicks.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickHandler,!0),this._boundDocumentClickBubbleHandler=this._handleDocumentClicksBubble.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickBubbleHandler,!1),this._boundWindowBeforeUnloadHandler=this._handleWindowBeforeUnload.bind(this),window&&window.addEventListener("beforeunload",this._boundWindowBeforeUnloadHandler,!0),this._boundDocumentVisibilityChangeHandler=this._handleDocumentVisibilityChange.bind(this);var a="visibilitychange";document&&(void 0!==document.msHidden&&(a="msvisibilitychange"),document.addEventListener(a,this._boundDocumentVisibilityChangeHandler,!0))}return t.prototype._handleDocumentClicks=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(n)}},t.prototype._handleDocumentClicksBubble=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name"),i=t.hasAttribute("data-tracking-will-navigate"),r=t.getAttribute("data-tracking-href")||t.getAttribute("href");i&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:r})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,n=t,i=null,r=!1;if(t){for(;n!==e.currentTarget&&("function"!=typeof n.hasAttribute||!n.hasAttribute("data-tracking-control-name"))&&n.parentElement;)n=n.parentElement;n!==e.currentTarget&&("getAttribute"in n&&(i=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(r=n.hasAttribute("data-tracking-will-navigate")))}r||this.fireExternalNavigationEvent(i)},t.prototype._handleDocumentVisibilityChange=function(){var e=!1;if(void 0!==document.msHidden)e=document.msHidden;else{if(void 0===document.hidden)return;e=document.hidden}this.firePageVisibilityChangeEvent(e)},t.prototype.saveStateForPageDeparture=function(e){e&&g({controlName:e.controlName,href:e.href,prevInstance:this.state.currentPageInstance})},t.prototype.fireControlInteractionEvent=function(t,n,i){if(void 0===n&&(n=e.ControlInteractionType.SHORT_PRESS),void 0===i&&(i={}),!t)throw new Error("controlName is required.");var r=k(this.state.currentPageInstance.pageUrn),o=i.uiControlPageKey||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:I(t,o),interactionType:e.ControlInteractionType[n]},i)},t.prototype.fireNavigationEvent=function(t,n,i){void 0===i&&(i={});var r=t?k(t.pageUrn):null,o=i.uiControlPageKey||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:I(n,o)},i)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var i=n.uiControlPageKey||k(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:I(t,i)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var i=(n=O({},n)).pageViewPageType||e.PageViewPageType.AJAX,r=k(this.state.currentPageInstance.pageUrn),o=t||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},header:{},pageType:e.PageViewPageType[i].toLowerCase(),trackingInfo:{clientTimestamp:Date.now().toString()}},n)},t.prototype.fireAnchorPageViewEvent=function(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("newPageKey is required.");var i=O({},this.state.currentPageInstance),r=S(e);this.state.previousPageInstance=i,this.state.currentPageInstance=r,this.fireNavigationEvent(i,t,n),this.firePageViewEvent(e,n)},t.prototype.firePageVisibilityChangeEvent=function(t,n){void 0===n&&(n={}),this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageVisibilityChangeEvent],{requestHeader:{},header:{},isVisible:!t},n)},t.prototype.fireTrackingEvent=function(e,t,i,r){if(void 0===i&&(i={}),void 0===r&&(r=!1),!e||!t)throw new Error("eventName and body are required.");t=O({},t),(i=O({},i)).topicName||(i.topicName=e),i.pageInstance||(i.pageInstance=this.state.currentPageInstance);var o=O({pageKey:k(i.pageInstance.pageUrn),path:window.location.href,referer:P(document),trackingCode:R(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var a=O({pageInstance:i.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var s={requestHeader:o,header:a};this.config.mapHeaders&&(s=this.config.mapHeaders(s));var c=O(s,t),l={eventName:e,topicName:i.topicName,appId:this.config.appId};this.config.validationMode?n.validateEvent(l,c,(function(t){t&&console.error("Event "+e+" failed validation!")})):(n.sendEvent(l,c),r&&n.flush())},t.prototype.destroy=function(){n.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=S(n),new t(e)},t}();e.AppTrackingInstance=L,e.clearNavStorage=u,e.derivePageInstanceFromString=A,e.derivePageKeyFromUrn=k,e.generateControlUrn=I,e.generatePageInstance=S,e.generatePageUrn=T,e.generateTrackingId=E,e.getReferrer=P,e.getTrackingCode=R,e.stringifyPageInstance=C,e.uuid=w,e.webTrackingTransport=n}(t)}));function E(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}function _(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function T(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function I(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function k(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const r=I(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),a="&";return i<0?a="?":i===e.length-1&&(a=""),o&&(o="#".concat(o)),"".concat(r).concat(a).concat(t,"=").concat(n).concat(o||"")}}function S(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}let C=null;function A({appId:e="seo",trackingCode:n}={}){const i=t(document),r=I(window.location.href,"originalReferer"),o={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return n&&(o.userRequestHeaderProperties.trackingCode=n),r&&(o.userRequestHeaderProperties.referer=r),C||(C=w.AppTrackingInstance.createFromPageKey(o,i)),C.generateTrackingId=w.generateTrackingId,C}function P(e,t="ajax",i){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const i=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(document),r=n(document);let o={};r&&(o.interfaceLocale=r);e&&(o.pageKey=e);return{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}}}(i,t))}function R(e,t){t=t||"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}const N=/ /g,D=/[\s\u0000<>"]|%00/,O=/\\/,L=/([.]|%2e){2}/i;let U=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function x(e){let t;if("string"!=typeof e)return R("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(R("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(N,"+")),!U.test(t))return R("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(D.test(t))return R("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n=t.split("?")[0];return O.test(n)||L.test(n)||L.test(decodeURI(n))?(R("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function q(e,{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:o=!1,postData:a}={}){return new Promise((s,c)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)s({status:l.status,responseText:l.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));n.response={status:l.status,responseText:l.responseText},c(n)}})),l.addEventListener("error",(function(e){c(e)})),l.open(t,e,!0),l.withCredentials=r,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!o){const e=S("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",i(e))}l.send(a)})}const H={className:"class"};function j(e,t={}){if(!e)return Promise.reject(new Error("A path to the asset must be provided"));const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusable:"false"},t);return q(e,{sendCookies:!1,skipCsrfToken:!0}).then(e=>{return t=e.responseText,(new DOMParser).parseFromString(t,"image/svg+xml").firstChild;var t}).then(e=>function(e,t={}){return Object.keys(t).map(n=>{const i=H[n]||n;e.setAttribute(i,t[n])}),e}(e,n))}function z(e,t){if(!e)return Promise.reject(new Error("An icon tag must be provided to inlineIcon"));const n=e.getAttribute("data-svg-class-name");return j(t,n?{className:n}:{}).then(t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t))}const V=["IMG","IFRAME","VIDEO","SCRIPT"];class K{constructor({delayedUrlAttributeName:e="data-delayed-url",delayedPosterAttributeName:t="data-delayed-poster",delayedBackground:n="data-delayed-background",ghostClassesAttributeName:i="data-ghost-classes",ghostUrlAttributeName:r="data-ghost-url",lazyloadClassName:o="lazy-load",lazyloadedClassName:a="lazy-loaded",onLoadClassName:s="onload",onErrorClassName:c="onerror"}={}){this.elementCache=[],this.onLoadClassName=s,this.onErrorClassName=c,this.delayedUrlAttributeName=e,this.delayedPosterAttributeName=t,this.delayedBackground=n,this.lazyloadClassName=o,this.lazyloadedClassName=a,this.lazyloadElSelector="[".concat(this.delayedUrlAttributeName,"], .").concat(this.lazyloadClassName),this.boundLoadVisibleImages=this.loadVisibleImages.bind(this),this.boundEvents=!1,this.scriptLoadPromises={},this.ghostUrlAttributeName=r,this.ghostClassesAttributeName=i,E(()=>this.refreshLoader())}getLazyLoadedJavascriptModule(e){return this.scriptLoadPromises[e]=this.scriptLoadPromises[e]||function(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}(),this.scriptLoadPromises[e]}refreshLoader(){this.elementCache=_(document.querySelectorAll(this.lazyloadElSelector)),this.loadVisibleImages(),this.elementCache.length&&!this.boundEvents&&this._attachEvents()}_attachEvents(){window.addEventListener("scroll",this.boundLoadVisibleImages,!0),window.addEventListener("touchmove",this.boundLoadVisibleImages,!0),window.addEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!0}_detachEvents(){window.removeEventListener("scroll",this.boundLoadVisibleImages,!0),window.removeEventListener("touchmove",this.boundLoadVisibleImages,!0),window.removeEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!1}lazyloadElOnload(e){if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),"SCRIPT"===e.tagName){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).resolve(window[t])}}lazyloadOnerror(e){const t=e.classList.contains(this.onErrorClassName),n=e.getAttribute(this.ghostUrlAttributeName);if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),e.classList.add(this.onErrorClassName),n&&!t){e.setAttribute("src",x(n));const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach(t=>{e.classList.add(t)})}if("SCRIPT"===e.tagName){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).reject(new Error("Could not lazy load JS with src ".concat(e.src)))}}loadVisibleImages(){let e=0;for(;e<this.elementCache.length;){let t=this.elementCache[e];if("SCRIPT"===t.tagName||t.classList.contains(this.onLoadClassName)||T(t)){const n=t.getAttribute(this.delayedUrlAttributeName);n&&"ICON"===t.tagName?z(t,n).then(e=>{this.lazyloadElOnload(e),this.lazyloadElOnload(t)}).catch(()=>this.lazyloadOnerror(t)):n&&-1!==V.indexOf(t.tagName)?(t.onerror=this.lazyloadOnerror.bind(this,t),t.onload=t.oncanplay=this.lazyloadElOnload.bind(this,t),t.src=x(n)):(n&&t.hasAttribute(this.delayedBackground)&&(t.style.backgroundImage='url("'.concat(x(n),'")')),this.lazyloadElOnload(t)),"VIDEO"===t.tagName&&(t.poster=x(t.getAttribute(this.delayedPosterAttributeName))),t.removeAttribute(this.delayedUrlAttributeName),this.elementCache.splice(e,1)}else e++}this.elementCache.length||this._detachEvents()}}let F=null;const G=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|"),W=new RegExp(G,"i");var J,X,Q=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:Q(),isFinal:!1}},$=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Z=!1,ee=!1,te=function(e){Z=!e.persisted},ne=function(){addEventListener("pagehide",te),addEventListener("beforeunload",(function(){}))},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ee||(ne(),ee=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:Z})}),{capture:!0,once:t})},re=function(e,t,n,i){var r;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(i||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(r||0),(t.delta||t.isFinal||void 0===r)&&(e(t),r=t.value))}},oe=function(){return void 0===J&&(J="hidden"===document.visibilityState?0:1/0,ie((function(e){var t=e.timeStamp;return J=t}),!0)),{get timeStamp(){return J}}},ae=function(){return X||(X=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),X};class se{constructor({gaugeMetricEndpoint:e,counterMetricEndpoint:t,pageKey:n}={}){if(this.gaugeMetricEndpoint=e,this.counterMetricEndpoint=t,this.perfData=window.performance.timing,this.pageKey=n,!this.pageKey||!this.gaugeMetricEndpoint||!this.counterMetricEndpoint)throw new Error("Please pass a valid pageKey, counterMetricEndpoint & gaugeMetricEndpoint")}_getPageLoadTime(){return this.perfData.loadEventEnd-this.perfData.navigationStart}firePageLoadTimeMetric(){if(this._pageLoadTimeMetricFired||!this.perfData)return;const e=this._getPageLoadTime();this.fireGaugeIngraphMetric({metricsType:"pageLoadTime",metricsValue:e}),this._pageLoadTimeMetricFired=!0}attachWebVitalsMetrics(){this._webVitalsListenersAttached||(!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Y("CLS",0),r=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),t())},o=$("layout-shift",r);o&&(t=re(e,i,o,n),ie((function(e){var n=e.isUnloading;o.takeRecords().map(r),n&&(i.isFinal=!0),t()})))}(this._webVitalReportHandler.bind(this)),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Y("LCP"),r=oe(),o=function(e){var n=e.startTime;n<r.timeStamp?(i.value=n,i.entries.push(e)):i.isFinal=!0,t()},a=$("largest-contentful-paint",o);if(a){t=re(e,i,a,n);var s=function(){i.isFinal||(a.takeRecords().map(o),i.isFinal=!0,t())};ae().then(s),ie(s,!0)}}(this._webVitalReportHandler.bind(this)),function(e){var t=Y("FID"),n=oe(),i=function(e){e.startTime<n.timeStamp&&(t.value=e.processingStart-e.startTime,t.entries.push(e),t.isFinal=!0,o())},r=$("first-input",i),o=re(e,t,r);r?ie((function(){r.takeRecords().map(i),r.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(e,i){i.timeStamp<n.timeStamp&&(t.value=e,t.isFinal=!0,t.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+e}],o())}))}(this._webVitalReportHandler.bind(this)),this._webVitalsListenersAttached=!0)}_webVitalReportHandler(e){this.fireGaugeIngraphMetric({metricsType:"".concat(e.name.toLowerCase(),"Time"),metricsValue:e.value,sendBeacon:!0})}_beacon(e,t){e=k(e,"csrfToken",i(S("JSESSIONID")));const n=new Blob([t],{type:"application/json"});return navigator.sendBeacon(e,n)}fireGaugeIngraphMetric({metricsType:e,metricsValue:t,sendBeacon:n=!1}={}){const i="number"==typeof t&&!isNaN(t);if(!e||!i)throw new Error("valid metricsType & metricsValue are required");const r=JSON.stringify({pageKey:this.pageKey,metricsType:e,metricsValue:t});n?this._beacon(this.gaugeMetricEndpoint,r):q(this.gaugeMetricEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},postData:r})}fireSeoPageViewMetric(e=document){!this._seoPageViewMetricFired&&this._isSEOPageView(e)&&(this.fireCounterIngraphMetric({metricsType:"seoPageView"}),this._seoPageViewMetricFired=!0)}fireCounterIngraphMetric({metricsType:e,sendBeacon:t=!1}={}){if(!e)throw new Error("metricsType is required");const n=JSON.stringify({pageKey:this.pageKey,metricsType:e});t?this._beacon(this.counterMetricEndpoint,n):q(this.counterMetricEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},postData:n})}_isSEOPageView(e=document){const t=e.referrer||"",n=t.indexOf("mail.google.com")>-1,i=t.indexOf(".google.com")>-1,r=!n&&i;return o=navigator.userAgent,!W.test(o.trim())&&r;var o}}const ce={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class le{constructor(e,t,{threshold:n=.9,root:i=null,rootMargin:r="0px",componentList:o=[],onImpression:a=(()=>{}),onObservation:s=(()=>{}),onUnobservation:c=(()=>{})}={}){if(!("IntersectionObserver"in window))return ce;this.root=i,this.threshold=n,this.rootMargin=r,this.trackingInstance=t,this._onImpression=a,this._onObservation=s,this._onUnobservation=c;const l={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),l),this.observeComponents(o)}observeComponents(e=[]){this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)})}unobserveComponents(e=[]){e.forEach(e=>{this.intersectionObserverInstance.unobserve(e),this._onUnobservation(e)})}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(({target:e})=>e);t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.unobserveComponents(t))}}handleDynamicElements(e=[]){this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function ue({trackingInstance:e,visibleElements:t}){const i=t.map(e=>e.getAttribute("data-impression-id")).filter(e=>e);i.length>0&&function(e,t){const i=n(document),r={};i&&(r.interfaceLocale=i);const o={header:{},requestHeader:r,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",o)}(e,i)}function de(e){e.removeAttribute("data-impression-id")}const pe=/iPad|iPhone|iPod/;function he(){var e;e=navigator.userAgent,pe.test(e)&&_(document.querySelectorAll(".app-store-link")).forEach(e=>{e.href&&e.addEventListener("click",e=>function(e){if(!e)throw Error("The given context is not valid");const t={timezoneOffset:(new Date).getTimezoneOffset(),screenWidth:window.screen.width,screenHeight:window.screen.height,devicePixelRatio:window.devicePixelRatio,currentContext:e};try{navigator.sendBeacon(k("/transactional-routing/createguestdeferreddeeplink","csrfToken",i(S("JSESSIONID"))),JSON.stringify(t))}catch(e){}}(e.currentTarget.pathname))})}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me,ve,ye,be,we={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Ee="GUEST",_e="MEMBER",Te=0,Ie=1,ke=2,Se=(fe(me={},Ee,"li_gc"),fe(me,_e,"li_mc"),me),Ce=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in ge(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},we)t[o]=t[o]||Te,t[o]!==Te&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Ie||t[o]===Te&&r===Ie},Ae=(ve=[we.ADVERTISING,we.ANALYTICS_AND_RESEARCH,we.FUNCTIONAL],ye=[Te,Ie,ke,Te],be=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(be);if(!n)return{error:"Invalid consent body encoding",consent:new Ce};for(var i=parseInt(n[1],10),r={},o=0;o<ve.length;o++)r[ve[o]]=ye[i>>2*o&3];var a=new Date(1e3*parseInt(n[2],10)),s=parseInt(n[3],10),c=Te;return s>=0&&s<=3&&(c=ye[s]),{error:null,consent:new Ce(r,a,t,c)}}}),Pe=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Re=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(n&&n.length>1)return n[1]},Ne=function(e,t){var n=Re(Se[e],t);return n?Oe(n,e):Re(Se[Ee],t)||Re(Se[_e],t)?De(ke):De(Ie)},De=function(e){var t={};for(var n in we)t[n]=e;return{error:null,consent:new Ce(t,null,null,e)}},Oe=function(e,t){var n=atob(e).match(Pe);if(!n)return{error:"Invalid consent encoding",consent:new Ce};var i=parseInt(n[1],10),r=n[2];switch(i){case 1:return Ae.parseConsentBody(r,t);default:return{error:"Invalid encoded consent version ".concat(i),consent:new Ce}}};const Le={"linkedin.com":"linkedin.com","linkedin-ei.com":"linkedin-ei.com"};let Ue="";["csrftoken","midtoken","session_key","username"].forEach(e=>{Ue+="(".concat(e,"=[^&]*&?)|(").concat(e,"%3d(?!%26|&)[\\w-]+(%26|&)?)|")}),Ue=Ue.substring(0,Ue.length-1);const xe=new RegExp(Ue,"gi");class Me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.trackPageview,n=e.dimension5,i=e.trackerId,r=void 0===i?"UA-62256447-1":i,o=e.cookieDomain,a=e.useLocationForDP,s=e.usePageTitle;if(!t)throw new Error("Please provide a valid page key for GA tracking");this._processConsent()&&this._init(t,n,r,o,a,s)}_init(e,t,n,i,r,o){this.trackPageview=e,this.dimension5=t,this.trackerId=n,this.useLocationForDP=r,this.usePageTitle=o,this.currentTopDomain=window.location.hostname.split(".").slice(1).join("."),Le[this.currentTopDomain]&&(this.cookieDomain=i||this.currentTopDomain,Me.onload(this._loadAndFireGA.bind(this)))}_processConsent(){const e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e="true"===Re("liap",t)?Re(Se[_e],t)?_e:Ee:Re(Se[Ee],t)?Ee:_e),Ne(e,t)}().consent.optedInConsentMap,t=e[we.ANALYTICS_AND_RESEARCH],n=e[we.ADVERTISING];return t&&n}static onload(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}_loadGA(){const e="//platform.".concat(this.currentTopDomain,"/js/analytics.js");this.scriptLoaded||(!function(e,t,n,i,r,o,a){e.GoogleAnalyticsObject=r,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,o=t.createElement(n),a=t.getElementsByTagName(n)[0],o.async=1,o.src=i,a.parentNode.insertBefore(o,a)}(window,document,"script",e,"ga"),this.scriptLoaded=e)}_fireGA(){let e=[location.protocol,"//",location.host,location.pathname].join("");const t=this.cookieDomain,n=this.usePageTitle?document.title:"LinkedIn";e+=this._getQueryString(),window.ga("create",this.trackerId,{cookieDomain:t}),window.ga("set","referrer",document.referrer),window.ga("set","location",e),window.ga("set","title",n),window.ga("set","forceSSL",!0),window.ga("set","anonymizeIp",!0),this.dimension5&&window.ga("set","dimension5",this.dimension5);const i="true"===this.getCookie("liap")?"1":"0";window.ga("set","dimension25",i),window.ga("set","dimension24",e);const r=this.useLocationForDP?e:this.trackPageview;window.ga("send","pageview",{page:r})}_getQueryString(){return location.search.replace(xe,"")}getCookie(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}_loadAndFireGA(){this._loadGA(),this._fireGA()}}var Be,qe=b((function(e,t){!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n,i={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},r={GUEST:"GUEST",MEMBER:"MEMBER"},o={UNAVAILABLE:0,ACCEPTED:1,DENIED:2},a=(t(n={},r.GUEST,"li_gc"),t(n,r.MEMBER,"li_mc"),n),s=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},i)t[s]=t[s]||o.UNAVAILABLE,t[s]!==o.UNAVAILABLE&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===o.ACCEPTED||t[s]===o.UNAVAILABLE&&a===o.ACCEPTED},c=function(){var e=[i.ADVERTISING,i.ANALYTICS_AND_RESEARCH,i.FUNCTIONAL],t=[o.UNAVAILABLE,o.ACCEPTED,o.DENIED,o.UNAVAILABLE],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"));return{parseConsentBody:function(i,r){var a=i.match(n);if(!a)return{error:"Invalid consent body encoding",consent:new s};for(var c=parseInt(a[1],10),l={},u=0;u<e.length;u++)l[e[u]]=t[c>>2*u&3];var d=new Date(1e3*parseInt(a[2],10)),p=parseInt(a[3],10),h=o.UNAVAILABLE;return p>=0&&p<=3&&(h=t[p]),{error:null,consent:new s(l,d,r,h)}}}}(),l=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),u=function(e){var t=document.cookie.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(t&&t.length>1)return t[1]},d=function(e){var t={};for(var n in i)t[n]=e;return{error:null,consent:new s(t,null,null,e)}},p=function(){return document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)[1]},h=function(e,t){var n=atob(e).match(l);if(!n)return{error:"Invalid consent encoding",consent:new s};var i=parseInt(n[1],10),r=n[2];switch(i){case 1:return c.parseConsentBody(r,t);default:return{error:"Invalid encoded consent version ".concat(i),consent:new s}}},g=function(e){return e||(e="true"===u("liap")?u(a[r.MEMBER])?r.MEMBER:r.GUEST:u(a[r.GUEST])?r.GUEST:r.MEMBER),function(e){var t=u(a[e]);return t?h(t,e):u(a[r.GUEST])||u(a[r.MEMBER])?d(o.DENIED):d(o.ACCEPTED)}(e)};e.NON_ESSENTIAL_CATEGORIES=i,e.USER_MODE=r,e.getBannerData=function(e){var t=g(e),n=t.consent,i=e||n.userMode||r.GUEST;return{showBanner:!t.error&&!n.consentAvailable,userMode:i,managePreferenceUrl:function(e){var t=e===r.MEMBER?"settings/member-cookies":"mypreferences/g/guest-cookies";return"https://www.".concat(p(),"/").concat(t)}(i)}},e.getCookieConsent=g,e.parseEncodedConsent=h,e.updateCookieConsent=function(e,t){var n=e.optedInConsentMap,r=e.updateSettings,a=e.userMode;t=t||function(e,t){},e.optedInConsentMap||t("optedInConsentMap is a required option",null);var s=new XMLHttpRequest;s.open("POST","https://www.".concat(p(),"/cookie-consent/")),s.setRequestHeader("Content-Type","application/json"),s.withCredentials=!0,s.onload=function(){200!==s.status?t("Request failed with status ".concat(s.status),null):t(null,s)},s.onerror=function(){t("Request failed with an error",s)};var c={UPDATE_SETTINGS:r,USER_MODE:a,CATEGORIES:{}};for(var l in i){var u=void 0;!0===n[l]?u=o.ACCEPTED:!1===n[l]&&(u=o.DENIED),c.CATEGORIES[l]=u}s.send(JSON.stringify(c))},Object.defineProperty(e,"__esModule",{value:!0})}(t)})),He=(Be=qe)&&Be.__esModule&&Object.prototype.hasOwnProperty.call(Be,"default")?Be.default:Be;function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ve(e,t,n){return t&&ze(e.prototype,t),n&&ze(e,n),e}function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function We(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Fe(e);if(t){var r=Fe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return We(this,n)}}function Xe(e,t,n){return(Xe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Fe(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}var Qe=null;function Ye(e){if(!Qe){var t={appId:e.getAppId(),disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05};e.getTrackingCode()&&(t.userRequestHeaderProperties={trackingCode:e.getTrackingCode()}),Qe=w.AppTrackingInstance.createFromPageKey(t,e.getPageKey())}return Qe.generateTrackingId=w.generateTrackingId,Qe}function $e(e){var t=Ye(),n={header:{},requestHeader:{},alertUrn:e.getAlertId(),actionType:"DISMISS"};t.fireTrackingEvent("AlertActionEvent",n)}var Ze=Object.freeze({TERMS_AND_CONDITIONS:0,COOKIE_POLICY:1,COOKIE_USAGE:2,MAINTENANCE:3,EMAIL_STATUS:4,SUBSCRIPTION:5,IE_DEPRECATION_BANNER:6,UNKNOWN:7,COOKIE_CONSENT:8}),et=(Object.freeze({TERMS_AND_CONDITIONS:501,COOKIE_POLICY:500,COOKIE_USAGE:500,MAINTENANCE:100,EMAIL_STATUS:300,SUBSCRIPTION:400,IE_DEPRECATION_BANNER:99,UNKNOWN:200}),Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id",actionType:"action-type",actionUrl:"action-url"}));function tt(e,t){for(var n=e;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}function nt(e){var t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}function it(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customEvent",t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var rt=1,ot=2,at=0,st="artdeco-global-alert__dismiss",ct="artdeco-global-alert-action",lt="artdeco-global-alert__content";function ut(e){var t=e.target,n=t instanceof Element&&t.parentNode,i="artdeco-global-alert__responsive-container--scrollable-effect";if(n instanceof Element&&t instanceof Element){var r=t.offsetHeight,o=t.scrollHeight,a=t.scrollTop;if(o>r){var s=a+r;n.classList.add("".concat(i)),n.classList.remove("".concat(i,"-only-top")),n.classList.remove("".concat(i,"-only-bottom")),s===r&&n.classList.add("".concat(i,"-only-bottom")),s===o&&n.classList.add("".concat(i,"-only-top"))}}}var dt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je(this,e),this._el=t,this._state=at,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(et.alertType),this._id=this._el.getAttribute(et.alertId),this._elDismissBtn=this._el.querySelector(".".concat(st)),this._trackingOptions=n,this.init()}return Ve(e,[{key:"_makeAlertAccessible",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._el.setAttribute("aria-hidden",!e),this._el.style.setProperty("visibility",e?"visible":"hidden")}},{key:"init",value:function(){var e=this;this._el.style.setProperty("height","0px"),this._makeAlertAccessible(!1),this._el.addEventListener("click",(function(t){var n=t.target;tt(n,st)?(e.dismissAction(),$e(e)):tt(n,ct)&&e.handleAlertAction(t)}))}},{key:"getTrackingOptions",value:function(){return this._trackingOptions}},{key:"getAlertNode",value:function(){return this._el}},{key:"setHeight",value:function(e){this._el.style.setProperty("height",e),this._el.style.setProperty("visibility","visible")}},{key:"getInitialHeight",value:function(){return this._initialHeight}},{key:"getAlertType",value:function(){return this._alertType}},{key:"getAlertId",value:function(){return this._id}},{key:"isInactive",value:function(){return!(this._state===rt||this._state===ot)}},{key:"visited",value:function(){this._state=rt,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n,i=this._trackingOptions,r=i.enableControlInteractionEvents,o=i.controlInteractionEventsPrefix;this._state=ot,e=this,t=Ye(),n={header:{},requestHeader:{},alertUrn:e.getAlertId()},t.fireTrackingEvent("AlertImpressionEvent",n),this._makeAlertAccessible(!0),this._el.focus();var a,s,c,l=this._el.querySelector(".".concat(lt));if(l instanceof Element){var u=(a=ut,s=200,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(){clearTimeout(c),a.apply(void 0,t)};clearTimeout(c),c=setTimeout(i,s)});l.addEventListener("scroll",u)}l.dispatchEvent(it("scroll")),r&&this._el.querySelectorAll("button, a").forEach((function(e){var t=e.tagName,n=e.getAttribute("data-tracking-control-name");if(n)n=n.replace("urn:li:control:",""),e.setAttribute("data-tracking-control-name",n),e.setAttribute("data-control-name",n);else{var i="a"===t.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute("data-tracking-control-name","".concat(o,"-").concat(i))}}))}},{key:"dismissAction",value:function(){}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(et.actionType),i=t.getAttribute(et.actionUrl);i=i&&x(i);var r=it("AlertActionClick");switch(n){case"LINK":i?window.location.assign(i):t.dispatchEvent(r);break;case"ACCEPT":i&&function(e){if(e){var t=document&&document.cookie.match(/(?:^|; *)JSESSIONID=([^;]*)(?:;|$)/),n=t?t[1]:null;if(n){var i=new XMLHttpRequest;i.open("POST",e),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Csrf-Token",n),i.withCredentials=!0,i.onload=function(){},i.send(JSON.stringify({action:"ACCEPT"}))}}}(i),t.dispatchEvent(r);break;case"DENY":this.dismissAction(),$e(this),t.dispatchEvent(r)}}}]),e}();function pt(){try{var e=He.getBannerData();return e.isActive=!(!nt("li_gc")&&!nt("li_mc")),e}catch(e){return console.error("invalid domain",document.domain),{}}}function ht(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={},n=He.NON_ESSENTIAL_CATEGORIES;return Object.keys(n).forEach((function(n){t[n]=e})),{optedInConsentMap:t}}var gt=function(e){Ke(n,e);var t=Je(n);function n(){return je(this,n),t.apply(this,arguments)}return Ve(n,[{key:"init",value:function(){Xe(Fe(n.prototype),"init",this).call(this),pt().showBanner||this.visited()}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(et.actionType),i=pt().managePreferenceUrl,r=t.getAttribute(et.actionUrl);r=r&&x(r)||i;var o=it("AlertActionClick");switch(n){case"LINK":r?He.updateCookieConsent(ht(),(function(){window.location.assign(r)})):t.dispatchEvent(o);break;case"ACCEPT":He.updateCookieConsent(ht(!0),(function(){})),t.dispatchEvent(o);break;case"DENY":this.dismissAction(),$e(this),t.dispatchEvent(o)}}}]),n}(dt),ft="LIcookiePolicyDisplays";function mt(e){try{window.localStorage.setItem(ft,e)}catch(t){document.cookie="".concat(ft,"=").concat(e,";path=/")}}function vt(){var e,t,n;try{e=window.localStorage.getItem(ft)}catch(i){t=ft,e=((n=document.cookie.match("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")))?n[1]:void 0)||0}return parseInt(e,10)||0}var yt=function(e){Ke(n,e);var t=Je(n);function n(){return je(this,n),t.apply(this,arguments)}return Ve(n,[{key:"init",value:function(){var e=pt();Xe(Fe(n.prototype),"init",this).call(this),(e.isActive||vt()>=3)&&Xe(Fe(n.prototype),"visited",this).call(this)}},{key:"activate",value:function(){Xe(Fe(n.prototype),"activate",this).call(this),mt(vt()+1)}},{key:"dismissAction",value:function(){Xe(Fe(n.prototype),"dismissAction",this).call(this),mt(3)}}]),n}(dt);var bt=function(){function e(t){je(this,e),this._trackingOptions=t}return Ve(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return Ze[e.getAttribute(et.alertType)]}(e)){case Ze.COOKIE_USAGE:return new yt(e,this._trackingOptions);case Ze.COOKIE_CONSENT:return new gt(e,this._trackingOptions);default:return new dt(e,this._trackingOptions)}}}]),e}(),wt=function(){function e(t){je(this,e);var n=t.appId,i=t.pageKey,r=t.trackingCode;this._appId=n,this._pageKey=i,this._trackingCode=r}return Ve(e,[{key:"getAppId",value:function(){return this._appId}},{key:"getPageKey",value:function(){return this._pageKey}},{key:"getTrackingCode",value:function(){return this._trackingCode}}]),e}();"undefined"!=typeof window&&"undefined"!=typeof document&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var Et="artdeco-global-alert-container",_t="global-alert-offset",Tt="artdeco-global-alert",It="artdeco-global-alert__dismiss",kt="artdeco-global-alert-action",St="transition-in",Ct="transition-out",At=function(){function e(t){var n=t.appId,i=t.pageKey,r=t.trackingCode,o=t.enableControlInteractionEvents,a=void 0!==o&&o,s=t.controlInteractionEventsPrefix,c=void 0===s?"global-alerts":s;if(je(this,e),!n)throw new Error("Missing config - appId");if(!i)throw new Error("Missing config - pageKey");if(this._el=document&&document.querySelector("#".concat(Et)),this._elOffsetList=document.querySelectorAll(".".concat(_t)),this._elAlertList=document.querySelectorAll(".".concat(Tt)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new bt({enableControlInteractionEvents:a,controlInteractionEventsPrefix:c}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,this._getTrackingInstance=Ye(new wt({appId:n,pageKey:i,trackingCode:r})),!this._el&&!this._elAlertList.length)return!1;this.init()}return Ve(e,[{key:"init",value:function(){var e=this;this._elAlertList.forEach((function(t){e._alertInstance.push(e._alertFactoryInstance.getAlertInstance(t))})),this._el.classList.add(St),document.body.classList.add(St),this._el.addEventListener("click",(function(t){var n=t.target;tt(n,It)&&(e.dismissAlert(n),e.activateNextAlert())})),this._el.addEventListener("AlertActionClick",(function(t){var n=t.target;tt(n,kt)&&(e.dismissAlert(n),e.activateNextAlert())})),this.activateNextAlert()}},{key:"activateNextAlert",value:function(){var e;this._alertInstance.some((function(t){return!!t.isInactive()&&(e=t,!0)})),this._currentActiveAlert&&this._currentActiveAlert.visited(),e&&e.activate(),this._currentActiveAlert=e,this._currentActiveAlert?this.updateBodyOffset():this.destroy()}},{key:"updateBodyOffset",value:function(){var e=this._currentActiveAlert.getInitialHeight();document.body.style.setProperty("padding-top","".concat(e+this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(t){t.style.setProperty("top","".concat(e,"px"))})),this._el.style.setProperty("height","".concat(e,"px")),this._currentActiveAlert.setHeight("".concat(e,"px"))}},{key:"dismissAlert",value:function(e){var t=e.closest(".".concat(Tt));t.classList.add(Ct),t.style.setProperty("height","0px")}},{key:"destroy",value:function(){var e=this._el;this._el.classList.add(Ct),document.body.classList.add(Ct),document.body.style.setProperty("padding-top","".concat(this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(e){e.style.setProperty("top","0px")})),this._el.style.setProperty("height","0px"),this._alertInstance=[],this._el=void 0,setTimeout((function(){e.remove(),document.body.classList.remove(St),document.body.classList.remove(Ct)}),500)}}]),e}();class Pt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||"[object Function]"!=={}.toString.call(e))throw new Error("Please provide a valid tracking call back function");this.memberId=t,this.trackingCallback=e}getInstalledApps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return"getInstalledRelatedApps"in e?e.getInstalledRelatedApps().then(t=>(this._fireAppDetectionEvent(t,e),t)):Promise.resolve([])}_fireAppDetectionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator;const n=e.map(e=>({appId:e.id.toUpperCase().replace(/\./g,"_"),appVersion:e.version,platform:e.platform})),i={header:{memberId:this.memberId},requestHeader:{browserId:this._getBrowserId(),userAgent:t.userAgent||""},installedAppList:n},r=this._getQueryParam(window.location.href,"originalReferer");r&&(i.requestHeader.referer=r),this.trackingCallback("AppDetectionEvent",i)}_getBrowserId(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).cookie.match(/bcookie=([^;]*)/),t=e?e[1].replace(/^"(.*)"$/,"$1"):"";return t&&t.includes("&")&&t.split("&")[1]||""}_getQueryParam(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}}for(var Rt,Nt=(function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}}(Rt={exports:{}},Rt.exports),Rt.exports),Dt=[],Ot=0;Ot<256;++Ot)Dt[Ot]=(Ot+256).toString(16).substr(1);var Lt=function(e,t){var n=t||0,i=Dt;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")};var Ut=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||Nt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var o=0;o<16;++o)t[i+o]=r[o];return t||Lt(r)};function xt(){return e=Ut(null,new Uint8Array(16),0),"undefined"!=typeof btoa?btoa(String.fromCharCode.apply(null,e)):"undefined"!=typeof Buffer?Buffer.from(String.fromCharCode.apply(null,e),"binary").toString("base64"):function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3;switch(a){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=");break;case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(e);var e}function Mt(e,t){return{pageUrn:qt(e),trackingId:t||xt()}}function Bt(e,t){return"urn:li:control:"+e+"-"+t}function qt(e){return"urn:li:page:"+e}function Ht(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}var jt="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Trident")>-1,zt="PageViewEvent";var Vt=function(){function e(e){this.host=e,this.trackingEventListeners=[],this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var t=e.batching;this.maxQueueSize=t&&t.maxSize||1,this.flushDebounceTime=t&&t.debounceTime||0}return e.prototype.on=function(e){this.trackingEventListeners.push(e)},e.prototype.fireEvent=function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);if(function(e){return!!e.meta.context}(t)){var n=t.meta.context=Ht(t.meta.context,this.host.api);if(this.preContextQueue.length>0&&(this.queue=this.queue.concat(this.populatePreContextQueue(n)),this.preContextQueue=[]),this.host.batching)return"function"==typeof t.body&&(t.body=t.body(n)),this.enqueue(t);var i=this.queue.concat([t]);return this.queue=[],this.sendPayload(i)}return this.preContextQueue.push(t),this.host.api.Promise.resolve(!0)},e.prototype.callOnDestroy=function(e){this.unloadHandlers.push(e)},e.prototype.destroy=function(){this.trackingEventListeners=[],this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush()},e.prototype.forceFlush=function(){this.queue=this.queue.concat(this.populatePreContextQueue({pageInstance:Mt("unknown"),pageKey:"unknown"})),this.preContextQueue=[],this.flush(!0)},e.prototype.envelop=function(e,t){return{eventBody:t,eventInfo:"string"==typeof e?{appId:this.host.appId,eventName:e,topicName:e}:this.host.api.assign({appId:this.host.appId},e)}},e.prototype.getGenericEventBody=function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,p="function"==typeof e.body?e.body(e.meta.context):e.body,h=("string"==typeof(t=e.id)?t===zt:t.eventName===zt)&&p.requestHeader&&p.requestHeader.pageKey||u,g=null;"string"!=typeof r&&null!==this.host.locale||(g=r);var f={interfaceLocale:g,pageKey:h,path:a.pathname+a.search,referer:s.referrer},m={header:c({pageInstance:d,time:e.meta.time,version:i},e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})};return this.host.api.assign(p,m)},e.prototype.populatePreContextQueue=function(e){return this.preContextQueue.map((function(t){return t.meta.context=e,t}))},e.prototype.trigger=function(e){this.trackingEventListeners.forEach((function(t){return t(e)}))},e.prototype.requestFlush=function(e){var t=this;e((function(n){n.timeRemaining()>5||n.didTimeout?t.forceFlush():t.requestFlush(e)}),{timeout:1e4})},e.prototype.flush=function(e){void 0===e&&(e=!1);var t=this.host.api.requestIdleCallback;if(e||!t){var n=this.queue;this.queue=[],n.length>0&&this.sendPayload(n)}else this.requestFlush(t)},e.prototype.enqueue=function(e){return this.queue.push(e),this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(this.flush.bind(this),this.flushDebounceTime)),this.host.api.Promise.resolve(!0)},e.prototype.sendPayload=function(e){var t=this,n=e.map((function(e){var n=t.getGenericEventBody(e),i=t.envelop(e.id,n);return t.trigger(i),i})),i=this.host,r=i.inactive,o=i.endpoint,a=i.api,s=a.sendBeacon,c=a.fetch,l=a.Promise;if(r)return l.resolve(!0);var u=JSON.stringify(n);if(s){var d=!1;try{d=s(o,u)}catch(e){if(!("object"==typeof e&&"Failed to execute 'sendBeacon()' on 'Window': Invalid argument."===e.message))throw e&&(e.tags=["tracking:sendbeacon"]),e}if(d)return l.resolve(d)}return c(o,{body:u,credentials:"same-origin",headers:[["content-type","application/json"]],method:"POST",mode:"cors"}).catch((function(e){if("object"==typeof e){if(jt)return!1;e.tags=["tracking:fetch"]}throw e}))},e}();function Kt(e){if(!e)return{};var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu);e.external_control&&(i="urn:li:externalControl:"+decodeURIComponent(e.external_control),n=!0);var r=function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=r&&{pageInstance:r,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:"+a,trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:"+decodeURIComponent(e.external_app),trackingId:e.external_app_instance,version:""}:void 0;return s&&((o=o||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}var Ft=function(){function e(e,t){if(this.transporter=e,this.delegate=t,this.appState={},this.customTransporters={},t&&t.customTransporterHosts)for(var n in t.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(t.customTransporterHosts,n)){var i=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[n]=new Vt(this.transporter.host.api.assign(i,t.customTransporterHosts[n]))}}return Object.defineProperty(e.prototype,"host",{get:function(){return this.transporter.host},enumerable:!0,configurable:!0}),e.prototype.getCurrentContext=function(){if(this.currentContext)return Ht(this.currentContext,this.host.api)},e.prototype.setInitialPageInstanceId=function(e){this.initialPageInstanceId=e},e.prototype.navigate=function(e,t){void 0===t&&(t={});var n=this.navMetaFromSeed(e,Kt(t));return this.setCurrentContext(n.to),this.fireNavEvents(n)},e.prototype.setCurrentContext=function(e){this.currentContext=Ht(e,this.host.api)},e.prototype.updateAppState=function(e){this.host.api.assign(this.appState,e)},e.prototype.fireCIE=function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=Bt(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),a}),{context:n})},e.prototype.fireEvent=function(e,t,n){return this.fireEnvelope(this.generateEnvelope(e,t,n))},e.prototype.fireEnvelope=function(e){var t=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(t){var n=t.meta.transporterKey,i=n?this.customTransporters[n]:this.transporter;if(!i)throw new Error("Could not find custom transporter: "+n);return i.fireEvent(t)}return this.host.api.Promise.resolve(!0)},e.prototype.generatePageInstance=function(e,t){return{pageUrn:"urn:li:page:"+e,trackingId:t||xt()}},e.prototype.firePVE=function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=t?this.host.api.assign(t,i):i,o=this.generateEnvelope("PageViewEvent",r,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)},e.prototype.destroy=function(){this.transporter.destroy()},e.prototype.forceFlush=function(){this.transporter.forceFlush()},e.prototype.generateControlUrn=function(e,t){return Bt((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)},e.prototype.fireRawCIE=function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}},e.prototype.generateNavigationEvent=function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from;return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}},e.prototype.getTrackingCode=function(){return this.previousAppContext&&this.previousAppContext.pageKey},e.prototype.navMetaFromSeed=function(e,t){this.previousAppContext=t.previousContext;var n=t.fromExternalApp?{eventName:"NavigationEvent",topicName:"InboundNavigationEvent"}:"NavigationEvent";return{from:t.previousContext,navEventId:n,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}},e.prototype.fireNavEvents=function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t);o.meta.requestHeader.pageKey=n.pageKey;var a=i&&i.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])},e.prototype.generateEnvelope=function(e,t,n){void 0===n&&(n={});var i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Ht(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:i}},e}(),Gt=function(){function e(e){this.core=e;var t=this.core.host.api.location.protocol;this.protocol=t.substring(0,t.length-1)}return e.prototype.reportError=function(e,t,n){var i=this;void 0===t&&(t=[]);var r=(void 0===n?{}:n).callTreeId,o=void 0===r?"":r,a=e.message,s=e.name,c=e.stack,l=void 0===c?"":c,u=e.fileName,d=void 0===u?"":u,p=e.lineNumber,h=void 0===p?0:p,g=e.columnNumber,f=void 0===g?0:g,m=this.core.host,v=m.appId,y=m.appVersion,b=m.service,w=m.serviceInstance,E=m.treeID,_=void 0===E?"":E,T=m.api.location,I=T.host,k=T.pathname,S=T.search,C=T.hash,A=void 0===C?"":C;return this.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:v,e:{c:f,l:h,m:a,s:l,t:s,u:d},h:A,l:i.protocol,o:I,p:k,pageKey:e.pageKey,q:S,service:b,serviceInstance:w,serviceVersion:y,t:t,trackingID:e.pageInstance.trackingId,treeID:_,callTreeId:o}}))},e.prototype.flush=function(){this.core.forceFlush()},e.prototype.destroy=function(){this.core.destroy()},e}();function Wt(e){if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var t=e.now(),n=e.timing.navigationStart;return Math.round(t+n)}return Date.now()}function Jt(e,t){return{node:e,labels:t}}function Xt(e,t){return{edges:e,value:t}}var Qt=/,+$/;function Yt(e){return 0===(e=Math.round("number"==typeof e?e:0))?"":e.toString(36)}function $t(e,t){return e.reduce((function(e,n){var i=t(n),r=n.name;return r in e?e[r]+="|"+i:e[r]=i,e}),{})}var Zt=/(?=_|\/)/;function en(e){for(var t=Xt([]),n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];tn(t,r.split(Zt),e[r])}return function e(t){return t.edges.reduce((function(t,n){var i=n.node;return t[n.labels.join("")]=void 0===i.value?e(i):i.value,t}),{})}(t)}function tn(e,t,n){for(var i=0,r=e.edges;i<r.length;i++){for(var o=r[i],a=0;a<t.length&&a<o.labels.length&&o.labels[a]===t[a];)a++;if(0!==a){if(a===o.labels.length){if(void 0!==o.node.value){var s=Jt(o.node,[""]),c=Jt(Xt([],n),t.slice(a));o.node=Xt([s,c])}else tn(o.node,t.slice(a),n);return}var l=t.slice(0,a),u=a===t.length?[""]:t.slice(a),d=o.labels.slice(a),p=Jt(o.node,d);c=Jt(Xt([],n),u);return o.node=Xt([p,c]),void(o.labels=l)}}e.edges.push(Jt(Xt([],n),t))}function nn(e,t){"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){e.push(t)})),t.clearResourceTimings())}function rn(e){return en($t(e,an))}var on={css:"a",navigation:"b",xmlhttprequest:"c",fetch:"d",beacon:"e",other:"f",img:"g",link:"h",script:"i",html:"j",image:"k",iframe:"l",subdocument:"m"};function an(e){var t=e.initiatorType||"other",n=[on[t]||t,e.nextHopProtocol||"",Yt(e.startTime),Yt(e.duration),Yt(e.fetchStart),Yt(e.domainLookupStart),Yt(e.domainLookupEnd),Yt(e.connectStart),Yt(e.connectEnd),Yt(e.secureConnectionStart),Yt(e.requestStart),Yt(e.responseStart),Yt(e.responseEnd),Yt(e.transferSize),Yt(e.encodedBodySize),Yt(e.decodedBodySize),Yt(e.workerStart),Yt(e.redirectStart),Yt(e.redirectEnd)];return(n=e.resourceTreeId?["*0"+e.resourceTreeId].concat(n):n).join(",").replace(Qt,"")}function sn(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){i.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){i.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),i}var cn={MEASURE:0,MARK:1};function ln(e){return[cn[e.entryType],Yt(e.startTime),Yt(e.duration)].join(",").replace(Qt,"")}function un(e){return[Yt(e.startTime),Yt(e.duration)].join(",")}function dn(e){return en($t(e,un))}var pn=function(){function e(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}return e.prototype.reset=function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]},e.prototype.attachTreeIds=function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))},e.prototype.getData=function(e){var t,n=this.userTimingEntries,i=this.longTasks,r=this.resourceTimingEntries;return{userTimingEntries:e?(t=n,en($t(t,ln))):n,longTasks:e?dn(i):i,resourceTimingEntries:e?rn(r):r.map(gn)}},e}(),hn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function gn(e){return hn.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function fn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function mn(e){return[Yt(e.renderStart),Yt(e.renderEnd),e.viewId].join(",").replace(Qt,"")}var vn,yn,bn=function(){function e(e,t,n){this.hostApis=e,this.statics=t,this.options=n,this.renderTimings=new Map,this.urlToTreeId=new Map,this.shouldPingCDN=!1,this.observables=new pn,this.isInitial=!0;var i=this.hostApis,r=i.document,o=i.AbortController;this.normalizeUrl=function(e){return function(t){return e.href=t,e.href}}(r.createElement("a")),this.abortController=new o}return e.prototype.pingCDN=function(){this.shouldPingCDN=!0},e.prototype.recordTreeId=function(e,t){this.options["enable-rs-timing"]&&this.urlToTreeId.set(this.normalizeUrl(t),e)},e.prototype.recordRenderStart=function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:Wt(this.hostApis.performance)})},e.prototype.recordRenderEnd=function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Wt(this.hostApis.performance))},e.prototype.startObserving=function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.options["enable-rs-timing"]&&this.emulateResourceTimingObserver(n),this.options["enable-rs-timing"]&&nn(this.observables.resourceTimingEntries,n)},e.prototype.stopObserving=function(){this.collectWhilePing&&this.collectWhilePing(),this.clearCollectTimer(!0),this.perfObserver&&this.perfObserver.disconnect(),this.observables.reset()},e.prototype.clearCollectTimer=function(e){this.currentCollect&&(this.currentCollect(e),clearTimeout(this.currentTimer),this.currentCollect=null,this.currentTimer=null)},e.prototype.collect=function(e){var t=this,n=this.isInitial;this.isInitial=!1;var i=this.hostApis,r=i.assign,o=i.PerformanceObserver,a=i.performance;this.currentCollect=function(i){var s=Object.create(null);o||(t.observables.userTimingEntries=sn(t.hostApis.performance,t.options,!0),t.options["enable-rs-timing"]&&nn(t.observables.resourceTimingEntries,a)),t.observables.attachTreeIds(t.urlToTreeId),t.urlToTreeId.clear(),r(s,t.observables.getData(t.options["compress-timings"]),t.snapshot,t.statics),t.observables.reset(),n?t.chainCollectForInitialLoad(s,e,i):e(s)},this.currentTimer=setTimeout((function(){t.currentCollect(!1),t.currentCollect=null,t.currentTimer=null}),this.options["beacon-timeout"])},e.prototype.chainCollectForInitialLoad=function(e,t,n){var i=this,r=this.hostApis,o=r.assign,a=r.Promise;if(o(e,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];if(n)["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart}var i=e.timing,r=e.navigation;i&&r?(t.navigationTimingApi=!0,wn.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1;return t}(this.hostApis.performance)),this.statics.pageLoadMode="PARTIAL",this.shouldPingCDN&&!n){this.collectWhilePing=function(){return t(e)};var s=new a((function(e){return setTimeout(e,i.options["async-plugins-timeout"],"timeout")})),c=this.shouldPingCDN?this.fetchCDN().then((function(t){return i.statics.usedCDN=t.usedCDN,o(e,t)})):a.resolve(null);a.race([c,s]).then((function(n){"timeout"===n&&i.abortController.abort(),t(e),i.collectWhilePing=null})),this.shouldPingCDN=!1}else t(e)},e.prototype.fetchCDN=function(){for(var e=this.hostApis,t=e.assign,n=e.document,i=e.fetch,r=e.Promise,o=this.abortController.signal,a=n.querySelectorAll("script"),s={usedCDN:{static_domain:"",ip_version:"",http_version:""}},c=0;c<a.length;c++){var l=a[c].src;if("string"==typeof l&&l.indexOf("licdn")>-1)return i(l,{method:"HEAD",signal:o}).then((function(e){return t(s.usedCDN,{static_domain:e.headers.get("X-CDN")||"",ip_version:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",http_version:e.headers.get("X-CDN-Proto")||""}),s}),(function(){return s}))}return r.resolve(s)},e.prototype.setupPerformanceObserver=function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,i=e.name,r=e.startTime,o=e.duration;"resource"===n?t.observables.resourceTimingEntries.push(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:r,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:r,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:i,startTime:r})}))})),this.observables.userTimingEntries=sn(this.hostApis.performance,this.options,!1);var n=["longtask"];this.options["enable-rs-timing"]&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})},e.prototype.emulateResourceTimingObserver=function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return nn(t.observables.resourceTimingEntries,e)})},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e,t={detailedRenderTimingEntries:this.options["compress-timings"]?(e=fn(this.renderTimings),en(e.reduce((function(e,t){return t.renderName in e?e[t.renderName]+="|"+mn(t):e[t.renderName]=mn(t),e}),{}))):fn(this.renderTimings),networkInformationMetrics:En(this.hostApis.connection)};return this.renderTimings.clear(),t},enumerable:!0,configurable:!0}),e}(),wn=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function En(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.COMPRESS_TIMINGS="compress-timings"}(yn||(yn={}));var _n=((vn={})["web-ui-framework"]="EMBER",vn["app-id"]="linkedin.rum.tracking",vn["app-version"]="unknown",vn["is-single-page-app"]=!0,vn["user-timing-mark-enabled"]=!1,vn["user-timing-measure-enabled"]=!0,vn["beacon-source"]="apps",vn["enable-rs-timing"]=!0,vn["async-plugins-timeout"]=5e3,vn["beacon-timeout"]=3e4,vn["compress-timings"]=!1,vn),Tn=function(e,t,n){this.pageLoadMode="INITIAL",this.webUIFramework=t["web-ui-framework"],this.timeSource=t["beacon-source"],this.isSinglePageApp=t["is-single-page-app"],this.appRenderMode=e["app-render-mode"],this.isAppRenderFailed=e["is-app-render-failed"],this.isSSL="https:"===n.api.location.protocol?1:0,this.treeId=n.treeID,this.isFromServiceWorker=n.isFromServiceWorker};var In=function(){function e(e,t,n){this.core=n,this.perfTimeWM=new WeakMap,this.boomerangStart=-1,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(n.host.api.assign({},_n),t),this.collector=new bn(n.host.api,new Tn(e,this.config,n.host),this.config),this.collector.startObserving()}return e.prototype.pingCDN=function(){this.collector.pingCDN()},e.prototype.recordTreeId=function(e,t){e&&this.collector.recordTreeId(e,t)},e.prototype.recordRenderStart=function(e,t){this.collector.recordRenderStart(e,t||e)},e.prototype.recordRenderEnd=function(e){this.collector.recordRenderEnd(e)},e.prototype.start=function(){this.collector.clearCollectTimer(!1);var e=Object.create(null);return this.perfTimeWM.set(e,Wt(this.core.host.api.performance)),e},e.prototype.end=function(e,t,n){var i=this;void 0===t&&(t=!1);var r=this.core.host.api,o=r.performance,a=r.assign,s=this.perfTimeWM.get(e);if(void 0===s)throw new Error("The rum token passed in is invalid");this.perfTimeWM.delete(e);var c=Wt(o),l=this.config["app-version"];this.collector.collect((function(e){var r=i.boomerangStart=e.navigationStart||i.boomerangStart,o=e.navigationStart||s,u=c-o;i.core.fireEvent({appId:i.config["app-id"],eventName:"RealUserMonitoringEvent",compressionFormat:i.config["compress-timings"]?"rum":void 0},(function(i){return a({pageKey:n||i.pageKey,isImpactedByHiddenWindow:t,appVersion:l,timeDone:u,navigationStart:o,boomerangStart:r,renderCompleteTime:c},e)}))}))},e.prototype.destroy=function(){this.collector.stopObserving(),this.core.destroy()},e}();"undefined"!=typeof location&&location.search.indexOf("_LI_MEASURE_DEBUG");class kn{constructor(e){if(!e)throw new Error("JetCore missing required only parameter (`trackingCore`)");this.cwtJetCoreInstance=new Gt(e)}bind(e,t){e||(e=[]),e.push("guest-seo"),window.addEventListener("error",n=>{const i={message:n.error.message,stack:n.error.stack,fileName:n.filename,lineNumber:n.lineno,columnNumber:n.colno};this.cwtJetCoreInstance.reportError(i,e,{callTreeId:t})}),window.addEventListener("unhandledrejection",n=>{const i={message:n.reason};this.cwtJetCoreInstance.reportError(i,e,{callTreeId:t})})}}class Sn{constructor({ingraphs:e}={}){if(this.ingraphs=e,!e)throw new Error("ControlInteractionTracking requires an Ingraphs instance");document.body.addEventListener("click",this._handleBodyClicks.bind(this),!0)}_handleBodyClicks(e){const{target:t}=e,n=function(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}(t,"[".concat("data-tracking-control-name","]"));if(null===n)return;const i=n.getAttribute("data-tracking-control-name");n.hasAttribute("data-tracking-client-ingraph")&&this._fireClientIngraphMetric(i)}_fireClientIngraphMetric(e){this.ingraphs.fireCounterIngraphMetric({metricsType:"controlInteractionEvent-".concat(e),sendBeacon:!0})}}const Cn=document.querySelector('meta[name="pageKey"]').content,An=document.getElementById("google-analytics-config"),{useLocationForDp:Pn,usePageTitle:Rn}=An.dataset;new Me({trackPageview:Cn,useLocationForDP:Pn,usePageTitle:Rn});const Nn=document.getElementById("config");let Dn,On,Ln,Un,xn,Mn,Bn,qn,Hn;function jn(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}Nn&&Nn.dataset&&(Dn=Nn.dataset.appId||"seo",On=Nn.dataset.appVersion,Ln=Nn.dataset.callTreeId,Un=Nn.dataset.customTrackingCode||void 0,xn=Nn.dataset.trackingPageType||void 0,Mn=void 0!==Nn.dataset.enableJet,Bn="string"==typeof Nn.dataset.jetTags&&Nn.dataset.jetTags.split(",")||[],qn=Nn.dataset.serviceName,Hn=void 0!==Nn.dataset.enableRumCore),jn("lazyloader",function(e={}){return F=F||new K(e),F}()),E(()=>{const n=t(document),i=A({appId:Dn,trackingCode:Un}),r=new le(window.IntersectionObserver,i,{componentList:[...document.querySelectorAll("[data-impression-id]")],onImpression:ue,onUnobservation:de});if(jn("tracking",i),jn("impressionTracking",r),Mn||Hn){const e=document.querySelector('meta[name="locale"]').content,t=new Vt({appId:Dn,appVersion:On,locale:e,service:qn,treeID:Ln,endpoint:"/li/track",api:{AbortController:AbortController,location:window.location,document:document,performance:performance,PerformanceObserver:PerformanceObserver,Promise:Promise,assign:Object.assign,fetch:fetch,sendBeacon:window.sendBeacon}}),r=new Ft(t);if(r.setCurrentContext({pageKey:n,pageInstance:Mt(n,i.generateTrackingId())}),Hn){const e=new In({"app-render-mode":"SSRSEO","is-app-render-failed":!1},{"is-single-page-app":!1,"navigation-timing-only":!0,"enable-rs-timing":!0,"enable-cdn-tracking":!0,"enable-pop-tracking":!0,"request-sampling-rate":1,"beacon-timeout":500,"web-ui-framework":"DUST"},r);e.end(e.start())}new kn(r).bind(Bn,Ln)}!function(){let t=["c1=2","c2=6402952","c3=","c4=","c5=","c6=","c15="];t.push("".concat("ns_","_t=").concat(Date.now())),t.push("".concat("ns_","c=").concat(document.characterSet||document.defaultCharset||"")),t.push("c8=".concat(e(document.title))),t.push("c7=".concat(e(document.URL)));const n=document.referrer&&document.referrer.split("?")[0]||"";t.push("c9=".concat(e(n)));const i="https://sb.scorecardresearch.com/b?"+t.join("&");let r=new Image;r.src=i}(),Hn||v||(v=new m({"is-single-page-app":!1,"navigation-timing-only":!0,"enable-rs-timing":!0,"enable-cdn-tracking":!0,"enable-pop-tracking":!0,"request-sampling-rate":1})),P(i,xn);const o=document.querySelector('meta[name="clientSideIngraphs"]');if(o){const{gaugeMetricEndpoint:e,counterMetricEndpoint:t}=o.dataset,i=new se({counterMetricEndpoint:t,gaugeMetricEndpoint:e,pageKey:n});new Sn({ingraphs:i}),jn("ingraphTracking",i),i.firePageLoadTimeMetric(),i.fireSeoPageViewMetric(),i.attachWebVitalsMetrics()}if(he(),document.querySelector(".global-alert-banner")){new At({appId:Dn,pageKey:n,trackingCode:Un||"",enableControlInteractionEvents:!0})}if(!!document.head.querySelector('link[rel="manifest"]')){new Pt((e,t)=>{i.fireTrackingEvent(e,t)}).getInstalledApps()}})}();
