/*! For license information please see chunk.604.183e1e1a9696aa9f8734.js.LICENSE.txt */
(self.webpackChunk_ember_auto_import_=self.webpackChunk_ember_auto_import_||[]).push([[604],{6198:function(e,t,n){"use strict"
n.r(t),n.d(t,{CI:function(){return i},DEBUG:function(){return r}})
var r=!1,i=!1},2967:function(e,t){var n,r,i,o
function a(e){return a="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(e)}o=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 o(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 s(e){var t=function(e){if("object"!=a(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=a(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==a(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=/(?![^(]*\)),/,p=function e(t){var n=d(t),r=n.id,i=n.type,o={}
if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(f),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a))
r=s}return o[i]=r,o},h=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,b,E,w,T={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},S={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},k=o(o(o({},S.GUEST,"li_gc"),S.MEMBER,"li_mc"),S.ENTERPRISE_UNBOUND,"li_ec"),C=o(o(o({},S.GUEST,"mypreferences/g/guest-cookies"),S.MEMBER,"settings/member-cookies"),S.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),A=Object.freeze(["dark","light"]),I=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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var a in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=i,this.optedInConsentMap={},T)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o}),_=(g=[T.ADVERTISING,T.ANALYTICS_AND_RESEARCH,T.FUNCTIONAL],m=[0,1,2,0],y=function(e){for(var t={},n=0;n<g.length;n++)t[g[n]]=m[e>>2*n&3]
return t},b=function(e){var t=0
return e>=0&&e<=3&&(t=m[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=y(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=b(parseInt(r[3],10))
return{error:null,consent:new I(i,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,n,r){var i=function(e){try{var t=p(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}(n)
if(!i)return{error:"Invalid enterprise profile urn provided",consent:new I}
var o=i.enterpriseAccountId,a=i.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 I}
var u=c[1].split("|").map(function(e){return e.split(",").map(function(e){return parseInt(e,10)})}).filter(function(e){var n,i=function(e){if(Array.isArray(e))return e}(n=e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=t){var n,r,i,o,a=[],s=!0,c=!1
try{for(i=(t=t.call(e)).next,!4;!(s=(n=i.call(t)).done)&&(a.push(n.value),4!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(n)||function(e){if(e){if("string"==typeof e)return t(e,4)
var n={}.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)?t(e,4):void 0}}(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.")}(),s=i[1],c=i[2],u=i[3]
return s===o&&c===a&&u===r})[0]
if(!u)return{error:null,consent:new I}
var l=y(u[0]),d=new Date(1e3*parseInt(c[2],10)),f=b(parseInt(c[3],10))
return{error:null,consent:new I(l,d,S.ENTERPRISE_UNBOUND,f)}}}),R=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),O=function(e){var t={}
for(var n in T)t[n]=e
return{error:null,consent:new I(t,null,null,e)}},N=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},D=function(e,t,n){var r=C[e],i=t.enterpriseProfileHash,o=t.enterpriseAppInstanceId,a=new URLSearchParams
e===S.ENTERPRISE_UNBOUND&&(i&&a.append("p",i),o&&a.append("iid",o)),"string"==typeof n&&(n=n.toLowerCase(),A.includes(n)&&a.append("li_theme",n))
var s=Array.from(a).length?"?"+a.toString():""
return"https://www.".concat(N(),"/").concat(r).concat(s)},P=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(R)}catch(e){}if(!i)return{error:"Invalid consent encoding",consent:new I}
var o=parseInt(i[1],10),a=i[2]
return 1===o?t===S.ENTERPRISE_UNBOUND?_.parseConsentBodyEnterpriseUnbound(a,n,r):_.parseConsentBody(a,t):{error:"Invalid encoded consent version ".concat(o),consent:new I}},L=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!==S.ENTERPRISE_UNBOUND||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new I}
if(!e){var o=h(k[S.ENTERPRISE_UNBOUND],t)
if(o&&r&&i){var a=P(o,S.ENTERPRISE_UNBOUND,r,i)
if(a.consent.userMode===S.ENTERPRISE_UNBOUND||a.error)return a}e=h("liap",t)?h(k[S.MEMBER],t)?S.MEMBER:S.GUEST:h(k[S.GUEST],t)?S.GUEST:S.MEMBER}return function(e,t,n,r){var i=h(k[e],t)
return i?P(i,e,n,r):h(k[S.GUEST],t)||h(k[S.MEMBER],t)||h(k[S.ENTERPRISE_UNBOUND],t)?O(2):O(1)}(e,t,r,i)},x={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},M=i(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.guestPreferencesData,i=void 0===r?null:r,o=t.issuedAt,a=void 0===o?null:o,s=t.defaultConsent,c=void 0===s?0:s
for(var u in n(this,e),i=i||{},this.issuedAt=a,this.guestPreferencesMap={},x)"number"!=typeof i[u]&&(i[u]=c),this.guestPreferencesMap[u]=1===i[u]}),F=(E=[x.SHARE_DATA_WITH_TRUSTED_PARTNERS],w=[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 M}
var r=n[1],i=function(e){for(var t={},n=0;n<E.length;n++){var r=E[n],i=e[n]
if(void 0===w[i])return
t[r]=w[i]}return t}(n[2])
if(!i)return{error:"Invalid guest preferences consent provided",guestPreferences:new M}
var o=new Date(1e3*r)
return{error:null,guestPreferences:new M({guestPreferencesData:i,issuedAt:o})}}}),B=new RegExp(["^(\\d+)","((?:.|\\d)+)"].join(";"))
e.GUEST_PREFERENCES=x,e.NON_ESSENTIAL_CATEGORIES=T,e.SETTINGS_COLOR_SCHEME=A,e.USER_MODE=S,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=L(e,document.cookie,t),i=r.consent,o=e||i.userMode||S.GUEST
return{showBanner:!r.error&&!i.consentAvailable,userMode:o,managePreferenceUrl:D(o,t,n)}},e.getCookieConsent=L,e.getPreferenceStatuses=function(e){"string"!=typeof e&&(e=document.cookie)
var t=h("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(B)}catch(e){}if(!t)return{error:"Invalid guest preferences encoding",guestPreferences:new M}
var n=parseInt(t[1],10),r=t[2]
return 1===n?F.parseGuestPreferencesBody(r):{error:"Invalid encoded guest preferences version ".concat(n),guestPreferences:new M}}(t):{error:null,guestPreferences:new M({defaultConsent:1})}},e.parseEncodedConsent=P,e.updateCookieConsent=function(e,t){var n=e.optedInConsentMap,r=e.updateSettings,i=e.userMode,o=e.xLiTrackPayload,a=e.enterpriseContext||{},s=a.enterpriseProfileHash,c=a.enterpriseAppInstanceId
t=t||function(e,t){}
var u=h(k[S.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(N(),"/cookie-consent/").concat(f)),l.setRequestHeader("Content-Type","application/json"),o&&l.setRequestHeader("X-LI-Track",o),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 p={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}}
for(var v in T){var g=void 0
!0===n[v]?g=1:!1===n[v]&&(g=2),p.CATEGORIES[v]=g}l.send(JSON.stringify(p))},Object.defineProperty(e,"__esModule",{value:!0})},"object"===a(t)?o(t):(r=[t],void 0===(i="function"==typeof(n=o)?n.apply(t,r):n)||(e.exports=i))},6275:function(e,t,n){"use strict"
function r(e){return r="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},r(e)}function i(e){var t="function"==typeof Map?new Map:void 0
return i=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e
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,n)}function n(){return function(e,t,n){if(c())return Reflect.construct.apply(null,arguments)
var r=[null]
r.push.apply(r,t)
var i=new(e.bind.apply(e,r))
return n&&d(i,n.prototype),i}(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},i(e)}function o(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)||function(e,t){if(e){if("string"==typeof e)return a(e,t)
var n={}.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}}(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 a(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 s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(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)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(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,h(r.key),r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(e){if("object"!=r(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=r(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==r(t)?t:t+""}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.r(t),n.d(t,{CALL_TREE_ID_HEADER_NAME:function(){return w},DEGRADATION_TRACKING_EVENT_FIELD:function(){return C},DEGRADATION_TRACKING_EVENT_NAME:function(){return m},DOWNSTREAM_REQUEST_FIELD:function(){return A},DegradationTrackingMetadata:function(){return Y},DegradationTrackingMetadataOptionName:function(){return x},FABRIC_HEADER_NAME:function(){return k},FAILURE_TRACKING_EVENT_NAME:function(){return b},FEATURE_DEGRADATION_METRIC_EVENT_NAME:function(){return y},FEATURE_FAILURE_METRIC_EVENT_NAME:function(){return E},FailureTrackingMetadata:function(){return re},INSTRUMENTATION_GUIDE_PROMPT:function(){return g},InternalFailureProcessingMetadata:function(){return ie},InternalFeatureDegradationMetricEventProducer:function(){return N},InternalFeatureDegradationMetricStore:function(){return U},InternalFeatureFailureMetricEventProducer:function(){return j},InternalFeatureFailureMetricStore:function(){return V},InvalidArgumentError:function(){return q},JET_NOISE_TAG:function(){return R},JET_UNCLASSIFIED_ERROR_TAG:function(){return _},METRIC_EMISSION_INTERVAL_IN_MS:function(){return I},MICROSOFT_EDGE_REFERENCE_HEADER_NAME:function(){return S},POINT_OF_PRESENCE_ID_HEADER_NAME:function(){return T},PemTrackingService:function(){return oe},SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:function(){return G},createDegradationEvents:function(){return ee},createFailureEvents:function(){return te},determineResponseErrorType:function(){return $},isExpectedFailure:function(){return ae},refineServerErrorType:function(){return Z},validateKey:function(){return J},validateProductName:function(){return X}})
var g="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",m="FeatureDegradeEvent",y="FeatureDegradationMetricEvent",b="FeatureFailureEvent",E="FeatureFailureMetricEvent",w="x-li-uuid",T="x-li-pop",S="x-msedge-ref",k="x-li-fabric",C={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},A={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},I=6e4,_="pem-unclassified-error",R="noise",O=p(function e(t,n,r){v(this,e),this._collectedFeatureMetrics=t,this._fireEventCallback=n,r(this.produceMetricEvent.bind(this),I)}),N=function(e){function t(){return v(this,t),s(this,t,arguments)}return l(t,e),p(t,[{key:"produceMetricEvent",value:function(){var e=this
this._collectedFeatureMetrics.flushMetrics().forEach(function(t){var n=[]
t.featureCallCounts.forEach(function(e){n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:e.failedApiCallCount,totalDownstreamCallCount:e.successfulApiCallCount+e.failedApiCallCount,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType})})
var r={header:{},requestHeader:{},time:Date.now(),metrics:n}
e._fireEventCallback(y,r,t.pageInstance)})}}])}(O),D=p(function e(t){v(this,e),this._featureCallCounts=new Map,this._pageInstance=t},[{key:"pageInstance",get:function(){return this._pageInstance}},{key:"featureCallCounts",get:function(){return this._featureCallCounts}}]),P=p(function e(t){v(this,e),this.featureMetricIdentifier=t})
function L(e){return JSON.stringify(e,Object.keys(e).sort())}var x,M=function(e){function t(){return v(this,t),s(this,t,arguments)}return l(t,e),p(t,[{key:"trackSuccessfulFeatureApiCall",value:function(e){this.trackMetric(e,function(e){return e.successfulApiCallCount++})}},{key:"trackFailedFeatureApiCall",value:function(e){this.trackMetric(e,function(e){return e.failedApiCallCount++})}},{key:"trackMetric",value:function(e,t){var n=L(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{var r=new F(e)
t(r),this.featureCallCounts.set(n,r)}}}])}(D),F=function(e){function t(){var e
return v(this,t),(e=s(this,t,arguments)).successfulApiCallCount=0,e.failedApiCallCount=0,e}return l(t,e),p(t)}(P),B=p(function e(){v(this,e)},[{key:"flushMetrics",value:function(){var e=o(this.metrics.values())
return this.metrics=new Map,e}}]),U=function(e){function t(){var e
return v(this,t),(e=s(this,t,arguments)).metrics=new Map,e}return l(t,e),p(t,[{key:"incrementSuccessfulFeatureApiCall",value:function(e,t){this.incrementMetric(t,function(t){return t.trackSuccessfulFeatureApiCall(e)})}},{key:"incrementFailedFeatureApiCall",value:function(e,t){this.incrementMetric(t,function(t){return t.trackFailedFeatureApiCall(e)})}},{key:"incrementMetric",value:function(e,t){var n=L(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{var r=new M(e)
t(r),this.metrics.set(n,r)}}}])}(B),j=function(e){function t(){return v(this,t),s(this,t,arguments)}return l(t,e),p(t,[{key:"produceMetricEvent",value:function(){var e=this
this._collectedFeatureMetrics.flushMetrics().forEach(function(t){var n=[]
t.featureCallCounts.forEach(function(e){n.push({metricKey:{featureKey:e.featureMetricIdentifier.featureKey,featureProductName:e.featureMetricIdentifier.productName,customTrackingId:e.featureMetricIdentifier.customTrackingId,downstreamServiceErrorCode:e.featureMetricIdentifier.downstreamServiceErrorCode},expectedFailureCount:e.expectedFailedApiCallCount,unexpectedFailureCount:e.unexpectedFailedApiCallCount,totalDownstreamCallCount:e.successfulApiCallCount+e.unexpectedFailedApiCallCount+e.expectedFailedApiCallCount})})
var r={header:{},requestHeader:{},metrics:n}
e._fireEventCallback(E,r,t.pageInstance)})}}])}(O),K=function(e){function t(){return v(this,t),s(this,t,arguments)}return l(t,e),p(t,[{key:"trackExpectedFailedFeatureApiCall",value:function(e){this.trackMetric(e,function(e){return e.expectedFailedApiCallCount++})}},{key:"trackUnexpectedFailedFeatureApiCall",value:function(e){this.trackMetric(e,function(e){return e.unexpectedFailedApiCallCount++})}},{key:"trackSuccessfulFeatureApiCall",value:function(e){this.trackMetric(e,function(e){return e.successfulApiCallCount++})}},{key:"trackMetric",value:function(e,t){var n=L(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{var r=new H(e)
t(r),this.featureCallCounts.set(n,r)}}}])}(D),H=function(e){function t(){var e
return v(this,t),(e=s(this,t,arguments)).expectedFailedApiCallCount=0,e.unexpectedFailedApiCallCount=0,e.successfulApiCallCount=0,e}return l(t,e),p(t)}(P),V=function(e){function t(){var e
return v(this,t),(e=s(this,t,arguments)).metrics=new Map,e}return l(t,e),p(t,[{key:"incrementSuccessfulFeatureApiCall",value:function(e,t){this.incrementMetric(t,function(t){return t.trackSuccessfulFeatureApiCall(e)})}},{key:"incrementExpectedFailedFeatureApiCall",value:function(e,t){this.incrementMetric(t,function(t){return t.trackExpectedFailedFeatureApiCall(e)})}},{key:"incrementUnexpectedFailedFeatureApiCall",value:function(e,t){this.incrementMetric(t,function(t){return t.trackUnexpectedFailedFeatureApiCall(e)})}},{key:"incrementMetric",value:function(e,t){var n=L(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{var r=new K(e)
t(r),this.metrics.set(n,r)}}}])}(B)
function W(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(x||(x={}))
var G=new Set(Object.values(x)),q=function(e){function t(e){var n
return v(this,t),n=s(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n}return l(t,e),p(t)}(i(Error))
function z(e){return 0===e.length||!e.trim()}function X(e){if("string"!=typeof e)throw new q("The product name must be a string. ".concat(g,"."))
if(z(e))throw new q("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(g,"."))
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new q("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(g,"."))
return e}function J(e){if("string"!=typeof e)throw new q("Keys must be strings. ".concat(g,"."))
if(z(e))throw new q("Keys should not be blank. ".concat(g,"."))
if(/[^a-z0-9-]/.test(e))throw new q("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(g,"."))
return e}var Q,Y=function(){function e(t,n,i){if(v(this,e),this._featureKey=J(t),this._defaultDegradationKey=J(n),!i)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],this._degradationKeyOverrides=[],this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[])
if("object"!==r(i))throw new q("DegradationTrackingMetadata options should be an object. ".concat(g,"."))
var o=i.productName
o&&(this._productName=X(o))
var a=i.additionalDegradedResponseCodes,s=i.nonDegradedResponseCodes,c=i.untrackedResponseCodes,u=i.trackedResponseCodes
if((a||s)&&(c||u))throw new q("Please use the new way of specifying degradations or the old way, i.e. either use the new "+"'".concat(x.AdditionalDegradedResponseCodes,"' and ")+"'".concat(x.NonDegradedResponseCodes,"' options together, or use the ")+"deprecated '".concat(x.TrackedResponseCodes,"' and ")+"'".concat(x.UntrackedResponseCodes,"' options together. ")+"".concat(g,"."))
if(c&&u)throw new q("You may only specify one of the options: ".concat(x.UntrackedResponseCodes," or ")+"".concat(x.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(g,"."))
!function(e,t,n,r){var i=function(e,t,n){if(!W(e)||e<=0||e>999)throw new q("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(g,"."))
if(429===e||999===e)throw new q("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."))
var r=n?x.NonDegradedResponseCodes:x.UntrackedResponseCodes,i=n?x.AdditionalDegradedResponseCodes:x.TrackedResponseCodes
if(t===r&&(e<500||e>=600))throw new q("For server responses that have a status code, PEM only considers 5xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(i," option")+". Please remove ".concat(e," from the ").concat(r," option. ")+"".concat(g,"."))}
if(void 0!==e&&!Array.isArray(e))throw new q("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(x.NonDegradedResponseCodes," option. ")+"".concat(g,"."))
if(void 0!==t&&!Array.isArray(t))throw new q("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(x.UntrackedResponseCodes," option. ")+"".concat(g,"."))
if(void 0!==n&&!Array.isArray(n))throw new q("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(x.AdditionalDegradedResponseCodes," option. ").concat(g,"."))
if(void 0!==r&&!Array.isArray(r))throw new q("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(x.TrackedResponseCodes," option. ").concat(g,"."))
e&&e.forEach(function(e){return i(e,x.NonDegradedResponseCodes,!0)}),t&&t.forEach(function(e){return i(e,x.UntrackedResponseCodes,!1)}),n&&n.forEach(function(e){return i(e,x.AdditionalDegradedResponseCodes,!0)}),r&&r.forEach(function(e){return i(e,x.TrackedResponseCodes,!1)})}(s,c,a,u),this._nonDegradedResponseCodes=s||[],this._additionalDegradedResponseCodes=a||[],this._degradationKeyOverrides=i.degradationKeyOverrides||[],this._untrackedResponseCodes=c||[],this._trackedResponseCodes=u||[],this._clientSensorGroupName=i.clientSensorGroupName,function(e){Object.keys(e).forEach(function(e){if(!G.has(e))throw new q("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(g))})}(i)}return p(e,[{key:"featureKey",get:function(){return this._featureKey}},{key:"defaultDegradationKey",get:function(){return this._defaultDegradationKey}},{key:"degradationKey",get:function(){return this._defaultDegradationKey}},{key:"productName",get:function(){return this._productName}},{key:"additionalDegradedResponseCodes",get:function(){return this._additionalDegradedResponseCodes}},{key:"nonDegradedResponseCodes",get:function(){return this._nonDegradedResponseCodes}},{key:"degradationKeyOverrides",get:function(){return this._degradationKeyOverrides}},{key:"untrackedResponseCodes",get:function(){return this._untrackedResponseCodes}},{key:"trackedResponseCodes",get:function(){return this._trackedResponseCodes}},{key:"clientSensorGroupName",get:function(){return this._clientSensorGroupName}}],[{key:"isDegradationTrackingMetadata",value:function(t){return null!=t&&Object.getOwnPropertyNames(e.prototype).every(function(e){return Object.hasOwnProperty.call(Object.getPrototypeOf(t),e)})}}])}()
function Z(e){if(e){if(e.has(k))return"SERVER_ERROR"
if(e.has(T))return"TRAFFIC_L0_TO_L1_ERROR"
if(e.has(S))return"TRAFFIC_AFD_TO_L0_ERROR"}return"SERVER_ERROR"}function $(e,t,n){if(n){if((r=n)>=400&&r<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(n)
if(function(e){return e>=500&&e<600}(n))return Z(t)}var r
if(e instanceof Error){if("AbortError"===e.name)return"CLIENT_ABORTED"
if(e instanceof TypeError&&(e.message.indexOf("Network request failed")>=0||e.message.indexOf("NetworkError when attempting to fetch resource")>=0||e.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===e.statusText)return"CLIENT_TIMEOUT"
if(0===e.status&&"abort"===e.statusText)return"CLIENT_ABORTED"
if("readyState"in e&&0===e.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}function ee(e,t,n,r,i,o,a,s,c){if(!(e&&e.trim()&&t&&Array.isArray(t)))return[]
var u=function(e,t){if(!e.includes("/"))return e
var n=function(e){var t=document.createElement("a")
return t.href=e,t.pathname}(e).split("/").filter(function(e){return e.length})
if(!t.length)return n.join("/")
for(var r=[],i=n.length-1;i>=0;i--){var o=n[i],a=t.indexOf(o)
a>=0?t.splice(a,1):r.push(o)}return r.reverse().join("/")}(e,o?o.map(function(e){return encodeURIComponent(e)}):[]),l=[]
return t.forEach(function(e){var t=e.getDegradationKey(r),o=e.isCountedAgainstAvailability(n,r),d={endpointPath:u,degradationKey:t,responseErrorTypeV2:n,isCountedAgainstAvailability:o}
r&&(d.responseCode=r),i&&(d.responseCallTreeId=i),a&&(d.pointOfPresenceId=a),s&&(d.microsoftEdgeReference=s),c&&(d.fabric=c),l.push({header:{},requestHeader:{},productName:e.productName,featureKey:e.featureKey,failedDownstreamRequests:[d]})}),l}function te(e,t,n,r,i,o,a){if(!(o&&t&&t.trim()&&n&&Array.isArray(n)))return[]
var s=[]
return n.forEach(function(n){s.push({header:{},requestHeader:{},featureKey:n.featureKey,featureProductName:n.productName,downstreamEndpointPath:t,downstreamResponseCode:i,downstreamResponseCallTreeId:r,downstreamServiceErrorCode:a,isExpectedFailure:e,customTrackingId:n.customTrackingId})}),s}!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Q||(Q={}))
var ne=new Set(Object.values(Q)),re=function(){function e(t,n,i){if(v(this,e),this._featureKey=J(t),this._defaultDegradationKey=J(n),!i)return this._nonDegradedResponseCodes=new Set,this._additionalDegradedResponseCodes=new Set,void(this._degradationKeyOverrides=[])
if("object"!==r(i))throw new q("FailureTrackingMetadata options should be an object. ".concat(g,"."))
var o=i.additionalDegradedResponseCodes,a=i.nonDegradedResponseCodes
this.validateResponseCodes(o,a),this._nonDegradedResponseCodes=new Set(a),this._additionalDegradedResponseCodes=new Set(o),this._degradationKeyOverrides=i.degradationKeyOverrides||[],this._clientSensorGroupName=i.clientSensorGroupName,this._customTrackingId=i.customTrackingId
var s=i.productName
s&&(this._productName=X(s)),function(e){Object.keys(e).forEach(function(e){if(!ne.has(e))throw new q("An unsupported failure tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(g))})}(i)}return p(e,[{key:"featureKey",get:function(){return this._featureKey}},{key:"defaultDegradationKey",get:function(){return this._defaultDegradationKey}},{key:"productName",get:function(){return this._productName}},{key:"nonDegradedResponseCodes",get:function(){return this._nonDegradedResponseCodes}},{key:"additionalDegradedResponseCodes",get:function(){return this._additionalDegradedResponseCodes}},{key:"degradationKeyOverrides",get:function(){return this._degradationKeyOverrides}},{key:"customTrackingId",get:function(){return this._customTrackingId}},{key:"clientSensorGroupName",get:function(){return this._clientSensorGroupName}},{key:"validateResponseCodes",value:function(e,t){var n=function(e,t){if(!W(e)||e<=0||e>999)throw new q("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(g,"."))
if(429===e||999===e)throw new q("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===Q.NonDegradedResponseCodes&&(e<500||e>=600))throw new q("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(e," is not considered a degradation unless you explicitly add it to the ")+"".concat(Q.AdditionalDegradedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat(Q.NonDegradedResponseCodes," option. ").concat(g,"."))}
if(void 0!==t&&!Array.isArray(t))throw new q("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(Q.NonDegradedResponseCodes," option. ")+"".concat(g,"."))
if(void 0!==e&&!Array.isArray(e))throw new q("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should also be considered as the degraded state(s) for the "+"".concat(Q.AdditionalDegradedResponseCodes," option. ").concat(g,"."))
null==t||t.forEach(function(e){return n(e,Q.NonDegradedResponseCodes)}),null==e||e.forEach(function(e){return n(e,Q.AdditionalDegradedResponseCodes)})
var r=new Set(e),i=new Set(t)
if(o(r).some(function(e){return i.has(e)}))throw new q("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(g,"."))}}],[{key:"isFailureTrackingMetadata",value:function(t){return null!=t&&Object.getOwnPropertyNames(e.prototype).every(function(e){return Object.hasOwnProperty.call(Object.getPrototypeOf(t),e)})}}])}(),ie=p(function e(t,n){if(v(this,e),this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,!Y.isDegradationTrackingMetadata(t)&&!re.isFailureTrackingMetadata(t))throw new q("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!n)throw new q("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
if(this._featureKey=t.featureKey,this._productName=n,this._clientSensorGroupName=t.clientSensorGroupName,Y.isDegradationTrackingMetadata(t)){var r=t.nonDegradedResponseCodes.length?t.nonDegradedResponseCodes:t.untrackedResponseCodes
this._nonDegradedResponseCodes=new Set(r),t.additionalDegradedResponseCodes.length?(this._defaultDegradationKey=t.defaultDegradationKey,this.processAdditionalDegradedResponseCodes(t.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(t.degradationKeyOverrides)):(this.processTrackedResponseCodes(t.trackedResponseCodes,t.defaultDegradationKey),t.trackedResponseCodes.length||(this._defaultDegradationKey=t.defaultDegradationKey))}else this._nonDegradedResponseCodes=t.nonDegradedResponseCodes,this._defaultDegradationKey=t.defaultDegradationKey,this._customTrackingId=t.customTrackingId,this.processAdditionalDegradedResponseCodes(t.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(t.degradationKeyOverrides)},[{key:"mergeTrackingMetadata",value:function(e){var t=e.additionalDegradedResponseCodes,n=e.nonDegradedResponseCodes,r=e.untrackedResponseCodes,i=e.trackedResponseCodes,o=e.degradationKey,a=e.featureKey
if(t.length||n.length)throw new q("The ".concat(a," has multiple DegradationTrackingMetadata. Please merge all of the metadata into one."))
if(r.length){if(this._nonDegradedResponseCodes.size)throw new q("The ".concat(a," has multiple DegradationTrackingMetadata with the ")+"".concat(x.UntrackedResponseCodes," option. Please combine the degradation keys and ")+"the response codes into one tracking metadata instead. ".concat(g,"."))
this._nonDegradedResponseCodes=new Set(r)}if(this.processTrackedResponseCodes(e.trackedResponseCodes,o),!i.length){if(this._defaultDegradationKey)throw new q("'".concat(this._defaultDegradationKey,"' has already been set as the degradation key for the '").concat(a,"' ")+"feature, so we can't use '".concat(o,"' as well. Please combine the two degradation tracking ")+"metadata objects together. ".concat(g,"."))
this._defaultDegradationKey=o}}},{key:"getDegradationKey",value:function(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}},{key:"featureKey",get:function(){return this._featureKey}},{key:"productName",get:function(){return this._productName}},{key:"customTrackingId",get:function(){return this._customTrackingId}},{key:"clientSensorGroupName",get:function(){return this._clientSensorGroupName}},{key:"isCountedAgainstAvailability",value:function(e,t){return null!==e&&"CLIENT_ABORTED"!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}},{key:"canResponseCodeCountAgainstAvailability",value:function(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(!this._defaultDegradationKey)return!1
if(this._additionalDegradedResponseCodes.has(e))return!0
var t=e>=400&&e<500,n=this._nonDegradedResponseCodes.has(e)
return!t&&!n}},{key:"processAdditionalDegradedResponseCodes",value:function(e){var t=this
e.forEach(function(e){if(t._nonDegradedResponseCodes.has(e))throw new q("You attempted to specify ".concat(e," as an additional degraded response code for the '").concat(t.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(g,"."))
t._additionalDegradedResponseCodes.add(e)})}},{key:"processTrackedResponseCodes",value:function(e,t){var n=this
e.forEach(function(e){if(n._nonDegradedResponseCodes.has(e))throw new q("You attempted to specify ".concat(e," as a tracked response code for the '").concat(n.featureKey,"' feature, ")+"however it is also specified in the untracked response codes for that feature. Please decide whether "+"you want to consider ".concat(e," responses a degraded state or not. ").concat(g,"."))
if(n._degradationKeyByResponseCode.has(e))throw new q("".concat(e," was specified multiple times in ").concat(n.featureKey,"'s ")+"".concat(x.TrackedResponseCodes,". Each tracked status code should only be ")+"specified once per degradation key. ".concat(g,"."))
n._degradationKeyByResponseCode.set(e,t)})}},{key:"initializeDegradationKeyOverrides",value:function(e){var t=this
e.forEach(function(e){if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new q("Degradation key overrides must consist of an array of responseCodesToOverride "+"and a string degradationKey. ".concat(g,"."))
new Set(e.responseCodesToOverride).forEach(function(n){if(!t.canResponseCodeCountAgainstAvailability(n))throw new q("A degradation key override was specified for ".concat(n,", but that response code isn't considered degraded. ")+"Please add it to additionalDegradedResponseCodes if you want it to count against your availability.")
t._degradationKeyByResponseCode.set(n,e.degradationKey)})})}}]),oe=p(function e(t,n,r){var i=this
v(this,e),this._featureMetricStore=new U,this._defaultProductName=t,this._fireEventCallback=n,this._jetErrorCallback=r,this._metricSender=new N(this._featureMetricStore,n,function(e,t){window.setInterval(function(){return e()},t)}),window.addEventListener("beforeunload",function(){return i._metricSender.produceMetricEvent()})},[{key:"trackFeatureDegradationsForFetch",value:function(e,t,n,r,i){var o,a=this,s=null,c=new Map,u=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),r.then(function(e){s=e.status,!1===e.ok&&(e.headers.forEach(function(e,t){return c.set(t.toLowerCase(),e)}),o=e)}).catch(function(e){throw o=e,e}).finally(function(){a._trackResponse(e,s,t,u,i,c,o)})}},{key:"trackFeatureDegradationsForJQueryAjax",value:function(e,t,n,r,i,o){var a=t.status,s=t.getAllResponseHeaders(),c=new Map
s&&s.trim().split(/[\r\n]+/).forEach(function(e){var t=e.split(": "),n=t.shift()
if(n){var r=t.join(": ")
c.set(n.toLowerCase(),r)}})
var u=o?null:t,l=this._createFailureProcessingMetadata(r)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,l,i,c,u)}},{key:"_trackResponse",value:function(e,t,n,r,i,o,a){var s=this
if(429!==t&&999!==t){var c=a?$(a,o,t):null,u=o.get(T)||null,l=o.get(w)||null,d=o.get(S)||null,f=o.get(k)||null,p=new Set,h=new Set
r.forEach(function(e){p.add(e.productName),h.add(e.featureKey),e.isCountedAgainstAvailability(c,t)?s._featureMetricStore.incrementFailedFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u,responseErrorType:c},i):s._featureMetricStore.incrementSuccessfulFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u},i)}),a&&c&&(this._reportErrorIfUnclassified(a,c,t,p,h),ee(e,r,c,t,l,n,u,d,f).forEach(function(e){s._fireEventCallback(m,e,i)}))}}},{key:"_reportErrorIfUnclassified",value:function(e,t,n,r,i){var o
if((0===n||null==n)&&"UNCLASSIFIED"===t){var a,s=[R,_]
r.forEach(function(e){return s.push("pem-product-".concat(e))}),i.forEach(function(e){return s.push("pem-feature-".concat(e))}),a=e instanceof Error?e:new Error("Could not classify jQuery response: ".concat(JSON.stringify(e))),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,a,s,!1)}}},{key:"_createFailureProcessingMetadata",value:function(e){var t=this
if(!e||!Array.isArray(e)||!e.length)throw new q("Please specify a non-empty array of degradation tracking metadata. ".concat(g,"."))
var n=new Map
return e.forEach(function(e){if(!Y.isDegradationTrackingMetadata(e))throw new q("Please use DegradationTrackingMetadata to specify the degradations. ".concat(g,"."))
var r=X(e.productName||t._defaultProductName),i={productName:r,featureKey:e.featureKey},o=n.get(i)
o?o.mergeTrackingMetadata(e):n.set(i,new ie(e,r))}),o(n.values())}},{key:"_getAndValidateUrlEntityIDs",value:function(e){if(!Array.isArray(e))throw new q("Please specify the queried IDs to remove from the request URL, or use an empty array if there "+"are none. ".concat(g,"."))
return e}}])
function ae(e){return!!(e&&e>=400&&e<500)}},3525:function(e,t,n){var r,i,o
function a(e){return a="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(e)}o=function(){"use strict"
var e="List(",t="function"==typeof Symbol&&"symbol"==a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)},n=/[,()':]/g,r=/[,()':]/,i={encode:function(e){if("object"!==(void 0===(e=JSON.parse(JSON.stringify(e)))?"undefined":t(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":t(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":t(e)))throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")
var n=[]
for(var r in e)e.hasOwnProperty(r)&&n.push(this._processPrimitive(r)+"="+this._process(e[r],!1))
return n.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,n){if(!n||!n.hasOwnProperty("name")||!n.hasOwnProperty("value"))throw new Error("Objects passed to the arrayParamEncode function must have name and value properties.")
if("object"===t(n.value)&&null!==n.value)throw new Error("Only primitives may be passed to arrayParamEncode as item values.")
var r=n.name,i=e.hasOwnProperty(r)
return i?i&&"object"===t(e[r])&&null!==e[r]?e[r].push(n.value):e[r]=[e[r],n.value]:e[r]=n.value,e},{})},_process:function(e,n){return Array.isArray(e)?this._processArray(e,n):"object"===(void 0===e?"undefined":t(e))&&null!==e?this._processObject(e,n):this._processPrimitive(e,n)},_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,t){var n=[]
for(var r in e)e.hasOwnProperty(r)&&n.push(this._processPrimitive(r,t)+":"+this._process(e[r],t))
return"("+n.join(",")+")"},_processPrimitive:function(e,t){return""===e?"''":t&&"string"==typeof e&&r.test(e)?e.replace(n,escape):t?e:encodeURIComponent(e).replace(n,escape)}},o=/(%2C|%28|%29|%27|%3A)/g,s=/(%2C|%28|%29|%27|%3A)/
function c(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0
return e.indexOf(t,n)===n}function u(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0,r=!1;t<e.length;){var i=e[t]
if("("===i&&(n++,r=!0),")"===i&&n--,0===n&&r)break
t++}return t}function l(e,t){return t?s.test(e)&&(e=e.replace(o,unescape)):e=decodeURIComponent(e),void 0===e||"''"===e?"":e}var d={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 o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(t.push(o.value),2!==t.length);n=!0);}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t}(e)
throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.split("=")),i=r[0],o=r[1]
return"''"===i&&(i=""),void 0!==o&&""!==o||(o="''"),e[decodeURIComponent(i)]=t._decode(o),e},{})},decode:function(e){return this._decode(e,!1)},reducedDecode:function(e){return this._decode(e,!0)},_decode:function(t,n){return void 0!==t&&"''"!==t||(t=""),c(t,e)?this._decodeList(t.substring(5,t.length-1),n):c(t,"(")?this._decodeObject(t.substring(1,t.length-1),n):l(t,n)},_decodeList:function(t,n){for(var r=[],i=0;i<t.length;)if(c(t,e,i)||c(t,"(",i)){var o=u(t,i)
r.push(this._decode(t.substring(i,o+1),n)),i=o+2}else{var a=t.indexOf(",",i)
a<0&&(a=t.length),r.push(l(t.substring(i,a),n)),i=a+1}return r},_decodeObject:function(t,n){for(var r={},i=0;i<t.length;){var o=t.indexOf(":",i),a=l(t.substring(i,o),n)
if(i=o+1,t.startsWith(e,i)||t.startsWith("(",i)){var s=u(t,i)
r[a]=this._decode(t.substring(i,s+1),n),i=s+2}else{var c=t.indexOf(",",i)
c<0&&(c=t.length)
var d=l(t.substring(i,c),n)
r[a]=d,i=c+1}}return r}},f=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}),p="application/x-www-form-urlencoded",h=/^(\/[^?]+)\??(.*)$/
return{encoder:i,decoder:d,httpStatus:f,queryTunnel:{encodeRequest:function(e){if(!0===e.forceQueryTunnel){var t=h.exec(e.url)
if(t){var n=t[1],r=t[2]
if(r){var i=function(e,t){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 n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r]
if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n}({},e.headers,{"X-HTTP-Method-Override":e.method}),o=void 0,a=void 0
if(e.body){var s="RESTLI_"+Date.now()
a="multipart/mixed; boundary="+s,o=["--"+s,"Content-Type: "+p,"",r,"--"+s,"Content-Type: application/json","",e.body,"--"+s+"--"].join("\r\n")}else a=p,o=r
return i["Content-Type"]=a,{body:o,headers:i,method:"POST",url:n}}}}var c={method:e.method,url:e.url}
return e.body&&(c.body=e.body),c}}}},"object"==a(t)?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},1580:function(e,t,n){"use strict"
n.d(t,{A:function(){return s}})
var r=n(5339),i=n(100),o=n(1553),a=n(1697)
function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1)
var s=e.getBoundingClientRect(),c=1,u=1
t&&(0,r.sb)(e)&&(c=e.offsetWidth>0&&(0,i.LI)(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,i.LI)(s.height)/e.offsetHeight||1)
var l=((0,r.vq)(e)?(0,o.A)(e):window).visualViewport,d=!(0,a.A)()&&n,f=(s.left+(d&&l?l.offsetLeft:0))/c,p=(s.top+(d&&l?l.offsetTop:0))/u,h=s.width/c,v=s.height/u
return{width:h,height:v,top:p,right:f+h,bottom:p+v,left:f,x:f,y:p}}},7997:function(e,t,n){"use strict"
n.d(t,{A:function(){return i}})
var r=n(1553)
function i(e){return(0,r.A)(e).getComputedStyle(e)}},1682:function(e,t,n){"use strict"
n.d(t,{A:function(){return i}})
var r=n(5339)
function i(e){return(((0,r.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},8813:function(e,t,n){"use strict"
n.d(t,{A:function(){return i}})
var r=n(1580)
function i(e){var t=(0,r.A)(e),n=e.offsetWidth,i=e.offsetHeight
return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}},9110:function(e,t,n){"use strict"
function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:function(){return r}})},1589:function(e,t,n){"use strict"
n.d(t,{A:function(){return d}})
var r=n(1553),i=n(9110),o=n(7997),a=n(5339)
function s(e){return["table","td","th"].indexOf((0,i.A)(e))>=0}var c=n(3065),u=n(3604)
function l(e){return(0,a.sb)(e)&&"fixed"!==(0,o.A)(e).position?e.offsetParent:null}function d(e){for(var t=(0,r.A)(e),n=l(e);n&&s(n)&&"static"===(0,o.A)(n).position;)n=l(n)
return n&&("html"===(0,i.A)(n)||"body"===(0,i.A)(n)&&"static"===(0,o.A)(n).position)?t:n||function(e){var t=/firefox/i.test((0,u.A)())
if(/Trident/i.test((0,u.A)())&&(0,a.sb)(e)&&"fixed"===(0,o.A)(e).position)return null
var n=(0,c.A)(e)
for((0,a.Ng)(n)&&(n=n.host);(0,a.sb)(n)&&["html","body"].indexOf((0,i.A)(n))<0;){var r=(0,o.A)(n)
if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n
n=n.parentNode}return null}(e)||t}},3065:function(e,t,n){"use strict"
n.d(t,{A:function(){return a}})
var r=n(9110),i=n(1682),o=n(5339)
function a(e){return"html"===(0,r.A)(e)?e:e.assignedSlot||e.parentNode||((0,o.Ng)(e)?e.host:null)||(0,i.A)(e)}},1553:function(e,t,n){"use strict"
function r(e){if(null==e)return window
if("[object Window]"!==e.toString()){var t=e.ownerDocument
return t&&t.defaultView||window}return e}n.d(t,{A:function(){return r}})},9004:function(e,t,n){"use strict"
n.d(t,{A:function(){return i}})
var r=n(1553)
function i(e){var t=(0,r.A)(e)
return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},3543:function(e,t,n){"use strict"
n.d(t,{A:function(){return a}})
var r=n(1580),i=n(1682),o=n(9004)
function a(e){return(0,r.A)((0,i.A)(e)).left+(0,o.A)(e).scrollLeft}},5339:function(e,t,n){"use strict"
n.d(t,{Ng:function(){return a},sb:function(){return o},vq:function(){return i}})
var r=n(1553)
function i(e){return e instanceof(0,r.A)(e).Element||e instanceof Element}function o(e){return e instanceof(0,r.A)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.A)(e).ShadowRoot||e instanceof ShadowRoot)}},1697:function(e,t,n){"use strict"
n.d(t,{A:function(){return i}})
var r=n(3604)
function i(){return!/^((?!chrome|android).)*safari/i.test((0,r.A)())}},2928:function(e,t,n){"use strict"
n.d(t,{A:function(){return i}})
var r=n(7997)
function i(e){var t=(0,r.A)(e),n=t.overflow,i=t.overflowX,o=t.overflowY
return/auto|scroll|overlay|hidden/.test(n+o+i)}},9647:function(e,t,n){"use strict"
n.d(t,{A:function(){return u}})
var r=n(3065),i=n(2928),o=n(9110),a=n(5339)
function s(e){return["html","body","#document"].indexOf((0,o.A)(e))>=0?e.ownerDocument.body:(0,a.sb)(e)&&(0,i.A)(e)?e:s((0,r.A)(e))}var c=n(1553)
function u(e,t){var n
void 0===t&&(t=[])
var o=s(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,c.A)(o),d=a?[l].concat(l.visualViewport||[],(0,i.A)(o)?o:[]):o,f=t.concat(d)
return a?f:f.concat(u((0,r.A)(d)))}},1900:function(e,t,n){"use strict"
n.d(t,{DD:function(){return g},GM:function(){return m},Mn:function(){return r},OM:function(){return c},Ol:function(){return v},R9:function(){return f},WY:function(){return d},_N:function(){return l},ir:function(){return h},kb:function(){return a},ni:function(){return u},pG:function(){return o},qZ:function(){return s},sQ:function(){return i},xf:function(){return p}})
var r="top",i="bottom",o="right",a="left",s="auto",c=[r,i,o,a],u="start",l="end",d="clippingParents",f="viewport",p="popper",h="reference",v=c.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+l])},[]),g=[].concat(c,[s]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])},[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},6862:function(e,t,n){"use strict"
n.r(t),n.d(t,{default:function(){return d}})
var r={left:"right",right:"left",bottom:"top",top:"bottom"}
function i(e){return e.replace(/left|right|bottom|top/g,function(e){return r[e]})}var o=n(2838),a={start:"end",end:"start"}
function s(e){return e.replace(/start|end/g,function(e){return a[e]})}var c=n(1641),u=n(9771),l=n(1900),d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name
if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,d=void 0===a||a,f=n.altAxis,p=void 0===f||f,h=n.fallbackPlacements,v=n.padding,g=n.boundary,m=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,E=void 0===b||b,w=n.allowedAutoPlacements,T=t.options.placement,S=(0,o.A)(T),k=h||(S!==T&&E?function(e){if((0,o.A)(e)===l.qZ)return[]
var t=i(e)
return[s(e),t,s(t)]}(T):[i(T)]),C=[T].concat(k).reduce(function(e,n){return e.concat((0,o.A)(n)===l.qZ?function(e,t){void 0===t&&(t={})
var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,d=n.flipVariations,f=n.allowedAutoPlacements,p=void 0===f?l.DD:f,h=(0,u.A)(r),v=h?d?l.Ol:l.Ol.filter(function(e){return(0,u.A)(e)===h}):l.OM,g=v.filter(function(e){return p.indexOf(e)>=0})
0===g.length&&(g=v)
var m=g.reduce(function(t,n){return t[n]=(0,c.A)(e,{placement:n,boundary:i,rootBoundary:a,padding:s})[(0,o.A)(n)],t},{})
return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}(t,{placement:n,boundary:g,rootBoundary:m,padding:v,flipVariations:E,allowedAutoPlacements:w}):n)},[]),A=t.rects.reference,I=t.rects.popper,_=new Map,R=!0,O=C[0],N=0;N<C.length;N++){var D=C[N],P=(0,o.A)(D),L=(0,u.A)(D)===l.ni,x=[l.Mn,l.sQ].indexOf(P)>=0,M=x?"width":"height",F=(0,c.A)(t,{placement:D,boundary:g,rootBoundary:m,altBoundary:y,padding:v}),B=x?L?l.pG:l.kb:L?l.sQ:l.Mn
A[M]>I[M]&&(B=i(B))
var U=i(B),j=[]
if(d&&j.push(F[P]<=0),p&&j.push(F[B]<=0,F[U]<=0),j.every(function(e){return e})){O=D,R=!1
break}_.set(D,j)}if(R)for(var K=function(e){var t=C.find(function(t){var n=_.get(t)
if(n)return n.slice(0,e).every(function(e){return e})})
if(t)return O=t,"break"},H=E?3:1;H>0&&"break"!==K(H);H--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},3496:function(e,t,n){"use strict"
n.r(t),n.d(t,{distanceAndSkiddingToXY:function(){return o}})
var r=n(2838),i=n(1900)
function o(e,t,n){var o=(0,r.A)(e),a=[i.kb,i.Mn].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=s[0],u=s[1]
return c=c||0,u=(u||0)*a,[i.kb,i.pG].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}}t.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=void 0===a?[0,0]:a,c=i.DD.reduce(function(e,n){return e[n]=o(n,t.rects,s),e},{}),u=c[t.placement],l=u.x,d=u.y
null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=c}}},3232:function(e,t,n){"use strict"
n.r(t),n.d(t,{default:function(){return p}})
var r=n(1900),i=n(2838),o=n(1753),a=n(100)
function s(e,t,n){return(0,a.T9)(e,(0,a.jk)(t,n))}var c=n(8813),u=n(1589),l=n(1641),d=n(9771),f=n(6434),p={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,p=e.name,h=n.mainAxis,v=void 0===h||h,g=n.altAxis,m=void 0!==g&&g,y=n.boundary,b=n.rootBoundary,E=n.altBoundary,w=n.padding,T=n.tether,S=void 0===T||T,k=n.tetherOffset,C=void 0===k?0:k,A=(0,l.A)(t,{boundary:y,rootBoundary:b,padding:w,altBoundary:E}),I=(0,i.A)(t.placement),_=(0,d.A)(t.placement),R=!_,O=(0,o.A)(I),N="x"===O?"y":"x",D=t.modifiersData.popperOffsets,P=t.rects.reference,L=t.rects.popper,x="function"==typeof C?C(Object.assign({},t.rects,{placement:t.placement})):C,M="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0}
if(D){if(v){var U,j="y"===O?r.Mn:r.kb,K="y"===O?r.sQ:r.pG,H="y"===O?"height":"width",V=D[O],W=V+A[j],G=V-A[K],q=S?-L[H]/2:0,z=_===r.ni?P[H]:L[H],X=_===r.ni?-L[H]:-P[H],J=t.elements.arrow,Q=S&&J?(0,c.A)(J):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,f.A)(),Z=Y[j],$=Y[K],ee=s(0,P[H],Q[H]),te=R?P[H]/2-q-ee-Z-M.mainAxis:z-ee-Z-M.mainAxis,ne=R?-P[H]/2+q+ee+$+M.mainAxis:X+ee+$+M.mainAxis,re=t.elements.arrow&&(0,u.A)(t.elements.arrow),ie=re?"y"===O?re.clientTop||0:re.clientLeft||0:0,oe=null!=(U=null==F?void 0:F[O])?U:0,ae=V+te-oe-ie,se=V+ne-oe,ce=s(S?(0,a.jk)(W,ae):W,V,S?(0,a.T9)(G,se):G)
D[O]=ce,B[O]=ce-V}if(m){var ue,le="x"===O?r.Mn:r.kb,de="x"===O?r.sQ:r.pG,fe=D[N],pe="y"===N?"height":"width",he=fe+A[le],ve=fe-A[de],ge=-1!==[r.Mn,r.kb].indexOf(I),me=null!=(ue=null==F?void 0:F[N])?ue:0,ye=ge?he:fe-P[pe]-L[pe]-me+M.altAxis,be=ge?fe+P[pe]+L[pe]-me-M.altAxis:ve,Ee=S&&ge?function(e,t,n){var r=s(e,t,n)
return r>n?n:r}(ye,fe,be):s(S?ye:he,fe,S?be:ve)
D[N]=Ee,B[N]=Ee-fe}t.modifiersData[p]=B}},requiresIfExists:["offset"]}},732:function(e,t,n){"use strict"
n.r(t),n.d(t,{createPopper:function(){return D},defaultModifiers:function(){return N},detectOverflow:function(){return w.A},popperGenerator:function(){return E}})
var r=n(1580),i=n(9004),o=n(1553),a=n(5339),s=n(9110),c=n(3543),u=n(1682),l=n(2928),d=n(100)
function f(e,t,n){void 0===n&&(n=!1)
var f,p,h=(0,a.sb)(t),v=(0,a.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.LI)(t.width)/e.offsetWidth||1,r=(0,d.LI)(t.height)/e.offsetHeight||1
return 1!==n||1!==r}(t),g=(0,u.A)(t),m=(0,r.A)(e,v,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0}
return(h||!h&&!n)&&(("body"!==(0,s.A)(t)||(0,l.A)(g))&&(y=(f=t)!==(0,o.A)(f)&&(0,a.sb)(f)?{scrollLeft:(p=f).scrollLeft,scrollTop:p.scrollTop}:(0,i.A)(f)),(0,a.sb)(t)?((b=(0,r.A)(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):g&&(b.x=(0,c.A)(g))),{x:m.left+y.scrollLeft-b.x,y:m.top+y.scrollTop-b.y,width:m.width,height:m.height}}var p=n(8813),h=n(9647),v=n(1589),g=n(1900)
function m(e){var t=new Map,n=new Set,r=[]
function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e)
r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}var y={placement:"bottom",modifiers:[],strategy:"absolute"}
function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function E(e){void 0===e&&(e={})
var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?y:i
return function(e,t,n){void 0===n&&(n=o)
var i,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},y,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,d={state:c,setOptions:function(n){var i="function"==typeof n?n(c.options):n
E(),c.options=Object.assign({},o,c.options,i),c.scrollParents={reference:(0,a.vq)(e)?(0,h.A)(e):e.contextElement?(0,h.A)(e.contextElement):[],popper:(0,h.A)(t)}
var s,l,f=function(e){var t=m(e)
return g.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(r,c.options.modifiers),l=s.reduce(function(e,t){var n=e[t.name]
return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})))
return c.orderedModifiers=f.filter(function(e){return e.enabled}),c.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect
if("function"==typeof i){var o=i({state:c,name:t,instance:d,options:r})
u.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,n=e.popper
if(b(t,n)){c.rects={reference:f(t,(0,v.A)(n),"fixed"===c.options.strategy),popper:(0,p.A)(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(e){return c.modifiersData[e.name]=Object.assign({},e.data)})
for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var i=c.orderedModifiers[r],o=i.fn,a=i.options,s=void 0===a?{}:a,u=i.name
"function"==typeof o&&(c=o({state:c,options:s,name:u,instance:d})||c)}else c.reset=!1,r=-1}}},update:(i=function(){return new Promise(function(e){d.forceUpdate(),e(c)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(i())})})),s}),destroy:function(){E(),l=!0}}
if(!b(e,t))return d
function E(){u.forEach(function(e){return e()}),u=[]}return d.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var w=n(1641),T={passive:!0},S={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,s=r.resize,c=void 0===s||s,u=(0,o.A)(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper)
return a&&l.forEach(function(e){e.addEventListener("scroll",n.update,T)}),c&&u.addEventListener("resize",n.update,T),function(){a&&l.forEach(function(e){e.removeEventListener("scroll",n.update,T)}),c&&u.removeEventListener("resize",n.update,T)}},data:{}},k=n(9125),C={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name
t.modifiersData[n]=(0,k.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},A=n(7997),I=n(2838),_=n(9771),R={top:"auto",right:"auto",bottom:"auto",left:"auto"}
function O(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,y=void 0===m?0:m,b=s.y,E=void 0===b?0:b,w="function"==typeof p?p({x:y,y:E}):{x:y,y:E}
y=w.x,E=w.y
var T=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),k=g.kb,C=g.Mn,I=window
if(f){var _=(0,v.A)(n),O="clientHeight",N="clientWidth"
_===(0,o.A)(n)&&(_=(0,u.A)(n),"static"!==(0,A.A)(_).position&&"absolute"===c&&(O="scrollHeight",N="scrollWidth")),(i===g.Mn||(i===g.kb||i===g.pG)&&a===g._N)&&(C=g.sQ,E-=(h&&_===I&&I.visualViewport?I.visualViewport.height:_[O])-r.height,E*=l?1:-1),i!==g.kb&&(i!==g.Mn&&i!==g.sQ||a!==g._N)||(k=g.pG,y-=(h&&_===I&&I.visualViewport?I.visualViewport.width:_[N])-r.width,y*=l?1:-1)}var D,P=Object.assign({position:c},f&&R),L=!0===p?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1
return{x:(0,d.LI)(n*i)/i||0,y:(0,d.LI)(r*i)/i||0}}({x:y,y:E},(0,o.A)(n)):{x:y,y:E}
return y=L.x,E=L.y,l?Object.assign({},P,((D={})[C]=S?"0":"",D[k]=T?"0":"",D.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+E+"px)":"translate3d("+y+"px, "+E+"px, 0)",D)):Object.assign({},P,((t={})[C]=S?E+"px":"",t[k]=T?y+"px":"",t.transform="",t))}var N=[S,C,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:(0,I.A)(t.placement),variation:(0,_.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy}
null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,O(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,O(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state
Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];(0,a.sb)(i)&&(0,s.A)(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e]
!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}}
return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,a.sb)(r)&&(0,s.A)(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]}],D=E({defaultModifiers:N})},9125:function(e,t,n){"use strict"
n.d(t,{A:function(){return s}})
var r=n(2838),i=n(9771),o=n(1753),a=n(1900)
function s(e){var t,n=e.reference,s=e.element,c=e.placement,u=c?(0,r.A)(c):null,l=c?(0,i.A)(c):null,d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2
switch(u){case a.Mn:t={x:d,y:n.y-s.height}
break
case a.sQ:t={x:d,y:n.y+n.height}
break
case a.pG:t={x:n.x+n.width,y:f}
break
case a.kb:t={x:n.x-s.width,y:f}
break
default:t={x:n.x,y:n.y}}var p=u?(0,o.A)(u):null
if(null!=p){var h="y"===p?"height":"width"
switch(l){case a.ni:t[p]=t[p]-(n[h]/2-s[h]/2)
break
case a._N:t[p]=t[p]+(n[h]/2-s[h]/2)}}return t}},1641:function(e,t,n){"use strict"
n.d(t,{A:function(){return w}})
var r=n(1900),i=n(1553),o=n(1682),a=n(3543),s=n(1697),c=n(7997),u=n(9004),l=n(100),d=n(9647),f=n(1589),p=n(5339),h=n(1580),v=n(3065),g=n(9110)
function m(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t,n){return t===r.R9?m(function(e,t){var n=(0,i.A)(e),r=(0,o.A)(e),c=n.visualViewport,u=r.clientWidth,l=r.clientHeight,d=0,f=0
if(c){u=c.width,l=c.height
var p=(0,s.A)();(p||!p&&"fixed"===t)&&(d=c.offsetLeft,f=c.offsetTop)}return{width:u,height:l,x:d+(0,a.A)(e),y:f}}(e,n)):(0,p.vq)(t)?function(e,t){var n=(0,h.A)(e,!1,"fixed"===t)
return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):m(function(e){var t,n=(0,o.A)(e),r=(0,u.A)(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=(0,l.T9)(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=(0,l.T9)(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+(0,a.A)(e),p=-r.scrollTop
return"rtl"===(0,c.A)(i||n).direction&&(f+=(0,l.T9)(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:d,x:f,y:p}}((0,o.A)(e)))}var b=n(9125),E=n(6434)
function w(e,t){void 0===t&&(t={})
var n,i=t,a=i.placement,s=void 0===a?e.placement:a,u=i.strategy,w=void 0===u?e.strategy:u,T=i.boundary,S=void 0===T?r.WY:T,k=i.rootBoundary,C=void 0===k?r.R9:k,A=i.elementContext,I=void 0===A?r.xf:A,_=i.altBoundary,R=void 0!==_&&_,O=i.padding,N=void 0===O?0:O,D=function(e){return Object.assign({},(0,E.A)(),e)}("number"!=typeof N?N:(n=N,r.OM.reduce(function(e,t){return e[t]=n,e},{}))),P=I===r.xf?r.ir:r.xf,L=e.rects.popper,x=e.elements[R?P:I],M=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=(0,d.A)((0,v.A)(e)),n=["absolute","fixed"].indexOf((0,c.A)(e).position)>=0&&(0,p.sb)(e)?(0,f.A)(e):e
return(0,p.vq)(n)?t.filter(function(e){return(0,p.vq)(e)&&function(e,t){var n=t.getRootNode&&t.getRootNode()
if(e.contains(t))return!0
if(n&&(0,p.Ng)(n)){var r=t
do{if(r&&e.isSameNode(r))return!0
r=r.parentNode||r.host}while(r)}return!1}(e,n)&&"body"!==(0,g.A)(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=y(e,n,r)
return t.top=(0,l.T9)(i.top,t.top),t.right=(0,l.jk)(i.right,t.right),t.bottom=(0,l.jk)(i.bottom,t.bottom),t.left=(0,l.T9)(i.left,t.left),t},y(e,a,r))
return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}((0,p.vq)(x)?x:x.contextElement||(0,o.A)(e.elements.popper),S,C,w),F=(0,h.A)(e.elements.reference),B=(0,b.A)({reference:F,element:L,strategy:"absolute",placement:s}),U=m(Object.assign({},L,B)),j=I===r.xf?U:F,K={top:M.top-j.top+D.top,bottom:j.bottom-M.bottom+D.bottom,left:M.left-j.left+D.left,right:j.right-M.right+D.right},H=e.modifiersData.offset
if(I===r.xf&&H){var V=H[s]
Object.keys(K).forEach(function(e){var t=[r.pG,r.sQ].indexOf(e)>=0?1:-1,n=[r.Mn,r.sQ].indexOf(e)>=0?"y":"x"
K[e]+=V[n]*t})}return K}},2838:function(e,t,n){"use strict"
function r(e){return e.split("-")[0]}n.d(t,{A:function(){return r}})},6434:function(e,t,n){"use strict"
function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:function(){return r}})},1753:function(e,t,n){"use strict"
function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:function(){return r}})},9771:function(e,t,n){"use strict"
function r(e){return e.split("-")[1]}n.d(t,{A:function(){return r}})},100:function(e,t,n){"use strict"
n.d(t,{LI:function(){return o},T9:function(){return r},jk:function(){return i}})
var r=Math.max,i=Math.min,o=Math.round},3604:function(e,t,n){"use strict"
function r(){var e=navigator.userAgentData
return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}n.d(t,{A:function(){return r}})},8796:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.OPEN_BROADCAST_CHANNELS=t.BroadcastChannel=void 0,t.clearNodeFolder=function(e){e=(0,o.fillOptionsWithDefaults)(e)
var t=(0,i.chooseMethod)(e)
return"node"===t.type?t.clearNodeFolder().then(function(){return!0}):r.PROMISE_RESOLVED_FALSE},t.enforceOptions=function(e){s=e}
var r=n(4997),i=n(3592),o=n(7591),a=new Set
t.OPEN_BROADCAST_CHANNELS=a
var s,c=0,u=function(e,t){var n,u
this.id=c++,a.add(this),this.name=e,s&&(t=s),this.options=(0,o.fillOptionsWithDefaults)(t),this.method=(0,i.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,u=(n=this).method.create(n.name,n.options),(0,r.isPromise)(u)?(n._prepP=u,u.then(function(e){n._state=e})):n._state=u}
function l(e,t,n){var i={time:e.method.microSeconds(),type:t,data:n}
return(e._prepP?e._prepP:r.PROMISE_RESOLVED_VOID).then(function(){var t=e.method.postMessage(e._state,i)
return e._uMP.add(t),t.catch().then(function(){return e._uMP.delete(t)}),t})}function d(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function f(e,t,n){e._addEL[t].push(n),function(e){if(!e._iL&&d(e)){var t=function(t){e._addEL[t.type].forEach(function(e){var n=e.time-1e5
t.time>=n&&e.fn(t.data)})},n=e.method.microSeconds()
e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}(e)}function p(e,t,n){e._addEL[t]=e._addEL[t].filter(function(e){return e!==n}),function(e){if(e._iL&&!d(e)){e._iL=!1
var t=e.method.microSeconds()
e.method.onMessage(e._state,null,t)}}(e)}t.BroadcastChannel=u,u._pubkey=!0,u.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e))
return l(this,"message",e)},postInternal:function(e){return l(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e}
p(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,f(this,"message",t)):this._onML=null},addEventListener:function(e,t){f(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){p(this,e,this._addEL[e].find(function(e){return e.fn===t}))},close:function(){var e=this
if(!this.closed){a.delete(this),this.closed=!0
var t=this._prepP?this._prepP:r.PROMISE_RESOLVED_VOID
return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}}},3492:function(e,t,n){"use strict"
var r=n(5173)
e.exports={BroadcastChannel:r.BroadcastChannel,createLeaderElection:r.createLeaderElection,clearNodeFolder:r.clearNodeFolder,enforceOptions:r.enforceOptions,beLeader:r.beLeader}},5173:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BroadcastChannel",{enumerable:!0,get:function(){return r.BroadcastChannel}}),Object.defineProperty(t,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return r.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(t,"beLeader",{enumerable:!0,get:function(){return i.beLeader}}),Object.defineProperty(t,"clearNodeFolder",{enumerable:!0,get:function(){return r.clearNodeFolder}}),Object.defineProperty(t,"createLeaderElection",{enumerable:!0,get:function(){return i.createLeaderElection}}),Object.defineProperty(t,"enforceOptions",{enumerable:!0,get:function(){return r.enforceOptions}})
var r=n(8796),i=n(4462)},4462:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.beLeader=s,t.createLeaderElection=function(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector")
t=function(e,t){return e||(e={}),(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3),e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options)),e}(t,e)
var n=new o(e,t)
return e._befC.push(function(){return n.die()}),e._leaderElector=n,n}
var r=n(4997),i=n(5460),o=function(e,t){var n=this
this.broadcastChannel=e,this._options=t,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,r.randomToken)(),this._aplQ=r.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1
var i=function(e){"leader"===e.context&&("death"===e.action&&(n.hasLeader=!1),"tell"===e.action&&(n.hasLeader=!0))}
this.broadcastChannel.addEventListener("internal",i),this._lstns.push(i)}
function a(e,t){var n={context:"leader",action:t,token:e.token}
return e.broadcastChannel.postInternal(n)}function s(e){e.isLeader=!0,e.hasLeader=!0
var t=(0,i.add)(function(){return e.die()})
e._unl.push(t)
var n=function(t){"leader"===t.context&&"apply"===t.action&&a(e,"tell"),"leader"!==t.context||"tell"!==t.action||e._dpLC||(e._dpLC=!0,e._dpL(),a(e,"tell"))}
return e.broadcastChannel.addEventListener("internal",n),e._lstns.push(n),a(e,"tell")}o.prototype={applyOnce:function(e){var t=this
return this.isLeader?(0,r.sleep)(0,!0):this.isDead?(0,r.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then(function(){return function(){if(t.isLeader)return r.PROMISE_RESOLVED_TRUE
var n,i=!1,o=new Promise(function(e){n=function(){i=!0,e()}}),c=[],u=function(e){"leader"===e.context&&e.token!=t.token&&(c.push(e),"apply"===e.action&&e.token>t.token&&n(),"tell"===e.action&&(n(),t.hasLeader=!0))}
t.broadcastChannel.addEventListener("internal",u)
var l=e?4*t._options.responseTime:t._options.responseTime
return a(t,"apply").then(function(){return Promise.race([(0,r.sleep)(l),o.then(function(){return Promise.reject(new Error)})])}).then(function(){return a(t,"apply")}).then(function(){return Promise.race([(0,r.sleep)(l),o.then(function(){return Promise.reject(new Error)})])}).catch(function(){}).then(function(){return t.broadcastChannel.removeEventListener("internal",u),!i&&s(t).then(function(){return!0})})}()}).then(function(){t._aplQC=t._aplQC-1}),this._aplQ.then(function(){return t.isLeader}))},awaitLeadership:function(){return this._aLP||(this._aLP=(e=this).isLeader?r.PROMISE_RESOLVED_VOID:new Promise(function(t){var n=!1
function i(){n||(n=!0,e.broadcastChannel.removeEventListener("internal",o),t(!0))}e.applyOnce().then(function(){e.isLeader&&i()}),function t(){return(0,r.sleep)(e._options.fallbackInterval).then(function(){if(!e.isDead&&!n)return e.isLeader?void i():e.applyOnce(!0).then(function(){e.isLeader?i():t()})})}()
var o=function(t){"leader"===t.context&&"death"===t.action&&(e.hasLeader=!1,e.applyOnce().then(function(){e.isLeader&&i()}))}
e.broadcastChannel.addEventListener("internal",o),e._lstns.push(o)})),this._aLP
var e},set onduplicate(e){this._dpL=e},die:function(){var e=this
return this._lstns.forEach(function(t){return e.broadcastChannel.removeEventListener("internal",t)}),this._lstns=[],this._unl.forEach(function(e){return e.remove()}),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,a(this,"death")}}},3592:function(e,t,n){"use strict"
var r=n(8772)
n(6584),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=function(e){var t=[].concat(e.methods,c).filter(Boolean)
if(e.type){if("simulate"===e.type)return s.default
var n=t.find(function(t){return t.type===e.type})
if(n)return n
throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(e){return"idb"!==e.type}))
var r=t.find(function(e){return e.canBeUsed()})
if(r)return r
throw new Error("No useable method found in "+JSON.stringify(c.map(function(e){return e.type})))}
var i=r(n(9029)),o=r(n(4456)),a=r(n(1906)),s=r(n(8348)),c=[i.default,o.default,a.default]},4456:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSACTION_SETTINGS=void 0,t.averageResponseTime=C,t.canBeUsed=k,t.cleanOldMessages=m,t.close=w,t.commitIndexedDBTransaction=d,t.create=y,t.createDatabase=f,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(c,"readonly",u),n=t.objectStore(c),r=[]
return new Promise(function(e){n.openCursor().onsuccess=function(n){var i=n.target.result
i?(r.push(i.value),i.continue()):(d(t),e(r))}})},t.getIdb=l,t.getMessagesHigherThan=h,t.getOldMessages=g,t.microSeconds=void 0,t.onMessage=S,t.postMessage=T,t.removeMessagesById=v,t.type=void 0,t.writeMessage=p
var r=n(4997),i=n(6070),o=n(7591),a=r.microSeconds
t.microSeconds=a
var s="pubkey.broadcast-channel-0-",c="messages",u={durability:"relaxed"}
function l(){if("undefined"!=typeof indexedDB)return indexedDB
if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB
if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB
if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function d(e){e.commit&&e.commit()}function f(e){var t=l(),n=s+e,r=t.open(n)
return r.onupgradeneeded=function(e){e.target.result.createObjectStore(c,{keyPath:"id",autoIncrement:!0})},new Promise(function(e,t){r.onerror=function(e){return t(e)},r.onsuccess=function(){e(r.result)}})}function p(e,t,n){var r={uuid:t,time:(new Date).getTime(),data:n},i=e.transaction([c],"readwrite",u)
return new Promise(function(e,t){i.oncomplete=function(){return e()},i.onerror=function(e){return t(e)},i.objectStore(c).add(r),d(i)})}function h(e,t){var n=e.transaction(c,"readonly",u),r=n.objectStore(c),i=[],o=IDBKeyRange.bound(t+1,1/0)
if(r.getAll){var a=r.getAll(o)
return new Promise(function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}})}return new Promise(function(e,a){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),r.openCursor(o)}catch(e){return r.openCursor()}}()
s.onerror=function(e){return a(e)},s.onsuccess=function(r){var o=r.target.result
o?o.value.id<t+1?o.continue(t+1):(i.push(o.value),o.continue()):(d(n),e(i))}})}function v(e,t){var n=e.transaction([c],"readwrite",u).objectStore(c)
return Promise.all(t.map(function(e){var t=n.delete(e)
return new Promise(function(e){t.onsuccess=function(){return e()}})}))}function g(e,t){var n=(new Date).getTime()-t,r=e.transaction(c,"readonly",u),i=r.objectStore(c),o=[]
return new Promise(function(e){i.openCursor().onsuccess=function(t){var i=t.target.result
if(i){var a=i.value
if(!(a.time<n))return d(r),void e(o)
o.push(a),i.continue()}else e(o)}})}function m(e,t){return g(e,t).then(function(t){return v(e,t.map(function(e){return e.id}))})}function y(e,t){return t=(0,o.fillOptionsWithDefaults)(t),f(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:(0,r.randomToken)(),eMIs:new i.ObliviousSet(2*t.idb.ttl),writeBlockPromise:r.PROMISE_RESOLVED_VOID,messagesCallback:null,readQueuePromises:[],db:n}
return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},b(o),o})}function b(e){e.closed||E(e).then(function(){return(0,r.sleep)(e.options.idb.fallbackInterval)}).then(function(){return b(e)})}function E(e){return e.closed?r.PROMISE_RESOLVED_VOID:e.messagesCallback?h(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(e){return!!e}).map(function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t}).filter(function(t){return function(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}(t,e)}).sort(function(e,t){return e.time-t.time})
return n.forEach(function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),r.PROMISE_RESOLVED_VOID}):r.PROMISE_RESOLVED_VOID}function w(e){e.closed=!0,e.db.close()}function T(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return p(e.db,e.uuid,t)}).then(function(){0===(0,r.randomInt)(0,10)&&m(e.db,e.options.idb.ttl)}),e.writeBlockPromise}function S(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,E(e)}function k(){return!!l()}function C(e){return 2*e.idb.fallbackInterval}t.TRANSACTION_SETTINGS=u,t.type="idb"
var A={create:y,close:w,onMessage:S,postMessage:T,canBeUsed:k,type:"idb",averageResponseTime:C,microSeconds:a}
t.default=A},1906:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=f,t.averageResponseTime=y,t.canBeUsed=m,t.close=v,t.create=h,t.default=void 0,t.getLocalStorage=u,t.microSeconds=void 0,t.onMessage=g,t.postMessage=d,t.removeStorageEventListener=p,t.storageKey=l,t.type=void 0
var r=n(6070),i=n(7591),o=n(4997),a=o.microSeconds
t.microSeconds=a
var s="pubkey.broadcastChannel-",c="localstorage"
function u(){var e
if("undefined"==typeof window)return null
try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function l(e){return s+e}function d(e,t){return new Promise(function(n){(0,o.sleep)().then(function(){var r=l(e.channelName),i={token:(0,o.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},a=JSON.stringify(i)
u().setItem(r,a)
var s=document.createEvent("Event")
s.initEvent("storage",!0,!0),s.key=r,s.newValue=a,window.dispatchEvent(s),n()})})}function f(e,t){var n=l(e),r=function(e){e.key===n&&t(JSON.parse(e.newValue))}
return window.addEventListener("storage",r),r}function p(e){window.removeEventListener("storage",e)}function h(e,t){if(t=(0,i.fillOptionsWithDefaults)(t),!m())throw new Error("BroadcastChannel: localstorage cannot be used")
var n=(0,o.randomToken)(),a=new r.ObliviousSet(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:a}
return s.listener=f(e,function(e){s.messagesCallback&&e.uuid!==n&&e.token&&!a.has(e.token)&&(e.data.time&&e.data.time<s.messagesCallbackTime||(a.add(e.token),s.messagesCallback(e.data)))}),s}function v(e){p(e.listener)}function g(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function m(){var e=u()
if(!e)return!1
try{var t="__broadcastchannel_check"
e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function y(){var e=navigator.userAgent.toLowerCase()
return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=c
var b={create:h,close:v,onMessage:g,postMessage:d,canBeUsed:m,type:c,averageResponseTime:y,microSeconds:a}
t.default=b},9029:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=l,t.close=s,t.create=a,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0
var r=n(4997),i=r.microSeconds
t.microSeconds=i
var o="native"
function a(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]}
return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function s(e){e.bc.close(),e.subFns=[]}function c(e,t){try{return e.bc.postMessage(t,!1),r.PROMISE_RESOLVED_VOID}catch(e){return Promise.reject(e)}}function u(e,t){e.messagesCallback=t}function l(){if("undefined"==typeof window)return!1
if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill")
return!0}return!1}function d(){return 150}t.type=o
var f={create:a,close:s,onMessage:u,postMessage:c,canBeUsed:l,type:o,averageResponseTime:d,microSeconds:i}
t.default=f},8348:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=l,t.close=s,t.create=a,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0
var r=n(4997).microSeconds
t.microSeconds=r
var i="simulate"
t.type=i
var o=new Set
function a(e){var t={name:e,messagesCallback:null}
return o.add(t),t}function s(e){o.delete(e)}function c(e,t){return new Promise(function(n){return setTimeout(function(){Array.from(o).filter(function(t){return t.name===e.name}).filter(function(t){return t!==e}).filter(function(e){return!!e.messagesCallback}).forEach(function(e){return e.messagesCallback(t)}),n()},5)})}function u(e,t){e.messagesCallback=t}function l(){return!0}function d(){return 5}var f={create:a,close:s,onMessage:u,postMessage:c,canBeUsed:l,type:i,averageResponseTime:d,microSeconds:r}
t.default=f},7591:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.fillOptionsWithDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e))
return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}},4997:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PROMISE_RESOLVED_VOID=t.PROMISE_RESOLVED_TRUE=t.PROMISE_RESOLVED_FALSE=void 0,t.isPromise=function(e){return!(!e||"function"!=typeof e.then)},t.microSeconds=function(){var e=(new Date).getTime()
return e===o?1e3*e+ ++a:(o=e,a=0,1e3*e)},t.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},t.randomToken=function(){return Math.random().toString(36).substring(2)},t.sleep=function(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}
var n=Promise.resolve(!1)
t.PROMISE_RESOLVED_FALSE=n
var r=Promise.resolve(!0)
t.PROMISE_RESOLVED_TRUE=r
var i=Promise.resolve()
t.PROMISE_RESOLVED_VOID=i
var o=0,a=0},8251:function(e){e.exports=!1},6070:function(e,t,n){"use strict"
n.r(t),n.d(t,{ObliviousSet:function(){return r},now:function(){return o},removeTooOldValues:function(){return i}})
var r=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this
this.map.set(e,o()),this._to||(this._to=!0,setTimeout(function(){t._to=!1,i(t)},0))},e.prototype.clear=function(){this.map.clear()},e}()
function i(e){for(var t=o()-e.ttl,n=e.map[Symbol.iterator]();;){var r=n.next().value
if(!r)return
var i=r[0]
if(!(r[1]<t))return
e.map.delete(i)}}function o(){return(new Date).getTime()}},5019:function(e,t,n){"use strict"
n.r(t)
var r=n(1641),i={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,i=e.options,o=(0,r.A)(t,i),a=t.modifiersData.preventOverflow||{x:0,y:0},s=a.x,c=a.y,u=t.rects.popper,l=u.width,d=u.height,f=t.placement.split("-")[0],p="left"===f?"left":"right",h="top"===f?"top":"bottom"
t.modifiersData[n]={width:l-o[p]-s,height:d-o[h]-c}}}
t.default=i},7632:function(e,t,n){"use strict"
n.r(t),n.d(t,{TrackedArray:function(){return x},TrackedMap:function(){return f},TrackedObject:function(){return $},TrackedSet:function(){return E},TrackedWeakMap:function(){return p},TrackedWeakSet:function(){return w},tracked:function(){return te}})
var r=n(473),i=n(1603),o=n(32)
function a(e){return a="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(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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,d(r.key),r)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e){if("object"!=a(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=a(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==a(t)?t:t+""}var f=u(function e(t){s(this,e),l(this,"collection",(0,o.createStorage)(null,function(){return!1})),l(this,"storages",new Map),l(this,"vals",void 0),this.vals=t?new Map(t):new Map},[{key:"readStorageFor",value:function(e){var t=this.storages,n=t.get(e)
void 0===n&&(n=(0,o.createStorage)(null,function(){return!1}),t.set(e,n)),(0,o.getValue)(n)}},{key:"dirtyStorageFor",value:function(e){var t=this.storages.get(e)
t&&(0,o.setValue)(t,null)}},{key:"get",value:function(e){return this.readStorageFor(e),this.vals.get(e)}},{key:"has",value:function(e){return this.readStorageFor(e),this.vals.has(e)}},{key:"entries",value:function(){return(0,o.getValue)(this.collection),this.vals.entries()}},{key:"keys",value:function(){return(0,o.getValue)(this.collection),this.vals.keys()}},{key:"values",value:function(){return(0,o.getValue)(this.collection),this.vals.values()}},{key:"forEach",value:function(e){(0,o.getValue)(this.collection),this.vals.forEach(e)}},{key:"size",get:function(){return(0,o.getValue)(this.collection),this.vals.size}},{key:Symbol.iterator,value:function(){return(0,o.getValue)(this.collection),this.vals[Symbol.iterator]()}},{key:Symbol.toStringTag,get:function(){return this.vals[Symbol.toStringTag]}},{key:"set",value:function(e,t){return this.dirtyStorageFor(e),(0,o.setValue)(this.collection,null),this.vals.set(e,t),this}},{key:"delete",value:function(e){return this.dirtyStorageFor(e),(0,o.setValue)(this.collection,null),this.storages.delete(e),this.vals.delete(e)}},{key:"clear",value:function(){this.storages.forEach(function(e){return(0,o.setValue)(e,null)}),this.storages.clear(),(0,o.setValue)(this.collection,null),this.vals.clear()}}])
Object.setPrototypeOf(f.prototype,Map.prototype)
var p=u(function e(t){s(this,e),l(this,"storages",new WeakMap),l(this,"vals",void 0),this.vals=t?new WeakMap(t):new WeakMap},[{key:"readStorageFor",value:function(e){var t=this.storages,n=t.get(e)
void 0===n&&(n=(0,o.createStorage)(null,function(){return!1}),t.set(e,n)),(0,o.getValue)(n)}},{key:"dirtyStorageFor",value:function(e){var t=this.storages.get(e)
t&&(0,o.setValue)(t,null)}},{key:"get",value:function(e){return this.readStorageFor(e),this.vals.get(e)}},{key:"has",value:function(e){return this.readStorageFor(e),this.vals.has(e)}},{key:"set",value:function(e,t){return this.dirtyStorageFor(e),this.vals.set(e,t),this}},{key:"delete",value:function(e){return this.dirtyStorageFor(e),this.storages.delete(e),this.vals.delete(e)}},{key:Symbol.toStringTag,get:function(){return this.vals[Symbol.toStringTag]}}])
function h(e){return h="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},h(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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,b(r.key),r)}}function m(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e){if("object"!=h(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=h(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==h(t)?t:t+""}Object.setPrototypeOf(p.prototype,WeakMap.prototype)
var E=m(function e(t){v(this,e),y(this,"collection",(0,o.createStorage)(null,function(){return!1})),y(this,"storages",new Map),y(this,"vals",void 0),this.vals=new Set(t)},[{key:"storageFor",value:function(e){var t=this.storages,n=t.get(e)
return void 0===n&&(n=(0,o.createStorage)(null,function(){return!1}),t.set(e,n)),n}},{key:"dirtyStorageFor",value:function(e){var t=this.storages.get(e)
t&&(0,o.setValue)(t,null)}},{key:"has",value:function(e){return(0,o.getValue)(this.storageFor(e)),this.vals.has(e)}},{key:"entries",value:function(){return(0,o.getValue)(this.collection),this.vals.entries()}},{key:"keys",value:function(){return(0,o.getValue)(this.collection),this.vals.keys()}},{key:"values",value:function(){return(0,o.getValue)(this.collection),this.vals.values()}},{key:"forEach",value:function(e){(0,o.getValue)(this.collection),this.vals.forEach(e)}},{key:"size",get:function(){return(0,o.getValue)(this.collection),this.vals.size}},{key:Symbol.iterator,value:function(){return(0,o.getValue)(this.collection),this.vals[Symbol.iterator]()}},{key:Symbol.toStringTag,get:function(){return this.vals[Symbol.toStringTag]}},{key:"add",value:function(e){return this.dirtyStorageFor(e),(0,o.setValue)(this.collection,null),this.vals.add(e),this}},{key:"delete",value:function(e){return this.dirtyStorageFor(e),(0,o.setValue)(this.collection,null),this.storages.delete(e),this.vals.delete(e)}},{key:"clear",value:function(){this.storages.forEach(function(e){return(0,o.setValue)(e,null)}),(0,o.setValue)(this.collection,null),this.storages.clear(),this.vals.clear()}}])
Object.setPrototypeOf(E.prototype,Set.prototype)
var w=m(function e(t){v(this,e),y(this,"storages",new WeakMap),y(this,"vals",void 0),this.vals=new WeakSet(t)},[{key:"storageFor",value:function(e){var t=this.storages,n=t.get(e)
return void 0===n&&(n=(0,o.createStorage)(null,function(){return!1}),t.set(e,n)),n}},{key:"dirtyStorageFor",value:function(e){var t=this.storages.get(e)
t&&(0,o.setValue)(t,null)}},{key:"has",value:function(e){return(0,o.getValue)(this.storageFor(e)),this.vals.has(e)}},{key:"add",value:function(e){return this.vals.add(e),this.dirtyStorageFor(e),this}},{key:"delete",value:function(e){return this.dirtyStorageFor(e),this.storages.delete(e),this.vals.delete(e)}},{key:Symbol.toStringTag,get:function(){return this.vals[Symbol.toStringTag]}}])
function T(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 S(e){var t=function(e){if("object"!=_(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=_(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==_(t)?t:t+""}function k(e,t,n){C(e,t),t.set(e,n)}function C(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A(e,t){return e.get(I(e,t))}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n
throw new TypeError("Private element is not present on this object")}function _(e){return _="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},_(e)}Object.setPrototypeOf(w.prototype,WeakSet.prototype)
var R=new Set([Symbol.iterator,"concat","entries","every","filter","find","findIndex","flat","flatMap","forEach","includes","indexOf","join","keys","lastIndexOf","map","reduce","reduceRight","slice","some","values"]),O=new Set(["fill","push","unshift"])
function N(e){if("symbol"===_(e))return null
var t=Number(e)
return isNaN(t)?null:t%1==0?t:null}var D=new WeakMap,P=new WeakMap,L=new WeakSet,x=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),C(this,t=L),t.add(this),k(this,D,(0,o.createStorage)(null,function(){return!1})),k(this,P,new Map)
var r=n.slice(),i=this,a=new Map,s=!1
return new Proxy(r,{get:function(e,t){var n=N(t)
if(null!==n)return I(L,i,M).call(i,n),(0,o.getValue)(A(D,i)),e[n]
if("length"===t)return s?s=!1:(0,o.getValue)(A(D,i)),e[t]
if(O.has(t)&&(s=!0),R.has(t)){var r=a.get(t)
return void 0===r&&(r=function(){return(0,o.getValue)(A(D,i)),e[t].apply(e,arguments)},a.set(t,r)),r}return e[t]},set:function(e,t,n){e[t]=n
var r=N(t)
return null!==r?(I(L,i,F).call(i,r),I(L,i,B).call(i)):"length"===t&&I(L,i,B).call(i),!0},getPrototypeOf:function(){return e.prototype}})}return t=e,n=[{key:"from",value:function(t,n,r){return new e(n?Array.from(t,n,r):Array.from(t))}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r]
return new e(n)}}],n&&T(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t
var t,n}()
function M(e){var t=A(P,this).get(e)
void 0===t&&(t=(0,o.createStorage)(null,function(){return!1}),A(P,this).set(e,t)),(0,o.getValue)(t)}function F(e){var t=A(P,this).get(e)
t&&(0,o.setValue)(t,null)}function B(){(0,o.setValue)(A(D,this),null),A(P,this).clear()}function U(e){return U="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},U(e)}function j(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,K(r.key),r)}}function K(e){var t=function(e){if("object"!=U(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=U(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==U(t)?t:t+""}function H(e,t,n){V(e,t),t.set(e,n)}function V(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W(e,t){return e.get(G(e,t))}function G(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n
throw new TypeError("Private element is not present on this object")}Object.setPrototypeOf(x.prototype,Array.prototype)
var q=new WeakMap,z=new WeakMap,X=new WeakSet,J=function(){return e=function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),V(this,t=X),t.add(this),H(this,q,new Map),H(this,z,(0,o.createStorage)(null,function(){return!1}))
var r=Object.getPrototypeOf(n),i=Object.getOwnPropertyDescriptors(n),a=Object.create(r)
for(var s in i)Object.defineProperty(a,s,i[s])
var c=this
return new Proxy(a,{get:function(e,t){return G(X,c,Q).call(c,t),e[t]},has:function(e,t){return G(X,c,Q).call(c,t),t in e},ownKeys:function(e){return(0,o.getValue)(W(z,c)),Reflect.ownKeys(e)},set:function(e,t,n){return e[t]=n,G(X,c,Y).call(c,t),G(X,c,Z).call(c),!0},deleteProperty:function(e,t){return t in e&&(delete e[t],G(X,c,Y).call(c,t),W(q,c).delete(t),G(X,c,Z).call(c)),!0},getPrototypeOf:function(){return e.prototype}})},t=[{key:"fromEntries",value:function(e){return new $(Object.fromEntries(e))}}],t&&j(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e
var e,t}()
function Q(e){var t=W(q,this).get(e)
void 0===t&&(t=(0,o.createStorage)(null,function(){return!1}),W(q,this).set(e,t)),(0,o.getValue)(t)}function Y(e){var t=W(q,this).get(e)
t&&(0,o.setValue)(t,null)}function Z(){(0,o.setValue)(W(z,this),null)}var $=J
function ee(e){return ee="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},ee(e)}function te(e,t,n){if(void 0!==t&&void 0!==n)return(0,r.tracked)(e,t,n)
if(Array.isArray(e))return new x(e)
switch(e){case Object:return new $
case Array:return new x
case Map:return new f
case WeakMap:return new p
case Set:return new E
case WeakSet:return new w}return e instanceof Map?new f(e):e instanceof WeakMap?new p:e instanceof Set?new E(e):e instanceof WeakSet?new w:((0,i.assert)("You must either use tracked as a field decorator, or to wrap built-in class instances:\n\n      class Example {\n        @tracked field = 123;\n\n        map = tracked(Map);\n        map = tracked(new Map());\n      }","object"===ee(e)&&null!==e),new $(e))}},3742:function(e,t,n){"use strict"
n.r(t),n.d(t,{cached:function(){return T},dedupeTracked:function(){return S},localCopy:function(){return E},trackedReset:function(){return w}})
var r,i,o=n(1603),a=n(4471),s=n(473),c=n(4217)
function u(e){return u="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},u(e)}function l(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,d(r.key),r)}}function d(e){var t=function(e){if("object"!=u(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=u(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==u(t)?t:t+""}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p,h,v,g,m,y=(r=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){var t
!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"prevRemote",void 0),f(this,"peek",void 0),(t=i)&&Object.defineProperty(this,"value",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}),p=r.prototype,h="value",v=[s.tracked],g={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(g).forEach(function(e){m[e]=g[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),void 0===(m=v.slice().reverse().reduce(function(e,t){return t(p,h,e)||e},m)).initializer&&(Object.defineProperty(p,h,m),m=null),i=m,r)
function b(e,t,n){var r=t.get(e)
return void 0===r&&(r=new y,t.set(e,r),r.value=r.peek="function"==typeof n?n.call(e):n),r}function E(e,t){(0,o.assert)("@localCopy() must be given a memo path as its first argument, received `".concat(String(e),"`"),"string"==typeof e)
var n=new WeakMap
return function(){var r=function(t){return(0,a.get)(t,e)}
return{get:function(){var e=b(this,n,t),i=e.prevRemote,o=r(this)
return i!==o&&(e.value=e.prevRemote=o),e.value},set:function(e){if(!n.has(this)){var i=b(this,n,t)
return i.prevRemote=r(this),void(i.value=e)}b(this,n,t).value=e}}}}function w(e){(0,o.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"===u(e)&&null!==e&&void 0!==e.memo)
var t=new WeakMap
return function(n,r,i){var o,s,c,l,d=null!==(o=i.initializer)&&void 0!==o?o:function(){}
"object"===u(e)?(s=e.memo,c=null!==(l=e.update)&&void 0!==l?l:d):(s=e,c=d)
var f="function"==typeof s?function(e,t){return s.call(e,e,r,t)}:function(e){return(0,a.get)(e,s)}
return{get:function(){var e=b(this,t,d),n=e.prevRemote,i=f(this,n)
return i!==n&&(e.prevRemote=i,e.value=e.peek=c.call(this,this,r,e.peek)),e.value},set:function(e){b(this,t,d).value=e}}}}function T(e,t,n){(0,o.assert)("@cached can only be used on getters",n&&n.get)
var r=n.get,i=n.set,a=new WeakMap
return{get:function(){var e=a.get(this)
return void 0===e&&(e=(0,c.createCache)(r.bind(this)),a.set(this,e)),(0,c.getValue)(e)},set:i}}function S(){var e,t=function(t,n,r){var i=r.initializer,o=(0,s.tracked)(t,n,r),a=o.get,c=o.set,u=new WeakMap
return{get:function(){if(!u.has(this)){var e=null==i?void 0:i.call(this)
u.set(this,e),c.call(this,e)}return a.call(this)},set:function(t){u.has(this)&&e(t,u.get(this))||(u.set(this,t),c.call(this,t))}}}
return 3===arguments.length?(e=function(e,t){return e===t},t.apply(void 0,arguments)):1===arguments.length&&"function"==typeof arguments[0]?(e=arguments[0],t):void(0,o.assert)("@dedupeTracked() can either be invoked without arguments or with one comparator function, received `".concat(String(arguments),"`"),!1)}},5460:function(e,t,n){"use strict"
n.r(t),n.d(t,{add:function(){return d},getSize:function(){return h},removeAll:function(){return p},runAll:function(){return f}})
var r=n(8251),i=n.n(r),o={add:function(e){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!=typeof window.addEventListener)return
window.addEventListener("beforeunload",function(){e()},!0),window.addEventListener("unload",function(){e()},!0)}}},a=n(5870),s=n.n(a),c=i()?s():o,u=new Set,l=!1
function d(e){if(l||(l=!0,c.add(f)),"function"!=typeof e)throw new Error("Listener is no function")
return u.add(e),{remove:function(){return u.delete(e)},run:function(){return u.delete(e),e()}}}function f(){var e=[]
return u.forEach(function(t){e.push(t()),u.delete(t)}),Promise.all(e)}function p(){u.clear()}function h(){return u.size}},1202:function(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 o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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 o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}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,o,a,s=[],c=!0,u=!1
try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(r=o.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&&(a=n.return(),Object(a)!==a))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,o=e.exec(n)
return o&&(r=o[1].replace(t,""),i=o[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),o=i.id,a=i.type,s={}
if("("===o.charAt(0)){for(var c,u=o.substring(1,o.length-1).split(r),l=0;c=u[l];++l)0===c.indexOf("urn")&&(u[l]=e(c))
o=u}return s[a]=o,s}}}()
var f=d,p=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},h={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 b,E,w,T,S=o(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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var a in r(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},h)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o}),k=(b=[h.ADVERTISING,h.ANALYTICS_AND_RESEARCH,h.FUNCTIONAL],E=[0,1,2,0],w=function(e){for(var t={},n=0;n<b.length;n++)t[b[n]]=E[e>>2*n&3]
return t},T=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 S}
var i=w(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=T(parseInt(r[3],10))
return{error:null,consent:new S(i,o,t,a)}},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 S}
var i=r.enterpriseAccountId,o=r.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a)
if(!s)return{error:"Invalid consent body encoding",consent:new S}
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],a=t[2],s=t[3]
return r===i&&a===o&&s===n})[0]
if(!u)return{error:null,consent:new S}
var l=w(u[0]),d=new Date(1e3*parseInt(s[2],10)),p=T(parseInt(s[3],10))
return{error:null,consent:new S(l,d,m,p)}}}),C=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),A=function(e){var t={}
for(var n in h)t[n]=e
return{error:null,consent:new S(t,null,null,e)}},I=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,o=null
try{o=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(C)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new S}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===m?k.parseConsentBodyEnterpriseUnbound(s,n,r):k.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new S}},_=o(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 S}
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 S}
if(!(e!==m||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new S}
if(!e){var o=p(y[m],t)
if(o&&r&&i){var a=I(o,m,r,i)
if(a.consent.userMode===m||a.error)return a}e=p("liap",t)?p(y[g],t)?g:v:p(y[v],t)?v:g}return function(e,t,n,r){var i=p(y[e],t)
return i?I(i,e,n,r):p(y[v],t)||p(y[g],t)||p(y[m],t)?A(2):A(1)}(e,t,r,i)}()},[{key:"isAccessAllowedForCategory",value:function(e){return!(this.consent&&!this.consent.error)||!Object.values(h).some(function(t){return t===e})||this.consent.consent.optedInConsentMap[e]}}]),R="BROWSER_LOCAL_STORAGE",O="BROWSER_SESSION_STORAGE",N=function(e){return e.NONE="NONE",e.AUDIT="AUDIT",e.ENFORCE="ENFORCE",e}({}),D="DATA_BLOCKED",P="DATA_FILTERED",L="DATA_ALLOWED",x="UNAPPROVED_KEY",M="WebStorageTrackerPrivacyEnforcementEvent",F=o(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,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=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(M,{trackerName:e,trackerDomain:window.location.origin,trackerType:t,enforcementAction:n,isReportOnly:o,accessDenialReason:a}),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(M," with ").concat(n," for ").concat(e," [Report-only:").concat(o,"]")))}}])
function B(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 U(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 o,a=JSON.parse(null!==(o=i.getAttribute("content"))&&void 0!==o?o:"[]")
if(!B(a))throw new SyntaxError("Parsed inventory is not of type Array<StorageTrackerInventory>: ".concat(JSON.stringify(a)))
return a.find(function(t){return t.type===e})}catch(e){throw new SyntaxError("Failed to parse inventory from meta tag: ".concat(e))}}}var j=o(function e(t){r(this,e),this.type=t?t.type:"UNKNOWN",this.mode=t?t.enforcementMode:N.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=a(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=a(this.nonEssentialTrackerWithDynamicKey)
try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],s=i[1]
if(this._matchesPattern(e,o))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=a(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,o=a(this.nonEssentialTrackerWithDynamicKey)
try{for(o.s();!(i=o.n()).done;){var s=c(i.value,2),u=s[0]
if(s[1],this._matchesPattern(e,u))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}}]),K=o(function e(){r(this,e)},[{key:"createService",value:function(e){if(e===R)return new j(U(R))
if(e===O)return new j(U(O))
throw new Error("Tracker type ".concat(e," is not supported"))}}])
t.startWebStorageEnforcement=function(e,t,n,r){var i,o,a=new _,s=new F(e,t,r)
try{i=(new K).createService(R),o=(new K).createService(O)}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()===N.NONE)return{allowed:!0}
if(!t.isApproved(e))return{allowed:!1,reason:x}
if(t.isEssential(e))return{allowed:!0}
var n=t.getNonEssentialCategories(e)
return Array.from(n).some(function(e){return!a.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(),L,n.getMode()===N.AUDIT),c.apply(e,[t])):n.getMode()===N.AUDIT?(p(t,r.reason),s.fireEnforcementAuditEvent(t,n.getType(),P,!0,r.reason),c.apply(e,[t])):(p(t,r.reason),s.fireEnforcementAuditEvent(t,n.getType(),P,n.getMode()===N.AUDIT,r.reason),null)}function f(e,t,n,r){var i=l(t,r)
i.allowed?(s.fireEnforcementAuditEvent(t,r.getType(),L,r.getMode()===N.AUDIT),u.apply(e,[t,n])):r.getMode()===N.AUDIT?(p(t,i.reason),s.fireEnforcementAuditEvent(t,r.getType(),D,!0,i.reason),u.apply(e,[t,n])):(p(t,i.reason),s.fireEnforcementAuditEvent(t,r.getType(),D,!1,i.reason))}function p(e,t){t===x&&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()!=N.NONE?d(this,e,i):this===window.sessionStorage&&o.getMode()!=N.NONE?d(this,e,o):c.apply(this,[e])},Storage.prototype.setItem=function(e,t){return this===window.localStorage&&i.getMode()!=N.NONE?f(this,e,t,i):this===window.sessionStorage&&o.getMode()!=N.NONE?f(this,e,t,o):u.apply(this,[e,t])}}},8453:function(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 o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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 p(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,o=[],a=!0,s=!1
try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(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 h(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,b,E,w="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",T=["b","del","em","i","s","strong","sub","sup"],S=T.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=[w,"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"].join("|"),C=o(function e(){r(this,e)}),A="[ \t\r\n]*"
function I(e){e=Array.isArray(e)?e:[e]
var t,n,r,i=0,o="<(?!/?"
return o+="(?:",e.forEach(function(e,a){t=e.tags||S,n=e.attrs||k,r=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=A,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++i,")?"),r&&(o+="|(?:".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)),o+=")"+A+")+",o+=")"}),o+=")",o+="/?>)",new RegExp(o,"i")}function _(e){return I({tags:e=e||S,checkUrlAttrs:!0})}function R(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?!_(n).test(e):r?!R.R_UNSAFE_CUSTOM_ELEMENT.test(e):!R.R_UNSAFE_HTML.test(e)}function O(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function N(e,t){var n=String(null!=e?e:""),r=n
return R(n,t)||(r=O(r),m("Content contains tags or attributes that are not allowed:\nContent: "+n,"error")),r}R.R_UNSAFE_HTML=_(),R.R_UNSAFE_CUSTOM_ELEMENT=I([{tags:S,checkUrlAttrs:!0},{tags:[(y={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[w,y.attrs].join("|"),checkUrlAttrs:!1}])
var D,P,L=function(){if("undefined"!=typeof window){var e=window.trustedTypes
if(e&&e.createPolicy&&e.isHTML)return e}}()
if(L){var x=L.createPolicy("jSecure",{createHTML:function(e){return e}})
b=function(e){return x.createHTML(e)},E=function(e){return L.isHTML(e)}}else{var M=function(e){a(n,e)
var t=f(n)
function n(){return r(this,n),t.apply(this,arguments)}return o(n,[{key:"toHTML",value:function(){return this.toString()}}]),n}(d(String))
b=function(e){return new M(e)},E=function(e){return null!==e&&"object"===n(e)&&"toHTML"in e&&"function"==typeof e.toHTML}}function F(e){return b(String(e))}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return F(t.map(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return E(e)?t:N(t)}).join(""))}function U(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 function(e,t){return Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw")&&Object.isFrozen(e)&&e.length===t.length+1}(e,n)?String.raw.apply(String,[{raw:e}].concat(h(function(e){return e.map(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return E(e)&&(t=X(t)),G(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​:")}(t))})}(n)))):B.apply(void 0,[e].concat(n))}function j(){return(D=D||document.implementation.createHTMLDocument("")).createElement("template")}function K(e){var t
return(P=P||j()).innerHTML=F(e),null!==(t=P.content.textContent)&&void 0!==t?t:""}var H=/[&<>"'\u0000\\=]/g,V="�",W={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":V,"\\":"&#92;","=":"&#61;"}
function G(e){return null===(null!=e?e:null)?null:String(e).replace(H,function(e){return W[e]})}var q=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,z={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"',apos:"'"}
function X(e){return null===(null!=e?e:null)?null:String(e).replace(q,function(e,n,r,i){return n?function(e){if(t(z,e))return z[e]
if("undefined"==typeof document)return e
var n=K("&".concat(e,";"))
return z[e]=n,n}(n):r||i?String.fromCodePoint(parseInt(r||i,r?16:10)||65533):V})}var J={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,"",""]},Q=/<([\w:]+)/
function Y(e,t){var n,r,i,o,a,s=t.createDocumentFragment(),c=[]
for(i=0,a=e.length;i<a;i++)if(r=e[i])if("string"==typeof r){n=n||s.appendChild(t.createElement("div"))
var u=p(Q.exec(r)||["",""],2)[1]
if(void 0!==u){var l=u.toLowerCase(),d=l in J&&J[l]||J._default
for(ee(n,d[1]+r+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild)
c.push.apply(c,h(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 Z(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 o,a=n[i],s="string"==typeof a
if(!(s||a instanceof C||"number"==typeof a))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return a?(a=s?"".concat(G(String(null!==(o=a)&&void 0!==o?o:""))):a.toString(),r[i]=a,a):e}return e})}(e,n):e
return N(i,r)}var $=Z
function ee(e,t,n){var r=Z(t,n)
return r&&/[<&]/.test(r)?e.innerHTML=F(r):r&&(e.textContent=r),r}var te=function(e){a(n,e)
var t=f(n)
function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return r(this,n),(i=t.call(this)).options=o,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return o(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(R(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=O(e),m("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(C),ne=/ /g,re=/[\s\u0000<>"]|%00/,ie=/\\/,oe=/([/\\]|^)([.]|%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 se(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(ne,"+")),!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(re.test(t))return m("jSecure Error: not valid url character found in url: "+e,"error"),n
var r,i=t.split("?")[0],o=!1
if(i){try{if(r=decodeURI(i),oe.test(r))return m("jSecure Error: malicious data found in url path: "+i,"error"),n}catch(e){o=!0}if(o)return m("jSecure Error: malformed url path detected: "+i),n
if(ie.test(i)||oe.test(i))return m("jSecure Error: malicious data found in url path: "+i,"error"),n}return e}var ce={redirect:function(e){window&&(window.location.href=e)}},ue={ALLOWED_TAGS:S,FORMATTING_TAGS:T,getTrustedHTML:function(){for(var e,t=j(),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i]
return(e=t.content).append.apply(e,h(r.map(function(e){return e.cloneNode(!0)}))),F(t.innerHTML)},parse:function(e,t){var n="string"==typeof e&&t?F(t(e)):B(e),r=j()
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 B(U.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 F(U.apply(void 0,[e].concat(n)))},getText:function(e){var t
return"undefined"==typeof document?null!==(t=X(function(e){return e.replace(/<[^>]*>|<|>/g,"")}(String(e))))&&void 0!==t?t:"":K(e)},htmlEncode:G,htmlUnencode:X,reEncode:function(e){return G(X(e))},sanitizeHTML:N,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,o="",a=n.length
return e&&e.forEach(function(e,t){var r
o+=e,t<a&&((i=n[t])instanceof te?o+=i:o+=G(String(null!==(r=i)&&void 0!==r?r:"")))}),"".concat(N(o))},_redirector:ce,redirect:function(e){var t=se(e)
t===e&&ce.redirect(t)},sanitizeUrl:se,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:$,setElementContent:ee,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 te(t,n)}}
e.exports=ue},8772:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6584:function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2164:function(e,t,n){"use strict"
function r(e){return r="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},r(e)}n.r(t),n.d(t,{BreadcrumbBuilder:function(){return sr},BrowserTransporter:function(){return ar},ClientBreadcrumb:function(){return ur},ClientBreadcrumbType:function(){return cr},ErrorType:function(){return uo},FALLBACK_PAGEKEY:function(){return F},FlushMode:function(){return yo},GENERIC_TRACER_LIX_PATTERN:function(){return Hr},GenericClientBreadcrumb:function(){return dr},Heap:function(){return un},HttpProtocolType:function(){return Ir},JetCore:function(){return Ar},OTEL_JET_ORIGIN_TAG:function(){return Tr},ParsedResponseHeaders:function(){return po},PerfMeasurement:function(){return To},RESPONSE_HEADERS:function(){return fo},ResourceProgressOriginalMetricsType:function(){return Rr},ResourceProgressType:function(){return _r},ResourceRequestType:function(){return Or},RumCore:function(){return bo},TrackingCore:function(){return wr},_eventEmitter:function(){return vt},allPromisesSettled:function(){return $t},arrayFromSet:function(){return en},arrayToBase64:function(){return Mt},castBreadcrumbIntoType:function(){return pr},copyContext:function(){return qt},dedupeTrackingScopesAndExtractBreadcrumbs:function(){return vr},deepClone:function(){return cn},deleteIDB:function(){return tn},determinErrorType:function(){return ho},emitJETError:function(){return an},extractBreadcrumbInTrackingScope:function(){return hr},extractTransferInfo:function(){return gr},extractVersionFromConfig:function(){return Zt},generateBase64UUID:function(){return Ft},generateByteUUID:function(){return Dt},generateControlUrn:function(){return Vt},generateNodeProcessJetPayload:function(){return Sr},generatePageInstance:function(){return Ht},generatePageUrn:function(){return Wt},generateResourceResponseContext:function(){return mo},generateRfc4122UUID:function(){return Ut},generateTrackingId:function(){return Bt},generateUUID:function(){return Ot},getBase64FromBase64Url:function(){return dn},getBsCookieInfo:function(){return sn},getDynamicTransporterSupportStatusFromLixValue:function(){return hn},getValidTransporterKeys:function(){return fn},isBase64TrackingId:function(){return Lt},isFlushOnCloseBrowserTabEnabled:function(){return on},isObjectNonEmpty:function(){return vn},operateSequenceNumberViaIDB:function(){return nn},parseStringPageInstance:function(){return Gt},parseTrackingId:function(){return Kt},queryStringToContext:function(){return Yt},queryStringToControlUrn:function(){return Qt},resolveCNDomain:function(){return ln},sanitizeURL:function(){return gn},serializePageInstance:function(){return zt},shouldUseXHR:function(){return rn},splitTrackingScopesByTransporters:function(){return pn},stringifyTrackingId:function(){return jt},uint8ToBase64:function(){return xt},uint8ToByteString:function(){return Nt}})
var i,o=["transporterKeys"],a=["breadcrumb"],s=["$type"],c=["requestStart"],u=["requestTime","viewNames","requestType","requestTag"],l=["requestStart"],d=["requestStart"],f=["requestTime","viewNames","requestType"]
function p(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?p(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(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,o,a,s=[],c=!0,u=!1
try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(r=o.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&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||_(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 g(e,t,n){return t=b(t),function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return m(e)}(e,y()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function E(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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function T(){T=function(){return t}
var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.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 o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),s=new D(r||[])
return i(a,"_invoke",{value:I(e,n,s)}),a}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",p="suspendedYield",h="executing",v="completed",g={}
function m(){}function y(){}function b(){}var E={}
u(E,a,function(){return this})
var w=Object.getPrototypeOf,S=w&&w(w(P([])))
S&&S!==n&&r.call(S,a)&&(E=S)
var k=b.prototype=m.prototype=Object.create(E)
function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){function n(i,o,a,s){var c=d(e[i],e,o)
if("throw"!==c.type){var u=c.arg,l=u.value
return l&&"object"==O(l)&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(l).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,s)})}s(c.arg)}var o
i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function I(t,n,r){var i=f
return function(o,a){if(i===h)throw new Error("Generator is already running")
if(i===v){if("throw"===o)throw a
return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate
if(s){var c=_(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=h
var u=d(t,n,r)
if("normal"===u.type){if(i=r.done?v:p,u.arg===g)continue
return{value:u.arg,done:r.done}}"throw"===u.type&&(i=v,r.method="throw",r.arg=u.arg)}}}function _(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,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g
var o=d(i,t.iterator,n.arg)
if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g
var a=o.arg
return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(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 N(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a]
if(n)return n.call(t)
if("function"==typeof t.next)return t
if(!isNaN(t.length)){var i=-1,o=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 o.next=o}}throw new TypeError(O(t)+" is not iterable")}return y.prototype=b,i(k,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,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,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(A.prototype),u(A.prototype,s,function(){return this}),t.AsyncIterator=A,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise)
var a=new A(l(e,n,r,i),o)
return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(k),u(k,c,"Generator"),u(k,a,function(){return this}),u(k,"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=P,D.prototype={constructor:D,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(N),!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 o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion
if("root"===a.tryLoc)return i("end")
if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc")
if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)
if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally")
if(this.prev<a.finallyLoc)return i(a.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 o=i
break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null)
var a=o?o.completion:{}
return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),N(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
N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function S(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function k(e){return function(){var t=this,n=arguments
return new Promise(function(r,i){var o=e.apply(t,n)
function a(e){S(o,r,i,a,s,"next",e)}function s(e){S(o,r,i,a,s,"throw",e)}a(void 0)})}}function C(e,t){if(null==e)return{}
var n,r,i=function(e,t){if(null==e)return{}
var n,r,i={},o=Object.keys(e)
for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n])
return i}(e,t)
if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e)
for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(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 o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function I(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(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 _(e,t){if(e){if("string"==typeof e)return R(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)?R(e,t):void 0}}function R(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 O(e){return O="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},O(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(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,x(r.key),r)}}function P(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){var t=function(e){if("object"!=O(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=O(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==O(t)?t:String(t)}var M,F="unknown",B=new Uint8Array(16)
function U(){if(!M&&!(M="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 M(B)}var j=/^(?:[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&&j.test(e)}for(var H=[],V=0;V<256;++V)H.push((V+256).toString(16).slice(1))
function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(H[e[t+0]]+H[e[t+1]]+H[e[t+2]]+H[e[t+3]]+"-"+H[e[t+4]]+H[e[t+5]]+"-"+H[e[t+6]]+H[e[t+7]]+"-"+H[e[t+8]]+H[e[t+9]]+"-"+H[e[t+10]]+H[e[t+11]]+H[e[t+12]]+H[e[t+13]]+H[e[t+14]]+H[e[t+15]]).toLowerCase()}function G(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 q(e,t,n){function r(e,r,i,o){var a
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=G(r)),16!==(null===(a=r)||void 0===a?void 0:a.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){o=o||0
for(var c=0;c<16;++c)i[o+c]=s[c]
return i}return W(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function z(e){return 14+(e+64>>>9<<4)+1}function X(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function J(e,t,n,r,i,o){return X((a=X(X(t,e),X(r,o)))<<(s=i)|a>>>32-s,n)
var a,s}function Q(e,t,n,r,i,o,a){return J(t&n|~t&r,e,t,i,o,a)}function Y(e,t,n,r,i,o,a){return J(t&r|n&~r,e,t,i,o,a)}function Z(e,t,n,r,i,o,a){return J(t^n^r,e,t,i,o,a)}function $(e,t,n,r,i,o,a){return J(n^(t|~r),e,t,i,o,a)}q("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 o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16)
t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[z(t)-1]=t
for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=i,l=o
n=Q(n,r,i,o,e[a],7,-680876936),o=Q(o,n,r,i,e[a+1],12,-389564586),i=Q(i,o,n,r,e[a+2],17,606105819),r=Q(r,i,o,n,e[a+3],22,-1044525330),n=Q(n,r,i,o,e[a+4],7,-176418897),o=Q(o,n,r,i,e[a+5],12,1200080426),i=Q(i,o,n,r,e[a+6],17,-1473231341),r=Q(r,i,o,n,e[a+7],22,-45705983),n=Q(n,r,i,o,e[a+8],7,1770035416),o=Q(o,n,r,i,e[a+9],12,-1958414417),i=Q(i,o,n,r,e[a+10],17,-42063),r=Q(r,i,o,n,e[a+11],22,-1990404162),n=Q(n,r,i,o,e[a+12],7,1804603682),o=Q(o,n,r,i,e[a+13],12,-40341101),i=Q(i,o,n,r,e[a+14],17,-1502002290),n=Y(n,r=Q(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=Y(o,n,r,i,e[a+6],9,-1069501632),i=Y(i,o,n,r,e[a+11],14,643717713),r=Y(r,i,o,n,e[a],20,-373897302),n=Y(n,r,i,o,e[a+5],5,-701558691),o=Y(o,n,r,i,e[a+10],9,38016083),i=Y(i,o,n,r,e[a+15],14,-660478335),r=Y(r,i,o,n,e[a+4],20,-405537848),n=Y(n,r,i,o,e[a+9],5,568446438),o=Y(o,n,r,i,e[a+14],9,-1019803690),i=Y(i,o,n,r,e[a+3],14,-187363961),r=Y(r,i,o,n,e[a+8],20,1163531501),n=Y(n,r,i,o,e[a+13],5,-1444681467),o=Y(o,n,r,i,e[a+2],9,-51403784),i=Y(i,o,n,r,e[a+7],14,1735328473),n=Z(n,r=Y(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=Z(o,n,r,i,e[a+8],11,-2022574463),i=Z(i,o,n,r,e[a+11],16,1839030562),r=Z(r,i,o,n,e[a+14],23,-35309556),n=Z(n,r,i,o,e[a+1],4,-1530992060),o=Z(o,n,r,i,e[a+4],11,1272893353),i=Z(i,o,n,r,e[a+7],16,-155497632),r=Z(r,i,o,n,e[a+10],23,-1094730640),n=Z(n,r,i,o,e[a+13],4,681279174),o=Z(o,n,r,i,e[a],11,-358537222),i=Z(i,o,n,r,e[a+3],16,-722521979),r=Z(r,i,o,n,e[a+6],23,76029189),n=Z(n,r,i,o,e[a+9],4,-640364487),o=Z(o,n,r,i,e[a+12],11,-421815835),i=Z(i,o,n,r,e[a+15],16,530742520),n=$(n,r=Z(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=$(o,n,r,i,e[a+7],10,1126891415),i=$(i,o,n,r,e[a+14],15,-1416354905),r=$(r,i,o,n,e[a+5],21,-57434055),n=$(n,r,i,o,e[a+12],6,1700485571),o=$(o,n,r,i,e[a+3],10,-1894986606),i=$(i,o,n,r,e[a+10],15,-1051523),r=$(r,i,o,n,e[a+1],21,-2054922799),n=$(n,r,i,o,e[a+8],6,1873313359),o=$(o,n,r,i,e[a+15],10,-30611744),i=$(i,o,n,r,e[a+6],15,-1560198380),r=$(r,i,o,n,e[a+13],21,1309151649),n=$(n,r,i,o,e[a+4],6,-145523070),o=$(o,n,r,i,e[a+11],10,-1120210379),i=$(i,o,n,r,e[a+2],15,718787259),r=$(r,i,o,n,e[a+9],21,-343485551),n=X(n,s),r=X(r,c),i=X(i,u),o=X(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(z(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32
return n}(e),8*e.length))})
var ee={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function te(e,t,n){if(ee.randomUUID&&!t&&!e)return ee.randomUUID()
var r=(e=e||{}).random||(e.rng||U)()
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 W(r)}function ne(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 re(e,t){return e<<t|e>>>32-t}q("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 o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++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[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295
for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p]
for(var h=16;h<80;++h)f[h]=re(f[h-3]^f[h-8]^f[h-14]^f[h-16],1)
for(var v=n[0],g=n[1],m=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),T=re(v,5)+ne(w,g,m,y)+b+t[w]+f[E]>>>0
b=y,y=m,m=re(g,30)>>>0,g=v,v=T}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]+b>>>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 ie=Uint8Array,oe=Uint16Array,ae=Uint32Array,se=new ie([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]),ce=new ie([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]),ue=new ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),le=function(e,t){for(var n=new oe(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1]
var i=new ae(n[30])
for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r
return[n,i]},de=le(se,2),fe=de[0],pe=de[1]
fe[28]=258,pe[258]=28
for(var he=le(ce,0)[1],ve=new oe(32768),ge=0;ge<32768;++ge){var me=(43690&ge)>>>1|(21845&ge)<<1
me=(61680&(me=(52428&me)>>>2|(13107&me)<<2))>>>4|(3855&me)<<4,ve[ge]=((65280&me)>>>8|(255&me)<<8)>>>1}var ye=function(e,t,n){for(var r=e.length,i=0,o=new oe(t);i<r;++i)e[i]&&++o[e[i]-1]
var a,s=new oe(t)
for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1
if(n){a=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)a[ve[d]>>>c]=u}else for(a=new oe(r),i=0;i<r;++i)e[i]&&(a[i]=ve[s[e[i]-1]++]>>>15-e[i])
return a},be=new ie(288)
for(ge=0;ge<144;++ge)be[ge]=8
for(ge=144;ge<256;++ge)be[ge]=9
for(ge=256;ge<280;++ge)be[ge]=7
for(ge=280;ge<288;++ge)be[ge]=8
var Ee=new ie(32)
for(ge=0;ge<32;++ge)Ee[ge]=5
var we=ye(be,9,0),Te=ye(Ee,5,0),Se=function(e){return(e+7)/8|0},ke=function(e,t,n){n<<=7&t
var r=t/8|0
e[r]|=n,e[r+1]|=n>>>8},Ce=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,o=n.slice()
if(!i)return[Pe,0]
if(1==i){var a=new ie(n[0].s+1)
return a[n[0].s]=1,[a,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=o[0].s
for(r=1;r<i;++r)o[r].s>f&&(f=o[r].s)
var p=new oe(f+1),h=Ie(n[l-1],p,0)
if(h>t){r=0
var v=0,g=h-t,m=1<<g
for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var y=o[r].s
if(!(p[y]>t))break
v+=m-(1<<h-p[y]),p[y]=t}for(v>>>=g;v>0;){var b=o[r].s
p[b]<t?v-=1<<t-p[b]++-1:++r}for(;r>=0&&v;--r){var E=o[r].s
p[E]==t&&(--p[E],++v)}h=t}return[new ie(p),h]},Ie=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},_e=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new oe(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o
else{if(!i&&o>2){for(;o>138;o-=138)a(32754)
o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304)
o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i)
o=1,i=e[s]}return[n.subarray(0,r),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=Se(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 o=0;o<r;++o)e[i+o+4]=n[o]
return 8*(i+4+r)},Ne=function(e,t,n,r,i,o,a,s,c,u,l){ke(t,l++,n),++i[256]
for(var d=Ae(i,15),f=d[0],p=d[1],h=Ae(o,15),v=h[0],g=h[1],m=_e(f),y=m[0],b=m[1],E=_e(v),w=E[0],T=E[1],S=new oe(19),k=0;k<y.length;++k)S[31&y[k]]++
for(k=0;k<w.length;++k)S[31&w[k]]++
for(var C=Ae(S,7),A=C[0],I=C[1],_=19;_>4&&!A[ue[_-1]];--_);var R,O,N,D,P=u+5<<3,L=Re(i,be)+Re(o,Ee)+a,x=Re(i,f)+Re(o,v)+a+14+3*_+Re(S,A)+(2*S[16]+3*S[17]+7*S[18])
if(P<=L&&P<=x)return Oe(t,l,e.subarray(c,c+u))
if(ke(t,l,1+(x<L)),l+=2,x<L){R=ye(f,p,0),O=f,N=ye(v,g,0),D=v
var M=ye(A,I,0)
for(ke(t,l,b-257),ke(t,l+5,T-1),ke(t,l+10,_-4),l+=14,k=0;k<_;++k)ke(t,l+3*k,A[ue[k]])
l+=3*_
for(var F=[y,w],B=0;B<2;++B){var U=F[B]
for(k=0;k<U.length;++k){var j=31&U[k]
ke(t,l,M[j]),l+=A[j],j>15&&(ke(t,l,U[k]>>>5&127),l+=U[k]>>>12)}}}else R=we,O=be,N=Te,D=Ee
for(k=0;k<s;++k)if(r[k]>255){j=r[k]>>>18&31,Ce(t,l,R[j+257]),l+=O[j+257],j>7&&(ke(t,l,r[k]>>>23&31),l+=se[j])
var K=31&r[k]
Ce(t,l,N[K]),l+=D[K],K>3&&(Ce(t,l,r[k]>>>5&8191),l+=ce[K])}else Ce(t,l,R[r[k]]),l+=O[r[k]]
return Ce(t,l,R[256]),l+O[256]},De=new ae([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Pe=new ie(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},Me="undefined"!=typeof TextDecoder&&new TextDecoder
try{Me.decode(Pe,{stream:!0})}catch(ki){}function Fe(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Be(){try{return Fe()&&"keepalive"in new Request("")}catch(e){return!1}}function Ue(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,o=Object.keys(n.headers);i<o.length;i++){var a=o[i]
r.setRequestHeader(a,n.headers[a])}r.send(t)}}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 o=t
if(i&&"undefined"!=typeof TextEncoder)try{o=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){return function(e,t,n,r,i,o){var a=e.length,s=new ie(r+a+5*(1+Math.ceil(a/7e3))+8),c=s.subarray(r,s.length-8),u=0
if(!t||a<8)for(var l=0;l<=a;l+=65535){var d=l+65535
d>=a&&(c[u>>3]=o),u=Oe(c,u+1,e.subarray(l,d))}else{for(var f=De[t-1],p=f>>>13,h=8191&f,v=(1<<n)-1,g=new oe(32768),m=new oe(v+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&v},w=new ae(25e3),T=new oe(288),S=new oe(32),k=0,C=0,A=(l=0,0),I=0,_=0;l<a;++l){var R=E(l),O=32767&l,N=m[R]
if(g[O]=N,m[R]=O,I<=l){var D=a-l
if((k>7e3||A>24576)&&D>423){u=Ne(e,c,0,w,T,S,C,A,_,l-_,u),A=k=C=0,_=l
for(var P=0;P<286;++P)T[P]=0
for(P=0;P<30;++P)S[P]=0}var L=2,x=0,M=h,F=O-N&32767
if(D>2&&R==E(l-F))for(var B=Math.min(p,D)-1,U=Math.min(32767,l),j=Math.min(258,D);F<=U&&--M&&O!=N;){if(e[l+L]==e[l+L-F]){for(var K=0;K<j&&e[l+K]==e[l+K-F];++K);if(K>L){if(L=K,x=F,K>B)break
var H=Math.min(F,K-2),V=0
for(P=0;P<H;++P){var W=l-F+P+32768&32767,G=W-g[W]+32768&32767
G>V&&(V=G,N=W)}}}F+=(O=N)-(N=g[O])+32768&32767}if(x){w[A++]=268435456|pe[L]<<18|he[x]
var q=31&pe[L],z=31&he[x]
C+=se[q]+ce[z],++T[257+q],++S[z],I=l+L,++k}else w[A++]=e[l],++T[e[l]]}}u=Ne(e,c,o,w,T,S,C,A,_,l-_,u)}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length)
var r=new(2==e.BYTES_PER_ELEMENT?oe:4==e.BYTES_PER_ELEMENT?ae:ie)(n-t)
return r.set(e.subarray(t,n)),r}(s,0,r+Se(u)+8)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,0,!0)}(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t)),o=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,o-8,n.d()),xe(i,o-4,r),i}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function Ke(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var He,Ve="undefined"!=typeof navigator&&"sendBeacon"in navigator,We=Be()?function(e,t,n,r){return new Promise(function(i){fetch(e,je({body:t,keepalive:!0,headers:n,compress:r})).catch(function(){return fetch(e,je({body:t,keepalive:!1,headers:n,compress:r}))}).then(function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})},function(e){return i({type:"network",drop:!0,rawError:Ke(e)})})})}:function(e,t,n,r){return new Promise(function(i){if(Ve){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,je({body:t,keepalive:!1,headers:n,compress:r})).then(function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})},function(e){return i({type:"network",drop:!0,rawError:Ke(e)})})})}
function Ge(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 qe(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 o=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 o.then(function(r){return n(r.transaction(t,e).objectStore(t))})}}function ze(){return He||(He=qe("idb-queue","default")),He}function Xe(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))},Ge(e.transaction)}var Je=!1
function Qe(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]:ze()
return Je?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]:ze()
return n("readwrite",function(n){return n.put(e),Ge(n.count()).then(function(e){if(!(e<=t.maxNumber))return Xe(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]:ze())("readwrite",function(t){return Xe(t,e)})}(t,n)})}(e,t,n)}function Ye(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())},Ge(t.transaction).then(function(){return r})})}function Ze(){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 $e(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function et(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function tt(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 nt=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
N(this,e),L(this,"config",void 0),L(this,"compress",void 0),L(this,"throttleControl",void 0),L(this,"withStore",void 0),L(this,"disablePersistence",!1),this.config=t,this.compress=r
var i,o,a,s=t.measureIDB
s&&performance.mark(s.createStartMark),this.withStore=qe(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),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now()
e-a>o&&($e(function(){return"[throttle] Run fn() at "+String(e)}),i(),a=e)},resetThrottle:function(){a=0}})}return P(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){$e(function(){return"Persisting to DB "+e.url}),Qe(e,t.config,t.withStore).then(function(){t.throttleControl.resetThrottle(),$e(function(){return"push completed"})}).catch(function(){t.disablePersistence=!0,et(function(){return"push failed"})})}
this.config.useIdle?tt(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]:ze()
return Je=!0,e("readwrite",function(e){return e.clear(),Ge(e.transaction).finally(function(){return Je=!1})})}(this.withStore).catch(function(){e.disablePersistence=!0,et(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 Ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze(),"next")}(t,this.withStore).catch(function(){return e.disablePersistence=!0,et(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 Ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze(),"prev")}(t,this.withStore).catch(function(){return e.disablePersistence=!0,et(function(){return"peekBack failed"}),[]})}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){$e(function(){return"Replaying entry: shift from store"}),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())},Ge(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]:ze())}(1,e.withStore).then(function(t){if(t.length>0){var n,r,i=t[0],o=i.url,a=i.body,s=i.headers,c=i.timestamp,u=i.statusCode,l=i.attemptCount
return $e(function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)}),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,a),We(o,a,Ze(s,e.config.headerName,l,u),e.compress).then(function(t){if("unknown"===t.type||"success"===t.type){var n,r
null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,a),e.replayEntries()}else{var i,s,d,f,p,h
if(l+1>e.config.attemptLimit)return $e(function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)}),t.drop=!0,void(null===(i=(s=e.config).onResult)||void 0===i||i.call(s,t,a))
if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(f=e.config).onResult)||void 0===d||d.call(f,t,a),$e(function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)}),Qe({url:o,body:a,timestamp:c,statusCode:u,attemptCount:l+1},e.config,e.withStore)
t.drop=!0,null===(p=(h=e.config).onResult)||void 0===p||p.call(h,t,a)}})}}).catch(function(t){e.disablePersistence=!0,t&&t.message&&et(function(){return"Replay entry failed: ".concat(t.message)})})}
this.config.useIdle?tt(t):t()}}}]),e}(),rt=function(){function e(){N(this,e)}return P(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}(),it=function(){function e(t,n){N(this,e),L(this,"queue",void 0),L(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new nt(t,n.compress):new rt}return P(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}()
L(it,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var ot=[502,504],at=[429,503],st=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
N(this,e),L(this,"url",void 0),L(this,"body",void 0),L(this,"config",void 0),L(this,"persistenceConfig",void 0),L(this,"compress",void 0),L(this,"timestamp",void 0),L(this,"isClearQueuePending",!1),L(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return P(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 We(e.url,e.body,t,e.compress)},n,t).finally(function(){$e(function(){return"beacon finished"}),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:"retry",value:function(e,t,n,r){var i=this,o=this.getAttemptCount(t)-1
return e(Ze(n,this.config.headerName,o,r)).then(function(r){var o,a,s,c
if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),s=r
else if($e(function(){return"retry rejected "+JSON.stringify(r)}),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),s={type:"persisted",drop:!1,statusCode:r.statusCode}
else{if(t>0&&i.isRetryableError(r)){var u,l
null===(u=(l=i.config).onIntermediateResult)||void 0===u||u.call(l,r,i.body)
var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t)
return $e(function(){return"in memory retry in ".concat(d,"ms")}),(c=d,new Promise(function(e){return setTimeout(e,c)})).then(function(){return i.retry(e,t-1,n,r.statusCode)})}(s=r).drop=!0}return null===(o=(a=i.config).onIntermediateResult)||void 0===o||o.call(a,s,i.body),s})}},{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||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}()
function ct(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:ot,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:at,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
i.headerName=i.headerName||r.headerName,e=new it(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,a){var s
return Fe()?new st(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||at},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}var ut="internal:hide",lt="internal:error"
function dt(e,t,n){var r=e.get(t)
r&&r.push(n)||e.set(t,[n])}function ft(e,t,n){var r=e.get(t)
r&&r.splice(r.indexOf(n)>>>0,1)}var pt,ht,vt=(pt=new Map,ht=new Map,{on:function(e,t){dt(pt,e,t)},before:function(e,t){dt(ht,e,t)},off:function(e,t){ft(pt,e,t)},offBefore:function(e,t){ft(ht,e,t)},emit:function(e,t){(ht.get(e)||[]).concat(pt.get(e)||[]).slice().map(function(e){e(t)})},clear:function(){ht.clear(),pt.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var gt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||vt.emit(ut,e)}
document.addEventListener("visibilitychange",gt),window.addEventListener("pagehide",gt)}var mt,yt="https://www.linkedin.com/",bt="https://www.linkedin-ei.com/",Et="voyager.web.tracking-enable-observability",wt="enabled",Tt="rest/trackingApiService/track",St="voyager.web.tracking-grpc-rest-integration"
!function(e){e.HighPriorityTransporter="hp",e.DefaultPriorityTransporter="dp"}(mt||(mt={}))
var kt={hp:2,dp:30},Ct=null
if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var At=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(At){var It=new Uint8Array(256),_t=It.length
Ct={rng:function(){return _t>It.length-16&&(At.randomFillSync(It),_t=0),It.slice(_t,_t+=16)}}}}var Rt="object"===("undefined"==typeof crypto?"undefined":O(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return jt(Ot())}
function Ot(){return te(Ct,new Array(16),0)}function Nt(e){return I(e).map(function(e){return String.fromCharCode(e)}).join("")}function Dt(){return Nt(Ot())}var Pt=/^[a-zA-Z0-9/+]+[=]+$/
function Lt(e){return"string"==typeof e&&!!e.match(Pt)}function xt(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,a=o%3,s=o-a;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(a){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 Mt(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,I(n))
return btoa(r)}function Ft(){return xt(Ot())}function Bt(){return Rt()}function Ut(){return Rt()}function jt(e){return function(e){var t=W(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!K(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}function Kt(e){return G(e)}function Ht(e,t){return{pageUrn:Wt(e),trackingId:t||Ft()}}function Vt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Wt(e){return"urn:li:page:".concat(e)}function Gt(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function qt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function zt(e){return"".concat(e.pageUrn,";").concat(e.trackingId)}var Xt=new RegExp("[?&]lipi=([^&#]*)"),Jt=new RegExp("[?&]licu=([^&#]*)")
function Qt(e){var t=e.match(Jt)
return t?decodeURIComponent(t[1]):null}function Yt(e){var t=e.match(Xt)
if(t){var n=Gt(t[1])
if(n)return{pageInstance:n,pageKey:""}}return null}function Zt(e){var t,n=null===(t=e.APP)||void 0===t?void 0:t.version
return(n="string"==typeof n?n.split("_").pop():"")||""}function $t(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 en(e){var t=[]
return e.forEach(function(e){return t.push(e)}),t}function tn(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 nn(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(o,a){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 o(r)
if("update"!==e)return o(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 o(null)},f.onerror=function(){a(f.error)}}}else{var p={sequenceNumber:0}
n&&Object.keys(n).forEach(function(e){p[e]=0})
var h=u.add(p)
h.onsuccess=function(){return o(0)},h.onerror=function(){a(h.error)}}},l.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return o(null)}})}return Promise.resolve(null)}function rn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Fe()||"undefined"==typeof Promise}function on(){return!rn()&&(Be()||"undefined"!=typeof navigator&&"sendBeacon"in navigator)}function an(e,t,n,r){var i=["core-web-tracking:".concat(e)]
null==r||r.forEach(function(e){return i.push(e)}),vt.emit(lt,{tags:i,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function sn(e){var t,n={issueTime:0,browserId:""},r=A(e)
try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=")
if(i.length>1&&"bscookie"===i[0]){var o=decodeURIComponent(i[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50)
return n.browserId=c,n.issueTime=s,n}}}catch(e){r.e(e)}finally{r.f()}return n}function cn(e){var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))}var un=function(){function e(t){N(this,e),L(this,"heap",void 0),L(this,"comparator",void 0),this.comparator=t,this.heap=[]}return P(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=I(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,o=2*r+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[i])?o:i
if(!this.comparator(this.heap[a],this.heap[r]))break
var s=[this.heap[r],this.heap[a]]
this.heap[a]=s[0],this.heap[r]=s[1],r=a}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 ln(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}var dn=function(e){if(!e||0===e.length)return null
if((e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4==1)return an("base64url-decoder",new Error("Invalid Base64URL input")),null
for(;e.length%4!=0;)e+="="
return e},fn=function(e){if(!vn(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},pn=function(e,t){var n={},r=[]
if(0===e.length)return[n,e]
if(0===t.length)return[n,e]
var i,a=A(e)
try{for(a.s();!(i=a.n()).done;){var s=i.value,c=s.transporterKeys,u=C(s,o)
if(c&&c.length>0){var l,d=A(c)
try{for(d.s();!(l=d.n()).done;){var f,p=l.value
t.includes(p)?(null!==(f=n[p])&&void 0!==f||(n[p]=[]),n[p].push(u)):r.push(u)}}catch(e){d.e(e)}finally{d.f()}}else r.push(u)}}catch(e){a.e(e)}finally{a.f()}return[n,r]}
function hn(e){return!(!e||"control"===e)}var vn=function(e){return e&&void 0!==e&&Object.keys(e).length>0},gn=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},mn="beacons"
function yn(e){return 1e3*Math.pow(2,e)}function bn(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&Be()&&t&&n}var En=function(){function e(t){N(this,e),L(this,"host",void 0),this.host=t}return P(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&&bn()&&navigator.storage.estimate().then(function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return tn(mn)
var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{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 yn(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:mn,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=ct(l),f=d.beacon,p=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:p},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.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 p.clearQueue()}},function(){return p.clearQueue()}).then(function(){e.retryBeacon.shouldRetry=!0}).catch(function(e){an("retry:idb",e)}):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0}).catch(function(e){an("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){an("retry:logout",e)})}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment()
Be()&&"control"!==o&&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){an("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)&&(rn()?Ue(e,JSON.stringify(t),{headers:n}):We(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&&bn()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),wn="undefined"!=typeof window&&"undefined"!=typeof document,Tn=/JSESSIONID="?([^";]+)"?/,Sn="",kn=0
function Cn(){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?Tn:r
if(!Sn||Date.now()-kn>n){var o=wn&&document.cookie.match(i)
Sn=o&&o[1]||"",kn=Date.now()}return Sn}var An={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"}},In=function(){function e(t){N(this,e),L(this,"networkTransporter",void 0),L(this,"inactive",void 0),L(this,"mpName",void 0),L(this,"endpoint",void 0),L(this,"debug",void 0),this.networkTransporter=new En(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return An.prod.pattern.test(e)?t=An.prod.monitorEndpoint:An.eiValidate.pattern.test(e)?(n=!0,t=An.eiValidate.monitorEndpoint):An.ei.pattern.test(e)?t=An.ei.monitorEndpoint:(t=An.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return P(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":Cn(),"x-restli-protocol-version":"2.0.0"},r=[],i=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=i.failures,a=i.previousInstanceEventStats.reduce(function(e,t){return e.push.apply(e,I(t.failures)),e},[]);[].concat(I(o),I(a)).forEach(function(e){var t=e.reason,n=e.rawError,i=e.eventTopic,o=e.header,a=e.requestHeader
r.push({reason:t,rawError:n,failedTopicName:i,header:o,requestHeader:a})})
var s={clientTrackingFailures:r,debug:this.debug}
this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}()
function _n(e){return"string"==typeof e}function Rn(e){return _n(e)?e:e.topicName||e.eventName}function On(e){return _n(e)?e:e.eventName}var Nn,Dn,Pn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
N(this,e),L(this,"host",void 0),L(this,"cmoTransporter",void 0),L(this,"clientMonitoringInstanceId",Dt()),L(this,"currentContext",{pageKey:F,pageInstance:Ht(F)}),L(this,"appState",{}),L(this,"estimatedFragmentSize",0),L(this,"fragmentSizeLimit",void 0),L(this,"activeFragmentEvent",void 0),L(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new In(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=xn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return P(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=A(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 o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{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(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:On(t),eventTopic:Rn(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=xn(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=Mn(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=Mn(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:Dt(),memberId:0}}}}]),e}()
function Ln(e){return Nn||(Nn=new Pn(e)),{getCurrentInstanceId:function(){return Nn.getCurrentInstanceId()},logEventGenerated:function(e){return Nn.logEventGenerated(e)},logEventReadyToSend:function(e){Nn.logEventReadyToSend(e)},logEventSent:function(e){Nn.logEventSent(e)},logPersistedEventSent:function(e,t){Nn.logEventSent(t,e)},logNetworkResponseCode:function(e){Nn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Nn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Nn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Nn.logFailedEvent(t,n,r,i,e)},flush:function(){Nn.flush()},destroy:function(){Nn=void 0},isDestroyed:function(){return void 0===Nn},setCurrentContext:function(e){Nn.setCurrentContext(e)},updateAppState:function(e){Nn.updateAppState(e)}}}function xn(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 Mn(e){return Array.isArray(e)?Nt(e):16===e.length?e:Lt(e)?atob(e):Nt(Kt(e))}function Fn(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"}(Dn||(Dn={}))
var Bn="default",Un="-",jn=function(){function e(){N(this,e),L(this,"TelemetryRetryIDB","metricsBeacons"),L(this,"beaconFunc",void 0)}return P(e,[{key:"getOrCreateBeaconFunc",value:function(){return this.beaconFunc||(this.beaconFunc=this.createTelemetryMetricsBeacon()),this.beaconFunc}},{key:"getDefaultInMemoryConfig",value:function(){return{attemptLimit:4,statusCodes:[500]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[500],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createTelemetryMetricsBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig()
return ct({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return yn(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}()
L(jn,"instance",null)
var Kn=function(){function e(){N(this,e),L(this,"config",void 0),L(this,"observePath","li/observe"),this.config={endpoint:"".concat(yt,"li/observe"),platform:"Web"}}return P(e,[{key:"getConfig",value:function(){return this.config}},{key:"setAppId",value:function(e){this.config.appId=e}},{key:"setEnvironment",value:function(e){var t=e||"development"===e?bt:yt
this.config.endpoint="".concat(t).concat(this.observePath)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
L(Kn,"instance",void 0)
var Hn=function(){function e(){N(this,e)}return P(e,null,[{key:"buildTrackingSdkEventMetric",value:function(e,t,n){return{attributes:[{key:"EventName",value:{value:{stringValue:e.eventName}}},{key:"ViewName",value:{value:{stringValue:e.viewName}}},{key:"Platform",value:{value:{stringValue:n}}},{key:"TransportKey",value:{value:{stringValue:e.transportKey}}},{key:"AppId",value:{value:{stringValue:t}}}],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()}}}]),e}(),Vn=function(){function e(){N(this,e),L(this,"beaconFunc",void 0),L(this,"endpoint",void 0),L(this,"flushDebounceTimer",void 0),L(this,"localCounterMap",new Map),L(this,"flushPromise",Promise.resolve())
var t=Kn.getInstance().getConfig()
this.endpoint=t.endpoint,this.beaconFunc=jn.getInstance().getOrCreateBeaconFunc()}return P(e,[{key:"generateId",value:function(e,t,n){return"".concat(e,"_").concat(t,"_").concat(n)}},{key:"incrementEventReceived",value:function(e,t,n){this.mutate(e,t,n,"receivedCount")}},{key:"incrementEventDropped",value:function(e,t,n,r){var i=this.calculateLatency(r)
this.mutate(e,t,n,"droppedCount",i,void 0)}},{key:"incrementEventSynced",value:function(e,t,n,r){var i=this.calculateLatency(r)
this.mutate(e,t,n,"syncedCount",i,void 0)}},{key:"calculateLatency",value:function(e){var t=void 0
return null!=e&&0!==e&&(t=Date.now()-e),t}},{key:"incrementEventRetried",value:function(e,t,n){this.mutate(e,t,n,void 0,void 0,1)}},{key:"mutate",value:function(e,t,n,r,i,o){var a=this.generateId(e,t,n),s=this.localCounterMap.get(a)
s||(s={eventName:e,viewName:t,transportKey:n,receivedCount:0,droppedCount:0,syncedCount:0,latencies:[],retries:[]},this.localCounterMap.set(a,s)),null!=r&&(s[r]+=1),void 0!==i&&s.latencies.push(i),void 0!==o&&s.retries.push(o),this.attemptToFlush()}},{key:"buildMetricsPayload",value:function(e){var t,n=[],r=Kn.getInstance().getConfig(),i=r.appId,o=r.platform,a=A(e)
try{for(a.s();!(t=a.n()).done;){var s=t.value
try{var c=Hn.buildTrackingSdkEventMetric(s,i,o)
n.push(c)}catch(e){console.error("Error converting metric [".concat(JSON.stringify(s),"] - [").concat("EC101","]:"),e)}}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"attemptToFlush",value:function(){var e=this
this.localCounterMap.size>=10?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(k(T().mark(function t(){var n,r
return T().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),t.prev=5,t.next=8,e.beaconFunc(e.endpoint,JSON.stringify(r))
case 8:t.next=13
break
case 10:t.prev=10,t.t0=t.catch(5),console.error("Error - [".concat("EC102","]"))
case 13:case"end":return t.stop()}},t,null,[[5,10]])})))}},{key:"forceFlush",value:function(){this.flushMetrics()}}]),e}(),Wn=new Set(["GenericImpressionEvent","GenericActionEvent","GenericMultipleImpressionEvent","GenericMediaStateChangeEvent"])
function Gn(e){try{return JSON.parse(e||"[]").map(qn)}catch(e){return[]}}function qn(e){var t,n,r,i,o=e.eventInfo,a=null!==(t=null===(n=e.eventBody)||void 0===n||null===(n=n.header)||void 0===n||null===(n=n.viewHierarchy)||void 0===n?void 0:n[0])&&void 0!==t?t:Un,s=null!==(r=null===(i=e.eventBody)||void 0===i||null===(i=i.header)||void 0===i?void 0:i.time)&&void 0!==r?r:Date.now()
return{eventName:o.eventName,viewName:a,enqueuedTime:s}}var zn=function(){function e(){N(this,e),L(this,"metricsManager",void 0),this.metricsManager=new Vn}return P(e,[{key:"onEventReceived",value:function(e){var t=this
this.executeWithTryCatch(function(){var n,r,i=On(e.id)
if(t.isTelemetryEnabledForEventName(i)){var o=(null===(n=e.meta.header)||void 0===n||null===(n=n.viewHierarchy)||void 0===n?void 0:n[0])||Un,a=e.meta.transporterKey||Bn
null===(r=t.metricsManager)||void 0===r||r.incrementEventReceived(i,o,a)}})}},{key:"onEventRetried",value:function(e,t,n){var r=this
this.executeWithTryCatch(function(){var i
r.isTelemetryEnabledForEventName(e)&&(null===(i=r.metricsManager)||void 0===i||i.incrementEventRetried(e,t||Un,n||Bn))})}},{key:"onEventSynced",value:function(e,t,n,r){var i=this
this.executeWithTryCatch(function(){var o
i.isTelemetryEnabledForEventName(e)&&(null===(o=i.metricsManager)||void 0===o||o.incrementEventSynced(e,t||Un,n||Bn,r))})}},{key:"onEventDropped",value:function(e,t,n,r){var i=this
this.executeWithTryCatch(function(){var o
i.isTelemetryEnabledForEventName(e)&&(null===(o=i.metricsManager)||void 0===o||o.incrementEventDropped(e,t||Un,n||Bn,r))})}},{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=Gn(r)
t.handleResult(n,i,e)},onBeforeRetry:function(n){Gn(n).forEach(function(n){var r=n.eventName,i=n.viewName
t.onEventRetried(r,i,e)})},onResult:function(n,r){var i=Gn(r)
t.handleResult(n,i,e)}}}},{key:"clientMonitoringCallbackHook",value:function(e){var t=this
return{onResult:function(n,r){var i=r.map(qn)
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.viewName,o=e.enqueuedTime
r.onEventSynced(t,i,n,o)}):e.drop&&t.forEach(function(e){var t=e.eventName,i=e.viewName,o=e.enqueuedTime
r.onEventDropped(t,i,n,o)})}},{key:"isTelemetryEnabledForEventName",value:function(e){return!!e&&function(e){return Wn.has(e)}(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){return}}}],[{key:"getInstance",value:function(t){if(!e.instance){var n=Kn.getInstance()
n.setAppId(t.appId),n.setEnvironment(t.environment),e.instance=new e}return e.instance}}]),e}()
L(zn,"instance",void 0)
var Xn=function(){function e(){N(this,e),L(this,"config",void 0),this.config={endpoint:"".concat(yt).concat(Tt),batchSize:6,flushDebounceTimer:3e3}}return P(e,[{key:"getConfig",value:function(){return this.config}},{key:"setBatchSize",value:function(e){this.config.batchSize=e}},{key:"setFlushDebounceTimer",value:function(e){this.config.flushDebounceTimer=e}},{key:"setEndpoint",value:function(e){var t=e.environment,n=e.path,r=t||"development"===t?bt:yt
this.config.endpoint="".concat(r).concat(n)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
L(Xn,"instance",void 0)
var Jn=function(){function e(){N(this,e),L(this,"clientContext",void 0)}return P(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,o=e.service,a=e.version
try{if(n){var s=Array.isArray(n.trackingId)&&16===n.trackingId.length?Mt(n.trackingId):n.trackingId
t={applicationUrn:null==n?void 0:n.applicationUrn,version:null==n?void 0:n.version,trackingId:{fixedValue:s}}}return{server:i,serviceName:o,publicAppVersion:a,clientApplicationInstance:t,applicationViewerUrn:r}}catch(t){an("Server Name ".concat(e.server," and trackingId for same ").concat(null==n?void 0:n.trackingId," "),t)}}},{key:"getUserRequestHeaderContext",value:function(e){var t=e.theme,n=e.interfaceLocale,r=e.isBrowserPersistentRetryEnabled,i=e.isFlushOnCloseBrowserTabEnabled
return{theme:t?"Theme_".concat(t):void 0,interfaceLocale:n,isBrowserPersistentRetryEnabled:r,isFlushOnCloseBrowserTabEnabled:i}}},{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}()
L(Jn,"instance",void 0)
var Qn,Yn=new Set(["FeedImpressionEvent","FeedActionEvent"])
function Zn(e){return Yn.has(e)}function $n(e,t){return!(!e||"enabled"!==(null==t?void 0:t(e)))}function er(e,t){return!(!e||"dual"!==(null==t?void 0:t(e)))}!function(e){e.FeedActionEvent="com.linkedin.events.feed.FeedActionEvent",e.FeedImpressionEvent="com.linkedin.events.feed.FeedImpressionEvent"}(Qn||(Qn={}))
var tr=function(){function e(){N(this,e),L(this,"GrpcRestRetryIDB","grpcRestBeacons"),L(this,"beaconFunc",void 0)}return P(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 ct({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return yn(e)}},disablePersistenceRetry:!1,persistenceRetry:{idbName:this.GrpcRestRetryIDB,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}()
L(tr,"instance",null)
var nr=function(){function e(t){N(this,e),L(this,"endpoint",void 0),L(this,"flushDebounceTimer",void 0),L(this,"queue",[]),L(this,"flushPromise",Promise.resolve()),L(this,"clientContext",void 0),L(this,"requestId",1),L(this,"beaconFunc",void 0),L(this,"inDualMode",void 0)
var n=Xn.getInstance().getConfig()
this.endpoint=n.endpoint,this.beaconFunc=tr.getInstance().getOrCreateBeaconFunc(),this.inDualMode=t}return P(e,[{key:"convertJsonToBytes",value:function(e){var t=JSON.stringify(e)
return(new TextEncoder).encode(t)}},{key:"convertBytesToBase64",value:function(e){var t=String.fromCharCode.apply(String,I(e))
return btoa(t)}},{key:"packageEventBody",value:function(e){try{var t=e.eventBody,n=e.eventInfo
if(!this.clientContext){var r=Object.assign({},t.header),i=Object.assign({},t.requestHeader)
this.clientContext=Jn.getInstance().getOrCreateClientContext(r,i)}var o=n.eventName,a=this.convertJsonToBytes(t),s=this.convertBytesToBase64(a),c={name:Qn[o],payload:s}
return{id:this.requestId++,payload:c,topicOverride:this.inDualMode?"".concat(o,"_GRPC_Shadow"):o}}catch(e){an("Error while packing the event with requestId ".concat(this.requestId),e)}}},{key:"packageRequest",value:function(e){var t=this.packageEventBody(e)
t&&vn(t)&&(this.queue.push(t),this.attemptToFlush())}},{key:"buildRequestPayload",value:function(e){var t={clientContext:this.clientContext,requests:e}
return JSON.stringify(t)}},{key:"attemptToFlush",value:function(){var e=this
this.queue.length>=6?this.flushEvents():(this.flushDebounceTimer&&clearTimeout(this.flushDebounceTimer),this.flushDebounceTimer=setTimeout(function(){return e.flushEvents()},3e3))}},{key:"flushEvents",value:function(){var e=this
this.flushPromise=this.flushPromise.then(k(T().mark(function t(){var n,r,i
return T().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=I(e.queue),e.queue=[],r={"content-type":"application/json",Accept:"application/json"}
try{i=e.buildRequestPayload(n),rn()?Ue(e.endpoint,i,{headers:r}):Be()&&e.beaconFunc(e.endpoint,i,r)}catch(e){an("Server Error while flushing events in rest-transporter:",JSON.stringify(e))}case 6:case"end":return t.stop()}},t)})))}},{key:"forceFlush",value:function(){this.flushEvents()}}]),e}(),rr=function(){function e(t,n,r){N(this,e),L(this,"requestManager",void 0)
var i=Xn.getInstance()
i.setEndpoint({environment:t.environment,path:Tt}),i.setBatchSize(kt[n]||6),this.requestManager=new nr(r)}return P(e,[{key:"onEventReceived",value:function(e){var t=this
this.executeWithTryCatch(function(){var n,r=On(null==e?void 0:e.eventInfo.eventName)
r&&t.isGrpcRestEnabledForEventName(r)&&(null===(n=t.requestManager)||void 0===n||n.packageRequest(e))})}},{key:"forceFlush",value:function(){var e
null===(e=this.requestManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.requestManager=void 0}},{key:"isGrpcRestEnabledForEventName",value:function(e){return!!e&&Zn(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){an("Rest transporter failed",JSON.stringify(e))}}}],[{key:"getInstance",value:function(t,n,r){var i=this.transporterMap.get(n)
return i||(i=new e(t,n,r),this.transporterMap.set(n,i),i)}}]),e}()
L(rr,"transporterMap",new Map)
var ir=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],or="PageViewEvent",ar=function(){function e(t){var n,r,i,o,a=this
N(this,e),L(this,"host",void 0),L(this,"queue",void 0),L(this,"preContextQueue",void 0),L(this,"debounceTimer",void 0),L(this,"unloadHandlers",void 0),L(this,"maxQueueSize",void 0),L(this,"flushDebounceTime",void 0),L(this,"trackingEventListeners",[]),L(this,"onHideHandler",function(){a.forceFlush()}),L(this,"networkTransporter",void 0),L(this,"clientMonitoringConn",void 0),L(this,"clientGlobalSequenceNumberCounter",void 0),L(this,"clientTopicLocalSequenceNumberCountersMap",{}),L(this,"isTimerRunning",void 0),L(this,"trackingEndpoint",void 0),L(this,"isEvenBatchEnabled",void 0),L(this,"transportKey",void 0),L(this,"telemetry",void 0),L(this,"defaultPriorityTransporter",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"
if(this.trackingEndpoint=ln(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,vt.on(ut,this.onHideHandler),this.networkTransporter=new En(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Ln(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||c,(t.observabilityEnabled||(null===(o=t.__getLixTreatment)||void 0===o?void 0:o.call(t,Et))===wt)&&(this.telemetry=zn.getInstance(t)),$n(St,t.__getLixTreatment)||er(St,t.__getLixTreatment)){var l=er(St,t.__getLixTreatment)
this.defaultPriorityTransporter=rr.getInstance(t,mt.DefaultPriorityTransporter,l)}}return P(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,o=n.eventInfo.topicName||i,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logFailedEvent(Dn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},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,o=n.eventInfo.topicName||r,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logPersistedFailedEvent(i,Dn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},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 o=i[r]
try{var a
null==o||null===(a=o.onIntermediateResult)||void 0===a||a.call(o,e,n)}catch(e){Fn("onIntermediateResult")}}},onBeforeRetry:function(e){for(var n=0,r=t;n<r.length;n++){var i=r[n]
try{var o
null==i||null===(o=i.onBeforeRetry)||void 0===o||o.call(i,e)}catch(e){Fn("onBeforeRetry")}}},onResult:function(e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r]
try{var a
null==o||null===(a=o.onResult)||void 0===a||a.call(o,e,n)}catch(e){Fn("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(Rn(e.id)))
var n=this.host,r=n.api.Promise,i=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a,s=this.prepareCompleteEnvelopeQueue(t)
return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),null===(a=this.telemetry)||void 0===a||a.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,vt.off(ut,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)}},{key:"forceFlush",value:function(){var e,t,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
this.populatePreContextQueue({pageInstance:Ht(F),pageKey:F}).forEach(function(e){var t
n.queue.push(e),null===(t=n.telemetry)||void 0===t||t.onEventReceived(e)}),this.isEvenBatchEnabled?1===r?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0),1===r&&(null===(e=this.telemetry)||void 0===e||e.forceFlush(),null===(t=this.defaultPriorityTransporter)||void 0===t||t.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
nn("read").then(function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,ir.forEach(function(n){var r
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0})}).catch(function(e){an("sequence-number:idb-read",e)})}},{key:"updateSequenceNumberToIDB",value:function(){nn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch(function(e){an("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=qt(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,o=r.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)}
return n.length>0&&this.host.api.assign(a,{clientBreadcrumbs:n}),a}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,f=function(e){return"string"==typeof e?e===or:e.eventName===or}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,p=e.meta.requestHeader||{referer:s.referrer,path:"".concat(a.pathname).concat(a.search)},h=p.referer,v=p.path,g=null
"string"!=typeof i&&null!==this.host.locale||(g=i)
var m,y={interfaceLocale:g,pageKey:f,referer:h,path:v,isFlushOnCloseBrowserTabEnabled:on(),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()}
er(St,this.host.__getLixTreatment)&&Zn(On(null==e?void 0:e.id))&&(m=Ft())
var b={pageInstance:d,time:e.meta.time,version:r,server:"",service:"",guid:Ft(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(b,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var E=Rn(e.id)
if(ir.includes(E)){var w=this.clientTopicLocalSequenceNumberCountersMap[E]
"number"==typeof w&&c(b,{clientTopicLocalSequenceNumber:w})}var T=e.meta.header||{},S={header:c(b,T,{testId:T.testId||m}),requestHeader:c(y,e.meta.requestHeader||{})},k=e.meta.clientMonitoringInstanceId,C=e.meta.clientMonitoringInstanceEventNumber
return k&&c(S.header,{clientMonitoringInstanceId:k,clientMonitoringInstanceEventNumber:C}),c(e.body,S)}},{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 o,a,s,c=[],u=[]
t.forEach(function(e){var t,r=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),o=n.envelop(e.id,r,i)
n.trigger(o,e.meta),n.defaultPriorityTransporter&&(null===(t=n.defaultPriorityTransporter)||void 0===t||t.onEventReceived(o))
var a=o.eventInfo.eventName
$n(St,n.host.__getLixTreatment)&&Zn(e.id)||("LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?c.push(o):u.push(o)),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var s=Rn(e.id)
ir.includes(s)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[s]&&n.clientTopicLocalSequenceNumberCountersMap[s]++}),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(c.length+u.length),o=this.clientMonitoringConn,a={onResult:function(e,t){o&&!o.isDestroyed()&&(e.statusCode&&o.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",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(i)].join(", ")
null==o||o.logFailedEvent(Dn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)}))}}),this.telemetry&&(a=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){Fn("onResult")}})}}}(a,null===(s=this.telemetry)||void 0===s?void 0:s.clientMonitoringCallbackHook(this.transportKey))),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,c,void 0,a),this.networkTransporter.sendPayload(this.trackingEndpoint,u,void 0,a))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}()
function sr(){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 cr,ur=function(){function e(t,n){N(this,e),this.clientBreadcrumbType=t,this.id=n}return P(e,[{key:"builder",get:function(){return sr().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"}(cr||(cr={}))
var lr=function(){function e(){return N(this,e),g(this,e,[cr.FEED_UPDATE_SERVED,Dt()])}return E(e,ur),P(e)}(),dr=function(){function e(){var t
return N(this,e),L(m(t=g(this,e,[cr.UNKNOWN,Dt()])),"content",void 0),L(m(t),"featureBreadcrumbType",void 0),t}return E(e,ur),P(e)}(),fr=function(){function e(){return N(this,e),g(this,e,[cr.SPONSORED_UPDATE_SERVED,Dt()])}return E(e,ur),P(e)}()
function pr(e,t){var n
switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new lr).builder
break
case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new fr).builder
break
case"proto.sdui.tracking.TrackingBreadcrumb":n=(new dr).builder
var r,i=e
try{if(void 0!==i.content.type)r=(new TextDecoder).decode(new Uint8Array(i.content.data))
else{if(!(i.content instanceof Uint8Array))throw new Error("Invalid breadcrumb content type")
r=(new TextDecoder).decode(i.content)}for(var o=null==e?void 0:e.breadcrumbType,a={content:JSON.parse(r),breadcrumbType:o},s=0,c=Object.entries(a);s<c.length;s++){var u=v(c[s],2),l=u[0],d=u[1]
vn(d)&&n[l](d)}return n.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}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 f in e){var p=e[f]
null!=p&&n[f](p)}return n.build()}function hr(e){var t,n=[],r=[],i=A(e)
try{for(i.s();!(t=i.n()).done;){var o=t.value,c=o.breadcrumb,u=C(o,a)
if(r.push(u),c){var l=void 0
if(c&&"$type"in c){var d=c.$type
l=pr(C(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(cr).includes(c.clientBreadcrumbType))throw new Error("Invalid breadcrumb type: ".concat(c.clientBreadcrumbType))
if(!c.data||!vn(c.data))throw new Error("Missing breadcrumb data")
l=h({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 vr(e){var t,n=new Set,r=[],i=A(e)
try{for(i.s();!(t=i.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName)
n.has(a)||(n.add(a),r.push(o))}}catch(e){i.e(e)}finally{i.f()}var s=hr(r)
return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function gr(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,o=e.lipi&&Gt(e.lipi)
if(o?i={pageInstance:o,pageKey:t}:t&&(i={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page)
i={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},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 mr=Object.freeze({__proto__:null,voyagerTransporterConfig:{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]}}},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]}}}}})
function yr(e){return"retryConfig"in e.host}function br(e){return"location"in e.api}var Er,wr=function(){function e(t,n,r,i,o,a,s,c){var u,l,d,f,p,g,m,y,b=arguments.length>8&&void 0!==arguments[8]&&arguments[8],E=arguments.length>9?arguments[9]:void 0
if(N(this,e),L(this,"transporter",void 0),L(this,"delegate",void 0),L(this,"viewSpecs",void 0),L(this,"transportConfig",void 0),L(this,"dynamicTransporterSupportLixKey",void 0),L(this,"domain",void 0),L(this,"trackingAppName",void 0),L(this,"dynamicTransporterSupportLixValue",void 0),L(this,"observabilityEnabled",void 0),L(this,"GrpcRestSupportLixKey",void 0),L(this,"currentContext",void 0),L(this,"appState",void 0),L(this,"referrer",void 0),L(this,"previousAppContext",void 0),L(this,"customTransporters",void 0),L(this,"clientMonitoringConn",void 0),L(this,"dynamicTransporterSupportEnabled",void 0),L(this,"telemetry",void 0),L(this,"defaultPriorityTransporter",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=r,this.transportConfig=i,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.observabilityEnabled=b,this.GrpcRestSupportLixKey=E,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,o?this.dynamicTransporterSupportEnabled=hn(null===(m=(y=t.host).__getLixTreatment)||void 0===m?void 0:m.call(y,o)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var w=null==mr?void 0:mr["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")]
vn(w)?this.transportConfig=w:this.transportConfig=i}if((b||(null===(u=(l=t.host).__getLixTreatment)||void 0===u?void 0:u.call(l,Et))===wt)&&(this.telemetry=zn.getInstance(t.host)),$n(St,null===(d=t.host)||void 0===d?void 0:d.__getLixTreatment)||er(St,null===(f=t.host)||void 0===f?void 0:f.__getLixTreatment)){var T,S=er(St,null===(T=t.host)||void 0===T?void 0:T.__getLixTreatment),k=t.host.api.assign({},t.host)
this.defaultPriorityTransporter=rr.getInstance(k,mt.DefaultPriorityTransporter,S)}var C={observabilityEnabled:!!this.telemetry}
if(n&&n.customTransporterHosts)for(var A in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,A)){var I=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[A]=new ar(this.transporter.host.api.assign(I,n.customTransporterHosts[A],C))}if(this.dynamicTransporterSupportEnabled&&vn(this.transportConfig))for(var _=0,R=Object.entries(this.transportConfig);_<R.length;_++){var O,D,P=v(R[_],2),x=P[0],M=P[1]
M=h(h({},M),{},{endpoint:a&&null!==(O=M)&&void 0!==O&&O.endpoint?"".concat(gn(a,null===(D=M)||void 0===D?void 0:D.endpoint)):"https://linkedin.com/li/track"})
var F=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[x]=new ar(this.transporter.host.api.assign(F,M,C)),this.telemetry&&this.customTransporters[x].setTransportKey(x)}"enabled"===(null===(p=(g=t.host).__getLixTreatment)||void 0===p?void 0:p.call(g,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&br(t.host)&&(this.clientMonitoringConn=Ln(t.host)),vn(r)&&(this.viewSpecs=r)}return P(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){vt.before(ut,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){vt.offBefore(ut,e)}},{key:"checkAndEnablePersistentRetry",value:function(){yr(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=yr(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return qt(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,gr(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=qt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(qt(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 o=Vt(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t}
return i&&i(o),a},{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 o=JSON.parse(i)
o&&o.length&&t.push.apply(t,I(o))}catch(e){an("getViewTrackingScope","Error parsing trackingScope ".concat(i))}}n=null==r?void 0:r.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,r=e.interactionType,i=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,u=e.verticalPosition,l=e.horizontalPosition,d=e.controlUrn,f=void 0===d?"":d,p=e.actionType,g=e.contentTrackingId,m=void 0===g?void 0:g,y=e.clientBreadcrumbs,b=void 0===y?[]:y,E=e.isShadowEvent,w=e.cooloffToken,T=e.testId,S=e.mediaStateInfo,k=e.entityUrn,C=e.actorType,A=void 0===C?"USER":C,_=i?this.getViewHierarchy(i):[],R=_.length>0?_:a
0!==R.length&&(!this.viewSpecs||null!==(t=this.viewSpecs)&&void 0!==t&&t.some(function(e){return e.viewName==R[0]}))||console.warn("No viewHierarchy provided or found from element.")
var O=c.length>0?c:this.getViewTrackingScope(i)
if(this.dynamicTransporterSupportEnabled){var N=fn(this.transportConfig),D=v(pn(O,N),2),P=D[0],L=D[1],x="GenericActionEvent",M={verticalPosition:u,horizontalPosition:l,controlUrn:f,interactionType:r,actionType:p,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,mediaStateInfo:S,actorType:A,entityUrn:k}
if(vn(P)){for(var F=0,B=Object.entries(P);F<B.length;F++){var U=v(B[F],2),j=U[0],K=vr(U[1]),H=K.breadcrumbs,V=K.trackingScopes
this.fireEvent(x,h(h({},M),{},{trackingScopeHierarchy:{entries:V}}),{header:{viewHierarchy:R,testId:T},transporterKey:j},H,E)}if(0===L.length)return Promise.resolve(!0)}var W=vr(L),G=W.breadcrumbs,q=W.trackingScopes
return this.fireEvent(x,{verticalPosition:u,horizontalPosition:l,controlUrn:f,interactionType:r,actionType:p,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,trackingScopeHierarchy:{entries:q},mediaStateInfo:S,entityUrn:k},{header:{viewHierarchy:R,testId:T}},[].concat(I(b),I(G)),E)}var z=vr(O),X=z.breadcrumbs,J=z.trackingScopes
return this.fireEvent("GenericActionEvent",{verticalPosition:u,horizontalPosition:l,controlUrn:f||"",interactionType:r,actionType:p,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,trackingScopeHierarchy:{entries:J},mediaStateInfo:S,entityUrn:k,actorType:A},{header:{viewHierarchy:R,testId:T}},[].concat(I(b),I(X)),E)}},{key:"fireImpression",value:function(e,t){var n,r=e.manualFireReason,i=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,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,p=e.width,g=void 0===p?-1:p,m=e.height,y=void 0===m?-1:m,b=e.verticalPosition,E=e.horizontalPosition,w=e.impressionTime,T=e.contentTrackingId,S=e.clientBreadcrumbs,k=void 0===S?[]:S,C=e.isShadowEvent,A=e.cooloffToken,_=e.testId,R=e.mediaStateInfo,O=e.entityUrn,N=i?this.getViewHierarchy(i):[],D=N.length>0?N:a
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 P=c.length>0?c:this.getViewTrackingScope(i)
if(this.dynamicTransporterSupportEnabled){var L=fn(this.transportConfig),x=v(pn(P,L),2),M=x[0],F=x[1],B="GenericImpressionEvent",U={viewDurationInMilliseconds:l,contentViewFraction:f,width:g,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:w,contentTrackingId:""===T?void 0:T,manualFireReason:r,cooloffToken:A,mediaStateInfo:R,entityUrn:O},j={header:{viewHierarchy:D,testId:_},context:null==t?void 0:t.context}
if(vn(M)){for(var K=0,H=Object.entries(M);K<H.length;K++){var V=v(H[K],2),W=V[0],G=vr(V[1]),q=G.breadcrumbs,z=G.trackingScopes
this.fireEvent(B,h(h({},U),{},{trackingScopeHierarchy:{entries:z}}),h(h({},j),{},{transporterKey:W}),q,C)}if(0===F.length)return Promise.resolve(!0)}var X=vr(F),J=X.breadcrumbs,Q=X.trackingScopes
return this.fireEvent(B,{viewDurationInMilliseconds:l,contentViewFraction:f,width:g,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:w,contentTrackingId:""===T?void 0:T,manualFireReason:r,cooloffToken:A,trackingScopeHierarchy:{entries:Q},mediaStateInfo:R,entityUrn:O},j,[].concat(I(k),I(J)),C)}var Y=vr(P),Z=Y.breadcrumbs,$=Y.trackingScopes,ee={header:{viewHierarchy:D,testId:_},context:null==t?void 0:t.context}
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:l,contentViewFraction:f,width:g,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:w,contentTrackingId:""===T?void 0:T,manualFireReason:r,cooloffToken:A,trackingScopeHierarchy:{entries:$},mediaStateInfo:R,entityUrn:O},ee,[].concat(I(k),I(Z)),C)}},{key:"fireMediaStateChangeEvent",value:function(e){var t=e.trackingScopeHierarchyData,n=void 0===t?[]:t,r=e.objectUrn,i=e.trackingId,o=e.playableMediaState,a=e.clientBreadcrumbs,s=void 0===a?[]:a
if(this.dynamicTransporterSupportEnabled){var c=fn(this.transportConfig),u=v(pn(n,c),2),l=u[0],d=u[1],f="GenericMediaStateChangeEvent",p={trackingObject:{trackingId:i,objectUrn:r},playableMediaState:o}
if(vn(l)){for(var g=0,m=Object.entries(l);g<m.length;g++){var y=v(m[g],2),b=y[0],E=vr(y[1]),w=E.breadcrumbs,T=E.trackingScopes
this.fireEvent(f,h(h({},p),{},{trackingScopeHierarchy:{entries:T}}),{transporterKey:b},w)}if(0===d.length)return Promise.resolve(!0)}var S=vr(d),k=S.breadcrumbs,C=S.trackingScopes
return this.fireEvent(f,{trackingObject:{trackingId:i,objectUrn:r},playableMediaState:o,trackingScopeHierarchy:{entries:C}},void 0,[].concat(I(s),I(k)))}var A=vr(n),_=A.breadcrumbs,R=A.trackingScopes
return this.fireEvent("GenericMediaStateChangeEvent",{trackingObject:{trackingId:i,objectUrn:r},playableMediaState:o,trackingScopeHierarchy:{entries:R}},void 0,[].concat(I(s),I(_)))}},{key:"fireMultipleImpression",value:function(e,t){var n,r=e.targetView,i=e.viewHierarchy,o=void 0===i?[]:i,a=e.viewTrackingScope,s=void 0===a?[]:a,c=e.width,u=void 0===c?-1:c,l=e.height,d=void 0===l?-1:l,f=e.verticalPosition,p=e.horizontalPosition,g=e.impressionThresholds,m=void 0===g?[]:g,y=e.hasAllImpressionThresholds,b=void 0===y||y,E=e.clientBreadcrumbs,w=void 0===E?[]:E,T=e.isShadowEvent,S=e.cooloffToken,k=r?this.getViewHierarchy(r):[],C=k.length>0?k:o
0!==C.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some(function(e){return e.viewName==C[0]}))||console.warn("No viewHierarchy provided or found from element.")
var A=s.length>0?s:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var _=fn(this.transportConfig),R=v(pn(A,_),2),O=R[0],N=R[1],D="GenericMultipleImpressionEvent",P={width:u,height:d,verticalPosition:f,horizontalPosition:p,cooloffToken:S,hasAllImpressionThresholds:b,impressionThresholdsWrapper:{entries:m}},L={header:{viewHierarchy:C},context:null==t?void 0:t.context}
if(vn(O)){for(var x=0,M=Object.entries(O);x<M.length;x++){var F=v(M[x],2),B=F[0],U=vr(F[1]),j=U.breadcrumbs,K=U.trackingScopes
this.fireEvent(D,h(h({},P),{},{trackingScopeHierarchy:{entries:K}}),h(h({},L),{},{transporterKey:B}),j,T)}if(0===N.length)return Promise.resolve(!0)}var H=vr(N),V=H.breadcrumbs,W=H.trackingScopes
return this.fireEvent(D,{width:u,height:d,verticalPosition:f,horizontalPosition:p,cooloffToken:S,hasAllImpressionThresholds:b,impressionThresholdsWrapper:{entries:m},trackingScopeHierarchy:{entries:W}},L,[].concat(I(w),I(V)),T)}var G=vr(A),q=G.breadcrumbs,z=G.trackingScopes,X={header:{viewHierarchy:C},context:null==t?void 0:t.context}
return this.fireEvent("GenericMultipleImpressionEvent",{width:u,height:d,verticalPosition:f,horizontalPosition:p,cooloffToken:S,hasAllImpressionThresholds:b,impressionThresholdsWrapper:{entries:m},trackingScopeHierarchy:{entries:z}},X,[].concat(I(w),I(q)),T)}},{key:"fireEvent",value:function(e,t,n,r,i){var o=this
if(!t){var a,s=Rn(e),c=void 0===t?"undefined":null===t?"null":O(t),u='Firing tracking event "'.concat(s,'" with invalid body, you fired "').concat(c,'"')
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(Dn.MISSING_REQUIRED_PROPERTIES,e,u,l)}throw null===(a=this.telemetry)||void 0===a||a.onEventDropped(s,void 0,null==n?void 0:n.transporterKey,void 0),new Error(u)}var d=r||[]
if(d.length>0){var f=(d=d.map(function(e){return o.transformBreadcrumb(e)})).map(function(e){return ur.toPointer(e)})
this.host.api.assign(t,{clientBreadcrumbPointers:f})}var p=d.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,d,i):this.generateEnvelope(e,t,n,i)
return this.fireEnvelope(p)}},{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],o=this.generateEnvelope(e,t,n,i)
return r.length>0?this.addBreadcrumbsToEnvelope(o,r):o}},{key:"transformBreadcrumb",value:function(e){try{if(vn(e.content))return h({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(_n(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 o=i.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter
if(!a&&o){var s,c=Rn(i.id),u="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(c)
this.clientMonitoringConn.logFailedEvent(Dn.UNKNOWN_EXECUTION_ERROR,i.id,u,l)}throw null===(s=this.telemetry)||void 0===s||s.onEventDropped(c,void 0,o,void 0),new Error(u)}return a.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Ht(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),o=this.generateEnvelope("PageViewEvent",i,{context:n})
return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy()
var t,n
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),vt.clear(),this.telemetry&&(this.telemetry.forceFlush(),this.telemetry.onDestroy(),this.telemetry=void 0),this.defaultPriorityTransporter&&(null===(t=this.defaultPriorityTransporter)||void 0===t||t.forceFlush(),null===(n=this.defaultPriorityTransporter)||void 0===n||n.onDestroy())}},{key:"forceFlush",value:function(){var e
for(var t in this.transporter.forceFlush(),null===(e=this.defaultPriorityTransporter)||void 0===e||e.forceFlush(),this.customTransporters)this.customTransporters[t].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return Vt((t||this.currentContext||{pageKey:F}).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,o=this.generateEnvelope(i,t)
o.meta.requestHeader.pageKey=n.pageKey
var a=r&&r.applicationInstance
return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&qt(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},br(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===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.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"}(Er||(Er={}))
var Tr="otel-origin-jet-tag"
function Sr(e){var t="unknown",n=e.map(function(e){var n=e.e,r=e.options,i=e.tags,o=n.message,a=n.name,s=n.stack,c=void 0===s?"":s,u=r.appId,l=r.appVersion,d=r.protocol,f=r.eventName,p=r.service,h=r.host,v=void 0===h?t:h,g=r.hash,m=void 0===g?t:g,y=r.path,b=void 0===y?t:y,E=r.query,w=void 0===E?t:E,T=r.serviceInstance,S=void 0===T?t:T,k=r.pageKey
return{eventBody:{appId:u,e:{m:o,s:c,t:a},l:d,service:p,serviceVersion:l,t:i,serviceInstance:S,o:v,h:m,p:b,q:w,pageKey:void 0===k?t:k},eventInfo:{appId:u,eventName:f,topicName:f}}})
return n}var kr,Cr,Ar=function(){function e(t,n){var r,i,o=this
N(this,e),L(this,"core",void 0),L(this,"protocol",void 0),L(this,"throttleKeySet",new Set),L(this,"config",void 0),L(this,"reportTransporterError",function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),o.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch(function(){})}),this.core=t
var a=this.core.host.api.location.protocol
this.protocol=a.substring(0,a.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},vt.on(lt,this.reportTransporterError)}return P(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]:{},o=i.callTreeId,a=void 0===o?"":o,s=i.responseHeaders,c=void 0===s?{}:s,u=i.sduiScreenId,l=i.componentKey,d=e.message,f=e.name,p=e.stack,h=void 0===p?"":p,v=e.fileName,g=void 0===v?"":v,m=e.lineNumber,y=void 0===m?0:m,b=e.columnNumber,E=void 0===b?0:b,w=this.core.host,T=w.appId,S=w.appVersion,k=w.service,C=w.serviceInstance,A=w.treeID,I=void 0===A?"":A,_=w.api,R=_.Promise,O=_.location,N=O.host,D=O.pathname,P=O.search,L=O.hash,x=void 0===L?"":L
if(this.config.useOTel&&!r.includes(Tr)&&vt.emit(Er.INTERNAL_OTEL_JET_EVENT,{error:e,tags:r,callTreeId:a,responseHeaders:c}),c){t={}
var M=new Map
Object.keys(c).forEach(function(e){M.set(e.toLowerCase(),c[e])}),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var F=function(){return n.core.fireEvent("JavaScriptErrorEvent",function(e){return{appId:T,e:{c:E,l:y,m:d,s:h,t:f,u:g},h:x,l:n.protocol,o:N,p:D,pageKey:e.pageKey,q:P,service:k,serviceInstance:C,serviceVersion:S,t:r,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:a,responseTraceHeaders:t,sduiScreenId:u,componentKey:l}})}
if(this.config.throttleTime<0)return F()
var B=(f+d+h+r.join("")+a).split("").reduce(function(e,t){return(e<<5)-e+t.charCodeAt(0)|0},0)
return this.throttleKeySet.has(B)?R.resolve(!1):(this.throttleKeySet.add(B),setTimeout(function(){return n.throttleKeySet.delete(B)},this.config.throttleTime),F())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),vt.off(lt,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"}(kr||(kr={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(Cr||(Cr={}))
var Ir,_r,Rr,Or,Nr,Dr,Pr,Lr=(L(L(L(L(L(L(L(L(L(L(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),L(L(L(L(L(L(i,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),xr=-1,Mr=-2,Fr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Br={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"},Ur={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},jr="pageLoadId does not exist",Kr="rum token passed is invalid",Hr=new RegExp(/batch-(\d+)$|enabled$/),Vr=function(){function e(){N(this,e),L(this,"userTimingEntries",[]),L(this,"longTasks",[]),L(this,"resourceTimingEntries",[]),L(this,"cdnData",void 0)}return P(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(Gr),cdnData:this.cdnData}}}]),e}(),Wr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function Gr(e){return Wr.reduce(function(t,n){var r=e[n]
return void 0!==r&&(t[n]=r),t},{})}function qr(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}
Dr=Object.assign(Object.assign({},n),t),Pr=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Dr.root,n)
var r=zr(e,Nr.All,function(){return zr(e,Nr.Two,function(){return zr(e,Nr.One)})})
if(r){var i=ri(ii(r,e))
return i.length>0&&(r=i[0]),Jr(r)}throw new Error("Selector was not found.")}function zr(e,t,n){for(var r=null,i=[],o=e,a=0,s=function(){var e=ei(function(e){var t=e.getAttribute("id")
return t&&Dr.idName(t)?{name:"#"+li(t,{isIdentifier:!0}),penalty:0}:null}(o))||ei.apply(void 0,I(function(e){return Array.from(e.attributes).filter(function(e){return Dr.attr(e.name,e.value)}).map(function(e){return{name:"["+li(e.name,{isIdentifier:!0})+'="'+li(e.value)+'"]',penalty:.5}})}(o)))||ei.apply(void 0,I(function(e){return Array.from(e.classList).filter(Dr.className).map(function(e){return{name:"."+li(e,{isIdentifier:!0}),penalty:1}})}(o)))||ei(function(e){var t=e.tagName.toLowerCase()
return Dr.tagName(t)?{name:t,penalty:2}:null}(o))||[{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}(o)
if(t===Nr.All)s&&(e=e.concat(e.filter($r).map(function(e){return Zr(e,s)})))
else if(t===Nr.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter($r).map(function(e){return Zr(e,s)})))
else if(t===Nr.One){var c=v(e=e.slice(0,1),1)[0]
s&&$r(c)&&(e=[Zr(c,s)])}var u,l=A(e)
try{for(l.s();!(u=l.n()).done;)u.value.level=a}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=Dr.seedMinLength&&(r=Xr(i,n)))return 1
o=o.parentElement,a++};o&&o!==Dr.root.parentElement&&!s(););return r||(r=Xr(i,n)),r}function Xr(e,t){var n=ri(ni(e))
if(n.length>Dr.threshold)return t?t():null
var r,i=A(n)
try{for(i.s();!(r=i.n()).done;){var o=r.value
if(Yr(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function Jr(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 Qr(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function Yr(e){switch(Pr.querySelectorAll(Jr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Jr(e)))
case 1:return!0
default:return!1}}function Zr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function $r(e){return"html"!==e.name&&!e.name.startsWith("#")}function ei(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var r=t.filter(ti)
return r.length>0?r:null}function ti(e){return null!=e}function ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,r=[],i=A(e[0])
try{for(i.s();!(n=i.n()).done;){var o=n.value
r=r.concat(ni(e.slice(1,e.length),t.concat(o)))}}catch(e){i.e(e)}finally{i.f()}return r}return[t]}function ri(e){return Array.from(e).sort(function(e,t){return Qr(e)-Qr(t)})}function ii(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>Dr.optimizedMinLength)for(var i=1;i<e.length-1;i++){if(n.counter>Dr.maxNumberOfTries)return r
n.counter+=1
var o=I(e)
o.splice(i,1)
var a=Jr(o)
if(n.visited.has(a))return r
Yr(o)&&oi(o,t)&&(r.push(o),n.visited.set(a,!0),r=r.concat(ii(o,t,n)))}return r}function oi(e,t){return Pr.querySelector(Jr(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"}(Ir||(Ir={})),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"}(_r||(_r={})),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"}(Rr||(Rr={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Or||(Or={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Nr||(Nr={}))
var ai=/[ -,\.\/:-@\[-\^`\{-~]/,si=/[ -,\.\/:-@\[\]\^`\{-~]/,ci=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ui={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function li(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},ui),t)
"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single")
for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0),a="",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?ai.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&&si.test(u)?"\\"+u:u
a+=d}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(ci,function(e,t,n){return t&&t.length%2?e:(t||"")+n}),!i&&n.wrap?r+a+r:a}var di,fi=[{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 pi(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 hi(e){var t=e||performance
return Math.round(t.now())}function vi(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return qr(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=vi(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function gi(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 mi(e){var t=[]
return e.forEach(function(e){return t.push(e)}),t}var yi=function(){function e(t){N(this,e),L(this,"hostApis",void 0),L(this,"hostnameProperties",void 0),L(this,"usedHostnames",void 0),L(this,"abortController",void 0),L(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 P(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return en(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,o=$t(en(this.pendingPromises),i),a=setTimeout(function(){t.abortController.abort(),t.abortController=new r},e)
return o.then(function(){return clearTimeout(a),t.getPresentData()})}},{key:"inspectEntryForCdnData",value:function(e){var t=this
if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(di=di||r.createElement("a")).href=n,di.hostname)
if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then(function(e){var n=i({hostname:o},e)
return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n})
this.pendingPromises.add(a)}}}},{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(){N(this,e)}return P(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,o=t.length-i,a=[0,n],s=[0,n],c=[0,0],u=[0,0],l=[2277735313,289559509],d=[1291169091,658871167]
for(r=0;r<o;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),a=e.x64Xor(a,c),a=e.x64Rotl(a,27),a=e.x64Add(a,s),a=e.x64Add(e.x64Multiply(a,[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,a),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),a=e.x64Xor(a,c)}return a=e.x64Xor(a,[0,t.length]),s=e.x64Xor(s,[0,t.length]),a=e.x64Add(a,s),s=e.x64Add(s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e.x64Add(a,s),s=e.x64Add(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[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(){N(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 P(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={},o=0,a=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),o++
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],++a>=o&&(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){}},o=!1,a=function(){if(!0!==o){o=!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&&a()},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(){a()},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 o=new i(1,44100,44100),a=o.createOscillator()
a.type="triangle",a.frequency.setValueAtTime(1e4,o.currentTime)
var s=o.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],o.currentTime)}),a.connect(s),s.connect(o.destination),a.start(0),o.startRendering()
var c=setTimeout(function(){return o.oncomplete=function(){},o=null,e("audioTimeout")},r.timeout)
o.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(),a.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],o=r[1],a=n.NOT_AVAILABLE
if("Chrome"===i)if(parseInt(o)<=74){var s=window.RequestFileSystem||window.webkitRequestFileSystem
s?s(window.TEMPORARY,100,function(t){e(!1)},function(t){e(!0)}):e(a)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then(function(t){var n=t.quota
e(a=n<125829120)}):e(a)
else if("Safari"===i){if(a=!1,window.safariIncognito)a=!0
else{try{window.openDatabase(null,null,null,null)}catch(e){a=!0}try{window.localStorage.setItem("test",1)}catch(e){a=!0}}void 0===a&&(a=!1,window.localStorage.removeItem("test")),e(a)}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):a)}},{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 o=document.getElementsByTagName("body")[0],a=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},p=function(){for(var e=[],t=0,n=r.length;t<n;t++){var i=l()
i.style.fontFamily=r[t],a.appendChild(i),e.push(i)}return e}()
o.appendChild(a)
for(var h=0,v=r.length;h<v;h++)c[r[h]]=p[h].offsetWidth,u[r[h]]=p[h].offsetHeight
var g=function(){for(var e={},t=0,n=i.length;t<n;t++){for(var o=[],a=0,c=r.length;a<c;a++){var u=d(i[t],r[a])
s.appendChild(u),o.push(u)}e[i[t]]=o}return e}()
o.appendChild(s)
for(var m=[],y=0,b=i.length;y<b;y++)f(g[i[y]])&&m.push(i[y])
o.removeChild(s),o.removeChild(a)
var E={}
E.fontsHash=e.x64hash128(m.join(),23),n.fonts.hashOnly||(E.lists=m),t(E)}},{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 o={}
o.type=n[i].type,o.suffixes=n[i].suffixes,o.description=n[i].description,r.push(o)}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 o={},a=r.createBuffer()
r.bindBuffer(r.ARRAY_BUFFER,a)
var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
r.bufferData(r.ARRAY_BUFFER,s,r.STATIC_DRAW),a.itemSize=3,a.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,a.itemSize,r.FLOAT,!1,0,0),r.uniform2f(c.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,a.numItems)
try{o.webglHash=e.x64hash128(r.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o
o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=r.getSupportedExtensions()||[],o["webgl aliased line width range"]=i(r.getParameter(r.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=i(r.getParameter(r.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=r.getParameter(r.ALPHA_BITS),o["webgl antialiasing"]=r.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=r.getParameter(r.BLUE_BITS),o["webgl depth bits"]=r.getParameter(r.DEPTH_BITS),o["webgl green bits"]=r.getParameter(r.GREEN_BITS),o["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),o["webgl max combined texture image units"]=r.getParameter(r.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=r.getParameter(r.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=r.getParameter(r.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=r.getParameter(r.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=r.getParameter(r.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=r.getParameter(r.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=r.getParameter(r.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=r.getParameter(r.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=i(r.getParameter(r.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=r.getParameter(r.RED_BITS),o["webgl renderer"]=r.getParameter(r.RENDERER),o["webgl shading language version"]=r.getParameter(r.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=r.getParameter(r.STENCIL_BITS),o["webgl vendor"]=r.getParameter(r.VENDOR),o["webgl version"]=r.getParameter(r.VERSION)
try{var d=r.getExtension("WEBGL_debug_renderer_info")
d&&(o["webgl unmasked vendor"]=r.getParameter(d.UNMASKED_VENDOR_WEBGL),o["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 a=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("")
o[s]=a})})})}),o):o}},{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 o=["".concat(e,"=").concat(t,"; path=").concat(i,"; secure=true")]
"string"==typeof r&&r.length>0&&o.push("domain="+r),o.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=o.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",o="RECAPTCHA_V3_WEB"
function a(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 s(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 c(e){var t=document.getElementsByClassName(e)
return void 0!==t&&t.length>=1}var u=function(){function e(){N(this,e)}return P(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),o=e.str2ab(i)
return window.crypto.subtle.importKey(t,o,{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 o=Date.now()
if("string"!=typeof n||"number"!=typeof r)throw new Error("ec1")
var a=window.crypto.getRandomValues(new Uint8Array(16))
i.a=e.encode(a)
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:a},t,s).then(function(a){return e.wrap(t,n).then(function(t){return i.b=t,i.c=e.encode(new Uint8Array(a)),i.d=Date.now()-o,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 o=a(n),s=parseInt(a(r))
return(""===o||"string"!=typeof o||"number"!=typeof s||Number.isNaN(s))&&(o=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",s=i?2:1),e.encryptWithKey(t,o,s)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,r,i,o){return null!=i&&"string"==typeof i.publicKey&&"number"==typeof i.publicKeyVersion?e.encryptWithKey(t,i.publicKey,i.publicKeyVersion):e.encryptWithKeyIds(t,n,r,o)}},{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}(),l=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,o,a={},s={},c="",u="",l="",d=2,f=3,p=2,h=[],v=0,g=0
for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=f++,s[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(a,u))l=u
else{if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<p;r++)v<<=1,g==t-1?(g=0,h.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,h.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<p;r++)v=v<<1|i,g==t-1?(g=0,h.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,h.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[l]}else for(i=a[l],r=0;r<p;r++)v=v<<1|1&i,g==t-1?(g=0,h.push(n(v)),v=0):g++,i>>=1
0==--d&&(d=Math.pow(2,p),p++),a[u]=f++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<p;r++)v<<=1,g==t-1?(g=0,h.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,h.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<p;r++)v=v<<1|i,g==t-1?(g=0,h.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,h.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[l]}else for(i=a[l],r=0;r<p;r++)v=v<<1|1&i,g==t-1?(g=0,h.push(n(v)),v=0):g++,i>>=1
0==--d&&(d=Math.pow(2,p),p++)}for(i=2,r=0;r<p;r++)v=v<<1|1&i,g==t-1?(g=0,h.push(n(v)),v=0):g++,i>>=1
for(;;){if(v<<=1,g==t-1){h.push(n(v))
break}g++}return h.join("")}}
return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},f={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},p={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},h={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},v={type:1,description:2,suffixes:3},g={canvasHash:1,canvasWinding:2},m={label:1,gid:2,id:3,kind:4},y={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},E={charging:1,dischargingTime:2,level:3,chargingTime:4},w={touchStart:1,touchEvent:2,maxTouchPoints:3},T={"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,extensions:66},S={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},k={"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},C={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47}
function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 _,R,D=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),L=/^fs_/,x=/(?![^(]*\)),/,M=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 "+O(e)+".")
var t,n,r=D.exec(e)
return r&&(t=r[1].replace(L,""),n=r[2]),{id:n,type:t}}(t),r=n.id,i=n.type,o={}
if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(x),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a))
r=s}return o[i]=r,o},F=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},B={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},U="GUEST",j="MEMBER",K="ENTERPRISE_UNBOUND",H=(A(_={},U,"li_gc"),A(_,j,"li_mc"),A(_,K,"li_ec"),_)
A(R={},U,"mypreferences/g/guest-cookies"),A(R,j,"settings/member-cookies"),A(R,K,"mypreferences/e/enterprise-cookies")
var V,W,G,q,z=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 o 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={},B)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===i},X=(V=[B.ADVERTISING,B.ANALYTICS_AND_RESEARCH,B.FUNCTIONAL],W=[0,1,2,0],G=function(e){for(var t={},n=0;n<V.length;n++)t[V[n]]=W[e>>2*n&3]
return t},q=function(e){var t=0
return e>=0&&e<=3&&(t=W[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 z}
var i=G(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=q(parseInt(r[3],10))
return{error:null,consent:new z(i,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=M(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 z}
var i=r.enterpriseAccountId,o=r.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a)
if(!s)return{error:"Invalid consent body encoding",consent:new z}
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 o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(t.push(o.value),4!==t.length);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}}(e)||function(e){if(e){if("string"==typeof e)return I(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)?I(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],a=t[2],s=t[3]
return r===i&&a===o&&s===n})[0]
if(!c)return{error:null,consent:new z}
var u=G(c[0]),l=new Date(1e3*parseInt(s[2],10)),d=q(parseInt(s[3],10))
return{error:null,consent:new z(u,l,K,d)}}}),J=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Q=function(e){var t={}
for(var n in B)t[n]=e
return{error:null,consent:new z(t,null,null,e)}},Y=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,o=null
try{o=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(J)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new z}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===K?X.parseConsentBodyEnterpriseUnbound(s,n,r):X.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new z}},Z=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]])
function $(e){var t
try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var ee=function(){function e(t,n){N(this,e),this.callback=t,this.config=n,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return P(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this
window.fetch=function(n,r){try{var i=$(n)
t.runActionInterceptorLogic(i)}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=$(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=Z.get(e),n=this.callback
void 0!==t&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute&&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(o,JSON.stringify(r))}).catch(function(e){var t={error:e}
n(o,JSON.stringify(t))})})}}}]),e}(),te={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},ne=!1
try{var re=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 z}
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 z}
if(!(e!==K||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new z}
if(!e){var o=F(H[K],t)
if(o&&r&&i){var a=Y(o,K,r,i)
if(a.consent.userMode===K||a.error)return a}e=F("liap",t)?F(H[j],t)?j:U:F(H[U],t)?U:j}return function(e,t,n,r){var i=F(H[e],t)
return i?Y(i,e,n,r):F(H[U],t)||F(H[j],t)||F(H[K],t)?Q(2):Q(1)}(e,t,r,i)}().consent.optedInConsentMap
ne=re[B.FUNCTIONAL]}catch(e){}var ie=function(){function e(t,n,r){var i=this
if(N(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 o=JSON.parse(JSON.stringify(te))
c("settings-iframe")||c("setting-headline")||(o.useRequestIdleCallBack=!1),this.initialize(o,t)}else{var a=JSON.parse(JSON.stringify(te))
c("settings-iframe")||c("setting-headline")||(a.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(a):window.addEventListener("load",function(){i.initialize(a)})}}return P(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new ee(e,t),globalThis.apfcInterceptorInitialized=!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(te,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(),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)}},{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===ne||r-i>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ne&&"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!=a("apfcDfPK")){var r=this.reqid,i=this.pageInstance,o=this.isProd()
return(new t).getFeatures(function(t,a){t.reqid=r,t.pageInstance=i,t.fullFeatureCollection=a,u.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then(function(t){globalThis.apfcDf=t,!0===a&&s(JSON.stringify(t),e.telemetryCollectPath,o)})},e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(r,i,o){var a=this.isProd()
return(new t).getFeatures(function(t,c){if(!0===c){if(e.prototype.populateFpDataCookie(t,o),!0===o.isSyncEnabledWithHeaders){var A=JSON.stringify(function(e){var t={}
return function(e){var t=e.webgl,n={}
if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){for(var r=t.extensions,i=[],o=0;o<r.length;o++){var a=r[o]
i[o]=S.hasOwnProperty(a)?S[a]:a}t.extensions=i}null!=t&&(Object.keys(T).forEach(function(e){n[T[e]]=t[e]}),e.webgl=n)}(e),function(e){var t=e.touchSupport,n={}
null!=t&&(Object.keys(w).forEach(function(e){n[w[e]]=t[e]}),e.touchSupport=n)}(e),function(e){var t=e.battery,n={}
null!=t&&(Object.keys(E).forEach(function(e){n[E[e]]=t[e]}),e.battery=n)}(e),function(e){var t=e.screenOrientation,n={}
null!=t&&(Object.keys(b).forEach(function(e){n[b[e]]=t[e]}),e.screenOrientation=n)}(e),function(e){var t=e.fonts,n={}
if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){for(var r=t.lists,i=[],o=0;o<r.length;o++){var a=r[o]
i[o]=k.hasOwnProperty(a)?k[a]:a}t.lists=i}null!=t&&(Object.keys(y).forEach(function(e){n[y[e]]=t[e]}),e.fonts=n)}(e),function(e){var t=e.enumerateDevices,n=[]
if(null!=t){for(var r=function(){var e=t[i],r={}
Object.keys(m).forEach(function(t){r[m[t]]=e[t]}),n[i]=r},i=0;i<t.length;i++)r()
e.enumerateDevices=n}}(e),function(e){var t=e.canvas,n={}
null!=t&&(Object.keys(g).forEach(function(e){n[g[e]]=t[e]}),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[]
if(null!=t){for(var r=function(){var e=t[i],r={}
Object.keys(v).forEach(function(t){r[v[t]]=e[t]}),n[i]=r},i=0;i<t.length;i++)r()
e.mimetyps=n}}(e),function(e){var t=e.signals,n={}
null!=t&&(Object.keys(h).forEach(function(e){n[h[e]]=t[e]}),e.signals=n)}(e),function(e){var t=e.networkInfo,n={}
null!=t&&(Object.keys(p).forEach(function(e){n[p[e]]=t[e]}),e.networkInfo=n)}(e),function(e){var t=e.location,n={}
null!=t&&(Object.keys(f).forEach(function(e){n[f[e]]=t[e]}),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={}
null!=t&&(Object.keys(d).forEach(function(e){n[d[e]]=t[e]}),e.FPDataCookie=n)}(e),Object.keys(C).forEach(function(n){t[C[n]]=e[n]}),t}(t))
globalThis.apfcDfH=(I=A,l.compressToBase64(I))}u.encryptWithKeyIds(JSON.stringify(t),"apfcDfPK","apfcDfPKV").then(function(e){if(globalThis.apfcDf=e,!0===o.isSyncEnabledWithHeaders||!0===o.isSyncEnabledWithCb){var t=function(e){var t={}
t[btoa("DNA_ENCRYPTED")]=e
var r={}
return r.payload=t,r.browserId=n.getBcookie(),r}(e)
s(JSON.stringify(t),r.gloablIntegrationDataCollectionPath,a)}i("DNA",JSON.stringify(e))}),globalThis.dnaIntegrationCompleted=!0}var I},r)}},{key:"intializeDfpIntegration",value:function(t,r){var o=n.getBcookie(),a=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a"
try{if(RegExp("^[\\w-]*$").test(o)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(o,"&instanceId=").concat(a),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:o,instanceId:a}
e.prototype.populateFpDataCookie(u,r),t(i,JSON.stringify(u))}else{var l={error:"Invalid session_id: "+o}
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 o=i.treeId,a=Date.now(),s=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",c=n.getBcookie(),l="https://li.protechts.net/index.html?ts="+a+"&r_id="+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping"
u.generateSha256HashOrDefault(c).then(function(n){""!==(c=n)&&(l+="&d_id="+c)
try{var u=document.createElement("iframe")
u.setAttribute("id","humanThirdPartyIframe"),u.setAttribute("src",l),u.setAttribute("sandbox","allow-same-origin allow-scripts"),u.setAttribute("aria-hidden","true"),u.style.height="0px",u.style.width="0px",u.style.border="none",u.style.position="absolute",u.style.left="-9999px",document.body.appendChild(u)
var d={app_id:s,ts:a,d_id:c,r_id:o,uc:"scraping"}
e.prototype.populateFpDataCookie(d,i),t(r,JSON.stringify(d))}catch(e){var f={error:e}
t(r,JSON.stringify(f))}}),globalThis.humanIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(){var e=new MutationObserver(function(){var t=document.querySelector(".grecaptcha-badge")
t&&(t.style.display="none",e.disconnect())})
e.observe(document.body,{childList:!0,subtree:!0})
var t=document.createElement("script")
t.src="https://www.google.com/recaptcha/enterprise.js?render=6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",document.head.appendChild(t)}}]),e}()
ie.prototype.reentry=function(e){globalThis.triggerApfc=null,new ie(e)},ie.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new ie({globalIntegration:"enabled"},e,t)},ie.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=ie.prototype.extractDataCookie()
!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),ie.prototype.reentryGlobalIntegration(e,t))}},ie.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},ie.prototype.populateFpDataCookie=function(e,t){"object"==O(e)&&"object"==O(t)&&(e.FPDataCookie=t.fpDataCookie)},ie.prototype.isProd=function(){var e=location&&location.host
return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")},ie.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=ie.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=ie.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||2>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=2,globalThis.triggerDnaApfcEventOnDemandVersioned=ie.prototype.reentryGlobalIntegrationOnDemand),new ie)}()
var bi=function(){function e(){N(this,e)}return P(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}(),Ei=function(){function e(t,n,r,i,o,a,s,c,u,l){N(this,e),L(this,"hostApis",void 0),L(this,"statics",void 0),L(this,"options",void 0),L(this,"allowTimingOrigin",void 0),L(this,"fireResourceLoadEvent",void 0),L(this,"isTracerEnabled",void 0),L(this,"responseRleCache",void 0),L(this,"fireApfcEvent",void 0),L(this,"abuseDeviceSignalCollectionConfig",void 0),L(this,"trackingEndpoint",void 0),L(this,"collectResourceTimings",void 0),L(this,"collectCdnData",void 0),L(this,"perfObserver",void 0),L(this,"renderTimings",new Map),L(this,"urlToTreeId",new Map),L(this,"cdnDataProvider",void 0),L(this,"observables",new Vr),L(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireResourceLoadEvent=o,this.isTracerEnabled=a,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 yi(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return P(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(di=di||t.createElement("a")).href=e,di.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:pi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e)
if(r&&(r.renderEnd=r.renderEnd||pi(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void an("ViewLoadEvent",jr)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,r=e.renderEnd,i=void 0===r?-1:r,o=e.renderStart,a=void 0===o?-1:o,s=[]
return s.push({viewProgressType:"RENDER_START",timestamp:a}),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 o=this.collectAsynchronousData()
return"then"in o?o.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,o=i.webUIFramework,a=i.timeSource,s=i.isSinglePageApp,c=i.appRenderMode,u=i.isAppRenderFailed,l=i.isFromServiceWorker,d=i.treeId
return r.treeId=d,r.browserPageLoadStartContext={webUIFramework:o,timeSource:a,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,o=this.hostApis.assign
if(r){var a=Ti(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,u=a.navigationType,l=a.workerStart
s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=u),n.workerStart=null!=l?l:0,Fr.forEach(function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])}),o(t.navigationTiming,n)}if(!i){var d=this.collectAsynchronousData()
if("then"in d)return d.then(function(e){return o(t.cdnData,e.cdnData),t})}var f=this.collectAsynchronousData(!0)
return o(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,r=e.transferSize,i=e.initiatorType,o=e.nextHopProtocol,a=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(Br).forEach(function(t){var n
t in Rr&&void 0!==e[t]&&l.push({resourceProgressType:Br[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})}),u.resourceProgressStates=l
var d={},f=Ur[o]
d.nextHopProtocol=null!=f?f:"UNKNOWN",d.transferSize=r,d.encodedBodySize=a,d.decodedBodySize=s,u.resourceNetworkContext=d,u.requestStart=c
try{var p,h,v=new URL(n),g=v.pathname+v.search+v.hash
return null===(p=this.responseRleCache)||void 0===p||p.offerResourceLoadEvent(g,u),null===(h=this.responseRleCache)||void 0===h?void 0:h.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),an("ResourceLoadEvent",e)):an("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=gi(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,Ti(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?$t(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,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,u=n.isSyncFingerprintingWithCbLixEnabled,l=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled
if(i||o||r||c||u||l||d){var f,p,h={treeId:null!==(f=null===(p=this.statics.treeId)||void 0===p?void 0:p.toString())&&void 0!==f?f:"",humanIntegrationEnabled:i,dfpIntegrationEnabled:o,dnaIntegrationEnabled:r,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:u,recaptchaV3IntegrationEnabled:l,enableNetworkInterceptor:d};(!t||t&&s||c||u)&&bi.collectFeatures(h,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,o=e.name,a=e.startTime,s=e.duration
"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),"mark_meaningful_paint_end"!==o||r||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===i?n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}):"longtask"===i&&n.observables.longTasks.push({duration:s,name:o,startTime:a})})}),this.observables.userTimingEntries=gi(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"]&&vt.emit(Er.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=fi;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:mi(this.renderTimings),networkInformationMetrics:wi(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function wi(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 Ti(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,Fr.forEach(function(e){e in r&&(t[e]=r[e])}),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var Si=function(){function e(t,n,r){N(this,e),L(this,"featureName",void 0),L(this,"trackingCore",void 0),L(this,"rumConfig",void 0),L(this,"observing",!1),L(this,"basePageTreeId",void 0),L(this,"startPageInstance",void 0),L(this,"startMemory",void 0),L(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return P(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)||Ht(F),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:hi(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}()
L(Si,"checkpoints",[1,3,10,30,90,180,300])
var ki,Ci,Ai,Ii,_i,Ri=P(function e(t,n,r){N(this,e),L(this,"webUIFramework",void 0),L(this,"timeSource",void 0),L(this,"isSinglePageApp",void 0),L(this,"appRenderMode",void 0),L(this,"isAppRenderFailed",void 0),L(this,"pageLoadMode","INITIAL"),L(this,"isSSL",void 0),L(this,"treeId",void 0),L(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}),Oi=function(){function e(t){N(this,e),L(this,"isPEMTracerEnabled",void 0),L(this,"responseContextMap",new Map),L(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return P(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 un(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 un(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=C(e,c),r=(t.requestTime,t.viewNames),i=t.requestType,o=t.requestTag,a=C(t,u)
return n.targetViewNames=r||[],i&&(n.requestType=i),o&&(n.requestTag=o),n.resourceNetworkContext=h(h({},n.resourceNetworkContext),a),cn(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=A(e)
try{for(r.s();!(n=r.n()).done;){var i=n.value
t=[].concat(I(t),I(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var o=this.resourceLoadEventsMap.keys()
if(o){var a,s=A(o)
try{for(s.s();!(a=s.n()).done;){var c,u=a.value,d=null===(c=this.resourceLoadEventsMap.get(u))||void 0===c?void 0:c.heapClear()
d&&(t=[].concat(I(t),I(d.map(function(e){return e.requestStart,cn(C(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,cn(C(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}(),Ni=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)}},Di=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){}},Pi=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)},Li=function(e){addEventListener("pageshow",function(t){t.persisted&&e(t)},!0)},xi=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)))}},Mi=-1,Fi=function(){return"hidden"===document.visibilityState?0:1/0},Bi=function(){Pi(function(e){var t=e.timeStamp
Mi=t},!0)},Ui=function(){return Mi<0&&(Mi=Fi(),Bi(),Li(function(){setTimeout(function(){Mi=Fi(),Bi()},0)})),{get firstHiddenTime(){return Mi}}},ji=!1,Ki=-1,Hi=function(e,t){ji||(function(e,t){var n,r=Ui(),i=Ni("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:Di("paint",o);(a||s)&&(n=xi(e,i,t),a&&o(a),Li(function(r){i=Ni("FCP"),n=xi(e,i,t),requestAnimationFrame(function(){requestAnimationFrame(function(){i.value=performance.now()-r.timeStamp,n(!0)})})}))}(function(e){Ki=e.value}),ji=!0)
var n,r=function(t){Ki>-1&&e(t)},i=Ni("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1]
o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>i.value&&(i.value=o,i.entries=a,n())}},c=Di("layout-shift",s)
c&&(n=xi(r,i,t),Pi(function(){c.takeRecords().map(s),n(!0)}),Li(function(){o=0,Ki=-1,i=Ni("CLS",0),n=xi(r,i,t)}))},Vi={passive:!0,capture:!0},Wi=new Date,Gi=function(e,t){ki||(ki=t,Ci=e,Ai=new Date,Xi(removeEventListener),qi())},qi=function(){if(Ci>=0&&Ci<Ai-Wi){var e={entryType:"first-input",name:ki.type,target:ki.target,cancelable:ki.cancelable,startTime:ki.timeStamp,processingStart:ki.timeStamp+Ci}
Ii.forEach(function(t){t(e)}),Ii=[]}},zi=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(){Gi(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Vi),removeEventListener("pointercancel",r,Vi)}
addEventListener("pointerup",n,Vi),addEventListener("pointercancel",r,Vi)}(t,e):Gi(t,e)}},Xi=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,zi,Vi)})},Ji=function(e,t){var n,r=Ui(),i=Ni("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=Di("first-input",o)
n=xi(e,i,t),a&&Pi(function(){a.takeRecords().map(o),a.disconnect()},!0),a&&Li(function(){var r
i=Ni("FID"),n=xi(e,i,t),Ii=[],Ci=-1,ki=null,Xi(addEventListener),r=o,Ii.push(r),qi()})},Qi={},Yi=function(e,t){var n,r=Ui(),i=Ni("LCP"),o=function(e){var t=e.startTime
t<r.firstHiddenTime&&(i.value=t,i.entries.push(e),n())},a=Di("largest-contentful-paint",o)
if(a){n=xi(e,i,t)
var s=function(){Qi[i.id]||(a.takeRecords().map(o),a.disconnect(),Qi[i.id]=!0,n(!0))};["keydown","click"].forEach(function(e){addEventListener(e,s,{once:!0,capture:!0})}),Pi(s,!0),Li(function(r){i=Ni("LCP"),n=xi(e,i,t),requestAnimationFrame(function(){requestAnimationFrame(function(){i.value=performance.now()-r.timeStamp,Qi[i.id]=!0,n(!0)})})})}},Zi=["LCP","FID","CLS"],$i={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},eo={},to=function(){var e
if(!wn)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}(),no=!1,ro=new Set,io={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function oo(){var e=!0===window.__test__resetWebVitalsState
if(!no||e){e&&(ro=new Set),Zi.forEach(ao)
var t=Symbol()
_i=t,[Yi,Ji,Hi].forEach(function(e){return e(so.bind(null,t),!0)}),[Yi,Ji,Hi].forEach(function(e){return e(co.bind(null,t))}),no=!0}}function ao(e){eo[e]={name:e,verboseName:$i[e]||e,value:xr,updateHistory:[]}
var t=io[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(eo[e].value=Mr)}function so(e,t){if(e===_i){var n=eo[t.name],r=hi()
n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),ro.forEach(function(e){return e(t,r,!1)})}}function co(e,t){e===_i&&ro.forEach(function(e){return e(t,hi(),!0)})}var uo,lo=function(){function e(t,n){var r=this
N(this,e),L(this,"basePageTreeId",void 0),L(this,"basePageKey",void 0),L(this,"observing",!1),L(this,"appContextMap",new Map),L(this,"rumConfig",void 0),L(this,"trackingCore",void 0),L(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 P(e,[{key:"startObserving",value:function(){var e,t,n=this
oo(),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",Zi.forEach(function(e){var t;(null===(t=eo[e])||void 0===t?void 0:t.value)===Mr&&n.reportMetric(e)}),t=this.onMetricUpdate,ro.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,ro.delete(e)}},{key:"reportMetric",value:function(e){var t=eo[e]
if(t){var n={name:$i[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var r=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:to},a=null
switch(n.name){case"LCP":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],a={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:vi(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)}
return o.url&&(a.url=o.url),a}(n,r)
break
case"FID":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1]
return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:vi(o.target)}}(n,r)
break
case"CLS":a=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)}),o=null
r&&r.sources&&r.sources.length&&(o=r.sources.reduce(function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t}))
var a,s=t.get(i.time)
return o&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":vi(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(a){var s={}
return i(s,o,a),s}return o}(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 o={value:n.longValue,metadata:r}
vt.emit(Er.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:r}
vt.emit(Er.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:r}
vt.emit(Er.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),fo={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"},po=function(){function e(t){N(this,e),L(this,"_callTreeId",void 0),L(this,"_fabric",void 0),L(this,"_msEdgeRef",void 0),L(this,"_pointOfPresenceId",void 0),L(this,"_responseMetadata",void 0),L(this,"_contentType",void 0),L(this,"_cdnCacheMetadata",void 0),L(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach(function(e,t){n.set(t.toLowerCase(),e)}),this._callTreeId=n.get(fo.CALL_TREE_ID)||null,this._pointOfPresenceId=n.get(fo.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=n.get(fo.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=n.get(fo.FABRIC)||null,this._responseMetadata=n.get(fo.PEM_RESPONSE_METADATA)||null,this._contentType=n.get(fo.CONTENT_TYPE)||null,this._cdnCacheMetadata=n.get(fo.CDN_CACHE)||null,this._downstreamAvailability=function(e){if(null==e)return 1
var t,n=A(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 P(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 ho(e,t,n){if(t){if(429===t||999===t)return uo.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return uo.BLOCKED_BY_CLIENT_PROXY
if((r=t)>=400&&r<500)return uo.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return uo.SERVER_ERROR
if(e.pointOfPresenceId)return uo.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return uo.TRAFFIC_AFD_TO_LI_POP_ERROR}return uo.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return uo.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var r
if(n instanceof Error){if("AbortError"===n.name)return uo.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 uo.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 uo.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return uo.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return uo.NETWORK_ERROR}return uo.UNCLASSIFIED}!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"}(uo||(uo={}))
var vo="tracer-unclassified-error",go="resource-load-tracer"
function mo(e,t,n,r,i){var o=new po(r),a=ho(o,n,i),s=null
return a&&(s={errorType:a},a===uo.UNCLASSIFIED&&i&&(s.errorMessage=i.message,function(e,t,n){var r,i=[vo]
null==n||n.forEach(function(e){return i.push("target-view-name-".concat(e))}),r=e instanceof Error||"string"==typeof e?e:JSON.stringify(e),an(go,r,Object.fromEntries(t||[]),i)}(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:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}var yo,bo=function(){function e(t,n,r){var i,o,a,s,c,u,l=this
N(this,e),L(this,"core",void 0),L(this,"config",void 0),L(this,"collector",void 0),L(this,"boomerangStart",-1),L(this,"webVitalsObserver",void 0),L(this,"appMemoryObserver",void 0),L(this,"pageMemoryObserver",void 0),L(this,"liveTokens",new Set),L(this,"stateWM",new WeakMap),L(this,"activeToken",void 0),L(this,"isInitial",void 0),L(this,"pageLoadId",void 0),L(this,"initialResourcesEvents",[]),L(this,"responseRleCache",void 0),L(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),L(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),L(this,"isTracerEnabled",void 0),L(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({},Lr),n)
var d="enabled"===(null===(i=(o=r.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time")),f=this.getAbuseDeviceSignalCollectionConfig(r),p=null===(a=(s=r.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.generic-tracers"),h=!!p&&Hr.test(p)
this.isTracerEnabled=h||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 Oi(this.isPEMTracerEnabled),this.collector=new Ei(r.host.api,new Ri(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(),vt.before(ut,this.beforeHideHandlerBound)}return P(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 o=null===(r=this.responseRleCache)||void 0===r?void 0:r.flushCacheByUrl(e)
null==o||o.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),o="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:pi(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:pi(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new Si("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Si("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new lo(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],o=arguments.length>2?arguments[2]:void 0
if(e&&this.activeToken&&this.activeToken===e){var a=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=pi(this.core.host.api.performance,s)
a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o)
var u=this.activeToken,l=this.isTracerEnabled?5e3:this.config["beacon-timeout"]
a.fireRumEventTimeout=setTimeout(function(){if(r.isTracerEnabled){r.flushResourceLoadEvents(u)
var e=r.collector.collectPageLoadEndData({isInitial:a.isInitial})
"then"in e?e.then(function(e){r.firePageLoadEndEvent(e,u)}):r.firePageLoadEndEvent(e,u)}var t=r.collector.collect({isInitial:a.isInitial})
"then"in t?t.then(function(e){r.fireRumEvent(e,u)}):r.fireRumEvent(t,u)},l),this.activeToken=void 0}else an("rum-end",Kr)}},{key:"onDataResponse",value:function(e,t,n,r,i,o,a){var s=mo(t,n,r,i,o)
if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,h({nextHopProtocol:Ir.UNKNOWN},s))
this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){an("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=Dt(),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 an("PageLoadStartEvent",Kr)}},{key:"destroy",value:function(){var e,t,n
vt.offBefore(ut,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,o=r.endProps,a=r.pageLoadId,s=r.pageKey
if(o){var c=o.renderCompleteTime,u=o.isImpactedByHiddenWindow
if(a?e.pageLoadId=a:an("PageLoadEndEvent",jr),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,p=d||i,h=c-p
e.navigationTiming.boomerangStart=f,e.navigationTiming.timeDone=h,e.navigationTiming.navigationStart=p,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,o=r.endProps
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,u=this.boomerangStart=e.navigationStart||this.boomerangStart,l=e.navigationStart||i,d=a-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:a},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=sn(r)}catch(e){}var o={type:e,bsCookieInfo:i,payload:t}
this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,r=t.viewNames,i=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:r||[],loadType:"serversideresponse",resourceNetworkContext:h({},C(t,f)),resourceProgressStates:[],timeOrigin:n}
return i&&(o.loadType=i),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,r,i,o,a,s,c,u,l,d,f,p,h,v,g,m,y,b,E,w,T,S,k,C,A,I,_,R,O=null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"),N=!1,D=!1,P=!1,L=!1,x=!1,M=!1
if("enabled"===O)N=!0
else if(null!=O&&O.startsWith("v2:")){var F=O.split(":")
if(2===F.length){var B=new Set(F[1].split(","))
N=B.has("a"),L=B.has("b"),x=B.has("c"),D=B.has("d"),P=B.has("e"),M=B.has("f")}}return{isDnaIntegrationLixEnabled:N=N||"enabled"===(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.webviewDnaMemberLixTreatment)||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:D=D||"enabled"===(null===(o=(a=e.host).__getLixTreatment)||void 0===o?void 0:o.call(a,"pemberly.tracking.human.integration"))||"enabled"===(null===(s=e.host.abuseDeviceSignalCollectionConfig)||void 0===s?void 0:s.webviewHumanMemberLixTreatment)||"enabled"===(null===(c=e.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.humanMemberLixTreatment),isDfpIntegrationLixEnabled:P=P||"enabled"===(null===(u=(l=e.host).__getLixTreatment)||void 0===u?void 0:u.call(l,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.webviewDfpMemberLixTreatment)||"enabled"===(null===(f=e.host.abuseDeviceSignalCollectionConfig)||void 0===f?void 0:f.dfpMemberLixTreatment),disablePerfMarkerOptimization:e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(p=(h=e.host).__getLixTreatment)||void 0===p?void 0:p.call(h,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(v=e.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:M=M||"enabled"===(null===(g=(m=e.host).__getLixTreatment)||void 0===g?void 0:g.call(m,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(y=(b=e.host).__getLixTreatment)||void 0===y?void 0:y.call(b,"sync.apfc.headers"))||"enabled"===(null===(E=e.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(w=(T=e.host).__getLixTreatment)||void 0===w?void 0:w.call(T,"sync.apfc.couchbase"))||"enabled"===(null===(S=e.host.abuseDeviceSignalCollectionConfig)||void 0===S?void 0:S.syncFingerprintingEnabledWithCbLixTreatment),isRecaptchaV3IntegrationEnabled:L=L||"enabled"===(null===(k=(C=e.host).__getLixTreatment)||void 0===k?void 0:k.call(C,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(A=e.host.abuseDeviceSignalCollectionConfig)||void 0===A?void 0:A.recaptchaV3IntegrationLixValue),isNetworkInterceptorEnabled:x=x||"enabled"===(null===(I=(_=e.host).__getLixTreatment)||void 0===I?void 0:I.call(_,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(R=e.host.abuseDeviceSignalCollectionConfig)||void 0===R?void 0:R.networkInterceptorLixValue)}}}]),e}(),Eo="undefined"!=typeof window&&"undefined"!=typeof performance,wo="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG"),To=function(){function e(t,n){N(this,e),L(this,"trackingCore",void 0),L(this,"endPageInstance",void 0),L(this,"startPageInstance",void 0),L(this,"featureIdentifier",void 0),L(this,"marks",[]),L(this,"spans",[]),L(this,"spanStarts",new Map),L(this,"started",!1),L(this,"ended",!1),L(this,"featureKey",void 0),L(this,"productName",void 0),L(this,"flushOnEnd",void 0),L(this,"basePageTreeId",void 0),L(this,"debounceFlush",void 0),L(this,"disableAutoFlush",void 0),L(this,"isCanceled",!1),L(this,"isClosed",!1),this.trackingCore=t
var r=n.featureKey,i=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd
this.featureKey=r,this.productName=i,this.flushOnEnd=a
var s=i?"::".concat(i):""
this.featureIdentifier="".concat(r).concat(s)
var c=void 0!==o?o:3e3
c>0&&(this.debounceFlush=function(e,t,n){var r,i,o
void 0===t&&(t=50),void 0===n&&(n={})
var a=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=a&&void 0===o
if(void 0!==o&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,u=Date.now(),!a){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!==o&&clearTimeout(o),l.forEach(function(t){return(0,t.reject)(e)}),l=[]},f}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}return P(e,[{key:"start",value:function(e){var t
if(Eo){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(Eo){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){Eo&&(this.marks.push({name:e,startTime:hi()}),wo&&(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){Eo&&(this.spanStarts.set(e,hi()),wo&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Eo&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e
this.spans.push({name:r,startTime:n,duration:hi()-n}),wo&&(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){Eo&&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 hi()}},{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||Ht(F),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(Eo){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"}(yo||(yo={}))},7242:function(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}}')}}])

//# sourceMappingURL=chunk.604.183e1e1a9696aa9f8734.map