/*! For license information please see chunk.642.d59d1b919a39065e92a8.js.LICENSE.txt */
(self.webpackChunk_ember_auto_import_=self.webpackChunk_ember_auto_import_||[]).push([[642],{24(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>o})
var r=n(336),i=n.n(r),a=n(670)
class o extends(i()){compute(e){for(let t=0,n=e.length;t<n;t++)if(!1===(0,a.A)(e[t]))return e[t]
return e[e.length-1]}}},36(e,t){!function(e){"use strict"
function t(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=Array(t);n<t;n++)r[n]=e[n]
return r}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var r,i,a,o,s=[],c=!0,u=!1
try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n)
var r={}.toString.call(e).slice(8,-1)
return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),l=/^fs_/
function d(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+c(e)+".")
var t,n,r=u.exec(e)
return r&&(t=r[1].replace(l,""),n=r[2]),{id:n,type:t}}var f=/(?![^(]*\)),/,h=function e(t){var n=d(t),r=n.id,i=n.type,a={}
if("("===r.charAt(0)){for(var o,s=r.substring(1,r.length-1).split(f),c=0;o=s[c];++c)0===o.indexOf("urn")&&(s[c]=e(o))
r=s}return a[i]=r,a},p=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null}
function v(e){return"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(e,"base64").toString("binary"):atob(e)}var g,m,y,E,T,b,_={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},I={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},k=a(a(a({},I.GUEST,"li_gc"),I.MEMBER,"li_mc"),I.ENTERPRISE_UNBOUND,"li_ec"),w=a(a(a({},I.GUEST,"mypreferences/g/guest-cookies"),I.MEMBER,"settings/member-cookies"),I.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),N=Object.freeze(["dark","light"]),A=i((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var o in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=i,this.optedInConsentMap={},_)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===a})),C=(y=[_.ADVERTISING,_.ANALYTICS_AND_RESEARCH,_.FUNCTIONAL],E=[0,1,2,0],T=function(e){for(var t={},n=0;n<y.length;n++)t[y[n]]=E[e>>2*n&3]
return t},b=function(e){var t=0
return e>=0&&e<=3&&(t=E[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),r=e.match(n)
if(!r)return{error:"Invalid consent body encoding",consent:new A}
var i=T(parseInt(r[1],10)),a=new Date(1e3*parseInt(r[2],10)),o=b(parseInt(r[3],10))
return{error:null,consent:new A(i,a,t,o)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=h(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!r)return{error:"Invalid enterprise profile urn provided",consent:new A}
var i=r.enterpriseAccountId,a=r.enterpriseProfileId,s=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),c=e.match(s)
if(!c)return{error:"Invalid consent body encoding",consent:new A}
var u=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=o(e,4),r=t[1],s=t[2],c=t[3]
return r===i&&s===a&&c===n}))[0]
if(!u)return{error:null,consent:new A}
var l=T(u[0]),d=new Date(1e3*parseInt(c[2],10)),f=b(parseInt(c[3],10))
return{error:null,consent:new A(l,d,I.ENTERPRISE_UNBOUND,f)}}}),S=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),R=function(e){var t={}
for(var n in _)t[n]=e
return{error:null,consent:new A(t,null,null,e)}},O=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},D=function(e,t,n){var r=w[e],i=t.enterpriseProfileHash,a=t.enterpriseAppInstanceId,o=new URLSearchParams
e===I.ENTERPRISE_UNBOUND&&(i&&o.append("p",i),a&&o.append("iid",a)),"string"==typeof n&&(n=n.toLowerCase(),N.includes(n)&&o.append("li_theme",n))
var s=Array.from(o).length?"?"+o.toString():""
return"https://www.".concat(O(),"/").concat(r).concat(s)},M=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var i=null
try{i=v(e).match(S)}catch(e){}if(!i)return{error:"Invalid consent encoding",consent:new A}
var a=parseInt(i[1],10),o=i[2]
return 1===a?t===I.ENTERPRISE_UNBOUND?C.parseConsentBodyEnterpriseUnbound(o,n,r):C.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(a),consent:new A}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.enterpriseProfileUrn,i=n.enterpriseAppInstanceId
if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new A}
t=document.cookie}if(r&&!i||!r&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new A}
if(!(e!==I.ENTERPRISE_UNBOUND||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new A}
if(!e){var a=p(k[I.ENTERPRISE_UNBOUND],t)
if(a&&r&&i){var o=M(a,I.ENTERPRISE_UNBOUND,r,i)
if(o.consent.userMode===I.ENTERPRISE_UNBOUND||o.error)return o}e=p("liap",t)?p(k[I.MEMBER],t)?I.MEMBER:I.GUEST:p(k[I.GUEST],t)?I.GUEST:I.MEMBER}return function(e,t,n,r){var i=p(k[e],t)
return i?M(i,e,n,r):p(k[I.GUEST],t)||p(k[I.MEMBER],t)||p(k[I.ENTERPRISE_UNBOUND],t)?R(2):R(1)}(e,t,r,i)},L={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},x=i((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.guestPreferencesData,i=void 0===r?null:r,a=t.issuedAt,o=void 0===a?null:a,s=t.defaultConsent,c=void 0===s?0:s
for(var u in n(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},L)"number"!=typeof i[u]&&(i[u]=c),this.guestPreferencesMap[u]=1===i[u]})),B=(g=[L.SHARE_DATA_WITH_TRUSTED_PARTNERS],m=[0,1],{parseGuestPreferencesBody:function(e){var t=new RegExp(["^(\\d+)","(\\d+)"].join(";")),n=e.match(t)
if(!n)return{error:"Invalid guest preferences body encoding",guestPreferences:new x}
var r=n[1],i=function(e){for(var t={},n=0;n<g.length;n++){var r=g[n],i=e[n]
if(void 0===m[i])return
t[r]=m[i]}return t}(n[2])
if(!i)return{error:"Invalid guest preferences consent provided",guestPreferences:new x}
var a=new Date(1e3*r)
return{error:null,guestPreferences:new x({guestPreferencesData:i,issuedAt:a})}}}),U=new RegExp(["^(\\d+)","((?:.|\\d)+)"].join(";"))
e.GUEST_PREFERENCES=L,e.NON_ESSENTIAL_CATEGORIES=_,e.SETTINGS_COLOR_SCHEME=N,e.USER_MODE=I,e.getBannerData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=P(e,document.cookie,t),i=r.consent,a=e||i.userMode||I.GUEST
return{showBanner:!r.error&&!i.consentAvailable,userMode:a,managePreferenceUrl:D(a,t,n)}},e.getCookieConsent=P,e.getPreferenceStatuses=function(e){"string"!=typeof e&&(e=document.cookie)
var t=p("li_gp",e)
return t?function(e){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var t=null
try{t=v(e).match(U)}catch(e){}if(!t)return{error:"Invalid guest preferences encoding",guestPreferences:new x}
var n=parseInt(t[1],10),r=t[2]
return 1===n?B.parseGuestPreferencesBody(r):{error:"Invalid encoded guest preferences version ".concat(n),guestPreferences:new x}}(t):{error:null,guestPreferences:new x({defaultConsent:1})}},e.parseEncodedConsent=M,e.updateCookieConsent=function(e,t){var n=e.optedInConsentMap,r=e.updateSettings,i=e.userMode,a=e.xLiTrackPayload,o=e.enterpriseContext||{},s=o.enterpriseProfileHash,c=o.enterpriseAppInstanceId
t=t||function(e,t){}
var u=p(k[I.ENTERPRISE_UNBOUND],document.cookie)
n||t("optedInConsentMap is a required option",null)
var l=new XMLHttpRequest,d=new URLSearchParams
u&&c&&d.append("appInstanceId",c)
var f=Array.from(d).length?"?"+d.toString():""
l.open("POST","https://www.".concat(O(),"/cookie-consent/").concat(f)),l.setRequestHeader("Content-Type","application/json"),a&&l.setRequestHeader("X-LI-Track",a),u&&s&&l.setRequestHeader("x-li-identity",s),l.withCredentials=!0,l.onload=function(){200!==l.status?t("Request failed with status ".concat(l.status),null):t(null,l)},l.onerror=function(){t("Request failed with an error",l)}
var h={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}}
for(var v in _){var g=void 0
!0===n[v]?g=1:!1===n[v]&&(g=2),h.CATEGORIES[v]=g}l.send(JSON.stringify(h))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},88(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>r.isEqual})
var r=n(553)},151(e,t,n){"use strict"
var r
n.r(t),n.d(t,{CALL_TREE_ID_HEADER_NAME:()=>p,DEGRADATION_TRACKING_EVENT_FIELD:()=>b,DEGRADATION_TRACKING_EVENT_NAME:()=>d,DOWNSTREAM_REQUEST_FIELD:()=>_,DegradationTrackingMetadata:()=>H,DegradationTrackingMetadataOptionName:()=>P,FABRIC_HEADER_NAME:()=>m,FEATURE_DEGRADATION_METRIC_EVENT_NAME:()=>f,FailureTrackingMetadata:()=>X,INSTRUMENTATION_GUIDE_PROMPT:()=>l,InternalFailureProcessingMetadata:()=>J,InternalFeatureDegradationMetricEventProducer:()=>N,InternalFeatureDegradationMetricStore:()=>M,InvalidArgumentError:()=>x,JET_UNCLASSIFIED_ERROR_TAG:()=>k,METRIC_EMISSION_INTERVAL_IN_MS:()=>I,MICROSOFT_EDGE_REFERENCE_HEADER_NAME:()=>g,PEM_METADATA_HEADER_NAME:()=>E,PEM_RESPONSE_METADATA_HEADER_NAME:()=>y,PEM_RESPONSE_METATADA_HEADER_AVAILABILITY_KEY:()=>T,POINT_OF_PRESENCE_ID_HEADER_NAME:()=>v,ParsedResponseHeaders:()=>Y,PemTrackingService:()=>ee,RESPONSE_HEADERS:()=>h,ResponseDetails:()=>Q,RetryableDegradationTrackingMetadata:()=>V,SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:()=>L,calculateSuccessfulDownstreamCallsRatio:()=>z,createDegradeEvents:()=>j,determineResponseErrorType:()=>W,generateSpanSuffix:()=>q,parseDownstreamEndpointPathname:()=>K,refineServerErrorType:()=>G,teardown:()=>$,validateKey:()=>F,validateProductName:()=>U})
var i=new Uint8Array(16)
function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return r(i)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i
for(var s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1))
const u=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)()
if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0
for(var i=0;i<16;++i)t[n+i]=r[i]
return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()
if(!function(e){return"string"==typeof e&&o.test(e)}(n))throw TypeError("Stringified UUID is invalid")
return n}(r)},l="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",d="FeatureDegradeEvent",f="FeatureDegradationMetricEvent",h={CALL_TREE_ID:"x-li-uuid",POINT_OF_PRESENCE_ID:"x-li-pop",MICROSOFT_EDGE_REFERENCE:"x-msedge-ref",FABRIC:"x-li-fabric",PEM_RESPONSE_METADATA:"x-li-pem-resp-meta",CONTENT_TYPE:"content-type",CDN_CACHE:"x-cache"},p=h.CALL_TREE_ID,v=h.POINT_OF_PRESENCE_ID,g=h.MICROSOFT_EDGE_REFERENCE,m=h.FABRIC,y=h.PEM_RESPONSE_METADATA,E="X-LI-PEM-Metadata",T="availability",b={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},_={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},I=6e4,k="pem-unclassified-error"
class w{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class N extends w{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const r={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback(f,r,t.pageInstance,e)}))}}class A{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class C{constructor(e){this.featureMetricIdentifier=e}}function S(e){return JSON.stringify(e,Object.keys(e).sort())}class R extends A{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=S(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const r=new O(e)
t(r),this.featureCallCounts.set(n,r)}}}class O extends C{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class D{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class M extends D{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,r)=>{var i
let a=n.featureCallCounts.get(r)
void 0!==a?a=a.mergeCallCounts(e):null===(i=this.metrics.get(t))||void 0===i||i.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=S(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const r=new R(e)
t(r),this.metrics.set(n,r)}}}var P
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(P||(P={}))
const L=new Set(Object.values(P))
class x extends Error{constructor(e){super(e),Object.setPrototypeOf(this,x.prototype)}}function B(e){return 0===e.length||!e.trim()}function U(e){if("string"!=typeof e)throw new x("The product name must be a string. ".concat(l,"."))
if(B(e))throw new x("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(l,"."))
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new x("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(l,"."))
return e}function F(e){if("string"!=typeof e)throw new x("Keys must be strings. ".concat(l,"."))
if(B(e))throw new x("Keys should not be blank. ".concat(l,"."))
if(/[^a-z0-9-]/.test(e))throw new x("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(l,"."))
return e}class H{constructor(e,t,n){var r,i,a
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=F(e),this._defaultDegradationKey=F(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new x("DegradationTrackingMetadata options should be an object. ".concat(l,"."))
const o=n.productName
o&&(this._productName=U(o))
const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new x("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(l,"."))
var n
if(429===e||999===e)throw new x("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."))
if(t===P.NonDegradedResponseCodes&&e>=400&&e<500)throw new x("For server responses that have a status code, PEM does not consider 4xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(P.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(P.NonDegradedResponseCodes," option. ")+"".concat(l,"."))}
if(void 0!==e&&!Array.isArray(e))throw new x("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(P.NonDegradedResponseCodes," option. ")+"".concat(l,"."))
if(void 0!==t&&!Array.isArray(t))throw new x("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(P.AdditionalDegradedResponseCodes," option. ").concat(l,"."))
null==e||e.forEach((e=>n(e,P.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,P.AdditionalDegradedResponseCodes)))
const r=new Set(t),i=new Set(e)
if([...r].some((e=>i.has(e))))throw new x("Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes "+"don't have any overlapping response codes. ".concat(l,"."))}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(a=n.enableSessionRecording)&&void 0!==a&&a,function(e){Object.keys(e).forEach((e=>{if(!L.has(e))throw new x("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(l))}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(H.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class V{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new M,this._lastRequestMetricStore=new M,this._requestsMade=0,this._trackingId=u()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(V.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}function K(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),r=n.split("/").filter((e=>e.length))
if(!t.length)return r.join("/")
const i=[]
for(let a=r.length-1;a>=0;a--){const e=r[a],n=t.indexOf(e)
n>=0?t.splice(n,1):i.push(e)}return i.reverse().join("/")}function G(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}function W(e){const t=e.responseError,n=e.parsedHeaders,r=e.responseCode
if(null!==r){if(429===r||999===r)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&r&&r>=400&&r<600)return"BLOCKED_BY_CLIENT_PROXY"
if((i=r)>=400&&i<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(r)
if(function(e){return e>=500&&e<600}(r))return G(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(r,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var i,a
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"
if(t instanceof TypeError&&t.message.includes("Network request timed out"))return"CLIENT_TIMEOUT"
if(t.message.indexOf('Unexpected identifier "NotReadableError"')>=0)return"NOT_READABLE_ERROR"
if(t instanceof RangeError&&(a=t).message.indexOf("Maximum call stack size exceeded")>=0&&a.stack&&a.stack.indexOf("eval at executeScript")>=0)return"CLIENT_EXTENSION_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}function j(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const i=[],a=r.responseCode
return t.forEach((t=>{const o=t.getDegradationKey(a),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,a),c={endpointPath:e,degradationKey:o,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode}
a&&(c.responseCode=a)
const u=r.parsedHeaders
u.callTreeId&&(c.responseCallTreeId=u.callTreeId),(null==u?void 0:u.pointOfPresenceId)&&(c.pointOfPresenceId=u.pointOfPresenceId),(null==u?void 0:u.microsoftEdgeReference)&&(c.microsoftEdgeReference=u.microsoftEdgeReference),(null==u?void 0:u.fabric)&&(c.fabric=u.fabric),V.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),i.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),i}function q(e){if(!e)return"-success"
switch(e){case"SERVER_ERROR":case"GRAPHQL_FULL_FAILURE":return"-server-error"
case"CLIENT_ERROR":case"TOO_MANY_REQUESTS":return"-client-error"
default:return"-misc-error"}}function z(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}class X extends H{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===X.name}}class J{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!V.isRetryableDegradationTrackingMetadata(e)&&!H.isDegradationTrackingMetadata(e)&&!X.isFailureTrackingMetadata(e))throw new x("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new x("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=H.isDegradationTrackingMetadata(e)?e:void 0
V.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=e>=300&&e<400,r=this._nonDegradedResponseCodes.has(e)
return!n&&!t&&!r}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e||"CLIENT_EXTENSION_ERROR"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new x("You attempted to specify ".concat(e," as an additional degraded response code for the '").concat(this.featureKey,"' feature, ")+"however it is also specified in the non-degraded response codes for that feature. Please decide whether "+"you want to consider ".concat(e," responses a degraded state or not. ").concat(l,"."))
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new x("Degradation key overrides must consist of an array of responseCodesToOverride "+"and a string degradationKey. ".concat(l,"."))
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new x("A degradation key override was specified for ".concat(t,", but that response code isn't considered degraded. ")+"Please add it to additionalDegradedResponseCodes if you want it to count against your availability.")
this._degradationKeyByResponseCode.set(t,e.degradationKey)}))}))}}class Y{constructor(e){const t=new Map
let n=null
if(e instanceof Map)n=e
else if(e&&"object"==typeof e){n=new Map
for(const[t,r]of Object.entries(e))"string"==typeof t&&"string"==typeof r&&n.set(t,r)}null==n||n.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get(h.CALL_TREE_ID)||null,this._pointOfPresenceId=t.get(h.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=t.get(h.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=t.get(h.FABRIC)||null,this._responseMetadata=t.get(h.PEM_RESPONSE_METADATA)||null,this._downstreamAvailability=function(e){if(null==e)return 1
const t=e.split(",")
for(const n of t){const e=n.split("=",2)
if(2===e.length&&e[0]===T){const t=parseFloat(e[1])
if(t>=0&&t<=1)return t}}return 1}(this._responseMetadata),this._contentType=t.get(h.CONTENT_TYPE)||null,this._cdnCacheMetadata=t.get(h.CDN_CACHE)||null,this._rawHeaders=n||null}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}get contentType(){return this._contentType}get cdnCacheMetadata(){return this._cdnCacheMetadata}get responseMetadata(){return this._responseMetadata}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}get rawHeaders(){return this._rawHeaders}}class Q{constructor(e,t,n,r){this._responseCode=void 0!==e?e:null,this._parsedResponseHeaders=t?new Y(t):new Y,this._responseError=n||null,this._downstreamServiceErrorCode=r}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const Z="undefined"==typeof FastBoot
function $(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class ee{constructor(e,t,n){this._featureMetricStore=new M,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new N(this._featureMetricStore,t),Z&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),I),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,r,i){let a,o=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{o=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),(!1===e.ok||e.status<200||o>=300)&&(a=e)})).catch((e=>{throw a=e,e})).finally((()=>{this._trackResponse(e,o,t,c,i,s,a)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,a){const o=t.status,s=t.getAllResponseHeaders(),c=new Map
s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift()
if(n){const e=t.join(": ")
c.set(n.toLowerCase(),e)}}))
const u=a?null:t,l=this._createFailureProcessingMetadata(r)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,o,n,l,i,c,u)}startRetryFlow(e){return ee.startRetryFlow(e)}static startRetryFlow(e){return new V(e)}completeRetryFlow(e){if(!V.isRetryableDegradationTrackingMetadata(e))throw new x("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,i,a,o){const s=new Q(t,a,o),c=s.parsedHeaders,u=W(s),l=K(e,n),f=new Set,h=new Set
r.forEach((e=>{f.add(e.productName),h.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(u)&&(e.isCountedAgainstAvailability(u,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:u,responseFabric:c.fabric},i,z(u,c)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},i))})),u&&(this._reportErrorIfUnclassified(o,u,t,f,h),j(l,r,u,s).forEach((e=>{this._fireEventCallback(d,e,i)})))}_reportErrorIfUnclassified(e,t,n,r,i){var a
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=[k]
let n
r.forEach((e=>t.push("pem-product-".concat(e)))),i.forEach((e=>t.push("pem-feature-".concat(e)))),n=e instanceof Error?e:new Error("Could not classify jQuery response: ".concat(JSON.stringify(e))),null===(a=this._jetErrorCallback)||void 0===a||a.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new x("Please specify a non-empty array of degradation tracking metadata. ".concat(l,"."))
const t=new Set
return e.map((e=>{if(!H.isDegradationTrackingMetadata(e)&&!V.isRetryableDegradationTrackingMetadata(e))throw new x("Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ".concat(l,"."))
const n=U(e.productName||this._defaultProductName),r="".concat(n,"!!").concat(e.featureKey)
if(t.has(r))throw new x("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(r),new J(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new x("Please specify the queried IDs to remove from the request URL, or use an empty array if there "+"are none. ".concat(l,"."))
return e}}},164(e,t,n){"use strict"
n.r(t),n.d(t,{BreadcrumbBuilder:()=>Qa,BrowserTransporter:()=>Ya,ClientBreadcrumb:()=>$a,ClientBreadcrumbType:()=>Za,ErrorType:()=>Zs,FALLBACK_PAGEKEY:()=>U,FlushMode:()=>ic,GENERIC_TRACER_LIX_PATTERN:()=>Oo,GenericClientBreadcrumb:()=>to,Heap:()=>mn,HttpProtocolType:()=>yo,JetCore:()=>mo,OTEL_JET_ORIGIN_TAG:()=>ho,ParsedResponseHeaders:()=>tc,PerfMeasurement:()=>cc,RESPONSE_HEADERS:()=>ec,ResourceProgressOriginalMetricsType:()=>To,ResourceProgressType:()=>Eo,ResourceRequestType:()=>bo,RumCore:()=>ac,TrackingCore:()=>fo,_eventEmitter:()=>wt,allPromisesSettled:()=>cn,arrayFromSet:()=>un,arrayToBase64:()=>Wt,base64ToBytes:()=>Nn,castBreadcrumbIntoType:()=>ro,cleanObject:()=>Sn,copyContext:()=>en,dedupeTrackingScopesAndExtractBreadcrumbs:()=>ao,deepClone:()=>gn,deleteIDB:()=>ln,determinErrorType:()=>nc,emitJETError:()=>pn,extractBreadcrumbInTrackingScope:()=>io,extractTransferInfo:()=>oo,extractVersionFromConfig:()=>sn,generateBase64UUID:()=>jt,generateByteUUID:()=>Ht,generateControlUrn:()=>Qt,generateNodeProcessJetPayload:()=>po,generatePageInstance:()=>Yt,generatePageUrn:()=>Zt,generateResourceResponseContext:()=>rc,generateRfc4122UUID:()=>zt,generateTrackingId:()=>qt,generateUUID:()=>Ut,getBase64FromBase64Url:()=>En,getBsCookieInfo:()=>vn,getDynamicTransporterSupportStatusFromLixValue:()=>_n,getValidTransporterKeys:()=>Tn,hexToBytes:()=>An,isBase64TrackingId:()=>Kt,isFalsyOrInvalid:()=>kn,isFlushOnCloseBrowserTabEnabled:()=>hn,isGrpcRestControlMode:()=>Mn,isObjectNonEmpty:()=>In,isValidGrpcRestLixVariant:()=>Dn,operateSequenceNumberViaIDB:()=>dn,parseStringPageInstance:()=>$t,parseTrackingId:()=>Jt,queryStringToContext:()=>on,queryStringToControlUrn:()=>an,removeNullAndUndefined:()=>On,removeUndefinedValues:()=>Rn,resolveCNDomain:()=>yn,sanitizeURL:()=>wn,serializePageInstance:()=>tn,shouldUseXHR:()=>fn,splitTrackingScopesByTransporters:()=>bn,stringToBytes:()=>Cn,stringifyTrackingId:()=>Xt,uint8ToBase64:()=>Gt,uint8ToByteString:()=>Ft})
var r,i,a=["transporterKeys"],o=["breadcrumb"],s=["$type"],c=["requestStart"],u=["requestTime","viewNames","requestType","requestTag"],l=["requestStart"],d=["requestStart"],f=["requestTime","viewNames","requestType"]
function h(e,t,n){if(g())return Reflect.construct.apply(null,arguments)
var r=[null]
r.push.apply(r,t)
var i=new(e.bind.apply(e,r))
return n&&E(i,n.prototype),i}function p(e,t,n){return t=m(t),function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return v(e)}(e,g()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var r,i,a,o,s=[],c=!0,u=!1
try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return 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){D(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}function I(e,t){if(null==e)return{}
var n,r,i=function(e,t){if(null==e)return{}
var n,r,i={},a=Object.keys(e)
for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n])
return i}(e,t)
if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e)
for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=N(e))||t&&e&&"number"==typeof e.length){n&&(e=n)
var r=0,i=function(){}
return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function w(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return A(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
return r}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function O(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){var t=function(e){if("object"!=C(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=C(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==C(t)?t:String(t)}function P(){P=function(){return t}
var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag"
function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),s=new O(r||[])
return i(o,"_invoke",{value:N(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l
var f="suspendedStart",h="suspendedYield",p="executing",v="completed",g={}
function m(){}function y(){}function E(){}var T={}
u(T,o,(function(){return this}))
var b=Object.getPrototypeOf,_=b&&b(b(D([])))
_&&_!==n&&r.call(_,o)&&(T=_)
var I=E.prototype=m.prototype=Object.create(T)
function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,a,o,s){var c=d(e[i],e,a)
if("throw"!==c.type){var u=c.arg,l=u.value
return l&&"object"==C(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var a
i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function N(t,n,r){var i=f
return function(a,o){if(i===p)throw new Error("Generator is already running")
if(i===v){if("throw"===a)throw o
return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate
if(s){var c=A(s,r)
if(c){if(c===g)continue
return c}}if("next"===r.method)r.sent=r._sent=r.arg
else if("throw"===r.method){if(i===f)throw i=v,r.arg
r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg)
i=p
var u=d(t,n,r)
if("normal"===u.type){if(i=r.done?v:h,u.arg===g)continue
return{value:u.arg,done:r.done}}"throw"===u.type&&(i=v,r.method="throw",r.arg=u.arg)}}}function A(t,n){var r=n.method,i=t.iterator[r]
if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g
var a=d(i,t.iterator,n.arg)
if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g
var o=a.arg
return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]}
1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o]
if(n)return n.call(t)
if("function"==typeof t.next)return t
if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n
return n.value=e,n.done=!0,n}
return a.next=a}}throw new TypeError(C(t)+" is not iterable")}return y.prototype=E,i(I,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:y,configurable:!0}),y.displayName=u(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor
return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},k(w.prototype),u(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise)
var o=new w(l(e,n,r,i),a)
return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(I),u(I,c,"Generator"),u(I,o,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[]
for(var r in t)n.push(r)
return n.reverse(),function e(){for(;n.length;){var r=n.pop()
if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0
var e=this.tryEntries[0].completion
if("throw"===e.type)throw e.arg
return this.rval},dispatchException:function(t){if(this.done)throw t
var n=this
function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion
if("root"===o.tryLoc)return i("end")
if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc")
if(c&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)
if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally")
if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n]
if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i
break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null)
var o=a?a.completion:{}
return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg
return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t]
if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t]
if(n.tryLoc===e){var r=n.completion
if("throw"===r.type){var i=r.arg
R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function L(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function x(e){return function(){var t=this,n=arguments
return new Promise((function(r,i){var a=e.apply(t,n)
function o(e){L(a,r,i,o,s,"next",e)}function s(e){L(a,r,i,o,s,"throw",e)}o(void 0)}))}}var B,U="unknown",F=new Uint8Array(16)
function H(){if(!B&&!(B="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return B(F)}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i
function K(e){return"string"==typeof e&&V.test(e)}for(var G=[],W=0;W<256;++W)G.push((W+256).toString(16).slice(1))
function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase()}function q(e){if(!K(e))throw TypeError("Invalid UUID")
var t,n=new Uint8Array(16)
return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function z(e,t,n){function r(e,r,i,a){var o
if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e))
for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n))
return t}(e)),"string"==typeof r&&(r=q(r)),16!==(null===(o=r)||void 0===o?void 0:o.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")
var s=new Uint8Array(16+e.length)
if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){a=a||0
for(var c=0;c<16;++c)i[a+c]=s[c]
return i}return j(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function X(e){return 14+(e+64>>>9<<4)+1}function J(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Y(e,t,n,r,i,a){return J((o=J(J(t,e),J(r,a)))<<(s=i)|o>>>32-s,n)
var o,s}function Q(e,t,n,r,i,a,o){return Y(t&n|~t&r,e,t,i,a,o)}function Z(e,t,n,r,i,a,o){return Y(t&r|n&~r,e,t,i,a,o)}function $(e,t,n,r,i,a,o){return Y(t^n^r,e,t,i,a,o)}function ee(e,t,n,r,i,a,o){return Y(n^(t|~r),e,t,i,a,o)}z("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e))
e=new Uint8Array(t.length)
for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var a=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16)
t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[X(t)-1]=t
for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,u=i,l=a
n=Q(n,r,i,a,e[o],7,-680876936),a=Q(a,n,r,i,e[o+1],12,-389564586),i=Q(i,a,n,r,e[o+2],17,606105819),r=Q(r,i,a,n,e[o+3],22,-1044525330),n=Q(n,r,i,a,e[o+4],7,-176418897),a=Q(a,n,r,i,e[o+5],12,1200080426),i=Q(i,a,n,r,e[o+6],17,-1473231341),r=Q(r,i,a,n,e[o+7],22,-45705983),n=Q(n,r,i,a,e[o+8],7,1770035416),a=Q(a,n,r,i,e[o+9],12,-1958414417),i=Q(i,a,n,r,e[o+10],17,-42063),r=Q(r,i,a,n,e[o+11],22,-1990404162),n=Q(n,r,i,a,e[o+12],7,1804603682),a=Q(a,n,r,i,e[o+13],12,-40341101),i=Q(i,a,n,r,e[o+14],17,-1502002290),n=Z(n,r=Q(r,i,a,n,e[o+15],22,1236535329),i,a,e[o+1],5,-165796510),a=Z(a,n,r,i,e[o+6],9,-1069501632),i=Z(i,a,n,r,e[o+11],14,643717713),r=Z(r,i,a,n,e[o],20,-373897302),n=Z(n,r,i,a,e[o+5],5,-701558691),a=Z(a,n,r,i,e[o+10],9,38016083),i=Z(i,a,n,r,e[o+15],14,-660478335),r=Z(r,i,a,n,e[o+4],20,-405537848),n=Z(n,r,i,a,e[o+9],5,568446438),a=Z(a,n,r,i,e[o+14],9,-1019803690),i=Z(i,a,n,r,e[o+3],14,-187363961),r=Z(r,i,a,n,e[o+8],20,1163531501),n=Z(n,r,i,a,e[o+13],5,-1444681467),a=Z(a,n,r,i,e[o+2],9,-51403784),i=Z(i,a,n,r,e[o+7],14,1735328473),n=$(n,r=Z(r,i,a,n,e[o+12],20,-1926607734),i,a,e[o+5],4,-378558),a=$(a,n,r,i,e[o+8],11,-2022574463),i=$(i,a,n,r,e[o+11],16,1839030562),r=$(r,i,a,n,e[o+14],23,-35309556),n=$(n,r,i,a,e[o+1],4,-1530992060),a=$(a,n,r,i,e[o+4],11,1272893353),i=$(i,a,n,r,e[o+7],16,-155497632),r=$(r,i,a,n,e[o+10],23,-1094730640),n=$(n,r,i,a,e[o+13],4,681279174),a=$(a,n,r,i,e[o],11,-358537222),i=$(i,a,n,r,e[o+3],16,-722521979),r=$(r,i,a,n,e[o+6],23,76029189),n=$(n,r,i,a,e[o+9],4,-640364487),a=$(a,n,r,i,e[o+12],11,-421815835),i=$(i,a,n,r,e[o+15],16,530742520),n=ee(n,r=$(r,i,a,n,e[o+2],23,-995338651),i,a,e[o],6,-198630844),a=ee(a,n,r,i,e[o+7],10,1126891415),i=ee(i,a,n,r,e[o+14],15,-1416354905),r=ee(r,i,a,n,e[o+5],21,-57434055),n=ee(n,r,i,a,e[o+12],6,1700485571),a=ee(a,n,r,i,e[o+3],10,-1894986606),i=ee(i,a,n,r,e[o+10],15,-1051523),r=ee(r,i,a,n,e[o+1],21,-2054922799),n=ee(n,r,i,a,e[o+8],6,1873313359),a=ee(a,n,r,i,e[o+15],10,-30611744),i=ee(i,a,n,r,e[o+6],15,-1560198380),r=ee(r,i,a,n,e[o+13],21,1309151649),n=ee(n,r,i,a,e[o+4],6,-145523070),a=ee(a,n,r,i,e[o+11],10,-1120210379),i=ee(i,a,n,r,e[o+2],15,718787259),r=ee(r,i,a,n,e[o+9],21,-343485551),n=J(n,s),r=J(r,c),i=J(i,u),a=J(a,l)}return[n,r,i,a]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(X(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32
return n}(e),8*e.length))}))
var te={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function ne(e,t,n){if(te.randomUUID&&!t&&!e)return te.randomUUID()
var r=(e=e||{}).random||(e.rng||H)()
if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0
for(var i=0;i<16;++i)t[n+i]=r[i]
return t}return j(r)}function re(e,t,n,r){switch(e){case 0:return t&n^~t&r
case 1:case 3:return t^n^r
case 2:return t&n^t&r^n&r}}function ie(e,t){return e<<t|e>>>32-t}z("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520]
if("string"==typeof e){var r=unescape(encodeURIComponent(e))
e=[]
for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e))
e.push(128)
for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),c=0;c<o;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3]
s[c]=u}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295
for(var d=0;d<o;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h]
for(var p=16;p<80;++p)f[p]=ie(f[p-3]^f[p-8]^f[p-14]^f[p-16],1)
for(var v=n[0],g=n[1],m=n[2],y=n[3],E=n[4],T=0;T<80;++T){var b=Math.floor(T/20),_=ie(v,5)+re(b,g,m,y)+E+t[b]+f[T]>>>0
E=y,y=m,m=ie(g,30)>>>0,g=v,v=_}n[0]=n[0]+v>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))
var ae=Uint8Array,oe=Uint16Array,se=Int32Array,ce=new ae([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ue=new ae([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),le=new ae([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),de=function(e,t){for(var n=new oe(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1]
var i=new se(n[30])
for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r
return{b:n,r:i}},fe=de(ce,2),he=fe.b,pe=fe.r
he[28]=258,pe[258]=28
for(var ve=de(ue,0).r,ge=new oe(32768),me=0;me<32768;++me){var ye=(43690&me)>>1|(21845&me)<<1
ye=(61680&(ye=(52428&ye)>>2|(13107&ye)<<2))>>4|(3855&ye)<<4,ge[me]=((65280&ye)>>8|(255&ye)<<8)>>1}var Ee=function(e,t,n){for(var r=e.length,i=0,a=new oe(t);i<r;++i)e[i]&&++a[e[i]-1]
var o,s=new oe(t)
for(i=1;i<t;++i)s[i]=s[i-1]+a[i-1]<<1
if(n){o=new oe(1<<t)
var c=15-t
for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],l=t-e[i],d=s[e[i]-1]++<<l,f=d|(1<<l)-1;d<=f;++d)o[ge[d]>>c]=u}else for(o=new oe(r),i=0;i<r;++i)e[i]&&(o[i]=ge[s[e[i]-1]++]>>15-e[i])
return o},Te=new ae(288)
for(me=0;me<144;++me)Te[me]=8
for(me=144;me<256;++me)Te[me]=9
for(me=256;me<280;++me)Te[me]=7
for(me=280;me<288;++me)Te[me]=8
var be=new ae(32)
for(me=0;me<32;++me)be[me]=5
var _e=Ee(Te,9,0),Ie=Ee(be,5,0),ke=function(e){return(e+7)/8|0},we=function(e,t,n){n<<=7&t
var r=t/8|0
e[r]|=n,e[r+1]|=n>>8},Ne=function(e,t,n){n<<=7&t
var r=t/8|0
e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Ae=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]})
var i=n.length,a=n.slice()
if(!i)return{t:Pe,l:0}
if(1==i){var o=new ae(n[0].s+1)
return o[n[0].s]=1,{t:o,l:1}}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001})
var s=n[0],c=n[1],u=0,l=1,d=2
for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};l!=i-1;)s=n[n[u].f<n[d].f?u++:d++],c=n[u!=l&&n[u].f<n[d].f?u++:d++],n[l++]={s:-1,f:s.f+c.f,l:s,r:c}
var f=a[0].s
for(r=1;r<i;++r)a[r].s>f&&(f=a[r].s)
var h=new oe(f+1),p=Ce(n[l-1],h,0)
if(p>t){r=0
var v=0,g=p-t,m=1<<g
for(a.sort((function(e,t){return h[t.s]-h[e.s]||e.f-t.f}));r<i;++r){var y=a[r].s
if(!(h[y]>t))break
v+=m-(1<<p-h[y]),h[y]=t}for(v>>=g;v>0;){var E=a[r].s
h[E]<t?v-=1<<t-h[E]++-1:++r}for(;r>=0&&v;--r){var T=a[r].s
h[T]==t&&(--h[T],++v)}p=t}return{t:new ae(h),l:p}},Ce=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Se=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new oe(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a
else{if(!i&&a>2){for(;a>138;a-=138)o(32754)
a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304)
a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i)
a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},Re=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r]
return n},Oe=function(e,t,n){var r=n.length,i=ke(t+2)
e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1]
for(var a=0;a<r;++a)e[i+a+4]=n[a]
return 8*(i+4+r)},De=function(e,t,n,r,i,a,o,s,c,u,l){we(t,l++,n),++i[256]
for(var d=Ae(i,15),f=d.t,h=d.l,p=Ae(a,15),v=p.t,g=p.l,m=Se(f),y=m.c,E=m.n,T=Se(v),b=T.c,_=T.n,I=new oe(19),k=0;k<y.length;++k)++I[31&y[k]]
for(k=0;k<b.length;++k)++I[31&b[k]]
for(var w=Ae(I,7),N=w.t,A=w.l,C=19;C>4&&!N[le[C-1]];--C);var S,R,O,D,M=u+5<<3,P=Re(i,Te)+Re(a,be)+o,L=Re(i,f)+Re(a,v)+o+14+3*C+Re(I,N)+2*I[16]+3*I[17]+7*I[18]
if(c>=0&&M<=P&&M<=L)return Oe(t,l,e.subarray(c,c+u))
if(we(t,l,1+(L<P)),l+=2,L<P){S=Ee(f,h,0),R=f,O=Ee(v,g,0),D=v
var x=Ee(N,A,0)
for(we(t,l,E-257),we(t,l+5,_-1),we(t,l+10,C-4),l+=14,k=0;k<C;++k)we(t,l+3*k,N[le[k]])
l+=3*C
for(var B=[y,b],U=0;U<2;++U){var F=B[U]
for(k=0;k<F.length;++k){var H=31&F[k]
we(t,l,x[H]),l+=N[H],H>15&&(we(t,l,F[k]>>5&127),l+=F[k]>>12)}}}else S=_e,R=Te,O=Ie,D=be
for(k=0;k<s;++k){var V=r[k]
if(V>255){Ne(t,l,S[257+(H=V>>18&31)]),l+=R[H+257],H>7&&(we(t,l,V>>23&31),l+=ce[H])
var K=31&V
Ne(t,l,O[K]),l+=D[K],K>3&&(Ne(t,l,V>>5&8191),l+=ue[K])}else Ne(t,l,S[V]),l+=R[V]}return Ne(t,l,S[256]),l+R[256]},Me=new se([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Pe=new ae(0),Le=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1
e[t]=n}return e}(),xe=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Be="undefined"!=typeof TextDecoder&&new TextDecoder
try{Be.decode(Pe,{stream:!0})}catch(hs){}function Ue(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Fe(){try{return Ue()&&"keepalive"in new Request("")}catch(e){return!1}}function He(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest
if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,a=Object.keys(n.headers);i<a.length;i++){var o=a[i]
r.setRequestHeader(o,n.headers[o])}r.send(t)}}function Ve(e){var t=e.toLowerCase().trim()
return t.includes("application/json")||t.includes("+json")||t.includes("text/json")}function Ke(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=x(P().mark((function e(t){var n
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!Ve(t.headers.get("content-type")||"")){e.next=7
break}return e.next=5,t.json()
case 5:return n=e.sent,e.abrupt("return",JSON.stringify(n))
case 7:return e.next=9,t.text()
case 9:return e.abrupt("return",e.sent)
case 12:return e.prev=12,e.t0=e.catch(0),e.abrupt("return","")
case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function We(e){return je.apply(this,arguments)}function je(){return(je=x(P().mark((function e(t){var n,r
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ke(t)
case 2:return n=e.sent,r={},t.headers.forEach((function(e,t){r[t]=e})),e.abrupt("return",{type:"success",drop:!1,statusCode:t.status,responseBody:n,responseHeaders:r})
case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(e){return ze.apply(this,arguments)}function ze(){return(ze=x(P().mark((function e(t){var n,r,i
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.statusText,e.prev=1,e.next=4,Ke(t)
case 4:(r=e.sent)&&(n="".concat(t.statusText,": ").concat(r)),e.next=12
break
case 8:e.prev=8,e.t0=e.catch(1),i=Ye(e.t0),n="".concat(t.statusText,": ").concat(i)
case 12:return e.abrupt("return",{type:"response",drop:!0,statusCode:t.status,rawError:n})
case 13:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function Xe(e){return{type:"network",drop:!0,rawError:Ye(e)}}function Je(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress
r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8")
var a=t
if(i&&"undefined"!=typeof TextEncoder)try{a=function(e,t){t||(t={})
var n=function(){var e=-1
return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Le[255&n^t[r]]^n>>>8
e=n},d:function(){return~e}}}(),r=e.length
n.p(e)
var i=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new ae(a.length+e.length)
o.set(a),o.set(e,a.length),e=o,i.w=a.length}return function(e,t,n,r,i,a){var o=a.z||e.length,s=new ae(r+o+5*(1+Math.ceil(o/7e3))+8),c=s.subarray(r,s.length-8),u=a.l,l=7&(a.r||0)
if(t){l&&(c[0]=a.r>>3)
for(var d=Me[t-1],f=d>>13,h=8191&d,p=(1<<n)-1,v=a.p||new oe(32768),g=a.h||new oe(p+1),m=Math.ceil(n/3),y=2*m,E=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<y)&p},T=new se(25e3),b=new oe(288),_=new oe(32),I=0,k=0,w=a.i||0,N=0,A=a.w||0,C=0;w+2<o;++w){var S=E(w),R=32767&w,O=g[S]
if(v[R]=O,g[S]=R,A<=w){var D=o-w
if((I>7e3||N>24576)&&(D>423||!u)){l=De(e,c,0,T,b,_,k,N,C,w-C,l),N=I=k=0,C=w
for(var M=0;M<286;++M)b[M]=0
for(M=0;M<30;++M)_[M]=0}var P=2,L=0,x=h,B=R-O&32767
if(D>2&&S==E(w-B))for(var U=Math.min(f,D)-1,F=Math.min(32767,w),H=Math.min(258,D);B<=F&&--x&&R!=O;){if(e[w+P]==e[w+P-B]){for(var V=0;V<H&&e[w+V]==e[w+V-B];++V);if(V>P){if(P=V,L=B,V>U)break
var K=Math.min(B,V-2),G=0
for(M=0;M<K;++M){var W=w-B+M&32767,j=W-v[W]&32767
j>G&&(G=j,O=W)}}}B+=(R=O)-(O=v[R])&32767}if(L){T[N++]=268435456|pe[P]<<18|ve[L]
var q=31&pe[P],z=31&ve[L]
k+=ce[q]+ue[z],++b[257+q],++_[z],A=w+P,++I}else T[N++]=e[w],++b[e[w]]}}for(w=Math.max(w,A);w<o;++w)T[N++]=e[w],++b[e[w]]
l=De(e,c,u,T,b,_,k,N,C,w-C,l),u||(a.r=7&l|c[l/8|0]<<3,l-=7,a.h=g,a.p=v,a.i=w,a.w=A)}else{for(w=a.w||0;w<o+u;w+=65535){var X=w+65535
X>=o&&(c[l/8|0]=u,X=o),l=Oe(c,l+1,e.subarray(w,X))}a.i=o}return function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new ae(e.subarray(t,n))}(s,0,r+ke(l)+8)}(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,0,i)}(e,t,function(e){return 10+(e.filename?e.filename.length+1:0)}(t)),a=i.length
return function(e,t){var n=t.filename
if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&xe(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8
for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(i,t),xe(i,a-8,n.d()),xe(i,a-4,r),i}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:a,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function Ye(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Qe,Ze="undefined"!=typeof navigator&&"sendBeacon"in navigator,$e=Fe()?function(e,t,n,r){return new Promise((function(i){fetch(e,Je({body:t,keepalive:!0,headers:n,compress:r})).then((function(e){return e}),x(P().mark((function i(){return P().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,fetch(e,Je({body:t,keepalive:!1,headers:n,compress:r}))
case 2:return i.abrupt("return",i.sent)
case 3:case"end":return i.stop()}}),i)})))).then(function(){var e=x(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.ok){e.next=8
break}return e.t0=i,e.next=4,We(t)
case 4:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13
break
case 8:return e.t2=i,e.next=11,qe(t)
case 11:e.t3=e.sent,(0,e.t2)(e.t3)
case 13:case"end":return e.stop()}}),e)})))
return function(t){return e.apply(this,arguments)}}(),(function(e){return i(Xe(e))}))}))}:function(e,t,n,r){return new Promise((function(i){if(Ze){var a=!1
try{a=navigator.sendBeacon(e,t)}catch(e){}if(a)return void i({type:"unknown",drop:!1})}fetch(e,Je({body:t,keepalive:!1,headers:n,compress:r})).then(function(){var e=x(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.ok){e.next=8
break}return e.t0=i,e.next=4,We(t)
case 4:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13
break
case 8:return e.t2=i,e.next=11,qe(t)
case 11:e.t3=e.sent,(0,e.t2)(e.t3)
case 13:case"end":return e.stop()}}),e)})))
return function(t){return e.apply(this,arguments)}}(),(function(e){return i(Xe(e))}))}))}
function et(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e)
i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}}
var a=new Promise((function(e,t){i.onsuccess=function(){var t=i.result
t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}))
return function(e,n){return a.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function nt(){return Qe||(Qe=tt("idb-queue","default")),Qe}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null
return e.openKeyCursor().onsuccess=function(){var i=this.result
i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},et(e.transaction)}var it=!1
function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt()
return it?Promise.resolve():function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt()
return n("readwrite",(function(n){return n.put(e),et(n.count()).then((function(e){if(!(e<=t.maxNumber))return rt(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300}
return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt())("readwrite",(function(t){return rt(t,e)}))}(t,n)}))}(e,t,n)}function ot(e,t,n){return t("readonly",(function(t){var r=[]
return t.openCursor(null,n).onsuccess=function(){var t=this.result
t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},et(t.transaction).then((function(){return r}))}))}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0
return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function ct(e){return new Promise((function(t){return setTimeout(t,e)}))}function ut(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4}
"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})}()}var dt=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
S(this,e),D(this,"config",void 0),D(this,"compress",void 0),D(this,"throttleControl",void 0),D(this,"withStore",void 0),D(this,"disablePersistence",!1),this.config=t,this.compress=r
var i,a,o,s=t.measureIDB
s&&performance.mark(s.createStartMark),this.withStore=tt(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(i=this.replayEntries.bind(this),a=t.throttleWait,o=0,{throttledFn:function(){var e=Date.now()
e-o>a&&(i(),o=e)},resetThrottle:function(){o=0}})}var t,n,r,i,a
return O(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){at(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle()})).catch((function(){t.disablePersistence=!0,ut((function(){return"push failed"}))}))}
this.config.useIdle?lt(n):n()}}},{key:"clear",value:function(){var e=this
return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt()
return it=!0,e("readwrite",(function(e){return e.clear(),et(e.transaction).finally((function(){return it=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,ut((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,ut((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,ut((function(){return"peekBack failed"})),[]}))}},{key:"processRetryEntry",value:(a=x(P().mark((function e(t){var n,r,i,a,o,s,c
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.url,r=t.headers,i=t.statusCode,a=t.attemptCount,o=t.body,this.config.onBeforeRetry&&void 0!==(s=this.config.onBeforeRetry(o,a))&&(o=s),e.next=5,$e(n,o,st(r,this.config.headerName,a,i),this.compress)
case 5:if("unknown"!==(c=e.sent).type&&"success"!==c.type){e.next=11
break}return e.next=9,this.handleSuccessfulReplay(c,t)
case 9:e.next=13
break
case 11:return e.next=13,this.handleFailedReplay(c,t)
case 13:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"handleSuccessfulReplay",value:(i=x(P().mark((function e(t,n){var r,i,a,o
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.body,o="success"===t.type||"unknown"===t.type?t.responseBody:void 0,!this.config.parseResponseForRetry||!o){e.next=8
break}return e.next=5,this.handlePartialFailureInReplay(t,n)
case 5:if(!e.sent){e.next=8
break}return e.abrupt("return")
case 8:null===(r=(i=this.config).onResult)||void 0===r||r.call(i,t,a),this.replayEntries()
case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"handleExceededAttemptLimit",value:function(e,t){var n,r,i=t.body
return t.attemptCount>=this.config.attemptLimit&&(e.drop=!0,null===(n=(r=this.config).onResult)||void 0===n||n.call(r,e,i),this.replayEntries(),!0)}},{key:"restoreEntryForRetry",value:(r=x(P().mark((function e(t,n,r){var i,a,o,s,c
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.url,a=t.headers,o=t.timestamp,s=t.attemptCount,c={url:i,body:n,headers:a,statusCode:null!=r?r:t.statusCode,timestamp:o,attemptCount:s+1},e.next=4,at(c,this.config,this.withStore).catch((function(){}))
case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"handlePartialFailureInReplay",value:(n=x(P().mark((function e(t,n){var r,i,a,o,s
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.body,i="success"===t.type||"unknown"===t.type?t.responseBody:void 0){e.next=4
break}return e.abrupt("return",!1)
case 4:if(a="success"===t.type?t.responseHeaders:void 0,o=t.statusCode,e.prev=6,!(s=this.config.parseResponseForRetry(i,r,a,o))||!s.trim()){e.next=14
break}if(!this.handleExceededAttemptLimit(t,n)){e.next=11
break}return e.abrupt("return",!0)
case 11:return e.next=13,this.restoreEntryForRetry(n,s,t.statusCode)
case 13:return e.abrupt("return",!0)
case 14:e.next=18
break
case 16:e.prev=16,e.t0=e.catch(6)
case 18:return e.abrupt("return",!1)
case 19:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e,t){return n.apply(this,arguments)})},{key:"handleFailedReplay",value:(t=x(P().mark((function e(t,n){var r,i,a,o,s
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.body,!this.handleExceededAttemptLimit(t,n)){e.next=3
break}return e.abrupt("return")
case 3:if(!("network"===t.type||void 0!==t.statusCode&&this.config.statusCodes.includes(t.statusCode))){e.next=10
break}return t.drop=!1,null===(i=(a=this.config).onResult)||void 0===i||i.call(a,t,r),e.next=8,this.restoreEntryForRetry(n,r,void 0)
case 8:e.next=12
break
case 10:t.drop=!0,null===(o=(s=this.config).onResult)||void 0===o||o.call(s,t,r)
case 12:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){(function(){return function(e,t){return t("readwrite",(function(t){var n=[]
return t.openCursor(null,"next").onsuccess=function(){var t=this.result
t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},et(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt())})(1,e.withStore).then(function(){var t=x(P().mark((function t(n){return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n.length>0)){t.next=3
break}return t.next=3,e.processRetryEntry(n[0])
case 3:case"end":return t.stop()}}),t)})))
return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.disablePersistence=!0,t&&t.message&&ut((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?lt(t):t()}}}]),e}(),ft=function(){function e(){S(this,e)}return O(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),ht=function(){function e(t,n){S(this,e),D(this,"queue",void 0),D(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new dt(t,n.compress):new ft}return O(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}()
D(ht,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var pt="parseResponseForRetry exhausted retries",vt=[502,504],gt=[429,503],mt=function(){function e(t,n,r,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5?arguments[5]:void 0
S(this,e),D(this,"url",void 0),D(this,"body",void 0),D(this,"config",void 0),D(this,"persistenceConfig",void 0),D(this,"compress",void 0),D(this,"parseResponseForRetry",void 0),D(this,"timestamp",void 0),D(this,"isClearQueuePending",!1),D(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=o,this.parseResponseForRetry=s,this.timestamp=Date.now(),this.onClearCallback=function(){return a.isClearQueuePending=!0}}var t,n,r
return O(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.persistenceConfig.db.onClear(this.onClearCallback)
var n=this.retryLimit
return this.retry((function(t){return $e(e.url,e.body,t,e.compress)}),n,t).finally((function(){e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"checkForPartialFailure",value:(r=x(P().mark((function e(t){var n,r,i,a
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseResponseForRetry){e.next=2
break}return e.abrupt("return",null)
case 2:if(n="success"===t.type||"unknown"===t.type?t.responseBody:void 0){e.next=5
break}return e.abrupt("return",null)
case 5:return r="success"===t.type?t.responseHeaders:void 0,i=t.statusCode,e.prev=7,a=this.parseResponseForRetry(n,this.body,r,i),e.abrupt("return",(null==a?void 0:a.trim())||null)
case 12:return e.prev=12,e.t0=e.catch(7),e.abrupt("return",null)
case 15:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(e){return r.apply(this,arguments)})},{key:"createPersistedResult",value:function(e,t,n){var r={type:"persisted",drop:!1,statusCode:e.statusCode}
return this.persistenceConfig.db.pushToQueue({url:this.url,body:t,headers:n,statusCode:e.statusCode,timestamp:this.timestamp,attemptCount:1}),r}},{key:"shouldRetryInMemory",value:function(e,t){return e>0&&this.isRetryableError(t)}},{key:"handleCompleteSuccess",value:function(e){var t,n
this.isClearQueuePending||this.persistenceConfig.disabled||this.persistenceConfig.db.notifyQueue(),null===(t=(n=this.config).onIntermediateResult)||void 0===t||t.call(n,e,this.body)}},{key:"executeRetryDelay",value:(n=x(P().mark((function e(t,n){var r
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.config.calculateRetryDelay(this.getAttemptCount(t),t),e.next=3,ct(r)
case 3:return e.abrupt("return",{newRetryCount:t-1,newErrorCode:n.statusCode})
case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"retry",value:(t=x(P().mark((function e(t,n,r,i){var a,o,s,c,u,l,d,f=this
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n,o=t,s=i,c=this.retryLimit+1,u=P().mark((function e(){var t,n,i,c,u,l,d,h,p,v,g,m,y,E,T,b,_,I,k
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.getAttemptCount(a)-1,e.next=3,o(st(r,f.config.headerName,t,s))
case 3:if((n=e.sent).drop=!1,"unknown"!==n.type&&"success"!==n.type){e.next=34
break}return e.next=8,f.checkForPartialFailure(n)
case 8:if(!(i=e.sent)){e.next=30
break}if(c={type:"response",drop:!0,statusCode:n.statusCode,rawError:pt},!f.shouldPersist(a,c)){e.next=17
break}return d=f.createPersistedResult(n,i,r),null===(u=(l=f.config).onIntermediateResult)||void 0===u||u.call(l,d,i),e.abrupt("return",{v:d})
case 17:if(!f.shouldRetryInMemory(a,n)){e.next=27
break}return o=function(e){return $e(f.url,i,e,f.compress)},e.next=21,f.executeRetryDelay(a,n)
case 21:return h=e.sent,a=h.newRetryCount,s=h.newErrorCode,e.abrupt("return",0)
case 27:return n.drop=!0,null===(p=(v=f.config).onIntermediateResult)||void 0===p||p.call(v,n,f.body),e.abrupt("return",{v:n})
case 30:return f.handleCompleteSuccess(n),e.abrupt("return",{v:n})
case 34:if(g=n,!f.shouldPersist(a,g)){e.next=41
break}return E=f.createPersistedResult(n,f.body,r),null===(m=(y=f.config).onIntermediateResult)||void 0===m||m.call(y,E,f.body),e.abrupt("return",{v:E})
case 41:if(!f.shouldRetryInMemory(a,n)){e.next=51
break}return null===(T=(b=f.config).onIntermediateResult)||void 0===T||T.call(b,n,f.body),e.next=45,f.executeRetryDelay(a,n)
case 45:return _=e.sent,a=_.newRetryCount,s=_.newErrorCode,e.abrupt("return",0)
case 51:return n.drop=!0,null===(I=(k=f.config).onIntermediateResult)||void 0===I||I.call(k,n,f.body),e.abrupt("return",{v:n})
case 54:case"end":return e.stop()}}),e)})),d=0
case 6:if(!(d<c)){e.next=16
break}return e.delegateYield(u(),"t0",8)
case 8:if(0!==(l=e.t0)){e.next=11
break}return e.abrupt("continue",13)
case 11:if(!l){e.next=13
break}return e.abrupt("return",l.v)
case 13:d++,e.next=6
break
case 16:return e.abrupt("return",{type:"response",drop:!0,statusCode:500,rawError:"All retry attempts exhausted"})
case 17:case"end":return e.stop()}}),e,this)}))),function(e,n,r,i){return t.apply(this,arguments)})},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!this.isClearQueuePending&&!this.persistenceConfig.disabled&&(!navigator.onLine||0===e&&"network"===t.type||"response"===t.type&&t.rawError===pt||!("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}()
function yt(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:vt,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry)
if(t.retryDB)e=t.retryDB
else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:gt,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
i.headerName=i.headerName||r.headerName,i.parseResponseForRetry=t.parseResponseForRetry,e=new ht(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,a,o){var s
return Ue()?new mt(i,a,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||gt},n,t.parseResponseForRetry).send(o):Promise.resolve({type:"unknown",drop:!0})},database:e}}var Et="internal:hide",Tt="internal:error"
function bt(e,t,n){var r=e.get(t)
r&&r.push(n)||e.set(t,[n])}function _t(e,t,n){var r=e.get(t)
r&&r.splice(r.indexOf(n)>>>0,1)}var It,kt,wt=(It=new Map,kt=new Map,{on:function(e,t){bt(It,e,t)},before:function(e,t){bt(kt,e,t)},off:function(e,t){_t(It,e,t)},offBefore:function(e,t){_t(kt,e,t)},emit:function(e,t){(kt.get(e)||[]).concat(It.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){kt.clear(),It.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var Nt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||wt.emit(Et,e)}
document.addEventListener("visibilitychange",Nt),window.addEventListener("pagehide",Nt)}var At="https://www.linkedin.com/",Ct="https://www.linkedin-ei.com/",St="voyager.web.tracking-enable-observability",Rt="enabled",Ot="high-priority",Dt="normal-priority",Mt=null
if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var Pt=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(Pt){var Lt=new Uint8Array(256),xt=Lt.length
Mt={rng:function(){return xt>Lt.length-16&&(Pt.randomFillSync(Lt),xt=0),Lt.slice(xt,xt+=16)}}}}var Bt="object"===("undefined"==typeof crypto?"undefined":C(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return Xt(Ut())}
function Ut(){return ne(Mt,new Array(16),0)}function Ft(e){return w(e).map((function(e){return String.fromCharCode(e)})).join("")}function Ht(){return Ft(Ut())}var Vt=/^[a-zA-Z0-9/+]+[=]+$/
function Kt(e){return"string"==typeof e&&!!e.match(Vt)}function Gt(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,a=e.length,o=a%3,s=a-o;i<s;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3
switch(o){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=")
break
case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}function Wt(e){if(!Array.isArray(e))throw new Error("[CWT] Input must be an array")
if(e.length<16)throw new Error("[CWT] Input array must have at least 16 elements")
var t=e.filter((function(e){return"number"==typeof e&&Number.isFinite(e)}))
if(t.length<16)throw new Error("[CWT] Array must contain at least 16 valid numbers")
var n=Uint8Array.from(t.slice(0,16),(function(e){return(e+256)%256})),r=String.fromCharCode.apply(String,w(n))
return btoa(r)}function jt(){return Gt(Ut())}function qt(){return Bt()}function zt(){return Bt()}function Xt(e){return function(e){var t=j(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!K(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}function Jt(e){return q(e)}function Yt(e,t){return{pageUrn:Zt(e),trackingId:t||jt()}}function Qt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Zt(e){return"urn:li:page:".concat(e)}function $t(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function en(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function tn(e){return"".concat(e.pageUrn,";").concat(e.trackingId)}var nn=new RegExp("[?&]lipi=([^&#]*)"),rn=new RegExp("[?&]licu=([^&#]*)")
function an(e){var t=e.match(rn)
return t?decodeURIComponent(t[1]):null}function on(e){var t=e.match(nn)
if(t){var n=$t(t[1])
if(n)return{pageInstance:n,pageKey:""}}return null}function sn(e){var t,n=null===(t=e.APP)||void 0===t?void 0:t.version
return(n="string"==typeof n?n.split("_").pop():"")||""}function cn(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()}
0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function un(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function ln(e){var t=window.indexedDB.deleteDatabase(e)
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}function dn(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var r,i="sequenceNumber"
try{r=window.indexedDB.open(i)}catch(e){return Promise.resolve(null)}return new Promise((function(a,o){r.onupgradeneeded=function(){var e=r.result
e.objectStoreNames.contains(i)||e.createObjectStore(i,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,c=s.transaction(i,"readwrite"),u=c.objectStore(i),l=u.get(1)
l.onsuccess=function(){var r=l.result
if(r){if("read"===e)return a(r)
if("update"!==e)return a(null)
var i,s=Object.assign({},r),c=!1,d=null!==(i=s.sequenceNumber)&&void 0!==i?i:0
if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,r=null!==(t=s[e])&&void 0!==t?t:0,i=n[e]
i>r&&(s[e]=i,c=!0)})),c){var f=u.put(s,1)
f.onsuccess=function(){return a(null)},f.onerror=function(){o(f.error)}}}else{var h={sequenceNumber:0}
n&&Object.keys(n).forEach((function(e){h[e]=0}))
var p=u.add(h)
p.onsuccess=function(){return a(0)},p.onerror=function(){o(p.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return a(null)}}))}return Promise.resolve(null)}function fn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Ue()||"undefined"==typeof Promise}function hn(){return!fn()&&(Fe()||"undefined"!=typeof navigator&&"sendBeacon"in navigator)}function pn(e,t,n,r){var i=["core-web-tracking:".concat(e)]
null==r||r.forEach((function(e){return i.push(e)})),wt.emit(Tt,{tags:i,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function vn(e){var t,n={issueTime:0,browserId:""},r=k(e)
try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=")
if(i.length>1&&"bscookie"===i[0]){var a=decodeURIComponent(i[1]),o=Number(a.substring(4,18)),s=isNaN(o)?0:o,c=a.substring(18,50)
return n.browserId=c,n.issueTime=s,n}}}catch(e){r.e(e)}finally{r.f()}return n}function gn(e){try{var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))}catch(t){if(t instanceof TypeError&&t.message.includes("circular")||t instanceof DOMException&&"DataCloneError"===t.name)return Sn(e,{removeUndefined:!0,removeNull:!0})
throw t}}var mn=function(){function e(t){S(this,e),D(this,"heap",void 0),D(this,"comparator",void 0),this.comparator=t,this.heap=[]}return O(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=w(this.heap)
return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]]
this.heap[0]=t[0],this.heap[e-1]=t[1]
for(var n=this.heap.pop(),r=0;2*r+1<this.heap.length;){var i=2*r+1,a=2*r+2,o=a<this.heap.length&&this.comparator(this.heap[a],this.heap[i])?a:i
if(!this.comparator(this.heap[o],this.heap[r]))break
var s=[this.heap[r],this.heap[o]]
this.heap[o]=s[0],this.heap[r]=s[1],r=o}return n}},{key:"heapPush",value:function(e){this.heap.push(e)
for(var t=this.heap.length-1;t>0;){var n=Math.floor((t-1)/2)
if(!this.comparator(this.heap[t],this.heap[n]))break
var r=[this.heap[n],this.heap[t]]
this.heap[t]=r[0],this.heap[n]=r[1],t=n}}}]),e}()
function yn(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}var En=function(e){if(!e||0===e.length)return null
if((e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4==1)return pn("base64url-decoder",new Error("Invalid Base64URL input")),null
for(;e.length%4!=0;)e+="="
return e},Tn=function(e){if(!In(e))return[]
for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n]
"default"!==i&&t.push(i)}return t},bn=function(e,t){var n={},r=[]
if(0===e.length)return[n,e]
if(0===t.length)return[n,e]
var i,o=k(e)
try{for(o.s();!(i=o.n()).done;){var s=i.value,c=s.transporterKeys,u=I(s,a)
if(c&&c.length>0){var l,d=k(c)
try{for(d.s();!(l=d.n()).done;){var f,h=l.value
t.includes(h)?(null!==(f=n[h])&&void 0!==f||(n[h]=[]),n[h].push(u)):r.push(u)}}catch(e){d.e(e)}finally{d.f()}}else r.push(u)}}catch(e){o.e(e)}finally{o.f()}return[n,r]}
function _n(e){return!(!e||"control"===e)}var In=function(e){return e&&void 0!==e&&Object.keys(e).length>0},kn=function(e){return null==e||""===e||"0"===e||"false"===e||0===e||!1===e||"string"==typeof e&&""===e.trim()},wn=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)}
function Nn(e){try{var t=atob(e)
return Uint8Array.from(t,(function(e){return e.charCodeAt(0)}))}catch(e){throw new Error("Invalid base64 string")}}function An(e){for(var t=new Uint8Array(e.length/2),n=0;n<t.length;n++)t[n]=parseInt(e.substring(2*n,2*n+2),16)
return t}function Cn(e){try{return Kt(e)?Nn(e):32===e.length&&/^[0-9a-fA-F]+$/i.test(e)?An(e):(new TextEncoder).encode(e)}catch(t){return(new TextEncoder).encode(e)}}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.processField,r=t.removeUndefined,i=void 0===r||r,a=t.removeNull,o=void 0===a||a,s=t.currentPath,c=void 0===s?"":s,u=t.filterArrayUndefined,l=void 0===u||u
if(null===e)return o?void 0:e
if(void 0===e)return i?void 0:e
if("object"!==C(e))return e
if(Array.isArray(e)){var d=e.map((function(e,n){var r=c?"".concat(c,".").concat(n):"".concat(n)
return Sn(e,_(_({},t),{},{currentPath:r}))}))
return l?d.filter((function(e){return void 0!==e})):d}for(var f={},h=0,p=Object.entries(e);h<p.length;h++){var v=T(p[h],2),g=v[0],m=v[1]
if(!(i&&void 0===m||o&&null===m)){var y=c?"".concat(c,".").concat(g):g
if(n){var E=n(g,m,y)
if(E.processed){void 0!==E.result&&(f[g]=E.result)
continue}}var b=Sn(m,_(_({},t),{},{currentPath:y}))
void 0===b&&i||(f[g]=b)}}return f}function Rn(e){return Sn(e,{removeUndefined:!0,removeNull:!1})}function On(e){return Sn(e,{removeUndefined:!0,removeNull:!0})}function Dn(e){return!(!e||""===e.trim()||"false"===e||"null"===e||"undefined"===e)}function Mn(e){return!Dn(e)||"control"===e.toLowerCase()}var Pn="beacons"
function Ln(e){return 1e3*Math.pow(2,e)}function xn(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&Fe()&&t&&n}var Bn=function(){function e(t){S(this,e),D(this,"host",void 0),this.host=t}return O(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment()
this.host.retryConfig&&function(e,t,n,r,i){"control"!==r&&e.retryConfig&&xn()&&navigator.storage.estimate().then((function(a){if(!((a.quota||0)-(a.usage||0)>52428800))return ln(Pn)
var o,s,c=null!==(o=e.retryConfig.inMemory)&&void 0!==o?o:{attemptLimit:4,statusCodes:[502,504]},u=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},l={compress:n,inMemoryRetry:{onIntermediateResult:null==i?void 0:i.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return Ln(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:Pn,attemptLimit:u.attemptLimit,statusCodes:u.statusCodes,maxNumber:u.maxNumber,batchEvictionNumber:u.batchEvictionNumber,throttleWait:u.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=yt(l),f=d.beacon,h=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:h},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?h.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body)
if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return h.clearQueue()}}),(function(){return h.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){pn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){pn("retry:setup",e)}))}(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon
if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){pn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,a=this.getRetryTreatment()
Fe()&&"control"!==a&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){pn("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&(fn()?(He(e,JSON.stringify(t),{headers:n}),null==r||r.onResult({statusCode:200,type:"success",drop:!1},t)):$e(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n
if(!this.host.retryConfig)return"control"
var r=this.host.retryConfig.lixKey
return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t
return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&xn()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),Un="undefined"!=typeof window&&"undefined"!=typeof document,Fn=/JSESSIONID="?([^";]+)"?/,Hn="",Vn=0
function Kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?Fn:r
if(!Hn||Date.now()-Vn>n){var a=Un&&document.cookie.match(i)
Hn=a&&a[1]||"",Vn=Date.now()}return Hn}var Gn={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},Wn=function(){function e(t){S(this,e),D(this,"networkTransporter",void 0),D(this,"inactive",void 0),D(this,"mpName",void 0),D(this,"endpoint",void 0),D(this,"debug",void 0),this.networkTransporter=new Bn(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return Gn.prod.pattern.test(e)?t=Gn.prod.monitorEndpoint:Gn.eiValidate.pattern.test(e)?(n=!0,t=Gn.eiValidate.monitorEndpoint):Gn.ei.pattern.test(e)?t=Gn.ei.monitorEndpoint:(t=Gn.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return O(e,[{key:"fireFragment",value:function(e){var t
if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":Kn(),"x-restli-protocol-version":"2.0.0"},r=[],i=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},a=i.failures,o=i.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,w(t.failures)),e}),[]);[].concat(w(a),w(o)).forEach((function(e){var t=e.reason,n=e.rawError,i=e.eventTopic,a=e.header,o=e.requestHeader
r.push({reason:t,rawError:n,failedTopicName:i,header:a,requestHeader:o})}))
var s={clientTrackingFailures:r,debug:this.debug}
this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}()
function jn(e){return"string"==typeof e}function qn(e){return jn(e)?e:e.topicName||e.eventName}function zn(e){return jn(e)?e:e.eventName}var Xn,Jn,Yn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
S(this,e),D(this,"host",void 0),D(this,"cmoTransporter",void 0),D(this,"clientMonitoringInstanceId",Ht()),D(this,"currentContext",{pageKey:U,pageInstance:Yt(U)}),D(this,"appState",{}),D(this,"estimatedFragmentSize",0),D(this,"fragmentSizeLimit",void 0),D(this,"activeFragmentEvent",void 0),D(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new Wn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Zn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return O(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this
void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring()
var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated
return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId()
t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats
t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,r=k(this.activeFragmentEvent.stats.previousInstanceEventStats)
try{for(r.s();!(n=r.n()).done;){var i=n.value
if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var a=this.getEventHeaders(),o=a.header,s=a.requestHeader,c={header:Object.assign(o,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]}
t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),a=this.getEventHeaders(),o=a.header,s=a.requestHeader,c={header:Object.assign(o,{memberId:-1}),requestHeader:s,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:zn(t),eventTopic:qn(t)}
this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0
var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,r=this.activeFragmentEvent
r.header=t,r.requestHeader=n,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=Zn(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0
this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=$n(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=$n(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:Ht(),memberId:0}}}}]),e}()
function Qn(e){return Xn||(Xn=new Yn(e)),{getCurrentInstanceId:function(){return Xn.getCurrentInstanceId()},logEventGenerated:function(e){return Xn.logEventGenerated(e)},logEventReadyToSend:function(e){Xn.logEventReadyToSend(e)},logEventSent:function(e){Xn.logEventSent(e)},logPersistedEventSent:function(e,t){Xn.logEventSent(t,e)},logNetworkResponseCode:function(e){Xn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Xn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Xn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Xn.logFailedEvent(t,n,r,i,e)},flush:function(){Xn.flush()},destroy:function(){Xn=void 0},isDestroyed:function(){return void 0===Xn},setCurrentContext:function(e){Xn.setCurrentContext(e)},updateAppState:function(e){Xn.updateAppState(e)}}}function Zn(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:i.requestHeader,header:i.header}}function $n(e){return Array.isArray(e)?Ft(e):16===e.length?e:Kt(e)?atob(e):Ft(Jt(e))}function er(e){console.error("An error occurred in the `".concat(e,"` method of the callback multiplexer."))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}(Jn||(Jn={}))
var tr,nr="default",rr="-",ir="-",ar="-",or=!1,sr="-"
!function(e){e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERTIES",e.TRANSPORTER_FAILURE="TRANSPORTER_FAILURE",e.BEACON_TRANSPORTER_FAILURE="BEACON_TRANSPORTER_FAILURE"}(tr||(tr={}))
var cr=function(){function e(){S(this,e),D(this,"TelemetryRetryIDB","metricsBeacons"),D(this,"beaconFunc",void 0)}return O(e,[{key:"getOrCreateBeaconFunc",value:function(){return this.beaconFunc||(this.beaconFunc=this.createTelemetryMetricsBeacon()),this.beaconFunc}},{key:"getDefaultInMemoryConfig",value:function(){return{attemptLimit:4,statusCodes:[502,504]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[408,429,500,502,503,504,507,509],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createTelemetryMetricsBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig()
return yt({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return Ln(e)}},disablePersistenceRetry:!1,persistenceRetry:{idbName:this.TelemetryRetryIDB,attemptLimit:t.attemptLimit,statusCodes:t.statusCodes,maxNumber:t.maxNumber,batchEvictionNumber:t.batchEvictionNumber,throttleWait:t.throttleWait,useIdle:!0}}).beacon}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
D(cr,"instance",null)
var ur=function(){function e(){S(this,e),D(this,"config",void 0),D(this,"observePath","rest/trackObserveApi/trackObserve"),this.config={endpoint:"".concat(At).concat(this.observePath),platform:"Web"}}return O(e,[{key:"getConfig",value:function(){return this.config}},{key:"setAppId",value:function(e){this.config.appId=e}},{key:"setEnvironment",value:function(){var e="development"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"production")?Ct:At
this.config.endpoint="".concat(e).concat(this.observePath)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
D(ur,"instance",void 0)
var lr=function(){function e(){S(this,e)}return O(e,null,[{key:"buildTrackingSdkEventMetric",value:function(e,t,n){var r=[{key:"EventName",value:{value:{stringValue:e.eventName}}},{key:"ViewHierarchy",value:{value:{stringValue:e.viewHierarchy}}},{key:"Platform",value:{value:{stringValue:n}}},{key:"TransportKey",value:{value:{stringValue:e.transportKey}}},{key:"AppId",value:{value:{stringValue:t}}},{key:"PageKey",value:{value:{stringValue:e.pageKey}}},{key:"HasContentTrackingID",value:{value:{boolValue:e.hasContentTrackingID}}}]
return e.breadcrumbType!==ar&&r.push({key:"BreadcrumbType",value:{value:{stringValue:e.breadcrumbType}}}),e.dropReason!==sr&&r.push({key:"DropReason",value:{value:{stringValue:e.dropReason}}}),{attributes:r,metrics:{eventsReceived:e.receivedCount,eventsDropped:e.droppedCount,eventsSynced:e.syncedCount,queueLatencies:e.latencies,totalRetries:e.retries.reduce((function(e,t){return e+t}),0)},observedTimestamp:Date.now()}}},{key:"transformToSimplifiedFormat",value:function(e){var t,n,r,i,a,o
return{attributes:(null===(t=e.attributes)||void 0===t?void 0:t.map((function(e){var t,n
return{key:e.key||"",value:_(_({},void 0!==(null===(t=e.value)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.stringValue)&&{stringValue:e.value.value.stringValue}),void 0!==(null===(n=e.value)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.boolValue)&&{boolValue:e.value.value.boolValue})}})))||[],metrics:{eventsReceived:null===(n=e.metrics)||void 0===n?void 0:n.eventsReceived,eventsDropped:null===(r=e.metrics)||void 0===r?void 0:r.eventsDropped,eventsSynced:null===(i=e.metrics)||void 0===i?void 0:i.eventsSynced,queueLatencies:null===(a=e.metrics)||void 0===a?void 0:a.queueLatencies,totalRetries:null===(o=e.metrics)||void 0===o?void 0:o.totalRetries},observedTimestamp:e.observedTimestamp}}},{key:"wrapInEventMetricsPayload",value:function(e){return{eventMetrics:e}}}]),e}(),dr=function(){function e(){S(this,e),D(this,"beaconFunc",void 0),D(this,"endpoint",void 0),D(this,"flushDebounceTimer",void 0),D(this,"localCounterMap",new Map),D(this,"flushPromise",Promise.resolve())
var t=ur.getInstance().getConfig()
this.endpoint=t.endpoint,this.beaconFunc=cr.getInstance().getOrCreateBeaconFunc()}return O(e,[{key:"generateId",value:function(e,t,n,r,i,a,o){return"".concat(e,"_").concat(t,"_").concat(n,"_").concat(r,"_").concat(i,"_").concat(a,"_").concat(o)}},{key:"incrementEventReceived",value:function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:sr
this.mutate(e,t,n,r,i,a,o,"receivedCount")}},{key:"incrementEventDropped",value:function(e,t,n,r,i,a,o,s){var c=this.calculateLatency(s)
this.mutate(e,t,n,r,i,a,o,"droppedCount",c,void 0)}},{key:"incrementEventSynced",value:function(e,t,n,r,i,a,o){var s=this.calculateLatency(o)
this.mutate(e,t,n,r,i,a,sr,"syncedCount",s,void 0)}},{key:"incrementEventRetried",value:function(e,t,n,r,i,a){this.mutate(e,t,n,r,i,a,sr,void 0,void 0,1)}},{key:"calculateLatency",value:function(e){var t=void 0
return null!=e&&0!==e&&(t=Date.now()-e),t}},{key:"mutate",value:function(e,t,n,r,i,a,o,s,c,u){var l=this.generateId(e,t,n,r,i,String(a),o),d=this.localCounterMap.get(l)
d||(d={eventName:e,transportKey:t,pageKey:n,viewHierarchy:r,breadcrumbType:i,hasContentTrackingID:a,dropReason:o,receivedCount:0,droppedCount:0,syncedCount:0,latencies:[],retries:[]},this.localCounterMap.set(l,d)),null!=s&&(d[s]+=1),void 0!==c&&d.latencies.push(c),void 0!==u&&d.retries.push(u),this.attemptToFlush()}},{key:"buildMetricsPayload",value:function(e){var t,n=[],r=ur.getInstance().getConfig(),i=r.appId,a=r.platform,o=k(e)
try{for(o.s();!(t=o.n()).done;){var s=t.value
try{var c=lr.buildTrackingSdkEventMetric(s,i,a)
n.push(c)}catch(e){console.error("Error converting metric [".concat(JSON.stringify(s),"] - [").concat("EC101","]:"),e)}}}catch(e){o.e(e)}finally{o.f()}var u=n.map((function(e){return lr.transformToSimplifiedFormat(e)}))
return lr.wrapInEventMetricsPayload(u)}},{key:"attemptToFlush",value:function(){var e=this
this.localCounterMap.size>=20?this.flushMetrics():(this.flushDebounceTimer&&clearTimeout(this.flushDebounceTimer),this.flushDebounceTimer=setTimeout((function(){return e.flushMetrics()}),3e3))}},{key:"flushMetrics",value:function(){var e=this
this.flushPromise=this.flushPromise.then(x(P().mark((function t(){var n,r,i
return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.localCounterMap.size){t.next=2
break}return t.abrupt("return")
case 2:return n=Array.from(e.localCounterMap.values()),e.localCounterMap.clear(),r=e.buildMetricsPayload(n),i={"content-type":"application/json; charset=UTF-8"},t.prev=6,t.next=9,e.beaconFunc(e.endpoint,JSON.stringify(r),i)
case 9:t.next=14
break
case 11:t.prev=11,t.t0=t.catch(6),console.error("Error - [".concat("EC102","]"))
case 14:case"end":return t.stop()}}),t,null,[[6,11]])}))))}},{key:"forceFlush",value:function(){this.flushMetrics()}}]),e}(),fr=new Set(["GenericImpressionEvent","GenericActionEvent","GenericMultipleImpressionEvent","GenericMediaStateChangeEvent"])
function hr(e){try{return JSON.parse(e||"[]").map(pr)}catch(e){return[]}}function pr(e){var t,n,r,i,a,o,s=e.eventInfo,c=null!==(t=null===(n=e.eventBody)||void 0===n||null===(n=n.header)||void 0===n?void 0:n.time)&&void 0!==t?t:Date.now(),u=null!==(r=null===(i=e.eventBody)||void 0===i||null===(i=i.requestHeader)||void 0===i?void 0:i.pageKey)&&void 0!==r?r:rr,l=function(e){return e&&0!==e.length?e.join("|"):ir}(null===(a=e.eventBody)||void 0===a||null===(a=a.header)||void 0===a?void 0:a.viewHierarchy),d=function(e){if(null!=e&&e.clientBreadcrumbPointers&&Array.isArray(e.clientBreadcrumbPointers)){var t=e.clientBreadcrumbPointers.map((function(e){return null==e?void 0:e.type})).filter((function(e){return e})).map((function(e){return String(e)}))
return t.length>0?t.sort().join("|"):ar}return ar}(e.eventBody),f=!(null==(o=e.eventBody)||!o.contentTrackingId||""===o.contentTrackingId)
return{eventName:s.eventName,enqueuedTime:c,pageKey:u,viewHierarchy:l,breadcrumbType:d,hasContentTrackingID:f,dropReason:sr}}var vr,gr=function(){function e(){S(this,e),D(this,"metricsManager",void 0),this.metricsManager=new dr}return O(e,[{key:"onEventReceived",value:function(e){var t=this
this.executeWithTryCatch((function(){var n,r,i,a,o=zn(e.id)
if(t.isTelemetryEnabledForEventName(o)){var s=e.meta.transporterKey||nr,c=(null===(n=e.meta.requestHeader)||void 0===n?void 0:n.pageKey)||(null===(r=e.meta.context)||void 0===r?void 0:r.pageKey)||rr,u=t.formatViewHierarchy(null===(i=e.meta.header)||void 0===i?void 0:i.viewHierarchy),l=ar
if("function"==typeof e.body)try{var d=e.body(e.meta.context||{})
l=t.extractBreadcrumbTypeFromBody(d)}catch(n){l=t.formatBreadcrumbType(e.clientBreadcrumbs)}else(l=t.extractBreadcrumbTypeFromBody(e.body))===ar&&(l=t.formatBreadcrumbType(e.clientBreadcrumbs))
var f=t.checkHasContentTrackingID(e)
null===(a=t.metricsManager)||void 0===a||a.incrementEventReceived(o,s,c,u,l,f)}}))}},{key:"onEventRetried",value:function(e,t,n,r,i,a){var o=this
this.executeWithTryCatch((function(){var s
o.isTelemetryEnabledForEventName(e)&&(null===(s=o.metricsManager)||void 0===s||s.incrementEventRetried(e,t||nr,n||rr,r||ir,i||ar,null!=a?a:or))}))}},{key:"onEventSynced",value:function(e,t,n,r,i,a,o){var s=this
this.executeWithTryCatch((function(){var c
s.isTelemetryEnabledForEventName(e)&&(null===(c=s.metricsManager)||void 0===c||c.incrementEventSynced(e,t||nr,r||rr,i||ir,a||ar,null!=o?o:or,n))}))}},{key:"onEventDropped",value:function(e,t,n,r,i,a,o,s){var c=this,u=arguments.length>8&&void 0!==arguments[8]&&arguments[8]
this.executeWithTryCatch((function(){var l,d
c.isTelemetryEnabledForEventName(e)&&(u&&(null===(d=c.metricsManager)||void 0===d||d.incrementEventReceived(e,t||nr,r||rr,i||ir,a||ar,null!=o?o:or,s||sr)),null===(l=c.metricsManager)||void 0===l||l.incrementEventDropped(e,t||nr,r||rr,i||ir,a||ar,null!=o?o:or,s||sr,n))}))}},{key:"forceFlush",value:function(){var e
null===(e=this.metricsManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.metricsManager=void 0}},{key:"onResultCallbackHook",value:function(e){var t=this
return{onIntermediateResult:function(n,r){var i=hr(r)
t.handleResult(n,i,e)},onBeforeRetry:function(n){hr(n).forEach((function(n){var r=n.eventName,i=n.pageKey,a=n.viewHierarchy,o=n.breadcrumbType,s=n.hasContentTrackingID
t.onEventRetried(r,e,i,a,o,s)}))},onResult:function(n,r){var i=hr(r)
t.handleResult(n,i,e)}}}},{key:"clientMonitoringCallbackHook",value:function(e){var t=this
return{onResult:function(n,r){var i=r.map(pr)
t.handleResult(n,i,e)}}}},{key:"handleResult",value:function(e,t,n){var r=this
200===e.statusCode||400===e.statusCode?t.forEach((function(e){var t=e.eventName,i=e.enqueuedTime,a=e.pageKey,o=e.viewHierarchy,s=e.breadcrumbType,c=e.hasContentTrackingID
r.onEventSynced(t,n,i,a,o,s,c)})):e.drop&&t.forEach((function(e){var t=e.eventName,i=e.enqueuedTime,a=e.pageKey,o=e.viewHierarchy,s=e.breadcrumbType,c=e.hasContentTrackingID
r.onEventDropped(t,n,i,a,o,s,c,tr.BEACON_TRANSPORTER_FAILURE)}))}},{key:"isTelemetryEnabledForEventName",value:function(e){return!!e&&function(e){return fr.has(e)}(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){return}}},{key:"formatViewHierarchy",value:function(e){return e&&0!==e.length?e.join("|"):ir}},{key:"formatBreadcrumbType",value:function(e){if(!e||0===e.length)return ar
var t=e.map((function(e){return null!=e&&e.clientBreadcrumbType?e.clientBreadcrumbType:null})).filter((function(e){return e})).map((function(e){return String(e)}))
return t.length>0?t.sort().join("|"):ar}},{key:"extractBreadcrumbTypeFromBody",value:function(e){if(null!=e&&e.clientBreadcrumbPointers&&Array.isArray(e.clientBreadcrumbPointers)){var t=e.clientBreadcrumbPointers.map((function(e){return null==e?void 0:e.type})).filter((function(e){return e})).map((function(e){return String(e)}))
return t.length>0?t.sort().join("|"):ar}return ar}},{key:"checkHasContentTrackingID",value:function(e){if("function"==typeof e.body)try{var t=e.body(e.meta.context||{})
return this.hasContentTrackingIdInBody(t)}catch(e){return!1}return this.hasContentTrackingIdInBody(e.body)}},{key:"hasContentTrackingIdInBody",value:function(e){return!(null==e||!e.contentTrackingId||""===e.contentTrackingId)}}],[{key:"getInstance",value:function(t){if(!e.instance){var n=ur.getInstance()
n.setAppId(t.appId),n.setEnvironment(t.environment),e.instance=new e}return e.instance}}]),e}()
D(gr,"instance",void 0),function(e){e.Enabled="Enabled",e.Dual="Dual",e.Control="Control"}(vr||(vr={}))
var mr,yr=function(){function e(){S(this,e),D(this,"config",null),D(this,"eventBreadcrumbModeIndex",{})}return O(e,[{key:"configure",value:function(e){this.config=this.parseEncodedConfiguration(e),this.buildEventBreadcrumbIndex()}},{key:"parseEncodedConfiguration",value:function(t){try{return this.decodeConfigBase64url(t)}catch(t){return{e:[],d:[],hp:[],t:e.DEFAULT_HIGH_PRIORITY_TIMEOUT}}}},{key:"buildEventBreadcrumbIndex",value:function(){this.eventBreadcrumbModeIndex={},this.config&&(this.indexEventGroups(this.config.e,vr.Enabled),this.indexEventGroups(this.config.d,vr.Dual))}},{key:"indexEventGroups",value:function(e,t){if(e){var n,r=k(e)
try{for(r.s();!(n=r.n()).done;){var i=n.value
this.isEmptyGroup(i)||this.indexSingleGroup(i,t)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"isEmptyGroup",value:function(e){return!e||0===e.length}},{key:"indexSingleGroup",value:function(e,t){var n=this.filterEventIds(e),r=this.filterBreadcrumbIds(e)
this.hasEventsWithoutBreadcrumbs(n,r)?this.indexEventsWithoutBreadcrumbs(n,t):this.hasInvalidGroup(n,r)||this.indexEventBreadcrumbPairs(n,r,t)}},{key:"filterEventIds",value:function(t){return t.filter((function(t){return!e.BREADCRUMB_IDS.has(t)}))}},{key:"filterBreadcrumbIds",value:function(t){return t.filter((function(t){return e.BREADCRUMB_IDS.has(t)}))}},{key:"hasEventsWithoutBreadcrumbs",value:function(e,t){return e.length>0&&0===t.length}},{key:"hasInvalidGroup",value:function(e,t){return 0===e.length||0===t.length}},{key:"indexEventsWithoutBreadcrumbs",value:function(t,n){var r,i=k(t)
try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e.ID_TO_NAME[a]
if(o){var s=this.compositeKey(o,"EMPTY")
this.eventBreadcrumbModeIndex[s]=n}}}catch(e){i.e(e)}finally{i.f()}}},{key:"indexEventBreadcrumbPairs",value:function(t,n,r){var i,a=k(t)
try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e.ID_TO_NAME[o]
s&&(this.hasAllBreadcrumb(n)?this.indexEventWithAllBreadcrumb(s,r):this.indexEventWithIndividualBreadcrumbs(s,n,r))}}catch(e){a.e(e)}finally{a.f()}}},{key:"hasAllBreadcrumb",value:function(t){return t.includes(e.ALL_BREADCRUMB_ID)}},{key:"indexEventWithAllBreadcrumb",value:function(t,n){var r=e.ID_TO_NAME[e.ALL_BREADCRUMB_ID]
if(r){var i=this.compositeKey(t,r)
this.eventBreadcrumbModeIndex[i]=n}}},{key:"indexEventWithIndividualBreadcrumbs",value:function(t,n,r){var i,a=k(n)
try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e.ID_TO_NAME[o]
if(s){var c=this.compositeKey(t,s)
this.eventBreadcrumbModeIndex[c]=r}}}catch(e){a.e(e)}finally{a.f()}}},{key:"getHighPriorityTimeout",value:function(){var t,n
return null!==(t=null===(n=this.config)||void 0===n?void 0:n.t)&&void 0!==t?t:e.DEFAULT_HIGH_PRIORITY_TIMEOUT}},{key:"getNormalPriorityTimeout",value:function(){var t,n
return null!==(t=null===(n=this.config)||void 0===n?void 0:n.nt)&&void 0!==t?t:e.DEFAULT_NORMAL_PRIORITY_TIMEOUT}},{key:"isHighPriorityEvent",value:function(t){if(!this.config)return!1
var n=e.NAME_TO_ID[t]
return void 0!==n&&this.config.hp.includes(n)}},{key:"getEventLixMode",value:function(e,t){var n=this
if(!this.config)return vr.Control
if(!t||0===t.length){var r,i=this.compositeKey(e,"EMPTY")
return null!==(r=this.eventBreadcrumbModeIndex[i])&&void 0!==r?r:vr.Control}var a=this.compositeKey(e,"ALL")
if(this.eventBreadcrumbModeIndex[a])return this.eventBreadcrumbModeIndex[a]
var o,s=[],c=k(t)
try{for(c.s();!(o=c.n()).done;){var u,l=o.value,d=this.compositeKey(e,l),f=null!==(u=this.eventBreadcrumbModeIndex[d])&&void 0!==u?u:vr.Control
s.push(f)}}catch(e){c.e(e)}finally{c.f()}return s.reduce((function(e,t){return n.modeRank(t)<n.modeRank(e)?t:e}),vr.Enabled)}},{key:"compositeKey",value:function(e,t){return e+"-"+t}},{key:"modeRank",value:function(e){switch(e){case vr.Enabled:return 3
case vr.Dual:return 2
case vr.Control:default:return 1}}},{key:"readVarint",value:function(t,n){for(var r=n[0],i=0,a=0;r<t.length;){var o=t[r++]
if(i|=(o&e.VARINT_VALUE_MASK)<<a,!(o&e.VARINT_CONTINUATION_MASK))return n[0]=r,i
a+=e.VARINT_SHIFT_BITS}throw new Error("Invalid configuration format - unable to decode")}},{key:"decodeConfigBase64url",value:function(e){var t=this.decodeBase64UrlToBytes(e)
this.validateMinimumLength(t)
var n=0
n=this.validateHeaderAndVersion(t,n)
var r=this.decodeEventArrays(t,n),i=r.e,a=r.d,o=r.position,s=this.decodeHighPriorityBitmap(t,o),c=s.hp,u=s.position,l=this.decodeTimeouts(t,u),d=l.t,f=l.nt
return this.buildResult(i,a,c,d,f)}},{key:"decodeBase64UrlToBytes",value:function(t){var n=t.trim().replace(/-/g,"+").replace(/_/g,"/"),r=n+"=".repeat((e.BASE64_PADDING_DIVISOR-n.length%e.BASE64_PADDING_DIVISOR)%e.BASE64_PADDING_DIVISOR)
return Uint8Array.from(atob(r),(function(e){return e.charCodeAt(0)}))}},{key:"validateMinimumLength",value:function(t){if(t.length<e.MINIMUM_HEADER_LENGTH)throw new Error("Invalid format: too short")}},{key:"validateHeaderAndVersion",value:function(t,n){if(t[n]!==e.MAGIC_BYTE_1||t[n+1]!==e.MAGIC_BYTE_2)throw new Error('Invalid header - expected "EV" magic bytes')
n+=2
var r=t[n++]
if(r!==e.PROTOCOL_VERSION)throw new Error("Unsupported version: "+r+". Expected "+e.PROTOCOL_VERSION+".")
return n}},{key:"decodeEventArrays",value:function(e,t){var n=this.decodeNestedArrays(e,t),r=n.arrays,i=n.position,a=this.decodeNestedArrays(e,i)
return{e:r,d:a.arrays,position:a.position}}},{key:"decodeNestedArrays",value:function(e,t){var n=t,r=[n],i=this.readVarint(e,r)
n=r[0]
for(var a=[],o=0;o<i;o++){var s=this.decodeSingleGroup(e,n),c=s.group,u=s.position
a.push(c),n=u}return{arrays:a,position:n}}},{key:"decodeSingleGroup",value:function(e,t){var n=t,r=[n],i=this.readVarint(e,r)
n=r[0]
for(var a=[],o=0;o<i;o++){var s=[n],c=this.readVarint(e,s)
n=s[0],a.push(c)}return{group:a,position:n}}},{key:"decodeHighPriorityBitmap",value:function(e,t){var n=[t],r=this.readVarint(e,n),i=n[0],a=i+r
if(a>e.length)throw new Error("Truncated hp bitmap")
return{hp:this.extractBitmapIds(e,i,a),position:a}}},{key:"extractBitmapIds",value:function(t,n,r){for(var i=[],a=0,o=n;o<r;o++){for(var s=t[o],c=0;c<e.BITS_PER_BYTE;c++)s&1<<c&&i.push(a+c+1)
a+=e.BITS_PER_BYTE}return i}},{key:"decodeTimeouts",value:function(e,t){var n=t,r=[n],i=this.readVarint(e,r),a=[n=r[0]]
return{t:i,nt:this.readVarint(e,a)}}},{key:"buildResult",value:function(t,n,r,i,a){var o={e:t,d:n,hp:r,t:i}
return a!==e.DEFAULT_NORMAL_PRIORITY_TIMEOUT&&(o.nt=a),o}}]),e}()
r=yr,D(yr,"PROTOCOL_VERSION",1),D(yr,"MAGIC_BYTE_1",69),D(yr,"MAGIC_BYTE_2",86),D(yr,"MINIMUM_HEADER_LENGTH",3),D(yr,"DEFAULT_HIGH_PRIORITY_TIMEOUT",1),D(yr,"DEFAULT_NORMAL_PRIORITY_TIMEOUT",3),D(yr,"ALL_BREADCRUMB_ID",26),D(yr,"BREADCRUMB_IDS",new Set([15,16,17,18,19,20,21,22,23,24,25,26])),D(yr,"VARINT_CONTINUATION_MASK",128),D(yr,"VARINT_VALUE_MASK",127),D(yr,"VARINT_SHIFT_BITS",7),D(yr,"BITS_PER_BYTE",8),D(yr,"BASE64_PADDING_DIVISOR",4),D(yr,"ID_TO_NAME",{1:"GenericActionEvent",2:"GenericImpressionEvent",3:"LixTreatmentsEvent",4:"ResourceLoadEvent",5:"NativePageLoadEvent",6:"PageViewEvent",7:"ControlInteractionEvent",8:"FeedImpressionEvent",9:"NavigationEvent",10:"OtelPilotClientTraceEvent",11:"MobileApplicationSessionEvent",12:"FeedActionEvent",13:"PageLoadStartEvent",14:"PageLoadEndEvent",15:"MediaBreadcrumb",16:"FeedUpdateServedBreadcrumb",17:"FeedCommentServedBreadcrumb",18:"CommentServedBreadcrumb",19:"FeedAccessoryBreadcrumb",20:"JobViewportImpressionBreadcrumb",21:"JobViewNileBreadcrumb",22:"JobActionBreadcrumb",23:"JobSearchFeedbackBreadcrumb",24:"JobApplyClickBreadcrumb",25:"JobsFeedModuleImpressionBreadcrumb",26:"ALL"}),D(yr,"NAME_TO_ID",Object.fromEntries(Object.entries(r.ID_TO_NAME).map((function(e){var t=T(e,2),n=t[0]
return[t[1],parseInt(n)]})))),function(e){e.GenericImpressionEvent="GenericImpressionEvent",e.GenericActionEvent="GenericActionEvent"}(mr||(mr={}))
var Er,Tr,br,_r,Ir,kr,wr={width:"sint32",height:"sint32",horizontalPosition:"sint32",verticalPosition:"sint32"},Nr={},Ar={contentTrackingId:"trackingId",trackingId:"trackingId","header.guid":"trackingId","header.pageInstance.trackingId":"trackingId","header.clientApplicationInstance.trackingId":"trackingId","clientBreadcrumbPointers.items.id":"trackingId","trackingScopeHierarchy.entries.contentTrackingId":"trackingId"},Cr={manualFireReason:"enum:ManualFireReason","requestHeader.clientDeviceType":"enum:ClientDeviceType","requestHeader.theme":"enum:Theme","clientBreadcrumbPointers.items.type":"enum:ClientBreadcrumbType"},Sr={clientBreadcrumbPointers:"arrayWrapper",trackingScopeHierarchy:"arrayWrapper","header.viewHierarchy":"arrayWrapper"},Rr=["header.server","header.version","header.clientApplicationInstance","requestHeader.interfaceLocale","requestHeader.isBrowserPersistentRetryEnabled","requestHeader.isFlushOnCloseBrowserTabEnabled","requestHeader.path","requestHeader.clientDeviceType","requestHeader.timeZoneOffsetMinutes"],Or={GenericImpressionEvent:{rootFields:_(_(_(_(_({},wr),Nr),Ar),Cr),{},{viewDurationInMilliseconds:"sint64",contentViewFraction:"float"})},GenericActionEvent:{rootFields:_(_(_(_(_({},wr),Nr),Ar),Cr),{},{interactionType:"enum:InteractionType",actorType:"enum:ActorType"})}},Dr={GenericImpressionEvent:{rootFields:_({},Sr)},GenericActionEvent:{rootFields:_({},Sr)}},Mr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
S(this,e),D(this,"eventConfigurations",{}),this.eventConfigurations=_({},t)}return O(e,[{key:"getEventConfig",value:function(e){return this.eventConfigurations[e]||null}},{key:"resolveFieldRule",value:function(e,t,n){var r=this.getEventConfig(n)
if(!r)return{rule:null,source:"none",resolvedPath:this.buildPath(t,e)}
if(t){var i=this.buildPath(t,e)
if(r.rootFields[i])return{rule:r.rootFields[i],source:"root",resolvedPath:i}}if(r.rootFields[e])return{rule:r.rootFields[e],source:"root",resolvedPath:e}
throw new Error("No field rule configuration found for field '".concat(e,"' at path '").concat(t,"' in event '").concat(n,"'."))}},{key:"buildPath",value:function(e,t){return e?"".concat(e,".").concat(t):t}}]),e}(),Pr=function(){function e(){S(this,e)}return O(e,[{key:"convert",value:function(t){if(this.isValidTrackingIdObject(t))return t
if(this.isTrackingIdObjectWithConversion(t))return this.convertTrackingIdObject(t)
if(Array.isArray(t)&&t.every((function(e){return"number"==typeof e}))){if(t.length!==e.FIXED_16_BYTES_LENGTH)return
var n=t.map((function(e){return 255&e}))
return{fixedValue:new Uint8Array(n)}}return"string"==typeof t&&t.length>0?{fixedValue:this.convertStringToBytes(t)}:void 0}},{key:"isValidTrackingIdObject",value:function(t){return"object"===C(t)&&null!==t&&t.fixedValue instanceof Uint8Array&&t.fixedValue.length===e.FIXED_16_BYTES_LENGTH}},{key:"isTrackingIdObjectWithConversion",value:function(e){return"object"===C(e)&&null!==e&&"fixedValue"in e&&!(e.fixedValue instanceof Uint8Array)}},{key:"convertTrackingIdObject",value:function(t){var n=t.fixedValue
if(Array.isArray(n)&&n.every((function(e){return"number"==typeof e}))){if(n.length!==e.FIXED_16_BYTES_LENGTH)return
var r=n.map((function(e){return 255&e}))
return{fixedValue:new Uint8Array(r)}}if("string"==typeof n&&n.length>0)return{fixedValue:this.convertStringToBytes(n)}}},{key:"convertStringToBytes",value:function(e){var t,n,r
return null!==(t=null!==(n=null!==(r=this.tryBase64Decode(e))&&void 0!==r?r:this.tryUuidDecode(e))&&void 0!==n?n:this.tryLatin1Decode(e))&&void 0!==t?t:(new TextEncoder).encode(e)}},{key:"tryBase64Decode",value:function(t){if(t.length!==e.BASE64_16_BYTES_LENGTH)return null
try{var n=Nn(t)
return n.length===e.FIXED_16_BYTES_LENGTH?n:null}catch(e){return null}}},{key:"tryUuidDecode",value:function(t){if(t.length!==e.UUID_STRING_LENGTH)return null
try{var n=this.convertUuidStringToBytes(t)
return n.length===e.FIXED_16_BYTES_LENGTH?n:null}catch(e){return null}}},{key:"tryLatin1Decode",value:function(t){if(t.length!==e.LATIN1_BYTES_LENGTH)return null
for(var n=new Uint8Array(e.LATIN1_BYTES_LENGTH),r=0;r<e.LATIN1_BYTES_LENGTH;r++){var i=t.charCodeAt(r)
if(i>255)return null
n[r]=i}return n}},{key:"convertUuidStringToBytes",value:function(t){var n=t.replace(/-/g,"")
if(n.length!==e.UUID_HEX_LENGTH)throw new Error("Invalid UUID format: ".concat(t," (expected ").concat(e.UUID_HEX_LENGTH," hex chars, got ").concat(n.length,")"))
for(var r=new Uint8Array(e.FIXED_16_BYTES_LENGTH),i=0;i<e.FIXED_16_BYTES_LENGTH;i++){var a=n.substring(2*i,2*i+2),o=parseInt(a,16)
if(isNaN(o))throw new Error('Invalid hex pair "'.concat(a,'" in UUID: ').concat(t))
r[i]=o}return r}}]),e}()
D(Pr,"FIXED_16_BYTES_LENGTH",16),D(Pr,"UUID_STRING_LENGTH",36),D(Pr,"UUID_HEX_LENGTH",32),D(Pr,"BASE64_16_BYTES_LENGTH",24),D(Pr,"LATIN1_BYTES_LENGTH",16),function(e){e[e.ManualFireReason_UNKNOWN=0]="ManualFireReason_UNKNOWN",e[e.ManualFireReason_EXTERNAL_VIEW_HIGHCHARTS=1]="ManualFireReason_EXTERNAL_VIEW_HIGHCHARTS",e[e.ManualFireReason_EMBER_CLI_PEMBERLY_TRACKING=2]="ManualFireReason_EMBER_CLI_PEMBERLY_TRACKING",e[e.ManualFireReason_COMO_TRACKING=3]="ManualFireReason_COMO_TRACKING",e[e.ManualFireReason_ME_NOTIFICATION_ACTION_LEGACY=4]="ManualFireReason_ME_NOTIFICATION_ACTION_LEGACY",e[e.ManualFireReason_ART_DECO_BOTTOM_SHEET=5]="ManualFireReason_ART_DECO_BOTTOM_SHEET",e[e.ManualFireReason_COLLECTION_VIEW_DIDSELECTITEM_ACTION=6]="ManualFireReason_COLLECTION_VIEW_DIDSELECTITEM_ACTION",e[e.ManualFireReason_ART_DECO_ALERT=7]="ManualFireReason_ART_DECO_ALERT",e[e.ManualFireReason_FEED_ACTION_EVENT_MIGRATION=8]="ManualFireReason_FEED_ACTION_EVENT_MIGRATION",e[e.ManualFireReason_ART_DECO_MODAL=9]="ManualFireReason_ART_DECO_MODAL",e[e.ManualFireReason_TEXT_SPAN=10]="ManualFireReason_TEXT_SPAN",e[e.ManualFireReason_MY_NETWORK_BADGE_ACTION_ON_APPEAR=11]="ManualFireReason_MY_NETWORK_BADGE_ACTION_ON_APPEAR",e[e.ManualFireReason_MESSAGING_SEND_RELIABILITY=12]="ManualFireReason_MESSAGING_SEND_RELIABILITY",e[e.ManualFireReason_CUSTOM_CLIENT_TRIGGER=13]="ManualFireReason_CUSTOM_CLIENT_TRIGGER",e[e.ManualFireReason_VIEW_NOT_ACCESSIBLE=14]="ManualFireReason_VIEW_NOT_ACCESSIBLE",e[e.ManualFireReason_SEARCH_ACTION_V2_EVENT_MIGRATION=15]="ManualFireReason_SEARCH_ACTION_V2_EVENT_MIGRATION",e[e.ManualFireReason_SPONSORED_ACTION_EVENT_MIGRATION=16]="ManualFireReason_SPONSORED_ACTION_EVENT_MIGRATION",e[e.ManualFireReason_CAMPAIGN_CREATED_WITH_MANUAL_PRODUCT_DESCRIPTION=17]="ManualFireReason_CAMPAIGN_CREATED_WITH_MANUAL_PRODUCT_DESCRIPTION",e[e.ManualFireReason_APP_WIDGET_TRACKING=18]="ManualFireReason_APP_WIDGET_TRACKING",e[e.ManualFireReason_MULTIPLE_CTA_TRACKING_BUG=19]="ManualFireReason_MULTIPLE_CTA_TRACKING_BUG",e[e.ManualFireReason_SYSTEM_TRIGGERED_ACTION=20]="ManualFireReason_SYSTEM_TRIGGERED_ACTION",e[e.ManualFireReason_PROFILE_VIEW_EVENT_TRACKING=21]="ManualFireReason_PROFILE_VIEW_EVENT_TRACKING",e[e.ManualFireReason_AUTO_PLAY_VIDEO=22]="ManualFireReason_AUTO_PLAY_VIDEO",e[e.ManualFireReason_MISSING_CALLBACK_INFRA_TO_OVERRIDE_GAE_BREADCRUMB=23]="ManualFireReason_MISSING_CALLBACK_INFRA_TO_OVERRIDE_GAE_BREADCRUMB"}(Er||(Er={})),function(e){e[e.ControlInteractionType_AUTO_GEN_UNKNOWN=0]="ControlInteractionType_AUTO_GEN_UNKNOWN",e[e.ControlInteractionType_FOCUS=1]="ControlInteractionType_FOCUS",e[e.ControlInteractionType_UNFOCUS=2]="ControlInteractionType_UNFOCUS",e[e.ControlInteractionType_KEYBOARD_SUBMIT=3]="ControlInteractionType_KEYBOARD_SUBMIT",e[e.ControlInteractionType_DRAG=4]="ControlInteractionType_DRAG",e[e.ControlInteractionType_PINCH_OPEN=5]="ControlInteractionType_PINCH_OPEN",e[e.ControlInteractionType_PINCH_CLOSE=6]="ControlInteractionType_PINCH_CLOSE",e[e.ControlInteractionType_DOUBLE_PRESS=7]="ControlInteractionType_DOUBLE_PRESS",e[e.ControlInteractionType_LONG_PRESS=8]="ControlInteractionType_LONG_PRESS",e[e.ControlInteractionType_SHORT_PRESS=9]="ControlInteractionType_SHORT_PRESS",e[e.ControlInteractionType_SWIPE_UP=10]="ControlInteractionType_SWIPE_UP",e[e.ControlInteractionType_SWIPE_DOWN=11]="ControlInteractionType_SWIPE_DOWN",e[e.ControlInteractionType_SWIPE_LEFT=12]="ControlInteractionType_SWIPE_LEFT",e[e.ControlInteractionType_SWIPE_RIGHT=13]="ControlInteractionType_SWIPE_RIGHT",e[e.ControlInteractionType_FLICK_UP=14]="ControlInteractionType_FLICK_UP",e[e.ControlInteractionType_FLICK_DOWN=15]="ControlInteractionType_FLICK_DOWN",e[e.ControlInteractionType_FLICK_LEFT=16]="ControlInteractionType_FLICK_LEFT",e[e.ControlInteractionType_FLICK_RIGHT=17]="ControlInteractionType_FLICK_RIGHT",e[e.ControlInteractionType_SHAKE=18]="ControlInteractionType_SHAKE",e[e.ControlInteractionType_KEYBOARD_NEXT=19]="ControlInteractionType_KEYBOARD_NEXT",e[e.ControlInteractionType_HOVER=20]="ControlInteractionType_HOVER",e[e.ControlInteractionType_KEYBOARD_PRESS=21]="ControlInteractionType_KEYBOARD_PRESS",e[e.ControlInteractionType_UNKNOWN=22]="ControlInteractionType_UNKNOWN",e[e.ControlInteractionType_AUXCLICK=23]="ControlInteractionType_AUXCLICK",e[e.ControlInteractionType_CONTEXTMENU=24]="ControlInteractionType_CONTEXTMENU"}(Tr||(Tr={})),function(e){e[e.ActorType_UNKNOWN=0]="ActorType_UNKNOWN",e[e.ActorType_USER=1]="ActorType_USER",e[e.ActorType_SYSTEM=2]="ActorType_SYSTEM"}(br||(br={})),function(e){e[e.ClientDeviceType_UNKNOWN=0]="ClientDeviceType_UNKNOWN",e[e.ClientDeviceType_DESKTOP=1]="ClientDeviceType_DESKTOP",e[e.ClientDeviceType_MOBILE=2]="ClientDeviceType_MOBILE",e[e.ClientDeviceType_TABLET=3]="ClientDeviceType_TABLET"}(_r||(_r={})),function(e){e[e.ClientBreadcrumbType_UNKNOWN=0]="ClientBreadcrumbType_UNKNOWN",e[e.ClientBreadcrumbType_ME_NOTIFICATION=1]="ClientBreadcrumbType_ME_NOTIFICATION",e[e.ClientBreadcrumbType_ME_NOTIFICATION_ACTION=2]="ClientBreadcrumbType_ME_NOTIFICATION_ACTION",e[e.ClientBreadcrumbType_JOB_VIEW=3]="ClientBreadcrumbType_JOB_VIEW",e[e.ClientBreadcrumbType_MEDIA=4]="ClientBreadcrumbType_MEDIA",e[e.ClientBreadcrumbType_TARGETED_OFFER=5]="ClientBreadcrumbType_TARGETED_OFFER",e[e.ClientBreadcrumbType_FEED_UPDATE_SERVED=6]="ClientBreadcrumbType_FEED_UPDATE_SERVED",e[e.ClientBreadcrumbType_FEED_COMMENT_SERVED=7]="ClientBreadcrumbType_FEED_COMMENT_SERVED",e[e.ClientBreadcrumbType_MESSAGE_SEND_CLIENT_SUCCESS=8]="ClientBreadcrumbType_MESSAGE_SEND_CLIENT_SUCCESS",e[e.ClientBreadcrumbType_MESSAGE_SEND_CLIENT_FAILURE=9]="ClientBreadcrumbType_MESSAGE_SEND_CLIENT_FAILURE",e[e.ClientBreadcrumbType_MESSAGE_SEND_FUNNEL=10]="ClientBreadcrumbType_MESSAGE_SEND_FUNNEL",e[e.ClientBreadcrumbType_COMMENT_SERVED=11]="ClientBreadcrumbType_COMMENT_SERVED",e[e.ClientBreadcrumbType_SPONSORED_UPDATE_SERVED=12]="ClientBreadcrumbType_SPONSORED_UPDATE_SERVED",e[e.ClientBreadcrumbType_SPONSORED_CAROUSEL_ITEM_SERVED=13]="ClientBreadcrumbType_SPONSORED_CAROUSEL_ITEM_SERVED",e[e.ClientBreadcrumbType_SPONSORED_DOCUMENT_PAGE_SERVED=14]="ClientBreadcrumbType_SPONSORED_DOCUMENT_PAGE_SERVED",e[e.ClientBreadcrumbType_FEED_ACCESSORY=15]="ClientBreadcrumbType_FEED_ACCESSORY",e[e.ClientBreadcrumbType_JOB_VIEWPORT_IMPRESSION=16]="ClientBreadcrumbType_JOB_VIEWPORT_IMPRESSION",e[e.ClientBreadcrumbType_JOB_VIEW_NILE=17]="ClientBreadcrumbType_JOB_VIEW_NILE",e[e.ClientBreadcrumbType_WIDGET_RENDER=18]="ClientBreadcrumbType_WIDGET_RENDER",e[e.ClientBreadcrumbType_WIDGET_ACTION=19]="ClientBreadcrumbType_WIDGET_ACTION",e[e.ClientBreadcrumbType_GUIDE_ENTRYPOINT=20]="ClientBreadcrumbType_GUIDE_ENTRYPOINT",e[e.ClientBreadcrumbType_GUIDE_FEEDBACK=21]="ClientBreadcrumbType_GUIDE_FEEDBACK",e[e.ClientBreadcrumbType_JOB_ACTION=22]="ClientBreadcrumbType_JOB_ACTION",e[e.ClientBreadcrumbType_JOB_SEARCH_FEEDBACK=23]="ClientBreadcrumbType_JOB_SEARCH_FEEDBACK",e[e.ClientBreadcrumbType_LEAD_GEN_FORM_SERVED=24]="ClientBreadcrumbType_LEAD_GEN_FORM_SERVED",e[e.ClientBreadcrumbType_MYNETWORK_ONBOARDING_FLOW_TRACKING=25]="ClientBreadcrumbType_MYNETWORK_ONBOARDING_FLOW_TRACKING",e[e.ClientBreadcrumbType_SPONSORED_RIGHT_RAIL_CONTENT=26]="ClientBreadcrumbType_SPONSORED_RIGHT_RAIL_CONTENT",e[e.ClientBreadcrumbType_SPONSORED_VIDEO_VIEW=27]="ClientBreadcrumbType_SPONSORED_VIDEO_VIEW",e[e.ClientBreadcrumbType_JOB_APPLY_CLICK=28]="ClientBreadcrumbType_JOB_APPLY_CLICK",e[e.ClientBreadcrumbType_PROFILE_GENERATED_SUGGESTION_VIEW_IMPRESSION=29]="ClientBreadcrumbType_PROFILE_GENERATED_SUGGESTION_VIEW_IMPRESSION",e[e.ClientBreadcrumbType_PREMIUM_GENERATIVE_AI_SURVEY_IMPRESSION=30]="ClientBreadcrumbType_PREMIUM_GENERATIVE_AI_SURVEY_IMPRESSION",e[e.ClientBreadcrumbType_SPONSORED_MESSAGING=31]="ClientBreadcrumbType_SPONSORED_MESSAGING",e[e.ClientBreadcrumbType_PREMIUM_JOB_DETAILS_COMPANY_INSIGHTS_IMPRESSION=32]="ClientBreadcrumbType_PREMIUM_JOB_DETAILS_COMPANY_INSIGHTS_IMPRESSION",e[e.ClientBreadcrumbType_PROFILE_VIEW=33]="ClientBreadcrumbType_PROFILE_VIEW",e[e.ClientBreadcrumbType_PROFILE_ACTION=34]="ClientBreadcrumbType_PROFILE_ACTION",e[e.ClientBreadcrumbType_BROWSE_MAP=35]="ClientBreadcrumbType_BROWSE_MAP",e[e.ClientBreadcrumbType_PROFILE_OPPORTUNITY_CARD=36]="ClientBreadcrumbType_PROFILE_OPPORTUNITY_CARD",e[e.ClientBreadcrumbType_TRUSTED_GRAPH_VERIFICATION_FUNNEL=37]="ClientBreadcrumbType_TRUSTED_GRAPH_VERIFICATION_FUNNEL",e[e.ClientBreadcrumbType_UPDATE_COMMENTARY_LINK_CLICKED=38]="ClientBreadcrumbType_UPDATE_COMMENTARY_LINK_CLICKED",e[e.ClientBreadcrumbType_SPONSORED_WEB_VIEW=39]="ClientBreadcrumbType_SPONSORED_WEB_VIEW",e[e.ClientBreadcrumbType_JOBS_FEED_MODULE_IMPRESSION=40]="ClientBreadcrumbType_JOBS_FEED_MODULE_IMPRESSION",e[e.ClientBreadcrumbType_TALENT_MARKETPLACE_ENTITY_ACTIVITY=41]="ClientBreadcrumbType_TALENT_MARKETPLACE_ENTITY_ACTIVITY",e[e.ClientBreadcrumbType_GENERATIVE_AI_FEEDBACK_EVENT_NILE=42]="ClientBreadcrumbType_GENERATIVE_AI_FEEDBACK_EVENT_NILE",e[e.ClientBreadcrumbType_GDPR_NOTICE=43]="ClientBreadcrumbType_GDPR_NOTICE",e[e.ClientBreadcrumbType_SPONSORED_GENERIC_AD_FORMAT=44]="ClientBreadcrumbType_SPONSORED_GENERIC_AD_FORMAT"}(Ir||(Ir={})),function(e){e[e.Theme_UNKNOWN=0]="Theme_UNKNOWN",e[e.Theme_LIGHT=1]="Theme_LIGHT",e[e.Theme_DARK=2]="Theme_DARK"}(kr||(kr={}))
var Lr=function(){function e(){S(this,e)}return O(e,[{key:"convert",value:function(e,t,n){try{if(null==e)return
if("number"==typeof e){if(this.validateNumericEnumValue(e,t))return e
throw new Error("Invalid numeric enum value: ".concat(e," for ").concat(t))}if("string"==typeof e)return this.convertStringToEnum(e,t)
throw new Error("Expected string or number, got ".concat(C(e)))}catch(e){throw new Error("Enum conversion failed for ".concat(n,": ").concat(e instanceof Error?e.message:String(e)))}}},{key:"convertStringToEnum",value:function(e,t){var n=this.getEnumObject(t)
if(!n)throw new Error("Unsupported enum type: ".concat(t))
var r=this.lookupByFullName(e,n)
if(null!==r)return r
var i=this.lookupByPrefix(e,t,n)
if(null!==i)return i
var a=this.parseNumericString(e,t)
if(null!==a)return a
throw new Error('Invalid enum value: "'.concat(e,'" for ').concat(t))}},{key:"lookupByFullName",value:function(e,t){return e in t?t[e]:null}},{key:"lookupByPrefix",value:function(e,t,n){var r=e.toUpperCase(),i="".concat(t,"_").concat(r)
if(i in n)return n[i]
if("InteractionType"===t){var a="ControlInteractionType_".concat(r)
if(a in n)return n[a]}return null}},{key:"parseNumericString",value:function(e,t){if(/^\d+$/.test(e)){var n=parseInt(e,10)
if(this.validateNumericEnumValue(n,t))return n}return null}},{key:"validateNumericEnumValue",value:function(e,t){var n=this.getEnumObject(t)
return!!n&&Object.values(n).includes(e)}},{key:"getEnumObject",value:function(e){switch(e){case"ManualFireReason":return Er
case"InteractionType":return Tr
case"ActorType":return br
case"ClientDeviceType":return _r
case"ClientBreadcrumbType":return Ir
case"Theme":return kr
default:return null}}}]),e}(),xr="trackingScopeHierarchy",Br="clientBreadcrumbPointers",Ur="viewHierarchy",Fr=function(){function e(){S(this,e)}return O(e,[{key:"convert",value:function(e,t){var n=this.getFieldType(t)
if(null===n)throw new Error("Unsupported array wrapper field type: ".concat(t))
if(this.isAlreadyInCorrectFormat(e,n))return e
if(!Array.isArray(e)){var r=null===e?"object":C(e)
throw new Error("ArrayWrapperConverter expects an array or valid wrapper object, got ".concat(r))}var i=this.extractArrayItems(e)
return this.createWrapper(i,n)}},{key:"isArrayWrapperCandidate",value:function(e){return!!Array.isArray(e)}},{key:"isAlreadyInCorrectFormat",value:function(e,t){if(!e||"object"!==C(e)||Array.isArray(e))return!1
switch(t){case xr:return"entries"in e&&Array.isArray(e.entries)
case Br:case Ur:return"items"in e&&Array.isArray(e.items)
default:return!1}}},{key:"getFieldType",value:function(e){switch(e){case xr:return xr
case Br:return Br
case Ur:return Ur
default:return null}}},{key:"extractArrayItems",value:function(e){if(null==e)return[]
if(Array.isArray(e))return e
if("object"===C(e)){if(Array.isArray(e.items))return e.items
if(Array.isArray(e.entries))return e.entries}return[e]}},{key:"createWrapper",value:function(e,t){switch(t){case xr:return{entries:e}
case Br:case Ur:return{items:e}
default:throw new Error("Unsupported array wrapper field type in createWrapper: ".concat(t))}}}]),e}(),Hr=function(){function e(){S(this,e)}return O(e,[{key:"convert",value:function(e,t){switch(t){case"int32":case"sint32":return this.convertToNumber(e,parseInt)
case"sint64":return this.convertToSint64(e)
case"float":case"double":return this.convertToNumber(e,parseFloat)
case"bool":return this.convertToBoolean(e)
case"string":return this.convertToString(e)
case"bytes":return this.convertToBytes(e)
default:throw new Error("Unsupported field type: ".concat(t))}}},{key:"isSupported",value:function(e){return["int32","sint32","sint64","float","double","bool","string","bytes"].includes(e)}},{key:"convertToNumber",value:function(e,t){if("number"==typeof e){if(!Number.isFinite(e))throw new Error("Invalid number: ".concat(e))
return t===parseInt?Math.floor(e):e}if("string"==typeof e){var n=t(e)
if(isNaN(n))throw new Error('Cannot convert "'.concat(e,'" to number'))
return n}throw new Error("Expected number or string, got ".concat(C(e)))}},{key:"convertToSint64",value:function(e){if("number"==typeof e){if(!Number.isFinite(e))throw new Error("Invalid number: ".concat(e))
return Math.floor(e).toString()}if("string"==typeof e){var t=parseInt(e,10)
if(isNaN(t))throw new Error('Cannot convert "'.concat(e,'" to sint64'))
return Math.floor(t).toString()}if("bigint"==typeof e)return e.toString()
throw new Error("Expected number, string, or bigint, got ".concat(C(e)))}},{key:"convertToBoolean",value:function(e){if("boolean"==typeof e)return e
if("string"==typeof e){var t=e.toLowerCase()
if("true"===t||"1"===t)return!0
if("false"===t||"0"===t||""===t)return!1
throw new Error('Cannot convert string "'.concat(e,'" to boolean'))}return"number"==typeof e?0!==e:Boolean(e)}},{key:"convertToString",value:function(e){return"string"==typeof e?e:null==e?"":String(e)}},{key:"convertToBytes",value:function(e){if(e instanceof Uint8Array)return e
if(Array.isArray(e)){if(!e.every((function(e){return"number"==typeof e&&Number.isInteger(e)&&e>=0&&e<=255})))throw new Error("Array must contain only integers between 0-255")
return new Uint8Array(e)}if("string"==typeof e)return(new TextEncoder).encode(e)
throw new Error("Cannot convert ".concat(C(e)," to bytes"))}}]),e}(),Vr=function(){function e(t){S(this,e),D(this,"eventName",void 0),D(this,"sanitizedData",void 0),D(this,"errors",[]),D(this,"trackingIdConverter",void 0),D(this,"enumConverter",void 0),D(this,"arrayWrapperConverter",void 0),D(this,"fieldTypeConverter",void 0),D(this,"fieldRuleEngine",void 0),D(this,"structuralRuleEngine",void 0),this.eventName=t,this.trackingIdConverter=new Pr,this.enumConverter=new Lr,this.arrayWrapperConverter=new Fr,this.fieldTypeConverter=new Hr,this.fieldRuleEngine=new Mr(Or),this.structuralRuleEngine=new Mr(Dr)}return O(e,[{key:"fromJson",value:function(e){return this.sanitizedData=gn(e),this}},{key:"sanitize",value:function(){var e=this
try{this.sanitizedData=Sn(this.sanitizedData,{processField:function(t,n,r){return e.processField(t,n,r)},removeUndefined:!0,removeNull:!0})}catch(e){pn("[ProtoMessageBuilder] Sanitization error for ".concat(this.eventName),e)}return this}},{key:"build",value:function(){return{sanitizedData:this.sanitizedData,errors:w(this.errors)}}},{key:"processField",value:function(e,t,n){var r=this.processStructuralTransformations(e,t,n)
r.processed&&(t=r.result)
var i=this.processFieldTransformations(e,t,n)
return i.processed?i:{processed:!1}}},{key:"processFieldTransformations",value:function(e,t,n){var r=this.extractParentPath(n),i=this.getConfiguredRule(e,r,this.fieldRuleEngine)
return i?this.applyRuleWithErrorHandling(t,i,n):t&&"object"===C(t)&&!Array.isArray(t)?(this.applyFieldTransformationsToObject(t,n),{processed:!0,result:t}):{processed:!1}}},{key:"processStructuralTransformations",value:function(e,t,n){var r=this.extractParentPath(n),i=this.getConfiguredRule(e,r,this.structuralRuleEngine)
if(i)return this.applyRuleWithErrorHandling(t,i,n)
if(t&&"object"===C(t)&&!Array.isArray(t)){var a=_({},t)
return this.applyStructuralTransformationsToObject(a,n),{processed:!0,result:a}}return{processed:!1}}},{key:"applyStructuralTransformationsToObject",value:function(e,t){for(var n=0,r=Object.entries(e);n<r.length;n++){var i=T(r[n],2),a=i[0],o=i[1],s="".concat(t,".").concat(a),c=this.extractParentPath(s),u=this.getConfiguredRule(a,c,this.structuralRuleEngine)
if(u){var l=this.applyRuleWithErrorHandling(o,u,s)
l.processed&&(e[a]=l.result)}}}},{key:"applyFieldTransformationsToObject",value:function(e,t){for(var n=0,r=Object.entries(e);n<r.length;n++){var i=T(r[n],2),a=i[0],o=i[1],s="".concat(t,".").concat(a),c=this.getConfiguredRule(a,t,this.fieldRuleEngine)
if(c){var u=this.applyRuleWithErrorHandling(o,c,s)
u.processed&&(e[a]=u.result)}else o&&"object"===C(o)&&!Array.isArray(o)?this.applyFieldTransformationsToObject(o,s):Array.isArray(o)&&this.processArrayFields(o,s)}}},{key:"processArrayFields",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i="".concat(t,".").concat(n)
"object"===C(r)&&null!==r&&this.processArrayItemFields(r,i,t)}}},{key:"processArrayItemFields",value:function(e,t,n){for(var r=0,i=Object.entries(e);r<i.length;r++){var a=T(i[r],2),o=a[0],s=a[1],c="".concat(t,".").concat(o),u=this.getConfiguredRule(o,n,this.fieldRuleEngine)
if(u){var l=this.applyRuleWithErrorHandling(s,u,c)
l.processed&&(e[o]=l.result)}}}},{key:"extractParentPath",value:function(e){return e.split(".").slice(0,-1).join(".")}},{key:"getConfiguredRule",value:function(e,t,n){try{return n.resolveFieldRule(e,t,this.eventName).rule||null}catch(e){return null}}},{key:"applyRuleWithErrorHandling",value:function(e,t,n){try{return{processed:!0,result:this.applyFieldRule(e,t,n)}}catch(e){var r=e instanceof Error?e.message:String(e)
return this.errors.push("Failed to apply rule '".concat(t,"' to field '").concat(n,"': ").concat(r)),{processed:!0}}}},{key:"applyFieldRule",value:function(e,t,n){try{if(t.startsWith("enum:")){var r=t.substring(5)
return this.enumConverter.convert(e,r,n)}switch(t){case"trackingId":return this.trackingIdConverter.convert(e)
case"arrayWrapper":return this.arrayWrapperConverter.convert(e,this.extractFieldName(n))
case"int32":case"sint32":case"sint64":case"float":case"double":case"bool":case"string":case"bytes":if(this.fieldTypeConverter.isSupported(t))return this.fieldTypeConverter.convert(e,t)
break
default:throw new Error("Unknown field rule: ".concat(t))}return e}catch(r){var i="Field conversion failed for ".concat(n," (").concat(t,"): ").concat(r instanceof Error?r.message:String(r))
return this.errors.push(i),void pn("[ProtoMessageBuilder:".concat(this.eventName,"] ").concat(i),"Value: ".concat(this.safeStringify(e)))}}},{key:"extractFieldName",value:function(e){var t=e.split(".")
return t[t.length-1]}},{key:"safeStringify",value:function(e){try{return JSON.stringify(e)}catch(t){return String(e)}}}]),e}()
function Kr(e){var t=C(e)
if("object"==t){if(Array.isArray(e))return"array"
if(null===e)return"null"}return t}for(var Gr,Wr,jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),qr=[],zr=0;zr<jr.length;zr++)qr[jr[zr].charCodeAt(0)]=zr
function Xr(){for(var e=0,t=0,n=0;n<28;n+=7){var r=this.buf[this.pos++]
if(e|=(127&r)<<n,!(128&r))return this.assertBounds(),[e,t]}var i=this.buf[this.pos++]
if(e|=(15&i)<<28,t=(112&i)>>4,!(128&i))return this.assertBounds(),[e,t]
for(var a=3;a<=31;a+=7){var o=this.buf[this.pos++]
if(t|=(127&o)<<a,!(128&o))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Jr(e,t,n){for(var r=0;r<28;r+=7){var i=e>>>r,a=!(i>>>7==0&&0==t),o=255&(a?128|i:i)
if(n.push(o),!a)return}var s=e>>>28&15|(7&t)<<4,c=!!(t>>3)
if(n.push(255&(c?128|s:s)),c){for(var u=3;u<31;u+=7){var l=t>>>u,d=!(l>>>7==0),f=255&(d?128|l:l)
if(n.push(f),!d)return}n.push(t>>>31&1)}}qr["-".charCodeAt(0)]=jr.indexOf("+"),qr["_".charCodeAt(0)]=jr.indexOf("/"),function(e){e.symbol=Symbol.for("protobuf-ts/unknown"),e.onRead=function(n,r,i,a,o){(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=function(t,n,r){var i,a=k(e.list(n))
try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.no,c=o.wireType,u=o.data
r.tag(s,c).raw(u)}}catch(e){a.e(e)}finally{a.f()}},e.list=function(n,r){if(t(n)){var i=n[e.symbol]
return r?i.filter((function(e){return e.no==r})):i}return[]},e.last=function(t,n){return e.list(t,n).slice(-1)[0]}
var t=function(t){return t&&Array.isArray(t[e.symbol])}}(Gr||(Gr={})),function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(Wr||(Wr={}))
var Yr,Qr,Zr,$r=4294967296
function ei(e){var t="-"==e[0]
t&&(e=e.slice(1))
var n=1e6,r=0,i=0
function a(t,a){var o=Number(e.slice(t,a))
i*=n,(r=r*n+o)>=$r&&(i+=r/$r|0,r%=$r)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),[t,r,i]}function ti(e,t){if(t>>>0<=2097151)return""+($r*t+(e>>>0))
var n=(e>>>24|t<<8)>>>0&16777215,r=t>>16&65535,i=(16777215&e)+6777216*n+6710656*r,a=n+8147497*r,o=2*r,s=1e7
function c(e,t){var n=e?String(e):""
return t?"0000000".slice(n.length)+n:n}return i>=s&&(a+=Math.floor(i/s),i%=s),a>=s&&(o+=Math.floor(a/s),a%=s),c(o,0)+c(a,o)+c(i,1)}function ni(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7
t.push(e)}else{for(var n=0;n<9;n++)t.push(127&e|128),e>>=7
t.push(1)}}function ri(){var e=this.buf[this.pos++],t=127&e
if(!(128&e))return this.assertBounds(),t
if(t|=(127&(e=this.buf[this.pos++]))<<7,!(128&e))return this.assertBounds(),t
if(t|=(127&(e=this.buf[this.pos++]))<<14,!(128&e))return this.assertBounds(),t
if(t|=(127&(e=this.buf[this.pos++]))<<21,!(128&e))return this.assertBounds(),t
t|=(15&(e=this.buf[this.pos++]))<<28
for(var n=5;128&e&&n<10;n++)e=this.buf[this.pos++]
if(128&e)throw new Error("invalid varint")
return this.assertBounds(),t>>>0}function ii(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}Qr=new DataView(new ArrayBuffer(8)),Zr=void 0!==globalThis.BigInt&&"function"==typeof Qr.getBigInt64&&"function"==typeof Qr.getBigUint64&&"function"==typeof Qr.setBigInt64&&"function"==typeof Qr.setBigUint64,Yr=Zr?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:Qr}:void 0
var ai=/^-?[0-9]+$/,oi=4294967296,si=2147483648,ci=function(){function e(t,n){S(this,e),this.lo=0|t,this.hi=0|n}return O(e,[{key:"isZero",value:function(){return 0==this.lo&&0==this.hi}},{key:"toNumber",value:function(){var e=this.hi*oi+(this.lo>>>0)
if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number")
return e}}]),e}(),ui=function(){function e(){return S(this,e),p(this,e,arguments)}return y(e,ci),O(e,[{key:"toString",value:function(){return Yr?this.toBigInt().toString():ti(this.lo,this.hi)}},{key:"toBigInt",value:function(){return ii(Yr),Yr.V.setInt32(0,this.lo,!0),Yr.V.setInt32(4,this.hi,!0),Yr.V.getBigUint64(0,!0)}}],[{key:"from",value:function(t){if(Yr)switch(C(t)){case"string":if("0"==t)return this.ZERO
if(""==t)throw new Error("string is no integer")
t=Yr.C(t)
case"number":if(0===t)return this.ZERO
t=Yr.C(t)
case"bigint":if(!t)return this.ZERO
if(t<Yr.UMIN)throw new Error("signed value for ulong")
if(t>Yr.UMAX)throw new Error("ulong too large")
return Yr.V.setBigUint64(0,t,!0),new e(Yr.V.getInt32(0,!0),Yr.V.getInt32(4,!0))}else switch(C(t)){case"string":if("0"==t)return this.ZERO
if(t=t.trim(),!ai.test(t))throw new Error("string is no integer")
var n=T(ei(t),3),r=n[0],i=n[1],a=n[2]
if(r)throw new Error("signed value for ulong")
return new e(i,a)
case"number":if(0==t)return this.ZERO
if(!Number.isSafeInteger(t))throw new Error("number is no integer")
if(t<0)throw new Error("signed value for ulong")
return new e(t,t/oi)}throw new Error("unknown value "+C(t))}}]),e}()
ui.ZERO=new ui(0,0)
var li=function(){function e(){return S(this,e),p(this,e,arguments)}return y(e,ci),O(e,[{key:"isNegative",value:function(){return!!(this.hi&si)}},{key:"negate",value:function(){var t=~this.hi,n=this.lo
return n?n=1+~n:t+=1,new e(n,t)}},{key:"toString",value:function(){if(Yr)return this.toBigInt().toString()
if(this.isNegative()){var e=this.negate()
return"-"+ti(e.lo,e.hi)}return ti(this.lo,this.hi)}},{key:"toBigInt",value:function(){return ii(Yr),Yr.V.setInt32(0,this.lo,!0),Yr.V.setInt32(4,this.hi,!0),Yr.V.getBigInt64(0,!0)}}],[{key:"from",value:function(t){if(Yr)switch(C(t)){case"string":if("0"==t)return this.ZERO
if(""==t)throw new Error("string is no integer")
t=Yr.C(t)
case"number":if(0===t)return this.ZERO
t=Yr.C(t)
case"bigint":if(!t)return this.ZERO
if(t<Yr.MIN)throw new Error("signed long too small")
if(t>Yr.MAX)throw new Error("signed long too large")
return Yr.V.setBigInt64(0,t,!0),new e(Yr.V.getInt32(0,!0),Yr.V.getInt32(4,!0))}else switch(C(t)){case"string":if("0"==t)return this.ZERO
if(t=t.trim(),!ai.test(t))throw new Error("string is no integer")
var n=T(ei(t),3),r=n[0],i=n[1],a=n[2]
if(r){if(a>si||a==si&&0!=i)throw new Error("signed long too small")}else if(a>=si)throw new Error("signed long too large")
var o=new e(i,a)
return r?o.negate():o
case"number":if(0==t)return this.ZERO
if(!Number.isSafeInteger(t))throw new Error("number is no integer")
return t>0?new e(t,t/oi):new e(-t,-t/oi).negate()}throw new Error("unknown value "+C(t))}}]),e}()
li.ZERO=new li(0,0)
var di={readUnknownField:!0,readerFactory:function(e){return new fi(e)}},fi=function(){function e(t,n){S(this,e),this.varint64=Xr,this.uint32=ri,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=null!=n?n:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}return O(e,[{key:"tag",value:function(){var e=this.uint32(),t=e>>>3,n=7&e
if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n)
return[t,n]}},{key:"skip",value:function(e){var t=this.pos
switch(e){case Wr.Varint:for(;128&this.buf[this.pos++];);break
case Wr.Bit64:this.pos+=4
case Wr.Bit32:this.pos+=4
break
case Wr.LengthDelimited:var n=this.uint32()
this.pos+=n
break
case Wr.StartGroup:for(var r;(r=this.tag()[1])!==Wr.EndGroup;)this.skip(r)
break
default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}},{key:"assertBounds",value:function(){if(this.pos>this.len)throw new RangeError("premature EOF")}},{key:"int32",value:function(){return 0|this.uint32()}},{key:"sint32",value:function(){var e=this.uint32()
return e>>>1^-(1&e)}},{key:"int64",value:function(){return h(li,w(this.varint64()))}},{key:"uint64",value:function(){return h(ui,w(this.varint64()))}},{key:"sint64",value:function(){var e=T(this.varint64(),2),t=e[0],n=e[1],r=-(1&t)
return new li(t=(t>>>1|(1&n)<<31)^r,n=n>>>1^r)}},{key:"bool",value:function(){var e=T(this.varint64(),2),t=e[0],n=e[1]
return 0!==t||0!==n}},{key:"fixed32",value:function(){return this.view.getUint32((this.pos+=4)-4,!0)}},{key:"sfixed32",value:function(){return this.view.getInt32((this.pos+=4)-4,!0)}},{key:"fixed64",value:function(){return new ui(this.sfixed32(),this.sfixed32())}},{key:"sfixed64",value:function(){return new li(this.sfixed32(),this.sfixed32())}},{key:"float",value:function(){return this.view.getFloat32((this.pos+=4)-4,!0)}},{key:"double",value:function(){return this.view.getFloat64((this.pos+=8)-8,!0)}},{key:"bytes",value:function(){var e=this.uint32(),t=this.pos
return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}},{key:"string",value:function(){return this.textDecoder.decode(this.bytes())}}]),e}()
function hi(e,t){if(!e)throw new Error(t)}function pi(e){if("number"!=typeof e)throw new Error("invalid int 32: "+C(e))
if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function vi(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+C(e))
if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function gi(e){if("number"!=typeof e)throw new Error("invalid float 32: "+C(e))
if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}var mi,yi,Ei,Ti={writeUnknownFields:!0,writerFactory:function(){return new bi}},bi=function(){function e(t){S(this,e),this.stack=[],this.textEncoder=null!=t?t:new TextEncoder,this.chunks=[],this.buf=[]}return O(e,[{key:"finish",value:function(){this.chunks.push(new Uint8Array(this.buf))
for(var e=0,t=0;t<this.chunks.length;t++)e+=this.chunks[t].length
for(var n=new Uint8Array(e),r=0,i=0;i<this.chunks.length;i++)n.set(this.chunks[i],r),r+=this.chunks[i].length
return this.chunks=[],n}},{key:"fork",value:function(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}},{key:"join",value:function(){var e=this.finish(),t=this.stack.pop()
if(!t)throw new Error("invalid state, fork stack empty")
return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}},{key:"tag",value:function(e,t){return this.uint32((e<<3|t)>>>0)}},{key:"raw",value:function(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}},{key:"uint32",value:function(e){for(vi(e);e>127;)this.buf.push(127&e|128),e>>>=7
return this.buf.push(e),this}},{key:"int32",value:function(e){return pi(e),ni(e,this.buf),this}},{key:"bool",value:function(e){return this.buf.push(e?1:0),this}},{key:"bytes",value:function(e){return this.uint32(e.byteLength),this.raw(e)}},{key:"string",value:function(e){var t=this.textEncoder.encode(e)
return this.uint32(t.byteLength),this.raw(t)}},{key:"float",value:function(e){gi(e)
var t=new Uint8Array(4)
return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}},{key:"double",value:function(e){var t=new Uint8Array(8)
return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}},{key:"fixed32",value:function(e){vi(e)
var t=new Uint8Array(4)
return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}},{key:"sfixed32",value:function(e){pi(e)
var t=new Uint8Array(4)
return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}},{key:"sint32",value:function(e){return pi(e),ni(e=(e<<1^e>>31)>>>0,this.buf),this}},{key:"sfixed64",value:function(e){var t=new Uint8Array(8),n=new DataView(t.buffer),r=li.from(e)
return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}},{key:"fixed64",value:function(e){var t=new Uint8Array(8),n=new DataView(t.buffer),r=ui.from(e)
return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}},{key:"int64",value:function(e){var t=li.from(e)
return Jr(t.lo,t.hi,this.buf),this}},{key:"sint64",value:function(e){var t=li.from(e),n=t.hi>>31
return Jr(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}},{key:"uint64",value:function(e){var t=ui.from(e)
return Jr(t.lo,t.hi,this.buf),this}}]),e}(),_i={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},Ii={ignoreUnknownFields:!1},ki=Symbol.for("protobuf-ts/message-type")
function wi(e){for(var t=!1,n=[],r=0;r<e.length;r++){var i=e.charAt(r)
"_"==i?t=!0:/\d/.test(i)?(n.push(i),t=!0):t?(n.push(i.toUpperCase()),t=!1):0==r?n.push(i.toLowerCase()):n.push(i)}return n.join("")}function Ni(e){var t,n,r,i
return e.localName=null!==(t=e.localName)&&void 0!==t?t:wi(e.name),e.jsonName=null!==(n=e.jsonName)&&void 0!==n?n:wi(e.name),e.repeat=null!==(r=e.repeat)&&void 0!==r?r:Ei.NO,e.opt=null!==(i=e.opt)&&void 0!==i?i:!e.repeat&&!e.oneof&&"message"==e.kind,e}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(mi||(mi={})),function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING",e[e.NUMBER=2]="NUMBER"}(yi||(yi={})),function(e){e[e.NO=0]="NO",e[e.PACKED=1]="PACKED",e[e.UNPACKED=2]="UNPACKED"}(Ei||(Ei={}))
var Ai=function(){function e(t){var n
S(this,e),this.fields=null!==(n=t.fields)&&void 0!==n?n:[]}return O(e,[{key:"prepare",value:function(){if(!this.data){var e,t=[],n=[],r=[],i=k(this.fields)
try{for(i.s();!(e=i.n()).done;){var a=e.value
if(a.oneof)r.includes(a.oneof)||(r.push(a.oneof),t.push(a.oneof),n.push(a.oneof))
else switch(n.push(a.localName),a.kind){case"scalar":case"enum":a.opt&&!a.repeat||t.push(a.localName)
break
case"message":a.repeat&&t.push(a.localName)
break
case"map":t.push(a.localName)}}}catch(e){i.e(e)}finally{i.f()}this.data={req:t,known:n,oneofs:Object.values(r)}}}},{key:"is",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
if(t<0)return!0
if(null==e||"object"!=C(e))return!1
this.prepare()
var i=Object.keys(e),a=this.data
if(i.length<a.req.length||a.req.some((function(e){return!i.includes(e)})))return!1
if(!r&&i.some((function(e){return!a.known.includes(e)})))return!1
if(t<1)return!0
var o,s=k(a.oneofs)
try{var c,u=function(){var i=o.value,a=e[i]
if(!function(e){if("object"!=C(e)||null===e||!e.hasOwnProperty("oneofKind"))return!1
switch(C(e.oneofKind)){case"string":return void 0!==e[e.oneofKind]&&2==Object.keys(e).length
case"undefined":return 1==Object.keys(e).length
default:return!1}}(a))return{v:!1}
if(void 0===a.oneofKind)return 0
var s=n.fields.find((function(e){return e.localName===a.oneofKind}))
return s&&n.field(a[a.oneofKind],s,r,t)?void 0:{v:!1}}
for(s.s();!(o=s.n()).done;)if(0!==(c=u())&&c)return c.v}catch(e){s.e(e)}finally{s.f()}var l,d=k(this.fields)
try{for(d.s();!(l=d.n()).done;){var f=l.value
if(void 0===f.oneof&&!this.field(e[f.localName],f,r,t))return!1}}catch(e){d.e(e)}finally{d.f()}return!0}},{key:"field",value:function(e,t,n,r){var i=t.repeat
switch(t.kind){case"scalar":return void 0===e?t.opt:i?this.scalars(e,t.T,r,t.L):this.scalar(e,t.T,t.L)
case"enum":return void 0===e?t.opt:i?this.scalars(e,mi.INT32,r):this.scalar(e,mi.INT32)
case"message":return void 0===e||(i?this.messages(e,t.T(),n,r):this.message(e,t.T(),n,r))
case"map":if("object"!=C(e)||null===e)return!1
if(r<2)return!0
if(!this.mapKeys(e,t.K,r))return!1
switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,r,t.V.L)
case"enum":return this.scalars(Object.values(e),mi.INT32,r)
case"message":return this.messages(Object.values(e),t.V.T(),n,r)}}return!0}},{key:"message",value:function(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}},{key:"messages",value:function(e,t,n,r){if(!Array.isArray(e))return!1
if(r<2)return!0
if(n){for(var i=0;i<e.length&&i<r;i++)if(!t.isAssignable(e[i],r-1))return!1}else for(var a=0;a<e.length&&a<r;a++)if(!t.is(e[a],r-1))return!1
return!0}},{key:"scalar",value:function(e,t,n){var r=C(e)
switch(t){case mi.UINT64:case mi.FIXED64:case mi.INT64:case mi.SFIXED64:case mi.SINT64:switch(n){case yi.BIGINT:return"bigint"==r
case yi.NUMBER:return"number"==r&&!isNaN(e)
default:return"string"==r}case mi.BOOL:return"boolean"==r
case mi.STRING:return"string"==r
case mi.BYTES:return e instanceof Uint8Array
case mi.DOUBLE:case mi.FLOAT:return"number"==r&&!isNaN(e)
default:return"number"==r&&Number.isInteger(e)}}},{key:"scalars",value:function(e,t,n,r){if(!Array.isArray(e))return!1
if(n<2)return!0
if(Array.isArray(e))for(var i=0;i<e.length&&i<n;i++)if(!this.scalar(e[i],t,r))return!1
return!0}},{key:"mapKeys",value:function(e,t,n){var r=Object.keys(e)
switch(t){case mi.INT32:case mi.FIXED32:case mi.SFIXED32:case mi.SINT32:case mi.UINT32:return this.scalars(r.slice(0,n).map((function(e){return parseInt(e)})),t,n)
case mi.BOOL:return this.scalars(r.slice(0,n).map((function(e){return"true"==e||"false"!=e&&e})),t,n)
default:return this.scalars(r,t,n,yi.STRING)}}}]),e}()
function Ci(e,t){switch(t){case yi.BIGINT:return e.toBigInt()
case yi.NUMBER:return e.toNumber()
default:return e.toString()}}var Si=function(){function e(t){S(this,e),this.info=t}return O(e,[{key:"prepare",value:function(){var e
if(void 0===this.fMap){this.fMap={}
var t,n=k(null!==(e=this.info.fields)&&void 0!==e?e:[])
try{for(n.s();!(t=n.n()).done;){var r=t.value
this.fMap[r.name]=r,this.fMap[r.jsonName]=r,this.fMap[r.localName]=r}}catch(e){n.e(e)}finally{n.f()}}}},{key:"assert",value:function(e,t,n){if(!e){var r=Kr(n)
throw"number"!=r&&"boolean"!=r||(r=n.toString()),new Error("Cannot parse JSON ".concat(r," for ").concat(this.info.typeName,"#").concat(t))}}},{key:"read",value:function(e,t,n){this.prepare()
for(var r,i=[],a=0,o=Object.entries(e);a<o.length;a++){var s=T(o[a],2),c=s[0],u=s[1],l=this.fMap[c]
if(l){var d=l.localName,f=void 0
if(l.oneof){if(null===u&&("enum"!==l.kind||"google.protobuf.NullValue"!==l.T()[0]))continue
if(i.includes(l.oneof))throw new Error('Multiple members of the oneof group "'.concat(l.oneof,'" of ').concat(this.info.typeName," are present in JSON."))
i.push(l.oneof),f=t[l.oneof]={oneofKind:d}}else f=t
if("map"==l.kind){if(null===u)continue
this.assert(null!==(r=u)&&"object"==C(r)&&!Array.isArray(r),l.name,u)
for(var h=f[d],p=0,v=Object.entries(u);p<v.length;p++){var g=T(v[p],2),m=g[0],y=g[1]
this.assert(null!==y,l.name+" map value",null)
var E=void 0
switch(l.V.kind){case"message":E=l.V.T().internalJsonRead(y,n)
break
case"enum":if(!1===(E=this.enum(l.V.T(),y,l.name,n.ignoreUnknownFields)))continue
break
case"scalar":E=this.scalar(y,l.V.T,l.V.L,l.name)}this.assert(void 0!==E,l.name+" map value",y)
var b=m
l.K==mi.BOOL&&(b="true"==b||"false"!=b&&b),h[b=this.scalar(b,l.K,yi.STRING,l.name).toString()]=E}}else if(l.repeat){if(null===u)continue
this.assert(Array.isArray(u),l.name,u)
var _,I=f[d],w=k(u)
try{for(w.s();!(_=w.n()).done;){var N=_.value
this.assert(null!==N,l.name,null)
var A=void 0
switch(l.kind){case"message":A=l.T().internalJsonRead(N,n)
break
case"enum":if(!1===(A=this.enum(l.T(),N,l.name,n.ignoreUnknownFields)))continue
break
case"scalar":A=this.scalar(N,l.T,l.L,l.name)}this.assert(void 0!==A,l.name,u),I.push(A)}}catch(e){w.e(e)}finally{w.f()}}else switch(l.kind){case"message":if(null===u&&"google.protobuf.Value"!=l.T().typeName){this.assert(void 0===l.oneof,l.name+" (oneof member)",null)
continue}f[d]=l.T().internalJsonRead(u,n,f[d])
break
case"enum":if(null===u)continue
var S=this.enum(l.T(),u,l.name,n.ignoreUnknownFields)
if(!1===S)continue
f[d]=S
break
case"scalar":if(null===u)continue
f[d]=this.scalar(u,l.T,l.L,l.name)}}else if(!n.ignoreUnknownFields)throw new Error("Found unknown field while reading ".concat(this.info.typeName," from JSON format. JSON key: ").concat(c))}}},{key:"enum",value:function(e,t,n,r){if("google.protobuf.NullValue"==e[0]&&hi(null===t||"NULL_VALUE"===t,"Unable to parse field ".concat(this.info.typeName,"#").concat(n,", enum ").concat(e[0]," only accepts null.")),null===t)return 0
switch(C(t)){case"number":return hi(Number.isInteger(t),"Unable to parse field ".concat(this.info.typeName,"#").concat(n,", enum can only be integral number, got ").concat(t,".")),t
case"string":var i=t
e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length))
var a=e[1][i]
return(void 0!==a||!r)&&(hi("number"==typeof a,"Unable to parse field ".concat(this.info.typeName,"#").concat(n,", enum ").concat(e[0],' has no value for "').concat(t,'".')),a)}hi(!1,"Unable to parse field ".concat(this.info.typeName,"#").concat(n,", cannot parse enum value from ").concat(C(t),'".'))}},{key:"scalar",value:function(e,t,n,r){var i
try{switch(t){case mi.DOUBLE:case mi.FLOAT:if(null===e)return 0
if("NaN"===e)return Number.NaN
if("Infinity"===e)return Number.POSITIVE_INFINITY
if("-Infinity"===e)return Number.NEGATIVE_INFINITY
if(""===e){i="empty string"
break}if("string"==typeof e&&e.trim().length!==e.length){i="extra whitespace"
break}if("string"!=typeof e&&"number"!=typeof e)break
var a=Number(e)
if(Number.isNaN(a)){i="not a number"
break}if(!Number.isFinite(a)){i="too large or small"
break}return t==mi.FLOAT&&gi(a),a
case mi.INT32:case mi.FIXED32:case mi.SFIXED32:case mi.SINT32:case mi.UINT32:if(null===e)return 0
var o
if("number"==typeof e?o=e:""===e?i="empty string":"string"==typeof e&&(e.trim().length!==e.length?i="extra whitespace":o=Number(e)),void 0===o)break
return t==mi.UINT32?vi(o):pi(o),o
case mi.INT64:case mi.SFIXED64:case mi.SINT64:if(null===e)return Ci(li.ZERO,n)
if("number"!=typeof e&&"string"!=typeof e)break
return Ci(li.from(e),n)
case mi.FIXED64:case mi.UINT64:if(null===e)return Ci(ui.ZERO,n)
if("number"!=typeof e&&"string"!=typeof e)break
return Ci(ui.from(e),n)
case mi.BOOL:if(null===e)return!1
if("boolean"!=typeof e)break
return e
case mi.STRING:if(null===e)return""
if("string"!=typeof e){i="extra whitespace"
break}try{encodeURIComponent(e)}catch(i){i="invalid UTF8"
break}return e
case mi.BYTES:if(null===e||""===e)return new Uint8Array(0)
if("string"!=typeof e)break
return function(e){var t=3*e.length/4
"="==e[e.length-2]?t-=2:"="==e[e.length-1]&&(t-=1)
for(var n,r=new Uint8Array(t),i=0,a=0,o=0,s=0;s<e.length;s++){if(void 0===(n=qr[e.charCodeAt(s)]))switch(e[s]){case"=":a=0
case"\n":case"\r":case"\t":case" ":continue
default:throw Error("invalid base64 string.")}switch(a){case 0:o=n,a=1
break
case 1:r[i++]=o<<2|(48&n)>>4,o=n,a=2
break
case 2:r[i++]=(15&o)<<4|(60&n)>>2,o=n,a=3
break
case 3:r[i++]=(3&o)<<6|n,a=0}}if(1==a)throw Error("invalid base64 string.")
return r.subarray(0,i)}(e)}}catch(e){i=e.message}this.assert(!1,r+(i?" - "+i:""),e)}}]),e}(),Ri=function(){function e(t){var n
S(this,e),this.fields=null!==(n=t.fields)&&void 0!==n?n:[]}return O(e,[{key:"write",value:function(e,t){var n,r={},i=e,a=k(this.fields)
try{for(a.s();!(n=a.n()).done;){var o=n.value
if(o.oneof){var s=i[o.oneof]
if(s.oneofKind===o.localName){var c="scalar"==o.kind||"enum"==o.kind?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,u=this.field(o,s[o.localName],c)
hi(void 0!==u),r[t.useProtoFieldName?o.name:o.jsonName]=u}}else{var l=this.field(o,i[o.localName],t)
void 0!==l&&(r[t.useProtoFieldName?o.name:o.jsonName]=l)}}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"field",value:function(e,t,n){var r=void 0
if("map"==e.kind){hi("object"==C(t)&&null!==t)
var i={}
switch(e.V.kind){case"scalar":for(var a=0,o=Object.entries(t);a<o.length;a++){var s=T(o[a],2),c=s[0],u=s[1],l=this.scalar(e.V.T,u,e.name,!1,!0)
hi(void 0!==l),i[c.toString()]=l}break
case"message":for(var d=e.V.T(),f=0,h=Object.entries(t);f<h.length;f++){var p=T(h[f],2),v=p[0],g=p[1],m=this.message(d,g,e.name,n)
hi(void 0!==m),i[v.toString()]=m}break
case"enum":for(var y=e.V.T(),E=0,b=Object.entries(t);E<b.length;E++){var _=T(b[E],2),I=_[0],k=_[1]
hi(void 0===k||"number"==typeof k)
var w=this.enum(y,k,e.name,!1,!0,n.enumAsInteger)
hi(void 0!==w),i[I.toString()]=w}}(n.emitDefaultValues||Object.keys(i).length>0)&&(r=i)}else if(e.repeat){hi(Array.isArray(t))
var N=[]
switch(e.kind){case"scalar":for(var A=0;A<t.length;A++){var S=this.scalar(e.T,t[A],e.name,e.opt,!0)
hi(void 0!==S),N.push(S)}break
case"enum":for(var R=e.T(),O=0;O<t.length;O++){hi(void 0===t[O]||"number"==typeof t[O])
var D=this.enum(R,t[O],e.name,e.opt,!0,n.enumAsInteger)
hi(void 0!==D),N.push(D)}break
case"message":for(var M=e.T(),P=0;P<t.length;P++){var L=this.message(M,t[P],e.name,n)
hi(void 0!==L),N.push(L)}}(n.emitDefaultValues||N.length>0||n.emitDefaultValues)&&(r=N)}else switch(e.kind){case"scalar":r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues)
break
case"enum":r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger)
break
case"message":r=this.message(e.T(),t,e.name,n)}return r}},{key:"enum",value:function(e,t,n,r,i,a){if("google.protobuf.NullValue"==e[0])return i||r?null:void 0
if(void 0!==t){if(0!==t||i||r)return hi("number"==typeof t),hi(Number.isInteger(t)),a||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}else hi(r)}},{key:"message",value:function(e,t,n,r){return void 0===t?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}},{key:"scalar",value:function(e,t,n,r,i){if(void 0!==t){var a=i||r
switch(e){case mi.INT32:case mi.SFIXED32:case mi.SINT32:return 0===t?a?0:void 0:(pi(t),t)
case mi.FIXED32:case mi.UINT32:return 0===t?a?0:void 0:(vi(t),t)
case mi.FLOAT:gi(t)
case mi.DOUBLE:return 0===t?a?0:void 0:(hi("number"==typeof t),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t)
case mi.STRING:return""===t?a?"":void 0:(hi("string"==typeof t),t)
case mi.BOOL:return!1===t?!a&&void 0:(hi("boolean"==typeof t),t)
case mi.UINT64:case mi.FIXED64:hi("number"==typeof t||"string"==typeof t||"bigint"==typeof t)
var o=ui.from(t)
if(o.isZero()&&!a)return
return o.toString()
case mi.INT64:case mi.SFIXED64:case mi.SINT64:hi("number"==typeof t||"string"==typeof t||"bigint"==typeof t)
var s=li.from(t)
if(s.isZero()&&!a)return
return s.toString()
case mi.BYTES:return hi(t instanceof Uint8Array),t.byteLength?function(e){for(var t,n="",r=0,i=0,a=0;a<e.length;a++)switch(t=e[a],r){case 0:n+=jr[t>>2],i=(3&t)<<4,r=1
break
case 1:n+=jr[i|t>>4],i=(15&t)<<2,r=2
break
case 2:n+=jr[i|t>>6],n+=jr[63&t],r=0}return r&&(n+=jr[i],n+="=",1==r&&(n+="=")),n}(t):a?"":void 0}}else hi(r)}}]),e}()
function Oi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yi.STRING
switch(e){case mi.BOOL:return!1
case mi.UINT64:case mi.FIXED64:return Ci(ui.ZERO,t)
case mi.INT64:case mi.SFIXED64:case mi.SINT64:return Ci(li.ZERO,t)
case mi.DOUBLE:case mi.FLOAT:return 0
case mi.BYTES:return new Uint8Array(0)
case mi.STRING:return""
default:return 0}}var Di=function(){function e(t){S(this,e),this.info=t}return O(e,[{key:"prepare",value:function(){var e
if(!this.fieldNoToField){var t=null!==(e=this.info.fields)&&void 0!==e?e:[]
this.fieldNoToField=new Map(t.map((function(e){return[e.no,e]})))}}},{key:"read",value:function(e,t,n,r){this.prepare()
for(var i=void 0===r?e.len:e.pos+r;e.pos<i;){var a=T(e.tag(),2),o=a[0],s=a[1],c=this.fieldNoToField.get(o)
if(c){var u=t,l=c.repeat,d=c.localName
switch(c.oneof&&(u=u[c.oneof]).oneofKind!==d&&(u=t[c.oneof]={oneofKind:d}),c.kind){case"scalar":case"enum":var f="enum"==c.kind?mi.INT32:c.T,h="scalar"==c.kind?c.L:void 0
if(l){var p=u[d]
if(s==Wr.LengthDelimited&&f!=mi.STRING&&f!=mi.BYTES)for(var v=e.uint32()+e.pos;e.pos<v;)p.push(this.scalar(e,f,h))
else p.push(this.scalar(e,f,h))}else u[d]=this.scalar(e,f,h)
break
case"message":if(l){var g=u[d],m=c.T().internalBinaryRead(e,e.uint32(),n)
g.push(m)}else u[d]=c.T().internalBinaryRead(e,e.uint32(),n,u[d])
break
case"map":var y=T(this.mapEntry(c,e,n),2),E=y[0],b=y[1]
u[d][E]=b}}else{var _=n.readUnknownField
if("throw"==_)throw new Error("Unknown field ".concat(o," (wire type ").concat(s,") for ").concat(this.info.typeName))
var I=e.skip(s)
!1!==_&&(!0===_?Gr.onRead:_)(this.info.typeName,t,o,s,I)}}}},{key:"mapEntry",value:function(e,t,n){for(var r=t.uint32(),i=t.pos+r,a=void 0,o=void 0;t.pos<i;){var s=T(t.tag(),2),c=s[0],u=s[1]
switch(c){case 1:a=e.K==mi.BOOL?t.bool().toString():this.scalar(t,e.K,yi.STRING)
break
case 2:switch(e.V.kind){case"scalar":o=this.scalar(t,e.V.T,e.V.L)
break
case"enum":o=t.int32()
break
case"message":o=e.V.T().internalBinaryRead(t,t.uint32(),n)}break
default:throw new Error("Unknown field ".concat(c," (wire type ").concat(u,") in map entry for ").concat(this.info.typeName,"#").concat(e.name))}}if(void 0===a){var l=Oi(e.K)
a=e.K==mi.BOOL?l.toString():l}if(void 0===o)switch(e.V.kind){case"scalar":o=Oi(e.V.T,e.V.L)
break
case"enum":o=0
break
case"message":o=e.V.T().create()}return[a,o]}},{key:"scalar",value:function(e,t,n){switch(t){case mi.INT32:return e.int32()
case mi.STRING:return e.string()
case mi.BOOL:return e.bool()
case mi.DOUBLE:return e.double()
case mi.FLOAT:return e.float()
case mi.INT64:return Ci(e.int64(),n)
case mi.UINT64:return Ci(e.uint64(),n)
case mi.FIXED64:return Ci(e.fixed64(),n)
case mi.FIXED32:return e.fixed32()
case mi.BYTES:return e.bytes()
case mi.UINT32:return e.uint32()
case mi.SFIXED32:return e.sfixed32()
case mi.SFIXED64:return Ci(e.sfixed64(),n)
case mi.SINT32:return e.sint32()
case mi.SINT64:return Ci(e.sint64(),n)}}}]),e}(),Mi=function(){function e(t){S(this,e),this.info=t}return O(e,[{key:"prepare",value:function(){if(!this.fields){var e=this.info.fields?this.info.fields.concat():[]
this.fields=e.sort((function(e,t){return e.no-t.no}))}}},{key:"write",value:function(e,t,n){this.prepare()
var r,i=k(this.fields)
try{for(i.s();!(r=i.n()).done;){var a=r.value,o=void 0,s=void 0,c=a.repeat,u=a.localName
if(a.oneof){var l=e[a.oneof]
if(l.oneofKind!==u)continue
o=l[u],s=!0}else o=e[u],s=!1
switch(a.kind){case"scalar":case"enum":var d="enum"==a.kind?mi.INT32:a.T
if(c)if(hi(Array.isArray(o)),c==Ei.PACKED)this.packed(t,d,a.no,o)
else{var f,h=k(o)
try{for(h.s();!(f=h.n()).done;){var p=f.value
this.scalar(t,d,a.no,p,!0)}}catch(e){h.e(e)}finally{h.f()}}else void 0===o?hi(a.opt):this.scalar(t,d,a.no,o,s||a.opt)
break
case"message":if(c){hi(Array.isArray(o))
var v,g=k(o)
try{for(g.s();!(v=g.n()).done;){var m=v.value
this.message(t,n,a.T(),a.no,m)}}catch(e){g.e(e)}finally{g.f()}}else this.message(t,n,a.T(),a.no,o)
break
case"map":hi("object"==C(o)&&null!==o)
for(var y=0,E=Object.entries(o);y<E.length;y++){var b=T(E[y],2),_=b[0],I=b[1]
this.mapEntry(t,n,a,_,I)}}}}catch(e){i.e(e)}finally{i.f()}var w=n.writeUnknownFields
!1!==w&&(!0===w?Gr.onWrite:w)(this.info.typeName,e,t)}},{key:"mapEntry",value:function(e,t,n,r,i){e.tag(n.no,Wr.LengthDelimited),e.fork()
var a=r
switch(n.K){case mi.INT32:case mi.FIXED32:case mi.UINT32:case mi.SFIXED32:case mi.SINT32:a=Number.parseInt(r)
break
case mi.BOOL:hi("true"==r||"false"==r),a="true"==r}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,i,!0)
break
case"enum":this.scalar(e,mi.INT32,2,i,!0)
break
case"message":this.message(e,t,n.V.T(),2,i)}e.join()}},{key:"message",value:function(e,t,n,r,i){void 0!==i&&(n.internalBinaryWrite(i,e.tag(r,Wr.LengthDelimited).fork(),t),e.join())}},{key:"scalar",value:function(e,t,n,r,i){var a=T(this.scalarInfo(t,r),3),o=a[0],s=a[1]
a[2]&&!i||(e.tag(n,o),e[s](r))}},{key:"packed",value:function(e,t,n,r){if(r.length){hi(t!==mi.BYTES&&t!==mi.STRING),e.tag(n,Wr.LengthDelimited),e.fork()
for(var i=T(this.scalarInfo(t),2)[1],a=0;a<r.length;a++)e[i](r[a])
e.join()}}},{key:"scalarInfo",value:function(e,t){var n,r=Wr.Varint,i=void 0===t,a=0===t
switch(e){case mi.INT32:n="int32"
break
case mi.STRING:a=i||!t.length,r=Wr.LengthDelimited,n="string"
break
case mi.BOOL:a=!1===t,n="bool"
break
case mi.UINT32:n="uint32"
break
case mi.DOUBLE:r=Wr.Bit64,n="double"
break
case mi.FLOAT:r=Wr.Bit32,n="float"
break
case mi.INT64:a=i||li.from(t).isZero(),n="int64"
break
case mi.UINT64:a=i||ui.from(t).isZero(),n="uint64"
break
case mi.FIXED64:a=i||ui.from(t).isZero(),r=Wr.Bit64,n="fixed64"
break
case mi.BYTES:a=i||!t.byteLength,r=Wr.LengthDelimited,n="bytes"
break
case mi.FIXED32:r=Wr.Bit32,n="fixed32"
break
case mi.SFIXED32:r=Wr.Bit32,n="sfixed32"
break
case mi.SFIXED64:a=i||li.from(t).isZero(),r=Wr.Bit64,n="sfixed64"
break
case mi.SINT32:n="sint32"
break
case mi.SINT64:a=i||li.from(t).isZero(),n="sint64"}return[r,n,i||a]}}]),e}()
function Pi(e,t,n){var r,i,a,o=n,s=k(e.fields)
try{for(s.s();!(a=s.n()).done;){var c=a.value,u=c.localName
if(c.oneof){var l=o[c.oneof]
if(null==(null==l?void 0:l.oneofKind))continue
if(r=l[u],(i=t[c.oneof]).oneofKind=l.oneofKind,null==r){delete i[u]
continue}}else if(r=o[u],i=t,null==r)continue
switch(c.repeat&&(i[u].length=r.length),c.kind){case"scalar":case"enum":if(c.repeat)for(var d=0;d<r.length;d++)i[u][d]=r[d]
else i[u]=r
break
case"message":var f=c.T()
if(c.repeat)for(var h=0;h<r.length;h++)i[u][h]=f.create(r[h])
else void 0===i[u]?i[u]=f.create(r):f.mergePartial(i[u],r)
break
case"map":switch(c.V.kind){case"scalar":case"enum":Object.assign(i[u],r)
break
case"message":for(var p=c.V.T(),v=0,g=Object.keys(r);v<g.length;v++){var m=g[v]
i[u][m]=p.create(r[m])}}}}}catch(e){s.e(e)}finally{s.f()}}var Li=Object.values
function xi(e,t,n){if(t===n)return!0
if(e!==mi.BYTES)return!1
var r=t,i=n
if(r.length!==i.length)return!1
for(var a=0;a<r.length;a++)if(r[a]!=i[a])return!1
return!0}function Bi(e,t,n){if(t.length!==n.length)return!1
for(var r=0;r<t.length;r++)if(!xi(e,t[r],n[r]))return!1
return!0}function Ui(e,t,n){if(t.length!==n.length)return!1
for(var r=0;r<t.length;r++)if(!e.equals(t[r],n[r]))return!1
return!0}var Fi,Hi,Vi,Ki=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),Gi=Ki[ki]={},Wi=function(){function e(t,n,r){S(this,e),this.defaultCheckDepth=16,this.typeName=t,this.fields=n.map(Ni),this.options=null!=r?r:{},Gi.value=this,this.messagePrototype=Object.create(null,Ki),this.refTypeCheck=new Ai(this),this.refJsonReader=new Si(this),this.refJsonWriter=new Ri(this),this.refBinReader=new Di(this),this.refBinWriter=new Mi(this)}return O(e,[{key:"create",value:function(e){var t=function(e){var t,n=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},ki,{value:e}),r=k(e.fields)
try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.localName
if(!i.opt)if(i.oneof)n[i.oneof]={oneofKind:void 0}
else if(i.repeat)n[a]=[]
else switch(i.kind){case"scalar":n[a]=Oi(i.T,i.L)
break
case"enum":n[a]=0
break
case"map":n[a]={}}}}catch(e){r.e(e)}finally{r.f()}return n}(this)
return void 0!==e&&Pi(this,t,e),t}},{key:"clone",value:function(e){var t=this.create()
return Pi(this,t,e),t}},{key:"equals",value:function(e,t){return function(e,t,n){if(t===n)return!0
if(!t||!n)return!1
var r,i=k(e.fields)
try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.localName,s=a.oneof?t[a.oneof][o]:t[o],c=a.oneof?n[a.oneof][o]:n[o]
switch(a.kind){case"enum":case"scalar":var u="enum"==a.kind?mi.INT32:a.T
if(!(a.repeat?Bi(u,s,c):xi(u,s,c)))return!1
break
case"map":if(!("message"==a.V.kind?Ui(a.V.T(),Li(s),Li(c)):Bi("enum"==a.V.kind?mi.INT32:a.V.T,Li(s),Li(c))))return!1
break
case"message":var l=a.T()
if(!(a.repeat?Ui(l,s,c):l.equals(s,c)))return!1}}}catch(e){i.e(e)}finally{i.f()}return!0}(this,e,t)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultCheckDepth
return this.refTypeCheck.is(e,t,!1)}},{key:"isAssignable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultCheckDepth
return this.refTypeCheck.is(e,t,!0)}},{key:"mergePartial",value:function(e,t){Pi(this,e,t)}},{key:"fromBinary",value:function(e,t){var n=function(e){return e?Object.assign(Object.assign({},di),e):di}(t)
return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}},{key:"fromJson",value:function(e,t){return this.internalJsonRead(e,function(e){return e?Object.assign(Object.assign({},Ii),e):Ii}(t))}},{key:"fromJsonString",value:function(e,t){var n=JSON.parse(e)
return this.fromJson(n,t)}},{key:"toJson",value:function(e,t){return this.internalJsonWrite(e,function(e){return e?Object.assign(Object.assign({},_i),e):_i}(t))}},{key:"toJsonString",value:function(e,t){var n,r=this.toJson(e,t)
return JSON.stringify(r,null,null!==(n=null==t?void 0:t.prettySpaces)&&void 0!==n?n:0)}},{key:"toBinary",value:function(e,t){var n=function(e){return e?Object.assign(Object.assign({},Ti),e):Ti}(t)
return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}},{key:"internalJsonRead",value:function(e,t,n){if(null!==e&&"object"==C(e)&&!Array.isArray(e)){var r=null!=n?n:this.create()
return this.refJsonReader.read(e,r,t),r}throw new Error("Unable to parse message ".concat(this.typeName," from JSON ").concat(Kr(e),"."))}},{key:"internalJsonWrite",value:function(e,t){return this.refJsonWriter.write(e,t)}},{key:"internalBinaryWrite",value:function(e,t,n){return this.refBinWriter.write(e,t,n),t}},{key:"internalBinaryRead",value:function(e,t,n,r){var i=null!=r?r:this.create()
return this.refBinReader.read(e,i,n,t),i}}]),e}(),ji=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.common.TrackingId",[{no:1,name:"fixedValue",kind:"scalar",T:12}],{"avro.translatedFieldCount":1,"avro.fixedSize":16}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.fixedValue=new Uint8Array(0),void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.fixedValue=e.bytes()
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.fixedValue.length&&t.tag(1,Wr.LengthDelimited).bytes(e.fixedValue)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),qi=new ji,zi=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.tracking3.TrackingScope",[{no:1,name:"topicName",kind:"scalar",opt:!0,T:9,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:2,name:"contentTrackingId",kind:"message",T:function(){return qi},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:3,name:"transporterKeys",kind:"scalar",repeat:2,T:9,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}}]])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.transporterKeys=[],void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.topicName=e.string()
break
case 2:i.contentTrackingId=qi.internalBinaryRead(e,e.uint32(),n,i.contentTrackingId)
break
case 3:i.transporterKeys.push(e.string())
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.topicName&&t.tag(1,Wr.LengthDelimited).string(e.topicName),e.contentTrackingId&&qi.internalBinaryWrite(e.contentTrackingId,t.tag(2,Wr.LengthDelimited).fork(),n).join()
for(var r=0;r<e.transporterKeys.length;r++)t.tag(3,Wr.LengthDelimited).string(e.transporterKeys[r])
var i=n.writeUnknownFields
return!1!==i&&(1==i?Gr.onWrite:i)(this.typeName,e,t),t}}]),e}(),Xi=new zi,Ji=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.fixed_16",[{no:1,name:"fixedValue",kind:"scalar",T:12}],{"avro.translatedFieldCount":1,"avro.fixedSize":16}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.fixedValue=new Uint8Array(0),void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.fixedValue=e.bytes()
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.fixedValue.length&&t.tag(1,Wr.LengthDelimited).bytes(e.fixedValue)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Yi=new Ji,Qi=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.common.ClientBreadcrumbPointer",[{no:1,name:"id",kind:"message",T:function(){return Yi},options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:2,name:"type",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.common.ClientBreadcrumbType",Ir]},options:{"avro.required":!0,"avro.default":'"UNKNOWN"',"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:3,name:"processedByTFE",kind:"scalar",opt:!0,T:8,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{boolean:{passthroughAnnotation:"PassthroughAnnotation_NONE"}}}}}}],{"avro.translatedFieldCount":3}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.id=Yi.internalBinaryRead(e,e.uint32(),n,i.id)
break
case 2:i.type=e.int32()
break
case 3:i.processedByTFE=e.bool()
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.id&&Yi.internalBinaryWrite(e.id,t.tag(1,Wr.LengthDelimited).fork(),n).join(),void 0!==e.type&&t.tag(2,Wr.Varint).int32(e.type),void 0!==e.processedByTFE&&t.tag(3,Wr.Varint).bool(e.processedByTFE)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Zi=new Qi,$i=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.ObservabilityHeader",[{no:1,name:"dimensions",kind:"map",K:9,V:{kind:"scalar",T:9},options:{"si.compliance":{mapAnnotation:{keyAnnotation:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}},valueAnnotation:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}]])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.dimensions={},void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)this.binaryReadMap1(i.dimensions,e,n)
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"binaryReadMap1",value:function(e,t,n){for(var r,i,a,o,s=t.uint32(),c=t.pos+s;t.pos<c;){var u=T(t.tag(),2),l=u[0]
switch(u[1],l){case 1:a=t.string()
break
case 2:o=t.string()
break
default:throw new globalThis.Error("unknown map entry field for proto.com.linkedin.events.ObservabilityHeader.dimensions")}}e[null!==(r=a)&&void 0!==r?r:""]=null!==(i=o)&&void 0!==i?i:""}},{key:"internalBinaryWrite",value:function(e,t,n){var r,i=k(globalThis.Object.keys(e.dimensions))
try{for(i.s();!(r=i.n()).done;){var a=r.value
t.tag(1,Wr.LengthDelimited).fork().tag(1,Wr.LengthDelimited).string(a).tag(2,Wr.LengthDelimited).string(e.dimensions[a]).join()}}catch(e){i.e(e)}finally{i.f()}var o=n.writeUnknownFields
return!1!==o&&(1==o?Gr.onWrite:o)(this.typeName,e,t),t}}]),e}(),ea=new $i,ta=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.tracking3.MediaStateInfo",[{no:1,name:"hasPlaybackStarted",kind:"scalar",opt:!0,T:8,options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_MEMBER_DATA"}]}}}}]])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.hasPlaybackStarted=e.bool()
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.hasPlaybackStarted&&t.tag(1,Wr.Varint).bool(e.hasPlaybackStarted)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),na=new ta
!function(e){e[e.MobileNetworkQuality_AUTO_GEN_UNKNOWN=0]="MobileNetworkQuality_AUTO_GEN_UNKNOWN",e[e.MobileNetworkQuality_POOR=1]="MobileNetworkQuality_POOR",e[e.MobileNetworkQuality_AVERAGE=2]="MobileNetworkQuality_AVERAGE",e[e.MobileNetworkQuality_GOOD=3]="MobileNetworkQuality_GOOD",e[e.MobileNetworkQuality_EXCELLENT=4]="MobileNetworkQuality_EXCELLENT",e[e.MobileNetworkQuality_INDETERMINATE=5]="MobileNetworkQuality_INDETERMINATE"}(Fi||(Fi={})),function(e){e[e.MobileConnectionType_AUTO_GEN_UNKNOWN=0]="MobileConnectionType_AUTO_GEN_UNKNOWN",e[e.MobileConnectionType_NO_DATA=1]="MobileConnectionType_NO_DATA",e[e.MobileConnectionType_WIFI=2]="MobileConnectionType_WIFI",e[e.MobileConnectionType_FOUR_G=3]="MobileConnectionType_FOUR_G",e[e.MobileConnectionType_THREE_G=4]="MobileConnectionType_THREE_G",e[e.MobileConnectionType_GPRS=5]="MobileConnectionType_GPRS",e[e.MobileConnectionType_TWO_G=6]="MobileConnectionType_TWO_G",e[e.MobileConnectionType_FIVE_G=7]="MobileConnectionType_FIVE_G"}(Hi||(Hi={})),function(e){e[e.NativeApplicationState_AUTO_GEN_UNKNOWN=0]="NativeApplicationState_AUTO_GEN_UNKNOWN",e[e.NativeApplicationState_APPLICATION_FOREGROUND_ACTIVE=1]="NativeApplicationState_APPLICATION_FOREGROUND_ACTIVE",e[e.NativeApplicationState_APPLICATION_FOREGROUND_INACTIVE=2]="NativeApplicationState_APPLICATION_FOREGROUND_INACTIVE",e[e.NativeApplicationState_APPLICATION_BACKGROUND=3]="NativeApplicationState_APPLICATION_BACKGROUND"}(Vi||(Vi={}))
var ra,ia,aa=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.MobileHeader",[{no:1,name:"osName",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0191"}]}}}}}}},{no:2,name:"osVersion",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0190"}]}}}}}}},{no:3,name:"deviceModel",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:4,name:"appVersion",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:5,name:"advertiserId",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_DEVICE_ID_ADVERTISING_ID",isPurgeKey:!0},{dataType:"ComplianceDataType_ADS_ENTERPRISE"}]}}}}}}},{no:6,name:"vendorId",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:7,name:"isAdTrackingLimited",kind:"scalar",opt:!0,T:8,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{boolean:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:8,name:"appMarketingVersion",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:9,name:"appVendorVersion",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:10,name:"appVendorVersionShort",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:11,name:"appState",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.NativeApplicationState",Vi]},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{NativeApplicationState:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:12,name:"connectionType",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.MobileConnectionType",Hi]},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{MobileConnectionType:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:13,name:"connectionQuality",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.MobileNetworkQuality",Fi]},options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:14,name:"connectionQualityRaw",kind:"scalar",opt:!0,T:2,options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}],{"avro.translatedFieldCount":12}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.osName=e.string()
break
case 2:i.osVersion=e.string()
break
case 3:i.deviceModel=e.string()
break
case 4:i.appVersion=e.string()
break
case 5:i.advertiserId=e.string()
break
case 6:i.vendorId=e.string()
break
case 7:i.isAdTrackingLimited=e.bool()
break
case 8:i.appMarketingVersion=e.string()
break
case 9:i.appVendorVersion=e.string()
break
case 10:i.appVendorVersionShort=e.string()
break
case 11:i.appState=e.int32()
break
case 12:i.connectionType=e.int32()
break
case 13:i.connectionQuality=e.int32()
break
case 14:i.connectionQualityRaw=e.float()
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.osName&&t.tag(1,Wr.LengthDelimited).string(e.osName),void 0!==e.osVersion&&t.tag(2,Wr.LengthDelimited).string(e.osVersion),void 0!==e.deviceModel&&t.tag(3,Wr.LengthDelimited).string(e.deviceModel),void 0!==e.appVersion&&t.tag(4,Wr.LengthDelimited).string(e.appVersion),void 0!==e.advertiserId&&t.tag(5,Wr.LengthDelimited).string(e.advertiserId),void 0!==e.vendorId&&t.tag(6,Wr.LengthDelimited).string(e.vendorId),void 0!==e.isAdTrackingLimited&&t.tag(7,Wr.Varint).bool(e.isAdTrackingLimited),void 0!==e.appMarketingVersion&&t.tag(8,Wr.LengthDelimited).string(e.appMarketingVersion),void 0!==e.appVendorVersion&&t.tag(9,Wr.LengthDelimited).string(e.appVendorVersion),void 0!==e.appVendorVersionShort&&t.tag(10,Wr.LengthDelimited).string(e.appVendorVersionShort),void 0!==e.appState&&t.tag(11,Wr.Varint).int32(e.appState),void 0!==e.connectionType&&t.tag(12,Wr.Varint).int32(e.connectionType),void 0!==e.connectionQuality&&t.tag(13,Wr.Varint).int32(e.connectionQuality),void 0!==e.connectionQualityRaw&&t.tag(14,Wr.Bit32).float(e.connectionQualityRaw)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),oa=new aa
!function(e){e[e.RequestDomain_UNKNOWN=0]="RequestDomain_UNKNOWN",e[e.RequestDomain_LINKEDIN_COM=1]="RequestDomain_LINKEDIN_COM",e[e.RequestDomain_LINKEDIN_CN=2]="RequestDomain_LINKEDIN_CN"}(ra||(ra={})),function(e){e[e.ApplicationLayerProtocol_AUTO_GEN_UNKNOWN=0]="ApplicationLayerProtocol_AUTO_GEN_UNKNOWN",e[e.ApplicationLayerProtocol_HTTP=1]="ApplicationLayerProtocol_HTTP",e[e.ApplicationLayerProtocol_HTTPS=2]="ApplicationLayerProtocol_HTTPS"}(ia||(ia={}))
var sa,ca=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.IPAddress",[{no:1,name:"fixedValue",kind:"scalar",T:12}],{"avro.translatedFieldCount":1,"avro.fixedSize":16}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.fixedValue=new Uint8Array(0),void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.fixedValue=e.bytes()
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.fixedValue.length&&t.tag(1,Wr.LengthDelimited).bytes(e.fixedValue)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),ua=new ca,la=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.UserRequestHeader",[{no:1,name:"browserId",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_COOKIE_BEACON_BROWSER_ID",isPurgeKey:!0},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_MEMBER_DATA"}]}}}}}}},{no:2,name:"sessionId",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_COOKIE_BEACON_BROWSER_ID",isPurgeKey:!0},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_MEMBER_DATA"}]}}}}}}},{no:3,name:"ip",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_IP_ADDRESS",isPurgeKey:!1},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_MEMBER_DATA",isPurgeKey:!1}]}}}}}}},{no:4,name:"pageKey",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0197"}]}}}}}}},{no:5,name:"path",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"avro.fieldJsonProperties":'{"lengthLimit":"50000"}',"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0196"}]}}}}}}},{no:6,name:"locale",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0195"}]}}}}}}},{no:7,name:"interfaceLocale",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0194"}]}}}}}}},{no:8,name:"trackingCode",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:9,name:"referer",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0193"}]}}}}}}},{no:10,name:"userAgent",kind:"scalar",opt:!0,T:9,options:{"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0192"}]}}}}}}},{no:11,name:"ipAsBytes",kind:"message",T:function(){return ua},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{IPAddress:{annotation:{entry:[{dataType:"ComplianceDataType_IP_ADDRESS",isPurgeKey:!0},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_MEMBER_DATA",isPurgeKey:!1}]}}}}}}},{no:12,name:"requestProtocol",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.common.ApplicationLayerProtocol",ia]},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{"com.linkedin.common.ApplicationLayerProtocol":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:13,name:"requestDomain",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.RequestDomain",ra]},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{RequestDomain:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:14,name:"theme",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.Theme",kr]},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{Theme:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:15,name:"isBrowserPersistentRetryEnabled",kind:"scalar",opt:!0,T:8,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{boolean:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:16,name:"isFlushOnCloseBrowserTabEnabled",kind:"scalar",opt:!0,T:8,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{boolean:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:17,name:"isT2ClientEvent",kind:"scalar",opt:!0,T:8,options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:18,name:"clientDeviceType",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.common.ClientDeviceType",_r]},options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:19,name:"timeZoneOffsetMinutes",kind:"scalar",opt:!0,T:17,options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}],{"avro.translatedFieldCount":16}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.browserId=e.string()
break
case 2:i.sessionId=e.string()
break
case 3:i.ip=e.string()
break
case 4:i.pageKey=e.string()
break
case 5:i.path=e.string()
break
case 6:i.locale=e.string()
break
case 7:i.interfaceLocale=e.string()
break
case 8:i.trackingCode=e.string()
break
case 9:i.referer=e.string()
break
case 10:i.userAgent=e.string()
break
case 11:i.ipAsBytes=ua.internalBinaryRead(e,e.uint32(),n,i.ipAsBytes)
break
case 12:i.requestProtocol=e.int32()
break
case 13:i.requestDomain=e.int32()
break
case 14:i.theme=e.int32()
break
case 15:i.isBrowserPersistentRetryEnabled=e.bool()
break
case 16:i.isFlushOnCloseBrowserTabEnabled=e.bool()
break
case 17:i.isT2ClientEvent=e.bool()
break
case 18:i.clientDeviceType=e.int32()
break
case 19:i.timeZoneOffsetMinutes=e.sint32()
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.browserId&&t.tag(1,Wr.LengthDelimited).string(e.browserId),void 0!==e.sessionId&&t.tag(2,Wr.LengthDelimited).string(e.sessionId),void 0!==e.ip&&t.tag(3,Wr.LengthDelimited).string(e.ip),void 0!==e.pageKey&&t.tag(4,Wr.LengthDelimited).string(e.pageKey),void 0!==e.path&&t.tag(5,Wr.LengthDelimited).string(e.path),void 0!==e.locale&&t.tag(6,Wr.LengthDelimited).string(e.locale),void 0!==e.interfaceLocale&&t.tag(7,Wr.LengthDelimited).string(e.interfaceLocale),void 0!==e.trackingCode&&t.tag(8,Wr.LengthDelimited).string(e.trackingCode),void 0!==e.referer&&t.tag(9,Wr.LengthDelimited).string(e.referer),void 0!==e.userAgent&&t.tag(10,Wr.LengthDelimited).string(e.userAgent),e.ipAsBytes&&ua.internalBinaryWrite(e.ipAsBytes,t.tag(11,Wr.LengthDelimited).fork(),n).join(),void 0!==e.requestProtocol&&t.tag(12,Wr.Varint).int32(e.requestProtocol),void 0!==e.requestDomain&&t.tag(13,Wr.Varint).int32(e.requestDomain),void 0!==e.theme&&t.tag(14,Wr.Varint).int32(e.theme),void 0!==e.isBrowserPersistentRetryEnabled&&t.tag(15,Wr.Varint).bool(e.isBrowserPersistentRetryEnabled),void 0!==e.isFlushOnCloseBrowserTabEnabled&&t.tag(16,Wr.Varint).bool(e.isFlushOnCloseBrowserTabEnabled),void 0!==e.isT2ClientEvent&&t.tag(17,Wr.Varint).bool(e.isT2ClientEvent),void 0!==e.clientDeviceType&&t.tag(18,Wr.Varint).int32(e.clientDeviceType),void 0!==e.timeZoneOffsetMinutes&&t.tag(19,Wr.Varint).sint32(e.timeZoneOffsetMinutes)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),da=new la,fa=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.TraceData",[{no:1,name:"treeId",kind:"message",T:function(){return Yi},options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:2,name:"requestId",kind:"scalar",opt:!0,T:17,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:3,name:"taskId",kind:"scalar",opt:!0,T:17,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:4,name:"rpcTrace",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:5,name:"forceTraceEnabled",kind:"scalar",opt:!0,T:8,options:{"avro.required":!0,"avro.default":"false","si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:6,name:"context",kind:"message",T:function(){return va},options:{"avro.required":!0,"si.compliance":{avroUnionAnnotation:{entry:{key:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}},values:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:7,name:"scaleFactor",kind:"scalar",opt:!0,T:1,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{double:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}}],{"avro.translatedFieldCount":7}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.treeId=Yi.internalBinaryRead(e,e.uint32(),n,i.treeId)
break
case 2:i.requestId=e.sint32()
break
case 3:i.taskId=e.sint32()
break
case 4:i.rpcTrace=e.string()
break
case 5:i.forceTraceEnabled=e.bool()
break
case 6:i.context=va.internalBinaryRead(e,e.uint32(),n,i.context)
break
case 7:i.scaleFactor=e.double()
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.treeId&&Yi.internalBinaryWrite(e.treeId,t.tag(1,Wr.LengthDelimited).fork(),n).join(),void 0!==e.requestId&&t.tag(2,Wr.Varint).sint32(e.requestId),void 0!==e.taskId&&t.tag(3,Wr.Varint).sint32(e.taskId),void 0!==e.rpcTrace&&t.tag(4,Wr.LengthDelimited).string(e.rpcTrace),void 0!==e.forceTraceEnabled&&t.tag(5,Wr.Varint).bool(e.forceTraceEnabled),e.context&&va.internalBinaryWrite(e.context,t.tag(6,Wr.LengthDelimited).fork(),n).join(),void 0!==e.scaleFactor&&t.tag(7,Wr.Bit64).double(e.scaleFactor)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),ha=new fa,pa=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.TraceData.ContextWrapper",[{no:1,name:"entries",kind:"map",K:9,V:{kind:"scalar",T:9}}],{"avro.wrapperMessageType":"MAP_WRAPPER","avro.translatedFieldCount":1}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.entries={},void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)this.binaryReadMap1(i.entries,e,n)
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"binaryReadMap1",value:function(e,t,n){for(var r,i,a,o,s=t.uint32(),c=t.pos+s;t.pos<c;){var u=T(t.tag(),2),l=u[0]
switch(u[1],l){case 1:a=t.string()
break
case 2:o=t.string()
break
default:throw new globalThis.Error("unknown map entry field for proto.com.linkedin.events.TraceData.ContextWrapper.entries")}}e[null!==(r=a)&&void 0!==r?r:""]=null!==(i=o)&&void 0!==i?i:""}},{key:"internalBinaryWrite",value:function(e,t,n){var r,i=k(globalThis.Object.keys(e.entries))
try{for(i.s();!(r=i.n()).done;){var a=r.value
t.tag(1,Wr.LengthDelimited).fork().tag(1,Wr.LengthDelimited).string(a).tag(2,Wr.LengthDelimited).string(e.entries[a]).join()}}catch(e){i.e(e)}finally{i.f()}var o=n.writeUnknownFields
return!1!==o&&(1==o?Gr.onWrite:o)(this.typeName,e,t),t}}]),e}(),va=new pa
!function(e){e[e.OriginSource_AUTO_GEN_UNKNOWN=0]="OriginSource_AUTO_GEN_UNKNOWN",e[e.OriginSource_QPROD=1]="OriginSource_QPROD",e[e.OriginSource_DARK_CLUSTER=2]="OriginSource_DARK_CLUSTER"}(sa||(sa={}))
var ga=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.common.ApplicationInstance",[{no:1,name:"applicationUrn",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:2,name:"version",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:3,name:"trackingId",kind:"message",T:function(){return qi},options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}],{"avro.translatedFieldCount":3}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.applicationUrn=e.string()
break
case 2:i.version=e.string()
break
case 3:i.trackingId=qi.internalBinaryRead(e,e.uint32(),n,i.trackingId)
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.applicationUrn&&t.tag(1,Wr.LengthDelimited).string(e.applicationUrn),void 0!==e.version&&t.tag(2,Wr.LengthDelimited).string(e.version),e.trackingId&&qi.internalBinaryWrite(e.trackingId,t.tag(3,Wr.LengthDelimited).fork(),n).join()
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),ma=new ga,ya=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.common.PageInstance",[{no:1,name:"pageUrn",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0199"}]}}}},{no:2,name:"trackingId",kind:"message",T:function(){return qi},options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_CUSTOM_UC_0198"}]}}}}],{"avro.translatedFieldCount":2}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.pageUrn=e.string()
break
case 2:i.trackingId=qi.internalBinaryRead(e,e.uint32(),n,i.trackingId)
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.pageUrn&&t.tag(1,Wr.LengthDelimited).string(e.pageUrn),e.trackingId&&qi.internalBinaryWrite(e.trackingId,t.tag(2,Wr.LengthDelimited).fork(),n).join()
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Ea=new ya,Ta=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.UUID",[{no:1,name:"fixedValue",kind:"scalar",T:12}],{"avro.translatedFieldCount":1,"avro.fixedSize":16}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.fixedValue=new Uint8Array(0),void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.fixedValue=e.bytes()
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.fixedValue.length&&t.tag(1,Wr.LengthDelimited).bytes(e.fixedValue)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),ba=new Ta,_a=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.KafkaAuditHeader",[{no:1,name:"time",kind:"scalar",opt:!0,T:18,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_EVENT_TIME"},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:2,name:"server",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:3,name:"instance",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:4,name:"appName",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:5,name:"messageId",kind:"message",T:function(){return ba},options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:6,name:"auditVersion",kind:"scalar",opt:!0,T:17,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{int:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:7,name:"fabricUrn",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:8,name:"clusterConnectionString",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}}],{"avro.translatedFieldCount":8}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.time=e.sint64().toString()
break
case 2:i.server=e.string()
break
case 3:i.instance=e.string()
break
case 4:i.appName=e.string()
break
case 5:i.messageId=ba.internalBinaryRead(e,e.uint32(),n,i.messageId)
break
case 6:i.auditVersion=e.sint32()
break
case 7:i.fabricUrn=e.string()
break
case 8:i.clusterConnectionString=e.string()
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.time&&t.tag(1,Wr.Varint).sint64(e.time),void 0!==e.server&&t.tag(2,Wr.LengthDelimited).string(e.server),void 0!==e.instance&&t.tag(3,Wr.LengthDelimited).string(e.instance),void 0!==e.appName&&t.tag(4,Wr.LengthDelimited).string(e.appName),e.messageId&&ba.internalBinaryWrite(e.messageId,t.tag(5,Wr.LengthDelimited).fork(),n).join(),void 0!==e.auditVersion&&t.tag(6,Wr.Varint).sint32(e.auditVersion),void 0!==e.fabricUrn&&t.tag(7,Wr.LengthDelimited).string(e.fabricUrn),void 0!==e.clusterConnectionString&&t.tag(8,Wr.LengthDelimited).string(e.clusterConnectionString)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Ia=new _a,ka=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.Guid",[{no:1,name:"fixedValue",kind:"scalar",T:12}],{"avro.translatedFieldCount":1,"avro.fixedSize":16}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.fixedValue=new Uint8Array(0),void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.fixedValue=e.bytes()
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.fixedValue.length&&t.tag(1,Wr.LengthDelimited).bytes(e.fixedValue)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),wa=new ka,Na=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.EventHeader",[{no:1,name:"memberId",kind:"scalar",opt:!0,T:17,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_MEMBER_ID",format:"NUMERIC",isPurgeKey:!0}]}}}},{no:2,name:"viewerUrn",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_MEMBER_ID",format:"URN",isPurgeKey:!1}]}}}}}}},{no:3,name:"applicationViewerUrn",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_ENTERPRISE_PROFILE_ID",format:"URN",isPurgeKey:!0},{dataType:"ComplianceDataType_SLIDESHARE_USER_ID",format:"URN",isPurgeKey:!0},{dataType:"ComplianceDataType_ENTERPRISE_PROFILE_ID",format:"URN",isPurgeKey:!0},{dataType:"ComplianceDataType_MEMBER_ID",format:"URN",isPurgeKey:!0},{dataType:"ComplianceDataType_CONTRACT_ID",format:"CUSTOM",pattern:"urn:li:(?:contractSeat|ts_contract_seat):\\(urn:li:(?:ts_)?contract:(\\d+),urn:li:(?:ts_)?seat:\\d+\\)",isPurgeKey:!0},{dataType:"ComplianceDataType_SEAT_ID",format:"CUSTOM",pattern:"urn:li:(?:contractSeat|ts_contract_seat):\\(urn:li:(?:ts_)?contract:\\d+,urn:li:(?:ts_)?seat:(\\d+)\\)",isPurgeKey:!0}]}}}}}}},{no:4,name:"csUserUrn",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_MEMBER_ID",format:"URN",isPurgeKey:!1}]}}}}}}},{no:5,name:"time",kind:"scalar",opt:!0,T:18,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_EVENT_TIME"},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:6,name:"server",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:7,name:"service_ProtoSanitized_",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:8,name:"environment",kind:"scalar",opt:!0,T:9,options:{"avro.default":'""',"avro.nullTypeIndex":1,"si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:9,name:"guid",kind:"message",T:function(){return wa},options:{"avro.required":!0,"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}},{no:10,name:"treeId",kind:"message",T:function(){return Yi},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{fixed_16:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:11,name:"requestId",kind:"scalar",opt:!0,T:17,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{int:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:12,name:"impersonatorId",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:13,name:"version",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:14,name:"instance",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:15,name:"appName",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:16,name:"testId",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:17,name:"testSegmentId",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:18,name:"auditHeader",kind:"message",T:function(){return Ia},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{KafkaAuditHeader:{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:19,name:"pageInstance",kind:"message",T:function(){return Ea},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{"com.linkedin.events.common.PageInstance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:20,name:"clientApplicationInstance",kind:"message",T:function(){return ma},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{"com.linkedin.events.common.ApplicationInstance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:21,name:"originSource",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.OriginSource",sa]},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{OriginSource:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:22,name:"sessionUrn",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{annotation:{entry:[{dataType:"ComplianceDataType_UNSTRUCTURED_PII",isPurgeKey:!1},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_MEMBER_DATA",isPurgeKey:!1}]}}}}}}},{no:23,name:"traceData",kind:"message",T:function(){return ha},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{TraceData:{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:24,name:"clientMonitoringInstanceId",kind:"message",T:function(){return Yi},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{fixed_16:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:25,name:"clientMonitoringInstanceEventNumber",kind:"scalar",opt:!0,T:18,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{long:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:26,name:"originalClientTime",kind:"scalar",opt:!0,T:18,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{long:{annotation:{entry:[{dataType:"ComplianceDataType_EVENT_TIME"},{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:27,name:"clientGlobalSequenceNumber",kind:"scalar",opt:!0,T:18,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{long:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:28,name:"clientTopicLocalSequenceNumber",kind:"scalar",opt:!0,T:18,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{long:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:29,name:"viewHierarchy",kind:"message",T:function(){return Sa},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{array:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:30,name:"isShadowEvent",kind:"scalar",opt:!0,T:8,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{boolean:{annotation:{entry:[{dataType:"ComplianceDataType_UNKNOWN_ORIGIN_NON_MEMBER_DATA"}]}}}}}}},{no:31,name:"actorUrn",kind:"scalar",opt:!0,T:9,options:{"si.compliance":{annotation:{entry:[{dataType:"ComplianceDataType_MEMBER_ID",format:"URN",isPurgeKey:!0},{dataType:"ComplianceDataType_COMPANY_ID",format:"URN"}]}}}}],{"avro.translatedFieldCount":30}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.memberId=e.sint32()
break
case 2:i.viewerUrn=e.string()
break
case 3:i.applicationViewerUrn=e.string()
break
case 4:i.csUserUrn=e.string()
break
case 5:i.time=e.sint64().toString()
break
case 6:i.server=e.string()
break
case 7:i.serviceProtoSanitized=e.string()
break
case 8:i.environment=e.string()
break
case 9:i.guid=wa.internalBinaryRead(e,e.uint32(),n,i.guid)
break
case 10:i.treeId=Yi.internalBinaryRead(e,e.uint32(),n,i.treeId)
break
case 11:i.requestId=e.sint32()
break
case 12:i.impersonatorId=e.string()
break
case 13:i.version=e.string()
break
case 14:i.instance=e.string()
break
case 15:i.appName=e.string()
break
case 16:i.testId=e.string()
break
case 17:i.testSegmentId=e.string()
break
case 18:i.auditHeader=Ia.internalBinaryRead(e,e.uint32(),n,i.auditHeader)
break
case 19:i.pageInstance=Ea.internalBinaryRead(e,e.uint32(),n,i.pageInstance)
break
case 20:i.clientApplicationInstance=ma.internalBinaryRead(e,e.uint32(),n,i.clientApplicationInstance)
break
case 21:i.originSource=e.int32()
break
case 22:i.sessionUrn=e.string()
break
case 23:i.traceData=ha.internalBinaryRead(e,e.uint32(),n,i.traceData)
break
case 24:i.clientMonitoringInstanceId=Yi.internalBinaryRead(e,e.uint32(),n,i.clientMonitoringInstanceId)
break
case 25:i.clientMonitoringInstanceEventNumber=e.sint64().toString()
break
case 26:i.originalClientTime=e.sint64().toString()
break
case 27:i.clientGlobalSequenceNumber=e.sint64().toString()
break
case 28:i.clientTopicLocalSequenceNumber=e.sint64().toString()
break
case 29:i.viewHierarchy=Sa.internalBinaryRead(e,e.uint32(),n,i.viewHierarchy)
break
case 30:i.isShadowEvent=e.bool()
break
case 31:i.actorUrn=e.string()
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){void 0!==e.memberId&&t.tag(1,Wr.Varint).sint32(e.memberId),void 0!==e.viewerUrn&&t.tag(2,Wr.LengthDelimited).string(e.viewerUrn),void 0!==e.applicationViewerUrn&&t.tag(3,Wr.LengthDelimited).string(e.applicationViewerUrn),void 0!==e.csUserUrn&&t.tag(4,Wr.LengthDelimited).string(e.csUserUrn),void 0!==e.time&&t.tag(5,Wr.Varint).sint64(e.time),void 0!==e.server&&t.tag(6,Wr.LengthDelimited).string(e.server),void 0!==e.serviceProtoSanitized&&t.tag(7,Wr.LengthDelimited).string(e.serviceProtoSanitized),void 0!==e.environment&&t.tag(8,Wr.LengthDelimited).string(e.environment),e.guid&&wa.internalBinaryWrite(e.guid,t.tag(9,Wr.LengthDelimited).fork(),n).join(),e.treeId&&Yi.internalBinaryWrite(e.treeId,t.tag(10,Wr.LengthDelimited).fork(),n).join(),void 0!==e.requestId&&t.tag(11,Wr.Varint).sint32(e.requestId),void 0!==e.impersonatorId&&t.tag(12,Wr.LengthDelimited).string(e.impersonatorId),void 0!==e.version&&t.tag(13,Wr.LengthDelimited).string(e.version),void 0!==e.instance&&t.tag(14,Wr.LengthDelimited).string(e.instance),void 0!==e.appName&&t.tag(15,Wr.LengthDelimited).string(e.appName),void 0!==e.testId&&t.tag(16,Wr.LengthDelimited).string(e.testId),void 0!==e.testSegmentId&&t.tag(17,Wr.LengthDelimited).string(e.testSegmentId),e.auditHeader&&Ia.internalBinaryWrite(e.auditHeader,t.tag(18,Wr.LengthDelimited).fork(),n).join(),e.pageInstance&&Ea.internalBinaryWrite(e.pageInstance,t.tag(19,Wr.LengthDelimited).fork(),n).join(),e.clientApplicationInstance&&ma.internalBinaryWrite(e.clientApplicationInstance,t.tag(20,Wr.LengthDelimited).fork(),n).join(),void 0!==e.originSource&&t.tag(21,Wr.Varint).int32(e.originSource),void 0!==e.sessionUrn&&t.tag(22,Wr.LengthDelimited).string(e.sessionUrn),e.traceData&&ha.internalBinaryWrite(e.traceData,t.tag(23,Wr.LengthDelimited).fork(),n).join(),e.clientMonitoringInstanceId&&Yi.internalBinaryWrite(e.clientMonitoringInstanceId,t.tag(24,Wr.LengthDelimited).fork(),n).join(),void 0!==e.clientMonitoringInstanceEventNumber&&t.tag(25,Wr.Varint).sint64(e.clientMonitoringInstanceEventNumber),void 0!==e.originalClientTime&&t.tag(26,Wr.Varint).sint64(e.originalClientTime),void 0!==e.clientGlobalSequenceNumber&&t.tag(27,Wr.Varint).sint64(e.clientGlobalSequenceNumber),void 0!==e.clientTopicLocalSequenceNumber&&t.tag(28,Wr.Varint).sint64(e.clientTopicLocalSequenceNumber),e.viewHierarchy&&Sa.internalBinaryWrite(e.viewHierarchy,t.tag(29,Wr.LengthDelimited).fork(),n).join(),void 0!==e.isShadowEvent&&t.tag(30,Wr.Varint).bool(e.isShadowEvent),void 0!==e.actorUrn&&t.tag(31,Wr.LengthDelimited).string(e.actorUrn)
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Aa=new Na,Ca=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.EventHeader.ViewHierarchyWrapper",[{no:1,name:"items",kind:"scalar",repeat:2,T:9}],{"avro.wrapperMessageType":"ARRAY_WRAPPER","avro.translatedFieldCount":1}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.items=[],void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.items.push(e.string())
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){for(var r=0;r<e.items.length;r++)t.tag(1,Wr.LengthDelimited).string(e.items[r])
var i=n.writeUnknownFields
return!1!==i&&(1==i?Gr.onWrite:i)(this.typeName,e,t),t}}]),e}(),Sa=new Ca,Ra=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.GenericActionEvent",[{no:1,name:"header",kind:"message",T:function(){return Aa},options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:2,name:"requestHeader",kind:"message",T:function(){return da},options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:3,name:"mobileHeader",kind:"message",T:function(){return oa},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{"com.linkedin.events.MobileHeader":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:4,name:"controlUrn",kind:"scalar",opt:!0,T:9,options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:5,name:"interactionType",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.common.ControlInteractionType",Tr]},options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:6,name:"contentTrackingId",kind:"message",T:function(){return qi},options:{"avro.default":"null","si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:7,name:"clientBreadcrumbPointers",kind:"message",T:function(){return Ma},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{array:{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:8,name:"actionType",kind:"scalar",opt:!0,T:9,options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{string:{passthroughAnnotation:"PassthroughAnnotation_NONE"}}}}}},{no:9,name:"manualFireReason",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.ManualFireReason",Er]},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:10,name:"horizontalPosition",kind:"scalar",opt:!0,T:17,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:11,name:"verticalPosition",kind:"scalar",opt:!0,T:17,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:12,name:"cooloffToken",kind:"scalar",opt:!0,T:9,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:13,name:"trackingScopeHierarchy",kind:"message",T:function(){return La},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:14,name:"mediaStateInfo",kind:"message",T:function(){return na},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:15,name:"entityUrn",kind:"scalar",opt:!0,T:9,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:16,name:"actorType",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.ActorType",br]},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:17,name:"observabilityHeader",kind:"message",T:function(){return ea},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}],{"avro.translatedFieldCount":8,"si.usrMessageTypeId":"4594","si.isTrackingSchema":!0}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.header=Aa.internalBinaryRead(e,e.uint32(),n,i.header)
break
case 2:i.requestHeader=da.internalBinaryRead(e,e.uint32(),n,i.requestHeader)
break
case 3:i.mobileHeader=oa.internalBinaryRead(e,e.uint32(),n,i.mobileHeader)
break
case 4:i.controlUrn=e.string()
break
case 5:i.interactionType=e.int32()
break
case 6:i.contentTrackingId=qi.internalBinaryRead(e,e.uint32(),n,i.contentTrackingId)
break
case 7:i.clientBreadcrumbPointers=Ma.internalBinaryRead(e,e.uint32(),n,i.clientBreadcrumbPointers)
break
case 8:i.actionType=e.string()
break
case 9:i.manualFireReason=e.int32()
break
case 10:i.horizontalPosition=e.sint32()
break
case 11:i.verticalPosition=e.sint32()
break
case 12:i.cooloffToken=e.string()
break
case 13:i.trackingScopeHierarchy=La.internalBinaryRead(e,e.uint32(),n,i.trackingScopeHierarchy)
break
case 14:i.mediaStateInfo=na.internalBinaryRead(e,e.uint32(),n,i.mediaStateInfo)
break
case 15:i.entityUrn=e.string()
break
case 16:i.actorType=e.int32()
break
case 17:i.observabilityHeader=ea.internalBinaryRead(e,e.uint32(),n,i.observabilityHeader)
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.header&&Aa.internalBinaryWrite(e.header,t.tag(1,Wr.LengthDelimited).fork(),n).join(),e.requestHeader&&da.internalBinaryWrite(e.requestHeader,t.tag(2,Wr.LengthDelimited).fork(),n).join(),e.mobileHeader&&oa.internalBinaryWrite(e.mobileHeader,t.tag(3,Wr.LengthDelimited).fork(),n).join(),void 0!==e.controlUrn&&t.tag(4,Wr.LengthDelimited).string(e.controlUrn),void 0!==e.interactionType&&t.tag(5,Wr.Varint).int32(e.interactionType),e.contentTrackingId&&qi.internalBinaryWrite(e.contentTrackingId,t.tag(6,Wr.LengthDelimited).fork(),n).join(),e.clientBreadcrumbPointers&&Ma.internalBinaryWrite(e.clientBreadcrumbPointers,t.tag(7,Wr.LengthDelimited).fork(),n).join(),void 0!==e.actionType&&t.tag(8,Wr.LengthDelimited).string(e.actionType),void 0!==e.manualFireReason&&t.tag(9,Wr.Varint).int32(e.manualFireReason),void 0!==e.horizontalPosition&&t.tag(10,Wr.Varint).sint32(e.horizontalPosition),void 0!==e.verticalPosition&&t.tag(11,Wr.Varint).sint32(e.verticalPosition),void 0!==e.cooloffToken&&t.tag(12,Wr.LengthDelimited).string(e.cooloffToken),e.trackingScopeHierarchy&&La.internalBinaryWrite(e.trackingScopeHierarchy,t.tag(13,Wr.LengthDelimited).fork(),n).join(),e.mediaStateInfo&&na.internalBinaryWrite(e.mediaStateInfo,t.tag(14,Wr.LengthDelimited).fork(),n).join(),void 0!==e.entityUrn&&t.tag(15,Wr.LengthDelimited).string(e.entityUrn),void 0!==e.actorType&&t.tag(16,Wr.Varint).int32(e.actorType),e.observabilityHeader&&ea.internalBinaryWrite(e.observabilityHeader,t.tag(17,Wr.LengthDelimited).fork(),n).join()
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Oa=new Ra,Da=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.GenericActionEvent.ClientBreadcrumbPointersWrapper",[{no:1,name:"items",kind:"message",repeat:2,T:function(){return Zi}}],{"avro.wrapperMessageType":"ARRAY_WRAPPER","avro.translatedFieldCount":1}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.items=[],void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.items.push(Zi.internalBinaryRead(e,e.uint32(),n))
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){for(var r=0;r<e.items.length;r++)Zi.internalBinaryWrite(e.items[r],t.tag(1,Wr.LengthDelimited).fork(),n).join()
var i=n.writeUnknownFields
return!1!==i&&(1==i?Gr.onWrite:i)(this.typeName,e,t),t}}]),e}(),Ma=new Da,Pa=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.GenericActionEvent.TrackingScopeWrapper",[{no:1,name:"entries",kind:"message",repeat:2,T:function(){return Xi},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}]])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.entries=[],void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.entries.push(Xi.internalBinaryRead(e,e.uint32(),n))
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){for(var r=0;r<e.entries.length;r++)Xi.internalBinaryWrite(e.entries[r],t.tag(1,Wr.LengthDelimited).fork(),n).join()
var i=n.writeUnknownFields
return!1!==i&&(1==i?Gr.onWrite:i)(this.typeName,e,t),t}}]),e}(),La=new Pa,xa=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.GenericImpressionEvent",[{no:1,name:"header",kind:"message",T:function(){return Aa},options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:2,name:"requestHeader",kind:"message",T:function(){return da},options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:3,name:"mobileHeader",kind:"message",T:function(){return oa},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{"com.linkedin.events.MobileHeader":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:4,name:"contentKey",kind:"message",T:function(){return qi},options:{"avro.default":"null","si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:5,name:"viewDurationInMilliseconds",kind:"scalar",opt:!0,T:18,options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:6,name:"contentViewFraction",kind:"scalar",opt:!0,T:2,options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:7,name:"horizontalPosition",kind:"scalar",opt:!0,T:17,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:8,name:"verticalPosition",kind:"scalar",opt:!0,T:17,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:9,name:"width",kind:"scalar",opt:!0,T:17,options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:10,name:"height",kind:"scalar",opt:!0,T:17,options:{"avro.required":!0,"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:11,name:"clientBreadcrumbPointers",kind:"message",T:function(){return Fa},options:{"avro.default":"null","si.compliance":{avroUnionAnnotation:{entry:{array:{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}}}},{no:12,name:"contentTrackingId",kind:"message",T:function(){return qi},options:{"avro.default":"null","si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:13,name:"impressionTime",kind:"scalar",opt:!0,T:18,options:{"avro.default":"null","si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:14,name:"manualFireReason",kind:"enum",opt:!0,T:function(){return["proto.com.linkedin.events.ManualFireReason",Er]},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:15,name:"cooloffToken",kind:"scalar",opt:!0,T:9,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:16,name:"trackingScopeHierarchy",kind:"message",T:function(){return Va},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:17,name:"mediaStateInfo",kind:"message",T:function(){return na},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}},{no:18,name:"entityUrn",kind:"scalar",opt:!0,T:9,options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_NONE"}}},{no:19,name:"observabilityHeader",kind:"message",T:function(){return ea},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}],{"avro.translatedFieldCount":13,"si.usrMessageTypeId":"6289","si.isTrackingSchema":!0}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
switch(s){case 1:i.header=Aa.internalBinaryRead(e,e.uint32(),n,i.header)
break
case 2:i.requestHeader=da.internalBinaryRead(e,e.uint32(),n,i.requestHeader)
break
case 3:i.mobileHeader=oa.internalBinaryRead(e,e.uint32(),n,i.mobileHeader)
break
case 4:i.contentKey=qi.internalBinaryRead(e,e.uint32(),n,i.contentKey)
break
case 5:i.viewDurationInMilliseconds=e.sint64().toString()
break
case 6:i.contentViewFraction=e.float()
break
case 7:i.horizontalPosition=e.sint32()
break
case 8:i.verticalPosition=e.sint32()
break
case 9:i.width=e.sint32()
break
case 10:i.height=e.sint32()
break
case 11:i.clientBreadcrumbPointers=Fa.internalBinaryRead(e,e.uint32(),n,i.clientBreadcrumbPointers)
break
case 12:i.contentTrackingId=qi.internalBinaryRead(e,e.uint32(),n,i.contentTrackingId)
break
case 13:i.impressionTime=e.sint64().toString()
break
case 14:i.manualFireReason=e.int32()
break
case 15:i.cooloffToken=e.string()
break
case 16:i.trackingScopeHierarchy=Va.internalBinaryRead(e,e.uint32(),n,i.trackingScopeHierarchy)
break
case 17:i.mediaStateInfo=na.internalBinaryRead(e,e.uint32(),n,i.mediaStateInfo)
break
case 18:i.entityUrn=e.string()
break
case 19:i.observabilityHeader=ea.internalBinaryRead(e,e.uint32(),n,i.observabilityHeader)
break
default:var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){e.header&&Aa.internalBinaryWrite(e.header,t.tag(1,Wr.LengthDelimited).fork(),n).join(),e.requestHeader&&da.internalBinaryWrite(e.requestHeader,t.tag(2,Wr.LengthDelimited).fork(),n).join(),e.mobileHeader&&oa.internalBinaryWrite(e.mobileHeader,t.tag(3,Wr.LengthDelimited).fork(),n).join(),e.contentKey&&qi.internalBinaryWrite(e.contentKey,t.tag(4,Wr.LengthDelimited).fork(),n).join(),void 0!==e.viewDurationInMilliseconds&&t.tag(5,Wr.Varint).sint64(e.viewDurationInMilliseconds),void 0!==e.contentViewFraction&&t.tag(6,Wr.Bit32).float(e.contentViewFraction),void 0!==e.horizontalPosition&&t.tag(7,Wr.Varint).sint32(e.horizontalPosition),void 0!==e.verticalPosition&&t.tag(8,Wr.Varint).sint32(e.verticalPosition),void 0!==e.width&&t.tag(9,Wr.Varint).sint32(e.width),void 0!==e.height&&t.tag(10,Wr.Varint).sint32(e.height),e.clientBreadcrumbPointers&&Fa.internalBinaryWrite(e.clientBreadcrumbPointers,t.tag(11,Wr.LengthDelimited).fork(),n).join(),e.contentTrackingId&&qi.internalBinaryWrite(e.contentTrackingId,t.tag(12,Wr.LengthDelimited).fork(),n).join(),void 0!==e.impressionTime&&t.tag(13,Wr.Varint).sint64(e.impressionTime),void 0!==e.manualFireReason&&t.tag(14,Wr.Varint).int32(e.manualFireReason),void 0!==e.cooloffToken&&t.tag(15,Wr.LengthDelimited).string(e.cooloffToken),e.trackingScopeHierarchy&&Va.internalBinaryWrite(e.trackingScopeHierarchy,t.tag(16,Wr.LengthDelimited).fork(),n).join(),e.mediaStateInfo&&na.internalBinaryWrite(e.mediaStateInfo,t.tag(17,Wr.LengthDelimited).fork(),n).join(),void 0!==e.entityUrn&&t.tag(18,Wr.LengthDelimited).string(e.entityUrn),e.observabilityHeader&&ea.internalBinaryWrite(e.observabilityHeader,t.tag(19,Wr.LengthDelimited).fork(),n).join()
var r=n.writeUnknownFields
return!1!==r&&(1==r?Gr.onWrite:r)(this.typeName,e,t),t}}]),e}(),Ba=new xa,Ua=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.GenericImpressionEvent.ClientBreadcrumbPointersWrapper",[{no:1,name:"items",kind:"message",repeat:2,T:function(){return Zi}}],{"avro.wrapperMessageType":"ARRAY_WRAPPER","avro.translatedFieldCount":1}])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.items=[],void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.items.push(Zi.internalBinaryRead(e,e.uint32(),n))
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){for(var r=0;r<e.items.length;r++)Zi.internalBinaryWrite(e.items[r],t.tag(1,Wr.LengthDelimited).fork(),n).join()
var i=n.writeUnknownFields
return!1!==i&&(1==i?Gr.onWrite:i)(this.typeName,e,t),t}}]),e}(),Fa=new Ua,Ha=function(){function e(){return S(this,e),p(this,e,["proto.com.linkedin.events.GenericImpressionEvent.TrackingScopeWrapper",[{no:1,name:"entries",kind:"message",repeat:2,T:function(){return Xi},options:{"si.compliance":{passthroughAnnotation:"PassthroughAnnotation_INHERITED"}}}]])}return y(e,Wi),O(e,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype)
return t.entries=[],void 0!==e&&Pi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos<a;){var o=T(e.tag(),2),s=o[0],c=o[1]
if(1===s)i.entries.push(Xi.internalBinaryRead(e,e.uint32(),n))
else{var u=n.readUnknownField
if("throw"===u)throw new globalThis.Error("Unknown field ".concat(s," (wire type ").concat(c,") for ").concat(this.typeName))
var l=e.skip(c)
!1!==u&&(!0===u?Gr.onRead:u)(this.typeName,i,s,c,l)}}return i}},{key:"internalBinaryWrite",value:function(e,t,n){for(var r=0;r<e.entries.length;r++)Xi.internalBinaryWrite(e.entries[r],t.tag(1,Wr.LengthDelimited).fork(),n).join()
var i=n.writeUnknownFields
return!1!==i&&(1==i?Gr.onWrite:i)(this.typeName,e,t),t}}]),e}(),Va=new Ha,Ka=function(){function e(){S(this,e),D(this,"GrpcRestRetryIDB","grpcRestBeacons"),D(this,"beaconFunc",void 0)}return O(e,[{key:"getOrCreateBeaconFunc",value:function(){return this.beaconFunc||(this.beaconFunc=this.createGrpcRestBeacon()),this.beaconFunc}},{key:"getDefaultInMemoryConfig",value:function(){return{attemptLimit:4,statusCodes:[502,504]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[401,403,404,405,406,407,408,409,413,429,431,500,501,502,503,504,505,506,507,508,509,510,511],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createGrpcRestBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig()
return yt({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return Ln(e)}},disablePersistenceRetry:!1,persistenceRetry:{idbName:this.GrpcRestRetryIDB,attemptLimit:t.attemptLimit,statusCodes:t.statusCodes,maxNumber:t.maxNumber,batchEvictionNumber:t.batchEvictionNumber,throttleWait:t.throttleWait,useIdle:!0,onBeforeRetry:this.transformRetryPayload},parseResponseForRetry:this.parseGrpcResponseForRetry.bind(this)}).beacon}},{key:"transformRetryPayload",value:function(e,t){try{var n=JSON.parse(e)
return n.requests&&Array.isArray(n.requests)&&n.requests.forEach((function(e){e.retryAttempt=t})),JSON.stringify(n)}catch(n){var r=n instanceof Error?n.message:String(n)
return pn("[RetryBeaconManager] transformRetryPayload - JSON parse failed",new Error("Failed to parse retry payload. Error: ".concat(r,". AttemptCount: ").concat(t,". PayloadSize: ").concat(e.length," bytes."))),e}}},{key:"extractTestIdFromProtobuf",value:function(e,t){var n=D(D({},mr.GenericActionEvent,Oa),mr.GenericImpressionEvent,Ba)
try{var r
return(null===(r=n[t].fromBinary(e).header)||void 0===r?void 0:r.testId)||null}catch(e){var i=e instanceof Error?e.message:String(e)
return"protobuf_error: ".concat(i)}}},{key:"extractTestIdFromJson",value:function(e){try{var t,n=(new TextDecoder).decode(e),r=JSON.parse(n)
return(null==r||null===(t=r.header)||void 0===t?void 0:t.testId)||null}catch(e){var i=e instanceof Error?e.message:String(e)
return"json_error: ".concat(i)}}},{key:"extractTestIdFromRequest",value:function(e){var t
if(null==e||null===(t=e.payload)||void 0===t||!t.payload||"string"!=typeof e.payload.payload)return null
var n=Nn(e.payload.payload),r=e.payload.name
return!0===e.payload.isPegasusEncoded?this.extractTestIdFromJson(n):this.extractTestIdFromProtobuf(n,r)}},{key:"extractTestIdFromPayload",value:function(e){try{var t=JSON.parse(e)
if(!t.requests||!Array.isArray(t.requests))return"no requests found in payload"
var n,r=[],i=k(t.requests)
try{for(i.s();!(n=i.n()).done;){var a=n.value,o=this.extractTestIdFromRequest(a)
o&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r.length>0?r.join(", "):"unknown (no testIds extracted)"}catch(e){var s=e instanceof Error?e.message:String(e)
return"unknown (payload parse error: ".concat(s,")")}}},{key:"parseGrpcResponseForRetry",value:function(e,t,n,r){try{var i=JSON.parse(e)
if(!i||!i.responses||0===i.responses.length)return null
var a=i.responses.reduce((function(e,t){return"ResponseStatus_RETRYABLE_FAILURE"===t.responseStatus&&e.add(String(t.id)),e}),new Set)
return 0===a.size?null:this.filterPayloadByIds(t,a)}catch(i){var o=i instanceof Error?i.message:String(i)
return pn("[RetryBeaconManager] parseGrpcResponseForRetry - Parse failed",new Error("Failed to parse gRPC response. Error: ".concat(o,". StatusCode: ").concat(r,". ResponseSize: ").concat(e.length," bytes. PayloadSize: ").concat(t.length," bytes\n        TestIds: ").concat(this.extractTestIdFromPayload(t))),n),null}}},{key:"filterPayloadByIds",value:function(e,t){try{var n=JSON.parse(e)
if(!n.requests||!Array.isArray(n.requests))return pn('[RetryBeaconManager] Payload missing "requests" array',JSON.stringify(n)),null
var r=n.requests.filter((function(e){return e.id&&t.has(String(e.id))}))
return 0===r.length?null:JSON.stringify(_(_({},n),{},{requests:r}))}catch(e){return pn("[RetryBeaconManager] Error filtering payload by IDs",e),null}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
D(Ka,"instance",null)
var Ga=function(){function e(){S(this,e),D(this,"clientContext",void 0),D(this,"enumConverter",void 0),this.enumConverter=new Lr}return O(e,[{key:"getOrCreateClientContext",value:function(e,t){return this.clientContext||(this.clientContext=this.createClientContext(e,t)),this.clientContext}},{key:"getEventHeaderContext",value:function(e){var t,n=e.clientApplicationInstance,r=e.applicationViewerUrn,i=e.server,a=e.service,o=e.version,s=e.appName
try{if(n){var c=Array.isArray(n.trackingId)&&16===n.trackingId.length?Wt(n.trackingId):n.trackingId
t={applicationUrn:null==n?void 0:n.applicationUrn,version:null==n?void 0:n.version,trackingId:{fixedValue:c}}}return{server:i,serviceName:a,publicAppVersion:o,clientApplicationInstance:t,applicationViewerUrn:r,appName:s}}catch(t){pn("[GRPC] getEventHeaderContext version ".concat(null==e?void 0:e.version,", appName ").concat(null==e?void 0:e.appName," and clientApplicationInstance.trackingId for ").concat(null==n?void 0:n.trackingId," "),t)}}},{key:"getUserRequestHeaderContext",value:function(e){var t,n,r=e.theme,i=e.interfaceLocale,a=e.isBrowserPersistentRetryEnabled,o=e.isFlushOnCloseBrowserTabEnabled,s=e.path,c=e.clientDeviceType,u=e.timeZoneOffsetMinutes
try{r&&(t=this.enumConverter.convert(r,"Theme","theme")),c&&(n=this.enumConverter.convert(c,"ClientDeviceType","clientDeviceType"))}catch(e){pn('[ClientContextFactory] Failed to convert enum values - theme: "'.concat(r,'", clientDeviceType: "').concat(c,'"'),e),t=void 0,n=void 0}return{theme:t,interfaceLocale:i,isBrowserPersistentRetryEnabled:a,isFlushOnCloseBrowserTabEnabled:o,path:s,clientDeviceType:n,timeZoneOffsetMinutes:u}}},{key:"createClientContext",value:function(e,t){return{eventHeaderContext:this.getEventHeaderContext(e),userRequestHeaderContext:this.getUserRequestHeaderContext(t)}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
D(Ga,"instance",void 0)
var Wa=function(){function e(t){S(this,e),D(this,"endpoint",void 0),D(this,"flushTimerId",void 0),D(this,"queue",[]),D(this,"flushPromise",Promise.resolve()),D(this,"clientContext",void 0),D(this,"requestId",1),D(this,"beaconFunc",void 0),D(this,"protoModelCache",{}),D(this,"flushDebounceDelayMs",void 0),this.endpoint=(null==t?void 0:t.endpoint)||"https://www.linkedin.com/rest/trackingApiService/track",this.beaconFunc=Ka.getInstance().getOrCreateBeaconFunc(),this.flushDebounceDelayMs=null==t?void 0:t.flushDebounceTimer}var t,n,r
return O(e,[{key:"getProtoTSModel",value:function(e){if(void 0!==this.protoModelCache[e])return this.protoModelCache[e]
var t=null
switch(e){case"GenericImpressionEvent":t=Ba
break
case"GenericActionEvent":t=Oa}return t?(this.protoModelCache[e]=t,t):(this.protoModelCache[e]=null,null)}},{key:"removeClientContextDuplicateFields",value:function(e){if(!e)return e
for(var t=0,n=Rr;t<n.length;t++){var r=n[t]
this.deleteFieldByPath(e,r)}return e}},{key:"deleteFieldByPath",value:function(e,t){var n=t.split("."),r=n.pop()
if(r){var i,a=e,o=k(n)
try{for(o.s();!(i=o.n()).done;){var s=i.value
if(!a||"object"!==C(a)||!(s in a))return
a=a[s]}}catch(e){o.e(e)}finally{o.f()}a&&"object"===C(a)&&delete a[r]}}},{key:"convertJsonToProtoBytes",value:(r=x(P().mark((function e(t,n){var r,i,a,o
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this.getProtoTSModel(n)){e.next=4
break}return e.abrupt("return")
case 4:if(i=this.removeClientContextDuplicateFields(t),(a=new Vr(n).fromJson(i).sanitize().build()).errors.length>0&&pn("[GRPC] Sanitization errors for ".concat(n),a.errors.join("; ")),o=r.create(a.sanitizedData),"function"==typeof r.toBinary){e.next=10
break}throw new Error("Proto model ".concat(n," does not support binary encoding"))
case 10:return e.abrupt("return",r.toBinary(o))
case 13:e.prev=13,e.t0=e.catch(0),pn("[GRPC] Proto serialization failed for ".concat(n),e.t0 instanceof Error?e.t0.message:String(e.t0))
case 16:case"end":return e.stop()}}),e,this,[[0,13]])}))),function(e,t){return r.apply(this,arguments)})},{key:"convertJsonToBytes",value:function(e){var t=JSON.stringify(e)
return(new TextEncoder).encode(t)}},{key:"convertBytesToBase64",value:function(e,t){if(!e||0===e.length)return""
try{for(var n=1024,r=Math.ceil(e.length/n),i=new Array(r),a=0;a<e.length;a+=n){for(var o=Math.min(a+n,e.length)-a,s=new Array(o),c=0;c<o;c++)s[c]=String.fromCharCode(e[a+c])
i[a/n]=s.join("")}return btoa(i.join(""))}catch(n){var u=n instanceof Error?n.message:String(n),l=t?"Context: ".concat(t):"Context: Unknown"
throw pn("[GrpcRestRequestManager] convertBytesToBase64 failed",new Error("Failed to convert bytes to base64. Error: ".concat(u,". ").concat(l,". BytesLength: ").concat((null==e?void 0:e.length)||0,"."))),n}}},{key:"packageClientBreadcrumbs",value:function(e){if(0!==e.length){var t,n=[],r=k(e)
try{for(r.s();!(t=r.n()).done;){var i=t.value,a=this.convertJsonToBytes(i),o=i.clientBreadcrumbType||"UnknownBreadcrumb",s=this.convertBytesToBase64(a,"Breadcrumb:".concat(o))
n.push({name:i.clientBreadcrumbType,payload:s,isPegasusEncoded:!0})}}catch(e){r.e(e)}finally{r.f()}return n}}},{key:"packageEventBody",value:(n=x(P().mark((function e(t){var n,r,i,a,o,s,c,u,l,d,f,h,p,v,g,m,y,E,T=arguments
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=T.length>1&&void 0!==T[1]&&T[1],e.prev=1,r=t.eventBody,i=t.eventInfo,a=t.clientBreadcrumbs,o=void 0===a?[]:a,this.clientContext||(s=Object.assign({},{appName:i.appId},r.header),c=Object.assign({},r.requestHeader),this.clientContext=Ga.getInstance().getOrCreateClientContext(s,c)),!((u=i.eventName)in mr)){e.next=11
break}return e.next=8,this.convertJsonToProtoBytes(r,u)
case 8:e.t0=e.sent,e.next=12
break
case 11:e.t0=this.convertJsonToBytes(r)
case 12:if(l=e.t0){e.next=15
break}return e.abrupt("return")
case 15:return d=this.convertBytesToBase64(l,"Event:".concat(u)),f={name:u,payload:d,isPegasusEncoded:!(u in mr)},h=this.packageClientBreadcrumbs(o),p={id:this.requestId++,payload:f,clientBreadCrumbs:h||[],isShadowEvent:n},e.abrupt("return",p)
case 22:e.prev=22,e.t1=e.catch(1),m=e.t1 instanceof Error?e.t1.message:String(e.t1),y=(null==t||null===(v=t.eventInfo)||void 0===v?void 0:v.eventName)||"unknown",E=(null==t||null===(g=t.clientBreadcrumbs)||void 0===g?void 0:g.length)||0,pn("[GRPC] packageEventBody failed for ".concat(y),new Error("Failed to package event. Event: ".concat(y,". Error: ").concat(m,". BreadcrumbCount: ").concat(E)))
case 28:case"end":return e.stop()}}),e,this,[[1,22]])}))),function(e){return n.apply(this,arguments)})},{key:"packageRequest",value:(t=x(P().mark((function e(t){var n,r,i=arguments
return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],e.next=3,this.packageEventBody(t,n)
case 3:if((r=e.sent)&&In(r)){e.next=6
break}return e.abrupt("return")
case 6:this.queue.push(r),this.attemptToFlush()
case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"buildRequestPayload",value:function(e){var t={clientContext:this.clientContext,requests:e}
return JSON.stringify(t)}},{key:"attemptToFlush",value:function(){var e=this
if(this.queue.length>=20)this.flushEvents()
else{this.flushTimerId&&clearTimeout(this.flushTimerId)
var t=this.flushDebounceDelayMs||3
this.flushTimerId=setTimeout((function(){return e.flushEvents()}),t)}}},{key:"getRequestHeaders",value:function(){return{"content-type":"application/json",Accept:"application/json"}}},{key:"flushEvents",value:function(){var e=this
this.flushTimerId&&(clearTimeout(this.flushTimerId),this.flushTimerId=void 0),this.flushPromise=this.flushPromise.then(x(P().mark((function t(){var n,r,i,a,o,s,c
return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.queue.length){t.next=2
break}return t.abrupt("return")
case 2:n=w(e.queue),e.queue=[]
try{r=e.buildRequestPayload(n),i=e.getRequestHeaders(),fn()?He(e.endpoint,r,{headers:i}):Fe()&&e.beaconFunc(e.endpoint,r,i)}catch(e){s=e instanceof Error?e.message:String(e),c={message:s,queueSize:n.length,payloadSize:(null===(a=r)||void 0===a?void 0:a.length)||0,errorType:(null==e||null===(o=e.constructor)||void 0===o?void 0:o.name)||"Unknown"},pn("[GRPC] flushEvents failed",new Error("Failed to flush events. Error: ".concat(s,". QueueSize: ").concat(c.queueSize," events. PayloadSize: ").concat(c.payloadSize," bytes. ErrorType: ").concat(c.errorType)))}case 5:case"end":return t.stop()}}),t)}))))}},{key:"forceFlush",value:function(){this.flushTimerId&&(clearTimeout(this.flushTimerId),this.flushTimerId=void 0),this.flushEvents()}}]),e}(),ja=function(){function e(t,n){S(this,e),D(this,"requestManager",void 0),D(this,"transporterKey",void 0),this.transporterKey=t,this.requestManager=new Wa(n)}return O(e,[{key:"onEventReceived",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
this.executeWithTryCatch((function(){var r
null===(r=t.requestManager)||void 0===r||r.packageRequest(e,n)}))}},{key:"forceFlush",value:function(){var e
null===(e=this.requestManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.requestManager=void 0,e.transporterMap.delete(this.transporterKey)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){pn("[GRPC-CWT] Rest transporter [".concat(this.transporterKey,"] failed"),JSON.stringify(e))}}}],[{key:"getInstance",value:function(t,n){var r=this.transporterMap.get(t)
return r||(r=new e(t,n),this.transporterMap.set(t,r),r)}}]),e}()
D(ja,"transporterMap",new Map)
var qa=function(){function e(){S(this,e)}return O(e,null,[{key:"createConfig",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null!==(e=n.timeoutSeconds)&&void 0!==e?e:3
return{endpoint:n.endpoint||this.createEndpoint(n.environment),batchSize:null!==(t=n.batchSize)&&void 0!==t?t:20,flushDebounceTimer:1e3*r}}},{key:"createEndpoint",value:function(e){return"".concat("development"===e?Ct:At).concat("rest/trackingApiService/track")}}]),e}(),za=function(){function e(){S(this,e),D(this,"decoder",void 0),D(this,"isConfigured",!1),D(this,"transporters",new Map),this.decoder=new yr}return O(e,[{key:"configure",value:function(e,t){try{this.decoder.configure(e),this.isConfigured=!0
var n=this.decoder.getHighPriorityTimeout(),r=this.decoder.getNormalPriorityTimeout()
if(this.clearTransporters(),n){var i=qa.createConfig({timeoutSeconds:n,environment:t.environment,batchSize:1})
this.initializeTransporter(Ot,i)}if(r){var a=qa.createConfig({timeoutSeconds:r,environment:t.environment,batchSize:20})
this.initializeTransporter(Dt,a)}}catch(e){console.warn("Failed to configure event routing:",e),this.isConfigured=!1}}},{key:"clearTransporters",value:function(){this.transporters.forEach((function(e){e.forceFlush(),e.onDestroy()})),this.transporters.clear()}},{key:"initializeTransporter",value:function(e,t){var n=ja.getInstance(e,t)
this.transporters.set(e,n)}},{key:"routeEvent",value:function(e){var t=this.getRoutingDecision(e)
t.shouldSendToTrackingApi&&this.performRouting(e,t)}},{key:"getRoutingDecision",value:function(e){var t,n=zn(null==e||null===(t=e.eventInfo)||void 0===t?void 0:t.eventName)
if(!n)return pn("[EventRoutingService] Invalid or missing event name","EventInfo: ".concat(JSON.stringify(null==e?void 0:e.eventInfo))),{shouldSendToTrackingApi:!1,eventName:"",lixMode:vr.Control,isDualModeEvent:!1}
var r=this.extractBreadcrumbNames(e)||[],i=this.getLixMode(n,r)
return i===vr.Control?{shouldSendToTrackingApi:!1,eventName:n,lixMode:i,isDualModeEvent:!1}:{shouldSendToTrackingApi:!0,eventName:n,lixMode:i,isDualModeEvent:i===vr.Dual}}},{key:"performRouting",value:function(e,t){var n=this.getTransporterForEvent(t.eventName)
n?n.onEventReceived(e,t.isDualModeEvent):pn("[EventRoutingService] No transporter available for event","Event: ".concat(t.eventName))}},{key:"getTransporterForEvent",value:function(e){return this.isConfigured?this.decoder.isHighPriorityEvent(e)&&this.transporters.has(Ot)?this.transporters.get(Ot):this.transporters.get(Dt)||null:null}},{key:"extractBreadcrumbNames",value:function(e){var t,n=[],r=null==e||null===(t=e.eventBody)||void 0===t?void 0:t.clientBreadcrumbPointers
if(Array.isArray(r)){var i,a=k(r)
try{for(a.s();!(i=a.n()).done;){var o=i.value
if(o&&void 0!==o.type&&null!==o.type){var s=this.convertToBreadcrumbName(o.type)
s&&n.push(s)}}}catch(e){a.e(e)}finally{a.f()}}return n}},{key:"convertToBreadcrumbName",value:function(e){if(!e)return pn("[EventRoutingService] Invalid breadcrumb type value","Received null/undefined typeValue in convertToBreadcrumbName"),null
var t=String(e),n=this.convertToPascal(t)
return"".concat(n,"Breadcrumb")}},{key:"convertToPascal",value:function(e){return e.toLowerCase().split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},{key:"getLixMode",value:function(e,t){return this.isConfigured?this.decoder.getEventLixMode(e,t):vr.Control}},{key:"forceFlush",value:function(){this.transporters.forEach((function(e){e.forceFlush()}))}},{key:"destroy",value:function(){this.clearTransporters(),this.isConfigured=!1}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
D(za,"instance",void 0)
var Xa=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Ja="PageViewEvent",Ya=function(){function e(t){var n,r,i,a,o=this
S(this,e),D(this,"host",void 0),D(this,"queue",void 0),D(this,"preContextQueue",void 0),D(this,"debounceTimer",void 0),D(this,"unloadHandlers",void 0),D(this,"maxQueueSize",void 0),D(this,"flushDebounceTime",void 0),D(this,"trackingEventListeners",[]),D(this,"onHideHandler",(function(){o.forceFlush()})),D(this,"networkTransporter",void 0),D(this,"clientMonitoringConn",void 0),D(this,"clientGlobalSequenceNumberCounter",void 0),D(this,"clientTopicLocalSequenceNumberCountersMap",{}),D(this,"isTimerRunning",void 0),D(this,"trackingEndpoint",void 0),D(this,"isEvenBatchEnabled",void 0),D(this,"transportKey",void 0),D(this,"telemetry",void 0),D(this,"_eventRoutingService",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var s=t.batching,c=null!==(n=null==s?void 0:s.evenBatchEnabled)&&void 0!==n&&n,u="development"===t.environment||(null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r||null===(r=r.host)||void 0===r?void 0:r.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track"
this.trackingEndpoint=yn(u,null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i?void 0:i.host),this.maxQueueSize=s&&s.maxSize||1,this.flushDebounceTime=s&&s.debounceTime||0,wt.on(Et,this.onHideHandler),this.networkTransporter=new Bn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Qn(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||c,(t.observabilityEnabled||(null===(a=t.__getLixTreatment)||void 0===a?void 0:a.call(t,St))===Rt)&&(this.telemetry=gr.getInstance(t))}return O(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n,r=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r
if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return
e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,a=n.eventInfo.topicName||i,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ")
t.logFailedEvent(Jn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:a},s,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-1)}))}catch(e){}},onBeforeRetry:function(e){var n
if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return
var r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length
t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r
if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return
var i=r[0].eventBody.header.clientMonitoringInstanceId
e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,a=n.eventInfo.topicName||r,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ")
t.logPersistedFailedEvent(i,Jn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:a},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.telemetry&&(r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return{onIntermediateResult:function(e,n){for(var r=0,i=t;r<i.length;r++){var a=i[r]
try{var o
null==a||null===(o=a.onIntermediateResult)||void 0===o||o.call(a,e,n)}catch(e){er("onIntermediateResult")}}},onBeforeRetry:function(e,n){for(var r,i=0,a=t;i<a.length;i++){var o=a[i]
try{var s,c=null==o||null===(s=o.onBeforeRetry)||void 0===s?void 0:s.call(o,e,n)
void 0!==c&&(r=c,e=c)}catch(e){er("onBeforeRetry")}}return r},onResult:function(e,n){for(var r=0,i=t;r<i.length;r++){var a=i[r]
try{var o
null==a||null===(o=a.onResult)||void 0===o||o.call(a,e,n)}catch(e){er("onResult")}}}}}(r,null===(n=this.telemetry)||void 0===n?void 0:n.onResultCallbackHook(this.transportKey))),this.networkTransporter.checkAndEnablePersistentRetry(e,r)}},{key:"setTransportKey",value:function(e){this.transportKey=e}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e)
this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(qn(e.id)))
var n=this.host,r=n.api.Promise,i=n.batching
if(function(e){return!!e.meta.context}(t)){var a,o,s=this.prepareCompleteEnvelopeQueue(t)
return null===(a=this.clientMonitoringConn)||void 0===a||a.logEventReadyToSend(1),null===(o=this.telemetry)||void 0===o||o.onEventReceived(s),this.queue.push(s),i?(this.batchFire(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))}return this.preContextQueue.push(t),r.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n
this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,wt.off(Et,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location),this._eventRoutingService=void 0}},{key:"forceFlush",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
this.populatePreContextQueue({pageInstance:Yt(U),pageKey:U}).forEach((function(e){var n
t.queue.push(e),null===(n=t.telemetry)||void 0===n||n.onEventReceived(e)})),this.isEvenBatchEnabled?1===n?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0),1===n&&(null===(e=this.telemetry)||void 0===e||e.forceFlush(),this.eventRoutingService.forceFlush())}},{key:"isLixEnabled",value:function(e){var t,n
return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this
dn("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Xa.forEach((function(n){var r
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){pn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){dn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){pn("sequence-number:idb-update",e)}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this
"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=en(e.meta.context,this.host.api)
return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){var n
t.queue.push(e),null===(n=t.telemetry)||void 0===n||n.onEventReceived(e)})),e}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,a=r.api,o={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:a.assign({appId:i},e)}
return n.length>0&&this.host.api.assign(o,{clientBreadcrumbs:n}),o}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,a=n.api,o=a.location,s=a.document,c=a.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,f=function(e){return"string"==typeof e?e===Ja:e.eventName===Ja}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,h=e.meta.requestHeader||{referer:s.referrer,path:"".concat(o.pathname).concat(o.search)},p=h.referer,v=h.path,g=null
"string"!=typeof i&&null!==this.host.locale||(g=i)
var m={interfaceLocale:g,pageKey:f,referer:p,path:v,isFlushOnCloseBrowserTabEnabled:hn(),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()},y={pageInstance:d,time:e.meta.time,version:r,server:"",service:"",guid:jt(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var E=qn(e.id)
if(Xa.includes(E)){var T=this.clientTopicLocalSequenceNumberCountersMap[E]
"number"==typeof T&&c(y,{clientTopicLocalSequenceNumber:T})}var b={header:c(y,e.meta.header||{}),requestHeader:c(m,e.meta.requestHeader||{})},_=e.meta.clientMonitoringInstanceId,I=e.meta.clientMonitoringInstanceEventNumber
return _&&c(b.header,{clientMonitoringInstanceId:_,clientMonitoringInstanceEventNumber:I}),c(e.body,b)}},{key:"addTestIdInHeader",value:function(e){var t
null!==(t=e.eventBody)&&void 0!==t&&t.header&&kn(e.eventBody.header.testId)&&(e.eventBody.header.testId=jt())}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue
return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this
e((function(){t.forceFlush(0)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback
e||!t?this.sendPayload(void 0,!0):this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this
this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e
else{var i=this.maxQueueSize+1
this.queue.length>0&&(this.queue.length<=i||r)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,i)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[])
if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3))
var a,o,s,c=[],u=[]
t.forEach((function(e){var t=n.getGenericEventBody(e),r=n.getBreadcrumbs(e),i=n.envelop(e.id,t,r)
n.trigger(i,e.meta)
var a=n.getEventRoutingDecision(i)
if(a&&a.shouldSendToTrackingApi)if(a.lixMode===vr.Dual){n.addTestIdInHeader(i)
var o=gn(i)
n.eventRoutingService.routeEvent(o)}else n.eventRoutingService.routeEvent(i)
var s=i.eventInfo.eventName
a&&a.lixMode===vr.Enabled||("LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?c.push(i):u.push(i)),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var l=qn(e.id)
Xa.includes(l)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[l]&&n.clientTopicLocalSequenceNumberCountersMap[l]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(c.length+u.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,i="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(i)].join(", ")
null==a||a.logFailedEvent(Jn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.telemetry&&(o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return{onResult:function(e,n){t.forEach((function(t){try{null==t||t.onResult(e,n)}catch(e){er("onResult")}}))}}}(o,null===(s=this.telemetry)||void 0===s?void 0:s.clientMonitoringCallbackHook(this.transportKey))),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,c,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,u,void 0,o))}}},{key:"eventRoutingService",get:function(){return this._eventRoutingService||(this._eventRoutingService=this.host.eventRoutingService||za.getInstance()),this._eventRoutingService}},{key:"getEventRoutingDecision",value:function(e){return this.eventRoutingService.getRoutingDecision(e)}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}()
function Qa(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.toString()]=n,t}}})
return t}var Za,$a=function(){function e(t,n){S(this,e),this.clientBreadcrumbType=t,this.id=n}return O(e,[{key:"builder",get:function(){return Qa().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
!function(e){e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.GUIDE_ENTRYPOINT="GUIDE_ENTRYPOINT",e.GUIDE_FEEDBACK="GUIDE_FEEDBACK",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.SPONSORED_DOCUMENT_PAGE_SERVED="SPONSORED_DOCUMENT_PAGE_SERVED",e.SPONSORED_UPDATE_SERVED="SPONSORED_UPDATE_SERVED",e.SPONSORED_VIDEO_VIEW="SPONSORED_VIDEO_VIEW",e.UNKNOWN="UNKNOWN"}(Za||(Za={}))
var eo=function(){function e(){return S(this,e),p(this,e,[Za.FEED_UPDATE_SERVED,Ht()])}return y(e,$a),O(e)}(),to=function(){function e(){var t
return S(this,e),D(v(t=p(this,e,[Za.UNKNOWN,Ht()])),"content",void 0),D(v(t),"featureBreadcrumbType",void 0),t}return y(e,$a),O(e)}(),no=function(){function e(){return S(this,e),p(this,e,[Za.SPONSORED_UPDATE_SERVED,Ht()])}return y(e,$a),O(e)}()
function ro(e,t){var n
switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new eo).builder
break
case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new no).builder
break
case"proto.sdui.tracking.TrackingBreadcrumb":n=(new to).builder
try{var r,i=e
if(i.content instanceof Uint8Array)r=(new TextDecoder).decode(i.content)
else if(Array.isArray(i.content))r=(new TextDecoder).decode(new Uint8Array(i.content))
else{if(void 0===i.content.type)throw new Error("Invalid breadcrumb content type")
var a=i.content.data
if(a instanceof Uint8Array)r=(new TextDecoder).decode(a)
else{if(!Array.isArray(a))throw new Error("Invalid breadcrumb content data type")
r=(new TextDecoder).decode(new Uint8Array(a))}}for(var o={content:JSON.parse(r),breadcrumbType:i.breadcrumbType},s=0,c=Object.entries(o);s<c.length;s++){var u=T(c[s],2),l=u[0],d=u[1]
In(d)&&n[l](d)}return n.build()}catch(e){var f=e instanceof Error?e.message:String(e)
throw new Error("Error parsing breadcrumb content: ".concat(f))}default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!n)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))
for(var h in e){var p=e[h]
null!=p&&n[h](p)}return n.build()}function io(e){var t,n=[],r=[],i=k(e)
try{for(i.s();!(t=i.n()).done;){var a=t.value,c=a.breadcrumb,u=I(a,o)
if(r.push(u),c){var l=void 0
if(c&&"$type"in c){var d=c.$type
l=ro(I(c,s),d)}else{if(!c.id)throw new Error("Missing breadcrumb id")
if(!c.clientBreadcrumbType)throw new Error("clientBreadcrumbType is a mandatory field in ClientBreadcrumbObject")
if(!Object.values(Za).includes(c.clientBreadcrumbType))throw new Error("Invalid breadcrumb type: ".concat(c.clientBreadcrumbType))
if(!c.data||!In(c.data))throw new Error("Missing breadcrumb data")
l=_({id:c.id,clientBreadcrumbType:c.clientBreadcrumbType},c.data)}n.push(l)}}}catch(e){i.e(e)}finally{i.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:r}}function ao(e){var t,n=new Set,r=[],i=k(e)
try{for(i.s();!(t=i.n()).done;){var a,o,s=t.value,c="".concat(null!==(a=s.contentTrackingId)&&void 0!==a?a:"","-").concat(null!==(o=s.topicName)&&void 0!==o?o:"")
n.has(c)||(n.add(c),r.push(s))}}catch(e){i.e(e)}finally{i.f()}var u=io(r)
return{breadcrumbs:u.extractedBreadcrumbs,trackingScopes:u.trackingScopesWithoutBreadcrumbs}}function oo(e){if(!e)return{}
var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu)
e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0)
var i,a=e.lipi&&$t(e.lipi)
if(a?i={pageInstance:a,pageKey:t}:t&&(i={pageKey:t}),e.external_page&&e.external_page_instance){var o=decodeURIComponent(e.external_page)
i={pageInstance:{pageUrn:"urn:li:externalPage:".concat(o),trackingId:e.external_page_instance},pageKey:o},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0
return s&&((i=i||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:i,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}var so=Object.freeze({__proto__:null,voyagerTransporterConfig:{default:{endpoint:"li/track",batching:{evenBatchEnabled:!0,maxSize:29},disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}},sponsored:{endpoint:"li/tscp/sct",batching:!1,disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}}}})
function co(e){return"retryConfig"in e.host}function uo(e){return"location"in e.api}var lo,fo=function(){function e(t,n,r,i,a,o,s,c){var u,l,d,f,h,p,v=arguments.length>8&&void 0!==arguments[8]&&arguments[8],g=arguments.length>9?arguments[9]:void 0
if(S(this,e),D(this,"transporter",void 0),D(this,"delegate",void 0),D(this,"viewSpecs",void 0),D(this,"transportConfig",void 0),D(this,"dynamicTransporterSupportLixKey",void 0),D(this,"domain",void 0),D(this,"trackingAppName",void 0),D(this,"dynamicTransporterSupportLixValue",void 0),D(this,"observabilityEnabled",void 0),D(this,"grpcRestSupportLixVariant",void 0),D(this,"currentContext",void 0),D(this,"appState",void 0),D(this,"referrer",void 0),D(this,"previousAppContext",void 0),D(this,"customTransporters",void 0),D(this,"clientMonitoringConn",void 0),D(this,"dynamicTransporterSupportEnabled",void 0),D(this,"telemetry",void 0),D(this,"eventRoutingService",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=r,this.transportConfig=i,this.dynamicTransporterSupportLixKey=a,this.domain=o,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.observabilityEnabled=v,this.grpcRestSupportLixVariant=g,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,a?this.dynamicTransporterSupportEnabled=_n(null===(h=(p=t.host).__getLixTreatment)||void 0===h?void 0:h.call(p,a)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var m=null==so?void 0:so["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")]
In(m)?this.transportConfig=m:this.transportConfig=i}(v||(null===(u=(l=t.host).__getLixTreatment)||void 0===u?void 0:u.call(l,St))===Rt)&&(this.telemetry=gr.getInstance(t.host)),Dn(g)&&(Mn(g)||(this.eventRoutingService=za.getInstance(),this.eventRoutingService.configure(g,t.host)))
var y={observabilityEnabled:!!this.telemetry},E={eventRoutingService:this.eventRoutingService}
if(n&&n.customTransporterHosts)for(var b in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,b)){var I=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[b]=new Ya(this.transporter.host.api.assign(I,n.customTransporterHosts[b],y,E))}if(this.dynamicTransporterSupportEnabled&&In(this.transportConfig))for(var k=0,w=Object.entries(this.transportConfig);k<w.length;k++){var N,A,C=T(w[k],2),R=C[0],O=C[1]
O=_(_({},O),{},{endpoint:o&&null!==(N=O)&&void 0!==N&&N.endpoint?"".concat(wn(o,null===(A=O)||void 0===A?void 0:A.endpoint)):"https://linkedin.com/li/track"})
var M=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[R]=new Ya(this.transporter.host.api.assign(M,O,y,E)),this.telemetry&&this.customTransporters[R].setTransportKey(R)}"enabled"===(null===(d=(f=t.host).__getLixTreatment)||void 0===d?void 0:d.call(f,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&uo(t.host)&&(this.clientMonitoringConn=Qn(t.host)),In(r)&&(this.viewSpecs=r)}return O(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){wt.before(Et,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){wt.offBefore(Et,e)}},{key:"checkAndEnablePersistentRetry",value:function(){co(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=co(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return en(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.navMetaFromSeed(e,oo(t),null==n?void 0:n.pageInstanceTrackingId)
if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t
this.currentContext=en(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(en(e,this.host.api))}},{key:"updateAppState",value:function(e){var t
this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var a=Qt(n.pageKey,e),o={controlTrackingId:r,controlUrn:a,interactionType:t}
return i&&i(a),o}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-name]")
if(r){var i=r.getAttribute("data-view-name")
i&&t.push(i)}n=null==r?void 0:r.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-tracking-scope]")
if(r){var i=r.getAttribute("data-view-tracking-scope")
if(i)try{var a=JSON.parse(i)
a&&a.length&&t.push.apply(t,w(a))}catch(e){pn("getViewTrackingScope","Error parsing trackingScope ".concat(i))}}n=null==r?void 0:r.parentElement}return t}},{key:"fireInteraction",value:function(e,t){var n,r=e.manualFireReason,i=e.interactionType,a=e.targetView,o=e.viewHierarchy,s=void 0===o?[]:o,c=e.viewTrackingScope,u=void 0===c?[]:c,l=e.verticalPosition,d=e.horizontalPosition,f=e.controlUrn,h=void 0===f?"":f,p=e.actionType,v=e.contentTrackingId,g=void 0===v?void 0:v,m=e.clientBreadcrumbs,y=void 0===m?[]:m,E=e.isShadowEvent,b=e.cooloffToken,I=e.testId,k=e.mediaStateInfo,N=e.entityUrn,A=e.actorType,C=void 0===A?"USER":A,S=a?this.getViewHierarchy(a):[],R=S.length>0?S:s
0!==R.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==R[0]})))||console.warn("No viewHierarchy provided or found from element.")
var O=u.length>0?u:this.getViewTrackingScope(a),D={header:{viewHierarchy:R,testId:I},context:null==t?void 0:t.context,requestHeader:null==t?void 0:t.requestHeader}
if(this.dynamicTransporterSupportEnabled){var M=Tn(this.transportConfig),P=T(bn(O,M),2),L=P[0],x=P[1],B="GenericActionEvent",U={verticalPosition:l,horizontalPosition:d,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:r,cooloffToken:b,mediaStateInfo:k,actorType:C,entityUrn:N}
if(In(L)){for(var F=0,H=Object.entries(L);F<H.length;F++){var V=T(H[F],2),K=V[0],G=ao(V[1]),W=G.breadcrumbs,j=G.trackingScopes
this.fireEvent(B,_(_({},U),{},{trackingScopeHierarchy:{entries:j}}),_(_({},D),{},{transporterKey:K}),W,E)}if(0===x.length)return Promise.resolve(!0)}var q=ao(x),z=q.breadcrumbs,X=q.trackingScopes
return this.fireEvent(B,{verticalPosition:l,horizontalPosition:d,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:r,cooloffToken:b,trackingScopeHierarchy:{entries:X},mediaStateInfo:k,entityUrn:N},D,[].concat(w(y),w(z)),E)}var J=ao(O),Y=J.breadcrumbs,Q=J.trackingScopes
return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:d,controlUrn:h||"",interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:r,cooloffToken:b,trackingScopeHierarchy:{entries:Q},mediaStateInfo:k,entityUrn:N,actorType:C},D,[].concat(w(y),w(Y)),E)}},{key:"fireImpression",value:function(e,t){var n,r=e.manualFireReason,i=e.targetView,a=e.viewHierarchy,o=void 0===a?[]:a,s=e.viewTrackingScope,c=void 0===s?[]:s,u=e.viewDurationInMilliseconds,l=void 0===u?0:u,d=e.contentViewFraction,f=void 0===d?1:d,h=e.width,p=void 0===h?-1:h,v=e.height,g=void 0===v?-1:v,m=e.verticalPosition,y=e.horizontalPosition,E=e.impressionTime,b=e.contentTrackingId,I=e.clientBreadcrumbs,k=void 0===I?[]:I,N=e.isShadowEvent,A=e.cooloffToken,C=e.testId,S=e.mediaStateInfo,R=e.entityUrn,O=i?this.getViewHierarchy(i):[],D=O.length>0?O:o
0!==D.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==D[0]})))||console.warn("No viewHierarchy provided or found from element.")
var M=c.length>0?c:this.getViewTrackingScope(i)
if(this.dynamicTransporterSupportEnabled){var P=Tn(this.transportConfig),L=T(bn(M,P),2),x=L[0],B=L[1],U="GenericImpressionEvent",F={viewDurationInMilliseconds:l,contentViewFraction:f,width:p,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:A,mediaStateInfo:S,entityUrn:R},H={header:{viewHierarchy:D,testId:C},context:null==t?void 0:t.context,requestHeader:null==t?void 0:t.requestHeader}
if(In(x)){for(var V=0,K=Object.entries(x);V<K.length;V++){var G=T(K[V],2),W=G[0],j=ao(G[1]),q=j.breadcrumbs,z=j.trackingScopes
this.fireEvent(U,_(_({},F),{},{trackingScopeHierarchy:{entries:z}}),_(_({},H),{},{transporterKey:W}),q,N)}if(0===B.length)return Promise.resolve(!0)}var X=ao(B),J=X.breadcrumbs,Y=X.trackingScopes
return this.fireEvent(U,{viewDurationInMilliseconds:l,contentViewFraction:f,width:p,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:A,trackingScopeHierarchy:{entries:Y},mediaStateInfo:S,entityUrn:R},H,[].concat(w(k),w(J)),N)}var Q=ao(M),Z=Q.breadcrumbs,$=Q.trackingScopes,ee={header:{viewHierarchy:D,testId:C},context:null==t?void 0:t.context,requestHeader:null==t?void 0:t.requestHeader}
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:l,contentViewFraction:f,width:p,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:A,trackingScopeHierarchy:{entries:$},mediaStateInfo:S,entityUrn:R},ee,[].concat(w(k),w(Z)),N)}},{key:"fireMediaStateChangeEvent",value:function(e){var t=e.trackingScopeHierarchyData,n=void 0===t?[]:t,r=e.objectUrn,i=e.trackingId,a=e.playableMediaState,o=e.clientBreadcrumbs,s=void 0===o?[]:o
if(this.dynamicTransporterSupportEnabled){var c=Tn(this.transportConfig),u=T(bn(n,c),2),l=u[0],d=u[1],f="GenericMediaStateChangeEvent",h={trackingObject:{trackingId:i,objectUrn:r},playableMediaState:a}
if(In(l)){for(var p=0,v=Object.entries(l);p<v.length;p++){var g=T(v[p],2),m=g[0],y=ao(g[1]),E=y.breadcrumbs,b=y.trackingScopes
this.fireEvent(f,_(_({},h),{},{trackingScopeHierarchy:{entries:b}}),{transporterKey:m},E)}if(0===d.length)return Promise.resolve(!0)}var I=ao(d),k=I.breadcrumbs,N=I.trackingScopes
return this.fireEvent(f,{trackingObject:{trackingId:i,objectUrn:r},playableMediaState:a,trackingScopeHierarchy:{entries:N}},void 0,[].concat(w(s),w(k)))}var A=ao(n),C=A.breadcrumbs,S=A.trackingScopes
return this.fireEvent("GenericMediaStateChangeEvent",{trackingObject:{trackingId:i,objectUrn:r},playableMediaState:a,trackingScopeHierarchy:{entries:S}},void 0,[].concat(w(s),w(C)))}},{key:"fireMultipleImpression",value:function(e,t){var n,r=e.targetView,i=e.viewHierarchy,a=void 0===i?[]:i,o=e.viewTrackingScope,s=void 0===o?[]:o,c=e.width,u=void 0===c?-1:c,l=e.height,d=void 0===l?-1:l,f=e.verticalPosition,h=e.horizontalPosition,p=e.impressionThresholds,v=void 0===p?[]:p,g=e.hasAllImpressionThresholds,m=void 0===g||g,y=e.clientBreadcrumbs,E=void 0===y?[]:y,b=e.isShadowEvent,I=e.cooloffToken,k=r?this.getViewHierarchy(r):[],N=k.length>0?k:a
0!==N.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==N[0]})))||console.warn("No viewHierarchy provided or found from element.")
var A=s.length>0?s:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var C=Tn(this.transportConfig),S=T(bn(A,C),2),R=S[0],O=S[1],D="GenericMultipleImpressionEvent",M={width:u,height:d,verticalPosition:f,horizontalPosition:h,cooloffToken:I,hasAllImpressionThresholds:m,impressionThresholdsWrapper:{entries:v}},P={header:{viewHierarchy:N},context:null==t?void 0:t.context}
if(In(R)){for(var L=0,x=Object.entries(R);L<x.length;L++){var B=T(x[L],2),U=B[0],F=ao(B[1]),H=F.breadcrumbs,V=F.trackingScopes
this.fireEvent(D,_(_({},M),{},{trackingScopeHierarchy:{entries:V}}),_(_({},P),{},{transporterKey:U}),H,b)}if(0===O.length)return Promise.resolve(!0)}var K=ao(O),G=K.breadcrumbs,W=K.trackingScopes
return this.fireEvent(D,{width:u,height:d,verticalPosition:f,horizontalPosition:h,cooloffToken:I,hasAllImpressionThresholds:m,impressionThresholdsWrapper:{entries:v},trackingScopeHierarchy:{entries:W}},P,[].concat(w(E),w(G)),b)}var j=ao(A),q=j.breadcrumbs,z=j.trackingScopes,X={header:{viewHierarchy:N},context:null==t?void 0:t.context}
return this.fireEvent("GenericMultipleImpressionEvent",{width:u,height:d,verticalPosition:f,horizontalPosition:h,cooloffToken:I,hasAllImpressionThresholds:m,impressionThresholdsWrapper:{entries:v},trackingScopeHierarchy:{entries:z}},X,[].concat(w(E),w(q)),b)}},{key:"fireEvent",value:function(e,t,n,r,i){var a=this
if(!t){var o,s,c,u=qn(e),l=void 0===t?"undefined":null===t?"null":C(t),d='Firing tracking event "'.concat(u,'" with invalid body, you fired "').concat(l,'"')
if(this.clientMonitoringConn){var f=this.clientMonitoringConn.logEventGenerated(u)
this.clientMonitoringConn.logFailedEvent(Jn.MISSING_REQUIRED_PROPERTIES,e,d,f)}var h=(null==n||null===(o=n.header)||void 0===o||null===(o=o.viewHierarchy)||void 0===o?void 0:o.join("|"))||"-",p=ar
throw null===(s=this.telemetry)||void 0===s||s.onEventDropped(u,null==n?void 0:n.transporterKey,void 0,null==n||null===(c=n.requestHeader)||void 0===c?void 0:c.pageKey,h,p,!1,tr.MISSING_REQUIRED_PROPERTIES,!0),new Error(d)}var v=r||[]
if(v.length>0){var g=(v=v.map((function(e){return a.transformBreadcrumb(e)}))).map((function(e){return $a.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:g})}var m=v.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,v,i):this.generateEnvelope(e,t,n,i)
return this.fireEnvelope(m)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.generateEnvelope(e,t,n,i)
return r.length>0?this.addBreadcrumbsToEnvelope(a,r):a}},{key:"transformBreadcrumb",value:function(e){try{if(In(e.content))return _({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),e}},{key:"fireEnvelope",value:function(e){var t,n
if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(jn(e.id)){var r=e.id
e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0
var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e
if(i){var a=i.meta.transporterKey,o=a?this.customTransporters[a]:this.transporter
if(!o&&a){var s,c,u,l=qn(i.id),d="Could not find custom transporter: ".concat(a)
if(this.clientMonitoringConn){var f=this.clientMonitoringConn.logEventGenerated(l)
this.clientMonitoringConn.logFailedEvent(Jn.UNKNOWN_EXECUTION_ERROR,i.id,d,f)}var h=(null===(s=i.meta.header)||void 0===s||null===(s=s.viewHierarchy)||void 0===s?void 0:s.join("|"))||"-",p=ar
throw null===(c=this.telemetry)||void 0===c||c.onEventDropped(l,a,void 0,null===(u=i.meta.requestHeader)||void 0===u?void 0:u.pageKey,h,p,!1,tr.TRANSPORTER_FAILURE,!0),new Error(d)}return o.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Yt(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),a=this.generateEnvelope("PageViewEvent",i,{context:n})
return a.meta.requestHeader.pageKey=e,this.fireEnvelope(a)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy()
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),wt.clear(),this.telemetry&&(this.telemetry.forceFlush(),this.telemetry.onDestroy(),this.telemetry=void 0),this.eventRoutingService&&(this.eventRoutingService.forceFlush(),this.eventRoutingService.destroy())}},{key:"forceFlush",value:function(){var e
for(var t in this.transporter.forceFlush(),null===(e=this.eventRoutingService)||void 0===e||e.forceFlush(),this.customTransporters)this.customTransporters[t].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return Qt((t||this.currentContext||{pageKey:U}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t}
return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from
return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t,n){var r="NavigationEvent"
this.previousAppContext=t.previousContext
var i=t.fromExternalApp?{eventName:r,topicName:"InboundNavigationEvent"}:r
return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,a=this.generateEnvelope(i,t)
a.meta.requestHeader.pageKey=n.pageKey
var o=r&&r.applicationInstance
return o&&(a.meta.header.clientApplicationInstance=o),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(a)])}},{key:"generateEnvelope",value:function(e,t){var n,r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:o.directive,transporterKey:o.transporterKey,context:o.context||this.currentContext&&en(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},o.requestHeader||{},uo(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(r=this.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(i=this.host.api.document)||void 0===i?void 0:i.referrer:null===(a=this.host.api.document)||void 0===a?void 0:a.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},o.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),e}()
!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(lo||(lo={}))
var ho="otel-origin-jet-tag"
function po(e){var t="unknown",n=e.map((function(e){var n=e.e,r=e.options,i=e.tags,a=n.message,o=n.name,s=n.stack,c=void 0===s?"":s,u=r.appId,l=r.appVersion,d=r.protocol,f=r.eventName,h=r.service,p=r.host,v=void 0===p?t:p,g=r.hash,m=void 0===g?t:g,y=r.path,E=void 0===y?t:y,T=r.query,b=void 0===T?t:T,_=r.serviceInstance,I=void 0===_?t:_,k=r.pageKey
return{eventBody:{appId:u,e:{m:a,s:c,t:o},l:d,service:h,serviceVersion:l,t:i,serviceInstance:I,o:v,h:m,p:E,q:b,pageKey:void 0===k?t:k},eventInfo:{appId:u,eventName:f,topicName:f}}}))
return n}var vo,go,mo=function(){function e(t,n){var r,i,a=this
S(this,e),D(this,"core",void 0),D(this,"protocol",void 0),D(this,"throttleKeySet",new Set),D(this,"config",void 0),D(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),a.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t
var o=this.core.host.api.location.protocol
this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100,useOTel:null!==(i=null==n?void 0:n.useOTel)&&void 0!==i&&i},wt.on(Tt,this.reportTransporterError)}return O(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.callTreeId,o=void 0===a?"":a,s=i.responseHeaders,c=void 0===s?{}:s,u=i.sduiScreenId,l=i.componentKey,d=i.targetViewNames,f=e.message,h=e.name,p=e.stack,v=void 0===p?"":p,g=e.fileName,m=void 0===g?"":g,y=e.lineNumber,E=void 0===y?0:y,T=e.columnNumber,b=void 0===T?0:T,_=this.core.host,I=_.appId,k=_.appVersion,w=_.service,N=_.serviceInstance,A=_.treeID,C=void 0===A?"":A,S=_.api,R=S.Promise,O=S.location,D=O.host,M=O.pathname,P=O.search,L=O.hash,x=void 0===L?"":L
if(this.config.useOTel&&!r.includes(ho)&&wt.emit(lo.INTERNAL_OTEL_JET_EVENT,{error:e,tags:r,callTreeId:o,responseHeaders:c}),c){t={}
var B=new Map
Object.keys(c).forEach((function(e){B.set(e.toLowerCase(),c[e])})),t.callTreeId=B.get("x-li-uuid"),t.microsoftEdgeReference=B.get("x-msedge-ref"),t.pointOfPresenceId=B.get("x-li-pop"),t.fabric=B.get("x-li-fabric")}var U=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:I,e:{c:b,l:E,m:f,s:v,t:h,u:m},h:x,l:n.protocol,o:D,p:M,pageKey:e.pageKey,q:P,service:w,serviceInstance:N,serviceVersion:k,t:r,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:o,responseTraceHeaders:t,sduiScreenId:u,componentKey:l,targetViewNames:d}}))}
if(this.config.throttleTime<0)return U()
var F=(h+f+v+r.join("")+o).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)
return this.throttleKeySet.has(F)?R.resolve(!1):(this.throttleKeySet.add(F),setTimeout((function(){return n.throttleKeySet.delete(F)}),this.config.throttleTime),U())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),wt.off(Tt,this.reportTransporterError)}}]),e}()
!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",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.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(vo||(vo={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(go||(go={}))
var yo,Eo,To,bo,_o,Io,ko,wo=(D(D(D(D(D(D(D(D(D(D(i={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),D(D(D(D(D(D(i,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),No=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Ao={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Co={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},So="pageLoadId does not exist",Ro="rum token passed is invalid",Oo=new RegExp(/batch-(\d+)$|enabled$/),Do=function(){function e(){S(this,e),D(this,"userTimingEntries",[]),D(this,"longTasks",[]),D(this,"resourceTimingEntries",[]),D(this,"cdnData",void 0)}return O(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name)
n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(Po),cdnData:this.cdnData}}}]),e}(),Mo=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function Po(e){return Mo.reduce((function(t,n){var r=e[n]
return void 0!==r&&(t[n]=r),t}),{})}function Lo(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.")
if("html"===e.tagName.toLowerCase())return"html"
var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4}
Io=Object.assign(Object.assign({},n),t),ko=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Io.root,n)
var r=xo(e,_o.All,(function(){return xo(e,_o.Two,(function(){return xo(e,_o.One)}))}))
if(r){var i=qo(zo(r,e))
return i.length>0&&(r=i[0]),Uo(r)}throw new Error("Selector was not found.")}function xo(e,t,n){for(var r=null,i=[],a=e,o=0,s=function(){var e=Go(function(e){var t=e.getAttribute("id")
return t&&Io.idName(t)?{name:"#"+$o(t,{isIdentifier:!0}),penalty:0}:null}(a))||Go.apply(void 0,w(function(e){return Array.from(e.attributes).filter((function(e){return Io.attr(e.name,e.value)})).map((function(e){return{name:"["+$o(e.name,{isIdentifier:!0})+'="'+$o(e.value)+'"]',penalty:.5}}))}(a)))||Go.apply(void 0,w(function(e){return Array.from(e.classList).filter(Io.className).map((function(e){return{name:"."+$o(e,{isIdentifier:!0}),penalty:1}}))}(a)))||Go(function(e){var t=e.tagName.toLowerCase()
return Io.tagName(t)?{name:t,penalty:2}:null}(a))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode
if(!t)return null
var n=t.firstChild
if(!n)return null
for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling
return r}(a)
if(t===_o.All)s&&(e=e.concat(e.filter(Ko).map((function(e){return Vo(e,s)}))))
else if(t===_o.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Ko).map((function(e){return Vo(e,s)}))))
else if(t===_o.One){var c=T(e=e.slice(0,1),1)[0]
s&&Ko(c)&&(e=[Vo(c,s)])}var u,l=k(e)
try{for(l.s();!(u=l.n()).done;)u.value.level=o}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=Io.seedMinLength&&(r=Bo(i,n)))return 1
a=a.parentElement,o++};a&&a!==Io.root.parentElement&&!s(););return r||(r=Bo(i,n)),r}function Bo(e,t){var n=qo(jo(e))
if(n.length>Io.threshold)return t?t():null
var r,i=k(n)
try{for(i.s();!(r=i.n()).done;){var a=r.value
if(Ho(a))return a}}catch(e){i.e(e)}finally{i.f()}return null}function Uo(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0
n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function Fo(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Ho(e){switch(ko.querySelectorAll(Uo(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Uo(e)))
case 1:return!0
default:return!1}}function Vo(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ko(e){return"html"!==e.name&&!e.name.startsWith("#")}function Go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var r=t.filter(Wo)
return r.length>0?r:null}function Wo(e){return null!=e}function jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,r=[],i=k(e[0])
try{for(i.s();!(n=i.n()).done;){var a=n.value
r=r.concat(jo(e.slice(1,e.length),t.concat(a)))}}catch(e){i.e(e)}finally{i.f()}return r}return[t]}function qo(e){return Array.from(e).sort((function(e,t){return Fo(e)-Fo(t)}))}function zo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[]
if(e.length>2&&e.length>Io.optimizedMinLength)for(var i=1;i<e.length-1;i++){if(n.counter>Io.maxNumberOfTries)return r
n.counter+=1
var a=w(e)
a.splice(i,1)
var o=Uo(a)
if(n.visited.has(o))return r
Ho(a)&&Xo(a,t)&&(r.push(a),n.visited.set(o,!0),r=r.concat(zo(a,t,n)))}return r}function Xo(e,t){return ko.querySelector(Uo(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(yo||(yo={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(Eo||(Eo={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(To||(To={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(bo||(bo={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(_o||(_o={}))
var Jo=/[ -,\.\/:-@\[-\^`\{-~]/,Yo=/[ -,\.\/:-@\[\]\^`\{-~]/,Qo=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Zo={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function $o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Zo),t)
"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single")
for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,a=e.charAt(0),o="",s=0,c=e.length;s<c;){var u=e.charAt(s++),l=u.charCodeAt(0),d=void 0
if(l<32||l>126){if(l>=55296&&l<=56319&&s<c){var f=e.charCodeAt(s++)
56320==(64512&f)?l=((1023&l)<<10)+(1023&f)+65536:s--}d="\\"+l.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Jo.test(u)?"\\"+u:"\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(u)?"\\"+l.toString(16).toUpperCase()+" ":"\\"==u||!i&&('"'==u&&r==u||"'"==u&&r==u)||i&&Yo.test(u)?"\\"+u:u
o+=d}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(a)&&(o="\\3"+a+" "+o.slice(1))),o=o.replace(Qo,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+o+r:o}var es,ts=[{strToFilter:"https://dms.licdn.com/playlist",excludeUrl:["https://dms.licdn.com/playlist/C4D05AQGiUFPvMk-NyQ/mp4-720p-30fp-crf28/0/1670518159491?e=1683741600&v=beta&t=3Wr_tdLLkQDX1kBQKEZW6NERypEqTi2mgZDDxFStjuI"],includeUrl:["https://media.licdn.com/dms/image/C4E0DAQF2IPL6XzFxlw/learning-public-crop_288_512/0/1593208644948?e=1681236000&v=beta&t=YpZr5ZaVoveJv_I6JKHTTZMsysttvKnT364PwDvjJHU"]},{strToFilter:"/sensorCollect/?action=reportMetrics",excludeUrl:["https://www.linkedin.com/sensorCollect/?action=reportMetrics","https://www.linkedin-ei.com/sensorCollect/?action=reportMetrics"],includeUrl:["https://www.linkedin.com/voyager/api/relationships/connectionsSummary/"]},{strToFilter:"/voyager/api/voyagerContentcreationDashGuiderPrompts",excludeUrl:["https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=test&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%C2%90b%C2%A9%C2%87%C3%A8%C3%A2By%C2%8798x%C2%B0%03%C2%9Ft","https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=Subestimar%20la%20necesidad%20de%20la%20estrategia%20de%20comunicaci%C3%B3n%20es%20un%20peligroso%20error%20que%20comenten%20constantemente%20las%20empresas&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%5C%C3%99t%C2%A2%1EZIM%C2%A4%09%13%27%C2%B91C%15"],includeUrl:["https://www.linkedin.com/voyager/api/voyager","https://www.linkedin.com/voyager/api/voyagerContentcreationDashSharebox?action=fetchShareboxWithDraft&decorationId=com.linkedin.voyager.dash.deco.contentcreation.sharebox-26"]},{strToFilter:"/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat",excludeUrl:["https://www.linkedin.com/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"/realtime/connect?rc=1",excludeUrl:["https://www.linkedin.com/realtime/connect?rc=1"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"li/tscp/sct",excludeUrl:["https://www.linkedin.com/li/tscp/sct"]}]
function ns(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now()
return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function rs(e){var t=e||performance
return Math.round(t.now())}function is(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return Lo(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=is(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function as(e,t,n){var r=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,i=e.duration
r.push({entryType:"MEASURE",name:t,startTime:n,duration:i})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,i=e.duration
r.push({entryType:"MARK",name:t,startTime:n,duration:i})})),n&&(e.clearMeasures(),e.clearMarks())),r}function os(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var ss=function(){function e(t){S(this,e),D(this,"hostApis",void 0),D(this,"hostnameProperties",void 0),D(this,"usedHostnames",void 0),D(this,"abortController",void 0),D(this,"pendingPromises",void 0),this.hostApis=t
var n=t.AbortController
this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return O(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return un(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,r=n.AbortController,i=n.Promise,a=cn(un(this.pendingPromises),i),o=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e)
return a.then((function(){return clearTimeout(o),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this
if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,a=(n=e.name,r=this.hostApis.document,(es=es||r.createElement("a")).href=n,es.hostname)
if(this.usedHostnames.add(a),!this.hostnameProperties[a]&&!this.isResourcePossiblyFromCache(e)){var o=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:a},e)
return t.hostnameProperties[a]||(t.hostnameProperties[a]=n),t.pendingPromises.delete(o),n}))
this.pendingPromises.add(o)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}()
!function(){var e=function(){function e(){S(this,e)}return O(e,null,[{key:"x64Add",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]]
var n=[0,0,0,0]
return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Multiply",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]]
var n=[0,0,0,0]
return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}},{key:"x64Xor",value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:"x64Fmix",value:function(t){return t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}},{key:"x64hash128",value:function(t,n){n=n||0
var r,i=(t=t||"").length%16,a=t.length-i,o=[0,n],s=[0,n],c=[0,0],u=[0,0],l=[2277735313,289559509],d=[1291169091,658871167]
for(r=0;r<a;r+=16)c=[255&t.charCodeAt(r+4)|(255&t.charCodeAt(r+5))<<8|(255&t.charCodeAt(r+6))<<16|(255&t.charCodeAt(r+7))<<24,255&t.charCodeAt(r)|(255&t.charCodeAt(r+1))<<8|(255&t.charCodeAt(r+2))<<16|(255&t.charCodeAt(r+3))<<24],u=[255&t.charCodeAt(r+12)|(255&t.charCodeAt(r+13))<<8|(255&t.charCodeAt(r+14))<<16|(255&t.charCodeAt(r+15))<<24,255&t.charCodeAt(r+8)|(255&t.charCodeAt(r+9))<<8|(255&t.charCodeAt(r+10))<<16|(255&t.charCodeAt(r+11))<<24],c=e.x64Multiply(c,l),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),o=e.x64Xor(o,c),o=e.x64Rotl(o,27),o=e.x64Add(o,s),o=e.x64Add(e.x64Multiply(o,[0,5]),[0,1390208809]),u=e.x64Multiply(u,d),u=e.x64Rotl(u,33),u=e.x64Multiply(u,l),s=e.x64Xor(s,u),s=e.x64Rotl(s,31),s=e.x64Add(s,o),s=e.x64Add(e.x64Multiply(s,[0,5]),[0,944331445])
switch(c=[0,0],u=[0,0],i){case 15:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+14)],48))
case 14:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+13)],40))
case 13:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+12)],32))
case 12:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+11)],24))
case 11:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+10)],16))
case 10:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+9)],8))
case 9:u=e.x64Xor(u,[0,t.charCodeAt(r+8)]),u=e.x64Multiply(u,d),u=e.x64Rotl(u,33),u=e.x64Multiply(u,l),s=e.x64Xor(s,u)
case 8:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+7)],56))
case 7:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+6)],48))
case 6:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+5)],40))
case 5:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+4)],32))
case 4:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+3)],24))
case 3:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+2)],16))
case 2:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+1)],8))
case 1:c=e.x64Xor(c,[0,t.charCodeAt(r)]),c=e.x64Multiply(c,l),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),o=e.x64Xor(o,c)}return o=e.x64Xor(o,[0,t.length]),s=e.x64Xor(s,[0,t.length]),o=e.x64Add(o,s),s=e.x64Add(s,o),o=e.x64Fmix(o),s=e.x64Fmix(s),o=e.x64Add(o,s),s=e.x64Add(s,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}}]),e}(),t=function(){function t(){S(this,t),this.components=[{key:"webrtc",getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:"enumerateDevices",getData:t.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:t.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:t.productKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"productSub",getData:t.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"cpuClass",getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"oscpu",getData:t.oscpuKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"hardwareConcurrency",getData:t.hardwareConcurrencyKey,alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezone",getData:t.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t.UserAgent,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"webdriver",getData:t.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:"doNotTrack",getData:t.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t.pixelDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"availableScreenResolution",getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:t.localStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t.addBehaviorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"canvas",getData:t.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:t.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:t.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"networkInfo",getData:t.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"audio",getData:t.audioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:t.pluginsComponent,shouldEnforceDataLimit:!0,dataLimit:17e3},{key:"mimetyps",getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t.jsFontsKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return O(t,[{key:"getFeatures",value:function(e,t){if("function"==typeof e){if(!t)return e({error:"Options not provided"})
var n={data:{latency:{acq_time:{}},errors:{}}},r=Date.now(),i={},a=0,o=0
this.components.forEach((function(s){if(!t.excludes[s.key]){var c=s.key
void 0!==s.alias&&null!==s.alias&&s.alias.length>0&&(c=s.alias),a++
var u=function(){i[c]=Date.now()
try{s.getData((function(t){if(!1!==s.shouldEnforceDataLimit){var u=s.hasOwnProperty("dataLimit")&&"number"==typeof s.dataLimit?s.dataLimit:1e3,l=JSON.stringify(t).length
l>u&&(n.data.errors[c]="Exceeded current data limit:"+u+" Data length for:"+c+" was found to be:"+l,t={})}n.data[c]=t,n.data.latency.acq_time[c]=Date.now()-i[c],++o>=a&&(n.data.latency.acq_time.allFeatures=Date.now()-r,n.data.allFeaturesCollectionAt=Date.now(),e(n.data,!0))}),t)}catch(e){n.data.errors[c]=String(e)}}
"function"==typeof window.requestIdleCallback&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(u):u()}})),n.data.latency.acq_time.allFeatures=Date.now()-r,e(n.data,!1)}}}],[{key:"each",value:function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t)
else if(e.length===+e.length)for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)
else for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)}},{key:"map",value:function(e,n){var r=[]
return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,i){r.push(n(e,t,i))})),r)}},{key:"getIPs",value:function(e,t){var n={},r=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{optional:[{RtpDataChannels:!0}]}),i=function(e){if(null!==e)try{var t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(e)[1]
n[t]=!0}catch(e){}},a=!1,o=function(){if(!0!==a){a=!0
var e=r.localDescription
null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||i(e)})),t(Object.keys(n))}}
r.onicecandidate=function(e){e.candidate&&i(e.candidate.candidate)},r.onicegatheringstatechange=function(e){"complete"===r.iceGatheringState&&o()},r.createDataChannel("bl")
try{r.createOffer().then((function(e){r.setLocalDescription(e)}))}catch(e){r.createOffer((function(e){r.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){o()}),2e3)}},{key:"automationKey",value:function(e,n){if(t.getHasLiedBrowser())e("undetected, fake browser")
else{var r=t.getBrowserNameAndVersion().split(" ")[0]
"Chrome"!==r||!0!==navigator.webdriver?"Firefox"===r&&window.document.documentElement.getAttribute("webdriver")||"_Selenium_IDE_Recorder"in window||"__webdriver_script_fn"in document?e("Selenium"):window.callPhantom||window._phantom?e("PhantomJS"):e(n.NOT_AVAILABLE):e("Selenium")}}},{key:"webRtcKey",value:function(e,n){try{t.getIPs(n,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}},{key:"enumerateDevicesKey",value:function(e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE)
navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){var t={}
return t.id=e.deviceId,t.gid=e.groupId,t.kind=e.kind,t.label=e.label,t})))})).catch((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices}},{key:"audioKey",value:function(e,n){var r=n.audio
if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED)
var i=window.OfflineAudioContext||window.webkitOfflineAudioContext
if(null==i)return e(n.NOT_AVAILABLE)
var a=new i(1,44100,44100),o=a.createOscillator()
o.type="triangle",o.frequency.setValueAtTime(1e4,a.currentTime)
var s=a.createDynamicsCompressor()
t.each([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==s[e[0]]&&"function"==typeof s[e[0]].setValueAtTime&&s[e[0]].setValueAtTime(e[1],a.currentTime)})),o.connect(s),s.connect(a.destination),o.start(0),a.startRendering()
var c=setTimeout((function(){return a.oncomplete=function(){},a=null,e("audioTimeout")}),r.timeout)
a.oncomplete=function(t){var n
try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),o.disconnect(),s.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"UserAgent",value:function(e){e(navigator.userAgent)}},{key:"webdriver",value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"languageKey",value:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepthKey",value:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemoryKey",value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE
n!==t.NOT_AVAILABLE&&(n+=" GB"),e(n)}},{key:"pixelDepthKey",value:function(e,t){e(window.screen.pixelDepth||t.NOT_AVAILABLE)}},{key:"pixelRatioKey",value:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"screenResolutionKey",value:function(e,n){e(t.getScreenResolution(n))}},{key:"screenOrientationKey",value:function(e,t){if(t.screen.detectScreenOrientation){var n={}
n.Enabled=void 0!==screen.orientation,n.Orientation=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,e(n)}else e(t.EXCLUDED)}},{key:"getScreenResolution",value:function(){return{w:window.screen.width,h:window.screen.height}}},{key:"availableScreenResolutionKey",value:function(e,n){e(t.getAvailableScreenResolution(n))}},{key:"getAvailableScreenResolution",value:function(e){return window.screen.availWidth&&window.screen.availHeight?{w:window.screen.availWidth,h:window.screen.availHeight}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date).getTimezoneOffset()/60)}},{key:"timezone",value:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,n){e(t.hasSessionStorage(n))}},{key:"localStorageKey",value:function(e,n){e(t.hasLocalStorage(n))}},{key:"indexedDbKey",value:function(e,n){e(t.hasIndexedDB(n))}},{key:"addBehaviorKey",value:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabaseKey",value:function(e){e(!!window.openDatabase)}},{key:"cpuClassKey",value:function(e,n){e(t.getNavigatorCpuClass(n))}},{key:"oscpuKey",value:function(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t.NOT_AVAILABLE)}},{key:"appVersionKey",value:function(e,t){e(navigator.appVersion||t.NOT_AVAILABLE)}},{key:"appCodeNameKey",value:function(e,t){e(navigator.appCodeName||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date.now())}},{key:"platformKey",value:function(e,n){e(t.getNavigatorPlatform(n))}},{key:"productKey",value:function(e,t){e(navigator.product||t.NOT_AVAILABLE)}},{key:"productSubKey",value:function(e,t){e(navigator.productSub||t.NOT_AVAILABLE)}},{key:"vendorKey",value:function(e,t){e(navigator.vendor||t.NOT_AVAILABLE)}},{key:"vendorSubKey",value:function(e,t){e(navigator.vendorSub||t.NOT_AVAILABLE)}},{key:"doNotTrackKey",value:function(e,n){e(t.getDoNotTrack(n))}},{key:"incognitoKey",value:function(e,n){var r=t.getBrowserNameAndVersion().split(" "),i=r[0],a=r[1],o=n.NOT_AVAILABLE
if("Chrome"===i)if(parseInt(a)<=74){var s=window.RequestFileSystem||window.webkitRequestFileSystem
s?s(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(o)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then((function(t){var n=t.quota
e(o=n<125829120)})):e(o)
else if("Safari"===i){if(o=!1,window.safariIncognito)o=!0
else{try{window.openDatabase(null,null,null,null)}catch(e){o=!0}try{window.localStorage.setItem("test",1)}catch(e){o=!0}}void 0===o&&(o=!1,window.localStorage.removeItem("test")),e(o)}else if("Firefox"===i){var c=indexedDB.open("test")
c.onerror=function(){e(!0)},c.onsuccess=function(){e(!1)}}else e("IE"===i||"EDGE"===i?!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent):o)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))}},{key:"canvasKey",value:function(e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n.NOT_AVAILABLE)}},{key:"webglKey",value:function(e,n){t.isWebGlSupported()?e(t.getWebglFp(n)):e(n.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document.scripts||null===document.scripts)return e(t.NOT_AVAILABLE)
e([])}},{key:"locationKey",value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location.host||t.NOT_AVAILABLE,hostname:location.hostname||t.NOT_AVAILABLE,href:location.href||t.NOT_AVAILABLE,origin:location.origin||t.NOT_AVAILABLE,pathname:location.pathname||t.NOT_AVAILABLE,port:location.port||t.NOT_AVAILABLE,protocol:location.protocol||t.NOT_AVAILABLE})}},{key:"signalsKey",value:function(e){e(t.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return t.getAdBlock()},liedLanguages:function(){return t.getHasLiedLanguages()},liedResolution:function(){return t.getHasLiedResolution()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={}
for(var r in e)if(e.hasOwnProperty(r)){var i=e[r]
n[r]=i(r)}return n}},{key:"flashFontsKey",value:function(e,n){return t.hasSwfObjectLoaded()?t.hasMinFlashInstalled()?n.fonts.swfPath?void t.loadSwfAndDetectFonts((function(t){e(t)}),n):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")}},{key:"jsFontsKey",value:function(t,n){var r=["monospace","sans-serif","serif"],i=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"]
void 0!==n.fonts&&void 0!==n.fonts.extendedJsFonts&&(i=i.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(i=i.concat(n.fonts.userDefinedFonts)),i=i.filter((function(e,t){return i.indexOf(e)===t}))
var a=document.getElementsByTagName("body")[0],o=document.createElement("div"),s=document.createElement("div"),c={},u={},l=function(){var e=document.createElement("span")
return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.textContent="mmmmmmmmmmlli",e},d=function(e,t){var n=l()
return n.style.fontFamily="'"+e+"',"+t,n},f=function(e){for(var t=!1,n=0;n<r.length;n++)if(t=e[n].offsetWidth!==c[r[n]]||e[n].offsetHeight!==u[r[n]])return t
return t},h=function(){for(var e=[],t=0,n=r.length;t<n;t++){var i=l()
i.style.fontFamily=r[t],o.appendChild(i),e.push(i)}return e}()
a.appendChild(o)
for(var p=0,v=r.length;p<v;p++)c[r[p]]=h[p].offsetWidth,u[r[p]]=h[p].offsetHeight
var g=function(){for(var e={},t=0,n=i.length;t<n;t++){for(var a=[],o=0,c=r.length;o<c;o++){var u=d(i[t],r[o])
s.appendChild(u),a.push(u)}e[i[t]]=a}return e}()
a.appendChild(s)
for(var m=[],y=0,E=i.length;y<E;y++)f(g[i[y]])&&m.push(i[y])
a.removeChild(s),a.removeChild(o)
var T={}
T.fontsHash=e.x64hash128(m.join(),23),n.fonts.hashOnly||(T.lists=m),t(T)}},{key:"mimetypesComponent",value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator.mimeTypes){for(var n=navigator.mimeTypes,r=[],i=0;i<n.length;i++){var a={}
a.type=n[i].type,a.suffixes=n[i].suffixes,a.description=n[i].description,r.push(a)}e(r)}else e(t.NOT_AVAILABLE)}},{key:"pluginsComponent",value:function(e,n){t.isIE()?n.plugins.excludeIE?e(n.EXCLUDED):e(t.getIEPlugins(n)):e(t.getRegularPlugins(n))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator.plugins||null===navigator.plugins)return e.NOT_AVAILABLE
for(var n=[],r=0,i=navigator.plugins.length;r<i;r++)navigator.plugins[r]&&n.push(navigator.plugins[r])
return n.length>0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),t.map(n,(function(e){var n=t.map(e,(function(e){return[e.type,e.suffixes]}))
return[e.name,e.description,n]}))}},{key:"getIEPlugins",value:function(e){var n=[]
return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?n=t.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):n.push(e.NOT_AVAILABLE),navigator.plugins&&(n=n.concat(t.getRegularPlugins(e))),n}},{key:"pluginsShouldBeSorted",value:function(e){for(var t=!1,n=0,r=e.plugins.sortPluginsFor.length;n<r;n++){var i=e.plugins.sortPluginsFor[n]
if(navigator.userAgent.match(i)){t=!0
break}}return t}},{key:"batteryKey",value:function(e,t){void 0!==navigator.getBattery?navigator.getBattery().then((function(t){var n={}
n.level=t.level,n.charging=t.charging,n.chargingTime=t.chargingTime,n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}},{key:"networkInfoKey",value:function(e,t){var n=navigator.connection
e(void 0!==n?{downlink:n.downlink,downlinkMax:n.downlinkMax,type:n.type,effectiveType:n.effectiveType,rtt:n.rtt,saveData:n.saveData}:t.NOT_AVAILABLE)}},{key:"touchSupportKey",value:function(e){e(t.getTouchSupport())}},{key:"hardwareConcurrencyKey",value:function(e,n){e(t.getHardwareConcurrency(n))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}},{key:"hasLocalStorage",value:function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}},{key:"hasIndexedDB",value:function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}},{key:"getHardwareConcurrency",value:function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}},{key:"getNavigatorCpuClass",value:function(e){return navigator.cpuClass||e.NOT_AVAILABLE}},{key:"getNavigatorPlatform",value:function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}},{key:"getDoNotTrack",value:function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0
void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints)
try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}}},{key:"getCanvasFp",value:function(t){var n={},r=document.createElement("canvas")
r.width=2e3,r.height=200,r.style.display="inline"
var i=r.getContext("2d")
return i.rect(0,0,10,10),i.rect(2,2,6,6),n.canvasWinding=!1===i.isPointInPath(5,5,"evenodd")?"yes":"no",i.textBaseline="alphabetic",i.fillStyle="#f60",i.fillRect(125,1,62,20),i.fillStyle="#069",t.dontUseFakeFontInCanvas?i.font="11pt Arial":i.font="11pt no-real-font-123",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),i.fillStyle="rgba(102, 204, 0, 0.2)",i.font="18pt Arial",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),i.globalCompositeOperation="multiply",i.fillStyle="rgb(255,0,255)",i.beginPath(),i.arc(50,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(0,255,255)",i.beginPath(),i.arc(100,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,255,0)",i.beginPath(),i.arc(75,100,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,0,255)",i.arc(75,75,75,0,2*Math.PI,!0),i.arc(75,75,25,0,2*Math.PI,!0),i.fill("evenodd"),r.toDataURL&&(n.canvasHash=e.x64hash128(r.toDataURL(),23)),n}},{key:"getWebglFp",value:function(n){var r,i=function(e){return r.clearColor(0,0,0,1),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"}
if(!(r=t.getWebglCanvas()))return null
var a={},o=r.createBuffer()
r.bindBuffer(r.ARRAY_BUFFER,o)
var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
r.bufferData(r.ARRAY_BUFFER,s,r.STATIC_DRAW),o.itemSize=3,o.numItems=3
var c=r.createProgram(),u=r.createShader(r.VERTEX_SHADER)
r.shaderSource(u,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),r.compileShader(u)
var l=r.createShader(r.FRAGMENT_SHADER)
r.shaderSource(l,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),r.compileShader(l),r.attachShader(c,u),r.attachShader(c,l),r.linkProgram(c),r.useProgram(c),c.vertexPosAttrib=r.getAttribLocation(c,"attrVertex"),c.offsetUniform=r.getUniformLocation(c,"uniformOffset"),r.enableVertexAttribArray(c.vertexPosArray),r.vertexAttribPointer(c.vertexPosAttrib,o.itemSize,r.FLOAT,!1,0,0),r.uniform2f(c.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,o.numItems)
try{a.webglHash=e.x64hash128(r.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return a
a.vendorAndRenderer=t.getWebglVendorAndRenderer(),a.extensions=r.getSupportedExtensions()||[],a["webgl aliased line width range"]=i(r.getParameter(r.ALIASED_LINE_WIDTH_RANGE)),a["webgl aliased point size range"]=i(r.getParameter(r.ALIASED_POINT_SIZE_RANGE)),a["webgl alpha bits"]=r.getParameter(r.ALPHA_BITS),a["webgl antialiasing"]=r.getContextAttributes().antialias?"yes":"no",a["webgl blue bits"]=r.getParameter(r.BLUE_BITS),a["webgl depth bits"]=r.getParameter(r.DEPTH_BITS),a["webgl green bits"]=r.getParameter(r.GREEN_BITS),a["webgl max anisotropy"]=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")
if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)
return 0===n&&(n=2),n}return null}(r),a["webgl max combined texture image units"]=r.getParameter(r.MAX_COMBINED_TEXTURE_IMAGE_UNITS),a["webgl max cube map texture size"]=r.getParameter(r.MAX_CUBE_MAP_TEXTURE_SIZE),a["webgl max fragment uniform vectors"]=r.getParameter(r.MAX_FRAGMENT_UNIFORM_VECTORS),a["webgl max render buffer size"]=r.getParameter(r.MAX_RENDERBUFFER_SIZE),a["webgl max texture image units"]=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),a["webgl max texture size"]=r.getParameter(r.MAX_TEXTURE_SIZE),a["webgl max varying vectors"]=r.getParameter(r.MAX_VARYING_VECTORS),a["webgl max vertex attribs"]=r.getParameter(r.MAX_VERTEX_ATTRIBS),a["webgl max vertex texture image units"]=r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS),a["webgl max vertex uniform vectors"]=r.getParameter(r.MAX_VERTEX_UNIFORM_VECTORS),a["webgl max viewport dims"]=i(r.getParameter(r.MAX_VIEWPORT_DIMS)),a["webgl red bits"]=r.getParameter(r.RED_BITS),a["webgl renderer"]=r.getParameter(r.RENDERER),a["webgl shading language version"]=r.getParameter(r.SHADING_LANGUAGE_VERSION),a["webgl stencil bits"]=r.getParameter(r.STENCIL_BITS),a["webgl vendor"]=r.getParameter(r.VENDOR),a["webgl version"]=r.getParameter(r.VERSION)
try{var d=r.getExtension("WEBGL_debug_renderer_info")
d&&(a["webgl unmasked vendor"]=r.getParameter(d.UNMASKED_VENDOR_WEBGL),a["webgl unmasked renderer"]=r.getParameter(d.UNMASKED_RENDERER_WEBGL))}catch(e){}return r.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(i){t.each(["precision","rangeMin","rangeMax"],(function(t){var o=r.getShaderPrecisionFormat(r[n+"_SHADER"],r[i+"_"+e])[t]
"precision"!==t&&(t="precision "+t)
var s=["webgl ",n.toLowerCase()," shader ",i.toLowerCase()," ",e.toLowerCase()," ",t].join("")
a[s]=o}))}))}))})),a):a}},{key:"getWebglVendorAndRenderer",value:function(){try{var e=t.getWebglCanvas(),n=e.getExtension("WEBGL_debug_renderer_info")
return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}},{key:"getAdBlock",value:function(){var e=document.createElement("div")
e.innerHTML="&nbsp;",e.className="adsbox"
var t=!1
try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}},{key:"getHasLiedLanguages",value:function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}},{key:"getHasLiedResolution",value:function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight}},{key:"getHasLiedOs",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,r=navigator.platform.toLowerCase()
if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0
if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0
if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0
if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0
if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return r.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(r.indexOf("linux")>=0||r.indexOf("android")>=0||r.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(r.indexOf("mac")>=0||r.indexOf("ipad")>=0||r.indexOf("ipod")>=0||r.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(r.indexOf("win")<0&&r.indexOf("linux")<0&&r.indexOf("mac")<0&&r.indexOf("iphone")<0&&r.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub
if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0
var r,i=eval.toString().length
if(37===i&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0
if(39===i&&"Internet Explorer"!==e&&"Other"!==e)return!0
if(33===i&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0
try{throw"a"}catch(t){try{t.toSource(),r=!0}catch(t){r=!1}}return r&&"Firefox"!==e&&"Other"!==e}},{key:"isCanvasSupported",value:function(){var e=document.createElement("canvas")
return!(!e.getContext||!e.getContext("2d"))}},{key:"isWebGlSupported",value:function(){if(!t.isCanvasSupported())return!1
var e=t.getWebglCanvas()
return!!window.WebGLRenderingContext&&!!e}},{key:"isIE",value:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))}},{key:"hasSwfObjectLoaded",value:function(){return void 0!==window.swfobject}},{key:"hasMinFlashInstalled",value:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")}},{key:"addFlashDivNode",value:function(e){var t=document.createElement("div")
t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,n){window.___fp_swf_loaded=function(t){e(t)}
var r=n.fonts.swfContainerId
t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,r,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}},{key:"getWebglCanvas",value:function(){var e=document.createElement("canvas"),t=null
try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}}]),t}(),n={getItem:function(e){var t=this.getCookieString().match(this._cookieRegEx(e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t<e.length;t++){var n=e[t].split("=")
if(n.length>1&&"bcookie"===n[0]){var r=n[n.length-1]
return r.substring(2,r.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain(),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/"
if(n){var a=["".concat(e,"=").concat(t,"; path=").concat(i,"; secure=true")]
"string"==typeof r&&r.length>0&&a.push("domain="+r),a.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=a.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0)),this.setItem(e,"",new Date(0),"")
var t=this.getDomain().split(".")
t.length>2&&(t=t.slice(t.length-2))
var n=t.join(".")
this.setItem(e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+"=([^;]*)")},getCookieString:function(){return document.cookie},getDomain:function(){return window.location?window.location.hostname:""}},r="HUMAN",i="DFP_WEB",a="RECAPTCHA_V3_WEB",o="HUMAN_SECURITY_ENFORCER"
function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=n?n.querySelector("#"+e):document.getElementById(e)
if(r){var i=r.firstChild.nodeValue
if(t&&r.parentNode.removeChild(r),i)try{return JSON.parse(i)}catch(e){return}}}function c(e,t,n){var r=new XMLHttpRequest,i=n?"https://www.linkedin.com":"https://www.linkedin-ei.com"
i+=String(t),r.open("POST",i),r.setRequestHeader("Content-Type","application/json"),r.send(e)}function u(e){var t=document.getElementsByClassName(e)
return void 0!==t&&t.length>=1}function l(){var e=location&&location.host
return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")}var d=function(){function e(){S(this,e)}return O(e,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r)
return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode.apply(null,e))}},{key:"importPk",value:function(t,n,r){var i=window.atob(n),a=e.str2ab(i)
return window.crypto.subtle.importKey(t,a,{name:"RSA-OAEP",hash:"SHA-256"},!0,r)}},{key:"wrap",value:function(t,n){return e.importPk("spki",n,["wrapKey"]).then((function(e){return window.crypto.subtle.wrapKey("raw",t,e,{name:"RSA-OAEP"})})).then((function(t){return e.encode(new Uint8Array(t))}))}},{key:"wrapErrorResult",value:function(e){var t={a:null,b:null,c:null}
return t.error=e,t}},{key:"encryptWithKey",value:function(t,n,r){var i={a:null,b:null,c:null}
try{var a=Date.now()
if("string"!=typeof n||"number"!=typeof r)throw new Error("ec1")
var o=window.crypto.getRandomValues(new Uint8Array(16))
i.a=e.encode(o)
var s=(new TextEncoder).encode(t),c="AES-CBC"
return window.crypto.subtle.generateKey({name:c,length:256},!0,["encrypt","decrypt"]).then((function(t){return window.crypto.subtle.encrypt({name:c,iv:o},t,s).then((function(o){return e.wrap(t,n).then((function(t){return i.b=t,i.c=e.encode(new Uint8Array(o)),i.d=Date.now()-a,i.e=r,i}))}))})).catch((function(e){return i.error=String(e),i}))}catch(t){return i.error=String(t),Promise.resolve(i)}}},{key:"encryptWithKeyIds",value:function(t,n,r,i){if("string"!=typeof n||"string"!=typeof r)return Promise.resolve(e.wrapErrorResult("Error: ec2"))
var a=s(n),o=parseInt(s(r))
return(""===a||"string"!=typeof a||"number"!=typeof o||Number.isNaN(o))&&(a=i?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB",o=i?2:1),e.encryptWithKey(t,a,o)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,r,i,a){return null!=i&&"string"==typeof i.publicKey&&"number"==typeof i.publicKeyVersion?e.encryptWithKey(t,i.publicKey,i.publicKeyVersion):e.encryptWithKeyIds(t,n,r,a)}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder).encode(e)
return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return("00"+e.toString(16)).slice(-2)})).join("")})).catch((function(){return""}))}}]),e}(),f=function(){var e={compressToBase64:function(t){if(null==t)return""
var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}))
switch(n.length%4){default:case 0:return n
case 1:return n+"==="
case 2:return n+"=="
case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return""
var r,i,a,o={},s={},c="",u="",l="",d=2,f=3,h=2,p=[],v=0,g=0
for(a=0;a<e.length;a+=1)if(c=e.charAt(a),Object.prototype.hasOwnProperty.call(o,c)||(o[c]=f++,s[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(o,u))l=u
else{if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<h;r++)v<<=1,g==t-1?(g=0,p.push(n(v)),v=0):g++
for(i=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<h;r++)v=v<<1|i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i=0
for(i=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[l]}else for(i=o[l],r=0;r<h;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1
0==--d&&(d=Math.pow(2,h),h++),o[u]=f++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<h;r++)v<<=1,g==t-1?(g=0,p.push(n(v)),v=0):g++
for(i=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<h;r++)v=v<<1|i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i=0
for(i=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[l]}else for(i=o[l],r=0;r<h;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1
0==--d&&(d=Math.pow(2,h),h++)}for(i=2,r=0;r<h;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1
for(;;){if(v<<=1,g==t-1){p.push(n(v))
break}g++}return p.join("")}}
return e}(),h={apfcTypes:1,collectionType:2,trackingId:3},p={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},v={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},g={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},m={type:1,description:2,suffixes:3},y={canvasHash:1,canvasWinding:2},E={label:1,gid:2,id:3,kind:4},b={fontsHash:2},_={Orientation:1,Enabled:2},I={charging:1,dischargingTime:2,level:3,chargingTime:4},k={touchStart:1,touchEvent:2,maxTouchPoints:3},w={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65},N={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},A={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},R={appVersion:1,numOfCores:2,webrtc:3,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,platform:13,javascripts:14,automation:15,pixelDepth:16,availableScreenResolution:18,timezoneOffset:19,oscpu:20,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,product:30,appName:32,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,colorDepth:43,tsSeed:45,errors:46,pixelRatio:47}
function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
return r}var P,L,x=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),B=/^fs_/,U=/(?![^(]*\)),/,F=function e(t){var n=function(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+C(e)+".")
var t,n,r=x.exec(e)
return r&&(t=r[1].replace(B,""),n=r[2]),{id:n,type:t}}(t),r=n.id,i=n.type,a={}
if("("===r.charAt(0)){for(var o,s=r.substring(1,r.length-1).split(U),c=0;o=s[c];++c)0===o.indexOf("urn")&&(s[c]=e(o))
r=s}return a[i]=r,a},H=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},V={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},K="GUEST",G="MEMBER",W="ENTERPRISE_UNBOUND",j=(D(P={},K,"li_gc"),D(P,G,"li_mc"),D(P,W,"li_ec"),P)
D(L={},K,"mypreferences/g/guest-cookies"),D(L,G,"settings/member-cookies"),D(L,W,"mypreferences/e/enterprise-cookies")
var q,z,X,J,Y=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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var a 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={},V)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===i},Q=(q=[V.ADVERTISING,V.ANALYTICS_AND_RESEARCH,V.FUNCTIONAL],z=[0,1,2,0],X=function(e){for(var t={},n=0;n<q.length;n++)t[q[n]]=z[e>>2*n&3]
return t},J=function(e){var t=0
return e>=0&&e<=3&&(t=z[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),r=e.match(n)
if(!r)return{error:"Invalid consent body encoding",consent:new Y}
var i=X(parseInt(r[1],10)),a=new Date(1e3*parseInt(r[2],10)),o=J(parseInt(r[3],10))
return{error:null,consent:new Y(i,a,t,o)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=F(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!r)return{error:"Invalid enterprise profile urn provided",consent:new Y}
var i=r.enterpriseAccountId,a=r.enterpriseProfileId,o=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(o)
if(!s)return{error:"Invalid consent body encoding",consent:new Y}
var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,i=void 0
try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(t.push(a.value),4!==t.length);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return t}}(e)||function(e){if(e){if("string"==typeof e)return M(e,4)
var t=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?M(e,4):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),r=t[1],o=t[2],s=t[3]
return r===i&&o===a&&s===n}))[0]
if(!c)return{error:null,consent:new Y}
var u=X(c[0]),l=new Date(1e3*parseInt(s[2],10)),d=J(parseInt(s[3],10))
return{error:null,consent:new Y(u,l,W,d)}}}),Z=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),$=function(e){var t={}
for(var n in V)t[n]=e
return{error:null,consent:new Y(t,null,null,e)}},ee=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var i,a=null
try{a=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(Z)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new Y}
var o=parseInt(a[1],10),s=a[2]
return 1===o?t===W?Q.parseConsentBodyEnterpriseUnbound(s,n,r):Q.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(o),consent:new Y}},te=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]),ne=new Map([["/voyager/api/voyagerSearchDashSearchHome","searchHome"]]),re=new Map([["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]])
function ie(e){var t
try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var ae=function(){function e(t,n){S(this,e),this.callback=t,this.config=n,this.networkInterceptorRampingActionTypes=n&&n.networkInterceptorActionTypes?new Set(n.networkInterceptorActionTypes):new Set,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return O(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this
window.fetch=function(n,r){try{var i=ie(n)
t.runActionInterceptorLogic(i)
var a=new Headers(r.headers||{})
t.runHeaderInjectionInterceptorLogic(i,a,t.config),r.headers=a}catch(e){}return e(n,r)}}},{key:"setupInterceptorForOpen",value:function(){var e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send,n=this
XMLHttpRequest.prototype.open=function(t,n){try{this._sanitizedPath=ie(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){var r=this
try{if(this._sanitizedPath){var i=new Map
i.set=function(e,t){return r.setRequestHeader(e,t)},n.runHeaderInjectionInterceptorLogic(this._sanitizedPath,i,n.config)}n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=this.callback,n=te.get(e),r=ne.get(e);(function(e,t,n){return(void 0!==e||void 0!==t&&n&&n.has(t))&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute})(n,r,this.networkInterceptorRampingActionTypes)&&function(e,t,n){window.grecaptcha.enterprise.ready((function(){var e=t||"default"
window.grecaptcha.enterprise.execute("6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",{action:e}).then((function(t){var r={token:t,expectedAction:e}
n(a,JSON.stringify(r))})).catch((function(e){var t={error:e}
n(a,JSON.stringify(t))}))}))}(0,void 0!==n?n:r,t)}}},{key:"runHeaderInjectionInterceptorLogic",value:function(e,t,n){if(n&&n.isSyncEnabledWithHeaders&&e&&t&&void 0!==re.get(e)&&globalThis.apfcDfAllH)try{var r=JSON.stringify(globalThis.apfcDfAllH)
r.length>6e3&&(r=r.substring(0,6e3)),t.set("X-Li-Apfc-Data",r)}catch(e){}}}]),e}(),oe=function(){function e(t,n){S(this,e),this.config=t,this.featureCollectionOptions=n,this.payloads={},globalThis.apfcDfAllH={},this.intervalId=null,this.dirtyBit=!1,this.maxAttempts=30,this.attemptCount=0,this.intervalInMillis=200,this.overwriteFromConfigIfNeeded(this.config)}return O(e,[{key:"setEncryptedDNAPayload",value:function(e){this.payloads[btoa("DNA_ENCRYPTED")]=e,this.dirtyBit=!0}},{key:"setDfpJsPayload",value:function(e){this.payloads[btoa("DFP_JS_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("DFP_JS_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setHumanJsPayload",value:function(e){this.payloads[btoa("HUMAN_JS_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("HUMAN_JS_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setHumanSecurityEnforcerJsPayload",value:function(e){this.payloads[btoa("HUMAN_SECURITY_ENFORCER_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("HUMAN_SECURITY_ENFORCER_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setReCaptchaV3Payload",value:function(e){this.payloads[btoa("RECAPTCHA_V3_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("RECAPTCHA_V3_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setEncodedDNAPayload",value:function(e){globalThis.apfcDfAllH[btoa("DNA_ENCODED")]=e}},{key:"startPeriodicSending",value:function(){var e=this
this.config.isSyncEnabledWithCb&&(this.intervalId&&clearInterval(this.intervalId),this.attemptCount=0,this.intervalId=setInterval((function(){e.attemptCount++,e.dirtyBit&&(e.triggerSyncCollectionWithCb(e.featureCollectionOptions),e.dirtyBit=!1),(e.areAllPayloadsCollected()&&!1===e.dirtyBit||e.attemptCount>=e.maxAttempts)&&e.stopPeriodicSending()}),this.intervalInMillis))}},{key:"stopPeriodicSending",value:function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}},{key:"triggerSyncCollectionWithCb",value:function(e){var t=l(),n=this.constructApfcEndpointRequestBody(this.payloads)
c(JSON.stringify(n),e.gloablIntegrationDataCollectionPath,t)}},{key:"areAllPayloadsCollected",value:function(){return 4===Object.keys(this.payloads).length}},{key:"constructApfcEndpointRequestBody",value:function(e){var t={}
return t.payload=e,t.browserId=n.getBcookie(),t}},{key:"overwriteFromConfigIfNeeded",value:function(e){if("string"==typeof e.syncHandlerConfig&&e.syncHandlerConfig.includes(":")){var t=T(e.syncHandlerConfig.split(":"),2),n=t[0],r=t[1],i=parseInt(n,10),a=parseInt(r,10)
this.maxAttempts=Number.isInteger(i)?i:this.maxAttempts,this.intervalInMillis=Number.isInteger(a)?a:this.intervalInMillis}}}]),e}(),se={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:"/apfc/collect",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:"n/a",ERROR:"err",EXCLUDED:"excluded",useRequestIdleCallBack:!0},ce=!1
try{var ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.enterpriseProfileUrn,i=n.enterpriseAppInstanceId
if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new Y}
t=document.cookie}if(r&&!i||!r&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new Y}
if(!(e!==W||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new Y}
if(!e){var a=H(j[W],t)
if(a&&r&&i){var o=ee(a,W,r,i)
if(o.consent.userMode===W||o.error)return o}e=H("liap",t)?H(j[G],t)?G:K:H(j[K],t)?K:G}return function(e,t,n,r){var i=H(j[e],t)
return i?ee(i,e,n,r):H(j[K],t)||H(j[G],t)||H(j[W],t)?$(2):$(1)}(e,t,r,i)}().consent.optedInConsentMap
ce=ue[V.FUNCTIONAL]}catch(e){}var le=function(){function e(t,n,r){var i=this
if(S(this,e),void 0!==n&&void 0!==t&&"enabled"===t.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(n,r):window.addEventListener("load",(function(){i.initializeGlobalIntegration(n,r)}))
else if(void 0!==t){var a=JSON.parse(JSON.stringify(se))
u("settings-iframe")||u("setting-headline")||(a.useRequestIdleCallBack=!1),this.initialize(a,t)}else{var o=JSON.parse(JSON.stringify(se))
u("settings-iframe")||u("setting-headline")||(o.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(o):window.addEventListener("load",(function(){i.initialize(o)}))}}return O(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new ae(e,t),globalThis.apfcInterceptorInitialized=!0),!0!==t.isSyncEnabledWithCb&&!0!==t.isSyncEnabledWithHeaders||globalThis.syncCollectionHandlerInitialized||(this.syncCollectionHandler=new oe(t,se),this.syncCollectionHandler.startPeriodicSending(),globalThis.syncCollectionHandlerInitialized=!0),this.checkConfigAndInitializeAllIntegration(e,t)}},{key:"isDfCollectionRequired",value:function(e){return"number"!=typeof e.samplingTimeWindowInMillis||e.samplingTimeWindowInMillis<=0||""===n.getItem("df_ts")}},{key:"checkConfigAndInitializeAllIntegration",value:function(e,t){!0!==globalThis.pauseApfc&&(globalThis.pauseApfc=!0,setTimeout((function(){globalThis.pauseApfc=!1}),3e4),!0===t.enableOnDemandMode?(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t)):(this.deleteDfCookieIfRequired(t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this.addDfCookieIfRequired(t))))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes("DNA")||!0===t.dnaIntegrationEnabled&&!0!==globalThis.dnaIntegrationCompleted)&&this.intializeGlobalIntegration(se,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(a)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(e,t),globalThis.reCaptchaV3InitializationComplete=!0),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(r)||!0===t.humanIntegrationEnabled&&!0!==globalThis.humanIntegrationCompleted)&&this.initializeHumanIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(i)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this.intializeDfpIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.humanSecurityEnforcerIntegrationEnabled&&!0!==globalThis.humanSecurityEnforcerIntegrationCompleted)&&this.initializeHumanSecurityEnforcerIntegration(e,t)}},{key:"deleteDfCookieIfRequired",value:function(e){var t="number"!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis
if(""!==n.getItem("df_ts")){var r=Date.now(),i=Number(n.getItem("df_ts"));(!1===ce||r-i>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ce&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){var t=Date.now(),r=new Date
r.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,r)}}},{key:"initialize",value:function(e,n){if(null!=n||null!=s("apfcDfPK")){var r=this.reqid,i=this.pageInstance,a=this.isProd()
return(new t).getFeatures((function(t,o){t.reqid=r,t.pageInstance=i,t.fullFeatureCollection=o,d.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,a).then((function(t){globalThis.apfcDf=t,!0===o&&c(JSON.stringify(t),e.telemetryCollectPath,a)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(n,r,i){var a=function(t,n){var a,o=this
if(!0===n){if(e.prototype.populateFpDataCookie(t,i),void 0!==this.syncCollectionHandler&&!0===i.isSyncEnabledWithHeaders){var s=JSON.stringify(function(e){try{var t={},n=Object.freeze(e)
return function(e,t){var n=e.webgl,r={}
if(void 0!==n&&void 0!==n.extensions&&null!==n&&null!==n.extensions){for(var i=n.extensions,a=[],o=0;o<i.length;o++){var s=i[o]
a[o]=N.hasOwnProperty(s)?N[s]:s}r[66]=a}null!=n&&(Object.keys(w).forEach((function(e){r[w[e]]=n[e]})),t[5]=r)}(n,t),function(e,t){var n=e.touchSupport,r={}
null!=n&&(Object.keys(k).forEach((function(e){r[k[e]]=n[e]})),t[4]=r)}(n,t),function(e,t){var n=e.battery,r={}
null!=n&&(Object.keys(I).forEach((function(e){r[I[e]]=n[e]})),t[12]=r)}(n,t),function(e,t){var n=e.screenOrientation,r={}
null!=n&&(Object.keys(_).forEach((function(e){r[_[e]]=n[e]})),t[17]=r)}(n,t),function(e,t){var n=e.fonts,r={}
if(void 0!==n&&void 0!==n.lists&&null!==n&&null!==n.lists){for(var i=n.lists,a=[],o=0;o<i.length;o++){var s=i[o]
a[o]=A.hasOwnProperty(s)?A[s]:s}r[1]=a}null!=n&&(Object.keys(b).forEach((function(e){r[b[e]]=n[e]})),t[21]=r)}(n,t),function(e,t){var n=e.enumerateDevices,r=[]
if(null!=n){for(var i=function(){var e=n[a],t={}
Object.keys(E).forEach((function(n){t[E[n]]=e[n]})),r[a]=t},a=0;a<n.length;a++)i()
t[29]=r}}(n,t),function(e,t){var n=e.canvas,r={}
null!=n&&(Object.keys(y).forEach((function(e){r[y[e]]=n[e]})),t[31]=r)}(n,t),function(e,t){var n=e.mimetyps,r=[]
if(null!=n){for(var i=function(){var e=n[a],t={}
Object.keys(m).forEach((function(n){t[m[n]]=e[n]})),r[a]=t},a=0;a<n.length;a++)i()
t[33]=r}}(n,t),function(e,t){var n=e.signals,r={}
null!=n&&(Object.keys(g).forEach((function(e){r[g[e]]=n[e]})),t[40]=r)}(n,t),function(e,t){var n=e.networkInfo,r={}
null!=n&&(Object.keys(v).forEach((function(e){r[v[e]]=n[e]})),t[41]=r)}(n,t),function(e,t){var n=e.location,r={}
null!=n&&(Object.keys(p).forEach((function(e){r[p[e]]=n[e]})),t[42]=r)}(n,t),function(e,t){var n=e.FPDataCookie,r={}
null!=n&&(Object.keys(h).forEach((function(e){r[h[e]]=n[e]})),t[44]=r)}(n,t),Object.keys(R).forEach((function(e){t[R[e]]=n[e]})),t}catch(e){return e instanceof TypeError?console.error("Caught a TypeError:",e.message):console.error("Caught an unexpected error:",e),{}}}(t))
globalThis.apfcDfH=(a=s,f.compressToBase64(a)),this.syncCollectionHandler.setEncodedDNAPayload(globalThis.apfcDfH)}d.encryptWithKeyIds(JSON.stringify(t),"apfcDfPK","apfcDfPKV").then((function(e){globalThis.apfcDf=e,void 0!==o.syncCollectionHandler&&o.syncCollectionHandler.setEncryptedDNAPayload(JSON.stringify(e)),r("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}}.bind(this)
return(new t).getFeatures(a,n)}},{key:"intializeDfpIntegration",value:function(t,r){var a=n.getBcookie(),o=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a"
try{if(RegExp("^[\\w-]*$").test(a)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(a,"&instanceId=").concat(o),c=document.createElement("script")
c.setAttribute("src",s),c.setAttribute("id","dfpIframeScript"),c.addEventListener("load",(function(){return window.dfp.doFpt(document)})),document.getElementsByTagName("head")[0].appendChild(c)
var u={sessionId:a,instanceId:o}
e.prototype.populateFpDataCookie(u,r),globalThis.apfcDfDfp=JSON.stringify(u),void 0!==this.syncCollectionHandler&&this.syncCollectionHandler.setDfpJsPayload(globalThis.apfcDfDfp),t(i,globalThis.apfcDfDfp)}else{var l={error:"Invalid session_id: "+a}
t(i,JSON.stringify(l))}}catch(r){var d={error:r}
t(i,JSON.stringify(d))}globalThis.dfpIntegrationCompleted=!0}},{key:"initializeHumanIntegration",value:function(t,i){var a=this,o=i.treeId,s=Date.now(),c=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",u=n.getBcookie(),l="https://li.protechts.net/index.html?ts="+s+"&r_id="+encodeURIComponent(o)+"&app_id="+c+"&uc=scraping"
d.generateSha256HashOrDefault(u).then((function(n){""!==(u=n)&&(l+="&d_id="+u)
try{var d=document.createElement("iframe")
d.setAttribute("id","humanThirdPartyIframe"),d.setAttribute("src",l),d.setAttribute("sandbox","allow-same-origin allow-scripts"),d.setAttribute("aria-hidden","true"),d.style.height="0px",d.style.width="0px",d.style.border="none",d.style.position="absolute",d.style.left="-9999px",document.body.appendChild(d)
var f={app_id:c,ts:s,d_id:u,r_id:o,uc:"scraping"}
e.prototype.populateFpDataCookie(f,i),globalThis.apfcDfHuman=JSON.stringify(f),void 0!==a.syncCollectionHandler&&a.syncCollectionHandler.setHumanJsPayload(globalThis.apfcDfHuman),t(r,globalThis.apfcDfHuman)}catch(e){var h={error:e}
t(r,JSON.stringify(h))}})),globalThis.humanIntegrationCompleted=!0}},{key:"initializeHumanSecurityEnforcerIntegration",value:function(t,r){var i=this,a=r.treeId,s=Date.now(),c=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",u=n.getBcookie(),l="https://li.protechts.net/index_stg.html?ts="+s+"&r_id="+encodeURIComponent(a)+"&app_id="+c+"&uc=postAction"
d.generateSha256HashOrDefault(u).then((function(d){""!==(u=d)&&(l+="&d_id="+u)
try{var f=document.createElement("iframe")
f.setAttribute("id","humanSecurityEnforcerIframe"),f.setAttribute("src",l),f.setAttribute("sandbox","allow-same-origin allow-scripts"),f.setAttribute("aria-hidden","true"),f.style.height="0px",f.style.width="0px",f.style.border="none",f.style.position="absolute",f.style.left="-9999px",document.body.appendChild(f)
var h,p=!1,v={px3:null,pxhd:null,pxvid:null,pxcts:null},g=function(){if(!p){p=!0
var l=v.px3||n.getItem("_px3"),d=v.pxhd||n.getItem("_pxhd"),f=v.pxvid||n.getItem("_pxvid"),h=v.pxcts||n.getItem("pxcts"),g={app_id:c,ts:s,d_id:u,r_id:a,uc:"scraping",px3:l,pxhd:d,pxvid:f,pxcts:h}
e.prototype.populateFpDataCookie(g,r),globalThis.apfcDfHumanSecurityEnforcer=JSON.stringify(g),void 0!==i.syncCollectionHandler&&i.syncCollectionHandler.setHumanSecurityEnforcerJsPayload(globalThis.apfcDfHumanSecurityEnforcer),t(o,globalThis.apfcDfHumanSecurityEnforcer)}},m=function e(t){if("getHSCookiesResponse"===t.data.type){var n=t.data.cookies
n&&Array.isArray(n)&&n.length>0&&n.forEach((function(e){if(e.name&&e.value&&e.expires)try{"_px3"===e.name&&(v.px3=e.value),"_pxhd"===e.name&&(v.pxhd=e.value),"_pxvid"===e.name&&(v.pxvid=e.value),"pxcts"===e.name&&(v.pxcts=e.value),document.cookie="".concat(e.name,"=").concat(e.value,"; expires=").concat(e.expires,"; path=/")}catch(e){console.error("Error setting cookie:",e)}})),window.removeEventListener("message",e),clearTimeout(h),g()}else"cookie"===t.data.type&&t.data.name&&t.data.value&&t.data.expires&&(document.cookie="".concat(t.data.name,"=").concat(t.data.value,"; expires=").concat(t.data.expires,"; path=/"),"_px3"===t.data.name&&(v.px3=t.data.value),"_pxhd"===t.data.name&&(v.pxhd=t.data.value),"_pxvid"===t.data.name&&(v.pxvid=t.data.value),"pxcts"===t.data.name&&(v.pxcts=t.data.value))}
window.addEventListener("message",m),h=setTimeout((function(){window.removeEventListener("message",m),g()}),200),f.addEventListener("load",(function(){f.contentWindow.postMessage({type:"getHSCookies"},"*")}))}catch(e){var y={error:e.message||e.toString()||"Unknown error in Human Security Enforcer integration"}
t(o,JSON.stringify(y))}})),globalThis.humanSecurityEnforcerIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(e,t){var n=this,r=new MutationObserver((function(){var e=document.querySelector(".grecaptcha-badge")
e&&(e.style.display="none",r.disconnect())}))
r.observe(document.body,{childList:!0,subtree:!0})
var i="6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",o=document.createElement("script")
o.src="https://www.google.com/recaptcha/enterprise.js?render="+i,document.head.appendChild(o),!0===t.recaptchaV3OnPageLoadEnabled&&o.addEventListener("load",(function(){if(window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready){var t="onPageLoad"
window.grecaptcha.enterprise.ready((function(){window.grecaptcha.enterprise.execute(i,{action:t}).then((function(r){var i={token:r,expectedAction:t}
globalThis.apfcDfRV3=JSON.stringify(i),void 0!==n.syncCollectionHandler&&n.syncCollectionHandler.setReCaptchaV3Payload(globalThis.apfcDfRV3),e(a,globalThis.apfcDfRV3)})).catch((function(t){var n={error:t}
e(a,JSON.stringify(n))}))}))}}))}}]),e}()
le.prototype.reentry=function(e){globalThis.triggerApfc=null,new le(e)},le.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new le({globalIntegration:"enabled"},e,t)},le.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=le.prototype.extractDataCookie()
!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),le.prototype.reentryGlobalIntegration(e,t))}},le.prototype.extractDataCookie=function(){var e=n.getItem("li_apfcdc")
if(n.deleteItem("li_apfcdc"),!e||""===e)return null
var t=(e=atob(e)).split(":::")
if(t.length<5)return null
var r={}
return r.trackingId=t[0],r.memberId=t[1],r.sessionUrn=t[2],r.collectionType=t[3],r.apfcTypes=t[4].split(","),r},le.prototype.populateFpDataCookie=function(e,t){"object"==C(e)&&"object"==C(t)&&(e.FPDataCookie=t.fpDataCookie)},le.prototype.isProd=function(){return l()},le.prototype.isEmpty=function(e){return e&&0===Object.keys(e).length},"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&(void 0===globalThis.triggerDnaApfcEvent&&(globalThis.triggerDnaApfcEvent=le.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=le.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||5>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=5,globalThis.triggerDnaApfcEventOnDemandVersioned=le.prototype.reentryGlobalIntegrationOnDemand),new le)}()
var cs=function(){function e(){S(this,e)}return O(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemandVersioned&&globalThis.triggerDnaApfcEventOnDemandVersioned(t,e)}catch(e){}}}]),e}(),us=function(){function e(t,n,r,i,a,o,s,c,u,l){S(this,e),D(this,"hostApis",void 0),D(this,"statics",void 0),D(this,"options",void 0),D(this,"allowTimingOrigin",void 0),D(this,"fireResourceLoadEvent",void 0),D(this,"isTracerEnabled",void 0),D(this,"responseRleCache",void 0),D(this,"fireApfcEvent",void 0),D(this,"abuseDeviceSignalCollectionConfig",void 0),D(this,"trackingEndpoint",void 0),D(this,"collectResourceTimings",void 0),D(this,"collectCdnData",void 0),D(this,"perfObserver",void 0),D(this,"renderTimings",new Map),D(this,"urlToTreeId",new Map),D(this,"cdnDataProvider",void 0),D(this,"observables",new Do),D(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireResourceLoadEvent=a,this.isTracerEnabled=o,this.responseRleCache=s,this.fireApfcEvent=c,this.abuseDeviceSignalCollectionConfig=u,this.trackingEndpoint=l,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new ss(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return O(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(es=es||t.createElement("a")).href=e,es.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:ns(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e)
if(r&&(r.renderEnd=r.renderEnd||ns(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void pn("ViewLoadEvent",So)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,r=e.renderEnd,i=void 0===r?-1:r,a=e.renderStart,o=void 0===a?-1:a,s=[]
return s.push({viewProgressType:"RENDER_START",timestamp:o}),s.push({viewProgressType:"RENDER_END",timestamp:i}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance
this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e
null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n)
if(r)return i
var a=this.collectAsynchronousData()
return"then"in a?a.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,r=Object.create(null)
r.pageKey=n,r.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",r.networkInformationMetrics=this.snapshot.networkInformationMetrics
var i=this.statics,a=i.webUIFramework,o=i.timeSource,s=i.isSinglePageApp,c=i.appRenderMode,u=i.isAppRenderFailed,l=i.isFromServiceWorker,d=i.treeId
return r.treeId=d,r.browserPageLoadStartContext={webUIFramework:a,timeSource:o,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:u,isFromServiceWorker:l},r}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null)
t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null)
var r=e.isInitial,i=e.immediate,a=this.hostApis.assign
if(r){var o=ds(this.hostApis.performance),s=o.htmlMetrics,c=o.redirectCount,u=o.navigationType,l=o.workerStart
s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),a(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(o,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(o,"navigationType")&&(n.navigationType=u),n.workerStart=null!=l?l:0,No.forEach((function(e){Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])})),a(t.navigationTiming,n)}if(!i){var d=this.collectAsynchronousData()
if("then"in d)return d.then((function(e){return a(t.cdnData,e.cdnData),t}))}var f=this.collectAsynchronousData(!0)
return a(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,r=e.transferSize,i=e.initiatorType,a=e.nextHopProtocol,o=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,u={}
u.resourceKey=n,u.isNetwork=!!r&&0!==r,u.loadType=i||"unknown",u.timeOrigin=t
var l=[]
Object.keys(Ao).forEach((function(t){var n
t in To&&void 0!==e[t]&&l.push({resourceProgressType:Ao[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),u.resourceProgressStates=l
var d={},f=Co[a]
d.nextHopProtocol=null!=f?f:"UNKNOWN",d.transferSize=r,d.encodedBodySize=o,d.decodedBodySize=s,u.resourceNetworkContext=d,u.requestStart=c
try{var h,p,v=new URL(n),g=v.pathname+v.search+v.hash
return null===(h=this.responseRleCache)||void 0===h||h.offerResourceLoadEvent(g,u),null===(p=this.responseRleCache)||void 0===p?void 0:p.flushCacheByUrl(g)}catch(e){var m,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n)
return e instanceof Error?(e.message="".concat(y," ").concat(e.message),pn("ResourceLoadEvent",e)):pn("ResourceLoadEvent",y),null===(m=this.responseRleCache)||void 0===m?void 0:m.flushCacheByUrl()}}},{key:"reset",value:function(){var e
this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,r=t.PerformanceObserver,i=Object.create(null)
return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=as(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,ds(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])}
if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData()
n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[]
return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?cn(i,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
try{var n=this.abuseDeviceSignalCollectionConfig||{},r=n.isDnaIntegrationLixEnabled,i=n.isHumanIntegrationLixEnabled,a=n.isDfpIntegrationLixEnabled,o=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,u=n.isSyncFingerprintingWithCbLixEnabled,l=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled,f=n.networkInterceptorActionTypes,h=n.isHumanSecurityEnforcerIntegrationLixEnabled,p=n.isRecaptchaV3OnPageLoadEnabled
if(i||a||r||c||u||l||d||h||p){var v,g,m={treeId:null!==(v=null===(g=this.statics.treeId)||void 0===g?void 0:g.toString())&&void 0!==v?v:"",humanIntegrationEnabled:i,dfpIntegrationEnabled:a,dnaIntegrationEnabled:r,samplingTimeWindowInMillis:o,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:u,recaptchaV3IntegrationEnabled:l,enableNetworkInterceptor:d,networkInterceptorActionTypes:f,humanSecurityEnforcerIntegrationEnabled:h,recaptchaV3OnPageLoadEnabled:p};(!t||t&&s||c||u)&&cs.collectFeatures(m,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this
this.perfObserver=new e((function(e){var r=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization
r&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var i=e.entryType,a=e.name,o=e.startTime,s=e.duration
"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:a,startTime:o,duration:s}),"mark_meaningful_paint_end"!==a||r||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===i?n.observables.userTimingEntries.push({entryType:"MEASURE",name:a,startTime:o,duration:s}):"longtask"===i&&n.observables.longTasks.push({duration:s,name:a,startTime:o})}))})),this.observables.userTimingEntries=as(this.hostApis.performance,this.options,!1)
var r=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&r.push("resource"),this.options["user-timing-mark-enabled"]&&r.push("mark"),this.options["user-timing-measure-enabled"]&&r.push("measure"),this.perfObserver.observe({entryTypes:r})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this
e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance
"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this
if(this.collectResourceTimings){this.options["enable-otel"]&&wt.emit(lo.INTERNAL_OTEL_RESOURCE,{resourceTiming:e}),this.observables.resourceTimingEntries.push(e)
var r=-1!==e.name.indexOf(this.trackingEndpointPattern)
if(this.isTracerEnabled&&!r&&!function(e){for(var t=0,n=ts;t<n.length;t++){var r=n[t]
if(r.strToFilter&&-1!==e.indexOf(r.strToFilter))return!0
if(r.pattern&&r.pattern.test(e))return!0}return!1}(e.name)){var i=this.collectResourceLoadEvent(e,t)
i&&i.forEach((function(e){return n.fireResourceLoadEvent(e)}))}}this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""}
return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:os(this.renderTimings),networkInformationMetrics:ls(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function ls(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 ds(e){if(!e)return{navigationTimingApi:!1}
var t=Object.create({})
if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0]
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 r=e.timing,i=e.navigation
return r&&i?(t.navigationTimingApi=!0,No.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var fs=function(){function e(t,n,r){S(this,e),D(this,"featureName",void 0),D(this,"trackingCore",void 0),D(this,"rumConfig",void 0),D(this,"observing",!1),D(this,"basePageTreeId",void 0),D(this,"startPageInstance",void 0),D(this,"startMemory",void 0),D(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return O(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory()
r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||Yt(U),this.startMemory=r,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:rs(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize
return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}()
D(fs,"checkpoints",[1,3,10,30,90,180,300])
var hs,ps,vs,gs,ms,ys=O((function e(t,n,r){S(this,e),D(this,"webUIFramework",void 0),D(this,"timeSource",void 0),D(this,"isSinglePageApp",void 0),D(this,"appRenderMode",void 0),D(this,"isAppRenderFailed",void 0),D(this,"pageLoadMode","INITIAL"),D(this,"isSSL",void 0),D(this,"treeId",void 0),D(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),Es=function(){function e(t){S(this,e),D(this,"isPEMTracerEnabled",void 0),D(this,"responseContextMap",new Map),D(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return O(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n
null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var r=new mn((function(e,t){return e.requestTime<t.requestTime}))
r.heapPush(t),this.responseContextMap.set(e,r)}}},{key:"offerResourceLoadEvent",value:function(e,t){if(this.resourceLoadEventsMap.has(e)){var n
null===(n=this.resourceLoadEventsMap.get(e))||void 0===n||n.heapPush(t)}else{var r=new mn((function(e,t){return e.requestStart<t.requestStart}))
r.heapPush(t),this.resourceLoadEventsMap.set(e,r)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),r=null==t?void 0:t.heappop(),i=null==n?void 0:n.heappop()
return this.mergeRleAndRes(r,i)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart
var n=I(e,c),r=(t.requestTime,t.viewNames),i=t.requestType,a=t.requestTag,o=I(t,u)
return n.targetViewNames=r||[],i&&(n.requestType=i),a&&(n.requestTag=a),n.resourceNetworkContext=_(_({},n.resourceNetworkContext),o),gn(n)}}},{key:"deleteEntryByRequestUrl",value:function(e){this.resourceLoadEventsMap.delete(e),this.responseContextMap.delete(e)}},{key:"canFlush",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e)
return n&&t&&n.heapsize()>0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[]
if(e){var n,r=k(e)
try{for(r.s();!(n=r.n()).done;){var i=n.value
t=[].concat(w(t),w(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var a=this.resourceLoadEventsMap.keys()
if(a){var o,s=k(a)
try{for(s.s();!(o=s.n()).done;){var c,u=o.value,d=null===(c=this.resourceLoadEventsMap.get(u))||void 0===c?void 0:c.heapClear()
d&&(t=[].concat(w(t),w(d.map((function(e){return e.requestStart,gn(I(e,l))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[]
if(!e)return n
if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,gn(I(e,d))})))||n
if(this.canFlush(e)){for(var r=this.responseContextMap.get(e);r&&r.heapsize()>0;){var i=this.mergeAndConsume(e)
i&&n.push(i)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),Ts=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},bs=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return
var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}))
return n.observe({type:e,buffered:!0}),n}}catch(e){}},_s=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}
addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Is=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ks=function(e,t,n){var r
return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},ws=-1,Ns=function(){return"hidden"===document.visibilityState?0:1/0},As=function(){_s((function(e){var t=e.timeStamp
ws=t}),!0)},Cs=function(){return ws<0&&(ws=Ns(),As(),Is((function(){setTimeout((function(){ws=Ns(),As()}),0)}))),{get firstHiddenTime(){return ws}}},Ss=!1,Rs=-1,Os=function(e,t){Ss||(function(e,t){var n,r=Cs(),i=Ts("FCP"),a=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},o=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=o?null:bs("paint",a);(o||s)&&(n=ks(e,i,t),o&&a(o),Is((function(r){i=Ts("FCP"),n=ks(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){Rs=e.value})),Ss=!0)
var n,r=function(t){Rs>-1&&e(t)},i=Ts("CLS",0),a=0,o=[],s=function(e){if(!e.hadRecentInput){var t=o[0],r=o[o.length-1]
a&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>i.value&&(i.value=a,i.entries=o,n())}},c=bs("layout-shift",s)
c&&(n=ks(r,i,t),_s((function(){c.takeRecords().map(s),n(!0)})),Is((function(){a=0,Rs=-1,i=Ts("CLS",0),n=ks(r,i,t)})))},Ds={passive:!0,capture:!0},Ms=new Date,Ps=function(e,t){hs||(hs=t,ps=e,vs=new Date,Bs(removeEventListener),Ls())},Ls=function(){if(ps>=0&&ps<vs-Ms){var e={entryType:"first-input",name:hs.type,target:hs.target,cancelable:hs.cancelable,startTime:hs.timeStamp,processingStart:hs.timeStamp+ps}
gs.forEach((function(t){t(e)})),gs=[]}},xs=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp
"pointerdown"==e.type?function(e,t){var n=function(){Ps(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Ds),removeEventListener("pointercancel",r,Ds)}
addEventListener("pointerup",n,Ds),addEventListener("pointercancel",r,Ds)}(t,e):Ps(t,e)}},Bs=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,xs,Ds)}))},Us=function(e,t){var n,r=Cs(),i=Ts("FID"),a=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},o=bs("first-input",a)
n=ks(e,i,t),o&&_s((function(){o.takeRecords().map(a),o.disconnect()}),!0),o&&Is((function(){var r
i=Ts("FID"),n=ks(e,i,t),gs=[],ps=-1,hs=null,Bs(addEventListener),r=a,gs.push(r),Ls()}))},Fs={},Hs=function(e,t){var n,r=Cs(),i=Ts("LCP"),a=function(e){var t=e.startTime
t<r.firstHiddenTime&&(i.value=t,i.entries.push(e),n())},o=bs("largest-contentful-paint",a)
if(o){n=ks(e,i,t)
var s=function(){Fs[i.id]||(o.takeRecords().map(a),o.disconnect(),Fs[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),_s(s,!0),Is((function(r){i=Ts("LCP"),n=ks(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,Fs[i.id]=!0,n(!0)}))}))}))}},Vs=["LCP","FID","CLS"],Ks={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Gs={},Ws=function(){var e
if(!Un)return""
var t=window.performance,n=void 0
if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),js=!1,qs=new Set,zs={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function Xs(){var e=!0===window.__test__resetWebVitalsState
if(!js||e){e&&(qs=new Set),Vs.forEach(Js)
var t=Symbol()
ms=t,[Hs,Us,Os].forEach((function(e){return e(Ys.bind(null,t),!0)})),[Hs,Us,Os].forEach((function(e){return e(Qs.bind(null,t))})),js=!0}}function Js(e){Gs[e]={name:e,verboseName:Ks[e]||e,value:-1,updateHistory:[]}
var t=zs[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Gs[e].value=-2)}function Ys(e,t){if(e===ms){var n=Gs[t.name],r=rs()
n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),qs.forEach((function(e){return e(t,r,!1)}))}}function Qs(e,t){e===ms&&qs.forEach((function(e){return e(t,rs(),!0)}))}var Zs,$s=function(){function e(t,n){var r=this
S(this,e),D(this,"basePageTreeId",void 0),D(this,"basePageKey",void 0),D(this,"observing",!1),D(this,"appContextMap",new Map),D(this,"rumConfig",void 0),D(this,"trackingCore",void 0),D(this,"onMetricUpdate",(function(e,t,n){var i
r.observing&&(n?r.reportMetric(e.name):r.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=r.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return O(e,[{key:"startObserving",value:function(){var e,t,n=this
Xs(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",Vs.forEach((function(e){var t;-2===(null===(t=Gs[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,qs.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,qs.delete(e)}},{key:"reportMetric",value:function(e){var t=Gs[e]
if(t){var n={name:Ks[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var r=function(e,t,n,r,i){var a={basePageTreeId:e,basePageKey:t,basePageUrl:Ws},o=null
switch(n.name){case"LCP":o=function(e,t){var n
if(0===e.updateHistory.length)return null
var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,a=i[i.length-1],o={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:is(a.element),renderTime:Math.round(a.renderTime),loadTime:Math.round(a.loadTime),size:Math.round(a.size)}
return a.url&&(o.url=a.url),o}(n,r)
break
case"FID":o=function(e,t){var n
if(0===e.updateHistory.length)return null
var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,a=i[i.length-1]
return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(a.processingStart),processingEnd:Math.round(a.processingEnd),target:is(a.target)}}(n,r)
break
case"CLS":o=function(e,t){if(0===e.updateHistory.length)return null
var n=e.updateHistory.map((function(e){return e.data.entries})).flat()
if(0===n.length)return null
var r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),a=null
r&&r.sources&&r.sources.length&&(a=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})))
var o,s=t.get(i.time)
return a&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":is(null===(o=a)||void 0===o?void 0:o.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(o){var s={}
return i(s,a,o),s}return a}(this.basePageTreeId,this.basePageKey,t,this.appContextMap,this.trackingCore.host.api.assign)
n.metadata=function(e){var t={}
return Object.keys(e).forEach((function(n){var r=e[n]
t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(r)
var i={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]}
if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},i),this.rumConfig["enable-otel"])if("LCP"===e){var a={value:n.longValue,metadata:r}
wt.emit(lo.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,a)}else if("CLS"===e){var o={value:n.doubleValue,metadata:r}
wt.emit(lo.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,o)}else if("FID"===e){var s={value:n.longValue,metadata:r}
wt.emit(lo.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),ec={CALL_TREE_ID:"x-li-uuid",POINT_OF_PRESENCE_ID:"x-li-pop",MICROSOFT_EDGE_REFERENCE:"x-msedge-ref",FABRIC:"x-li-fabric",PEM_RESPONSE_METADATA:"x-li-pem-resp-meta",CONTENT_TYPE:"content-type",CDN_CACHE:"x-cache"},tc=function(){function e(t){S(this,e),D(this,"_callTreeId",void 0),D(this,"_fabric",void 0),D(this,"_msEdgeRef",void 0),D(this,"_pointOfPresenceId",void 0),D(this,"_responseMetadata",void 0),D(this,"_contentType",void 0),D(this,"_cdnCacheMetadata",void 0),D(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(ec.CALL_TREE_ID)||null,this._pointOfPresenceId=n.get(ec.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=n.get(ec.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=n.get(ec.FABRIC)||null,this._responseMetadata=n.get(ec.PEM_RESPONSE_METADATA)||null,this._contentType=n.get(ec.CONTENT_TYPE)||null,this._cdnCacheMetadata=n.get(ec.CDN_CACHE)||null,this._downstreamAvailability=function(e){if(null==e)return 1
var t,n=k(e.split(","))
try{for(n.s();!(t=n.n()).done;){var r=t.value.split("=",2)
if(2===r.length&&"availability"===r[0]){var i=parseFloat(r[1])
if(i>=0&&i<=1)return i}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return O(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}()
function nc(e,t,n){if(t){if(429===t||999===t)return Zs.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Zs.BLOCKED_BY_CLIENT_PROXY
if((r=t)>=400&&r<500)return Zs.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Zs.SERVER_ERROR
if(e.pointOfPresenceId)return Zs.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return Zs.TRAFFIC_AFD_TO_LI_POP_ERROR}return Zs.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Zs.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var r
if(n instanceof Error){if("AbortError"===n.name)return Zs.CLIENT_ABORTED
if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return Zs.NETWORK_ERROR}else if(function(e){return!!e&&("string"==typeof e.statusText||"number"==typeof e.status||"number"==typeof e.readyState)}(n)){if("timeout"===n.statusText)return Zs.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return Zs.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return Zs.NETWORK_ERROR}return Zs.UNCLASSIFIED}function rc(e,t,n,r,i,a){var o=new tc(r),s=a||nc(o,n,i),c=null
return s&&(c={errorType:s},s===Zs.UNCLASSIFIED&&i&&(c.errorMessage=i.message,function(e,t,n){var r=["tracer-unclassified-error"]
null==n||n.forEach((function(e){return r.push("target-view-name-".concat(e))})),pn("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),r)}(i,r,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:c||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(Zs||(Zs={}))
var ic,ac=function(){function e(t,n,r){var i,a,o,s,c,u,l=this
S(this,e),D(this,"core",void 0),D(this,"config",void 0),D(this,"collector",void 0),D(this,"boomerangStart",-1),D(this,"webVitalsObserver",void 0),D(this,"appMemoryObserver",void 0),D(this,"pageMemoryObserver",void 0),D(this,"liveTokens",new Set),D(this,"stateWM",new WeakMap),D(this,"activeToken",void 0),D(this,"isInitial",void 0),D(this,"pageLoadId",void 0),D(this,"initialResourcesEvents",[]),D(this,"responseRleCache",void 0),D(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),D(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),D(this,"isTracerEnabled",void 0),D(this,"isPEMTracerEnabled",void 0),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n])
return e}(r.host.api.assign({},wo),n)
var d="enabled"===(null===(i=(a=r.host).__getLixTreatment)||void 0===i?void 0:i.call(a,"pemberly.tracking.time-origin-epoch-time")),f=this.getAbuseDeviceSignalCollectionConfig(r),h=null===(o=(s=r.host).__getLixTreatment)||void 0===o?void 0:o.call(s,"pemberly.tracking.generic-tracers"),p=!!h&&Oo.test(h)
this.isTracerEnabled=p||this.config["enable-tracking-3"]
var v="enabled"===(null===(c=(u=r.host).__getLixTreatment)||void 0===c?void 0:c.call(u,"pemberly.tracking.pem-tracers"))
this.isPEMTracerEnabled=v||this.config["enable-pem-tracking-3"],this.responseRleCache=new Es(this.isPEMTracerEnabled),this.collector=new us(r.host.api,new ys(t,this.config,r.host),this.config,d,(function(e){return l.fireResourceLoadEvent(e,l.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,f,r.host.endpoint),this.collector.startObserving(),wt.before(Et,this.beforeHideHandlerBound)}return O(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,r=this.collector.recordRenderEnd(e,this.isTracerEnabled,n)
r&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},r)}},{key:"provisionNetworkResponse",value:function(e,t){var n,r,i=this
null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t)
var a=null===(r=this.responseRleCache)||void 0===r?void 0:r.flushCacheByUrl(e)
null==a||a.forEach((function(e){i.fireResourceLoadEvent(e,i.activeToken)}))}},{key:"start",value:function(e){var t,n
!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset()
var r,i=Object.create(null),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"))
return this.activeToken=i,this.liveTokens.add(i),this.isTracerEnabled?(this.stateWM.set(i,{isInitial:this.isInitial,startTime:ns(this.core.host.api.performance,a),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:ns(this.core.host.api.performance,a)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new fs("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new fs("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new $s(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0
if(e&&this.activeToken&&this.activeToken===e){var o=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=ns(this.core.host.api.performance,s)
o.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:a},this.isTracerEnabled&&a&&(o.pageKey=a)
var u=this.activeToken,l=this.isTracerEnabled?5e3:this.config["beacon-timeout"]
o.fireRumEventTimeout=setTimeout((function(){if(r.isTracerEnabled){r.flushResourceLoadEvents(u)
var e=r.collector.collectPageLoadEndData({isInitial:o.isInitial})
"then"in e?e.then((function(e){r.firePageLoadEndEvent(e,u)})):r.firePageLoadEndEvent(e,u)}var t=r.collector.collect({isInitial:o.isInitial})
"then"in t?t.then((function(e){r.fireRumEvent(e,u)})):r.fireRumEvent(t,u)}),l),this.activeToken=void 0}else pn("rum-end",Ro)}},{key:"onDataResponse",value:function(e,t,n,r,i,a,o){var s=rc(t,n,r,i,a,null==o?void 0:o.errorTypeOverride)
if(null!=o&&o.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,_({nextHopProtocol:yo.UNKNOWN},s))
this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){pn("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){var t=this.stateWM.get(e)
this.pageLoadId=Ht(),t.pageLoadId=this.pageLoadId
var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey})
n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else pn("PageLoadStartEvent",Ro)}},{key:"destroy",value:function(){var e,t,n
wt.offBefore(Et,this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken
return n&&(t=this.stateWM.get(n).pageLoadId),t}},{key:"abort",value:function(e){var t
if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid")
if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended")
this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this
this.liveTokens.forEach((function(t){var n=e.stateWM.get(t)
if(n.endProps){if(e.isTracerEnabled){var r=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0})
e.firePageLoadEndEvent(r,t),e.flushResourceLoadEvents(t)}var i=e.collector.collect({isInitial:n.isInitial,immediate:!0})
e.fireRumEvent(i,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,r=this,i=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache()
null==i||i.map((function(t){r.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,a=r.endProps,o=r.pageLoadId,s=r.pageKey
if(a){var c=a.renderCompleteTime,u=a.isImpactedByHiddenWindow
if(o?e.pageLoadId=o:pn("PageLoadEndEvent",So),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=u),e.navigationTiming){var l,d=null===(l=e.navigationTiming)||void 0===l?void 0:l.navigationStart,f=this.boomerangStart=d||this.boomerangStart,h=d||i,p=c-h
e.navigationTiming.boomerangStart=f,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=h,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)}))}else this.abort(t)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this
if(this.isTracerEnabled){var r,i=null!==(r=this.getPageLoadIdFromState(t))&&void 0!==r?r:this.pageLoadId
if(!i)return void this.initialResourcesEvents.push(e)
this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=i,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=i,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,a=r.endProps
if(a){var o=a.renderCompleteTime,s=a.isImpactedByHiddenWindow,c=a.rumKey,u=this.boomerangStart=e.navigationStart||this.boomerangStart,l=e.navigationStart||i,d=o-l,f=this.config["app-version"]
this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:s,appVersion:f,timeDone:d,navigationStart:l,boomerangStart:u,renderCompleteTime:o},e)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,r=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),i={issueTime:0,browserId:""}
try{i=vn(r)}catch(e){}var a={type:e,bsCookieInfo:i,payload:t}
this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},a)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,r=t.viewNames,i=t.requestType,a={resourceKey:e,isNetwork:!0,targetViewNames:r||[],loadType:"serversideresponse",resourceNetworkContext:_({},I(t,f)),resourceProgressStates:[],timeOrigin:n}
return i&&(a.loadType=i),a}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,r,i,a,o,s,c,u,l,d,f,h,p,v,g,m,y,E,T,b,_,I,w,N,A,C,S,R,O,D,M,P,L,x,B,U,F,H,V,K,G,W,j,q,z=(null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"))||(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.pemberlyFireApfcEventLixValue),X=!1,J=!1,Y=!1,Q=!1,Z=!1,$=!1,ee=new Set,te=!1
X=X||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.webviewDnaMemberLixTreatment)||"enabled"===(null===(a=e.host.abuseDeviceSignalCollectionConfig)||void 0===a?void 0:a.dnaMemberLixTreatment)||"enabled"===(null===(o=e.host.abuseDeviceSignalCollectionConfig)||void 0===o?void 0:o.pemberlyFireApfcEventLixValue),J=J||"enabled"===(null===(s=(c=e.host).__getLixTreatment)||void 0===s?void 0:s.call(c,"pemberly.tracking.human.integration"))||"enabled"===(null===(u=e.host.abuseDeviceSignalCollectionConfig)||void 0===u?void 0:u.webviewHumanMemberLixTreatment)||"enabled"===(null===(l=e.host.abuseDeviceSignalCollectionConfig)||void 0===l?void 0:l.humanMemberLixTreatment)||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.pemberlyHumanIntegrationLixValue),Y=Y||"enabled"===(null===(f=(h=e.host).__getLixTreatment)||void 0===f?void 0:f.call(h,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(p=e.host.abuseDeviceSignalCollectionConfig)||void 0===p?void 0:p.webviewDfpMemberLixTreatment)||"enabled"===(null===(v=e.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.dfpMemberLixTreatment)||"enabled"===(null===(g=e.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.pemberlyDfpIntegrationLixValue)
var ne=e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(m=(y=e.host).__getLixTreatment)||void 0===m?void 0:m.call(y,"fingerprinting.collection.skip.performance.marker.check"))||"enabled"===(null===(E=e.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.pemberlyDisablePerfMarkerForSignalCollectionLixValue),re=null===(T=e.host.abuseDeviceSignalCollectionConfig)||void 0===T?void 0:T.samplingTimeWindowInMillis
$=$||"enabled"===(null===(b=(_=e.host).__getLixTreatment)||void 0===b?void 0:b.call(_,"pemberly.web.ondemand"))||"enabled"===(null===(I=e.host.abuseDeviceSignalCollectionConfig)||void 0===I?void 0:I.pemberlyOnDemandIntegrationLixValue)
var ie="enabled"===(null===(w=(N=e.host).__getLixTreatment)||void 0===w?void 0:w.call(N,"sync.apfc.headers"))||"enabled"===(null===(A=e.host.abuseDeviceSignalCollectionConfig)||void 0===A?void 0:A.syncFingerprintingEnabledWithHeadersLixTreatment)||"enabled"===(null===(C=e.host.abuseDeviceSignalCollectionConfig)||void 0===C?void 0:C.pemberlySyncFingerprintingWithHeadersLixValue),ae="enabled"===(null===(S=(R=e.host).__getLixTreatment)||void 0===S?void 0:S.call(R,"sync.apfc.couchbase"))||"enabled"===(null===(O=e.host.abuseDeviceSignalCollectionConfig)||void 0===O?void 0:O.syncFingerprintingEnabledWithCbLixTreatment)||"enabled"===(null===(D=e.host.abuseDeviceSignalCollectionConfig)||void 0===D?void 0:D.pemberlySyncFingerprintingWithCbLixValue)
Q=Q||"enabled"===(null===(M=(P=e.host).__getLixTreatment)||void 0===M?void 0:M.call(P,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(L=e.host.abuseDeviceSignalCollectionConfig)||void 0===L?void 0:L.recaptchaV3IntegrationLixValue)||"enabled"===(null===(x=e.host.abuseDeviceSignalCollectionConfig)||void 0===x?void 0:x.pemberlyRecaptchaV3IntegrationLixValue),Z=Z||"enabled"===(null===(B=(U=e.host).__getLixTreatment)||void 0===B?void 0:B.call(U,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(F=e.host.abuseDeviceSignalCollectionConfig)||void 0===F?void 0:F.networkInterceptorLixValue)||"enabled"===(null===(H=e.host.abuseDeviceSignalCollectionConfig)||void 0===H?void 0:H.pemberlyNetworkInterceptorLixValue),te=te||"enabledV2"===(null===(V=(K=e.host).__getLixTreatment)||void 0===V?void 0:V.call(K,"pemberly.tracking.human.integration"))||"enabledV2"===(null===(G=e.host.abuseDeviceSignalCollectionConfig)||void 0===G?void 0:G.webviewHumanMemberLixTreatment)||"enabledV2"===(null===(W=e.host.abuseDeviceSignalCollectionConfig)||void 0===W?void 0:W.humanMemberLixTreatment)||"enabledV2"===(null===(j=e.host.abuseDeviceSignalCollectionConfig)||void 0===j?void 0:j.pemberlyHumanIntegrationLixValue)
var oe="enabled"===(null===(q=e.host.abuseDeviceSignalCollectionConfig)||void 0===q?void 0:q.recaptchaV3ExecuteOnPageLoadLixValue)
if("enabled"===z)X=!0
else if(null!=z&&z.startsWith("v2:")){var se=z.split(":")
if(2===se.length){var ce=new Set(se[1].split("."))
X=X||ce.has("a"),Q=Q||ce.has("b"),Z=Z||ce.has("c"),J=J||ce.has("d"),Y=Y||ce.has("e"),$=$||ce.has("f")
var ue,le=k(ce)
try{for(le.s();!(ue=le.n()).done;){var de=ue.value
if(de.startsWith("g-")){var fe=de.slice(2)
fe&&ee.add(fe)}}}catch(e){le.e(e)}finally{le.f()}te=J||ce.has("h")}}return{isDnaIntegrationLixEnabled:X,isHumanIntegrationLixEnabled:J,isDfpIntegrationLixEnabled:Y,disablePerfMarkerOptimization:ne,samplingTimeWindowInMillis:re,isOnDemandFingerprintingEnabled:$,isSyncFingerprintingWithHeadersLixEnabled:ie,isSyncFingerprintingWithCbLixEnabled:ae,isRecaptchaV3IntegrationEnabled:Q,isNetworkInterceptorEnabled:Z,networkInterceptorActionTypes:ee,isHumanSecurityEnforcerIntegrationLixEnabled:te,isRecaptchaV3OnPageLoadEnabled:oe}}}]),e}(),oc="undefined"!=typeof window&&"undefined"!=typeof performance,sc="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG"),cc=function(){function e(t,n){S(this,e),D(this,"trackingCore",void 0),D(this,"endPageInstance",void 0),D(this,"startPageInstance",void 0),D(this,"featureIdentifier",void 0),D(this,"marks",[]),D(this,"spans",[]),D(this,"spanStarts",new Map),D(this,"started",!1),D(this,"ended",!1),D(this,"featureKey",void 0),D(this,"productName",void 0),D(this,"flushOnEnd",void 0),D(this,"basePageTreeId",void 0),D(this,"debounceFlush",void 0),D(this,"disableAutoFlush",void 0),D(this,"isCanceled",!1),D(this,"isClosed",!1),this.trackingCore=t
var r=n.featureKey,i=n.productName,a=n.flushDebounceMilliseconds,o=n.flushOnEnd
this.featureKey=r,this.productName=i,this.flushOnEnd=o
var s=i?"::".concat(i):""
this.featureIdentifier="".concat(r).concat(s)
var c=void 0!==a?a:3e3
c>0&&(this.debounceFlush=function(e,t,n){var r,i,a
void 0===t&&(t=50),void 0===n&&(n={})
var o=null!=(r=n.isImmediate)&&r,s=null!=(i=n.callback)&&i,c=n.maxWait,u=Date.now(),l=[]
function d(){if(void 0!==c){var e=Date.now()-u
if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this
return new Promise((function(r,i){var c=o&&void 0===a
if(void 0!==a&&clearTimeout(a),a=setTimeout((function(){if(a=void 0,u=Date.now(),!o){var r=e.apply(n,t)
s&&s(r),l.forEach((function(e){return(0,e.resolve)(r)})),l=[]}}),d()),c){var f=e.apply(n,t)
return s&&s(f),r(f)}l.push({resolve:r,reject:i})}))}
return f.cancel=function(e){void 0!==a&&clearTimeout(a),l.forEach((function(t){return(0,t.reject)(e)})),l=[]},f}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}return O(e,[{key:"start",value:function(e){var t
if(oc){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"))
this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t
if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'))
if(oc){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"))
this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){oc&&(this.marks.push({name:e,startTime:rs()}),sc&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))),this.handleNewData())}},{key:"spanStart",value:function(e){oc&&(this.spanStarts.set(e,rs()),sc&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(oc&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e
this.spans.push({name:r,startTime:n,duration:rs()-n}),sc&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end"))),this.handleNewData()}}},{key:"clearSpan",value:function(e){oc&&this.spanStarts.has(e)&&this.spanStarts.delete(e)}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return rs()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}}
this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||Yt(U),r={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans}
return e.productName&&(r.productName=e.productName),e.basePageTreeId&&(r.basePageTreeId=e.basePageTreeId),r}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(oc){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'))
if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}]),e}()
!function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(ic||(ic={}))},198(e,t,n){"use strict"
n.r(t),n.d(t,{CI:()=>i,DEBUG:()=>r})
const r=!1,i=!1},230(e,t,n){"use strict"
function r(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<=t}n.r(t),n.d(t,{default:()=>r})},242(e){"use strict"
e.exports=JSON.parse('{"$schema":"../../../schemas/token-set.json","breakpoint-xxs":{"type":"breakpoint","value":{"type":"size","value":0,"unit":"pixel"},"private":false},"breakpoint-xs":{"type":"breakpoint","value":{"type":"size","value":576,"unit":"pixel"},"private":false},"breakpoint-s":{"type":"breakpoint","value":{"type":"size","value":768,"unit":"pixel"},"private":false},"breakpoint-m":{"type":"breakpoint","value":{"type":"size","value":992,"unit":"pixel"},"private":false},"breakpoint-l":{"type":"breakpoint","value":{"type":"size","value":1200,"unit":"pixel"},"private":false},"breakpoint-xl":{"type":"breakpoint","value":{"type":"size","value":1440,"unit":"pixel"},"private":false},"breakpoint-xxl":{"type":"breakpoint","value":{"type":"size","value":1680,"unit":"pixel"},"private":false},"breakpoint-xxxl":{"type":"breakpoint","value":{"type":"size","value":1920,"unit":"pixel"},"private":false}}')},310(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>l})
var r=n(663),i=n.n(r),a=n(336),o=n.n(a),s=n(603)
function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){}class l extends(o()){constructor(){super(...arguments),c(this,"tagName",u),c(this,"componentClass",void 0)}compute(e,t){(0,s.assert)("The `element` helper takes a single positional argument",1===e.length),(0,s.assert)("The `element` helper does not take any named arguments",0===Object.keys(t).length)
let n=e[0]
return n!==this.tagName&&(this.tagName=n,"string"==typeof n?this.componentClass=class extends(i()){constructor(){super(...arguments),c(this,"tagName",n)}}:(this.componentClass=void 0,(0,s.runInDebug)((()=>{let e="The argument passed to the `element` helper must be a string"
try{e+=" (you passed `".concat(n,"`)")}catch(e){}(0,s.assert)(e,null==n)})))),this.componentClass}}},379(e,t,n){"use strict"
function r(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>=t}n.r(t),n.d(t,{default:()=>r})},393(e,t,n){"use strict"
n.r(t),n.d(t,{Leaf:()=>r,RadixTrie:()=>i,SequenceTracker:()=>h,eventToHotkeyString:()=>s,install:()=>b,normalizeHotkey:()=>l,normalizeSequence:()=>p,uninstall:()=>_})
class r{constructor(e){this.children=[],this.parent=e}delete(e){const t=this.children.indexOf(e)
return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class i{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let t=this
for(let n=0;n<e.length;n+=1){const a=e[n]
let o=t.get(a)
if(n===e.length-1)return o instanceof i&&(t.delete(o),o=null),o||(o=new r(t),t.children[a]=o),o
o instanceof r&&(o=null),o||(o=new i(t),t.children[a]=o),t=o}return t}delete(e){for(const t in this.children)if(this.children[t]===e){const e=delete this.children[t]
return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),e}return!1}}const a={"¡":"1","™":"2","£":"3","¢":"4","∞":"5","§":"6","¶":"7","•":"8","ª":"9","º":"0","–":"-","≠":"=","⁄":"!","€":"@","‹":"#","›":"$","ﬁ":"%","ﬂ":"^","‡":"&","°":"*","·":"(","‚":")","—":"_","±":"+","œ":"q","∑":"w","®":"r","†":"t","¥":"y","ø":"o","π":"p","“":"[","‘":"]","«":"\\","Œ":"Q","„":"W","´":"E","‰":"R","ˇ":"T","Á":"Y","¨":"U","ˆ":"I","Ø":"O","∏":"P","”":"{","’":"}","»":"|","å":"a","ß":"s","∂":"d","ƒ":"f","©":"g","˙":"h","∆":"j","˚":"k","¬":"l","…":";","æ":"'","Å":"A","Í":"S","Î":"D","Ï":"F","˝":"G","Ó":"H","Ô":"J","":"K","Ò":"L","Ú":":","Æ":'"',"Ω":"z","≈":"x","ç":"c","√":"v","∫":"b","µ":"m","≤":",","≥":".","÷":"/","¸":"Z","˛":"X","Ç":"C","◊":"V","ı":"B","˜":"N","Â":"M","¯":"<","˘":">","¿":"?"},o={" ":"Space","+":"Plus"}
function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.platform
var n,r
const{ctrlKey:i,altKey:s,metaKey:l,key:f}=e,h=[],p=[i,s,l,u(e)]
for(const[a,o]of p.entries())o&&h.push(c[a])
if(!c.includes(f)){const e=h.includes("Alt")&&d.test(t)&&null!==(n=a[f])&&void 0!==n?n:f,i=null!==(r=o[e])&&void 0!==r?r:e
h.push(i)}return h.join("+")}const c=["Control","Alt","Meta","Shift"]
function u(e){const{shiftKey:t,code:n,key:r}=e
return t&&!(n.startsWith("Key")&&r.toUpperCase()===r)}function l(e,t){let n
return n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.platform
const n=d.test(t)?"Meta":"Control"
return e.replace("Mod",n)}(e,t),n=function(e){const t=e.split("+").pop(),n=[]
for(const r of["Control","Alt","Meta","Shift"])e.includes(r)&&n.push(r)
return n.push(t),n.join("+")}(n),n}const d=/Mac|iPod|iPhone|iPad/i,f=" "
class h{constructor(){let{onReset:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this._path=[],this.timer=null,this.onReset=e}get path(){return this._path}get sequence(){return this._path.join(f)}registerKeypress(e){this._path=[...this._path,s(e)],this.startTimer()}reset(){var e
this.killTimer(),this._path=[],null===(e=this.onReset)||void 0===e||e.call(this)}killTimer(){null!=this.timer&&window.clearTimeout(this.timer),this.timer=null}startTimer(){this.killTimer(),this.timer=window.setTimeout((()=>this.reset()),h.CHORD_TIMEOUT)}}function p(e){return e.split(f).map((e=>l(e))).join(f)}function v(e){if(!(e instanceof HTMLElement))return!1
const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase()
return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||e.isContentEditable}h.CHORD_TIMEOUT=1500
const g=new i,m=new WeakMap
let y=g
const E=new h({onReset(){y=g}})
function T(e){if(e.defaultPrevented)return
if(!(e.target instanceof Node))return
if(v(e.target)){const t=e.target
if(!t.id)return
if(!t.ownerDocument.querySelector('[data-hotkey-scope="'.concat(t.id,'"]')))return}const t=y.get(s(e))
if(t){if(E.registerKeypress(e),y=t,t instanceof r){const n=e.target
let r,i=!1
const a=v(n)
for(let e=t.children.length-1;e>=0;e-=1){r=t.children[e]
const o=r.getAttribute("data-hotkey-scope")
if(!a&&!o||a&&n.id===o){i=!0
break}}r&&i&&(function(e,t){const n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}})
!e.dispatchEvent(n)||(v(e)?e.focus():e.click())}(r,E.path),e.preventDefault()),E.reset()}}else E.reset()}function b(e,t){0===Object.keys(g.children).length&&document.addEventListener("keydown",T)
const n=function(e){const t=[]
let n=[""],r=!1
for(let i=0;i<e.length;i++)r&&","===e[i]?(t.push(n),n=[""],r=!1):e[i]!==f?(r="+"!==e[i],n[n.length-1]+=e[i]):(n.push(""),r=!1)
return t.push(n),t.map((e=>e.map((e=>l(e))).filter((e=>""!==e)))).filter((e=>e.length>0))}(t||e.getAttribute("data-hotkey")||""),r=n.map((t=>g.insert(t).add(e)))
m.set(e,r)}function _(e){const t=m.get(e)
if(t&&t.length)for(const n of t)n&&n.delete(e)
0===Object.keys(g.children).length&&document.removeEventListener("keydown",T)}},453(e){"use strict"
function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,n){return l=u()?Reflect.construct.bind():function(e,t,n){var r=[null]
r.push.apply(r,t)
var i=new(Function.bind.apply(e,r))
return n&&c(i,n.prototype),i},l.apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0
return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e
var n
if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function")
if(void 0!==t){if(t.has(e))return t.get(e)
t.set(e,r)}function r(){return l(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},d(e)}function f(e){var t=u()
return function(){var n,r=s(e)
if(t){var i=s(this).constructor
n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}(this,n)}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var r,i,a=[],o=!0,s=!1
try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return g(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
return r}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"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)}var y,E,T,b="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",_=["b","del","em","i","s","strong","sub","sup"],I=_.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),k=[b,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding|attributionsrc|popover|popovertarget|popovertargetaction"].join("|"),w=a((function e(){r(this,e)})),N="[ \t\r\n]*"
function A(e){e=Array.isArray(e)?e:[e]
var t,n,r,i=0,a="<(?!/?"
return a+="(?:",e.forEach((function(e,o){t=e.tags||I,n=e.attrs||k,r=e.checkUrlAttrs||!1,0!==o&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+=N,a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++i,")?"),r&&(a+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++i)),a+=")"+N+")+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function C(e){return A({tags:e=e||I,checkUrlAttrs:!0})}function S(e,t){if(!function(e){return/</.test(e)}(e))return!0
var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup
return n&&n.length>0?!C(n).test(e):r?!S.R_UNSAFE_CUSTOM_ELEMENT.test(e):!S.R_UNSAFE_HTML.test(e)}function R(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function O(e,t){var n=String(null!=e?e:""),r=n
return S(n,t)||(r=R(r),m("Content contains tags or attributes that are not allowed:\nContent: "+n,"error")),r}S.R_UNSAFE_HTML=C(),S.R_UNSAFE_CUSTOM_ELEMENT=A([{tags:I,checkUrlAttrs:!0},{tags:[(y={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[b,y.attrs].join("|"),checkUrlAttrs:!1}])
var D,M,P=function(){if("undefined"!=typeof window){var e=window.trustedTypes
if(e&&e.createPolicy&&e.isHTML)return e}}()
if(P){var L=P.createPolicy("jSecure",{createHTML:function(e){return e}})
E=function(e){return L.createHTML(e)},T=function(e){return P.isHTML(e)}}else{var x=function(e){o(n,e)
var t=f(n)
function n(){return r(this,n),t.apply(this,arguments)}return a(n,[{key:"toHTML",value:function(){return this.toString()}}]),n}(d(String))
E=function(e){return new x(e)},T=function(e){return null!==e&&"object"===n(e)&&"toHTML"in e&&"function"==typeof e.toHTML}}function B(e){return E(String(e))}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return B(t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return T(e)?t:O(t)})).join(""))}function F(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i]
return function(e,t){return Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw")&&Object.isFrozen(e)&&e.length===t.length+1}(e,r)?String.raw.apply(String,[{raw:e}].concat(p(function(e){return e.map((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
if(t&&"object"===n(t)&&"__html"in t){if(T(t.__html))return t.__html
t=t.__html}var r=String(null!==(e=t)&&void 0!==e?e:"")
return T(t)&&(r=z(r)),W(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return String(null!=e?e:"").replace(/(^[\0- ]*j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t\s*):/i,"$1​:")}(r))}))}(r)))):U.apply(void 0,[e].concat(r))}function H(){return(D=D||document.implementation.createHTMLDocument("")).createElement("template")}function V(e){var t
return(M=M||H()).innerHTML=B(e),null!==(t=M.content.textContent)&&void 0!==t?t:""}var K=/[&<>"'\u0000\\=]/g,G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"}
function W(e){return null===(null!=e?e:null)?null:String(e).replace(K,(function(e){return G[e]}))}var j=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,q={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"',apos:"'"}
function z(e){return null===(null!=e?e:null)?null:String(e).replace(j,(function(e,n,r,i){return n?function(e){if(t(q,e))return q[e]
if("undefined"==typeof document)return e
var n=V("&".concat(e,";"))
return q[e]=n,n}(n):r||i?String.fromCodePoint(parseInt(r||i,r?16:10)||65533):"�"}))}var X={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]},J=/<([\w:]+)/
function Y(e,t){var n,r,i,a,o,s=t.createDocumentFragment(),c=[]
for(i=0,o=e.length;i<o;i++)if(r=e[i])if("string"==typeof r){n=n||s.appendChild(t.createElement("div"))
var u=h(J.exec(r)||["",""],2)[1]
if(void 0!==u){var l=u.toLowerCase(),d=l in X&&X[l]||X._default
for($(n,d[1]+r+d[2]),a=d[0];a--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild)
c.push.apply(c,p(Array.from(n.childNodes))),(n=s.firstChild)&&(n.textContent="")}}else r instanceof Node&&c.push(r)
for(s.textContent="",r=c[i=0];r;)s.appendChild(r),r=c[++i]
return s}function Q(e,n,r){e=e.toString()
var i=n?function(e,n){var r={}
return e.replace(/\{([^}]+)\}/g,(function(e,i){if(t(r,i))return r[i]
if(t(n,i)){var a,o=n[i],s="string"==typeof o
if(!(s||o instanceof w||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return o?(o=s?"".concat(W(String(null!==(a=o)&&void 0!==a?a:""))):o.toString(),r[i]=o,o):e}return e}))}(e,n):e
return O(i,r)}var Z=Q
function $(e,t,n){var r=Q(t,n)
return r&&/[<&]/.test(r)?e.innerHTML=B(r):r&&(e.textContent=r),r}var ee=function(e){o(n,e)
var t=f(n)
function n(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return r(this,n),(i=t.call(this)).options=a,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return a(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(S(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=R(e),m("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(w),te=/ /g,ne=/[\s\u0000<>"]|%00/,re=/\\/,ie=/([/\\]|^)([.]|%2e){2}([/\\]|$)/i,ae=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])")
function oe(e){var t,n="invalid://"
if("string"!=typeof e)return m("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(m("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(te,"+")),!ae.test(t))return m("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(ne.test(t))return m("jSecure Error: not valid url character found in url: "+e,"error"),n
var r,i=t.split("?")[0],a=!1
if(i){try{if(r=decodeURI(i),ie.test(r))return m("jSecure Error: malicious data found in url path: "+i,"error"),n}catch(e){a=!0}if(a)return m("jSecure Error: malformed url path detected: "+i),n
if(re.test(i)||ie.test(i))return m("jSecure Error: malicious data found in url path: "+i,"error"),n}return e}var se={redirect:function(e){window&&window.location&&(window.location.href=e)}},ce={ALLOWED_TAGS:I,FORMATTING_TAGS:_,createTrustedHTML:U,getTrustedHTML:function(){for(var e,t=H(),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i]
return(e=t.content).append.apply(e,p(r.map((function(e){return e.cloneNode(!0)})))),B(t.innerHTML)},parse:function(e,t){var n="string"==typeof e&&t?B(t(e)):U(e),r=H()
return r.innerHTML=n,r.content},html:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
return U(F.apply(void 0,[e].concat(n)))},unsanitizedHTML:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
return B(F.apply(void 0,[e].concat(n)))},getText:function(e){var t
return"undefined"==typeof document?null!==(t=z(function(e){return e.replace(/<[^>]*>|<|>/g,"")}(String(e))))&&void 0!==t?t:"":V(e)},htmlEncode:W,htmlUnencode:z,reEncode:function(e){return W(z(e))},sanitizeHTML:O,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
var i,a="",o=n.length
return e&&e.forEach((function(e,t){var r
a+=e,t<o&&((i=n[t])instanceof ee?a+=i:a+=W(String(null!==(r=i)&&void 0!==r?r:"")))})),"".concat(O(a))},_redirector:se,redirect:function(e){var t=oe(e)
t===e&&se.redirect(t)},sanitizeUrl:oe,log:m,parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Y([e],t)
else{if(!Array.isArray(e))return e
n=Y(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Z,setElementContent:$,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new ee(t,n)}}
e.exports=ce},456(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>i})
var r=n(670)
function i(e,t){return(0,r.A)(e)!==(0,r.A)(t)}},525(e){e.exports=function(){"use strict"
var e="List(",t="(",n=/^(\/[^?]+)\??(.*)$/,r={extractPathAndQueryStringFromUrl:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=n.exec(e)
return t?{path:t[1],queryString:t[2]}:{path:"",queryString:""}}},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=/[,()':]/g,o=/[,()':]/,s={encode:function(e){if("object"!==(void 0===(e=JSON.parse(JSON.stringify(e)))?"undefined":i(e)))throw new Error("You must pass either an array or an object to the encode function.")
return this._process(e,!1)},reducedEncode:function(e){if("object"!==(void 0===(e=JSON.parse(JSON.stringify(e)))?"undefined":i(e)))throw new Error("You must pass either an array or an object to the reducedEncode function.")
return this._process(e,!0)},paramEncode:function(e){if(e=JSON.parse(JSON.stringify(e)),Array.isArray(e)||"object"!==(void 0===e?"undefined":i(e)))throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")
var t=[]
for(var n in e)e.hasOwnProperty(n)&&t.push(this._processPrimitive(n)+"="+this._process(e[n],!1))
return t.join("&")},arrayParamEncode:function(e){return this.paramEncode(this._arrayParamEncode(e))},_arrayParamEncode:function(e){if(e=JSON.parse(JSON.stringify(e)),!Array.isArray(e))throw new Error("You must pass an array to the arrayParamEncode function.")
return e.reduce((function(e,t){if(!t||!t.hasOwnProperty("name")||!t.hasOwnProperty("value"))throw new Error("Objects passed to the arrayParamEncode function must have name and value properties.")
if("object"===i(t.value)&&null!==t.value)throw new Error("Only primitives may be passed to arrayParamEncode as item values.")
var n=t.name,r=e.hasOwnProperty(n)
return r?r&&"object"===i(e[n])&&null!==e[n]?e[n].push(t.value):e[n]=[e[n],t.value]:e[n]=t.value,e}),{})},_process:function(e,t){return Array.isArray(e)?this._processArray(e,t):"object"===(void 0===e?"undefined":i(e))&&null!==e?this._processObject(e,t):this._processPrimitive(e,t)},_processArray:function(t,n){for(var r=new Array(t.length),i=0;i<t.length;i++)r[i]=this._process(t[i],n)
return e+r.join(",")+")"},_processObject:function(e,n){var r=[]
for(var i in e)e.hasOwnProperty(i)&&r.push(this._processPrimitive(i,n)+":"+this._process(e[i],n))
return t+r.join(",")+")"},_processPrimitive:function(e,t){return""===e?"''":t&&"string"==typeof e&&o.test(e)?e.replace(a,escape):t?e:encodeURIComponent(e).replace(a,escape)}},c=/(%2C|%28|%29|%27|%3A)/g,u=/(%2C|%28|%29|%27|%3A)/
function l(e,t,n){var r=2<arguments.length&&void 0!==n?n:0
return e.indexOf(t,r)===r}function d(e,t){if(e[e.length-1]!==t)throw new Error("Input has unbalanced prefix and suffix: "+e)}function f(e,t){for(var n=1<arguments.length&&void 0!==t?t:0,r=0,i=!1;n<e.length;){var a=e[n]
if("("===a&&(r++,i=!0),")"===a&&r--,0===r&&i)break
n++}return n}function h(e,t){return t?u.test(e)&&(e=e.replace(c,unescape)):e=decodeURIComponent(e),void 0===e||"''"===e?"":e}var p={paramDecode:function(e){var t=this
return e.split("&").reduce((function(e,n){if(!n.length)return e
if(0===n.indexOf("="))return e
var r=function(e){if(Array.isArray(e))return e
if(Symbol.iterator in Object(e))return function(e){var t=[],n=!0,r=!1,i=void 0
try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(t.push(a.value),2!==t.length);n=!0);}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}return t}(e)
throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.split("=")),i=r[0],a=r[1]
return"''"===i&&(i=""),void 0!==a&&""!==a||(a="''"),e[decodeURIComponent(i)]=t._decode(a),e}),{})},decode:function(e){return this._decode(e,!1)},reducedDecode:function(e){return this._decode(e,!0)},_decode:function(n,r){return void 0!==n&&"''"!==n||(n=""),l(n,e)?(d(n,")"),this._decodeList(n.substring(5,n.length-1),r)):l(n,t)?(d(n,")"),this._decodeObject(n.substring(1,n.length-1),r)):h(n,r)},_decodeList:function(n,r){for(var i=[],a=0;a<n.length;)if(l(n,e,a)||l(n,t,a)){var o=f(n,a)
i.push(this._decode(n.substring(a,o+1),r)),a=o+2}else{var s=n.indexOf(",",a)
s<0&&(s=n.length),i.push(h(n.substring(a,s),r)),a=s+1}return i},_decodeObject:function(n,r){for(var i={},a=0;a<n.length;){var o=n.indexOf(":",a),s=h(n.substring(a,o),r)
if(a=o+1,n.startsWith(e,a)||n.startsWith(t,a)){var c=f(n,a)
i[s]=this._decode(n.substring(a,c+1),r),a=c+2}else{var u=n.indexOf(",",a)
u<0&&(u=n.length)
var l=h(n.substring(a,u),r)
i[s]=l,a=u+1}}return i}},v=Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505}),g="application/x-www-form-urlencoded"
function m(e){if(Object&&Object.assign)return Object.assign.apply(Object,arguments)
if(null==e)throw new TypeError("Cannot convert undefined or null to object")
for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n]
if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}function y(e){if(!0===e.forceQueryTunnel){var t=r.extractPathAndQueryStringFromUrl(e.url),n=t.path,i=t.queryString
if(i){var a=m({},e.headers,{"X-HTTP-Method-Override":e.method}),o=void 0,s=void 0
if(e.body){var c="RESTLI_"+Date.now()
s="multipart/mixed; boundary="+c,o=["--"+c,"Content-Type: "+g,"",i,"--"+c,"Content-Type: application/json","",e.body,"--"+c+"--"].join("\r\n")}else s=g,o=i
return a["Content-Type"]=s,{body:o,headers:a,method:"POST",url:n}}}var u={method:e.method,url:e.url}
return e.body&&(u.body=e.body),u}function E(){var e=document.querySelector('meta[name="isQueryTunnelRequestSupported"]')
return e&&"true"===e.getAttribute("content")||!1}function T(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=r.extractPathAndQueryStringFromUrl(e),i=n.path,a=n.queryString
if(i.length>8e3)throw new Error("Per AFD limitations, this request url "+e+" will not work. Please contact ask_traffic@.")
if((e.length>8e3||a.length>4e3)&&"GET"===t.method){var o=m({},t)
o.url=e,o.forceQueryTunnel=!0
var s=y(o)
t.method=s.method,e=s.url,t.headers=s.headers,t.body=s.body,t.data=s.body}return{url:e,request:t}}return{encoder:s,decoder:p,httpStatus:v,queryTunnel:{encodeRequest:y,isQueryTunnelSupportedForAFD:E,checkAndEncodeLongUrl:T,queryTunnelRequest:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
return E()?T(e,t):{url:e,request:t}}},utils:r}}()},545(e,t){"use strict"
function n(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=Array(t);n<t;n++)r[n]=e[n]
return r}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n)
var r=0,i=function(){}
return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function s(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var r,i,a,o,s=[],c=!0,u=!1
try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}function l(e,t){if(e){if("string"==typeof e)return n(e,t)
var r={}.toString.call(e).slice(8,-1)
return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}Object.defineProperty(t,"__esModule",{value:!0}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self
var d={};({get exports(){return d},set exports(e){d=e}}).exports=function(){var e=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),t=/^fs_/
function n(n){if("string"!=typeof n)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof n+".")
var r,i,a=e.exec(n)
return a&&(r=a[1].replace(t,""),i=a[2]),{id:i,type:r}}var r=/(?![^(]*\)),/
return{checkForEntityId:function(t){var n=e.exec(t)
return n?n[2]:t},extractEntityInfoFromUrn:n,urnToObject:function e(t){var i=n(t),a=i.id,o=i.type,s={}
if("("===a.charAt(0)){for(var c,u=a.substring(1,a.length-1).split(r),l=0;c=u[l];++l)0===c.indexOf("urn")&&(u[l]=e(c))
a=u}return s[o]=a,s}}}()
var f=d,h=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},p={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},v="GUEST",g="MEMBER",m="ENTERPRISE_UNBOUND",y=s(s(s({},v,"li_gc"),g,"li_mc"),m,"li_ec")
s(s(s({},v,"mypreferences/g/guest-cookies"),g,"settings/member-cookies"),m,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"])
var E,T,b,_,I=a((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,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var o in r(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},p)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===a})),k=(E=[p.ADVERTISING,p.ANALYTICS_AND_RESEARCH,p.FUNCTIONAL],T=[0,1,2,0],b=function(e){for(var t={},n=0;n<E.length;n++)t[E[n]]=T[e>>2*n&3]
return t},_=function(e){var t=0
return e>=0&&e<=3&&(t=T[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),r=e.match(n)
if(!r)return{error:"Invalid consent body encoding",consent:new I}
var i=b(parseInt(r[1],10)),a=new Date(1e3*parseInt(r[2],10)),o=_(parseInt(r[3],10))
return{error:null,consent:new I(i,a,t,o)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=f.urnToObject(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!r)return{error:"Invalid enterprise profile urn provided",consent:new I}
var i=r.enterpriseAccountId,a=r.enterpriseProfileId,o=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(o)
if(!s)return{error:"Invalid consent body encoding",consent:new I}
var u=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=c(e,4),r=t[1],o=t[2],s=t[3]
return r===i&&o===a&&s===n}))[0]
if(!u)return{error:null,consent:new I}
var l=b(u[0]),d=new Date(1e3*parseInt(s[2],10)),h=_(parseInt(s[3],10))
return{error:null,consent:new I(l,d,m,h)}}}),w=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),N=function(e){var t={}
for(var n in p)t[n]=e
return{error:null,consent:new I(t,null,null,e)}},A=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var i,a=null
try{a=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(w)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new I}
var o=parseInt(a[1],10),s=a[2]
return 1===o?t===m?k.parseConsentBodyEnterpriseUnbound(s,n,r):k.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(o),consent:new I}},C=a((function e(){r(this,e),this.consent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.enterpriseProfileUrn,i=n.enterpriseAppInstanceId
if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new I}
t=document.cookie}if(r&&!i||!r&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new I}
if(!(e!==m||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new I}
if(!e){var a=h(y[m],t)
if(a&&r&&i){var o=A(a,m,r,i)
if(o.consent.userMode===m||o.error)return o}e=h("liap",t)?h(y[g],t)?g:v:h(y[v],t)?v:g}return function(e,t,n,r){var i=h(y[e],t)
return i?A(i,e,n,r):h(y[v],t)||h(y[g],t)||h(y[m],t)?N(2):N(1)}(e,t,r,i)}()}),[{key:"isAccessAllowedForCategory",value:function(e){return!(this.consent&&!this.consent.error)||!Object.values(p).some((function(t){return t===e}))||this.consent.consent.optedInConsentMap[e]}}]),S="BROWSER_LOCAL_STORAGE",R="BROWSER_SESSION_STORAGE",O=function(e){return e.NONE="NONE",e.AUDIT="AUDIT",e.ENFORCE="ENFORCE",e}({}),D="DATA_BLOCKED",M="DATA_FILTERED",P="DATA_ALLOWED",L="UNAPPROVED_KEY",x="WebStorageTrackerPrivacyEnforcementEvent",B=a((function e(t,n,i){r(this,e),this.trackingCore=t,this.jetCore=n,this.auditCache=new Map,this.isAuditEventEnabled=i}),[{key:"fireJetForErrorEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
this.jetCore.reportError(new Error(e),t)}},{key:"fireEnforcementAuditEvent",value:function(e,t,n){var r,i,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"UNKNOWN"
!this.isAuditEventEnabled||this.auditCache.has(e)&&null!==(r=this.auditCache.get(e))&&void 0!==r&&r.has(n)||(this.trackingCore.fireEvent(x,{trackerName:e,trackerDomain:window.location.origin,trackerType:t,enforcementAction:n,isReportOnly:a,accessDenialReason:o}),this.auditCache.has(e)?null===(i=this.auditCache.get(e))||void 0===i||i.add(n):this.auditCache.set(e,new Set([n])),console.debug("firing ".concat(x," with ").concat(n," for ").concat(e," [Report-only:").concat(a,"]")))}}])
function U(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e.type&&"string"==typeof e.enforcementMode&&Array.isArray(e.trackers)&&e.trackers.every((function(e){return"string"==typeof e.key&&"boolean"==typeof e.isWildCard&&"boolean"==typeof e.isEssential&&Array.isArray(e.categories)}))}))}function F(e){for(var t,n=null!==(t=document.getElementsByTagName("meta"))&&void 0!==t?t:[],r=0;r<n.length;r++){var i=n[r]
if("storage-inventory"===i.getAttribute("name"))try{var a,o=JSON.parse(null!==(a=i.getAttribute("content"))&&void 0!==a?a:"[]")
if(!U(o))throw new SyntaxError("Parsed inventory is not of type Array<StorageTrackerInventory>: ".concat(JSON.stringify(o)))
return o.find((function(t){return t.type===e}))}catch(e){throw new SyntaxError("Failed to parse inventory from meta tag: ".concat(e))}}}var H=a((function e(t){r(this,e),this.type=t?t.type:"UNKNOWN",this.mode=t?t.enforcementMode:O.NONE,this.essentialTrackerWithStaticKey=t?new Set(t.trackers.filter((function(e){return e.isEssential&&!e.isWildCard})).map((function(e){return e.key}))):new Set,this.essentialTrackerWithDynamicKey=t?t.trackers.filter((function(e){return e.isEssential&&e.isWildCard})).map((function(e){return e.key})):new Array,this.nonEssentialTrackerWithStaticKey=t?t.trackers.filter((function(e){return!e.isEssential&&!e.isWildCard})).reduce((function(e,t){return e.set(t.key,t.categories)}),new Map):new Map,this.nonEssentialTrackerWithDynamicKey=t?t.trackers.filter((function(e){return!e.isEssential&&e.isWildCard})).map((function(e){return[e.key,e.categories]})):new Array}),[{key:"_matchesPattern",value:function(e,t){return new RegExp(t).test(e)}},{key:"getType",value:function(){return this.type}},{key:"getMode",value:function(){return this.mode}},{key:"isEssential",value:function(e){if(this.essentialTrackerWithStaticKey.has(e))return!0
var t,n=o(this.essentialTrackerWithDynamicKey)
try{for(n.s();!(t=n.n()).done;){var r=t.value
if(this._matchesPattern(e,r))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"getNonEssentialCategories",value:function(e){var t
if(this.nonEssentialTrackerWithStaticKey.has(e))return new Set(null!==(t=this.nonEssentialTrackerWithStaticKey.get(e))&&void 0!==t?t:new Array)
var n,r=o(this.nonEssentialTrackerWithDynamicKey)
try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),a=i[0],s=i[1]
if(this._matchesPattern(e,a))return new Set(s)}}catch(e){r.e(e)}finally{r.f()}return new Set}},{key:"isApproved",value:function(e){if(this.essentialTrackerWithStaticKey.has(e))return!0
if(this.nonEssentialTrackerWithStaticKey.has(e))return!0
var t,n=o(this.essentialTrackerWithDynamicKey)
try{for(n.s();!(t=n.n()).done;){var r=t.value
if(this._matchesPattern(e,r))return!0}}catch(e){n.e(e)}finally{n.f()}var i,a=o(this.nonEssentialTrackerWithDynamicKey)
try{for(a.s();!(i=a.n()).done;){var s=c(i.value,2),u=s[0]
if(s[1],this._matchesPattern(e,u))return!0}}catch(e){a.e(e)}finally{a.f()}return!1}}]),V=a((function e(){r(this,e)}),[{key:"createService",value:function(e){if(e===S)return new H(F(S))
if(e===R)return new H(F(R))
throw new Error("Tracker type ".concat(e," is not supported"))}}])
t.startWebStorageEnforcement=function(e,t,n,r){var i,a,o=new C,s=new B(e,t,r)
try{i=(new V).createService(S),a=(new V).createService(R)}catch(e){return void s.fireJetForErrorEvent("failed to get tracker inventory from meta tag: ".concat(e))}var c=Storage.prototype.getItem,u=Storage.prototype.setItem
function l(e,t){if(t.getMode()===O.NONE)return{allowed:!0}
if(!t.isApproved(e))return{allowed:!1,reason:L}
if(t.isEssential(e))return{allowed:!0}
var n=t.getNonEssentialCategories(e)
return Array.from(n).some((function(e){return!o.isAccessAllowedForCategory(e)}))?{allowed:!1,reason:"USER_NOT_CONSENTED"}:{allowed:!0}}function d(e,t,n){var r=l(t,n)
return r.allowed?(s.fireEnforcementAuditEvent(t,n.getType(),P,n.getMode()===O.AUDIT),c.apply(e,[t])):n.getMode()===O.AUDIT?(h(t,r.reason),s.fireEnforcementAuditEvent(t,n.getType(),M,!0,r.reason),c.apply(e,[t])):(h(t,r.reason),s.fireEnforcementAuditEvent(t,n.getType(),M,n.getMode()===O.AUDIT,r.reason),null)}function f(e,t,n,r){var i=l(t,r)
i.allowed?(s.fireEnforcementAuditEvent(t,r.getType(),P,r.getMode()===O.AUDIT),u.apply(e,[t,n])):r.getMode()===O.AUDIT?(h(t,i.reason),s.fireEnforcementAuditEvent(t,r.getType(),D,!0,i.reason),u.apply(e,[t,n])):(h(t,i.reason),s.fireEnforcementAuditEvent(t,r.getType(),D,!1,i.reason))}function h(e,t){t===L&&console.warn("Access to the browser storage for the unapproved key ".concat(e," was blocked. If you own this key, please visit https://go/userprivacy for more details on how to register it."))}Storage.prototype.getItem=function(e){return this===window.localStorage&&i.getMode()!=O.NONE?d(this,e,i):this===window.sessionStorage&&a.getMode()!=O.NONE?d(this,e,a):c.apply(this,[e])},Storage.prototype.setItem=function(e,t){return this===window.localStorage&&i.getMode()!=O.NONE?f(this,e,t,i):this===window.sessionStorage&&a.getMode()!=O.NONE?f(this,e,t,a):u.apply(this,[e,t])}}},588(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>o})
var r=n(670),i=n(336),a=n.n(i)
class o extends(a()){compute(e){for(let t=0,n=e.length;t<n;t++)if(!0===(0,r.A)(e[t]))return e[t]
return e[e.length-1]}}},611(e,t,n){"use strict"
n.r(t),n.d(t,{INPAGE_URL:()=>i,getShimmedLink:()=>c,initAnchorLinkShim:()=>l,isExternalLink:()=>s,removeAnchorLinkShim:()=>d})
var r=["linkedin.com","linkedin.cn","linkedin-ei.com","linkedin-ei.cn","lynda.com"],i="https://www.linkedin.com/safety/go",a=new RegExp(/^http(s)?:\/\/.*/)
function o(e){return e?(e=(e=(e=(e=(e=e.replace(/(https?:\/\/)?(www.)?/i,"")).includes("/")?e.split("/")[0]:e).includes("@")?e.split("@")[1]:e).includes(":")?e.split(":")[0]:e).split(".")).slice(e.length-2).join("."):(console.warn("Called getDomain with empty url"),e)}function s(e){var t
return!(!function(e){return!(!e||"string"!=typeof e||!e.match(1<arguments.length&&void 0!==arguments[1]?arguments[1]:a))}(e)||(e=o(e))===o(null==(t=window)?void 0:t.location.host)||-1!==r.indexOf(e))}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
if(s(e)){var n,r=i+"?url=".concat(encodeURIComponent(e))
for(n in t)r+="&"+n+"="+encodeURIComponent(t[n])
return r}return e}function u(e,t){return t instanceof HTMLAnchorElement?t:e instanceof HTMLAnchorElement?e:t===e||null===t?null:t.parentElement instanceof HTMLAnchorElement?t.parentElement:u(e,t.parentElement)}function l(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
e instanceof HTMLElement?(e.addEventListener("mousedown",function(e){return function(t){(t=t.currentTarget instanceof HTMLElement&&t.target instanceof HTMLElement?u(t.currentTarget,t.target):null)&&(t.href=c(t.href,e),t.removeAttribute("rel"))}}(n)),e.addEventListener("keydown",(t=n,function(e){var n=e.currentTarget instanceof HTMLElement&&e.target instanceof HTMLElement?u(e.currentTarget,e.target):null
"Enter"===e.key&&n&&(n.href=c(n.href,t),n.removeAttribute("rel"))}))):console.warn("attempting to `initAnchorLinkShim()` on non-`HTMLElement` item ".concat(e))}function d(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
console.error("removeAnchorLinkShim is deprecated and does nothing. Please remove this call (with element ".concat(e," and params ").concat(JSON.stringify(t)))}},646(e,t){!function(e){"use strict"
const t=/[,()':]/g,n=/[,()':]/
function r(e){const t=JSON.parse(JSON.stringify(e))
return function(e){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),i(t,!1)}function i(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let r=0;r<e.length;r++)n[r]=i(e[r],t)
return"".concat("List(").concat(n.join(",")).concat(")")}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){const n=Object.keys(e).map((n=>"".concat(a(n,t),":").concat(i(e[n],t))))
return"".concat("(").concat(n.join(",")).concat(")")}(e,t):a(e,t)}function a(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":r&&"string"==typeof e&&n.test(e)?e.replace(t,escape):r?e:encodeURIComponent(e).replace(t,escape)}Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const o={"X-RestLi-Protocol-Version":"2.0.0","X-HTTP-Method-Override":"GET","Content-Type":"application/x-www-form-urlencoded"}
function s(){const e=function(){const e=document.cookie.match(/JSESSIONID="?([^";]+)"?/)
if(e)return e[1]}()
if(e){const t={"Csrf-Token":e}
return Object.assign(t,o)}return o}class c{constructor(e,t){const n=function(e){return!e.lix}(e)?{lix:e}:e
this.lixes=n.lix,this.tracker=t}treatment(e){let{peek:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=this.lixes[e]
if(!n)return"control"
if(!n.treatment)throw new Error("The LiX treatment object does not contain any treatment")
return!0!==t&&this.tracker.notifyOfEval(n),n.treatment}cleanup(){this.lixes={}}append(e){for(const t in e){const n=e[t]
void 0!==n&&(this.lixes[t]=n)}}getTests(){return this.lixes}replace(e){this.lixes=e}}const u="LixTreatmentsEvent"
class l{constructor(e){this.queue=[],this.pendingTrackedLixes=[],this.trackingFiredRecords=new WeakMap,this.logger=e}fireTrackingEvent(e){this._fireTrackingEvent?this._fireTrackingEvent(u,e):this.queue.push(e)}notifyOfEval(e){var t
const n=Date.now()
this.shouldFireTrackingEvent(e,n)&&this.appendForTracking(e,n),null===(t=e.recursiveResults)||void 0===t||t.forEach((e=>this.notifyOfEval(e)))}shouldFireTrackingEvent(e,t){return!(!e||!e.trackingInfo)&&t-(this.trackingFiredRecords.get(e)||0)>6e4}appendForTracking(e,t){0===this.pendingTrackedLixes.length&&(this.timer=window.setTimeout(this.fireTrackingEvents.bind(this),100)),this.pendingTrackedLixes.push(e.trackingInfo),this.trackingFiredRecords.set(e,t)}fireTrackingEvents(){this.track(this.pendingTrackedLixes),this.pendingTrackedLixes.length=0}attach(e){this._fireTrackingEvent=e,this.queue.forEach((e=>{var t
null===(t=this._fireTrackingEvent)||void 0===t||t.call(this,u,e)}))}cleanup(){delete this._fireTrackingEvent,this.pendingTrackedLixes=[],this.timer&&clearTimeout(this.timer)}track(e){const t=e.reduce(((e,t)=>{var n
const{experimentId:r,treatmentIndex:i,segmentIndex:a,urn:o,trackingUrns:s}=t,c={experimentId:r,treatmentIndex:i,segmentIndex:a},u=o.match(/^urn:li:([a-zA-Z0-9]+):(\S+)$/)
if(null===u)return this.logger('Failed parse the URN: "'.concat(o,'"')),e
const l=u[1],d=u[2]
if(!l||!d)return e
e[l]||(e[l]={})
const f=e[l]
f[d]||(f[d]={primaryEvaluationUrn:o,trackingUrns:s,treatments:[]})
const h=f[d]
return null==h||null===(n=h.treatments)||void 0===n||n.push(c),e}),{}),n=[]
for(const i in t)for(const e in t[i]){var r
const a=null===(r=t[i])||void 0===r?void 0:r[e]
if(a){const t={urnId:e,urnType:i,primaryEvaluationUrn:a.primaryEvaluationUrn,treatments:a.treatments}
Array.isArray(a.trackingUrns)&&(t.additionalTrackingUrns=a.trackingUrns),n.push(t)}}this.fireTrackingEvent({urns:n})}}const d="value_"
e.LixCache=c,e.LixClient=class{constructor(e,t,n){this.tracker=new l(t),this.legacyLixCache=new c(e,this.tracker),this.env=n}get lixKeys(){return Object.keys(this.legacyLixCache.getTests())}attachTrackingCore(e){const t=e.fireEvent.bind(e)
this.tracker.attach(t)}fetch(e){return this.env.isBrowser?function(e){let{lixKeys:t=[],explicitUrnLixList:n=[],context:i={},endpointPath:a=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const o={ids:t,explicitUrnLiXList:n,evaluationContext:{context:i}},c=Object.keys(o).map((e=>"".concat(e,"=").concat(r(o[e]))))
return e("/".concat(a||"lix/treatmentsV2"),{credentials:"same-origin",method:"POST",headers:s(),body:c.join("&")}).then((e=>e.text().then((t=>{const n=e.status
if(200!==n)throw new Error("LiX request failed with status code: ".concat(n,"\n").concat(t))
try{return JSON.parse(t).results}catch(e){throw new Error('Failed to parse the LiX response: "'.concat(t,'"\n').concat(e))}}))))}(this.env.fetch,e).then((e=>this.appendToCache(e))):this.env.Promise.resolve({})}getTreatment(e,t){return this.legacyLixCache.treatment(e,t)}getTreatmentIsEnabled(e,t){return"control"!==this.getTreatment(e,t)}getTreatmentValue(e,t){const n=this.getTreatment(e,t)
if(!n||-1===n.indexOf(d))return!1
const r=parseInt(n.replace(d,""),10)
return!isNaN(r)&&r}destroy(){this.legacyLixCache.cleanup(),this.tracker.cleanup(),this.env.onDestroy&&this.env.onDestroy()}appendToCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.legacyLixCache.append(e),this.legacyLixCache.getTests()}replaceCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.legacyLixCache.replace(e)}clearCache(){this.legacyLixCache.cleanup()}notifyOfEval(e){this.tracker.notifyOfEval(e)}},e.LixTracker=l,e.TRACKING_BATCH_DELAY=100,e.fetchFromDom=function(){const e=document.querySelector('meta[name="__init"]')
if(!(e instanceof HTMLMetaElement))throw new Error("Unable to parse lix values from DOM, expected HTMLMetaElement")
if(!e||!e.content||"%INIT%"===e.content)return{}
try{return JSON.parse(e.content)}catch(e){throw new Error("Unable to parse lix values from DOM")}},Object.defineProperty(e,"__esModule",{value:!0})}(t)},650(e,t,n){"use strict"
function r(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>t}n.r(t),n.d(t,{default:()=>r})},651(e,t,n){"use strict"
function r(e,t){return e===t}n.r(t),n.d(t,{default:()=>r})},670(e,t,n){"use strict"
n.d(t,{A:()=>i})
var r=n(389)
function i(e){return"object"==typeof e&&e&&"isTruthy"in e&&"boolean"==typeof e.isTruthy?e.isTruthy:(0,r.isArray)(e)?0!==e.length:!!e}},685(e,t,n){"use strict"
function r(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<t}n.r(t),n.d(t,{default:()=>r})},692(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>i})
var r=n(670)
function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return t.every((e=>!(0,r.A)(e)))}},742(e,t,n){"use strict"
n.r(t),n.d(t,{cached:()=>E,dedupeTracked:()=>T,localCopy:()=>m,trackedReset:()=>y})
var r,i,a=n(603),o=n(471),s=n(473),c=n(217)
function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let l=(r=class{constructor(){var e
u(this,"prevRemote",void 0),u(this,"peek",void 0),(e=i)&&Object.defineProperty(this,"value",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}},d=r.prototype,f="value",h=[s.tracked],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},v={},Object.keys(p).forEach((function(e){v[e]=p[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),void 0===(v=h.slice().reverse().reduce((function(e,t){return t(d,f,e)||e}),v)).initializer&&(Object.defineProperty(d,f,v),v=null),i=v,r)
var d,f,h,p,v
function g(e,t,n){let r=t.get(e)
return void 0===r&&(r=new l,t.set(e,r),r.value=r.peek="function"==typeof n?n.call(e):n),r}function m(e,t){(0,a.assert)("@localCopy() must be given a memo path as its first argument, received `".concat(String(e),"`"),"string"==typeof e)
let n=new WeakMap
return()=>{let r=t=>(0,o.get)(t,e)
return{get(){let e=g(this,n,t),{prevRemote:i}=e,a=r(this)
return i!==a&&(e.value=e.prevRemote=a),e.value},set(e){if(!n.has(this)){let i=g(this,n,t)
return i.prevRemote=r(this),void(i.value=e)}g(this,n,t).value=e}}}}function y(e){(0,a.assert)("@trackedReset() must be given a memo path, a memo function, or config object with a memo path or function as its first argument, received `".concat(String(e),"`"),"string"==typeof e||"function"==typeof e||"object"==typeof e&&null!==e&&void 0!==e.memo)
let t=new WeakMap
return(n,r,i)=>{var a
let s,c,u=null!==(a=i.initializer)&&void 0!==a?a:()=>{}
var l
"object"==typeof e?(s=e.memo,c=null!==(l=e.update)&&void 0!==l?l:u):(s=e,c=u)
let d="function"==typeof s?(e,t)=>s.call(e,e,r,t):e=>(0,o.get)(e,s)
return{get(){let e=g(this,t,u),{prevRemote:n}=e,i=d(this,n)
return i!==n&&(e.prevRemote=i,e.value=e.peek=c.call(this,this,r,e.peek)),e.value},set(e){g(this,t,u).value=e}}}}function E(e,t,n){(0,a.assert)("@cached can only be used on getters",n&&n.get)
let{get:r,set:i}=n,o=new WeakMap
return{get(){let e=o.get(this)
return void 0===e&&(e=(0,c.createCache)(r.bind(this)),o.set(this,e)),(0,c.getValue)(e)},set:i}}function T(){let e
const t=function(t,n,r){let{initializer:i}=r,{get:a,set:o}=(0,s.tracked)(t,n,r),c=new WeakMap
return{get(){if(!c.has(this)){let e=null==i?void 0:i.call(this)
c.set(this,e),o.call(this,e)}return a.call(this)},set(t){c.has(this)&&e(t,c.get(this))||(c.set(this,t),o.call(this,t))}}}
return 3===arguments.length?(e=(e,t)=>e===t,t(...arguments)):1===arguments.length&&"function"==typeof arguments[0]?(e=arguments[0],t):void(0,a.assert)("@dedupeTracked() can either be invoked without arguments or with one comparator function, received `".concat(String(arguments),"`"),!1)}},770(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>i})
var r=n(389)
function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return t.every(r.isArray)}},891(e){e.exports=function(){"use strict"
var e=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),t=/^fs_/
function n(n){if("string"!=typeof n)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof n+".")
var r,i,a=e.exec(n)
return a&&(r=a[1].replace(t,""),i=a[2]),{id:i,type:r}}var r=/(?![^(]*\)),/
return{checkForEntityId:function(t){var n=e.exec(t)
return n?n[2]:t},extractEntityInfoFromUrn:n,urnToObject:function e(t){var i=n(t),a=i.id,o=i.type,s={}
if("("===a.charAt(0)){for(var c,u=a.substring(1,a.length-1).split(r),l=0;c=u[l];++l)0===c.indexOf("urn")&&(u[l]=e(c))
a=u}return s[o]=a,s}}}()},929(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>u})
var r=n(553),i=n(603),a=n(294),o=n(735),s=n.n(o)
const c={raw:!1}
class u extends(s()){constructor(){var e,t,n
super(...arguments),e=this,t="_document",n=window.document,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n
let r=(0,a.getOwner)(this)
void 0===this._fastBoot&&r&&(this._fastBoot=r.lookup("service:fastboot"))}_getDocumentCookies(){let e=this._document.cookie.split(";")
return this._filterDocumentCookies(e).reduce(((e,t)=>{if(!(0,r.isEmpty)(t)){let[n,r]=t
e[n.trim()]=(r||"").trim()}return e}),{})}_getFastBootCookies(){const e=this._fastBoot.request.cookies,t=Object.keys(e).reduce(((t,n)=>{const r=e[n]
return t[n]="object"==typeof r?r:{value:r},t}),{}),n=this._fastBootCookiesCache||{},r=Object.assign({},t,n)
return this._fastBootCookiesCache=r,this._filterCachedFastBootCookies(r)}read(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
t=Object.assign({},c,t||{}),(0,i.assert)("Domain, Expires, Max-Age, and Path options cannot be set when reading cookies",(0,r.isEmpty)(t.domain)&&(0,r.isEmpty)(t.expires)&&(0,r.isEmpty)(t.maxAge)&&(0,r.isEmpty)(t.path))
let n={}
return n=this._isFastBoot()?this._getFastBootCookies():this._getDocumentCookies(),e?this._decodeValue(n[e],t.raw):(Object.keys(n).forEach((e=>n[e]=this._decodeValue(n[e],t.raw))),n)}write(e,t,n){n=Object.assign({},c,n||{}),(0,i.assert)("Cookies cannot be set as signed as signed cookies would not be modifyable in the browser as it has no knowledge of the express server's signing key!",!n.signed),(0,i.assert)("Cookies cannot be set with both maxAge and an explicit expiration time!",(0,r.isEmpty)(n.expires)||(0,r.isEmpty)(n.maxAge)),t=this._encodeValue(t,n.raw),(0,i.assert)("Cookies larger than ".concat(4096," bytes are not supported by most browsers!"),"string"==typeof t&&this._isCookieSizeAcceptable(t)),this._isFastBoot()?this._writeFastBootCookie(e,t,n):((0,i.assert)("Cookies cannot be set to be HTTP-only from a browser!",!n.httpOnly),n.path=n.path||this._normalizedDefaultPath(),this._writeDocumentCookie(e,t,n))}clear(e,t){t=Object.assign({},t||{}),(0,i.assert)("Expires, Max-Age, and raw options cannot be set when clearing cookies",(0,r.isEmpty)(t.expires)&&(0,r.isEmpty)(t.maxAge)&&(0,r.isEmpty)(t.raw)),t.expires=new Date("1970-01-01"),t.path=t.path||this._normalizedDefaultPath(),this.write(e,null,t)}exists(e){let t
return t=this._isFastBoot()?this._getFastBootCookies():this._getDocumentCookies(),Object.prototype.hasOwnProperty.call(t,e)}_writeDocumentCookie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._serializeCookie(e,t,n)
this._document.cookie=r}_writeFastBootCookie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._fastBoot.response.headers,i=this._serializeCookie(e,t,n)
n.maxAge&&(n.maxAge*=1e3),this._cacheFastBootCookie(e,t,n)
let a=!1,o=r.getAll("set-cookie")
for(let s=0;s<o.length;s++)if(o[s].startsWith("".concat(e,"="))){o[s]=i,a=!0
break}a||r.append("set-cookie",i)}_cacheFastBootCookie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._fastBootCookiesCache||{},i=Object.assign({},n)
if(i.maxAge&&n.maxAge){let e=new Date
e.setSeconds(e.getSeconds()+n.maxAge),delete i.maxAge,i.expires=e}r[e]={value:t,options:i},this._fastBootCookiesCache=r}_filterCachedFastBootCookies(e){var t
let{path:n}=this._fastBoot.request,r=null===(t=this._fastBoot)||void 0===t||null===(t=t.request)||void 0===t?void 0:t.host
return Object.keys(e).reduce(((t,i)=>{let{value:a,options:o}=e[i]
o=o||{}
let{path:s,domain:c,expires:u}=o
return s&&0!==n.indexOf(s)||c&&r.indexOf(c)+c.length!==r.length||u&&u<new Date||(t[i]=a),t}),{})}_encodeValue(e,t){return(0,r.isNone)(e)?"":t?e:encodeURIComponent(e)}_decodeValue(e,t){return(0,r.isNone)(e)||t?e:decodeURIComponent(e)}_filterDocumentCookies(e){return e.map((e=>{let t=e.indexOf("=")
return[e.substring(0,t),e.substring(t+1)]})).filter((e=>2===e.length&&(0,r.isPresent)(e[0])))}_serializeCookie(e,t){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="".concat(e,"=").concat(t)
return(0,r.isEmpty)(n.domain)||(i="".concat(i,"; domain=").concat(n.domain)),n.expires&&"date"===(0,r.typeOf)(n.expires)&&(i="".concat(i,"; expires=").concat(n.expires.toUTCString())),(0,r.isEmpty)(n.maxAge)||(i="".concat(i,"; max-age=").concat(n.maxAge)),n.secure&&(i="".concat(i,"; secure")),n.httpOnly&&(i="".concat(i,"; httpOnly")),(0,r.isEmpty)(n.path)||(i="".concat(i,"; path=").concat(n.path)),(0,r.isEmpty)(n.sameSite)||(i="".concat(i,"; SameSite=").concat(n.sameSite)),n.partitioned&&(i="".concat(i,"; Partitioned")),i}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}_isCookieSizeAcceptable(e){let t,n=0,r=0
for(;t=e.charCodeAt(r++);)n+=t>>11?3:t>>7?2:1
return n<4096}_normalizedDefaultPath(){if(!this._isFastBoot()){let e=window.location.pathname
return e.substring(0,e.lastIndexOf("/"))}}_isFastBoot(){return this._fastBoot&&this._fastBoot.isFastBoot}}},941(e,t,n){"use strict"
n.r(t),n.d(t,{default:()=>r.isEmpty})
var r=n(553)},943(e,t,n){"use strict"
function r(e,t){return e!==t}n.r(t),n.d(t,{default:()=>r})}}])

//# sourceMappingURL=chunk.642.d59d1b919a39065e92a8.map