!function(){"use strict";const e=window.encodeURIComponent,t="https://sb.scorecardresearch.com/b?",n="ns_";function i(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function r(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function a(e){return'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function s(){return window.performance&&window.performance.timing&&"function"==typeof window.performance.now?Math.round(window.performance.now())+window.performance.timing.navigationStart:(new Date).getTime()}class c{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 l extends c{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 d extends c{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 u extends c{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,a,o=!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(),a=this._config["rs-sample-rate"][e[t].initiatorType]||this._config["rs-sample-rate"].default,((o=this._requestSamplingRandVal<=this._config["request-sampling-rate"])||r<=a)&&(s.push(i),i.sampleMode="",o&&(i.sampleMode="requestSampled,"),r<=a&&(i.sampleMode+="rand"+a.toString()))}this._clearBuffer(),s.length>0&&(this.data.resourceTimingEntries=s)}}}class h extends c{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,a=[];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,a.push(r));return a}_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 g extends c{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="",a="",o="";this.data.usedCDN={static_domain:r,ip_version:o,http_version:o},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"),a=e.getResponseHeader("X-CDN-CLIENT-IP-VERSION"),o=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===a?"":a.toLowerCase(),i.data.usedCDN.http_version=null===o?"":o.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 c{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 f extends c{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 m extends c{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 v="https://tracking.corp.linkedin.com/li/track/",_=["https://www.linkedin-ei.com/lite/rum-track","/li/track","https://lca1-mobile-tracking-frontend-vip-1.corp.linkedin.com/li/track"];class y{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=o(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 l(this),new d(this),new u(this),new h(this),new m(this)],this._config["enable-cdn-tracking"]&&this._config.plugins.push(new g(this)),this._config["enable-pop-tracking"]&&this._config.plugins.push(new p(this)),"function"==typeof PerformanceObserver&&"function"==typeof PerformanceLongTaskTiming&&this._config.plugins.push(new f(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"]||_.indexOf(this._config["beacon-url"])>-1)&&(this._config["beacon-service"]="tracking",this._config["beacon-url"]=v)),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=s(),this._isInitialLoad=!1)}appRenderComplete(){this._renderCompleteCount++,this._beaconData.renderCompleteTime=s(),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:s()})}appViewRenderComplete(e,t){this._viewTimings[e]&&!this._viewTimings[e].renderEnd&&(this._viewTimings[e].renderEnd=s())}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=s(),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=o(i,t.getData()));for(e=0;e<this._allBeaconData.length;e++)n=o(this._allBeaconData[e],i),this._sendBeacon(n);this._allBeaconData=[]}_pushCurrentBeaconData(){var e;(e=this._getBeaconAndPluginData())&&this._allBeaconData.push(o({},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=o(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 w=null;var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var E,I=(function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==b||"undefined"!=typeof self&&self;var t,n,i,r,a=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){!function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,i=n&&!!window.requestIdleCallback,r={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=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""},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 a=void 0;try{a=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(a)return void(t&&t(a))}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(){this.queue.length>0&&(this.beacon(JSON.stringify(this.queue),null,this.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()>8||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=r}(0,e)})),o="li_trk_navigation",s="undefined";function c(){if(typeof window!==s&&typeof window.sessionStorage!==s)try{return JSON.parse(window.sessionStorage.getItem(o))}catch(e){}}function l(e){if(typeof window!==s&&typeof window.sessionStorage!==s)try{window.sessionStorage.setItem(o,JSON.stringify(e))}catch(e){}}(r=e.ControlInteractionType||(e.ControlInteractionType={}))[r.FOCUS=0]="FOCUS",r[r.UNFOCUS=1]="UNFOCUS",r[r.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",r[r.DRAG=3]="DRAG",r[r.PINCH_OPEN=4]="PINCH_OPEN",r[r.PINCH_CLOSE=5]="PINCH_CLOSE",r[r.DOUBLE_PRESS=6]="DOUBLE_PRESS",r[r.LONG_PRESS=7]="LONG_PRESS",r[r.SHORT_PRESS=8]="SHORT_PRESS",r[r.SWIPE_UP=9]="SWIPE_UP",r[r.SWIPE_DOWN=10]="SWIPE_DOWN",r[r.SWIPE_LEFT=11]="SWIPE_LEFT",r[r.SWIPE_RIGHT=12]="SWIPE_RIGHT",r[r.FLICK_UP=13]="FLICK_UP",r[r.FLICK_DOWN=14]="FLICK_DOWN",r[r.FLICK_LEFT=15]="FLICK_LEFT",r[r.FLICK_RIGHT=16]="FLICK_RIGHT",r[r.SHAKE=17]="SHAKE",r[r.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",r[r.HOVER=19]="HOVER",(i=e.PageViewPageType||(e.PageViewPageType={}))[i.FULL=1]="FULL",i[i.AJAX=2]="AJAX",i[i.IFRAME=3]="IFRAME",i[i.REDIRECT=4]="REDIRECT",i[i.API=5]="API",i[i.FORM=6]="FORM",i[i.ROUTER=7]="ROUTER",i[i.ERROR=8]="ERROR",(n=e.EventTypes||(e.EventTypes={}))[n.PageViewEvent=0]="PageViewEvent",n[n.NavigationEvent=1]="NavigationEvent",n[n.ExternalNavigationEvent=2]="ExternalNavigationEvent",n[n.ControlInteractionEvent=3]="ControlInteractionEvent",n[n.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var d="undefined"!=typeof window?window:null;d?function(){var e=d.crypto||d.msCrypto;if(!t&&e&&e.getRandomValues){var n=new Uint8Array(16);(t=function(){return e.getRandomValues(n),n})()}if(!t){var i=new Uint8Array(16);t=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=(t||0)>>>((3&e)<<3)&255;return i}}}():t=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var u=[],h=0;h<256;h++)u[h]=(h+256).toString(16).substr(1);function g(){var e=new Uint8Array(16),n=t();n[6]=15&n[6]|64,n[8]=63&n[8]|128;for(var i=0;i<16;i++)e[0+i]=n[i];return e}function p(){return function(e){for(var t=[],n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(""))}(g())}function f(e){return e?"urn:li:page:"+e:null}function m(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function v(e){return e?e.split(":").pop():null}function _(e,t){return e?{trackingId:t||p(),pageUrn:f(e)}:null}function y(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function w(e){return e&&e.referrer}function E(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var I=10,T=10,k=Object.assign||function(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 a=t[r];if(null!==a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])}return i},S=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 n=document.querySelector('meta[name="trk-pageinstance"]');if(n&&(this.config.initialPageInstance=y(n.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 i=function(){var e=window.location.pathname,t=e+window.location.search,n=window.location.href,i=c();if(!i)return null;for(var r=0;r<i.length;r++){var a=i[r].href;if(a===e||a===t||a===n){var o=i.splice(r,1)[0];return l(i),o}}return null}();i&&(e.previousPageInstance=i.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),a.init(),a.setProperty("disableSendBeacon",!1),a.setTrackingUrl(this.config.trackingUrl),a.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||I),a.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||T)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var r=this.config.prevControlName||(i?i.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,r),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 o="visibilitychange";document&&(void 0!==document.msHidden&&(o="msvisibilitychange"),document.addEventListener(o,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){if(e){var t,n,i=e.controlName,r=e.href;t={controlName:i,href:r,prevInstance:this.state.currentPageInstance},(n=c()||[]).push(t),l(n)}},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=v(this.state.currentPageInstance.pageUrn),a=i.uiControlPageKey||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:m(t,a),interactionType:e.ControlInteractionType[n]},i)},t.prototype.fireNavigationEvent=function(t,n,i){void 0===i&&(i={});var r=t?v(t.pageUrn):null,a=i.uiControlPageKey||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:m(n,a)},i)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var i=n.uiControlPageKey||v(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:m(t,i)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var i=(n=k({},n)).pageViewPageType||e.PageViewPageType.AJAX,r=v(this.state.currentPageInstance.pageUrn),a=t||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:a},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=k({},this.state.currentPageInstance),r=_(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,n,i){if(void 0===n&&(n={}),void 0===i&&(i=!1),!e||!t)throw new Error("eventName and body are required.");t=k({},t),(n=k({},n)).topicName||(n.topicName=e),n.pageInstance||(n.pageInstance=this.state.currentPageInstance);var r=k({pageKey:v(n.pageInstance.pageUrn),path:window.location.href,referer:w(document),trackingCode:E(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var o=k({pageInstance:n.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var s={requestHeader:r,header:o};this.config.mapHeaders&&(s=this.config.mapHeaders(s));var c=k(s,t),l={eventName:e,topicName:n.topicName,appId:this.config.appId};this.config.validationMode?a.validateEvent(l,c,(function(t){t&&console.error("Event "+e+" failed validation!")})):(a.sendEvent(l,c),i&&a.flush())},t.prototype.destroy=function(){a.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=_(n),new t(e)},t}();e.AppTrackingInstance=S,e.clearNavStorage=function(){window.sessionStorage.removeItem(o)},e.derivePageInstanceFromString=y,e.derivePageKeyFromUrn=v,e.generateControlUrn=m,e.generatePageInstance=_,e.generatePageUrn=f,e.generateTrackingId=p,e.getReferrer=w,e.getTrackingCode=E,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=g,e.webTrackingTransport=a}(t)}(E={exports:{}},E.exports),E.exports);function T(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}function k(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function S(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,a=t.left<=i&&t.left+t.width>=0;return r&&a}function P(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function A(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}let C=null;function D({appId:e="seo",trackingCode:t}={}){const n=i(document),r=P(window.location.href,"originalReferer"),a={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return t&&(a.userRequestHeaderProperties.trackingCode=t),r&&(a.userRequestHeaderProperties.referer=r),C||(C=I.AppTrackingInstance.createFromPageKey(a,n)),C.generateTrackingId=I.generateTrackingId,C}function O(e,t){if(t=t||"log","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 R=/ /g,N=/[\s\u0000<>"]|%00/,L=/\\/,U=/([.]|%2e){2}/i;let q=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 B(e){let t;if("string"!=typeof e)return O("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(O("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(R,"+")),!q.test(t))return O("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(N.test(t))return O("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n=t.split("?")[0];return L.test(n)||U.test(n)||U.test(decodeURI(n))?(O("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(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 M(e,{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o}={}){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=i,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!r){const e=A("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",a(e))}l.send(o)})}const j={className:"class"},K="A path to the asset must be provided";function z(e,t={}){if(!e)return Promise.reject(new Error(K));const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusable:"false"},t);return M(e,{sendCookies:!1,skipCsrfToken:!0}).then(e=>(function(e){return(new DOMParser).parseFromString(e,"image/svg+xml").firstChild})(e.responseText)).then(e=>(function(e,t={}){return Object.keys(t).map(n=>{const i=j[n]||n;e.setAttribute(i,t[n])}),e})(e,n))}const V="An icon tag must be provided to inlineIcon";function F(e,t){if(!e)return Promise.reject(new Error(V));const n=e.getAttribute("data-svg-class-name");return z(t,n?{className:n}:{}).then(t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t))}const W=["IMG","IFRAME","VIDEO","SCRIPT"],G="SCRIPT",X="ICON";class J{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:a="lazy-load",lazyloadedClassName:o="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=a,this.lazyloadedClassName=o,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,T(()=>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=k(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),e.tagName===G){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",n);const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach(t=>{e.classList.add(t)})}if(e.tagName===G){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(t.tagName===G||t.classList.contains(this.onLoadClassName)||S(t)){const n=B(t.getAttribute(this.delayedUrlAttributeName));n&&t.tagName===X?F(t,n).then(e=>{this.lazyloadElOnload(e),this.lazyloadElOnload(t)}).catch(()=>this.lazyloadOnerror(t)):n&&-1!==W.indexOf(t.tagName)?(t.onerror=this.lazyloadOnerror.bind(this,t),t.onload=t.oncanplay=this.lazyloadElOnload.bind(this,t),t.src=n):(n&&t.hasAttribute(this.delayedBackground)&&(t.style.backgroundImage='url("'.concat(n,'")')),this.lazyloadElOnload(t)),"VIDEO"===t.tagName&&(t.poster=B(t.getAttribute(this.delayedPosterAttributeName))),t.removeAttribute(this.delayedUrlAttributeName),this.elementCache.splice(e,1)}else e++}this.elementCache.length||this._detachEvents()}}let Q=null;class Y{constructor(){this.perfData=window.performance.timing,this.pageKey=i(document)}_getPageLoadTime(){if(!this.perfData)throw new Error("Cannot get page load time because performance.timing unavailable!");return this.perfData.loadEventEnd-this.perfData.navigationStart}fireIngraphsRequest(e){if(!e&&"string"!=typeof e)throw new Error("No API path provided!");if(!this.pageKey)throw new Error("No page-key found!");const t=this._getPageLoadTime();M(e,{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({pageKey:this.pageKey,metricsType:"pageLoadTime",metricsValue:t})})}}const $="[data-impression-id]",Z="data-impression-id",ee={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class te{constructor(e,t,{threshold:n=.9,root:i=null,rootMargin:r="0px",impressionEventCallback:a}={}){if(!("IntersectionObserver"in window))return ee;this.root=i,this.threshold=n,this.rootMargin=r,this.trackingInstance=t,this.queuedImpressions=[],this.impressionEventCallback=a;const o={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),o),this.observeComponents()}observeComponents(e=[...document.querySelectorAll($)]){this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e)})}unobserveComponents(e=[]){e.forEach(e=>{this.intersectionObserverInstance.unobserve(e),e.removeAttribute(Z)})}_returnImpressionMetaData(e){return e.getAttribute(Z)}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(({target:e})=>e),n=t.map(this._returnImpressionMetaData);this.queuedImpressions=this.queuedImpressions.concat(n),this.unobserveComponents(t),this._dispatchEvent()}}_dispatchEvent(){if(function(e,t){const n=r(document),i={};n&&(i.interfaceLocale=n);const a={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",a)}(this.trackingInstance,this.queuedImpressions),this.impressionEventCallback){const e=[...this.queuedImpressions];this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:e})}this.queuedImpressions=[]}handleDynamicElements(e=document){if(this.intersectionObserverInstance){const t=[...e.querySelectorAll($)];t.length>0&&this.observeComponents(t)}}}const ne="timezoneOffset",ie="screenWidth",re="screenHeight",ae="devicePixelRatio",oe="currentContext",se="/transactional-routing/createguestdeferreddeeplink",ce="csrfToken",le=/iPad|iPhone|iPod/;function de(){var e;e=navigator.userAgent,le.test(e)&&k(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={[ne]:(new Date).getTimezoneOffset(),[ie]:window.screen.width,[re]:window.screen.height,[ae]:window.devicePixelRatio,[oe]:e};try{navigator.sendBeacon(function(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=P(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,a]=e.split("#"),o="&";return i<0?o="?":i===e.length-1&&(o=""),a&&(a="#".concat(a)),"".concat(r).concat(o).concat(t,"=").concat(n).concat(a||"")}}(se,ce,a(A("JSESSIONID"))),JSON.stringify(t))}catch(e){}})(e.currentTarget.pathname))})}const ue="UA-62256447-1",he=["csrftoken"];class ge{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?ue:i,a=e.cookieDomain,o=e.useLocationForDP;if(!t)throw new Error("Please provide a valid page key for GA tracking");this.trackPageview=t,this.dimension5=n,this.cookieDomain=a,this.trackerId=r,this.useLocationForDP=o,ge.onload(this._loadAndFireGA.bind(this))}static onload(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}_loadGA(){var e,t,n,i,r,a;this.scriptLoaded||(e=window,t=document,n="script",i="ga",e.GoogleAnalyticsObject=i,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,r=t.createElement(n),a=t.getElementsByTagName(n)[0],r.async=1,r.src="//platform.linkedin.com/js/analytics.js",a.parentNode.insertBefore(r,a),this.scriptLoaded=!0)}_fireGA(){let e=[location.protocol,"//",location.host,location.pathname].join("");e+=this._getQueryString(),window.ga("create",this.trackerId,{cookieDomain:this.cookieDomain||"linkedin.com"}),window.ga("set","referrer",document.referrer),window.ga("set","location",e),window.ga("set","title","LinkedIn"),window.ga("set","forceSSL",!0),window.ga("set","anonymizeIp",!0),this.dimension5&&window.ga("set","dimension5",this.dimension5);const t=this.useLocationForDP?e:this.trackPageview;window.ga("send","pageview",{page:t})}_getQueryString(){return"?".concat(location.search.substring(1).split("&").filter(e=>{const t=e.split("=")[0].toLowerCase();return he.indexOf(t)<0}).join("&"))}_loadAndFireGA(){this._loadGA(),this._fireGA()}}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(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 me(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(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 we(e,t,n){return(we="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=ve(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 be=null;function Ee(e){if(!be){var t={appId:e.getAppId(),disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05};e.getTrackingCode()&&(t.userRequestHeaderProperties={trackingCode:e.getTrackingCode()}),be=I.AppTrackingInstance.createFromPageKey(t,e.getPageKey())}return be.generateTrackingId=I.generateTrackingId,be}var Ie=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}),Te=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}),ke=Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id"});function Se(e,t){for(var n=e;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}var Pe={VISITED:1,ACTIVE:2,DEFAULT:0},Ae={dismissButton:"artdeco-global-alert__dismiss",dismissIcon:"artdeco-global-alert__icon--dismissed"},Ce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pe(this,e),this._el=t,this._state=Pe.DEFAULT,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(ke.alertType),this._id=this._el.getAttribute(ke.alertId),this._elDismissBtn=this._el.querySelector(".".concat(Ae.dismissButton)),this._trackingOptions=n,this.init()}return me(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,i,r;Se(t.target,Ae.dismissButton)&&(e.dismissAction(),n=e,i=Ee(),r={header:{},requestHeader:{},alertUrn:n.getAlertId(),actionType:"DISMISS"},i.fireTrackingEvent("AlertActionEvent",r))}))}},{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===Pe.VISITED||this._state===Pe.ACTIVE)}},{key:"visited",value:function(){this._state=Pe.VISITED,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n,i=this._trackingOptions,r=i.enableControlInteractionEvents,a=i.controlInteractionEventsPrefix;this._state=Pe.ACTIVE,e=this,t=Ee(),n={header:{},requestHeader:{},alertUrn:e.getAlertId()},t.fireTrackingEvent("AlertImpressionEvent",n),this._makeAlertAccessible(!0),this._el.focus(),r&&this._el.querySelectorAll("button, a").forEach((function(e){var t="a"===e.tagName.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute("data-tracking-control-name","".concat(a,"-").concat(t))}))}},{key:"dismissAction",value:function(){}}]),e}(),De="LIcookiePolicyDisplays";function Oe(e){try{window.localStorage.setItem(De,e)}catch(t){document.cookie="".concat(De,"=").concat(e,";path=/")}}function Re(){var e,t,n;try{e=window.localStorage.getItem(De)}catch(i){t=De,e=((n=document.cookie.match("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")))?n[1]:void 0)||0}return parseInt(e,10)||0}var Ne=function(e){function t(){return pe(this,t),ye(this,ve(t).apply(this,arguments))}return function(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&&_e(e,t)}(t,e),me(t,[{key:"init",value:function(){we(ve(t.prototype),"init",this).call(this),Re()>=3&&we(ve(t.prototype),"visited",this).call(this)}},{key:"activate",value:function(){we(ve(t.prototype),"activate",this).call(this),Oe(Re()+1)}},{key:"dismissAction",value:function(){we(ve(t.prototype),"dismissAction",this).call(this),Oe(3)}}]),t}(Ce);var Le=function(){function e(t){pe(this,e),this._trackingOptions=t}return me(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return Ie[e.getAttribute(ke.alertType)]}(e)){case Ie.COOKIE_USAGE:return new Ne(e,this._trackingOptions);default:return new Ce(e,this._trackingOptions)}}}]),e}(),Ue=function(){function e(t){pe(this,e);var n=t.appId,i=t.pageKey,r=t.trackingCode;this._appId=n,this._pageKey=i,this._trackingCode=r}return me(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 qe={container:"artdeco-global-alert-container",containerOffset:"global-alert-offset",alert:"artdeco-global-alert",dismissButton:"artdeco-global-alert__dismiss",dismissIcon:"artdeco-global-alert__icon--dismissed"},Be="transition-in",He="transition-out";function xe(e,t){var n=Te[e.getAlertType()]||Te.UNKNOWN;return(Te[t.getAlertType()]||Te.UNKNOWN)-n}var Me=function(){function e(t){var n=t.appId,i=t.pageKey,r=t.trackingCode,a=t.enableControlInteractionEvents,o=void 0!==a&&a,s=t.controlInteractionEventsPrefix,c=void 0===s?"global-alerts":s;if(pe(this,e),!n)throw new Error("Missing config - appId");if(!i)throw new Error("Missing config - pageKey");if(this._el=document&&document.querySelector("#".concat(qe.container)),this._elOffsetList=document.querySelectorAll(".".concat(qe.containerOffset)),this._elAlertList=document.querySelectorAll(".".concat(qe.alert)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new Le({enableControlInteractionEvents:o,controlInteractionEventsPrefix:c}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,this._getTrackingInstance=Ee(new Ue({appId:n,pageKey:i,trackingCode:r})),!this._el&&!this._elAlertList.length)return!1;this.init()}return me(e,[{key:"init",value:function(){var e=this;this._elAlertList.forEach((function(t){e._alertInstance.push(e._alertFactoryInstance.getAlertInstance(t))})),this._alertInstance=this._alertInstance.sort(xe),this._el.classList.add(Be),document.body.classList.add(Be),this._el.addEventListener("click",(function(t){var n=t.target;Se(n,qe.dismissButton)&&(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(qe.alert));t.classList.add(He),t.style.setProperty("height","0px")}},{key:"destroy",value:function(){var e=this._el;this._el.classList.add(He),document.body.classList.add(He),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(Be),document.body.classList.remove(He)}),500)}}]),e}();class je{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]))}}const Ke=document.querySelector('meta[name="pageKey"]').content,ze=!!document.head.querySelector('meta[name="gaUseLocationForDP"]');new ge({trackPageview:Ke,useLocationForDP:ze});const Ve=document.getElementById("config");let Fe,We,Ge;function Xe(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}Ve&&Ve.dataset&&(Fe=Ve.dataset.appId||void 0,We=Ve.dataset.customTrackingCode||void 0,Ge=Ve.dataset.trackingPageType||void 0),Xe("lazyloader",function(e={}){return Q=Q||new J(e)}()),T(()=>{const a=D({appId:Fe,trackingCode:We});if(Xe("tracking",a),Xe("impressionTracking",new te(window.IntersectionObserver,a)),function(){let i=["c1=2","c2=6402952","c3=","c4=","c5=","c6=","c15="];i.push("".concat(n,"_t=").concat(Date.now())),i.push("".concat(n,"c=").concat(document.characterSet||document.defaultCharset||"")),i.push("c8=".concat(e(document.title))),i.push("c7=".concat(e(document.URL)));const r=document.referrer&&document.referrer.split("?")[0]||"";i.push("c9=".concat(e(r)));const a=t+i.join("&");let o=new Image;o.src=a}(),w||(w=new y({"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})),function(e,t="ajax",n){const i=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(document),a=r(document);let o={clientTimestamp:Date.now(),pageTag:i},s={};a&&(s.interfaceLocale=a),n&&(s.pageKey=n);const c={header:{},requestHeader:s,pageType:t,trackingInfo:o};e.fireTrackingEvent("PageViewEvent",c)}(a,Ge),null!==document.querySelector('meta[name="clientSideIngraphs"]')){(new Y).fireIngraphsRequest(function(){const e=document.querySelector('meta[name="apiPath"]');if(!e)throw new Error("No API path found!");return e.content}())}if(de(),document.querySelector(".global-alert-banner")){const e={appId:Fe||"seo",pageKey:i(document),trackingCode:We||"",enableControlInteractionEvents:!0};new Me(e)}if(!!document.head.querySelector('link[rel="manifest"]')){new je((e,t)=>{a.fireTrackingEvent(e,t)}).getInstalledApps()}})}();
