2024-05-19 07:25:58 -05:00

6363 строки
1.1 MiB
Исходник Ответственный История

Этот файл содержит невидимые символы Юникода

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see chunk.758.039a4295acc1156fe70b.js.LICENSE.txt */
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[758],{51495:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{CI:()=>i,DEBUG:()=>r})
const r=!1,i=!1},99186:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Abi:()=>ie,AbiV2:()=>oe})
var r={}
function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}n.r(r),n.d(r,{ABI_FUNNEL_TRACKING_EVENTS:()=>E,EMAIL_DOMAIN_RESOLVE:()=>p,EMAIL_VALIDATION_ERRORS:()=>y,EVENT_NAME:()=>l,IMPORT_CONTACTS:()=>g,IMPORT_ERRORS:()=>b,INPUT_EMAIL:()=>h,NETWORK_ERROR:()=>c,OAUTH:()=>v,POLL_IMPORT_STATUS:()=>m,STATES:()=>f,STATE_MACHINE_ERRORS:()=>_,STATE_TRANSITION_EVENT_NAME:()=>d,TOO_MANY_REQUESTS:()=>u}),i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number")
return this._maxListeners=e,this},i.prototype.emit=function(e){let t,n,r,i,c,u
if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t
throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1
if(o(n))switch(arguments.length){case 1:n.call(this)
break
case 2:n.call(this,arguments[1])
break
case 3:n.call(this,arguments[1],arguments[2])
break
default:for(r=arguments.length,i=new Array(r-1),c=1;c<r;c++)i[c-1]=arguments[c]
n.apply(this,i)}else if(a(n)){for(r=arguments.length,i=new Array(r-1),c=1;c<r;c++)i[c-1]=arguments[c]
for(u=n.slice(),r=u.length,c=0;c<r;c++)u[c].apply(this,i)}return!0},i.prototype.addListener=function(e,t){var n
if(!o(t))throw TypeError("listener must be a function")
return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function")
let n=!1
function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){let n,r,i,s
if(!o(t))throw TypeError("listener must be a function")
if(!this._events||!this._events[e])return this
if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t)
else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s
break}if(r<0)return this
1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){let t,n
if(!this._events)return this
if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this
if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t)
return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n)
else for(;n.length;)this.removeListener(e,n[n.length-1])
return delete this._events[e],this},i.prototype.listeners=function(e){let t
return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},i.listenerCount=function(e,t){let n
return n=e._events&&e._events[t]?o(e._events[t])?1:e._events[t].length:0,n}
const c="network-error",u="Too Many Requests",l="custom-state-event",d="state-transition-event",f={INPUT_EMAIL:"input-email",EMAIL_DOMAIN_RESOLVE:"email-domain-resolve",IMPORT_CONTACTS:"import-contacts",POLL_IMPORT_STATUS:"poll-import-status",OAUTH:"oauth"},h={EVENTS:{EMAIL_INPUT_CHANGE:"emailInputChange",FETCH_FORM_SUBMIT:"fetchFormSubmit"},EVENT_TYPE:{INVALID_EMAIL:"invalid-email"}},p={EVENTS:{EMAIL_INPUT_CHANGE:"emailInputChange"},EVENT_TYPE:{PROVIDER_CHANGED:"provider-changed",RESOLUTION_BEGUN:"resolution-begun",RESOLUTION_COMPLETE:"resolution-complete",PASSWORD_REQUIRED:"password-required",UNSUPPORTED_DOMAIN:"unsupported-domain",NETWORK_ERROR:"network-error"}},g={EVENTS:{STATE_RESET:"stateReset"},EVENT_TYPE:{OPEN_POPUP:"open-popup"}},m={EVENTS:{GET_IMPORT_STATUS:"getImportStatus",STATE_RESET:"stateReset"},EVENT_TYPE:{IMPORT_STARTED:"import-started",IMPORT_SUCCESS:"import-success",IMPORT_IN_PROGRESS:"import-in-progress",IMPORT_ERROR_OTHER:"import-error-other",IMPORT_ERROR_BAD_LOGIN:"import-error-bad-login",ZERO_CONTACTS_TO_IMPORT:"zero-contacts-to-import",INVALID_CREDENTIALS:"invalid-credentials",EXCEEDED_MAX_RETRIES:"exceeded-max-retries"}},v={EVENTS:{STATE_RESET:"stateReset"},EVENT_TYPE:{CALLBACK:"oauth-callback",OAUTH_SUCCESS:"oauth-success",UPDATE_POPUP:"update-popup",LOGIN_LIMIT_EXCEEDED:"login-limit-exceeded"}},y={INVALID_EMAIL:"invalid-email",UNSUPPORTED_DOMAIN:"unsupported-domain",OAUTH_WITHOUT_PROVIDER:"oauth-without-provider",INVALID_DOMAIN_RESOLUTION_CALLBACK:"invalid-domain-resolution-callback",NETWORK:"network",OTHER:"other"},b={EMPTY_CONFIG:"empty-config",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"invalid-password",INVALID_ABOOK_TRANSACTION_ID:"invalid-abook-transaction-id",INVALID_TICKET_ID_CALLBACK:"invalid-ticket-id-callback",INVALID_POLL_STATUS_CALLBACK:"invalid-poll-status-callback",INVALID_TRACKING_CALLBACK:"invalid-tracking-callback",INVALID_CREDENTIALS:"invalid-credentials",INVALID_JSECURE:"invalid-jsecure",ZERO_CONTACTS_TO_IMPORT:"zero-contacts-to-import",EXCEEDED_MAX_REQUEST_RETRIES:"exceeded-max-request-retries",EXCEEDED_MAX_STATUS_CHECK_RETRIES:"exceeded-max-status-check-retries",IMPORT_ERROR_OTHER:"import-error-other",NETWORK:"network",OTHER:"other",INVALID_IMPORT_TICKET_ID:"invalid-import-ticket-id",OAUTH_VALIDATION_TIMED_OUT:"oauth-validation-timed-out",OAUTH_POPUP_NOT_OPEN:"oauth-popup-not-open"},E={SUBMIT:"AbookImportSubmitEvent",TASK_STATUS:"AbookImportTaskStatusEvent",OAUTH_REDIRECT:"AbookImportOAuthRedirectEvent",OAUTH_CALLBACK:"AbookImportOAuthCallbackEvent"},_={ALREADY_STARTED:"State machine has already begun"}
class T extends i{constructor(e,t,n){if(super(),this.promise=n||Promise,!Array.isArray(e))throw new Error("The state machine constructor only accepts an array of states as the first argument")
if(!t)throw new Error("Define a start state for the state machine")
if(this.states={},e.forEach((e=>{this.addState(e)})),this.startState=this.states[t],!this.startState)throw new Error("Start state is not defined")
this.currentState=this.startState}start(){if(this.currentState.getName()!==this.startState.getName())throw new Error(_.ALREADY_STARTED)
this.step()}addState(e){this.states[e.getName()]=e,e.on(l,(t=>{const n=t.type||l
this.emit(n,{currentState:e.getName(),eventData:t})})),e.on(d,(e=>{this._transitionTo(e)}))}_transitionTo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(!(e.state in this.states))throw new Error(`Cannot transition from ${this.currentState} to ${e.state}`)
this.currentState=this.states[e.state],delete e.state,this.step(e.eventName,e)}step(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"entry",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=this.currentState.go(e,t.data)
if(n){if("function"==typeof n.then)return new this.promise((e=>{e(n)})).then((e=>this._transitionTo(e)))
this._transitionTo(n)}}getCurrentState(){return this.currentState.getName()}}class S extends i{constructor(e,t){super(),this.name=e,this.validNextStates=t,this.defaultStateEvents=["entry"],this.events=[]}onEntry(){}getName(){return this.name}getNextStates(){return this.validNextStates}getEvents(){return this.defaultStateEvents+this.events}go(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"entry",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(this.getEvents().indexOf(e)>-1)return this[`on${e.charAt(0).toUpperCase()}${e.slice(1)}`](t)
throw new Error(`I can not serve that event. Expecting [${this.getEvents()}]\n but got ${e} from ${this.name}`)}}class x extends S{constructor(){super(f.INPUT_EMAIL,[f.EMAIL_DOMAIN_RESOLVE,f.IMPORT_CONTACTS]),this.events=[h.EVENTS.EMAIL_INPUT_CHANGE,h.EVENTS.FETCH_FORM_SUBMIT],this.resolvedEmail=null,this.isNonOAuth=!1,this.provider=null}onEntry(e){Object.prototype.hasOwnProperty.call(e,"emailAddress")&&(this.resolvedEmail=e.emailAddress),Object.prototype.hasOwnProperty.call(e,"isNonOAuth")&&(this.isNonOAuth=e.isNonOAuth),Object.prototype.hasOwnProperty.call(e,"provider")&&(this.provider=e.provider)}onEmailInputChange(e){let t="object"==typeof e?e.emailAddress:e
if("object"==typeof e&&!e.isEmailDomainResolve)return this.emit(l,{type:p.EVENT_TYPE.RESOLUTION_COMPLETE}),this.isNonOAuth=Object.prototype.hasOwnProperty.call(e,"isNonOauth")?e.isNonOAuth:this.isNonOAuth,{state:f.INPUT_EMAIL,data:{emailAddress:t,isEmailDomainResolve:e.isEmailDomainResolve,provider:e.provider,isNonOAuth:e.isNonOAuth}}
const n=/^([a-zA-Z0-9_\-=.'+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9-]+\.)+))([a-zA-Z]{2,10}|[0-9]{1,3})(\]?)$/
if(t.length){if(t=t.trim(),n.test(t))return{state:f.EMAIL_DOMAIN_RESOLVE,data:{emailAddress:t,isEmailDomainResolve:e.isEmailDomainResolve,provider:e.provider,isNonOAuth:e.isNonOAuth}}
this.emit(l,{type:h.EVENT_TYPE.INVALID_EMAIL})}}onFetchFormSubmit(e){const t={},{abookImportTransactionId:n,password:r}=e
if(this.isNonOAuth&&r.length>0?t.password=r:this.isNonOAuth&&this.emit(l,{type:p.EVENT_TYPE.PASSWORD_REQUIRED}),n&&(t.abookImportTransactionId=n),this.resolvedEmail)return t.emailAddress=this.resolvedEmail,t.isNonOAuth=this.isNonOAuth,t.provider=this.provider,{state:f.IMPORT_CONTACTS,data:t}
this.emit(l,{type:h.EVENT_TYPE.INVALID_EMAIL})}}const C=Object.freeze({"com.linkedin.voyager.dash.deco.contacts.EmailProvider":"com.linkedin.voyager.dash.deco.contacts.EmailProvider-1","com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus":"com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus-1"}),A="X-RestLi-Method",w="X-RestLi-Protocol-Version",I="Csrf-Token",R="Content-Type",k="x-restli-id",O="application/json",M="2.0.0",N={GET:"GET",CREATE:"POST",ACTION:"POST"}
function P(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function D(){const e=P()&&document.cookie.match(/JSESSIONID=?"?([^";]+)?"?/)
return e&&e[1]||""}function U(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
const o=N[t],a=JSON.stringify(n)||""
return new r(((n,r)=>{const s=new XMLHttpRequest
s.open(o,e),s.setRequestHeader(R,O),s.setRequestHeader(I,D()),s.setRequestHeader(w,M),t&&o!==t&&s.setRequestHeader(A,t),Object.keys(i).forEach((e=>{s.setRequestHeader(e,i[e])})),s.onload=function(){let e=this
if(!e){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o]
e=i[0].target}4===e.readyState&&(200===e.status?n(JSON.parse(e.response||e.responseText)):201===e.status?n(e.getResponseHeader(k)):r(new Error(e.statusText)))},s.onerror=function(e){r(new Error(e))},s.send(a)}))}function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0
const r=C[n]
if(!e)throw new Error("uri must be passed.")
if(!r)throw new Error("Invalid recipeId! Recipe not defined in dash-recipes.")
const i=Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&")
return`${e}?decorationId=${r}&${i}`}class j extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
super(f.EMAIL_DOMAIN_RESOLVE,[f.INPUT_EMAIL]),this.promise=e||Promise,this.events=[p.EVENTS.EMAIL_INPUT_CHANGE]
const{dashEnabled:n,pageKey:r}=t
if(n&&!r)throw new Error("PageKey is required for dash email domain resolver")
this.dashEnabled=n,this.pageKey=r}_buildDomainUrl(e){return this.dashEnabled?L("/voyager/api/voyagerContactsDashEmailProvider",{q:"findEmailProviders",emailAddress:e},"com.linkedin.voyager.dash.deco.contacts.EmailProvider"):`/voyager/api/voyagerGrowthEmailDomainResolutions/${e}`}onEntry(e){const t=this._buildDomainUrl(e.emailAddress)
this.emit(l,{type:p.EVENT_TYPE.RESOLUTION_BEGUN})
const n={}
return this.dashEnabled&&(n["X-Li-Page-Instance"]=this.pageKey),U(t,"GET",{},this.promise,n).then((t=>{let n=t
return this.dashEnabled&&(n=t&&t.elements?t.elements[0]:{}),this._handleResponse(e,n)})).catch((()=>{this.emit(l,{type:c})}))}_handleResponse(e,t){return this.emit(l,{type:p.EVENT_TYPE.RESOLUTION_COMPLETE}),"UNSUPPORTED"===t.emailProviderType?(this.emit(l,{type:p.EVENT_TYPE.UNSUPPORTED_DOMAIN}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,provider:t.emailProviderType,isNonOAuth:t.passwordInputRequired}}):t.passwordInputRequired?(this.emit(l,{type:p.EVENT_TYPE.PASSWORD_REQUIRED}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,provider:t.emailProviderType,isNonOAuth:t.passwordInputRequired}}):{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,provider:t.emailProviderType,isNonOAuth:t.passwordInputRequired}}}onEmailInputChange(e){const t=h.EVENTS.EMAIL_INPUT_CHANGE
return this.emit(l,{type:p.EVENT_TYPE.PROVIDER_CHANGED}),{state:f.INPUT_EMAIL,eventName:t,data:{emailAddress:e}}}}class F extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
super(f.IMPORT_CONTACTS,[f.POLL_IMPORT_STATUS]),this.promise=e||Promise,this.events=[v.EVENTS.STATE_RESET]
const{dashEnabled:n,pageKey:r}=t
if(n&&!r)throw new Error("PageKey is required for import contacts")
this.dashEnabled=n,this.pageKey=r,this.importUrl=this.dashEnabled?"/voyager/api/voyagerContactsDashEmailImportTask":"/voyager/api/voyagerGrowthEmailImportTask"}get customHeaders(){return this.dashEnabled?{"X-Li-Page-Instance":this.pageKey}:{}}onStateReset(e){return this.importUrl=this.importUrl,{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}}}onEntry(e){e.isNonOAuth||this.emit(l,{type:g.EVENT_TYPE.OPEN_POPUP})
const t=this.dashEnabled?{email:e.emailAddress,password:e.password,transactionId:e.abookImportTransactionId}:{emailAddress:e.emailAddress,password:e.password,abookImportTransactionId:e.abookImportTransactionId}
return U(this.importUrl,"CREATE",t,this.promise,this.customHeaders).then((t=>({state:f.POLL_IMPORT_STATUS,data:{ticketId:t,emailAddress:e.emailAddress,provider:e.provider,isNonOAuth:e.isNonOAuth}}))).catch((t=>(t.message===u?this.emit(l,{type:m.EVENT_TYPE.EXCEEDED_MAX_RETRIES}):this.emit(l,{type:c}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})))}}class B extends S{constructor(){super(f.OAUTH,[f.IMPORT_CONTACTS,f.INPUT_EMAIL]),this.oAuthUrl="/genie/startauth?sec=true&cb=onAuthenticationComplete&as=",this.events=[v.EVENTS.STATE_RESET]}_adjustDomain(){let e=document.domain,t=e
const n=/(lmodules)|(linkedin)/i,r=/\./g
if(r.test(e))for(let i=0,o=e.match(r).length;i<o&&(e=e.substring(e.indexOf(".")+1),n.test(e));i+=1)t=e
document.domain!==t&&(document.domain=t)}_updatePopup(e){this._adjustDomain(),this.emit(l,{type:v.EVENT_TYPE.UPDATE_POPUP,provider:this.provider,url:`https://www.${document.domain}${e}`})}onEntry(e){this.isNonOAuth=e.isNonOAuth,this.provider=e.provider,window.onAuthenticationComplete=this.onAuthenticationComplete.bind(this),e.isNonOAuth||(e.authSpecGaapScriptV2Urn?this._updatePopup(`${this.oAuthUrl}${e.authSpecGaapScriptV2Urn}`):this._updatePopup(`${this.oAuthUrl}${e.authSpec}`))}onStateReset(e){return{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}}}onAuthenticationComplete(e,t){if(this.emit(l,{type:v.EVENT_TYPE.CALLBACK,error:t}),t)return this.emit(l,{type:c}),{state:f.INPUT_EMAIL}
this.emit(l,{type:v.EVENT_TYPE.OAUTH_SUCCESS}),this.emit(d,{state:f.IMPORT_CONTACTS,data:{emailAddress:e,isNonOAuth:this.isNonOAuth,provider:this.provider}})}}class q extends S{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
super(f.POLL_IMPORT_STATUS,[f.INPUT_EMAIL,f.OAUTH]),this.promise=e.promise||Promise
const{dashEnabled:t,pageKey:n}=e
if(t&&!n)throw new Error("PageKey is required for poll import status")
this.dashEnabled=t,this.pageKey=n,this.events=[m.EVENTS.GET_IMPORT_STATUS,m.EVENTS.STATE_RESET],this.currentStatus=!1,this.pollingCount=0,this.noOfRetries=e.noOfRetries||30,this.pollingInterval=e.pollingInterval||0===e.pollingInterval?e.pollingInterval:500}onEntry(e){return new this.promise((t=>{const n=this
this._pollStatus(e).then((function r(i){i?t(i):setTimeout((()=>{n._pollStatus(e).then(r)}),n.pollingInterval)}))}))}_buildPollImportStatusUrl(e){return this.dashEnabled?L(`/voyager/api/voyagerContactsDashEmailImportTaskStatus/${e}`,{},"com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus"):"/voyager/api/voyagerGrowthEmailImportTask?action=getImportStatus"}get customHeaders(){return this.dashEnabled?{"X-Li-Page-Instance":this.pageKey}:{}}_pollStatus(e){if(this.pollingCount<this.noOfRetries){let t="GET"
const n={}
return this.dashEnabled||(n.importTaskHandle={handle:e.ticketId},t="ACTION"),this.pollingCount=this.pollingCount+1,U(this._buildPollImportStatusUrl(e.ticketId),t,n,this.promise,this.customHeaders).then((t=>{const n=this.dashEnabled?t.state:t.value.status,{authSpec:r,authSpecGaapScriptV2Urn:i}=this.dashEnabled?t:t.value
switch(n){case"IN_PROGRESS":return new this.promise((e=>{1===this.pollingCount?this.emit(l,{type:m.EVENT_TYPE.IMPORT_STARTED}):this.emit(l,{type:m.EVENT_TYPE.IMPORT_IN_PROGRESS}),e()}))
case"SUCCESS":return new this.promise((t=>{this.emit(l,{type:m.EVENT_TYPE.IMPORT_SUCCESS,ticketId:e.ticketId}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,ticketId:e.ticketId,success:!0}})}))
case"ERROR_BAD_LOGIN":return new this.promise((t=>{this.emit(l,{type:m.EVENT_TYPE.IMPORT_ERROR_BAD_LOGIN}),e.isNonOAuth?(this.emit(l,{type:m.EVENT_TYPE.INVALID_CREDENTIALS}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})):t(r?{state:f.OAUTH,data:{emailAddress:e.emailAddress,isNonOAuth:e.isNonOAuth,provider:e.provider,authSpec:r}}:{state:f.OAUTH,data:{emailAddress:e.emailAddress,isNonOAuth:e.isNonOAuth,provider:e.provider,authSpecGaapScriptV2Urn:i}})}))
case"ERROR_ZERO_CONTACTS":return new this.promise((t=>{this.emit(l,{type:m.EVENT_TYPE.ZERO_CONTACTS_TO_IMPORT}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})}))
case"ERROR_OTHERS":case"ERROR_OTHER":return new this.promise((t=>{this.emit(l,{type:m.EVENT_TYPE.IMPORT_ERROR_OTHER}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})}))
default:return new this.promise((t=>{this.emit(l,{type:c}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})}))}})).catch((()=>(this.emit(l,{type:c}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})))}this.emit(l,{type:m.EVENT_TYPE.EXCEEDED_MAX_RETRIES})}onGetImportStatus(){return this.currentStatus}onStateReset(e){return this.currentStatus=this.currentStatus,{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}}}}function H(e){return new Promise(((t,n)=>{if(e.resolveDomainCallback&&"function"==typeof e.resolveDomainCallback||n(y.INVALID_DOMAIN_RESOLUTION_CALLBACK),e.emailAddress&&"string"==typeof e.emailAddress){const r=e.emailAddress.trim();/^([a-zA-Z0-9_\-=.'+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9-]+\.)+))([a-zA-Z]{2,10}|[0-9]{1,3})(\]?)$/.test(r)?e.resolveDomainCallback.call(this,{emailAddress:r}).then((e=>{const i={isOauth:e.isOauth,emailAddress:r}
e.isOauth&&(e.providerName?"UNSUPPORTED"===e.providerName?n(y.UNSUPPORTED_DOMAIN):i.providerName=e.providerName:n(y.OAUTH_WITHOUT_PROVIDER)),t(i)})).catch((()=>{n(y.OTHER)})):n(y.INVALID_EMAIL)}else n(y.INVALID_EMAIL)}))}function G(e){let t,n
return new Promise(((r,i)=>{e||i(b.EMPTY_CONFIG),e.pollStatusCallback&&"function"==typeof e.pollStatusCallback||i(b.INVALID_POLL_STATUS_CALLBACK),e.fireTrackingEventCallback&&"function"==typeof e.fireTrackingEventCallback||i(b.INVALID_TRACKING_CALLBACK),e.abookImportTransactionId&&"string"==typeof e.abookImportTransactionId||i(b.INVALID_ABOOK_TRANSACTION_ID),e.importTicketId&&"string"==typeof e.importTicketId||i(b.INVALID_IMPORT_TICKET_ID),n=e.retryCount||0
try{e.pollStatusCallback.call(this,{importTicketId:e.importTicketId}).then((o=>{const a=o.status||"ERROR_OTHER"
switch(e.fireTrackingEventCallback&&e.fireTrackingEventCallback(E.TASK_STATUS,{status:a,abookImportTransactionId:e.abookImportTransactionId}),o.status){case"SUCCESS":r({importTicketId:e.importTicketId,abookImportTransactionId:e.abookImportTransactionId})
break
case"IN_PROGRESS":t=setTimeout((()=>{if(clearTimeout(t),n<30)return n+=1,G.call(this,{importTicketId:e.importTicketId,pollStatusCallback:e.pollStatusCallback,fireTrackingEventCallback:e.fireTrackingEventCallback,abookImportTransactionId:e.abookImportTransactionId,isOauthImport:e.isOauthImport||!1,retryCount:n}).then((e=>r(e))).catch((e=>i(e)))
i(b.EXCEEDED_MAX_STATUS_CHECK_RETRIES)}),500)
break
case"ERROR_BAD_LOGIN":e.isOauthImport?r(o):i(b.INVALID_CREDENTIALS)
break
case"ERROR_ZERO_CONTACTS":i(b.ZERO_CONTACTS_TO_IMPORT)
break
default:i(b.IMPORT_ERROR_OTHER)}})).catch((()=>{e.fireTrackingEventCallback(E.TASK_STATUS,{status:"NETWORK_ERROR",abookImportTransactionId:e.abookImportTransactionId}),i(b.IMPORT_ERROR_OTHER)}))}catch(t){e.fireTrackingEventCallback(E.TASK_STATUS,{status:"NETWORK_ERROR",abookImportTransactionId:e.abookImportTransactionId}),i(b.IMPORT_ERROR_OTHER)}}))}function K(e){return new Promise(((t,n)=>{e||n(b.EMPTY_CONFIG),e.emailAddress&&"string"==typeof e.emailAddress||n(b.INVALID_EMAIL),e.password&&"string"==typeof e.password||n(b.INVALID_PASSWORD),e.abookImportTransactionId&&"string"==typeof e.abookImportTransactionId||n(b.INVALID_ABOOK_TRANSACTION_ID),e.getImportTicketIdCallback&&"function"==typeof e.getImportTicketIdCallback||n(b.INVALID_TICKET_ID_CALLBACK),e.pollStatusCallback&&"function"==typeof e.pollStatusCallback||n(b.INVALID_POLL_STATUS_CALLBACK),e.fireTrackingEventCallback&&"function"==typeof e.fireTrackingEventCallback||n(b.INVALID_TRACKING_CALLBACK),e.fireTrackingEventCallback(E.SUBMIT,{abookImportTransactionId:e.abookImportTransactionId}),e.getImportTicketIdCallback.call(this,{emailAddress:e.emailAddress,password:e.password,abookImportTransactionId:e.abookImportTransactionId}).then((r=>{if(r.importTicketId)return G({importTicketId:r.importTicketId,pollStatusCallback:e.pollStatusCallback,fireTrackingEventCallback:e.fireTrackingEventCallback,abookImportTransactionId:e.abookImportTransactionId}).then((e=>t(e))).catch((e=>n(e)))
n(b.INVALID_IMPORT_TICKET_ID)})).catch((e=>{Array.isArray(e.errors)&&e.errors.some((e=>429===e.status))?n(b.EXCEEDED_MAX_REQUEST_RETRIES):n(e||b.OTHER)}))}))}const V={hotmail:{width:905,height:580},aol:{width:520,height:315},"live.com":{width:905,height:580},"msn.com":{width:905,height:580},default:{width:790,height:650},minimum:{width:150,height:100}},z=P()
let W,X,Q,Y,$
function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.default,n=arguments.length>2?arguments[2]:void 0
if(z||"function"!=typeof X){if(!W)return}else X({url:e,size:t})
const{oAuthWindow:r}=W,{width:i,height:o}=t
r&&r.resizeTo?(r.location=n.sanitizeUrl(e),r.resizeTo(i,o),Y.fireTrackingEventCallback(E.OAUTH_REDIRECT,{abookImportTransactionId:Y.abookImportTransactionId})):W=null}function Z(){if(!W)return
const{oAuthWindow:e}=W
e&&(e.focus(),setTimeout((()=>{e&&e.close()}),5)),W=null}function ee(e){return new Promise(((t,n)=>{e.getImportTicketIdCallback.call(this,{emailAddress:e.emailAddress,abookImportTransactionId:e.abookImportTransactionId}).then((t=>{if(t.importTicketId)return G({importTicketId:t.importTicketId,pollStatusCallback:e.pollStatusCallback,fireTrackingEventCallback:e.fireTrackingEventCallback,abookImportTransactionId:e.abookImportTransactionId,isOauthImport:e.isOauthImport})
n(b.IMPORT_ERROR_OTHER)})).then((e=>{t(e)})).catch((e=>{Array.isArray(e.errors)&&e.errors.some((e=>429===e.status))?n(b.EXCEEDED_MAX_REQUEST_RETRIES):n(e)}))}))}function te(){if(!z)return void(W={})
const{width:e,height:t}=V.minimum,n=window.open("","oauth-popup",`width=${e},height=${t},toolbar=0,location=0,status=0,scrollbars=no`)
W={oAuthWindow:n},$=!1,n&&(n.focus(),function(){let e=0
return new Promise((function t(n,r){W&&W.oAuthWindow&&!W.oAuthWindow.closed?e<120?(e+=1,setTimeout(t,1e3,n,r)):(Z(),r()):(W=null,$?n():r())}))}().catch((()=>{"function"==typeof Q&&Q(b.OAUTH_VALIDATION_TIMED_OUT)})))}function ne(e,t){let n="linkedin.com"
z&&(function(){let e=document.domain,t=e
const n=/(lmodules)|(linkedin)/i,r=/\./g
if(r.test(e))for(let i=0,o=e.match(r).length;i<o&&(e=e.substring(e.indexOf(".")+1),n.test(e));i+=1)t=e
document.domain!==t&&(document.domain=t)}(),n=document.domain)
const r=`https://www.${n}/genie/startauth?sec=true&cb=onAuthenticationComplete&as=${e}`
return"YAHOO_JAPAN"===t?`https://fbi.address.yahoo.co.jp/explain?done=${encodeURIComponent(r)}`:r}function re(e){return new Promise(((t,n)=>{e||n(b.EMPTY_CONFIG),e.emailAddress&&e.emailAddress.length||n(b.INVALID_EMAIL),e.abookImportTransactionId&&e.abookImportTransactionId.length||n(b.INVALID_ABOOK_TRANSACTION_ID),e.provider&&e.provider.length||n(b.INVALID_EMAIL),e.getImportTicketIdCallback&&"function"==typeof e.getImportTicketIdCallback||n(b.INVALID_TICKET_ID_CALLBACK),e.pollStatusCallback&&"function"==typeof e.pollStatusCallback||n(b.INVALID_POLL_STATUS_CALLBACK),e.fireTrackingEventCallback&&"function"==typeof e.fireTrackingEventCallback||n(b.INVALID_TRACKING_CALLBACK),e.jSecure&&"object"==typeof e.jSecure||n(b.INVALID_JSECURE),e.isOauthImport=!0,W||te(),W||n(b.OAUTH_POPUP_NOT_OPEN),X=t,Q=n,e.fireTrackingEventCallback(E.SUBMIT,{abookImportTransactionId:e.abookImportTransactionId}),ee(e).then((r=>{const{importTicketId:i,authSpec:o,authSpecGaapScriptV2Urn:a}=r
if(i)Z(),t(r)
else if(o){const t=ne(o,e.provider),n=V[e.provider]
Y=e,J(t,n,e.jSecure)}else if(a){const t=ne(a,e.provider),n=V[e.provider]
Y=e,J(t,n,e.jSecure)}else n(b.OTHER)})).catch((e=>{Z(),n(e)}))}))}z&&(window.onAuthenticationComplete=function(e,t){e?(Y.emailAddress=e,ee(Y).then((e=>{const{importTicketId:t}=e
t&&"function"==typeof X?X(e):"function"==typeof Q&&Q(b.IMPORT_ERROR_OTHER)})).catch((()=>{"function"==typeof Q&&Q(b.IMPORT_ERROR_OTHER)})).then((()=>Z()))):"function"==typeof Q&&Q({error:t}),Y.fireTrackingEventCallback(E.OAUTH_CALLBACK,{abookImportTransactionId:Y.abookImportTransactionId}),$=!0,Z()})
class ie extends T{constructor(e){super([new x,new j(e),new F(e),new B,new q({promise:e})],f.INPUT_EMAIL,e),this.CONSTANTS=r,this.validateEmailAndResolveDomain=H,this.importContactsFromNonOauthDomain=K,this.importContactsFromOauthDomain=re,this.openOauthPopup=te,this.closeOauthPopup=Z}}class oe extends T{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
const{promise:t,pageKey:n}=e
if(!n)throw new Error("PageKey is required")
super([new x,new j(t,{dashEnabled:!0,pageKey:n}),new F(t,{dashEnabled:!0,pageKey:n}),new B,new q({promise:t,dashEnabled:!0,pageKey:n})],f.INPUT_EMAIL,t),this.CONSTANTS=r,this.validateEmailAndResolveDomain=H,this.importContactsFromNonOauthDomain=K,this.importContactsFromOauthDomain=re,this.openOauthPopup=te,this.closeOauthPopup=Z}}},44837:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{AbuseFeaturesCollectionCoordinator:()=>c,CommonFeaturesAccessor:()=>s,fetchExtensions:()=>v,fireExtensionDetectedEvents:()=>b,isUserAgentChrome:()=>m})
var r,i,o=["DEPTH_BITS","webgl green bits","webgl max anisotropy","EXT_texture_filter_anisotropic","getExtension","WEBKIT_EXT_texture_filter_anisotropic","MAX_TEXTURE_MAX_ANISOTROPY_EXT","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture image units","webgl max texture size","MAX_TEXTURE_SIZE","webgl max varying vectors","MAX_VARYING_VECTORS","webgl max vertex attribs","MAX_VERTEX_ATTRIBS","webgl max vertex texture image units","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","webgl max viewport dims","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","SHADING_LANGUAGE_VERSION","webgl stencil bits","STENCIL_BITS","VENDOR","webgl version","webgl unmasked vendor","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","MEDIUM","precision","rangeMin","rangeMax","precision ","toLowerCase"," shader ","innerHTML","&nbsp;","className","adsbox","getElementsByClassName","languages","substr","windows phone","Windows Phone","win","Windows","android","linux","Linux","ipad","mac","Other","Android","iOS","pike","ipod","iphone","Mac","firefox","opera","opr","chrome","safari","Safari","Internet Explorer","toSource","getContext","WebGLRenderingContext","Microsoft Internet Explorer","swfobject","hasFlashPlayerVersion","9.0.0","addFlashDivNode","setAttribute","swfContainerId","___fp_swf_loaded","embedSWF","false","experimental-webgl","components","tsSeed","location","javascripts","productKey","productSub","cpuClassKey","oscpu","deviceMemory","vendor","doNotTrackKey","colorDepthKey","pixelRatioKey","screenResolution","screenOrientation","availableScreenResolution","sessionStorageKey","indexedDb","canvasKey","signals","touchSupport","networkInfo","battery","automation","mimetyps","jsFontsKey","getFeatures","Options not provided","excludes","key","alias","getData","shouldEnforceDataLimit","dataLimit","number","stringify","errors"," was found to be:","data","acq_time","latency","allFeatures","allFeaturesCollectionAt","requestIdleCallback","querySelector","nodeValue","parentNode","parse","cookie","bcookie","encode","btoa","fromCharCode","apply","importPk","atob","str2ab","importKey","SHA-256","wrap","spki","crypto","subtle","wrapKey","RSA-OAEP","wrapErrorResult","string","getRandomValues","AES-CBC","generateKey","decrypt","error","resolve","encryptWithKeyIds","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","encryptWithKey","encryptWithKeyFromDifferentSources","publicKeyVersion","publicKey","uuidv4","generateSha256HashOrDefault","digest","from","DNA","HUMAN","DFP_WEB","apfcDf","flash/compiled/FontList.swf","https://ponf.linkedin.com/pixel/tracking.png","/platform-telemetry/li/apfcDf","n/a","excluded","enabled","globalIntegration","complete","readyState","checkConfigAndInitializeThirdPartyIntegration","addEventListener","setting-headline","useRequestIdleCallBack","initialize","settings-iframe","load","checkConfigAndInitializeGlobalIntegration","initializeHumanIntegration","dfpIntegrationEnabled","apfcDfPK","triggerApfc","reentry","placePonfBeacon","reqid","pageInstance","isProd","fullFeatureCollection","apfcDfPKV","https://www.linkedin.com","https://www.linkedin-ei.com","setRequestHeader","Content-Type","application/json","send","telemetryCollectPath","intializeGlobalIntegration","intializeDfpIntegration","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","https://merchantpool1.linkedin.com/mdt.js?session_id=","script","src","dfpIframeScript","dfp","doFpt","head","Invalid session_id: ","treeId","PXdOjV695v","https://li.protechts.net/index.html?ts=","&r_id=","&app_id=","&d_id=","iframe","humanThirdPartyIframe","allow-same-origin allow-scripts","scraping","reentryGlobalIntegration",".linkedin.com","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","parseFromString","text/html","class","ponfUrl","protocol","searchParams","get","getElementById","charAt","substring","bc_context",".linkedin-ei.com","img","undefined","x64Multiply","x64LeftShift","x64Fmix","x64Xor","x64hash128","length","charCodeAt","x64Rotl","x64Add","00000000","toString","slice","each","forEach","prototype","hasOwnProperty","map","getIPs","RTCPeerConnection","mozRTCPeerConnection","msRTCPeerConnection","stun:stun.l.google.com:19302","exec","sdp","a=candidate:","indexOf","c=IN","keys","onicecandidate","candidate","iceGatheringState","createDataChannel","createOffer","setLocalDescription","automationKey","getHasLiedBrowser","undetected, fake browser","getBrowserNameAndVersion","split","Chrome","webdriver","Firefox","getAttribute","_Selenium_IDE_Recorder","Selenium","callPhantom","_phantom","NOT_AVAILABLE","webRtcKey","message","enumerateDevicesKey","mediaDevices","enumerateDevices","gid","groupId","kind","label","isEnumerateDevicesSupported","audioKey","audio","excludeIOS11","match","EXCLUDED","webkitOfflineAudioContext","createOscillator","type","triangle","frequency","setValueAtTime","currentTime","createDynamicsCompressor","threshold","knee","ratio","reduction","attack","function","connect","destination","start","startRendering","audioTimeout","timeout","oncomplete","renderedBuffer","getChannelData","reduce","disconnect","UserAgent","userAgent","languageKey","language","browserLanguage","systemLanguage","screen","colorDepth","deviceMemoryKey"," GB","pixelDepthKey","pixelDepth","screenResolutionKey","getScreenResolution","screenOrientationKey","detectScreenOrientation","Enabled","orientation","Orientation","msOrientation","mozOrientation","width","height","availableScreenResolutionKey","getAvailableScreenResolution","availWidth","availHeight","timezoneOffset","getTimezoneOffset","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","hasSessionStorage","localStorageKey","indexedDbKey","hasIndexedDB","addBehaviorKey","body","addBehavior","openDatabase","getNavigatorCpuClass","oscpuKey","appNameKey","appName","appVersionKey","appVersion","appCodeNameKey","appCodeName","seedKey","now","platformKey","getNavigatorPlatform","product","productSubKey","vendorKey","vendorSubKey","vendorSub","getDoNotTrack","incognitoKey","RequestFileSystem","webkitRequestFileSystem","TEMPORARY","storage","estimate","localStorage","test","removeItem","open","onerror","onsuccess","EDGE","indexedDB","PointerEvent","MSPointerEvent","IE ","join","replace","OPR","Opera","splice","isCanvasSupported","getCanvasFp","webglKey","isWebGlSupported","getWebglFp","javascriptsKey","scripts","locationKey","hash","host","hostname","href","origin","pathname","port","signalsKey","getSignals","getAdBlock","getHasLiedLanguages","getHasLiedResolution","getHasLiedOs","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","swfPath","loadSwfAndDetectFonts","missing options.fonts.swfPath","monospace","sans-serif","serif","Andale Mono","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 MS","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Lucida Calligraphy","Lucida Console","Lucida Fax","Lucida Handwriting","Lucida Sans Typewriter","Lucida Sans Unicode","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Sans Serif","MS Serif","Palatino","Palatino Linotype","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","concat","extendedJsFonts","userDefinedFonts","filter","getElementsByTagName","createElement","div","span","style","position","absolute","left","-9999px","fontSize","72px","fontStyle","normal","fontWeight","lineBreak","auto","lineHeight","textTransform","none","textShadow","whiteSpace","wordBreak","wordSpacing","mmmmmmmmmmlli","fontFamily","offsetWidth","offsetHeight","appendChild","push","removeChild","fontsHash","mimetypesComponent","mimeTypes","suffixes","description","pluginsComponent","isIE","plugins","excludeIE","getIEPlugins","getRegularPlugins","pluginsShouldBeSorted","sort","name","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","Skype.Detection","TDCCtl.TDCCtl","ERROR","batteryKey","getBattery","then","level","charging","chargingTime","dischargingTime","networkInfoKey","connection","downlink","downlinkMax","effectiveType","rtt","saveData","touchSupportKey","getTouchSupport","hardwareConcurrencyKey","getHardwareConcurrency","sessionStorage","hasLocalStorage","hardwareConcurrency","cpuClass","platform","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","ontouchstart","canvas","display","inline","rect","canvasWinding","isPointInPath","evenodd","alphabetic","fillStyle","dontUseFakeFontInCanvas","font","11pt Arial","fillText","rgba(102, 204, 0, 0.2)","18pt Arial","Cwm fjordbank glyphs vext quiz, 😃","globalCompositeOperation","multiply","rgb(255,0,255)","beginPath","arc","closePath","rgb(0,255,255)","fill","toDataURL","canvasHash","clearColor","enable","DEPTH_TEST","depthFunc","LEQUAL","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","getWebglCanvas","createBuffer","ARRAY_BUFFER","bufferData","itemSize","numItems","createProgram","VERTEX_SHADER","shaderSource","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","createShader","FRAGMENT_SHADER","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","compileShader","attachShader","linkProgram","vertexPosAttrib","getAttribLocation","attrVertex","offsetUniform","vertexAttribPointer","FLOAT","uniform2f","drawArrays","TRIANGLE_STRIP","webglHash","webgl","hashOnly","vendorAndRenderer","getWebglVendorAndRenderer","webgl aliased line width range","getParameter","ALIASED_LINE_WIDTH_RANGE","webgl aliased point size range","ALPHA_BITS","getContextAttributes","yes","BLUE_BITS","webgl depth bits"]
r=o,i=260,function(e){for(;--e;)r.push(r.shift())}(++i)
var a=function(e,t){return o[e-=0]}
!function(){class e{static x64Add(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]]
const 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]]}static[a("0x0")](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]]
const 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]]}static x64Rotl(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])}static[a("0x1")](e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}static x64Xor(e,t){return[e[0]^t[0],e[1]^t[1]]}static[a("0x2")](t){return t=e[a("0x3")](t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e[a("0x0")](t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}static[a("0x4")](t,n){n=n||0
const r=(t=t||"")[a("0x5")]%16,i=t.length-r
let o=[0,n],s=[0,n],c=[0,0],u=[0,0]
const l=[2277735313,289559509],d=[1291169091,658871167]
let f
for(f=0;f<i;f+=16)c=[255&t.charCodeAt(f+4)|(255&t[a("0x6")](f+5))<<8|(255&t.charCodeAt(f+6))<<16|(255&t[a("0x6")](f+7))<<24,255&t[a("0x6")](f)|(255&t.charCodeAt(f+1))<<8|(255&t[a("0x6")](f+2))<<16|(255&t[a("0x6")](f+3))<<24],u=[255&t[a("0x6")](f+12)|(255&t[a("0x6")](f+13))<<8|(255&t[a("0x6")](f+14))<<16|(255&t[a("0x6")](f+15))<<24,255&t[a("0x6")](f+8)|(255&t.charCodeAt(f+9))<<8|(255&t[a("0x6")](f+10))<<16|(255&t[a("0x6")](f+11))<<24],c=e.x64Multiply(c,l),c=e[a("0x7")](c,31),c=e[a("0x0")](c,d),o=e[a("0x3")](o,c),o=e[a("0x7")](o,27),o=e[a("0x8")](o,s),o=e.x64Add(e[a("0x0")](o,[0,5]),[0,1390208809]),u=e[a("0x0")](u,d),u=e.x64Rotl(u,33),u=e[a("0x0")](u,l),s=e[a("0x3")](s,u),s=e.x64Rotl(s,31),s=e[a("0x8")](s,o),s=e.x64Add(e[a("0x0")](s,[0,5]),[0,944331445])
switch(c=[0,0],u=[0,0],r){case 15:u=e[a("0x3")](u,e[a("0x1")]([0,t[a("0x6")](f+14)],48))
case 14:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(f+13)],40))
case 13:u=e[a("0x3")](u,e[a("0x1")]([0,t[a("0x6")](f+12)],32))
case 12:u=e[a("0x3")](u,e.x64LeftShift([0,t.charCodeAt(f+11)],24))
case 11:u=e.x64Xor(u,e[a("0x1")]([0,t.charCodeAt(f+10)],16))
case 10:u=e[a("0x3")](u,e[a("0x1")]([0,t[a("0x6")](f+9)],8))
case 9:u=e[a("0x3")](u,[0,t.charCodeAt(f+8)]),u=e[a("0x0")](u,d),u=e[a("0x7")](u,33),u=e.x64Multiply(u,l),s=e[a("0x3")](s,u)
case 8:c=e[a("0x3")](c,e[a("0x1")]([0,t[a("0x6")](f+7)],56))
case 7:c=e[a("0x3")](c,e[a("0x1")]([0,t[a("0x6")](f+6)],48))
case 6:c=e[a("0x3")](c,e[a("0x1")]([0,t[a("0x6")](f+5)],40))
case 5:c=e.x64Xor(c,e[a("0x1")]([0,t[a("0x6")](f+4)],32))
case 4:c=e[a("0x3")](c,e[a("0x1")]([0,t[a("0x6")](f+3)],24))
case 3:c=e.x64Xor(c,e.x64LeftShift([0,t[a("0x6")](f+2)],16))
case 2:c=e[a("0x3")](c,e[a("0x1")]([0,t.charCodeAt(f+1)],8))
case 1:c=e[a("0x3")](c,[0,t[a("0x6")](f)]),c=e[a("0x0")](c,l),c=e.x64Rotl(c,31),c=e[a("0x0")](c,d),o=e[a("0x3")](o,c)}return o=e[a("0x3")](o,[0,t[a("0x5")]]),s=e[a("0x3")](s,[0,t[a("0x5")]]),o=e.x64Add(o,s),s=e[a("0x8")](s,o),o=e[a("0x2")](o),s=e[a("0x2")](s),o=e[a("0x8")](o,s),s=e[a("0x8")](s,o),(a("0x9")+(o[0]>>>0)[a("0xa")](16))[a("0xb")](-8)+(a("0x9")+(o[1]>>>0)[a("0xa")](16))[a("0xb")](-8)+("00000000"+(s[0]>>>0)[a("0xa")](16))[a("0xb")](-8)+(a("0x9")+(s[1]>>>0)[a("0xa")](16))[a("0xb")](-8)}}class t{static[a("0xc")](e,t){if(Array.prototype[a("0xd")]&&e.forEach===Array[a("0xe")][a("0xd")])e[a("0xd")](t)
else if(e.length===+e[a("0x5")])for(let n=0,r=e.length;n<r;n++)t(e[n],n,e)
else for(let n in e)e[a("0xf")](n)&&t(e[n],n,e)}static[a("0x10")](e,n){let r=[]
return null==e?r:Array.prototype[a("0x10")]&&e[a("0x10")]===Array[a("0xe")].map?e.map(n):(t[a("0xc")](e,(function(e,t,i){r.push(n(e,t,i))})),r)}static[a("0x11")](e,t){let n={},r=new(window[a("0x12")]||window.webkitRTCPeerConnection||window[a("0x13")]||window[a("0x14")])({iceServers:[{urls:a("0x15")}]},{optional:[{RtpDataChannels:!0}]})
const i=function(e){if(null!==e)try{const t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/[a("0x16")](e)[1]
n[t]=!0}catch(e){}}
let o=!1
const s=function(){if(!0===o)return
o=!0
const e=r.localDescription
null!==e&&e[a("0x17")].split("\n")[a("0xd")]((function(e){0!==e.indexOf(a("0x18"))&&0!==e[a("0x19")](a("0x1a"))||i(e)})),t(Object[a("0x1b")](n))}
r[a("0x1c")]=function(e){e[a("0x1d")]&&i(e[a("0x1d")].candidate)},r.onicegatheringstatechange=function(e){"complete"===r[a("0x1e")]&&s()},r[a("0x1f")]("bl")
try{r[a("0x20")]().then((function(e){r.setLocalDescription(e)}))}catch(e){r[a("0x20")]((function(e){r[a("0x21")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){s()}),2e3)}static[a("0x22")](e,n){if(t[a("0x23")]())return void e(a("0x24"))
const r=t[a("0x25")]()[a("0x26")](" ")[0]
a("0x27")!==r||!0!==navigator[a("0x28")]?a("0x29")===r&&window.document.documentElement[a("0x2a")]("webdriver")||a("0x2b")in window||"__webdriver_script_fn"in document?e(a("0x2c")):window[a("0x2d")]||window[a("0x2e")]?e("PhantomJS"):e(n[a("0x2f")]):e(a("0x2c"))}static[a("0x30")](e,n){try{t[a("0x11")](n,(t=>{e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t[a("0x31")]}})}}static[a("0x32")](e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE)
navigator[a("0x33")][a("0x34")]().then((function(t){e(t[a("0x10")]((function(e){let t={}
return t.id=e.deviceId,t[a("0x35")]=e[a("0x36")],t[a("0x37")]=e[a("0x37")],t[a("0x38")]=e.label,t})))})).catch((function(t){e(t)}))}static[a("0x39")](){return navigator[a("0x33")]&&navigator[a("0x33")][a("0x34")]}static[a("0x3a")](e,n){let r=n[a("0x3b")]
if(r[a("0x3c")]&&navigator.userAgent[a("0x3d")](/OS 11.+Version\/11.+Safari/))return e(n[a("0x3e")])
const i=window.OfflineAudioContext||window[a("0x3f")]
if(null==i)return e(n.NOT_AVAILABLE)
let o=new i(1,44100,44100),s=o[a("0x40")]()
s[a("0x41")]=a("0x42"),s[a("0x43")][a("0x44")](1e4,o[a("0x45")])
let c=o[a("0x46")]()
t[a("0xc")]([[a("0x47"),-50],[a("0x48"),40],[a("0x49"),12],[a("0x4a"),-20],[a("0x4b"),0],["release",.25]],(function(e){void 0!==c[e[0]]&&a("0x4c")==typeof c[e[0]][a("0x44")]&&c[e[0]][a("0x44")](e[1],o[a("0x45")])})),s[a("0x4d")](c),c.connect(o[a("0x4e")]),s[a("0x4f")](0),o[a("0x50")]()
let u=setTimeout((function(){return o.oncomplete=function(){},o=null,e(a("0x51"))}),r[a("0x52")])
o[a("0x53")]=function(t){let n
try{clearTimeout(u),n=t[a("0x54")][a("0x55")](0)[a("0xb")](4500,5e3)[a("0x56")]((function(e,t){return e+Math.abs(t)}),0)[a("0xa")](),s.disconnect(),c[a("0x57")]()}catch(t){return void e(t)}e(n)}}static[a("0x58")](e){e(navigator[a("0x59")])}static[a("0x28")](e,t){e(void 0===navigator[a("0x28")]||null===navigator.webdriver?t[a("0x2f")]:navigator[a("0x28")])}static[a("0x5a")](e,t){e(navigator[a("0x5b")]||navigator.userLanguage||navigator[a("0x5c")]||navigator[a("0x5d")]||t[a("0x2f")])}static colorDepthKey(e,t){e(window[a("0x5e")][a("0x5f")]||t[a("0x2f")])}static[a("0x60")](e,t){let n=navigator.deviceMemory||t[a("0x2f")]
n!==t[a("0x2f")]&&(n+=a("0x61")),e(n)}static[a("0x62")](e,t){e(window[a("0x5e")][a("0x63")]||t[a("0x2f")])}static pixelRatioKey(e,t){e(window.devicePixelRatio||t[a("0x2f")])}static[a("0x64")](e,n){e(t[a("0x65")](n))}static[a("0x66")](e,t){if(!t[a("0x5e")][a("0x67")])return void e(t[a("0x3e")])
let n={}
n[a("0x68")]=void 0!==screen[a("0x69")],n[a("0x6a")]=screen[a("0x6b")]||screen[a("0x6c")]||(screen[a("0x69")]||{})[a("0x41")],e(n)}static[a("0x65")](){return{w:window.screen[a("0x6d")],h:window.screen[a("0x6e")]}}static[a("0x6f")](e,n){e(t[a("0x70")](n))}static[a("0x70")](e){return window[a("0x5e")][a("0x71")]&&window.screen[a("0x72")]?{w:window[a("0x5e")][a("0x71")],h:window[a("0x5e")].availHeight}:e[a("0x2f")]}static[a("0x73")](e){e((new Date)[a("0x74")]()/60)}static[a("0x75")](e,t){window[a("0x76")]&&window[a("0x76")][a("0x77")]?e((new(window[a("0x76")][a("0x77")]))[a("0x78")]()[a("0x79")]):e(t.NOT_AVAILABLE)}static sessionStorageKey(e,n){e(t[a("0x7a")](n))}static[a("0x7b")](e,n){e(t.hasLocalStorage(n))}static[a("0x7c")](e,n){e(t[a("0x7d")](n))}static[a("0x7e")](e){e(!(!document.body||!document[a("0x7f")][a("0x80")]))}static openDatabaseKey(e){e(!!window[a("0x81")])}static cpuClassKey(e,n){e(t[a("0x82")](n))}static[a("0x83")](e,t){e(navigator.oscpu||t[a("0x2f")])}static[a("0x84")](e,t){e(navigator[a("0x85")]||t[a("0x2f")])}static[a("0x86")](e,t){e(navigator[a("0x87")]||t.NOT_AVAILABLE)}static[a("0x88")](e,t){e(navigator[a("0x89")]||t[a("0x2f")])}static[a("0x8a")](e,t){e(Date[a("0x8b")]())}static[a("0x8c")](e,n){e(t[a("0x8d")](n))}static productKey(e,t){e(navigator[a("0x8e")]||t[a("0x2f")])}static[a("0x8f")](e,t){e(navigator.productSub||t[a("0x2f")])}static[a("0x90")](e,t){e(navigator.vendor||t[a("0x2f")])}static[a("0x91")](e,t){e(navigator[a("0x92")]||t.NOT_AVAILABLE)}static doNotTrackKey(e,n){e(t[a("0x93")](n))}static[a("0x94")](e,n){const r=t[a("0x25")]()[a("0x26")](" "),i=r[0],o=r[1]
let s=n.NOT_AVAILABLE
if(a("0x27")===i)if(parseInt(o)<=74){const t=window[a("0x95")]||window[a("0x96")]
t?t(window[a("0x97")],100,(function(t){e(!1)}),(function(t){e(!0)})):e(s)}else a("0x98")in navigator&&a("0x99")in navigator[a("0x98")]?navigator[a("0x98")].estimate().then((function(t){const n=t.quota
s=n<125829120,e(s)})):e(s)
else if("Safari"===i){if(s=!1,window.safariIncognito)s=!0
else{try{window[a("0x81")](null,null,null,null)}catch(e){s=!0}try{window[a("0x9a")].setItem(a("0x9b"),1)}catch(e){s=!0}}void 0===s&&(s=!1,window.localStorage[a("0x9c")](a("0x9b"))),e(s)}else if(a("0x29")===i){let t=indexedDB[a("0x9d")]("test")
t[a("0x9e")]=function(){e(!0)},t[a("0x9f")]=function(){e(!1)}}else e("IE"===i||a("0xa0")===i?!window[a("0xa1")]&&(window[a("0xa2")]||window[a("0xa3")]):s)}static[a("0x25")](){let e,t=navigator[a("0x59")],n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i[a("0x9b")](n[1])?(e=/\brv[ :]+(\d+)/g[a("0x16")](t)||[],a("0xa4")+(e[1]||"")):"Chrome"===n[1]&&(e=t[a("0x3d")](/\b(OPR|Edge)\/(\d+)/),null!=e)?e[a("0xb")](1)[a("0xa5")](" ")[a("0xa6")](a("0xa7"),a("0xa8")):(n=n[2]?[n[1],n[2]]:[navigator[a("0x85")],navigator[a("0x87")],"-?"],e=t[a("0x3d")](/version\/(\d+)/i),null!=e&&n[a("0xa9")](1,1,e[1]),n[a("0xa5")](" "))}static canvasKey(e,n){t[a("0xaa")]()?e(t[a("0xab")](n)):e(n[a("0x2f")])}static[a("0xac")](e,n){t[a("0xad")]()?e(t[a("0xae")](n)):e(n.NOT_AVAILABLE)}static[a("0xaf")](e,t){if(void 0===document[a("0xb0")]||null===document.scripts)return e(t[a("0x2f")])
e([])}static[a("0xb1")](e,t){e({hash:location[a("0xb2")]||t[a("0x2f")],host:location[a("0xb3")]||t[a("0x2f")],hostname:location[a("0xb4")]||t[a("0x2f")],href:location[a("0xb5")]||t[a("0x2f")],origin:location[a("0xb6")]||t[a("0x2f")],pathname:location[a("0xb7")]||t[a("0x2f")],port:location[a("0xb8")]||t[a("0x2f")],protocol:location.protocol||t.NOT_AVAILABLE})}static[a("0xb9")](e){e(t.getSignals())}static[a("0xba")](){const e={adBlockInstalled:function(){return t[a("0xbb")]()},liedLanguages:function(){return t[a("0xbc")]()},liedResolution:function(){return t[a("0xbd")]()},liedOS:function(){return t[a("0xbe")]()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={}
for(const t in e)if(e.hasOwnProperty(t)){const r=e[t]
n[t]=r(t)}return n}static[a("0xbf")](e,n){return t[a("0xc0")]()?t[a("0xc1")]()?n[a("0xc2")][a("0xc3")]?void t[a("0xc4")]((function(t){e(t)}),n):e(a("0xc5")):e("flash not installed"):e("swf object not loaded")}static jsFontsKey(t,n){const r=[a("0xc6"),a("0xc7"),a("0xc8")]
let i=[a("0xc9"),"Arial",a("0xca"),a("0xcb"),a("0xcc"),a("0xcd"),a("0xce"),a("0xcf"),a("0xd0"),a("0xd1"),a("0xd2"),a("0xd3"),a("0xd4"),a("0xd5"),a("0xd6"),a("0xd7"),a("0xd8"),"Comic Sans",a("0xd9"),"Consolas",a("0xda"),a("0xdb"),a("0xdc"),a("0xdd"),a("0xde"),a("0xdf"),"Impact","Lucida Bright",a("0xe0"),a("0xe1"),a("0xe2"),"LUCIDA GRANDE",a("0xe3"),"Lucida Sans",a("0xe4"),a("0xe5"),"Microsoft Sans Serif","Monaco",a("0xe6"),a("0xe7"),a("0xe8"),a("0xe9"),"MS Reference Sans Serif",a("0xea"),a("0xeb"),"MYRIAD","MYRIAD PRO",a("0xec"),a("0xed"),"Segoe Print",a("0xee"),"Segoe UI",a("0xef"),a("0xf0"),a("0xf1"),a("0xf2"),a("0xf3"),a("0xf4"),a("0xf5"),a("0xf6"),a("0xf7"),a("0xf8"),a("0xf9"),"Wingdings 3"]
void 0!==n[a("0xc2")]&&void 0!==n[a("0xc2")].extendedJsFonts&&(i=i[a("0xfa")](n[a("0xc2")][a("0xfb")])),void 0!==n[a("0xc2")]&&void 0!==n[a("0xc2")][a("0xfc")]&&(i=i[a("0xfa")](n.fonts[a("0xfc")])),i=i[a("0xfd")]((function(e,t){return i.indexOf(e)===t}))
const o=document[a("0xfe")]("body")[0],s=document[a("0xff")](a("0x100")),c=document[a("0xff")]("div"),u={},l={},d=function(){const e=document.createElement(a("0x101"))
return e[a("0x102")][a("0x103")]=a("0x104"),e.style[a("0x105")]=a("0x106"),e[a("0x102")][a("0x107")]=a("0x108"),e.style[a("0x109")]=a("0x10a"),e[a("0x102")][a("0x10b")]=a("0x10a"),e[a("0x102")].letterSpacing="normal",e[a("0x102")][a("0x10c")]=a("0x10d"),e[a("0x102")][a("0x10e")]=a("0x10a"),e.style[a("0x10f")]=a("0x110"),e[a("0x102")].textAlign=a("0x105"),e[a("0x102")].textDecoration="none",e.style[a("0x111")]=a("0x110"),e.style[a("0x112")]=a("0x10a"),e[a("0x102")][a("0x113")]=a("0x10a"),e.style[a("0x114")]=a("0x10a"),e.textContent=a("0x115"),e},f=function(e,t){const n=d()
return n[a("0x102")][a("0x116")]="'"+e+"',"+t,n},h=function(e){let t=!1
for(let n=0;n<r[a("0x5")];n++)if(t=e[n][a("0x117")]!==u[r[n]]||e[n][a("0x118")]!==l[r[n]],t)return t
return t},p=function(){const e=[]
for(let t=0,n=r[a("0x5")];t<n;t++){const n=d()
n[a("0x102")][a("0x116")]=r[t],s[a("0x119")](n),e.push(n)}return e}()
o[a("0x119")](s)
for(let e=0,t=r[a("0x5")];e<t;e++)u[r[e]]=p[e][a("0x117")],l[r[e]]=p[e].offsetHeight
const g=function(){const e={}
for(let t=0,n=i[a("0x5")];t<n;t++){const n=[]
for(let e=0,o=r[a("0x5")];e<o;e++){const o=f(i[t],r[e])
c.appendChild(o),n.push(o)}e[i[t]]=n}return e}()
o.appendChild(c)
const m=[]
for(let e=0,t=i[a("0x5")];e<t;e++)h(g[i[e]])&&m[a("0x11a")](i[e])
o[a("0x11b")](c),o[a("0x11b")](s)
const v={}
v[a("0x11c")]=e[a("0x4")](m[a("0xa5")](),23),n[a("0xc2")].hashOnly||(v.lists=m),t(v)}static[a("0x11d")](e,t){if(void 0===navigator.mimeTypes||null===navigator[a("0x11e")])return void e(t.NOT_AVAILABLE)
const n=navigator[a("0x11e")],r=[]
for(let e=0;e<n[a("0x5")];e++){const t={}
t[a("0x41")]=n[e][a("0x41")],t[a("0x11f")]=n[e][a("0x11f")],t[a("0x120")]=n[e][a("0x120")],r.push(t)}e(r)}static[a("0x121")](e,n){t[a("0x122")]()?n[a("0x123")][a("0x124")]?e(n[a("0x3e")]):e(t[a("0x125")](n)):e(t[a("0x126")](n))}static getRegularPlugins(e){if(void 0===navigator[a("0x123")]||null===navigator[a("0x123")])return e.NOT_AVAILABLE
let n=[]
for(let e=0,t=navigator[a("0x123")][a("0x5")];e<t;e++)navigator[a("0x123")][e]&&n[a("0x11a")](navigator.plugins[e])
return n[a("0x5")]>0&&t[a("0x127")](e)&&(n=n[a("0x128")]((function(e,t){return e[a("0x129")]>t[a("0x129")]?1:e[a("0x129")]<t[a("0x129")]?-1:0}))),t[a("0x10")](n,(function(e){const n=t[a("0x10")](e,(function(e){return[e[a("0x41")],e[a("0x11f")]]}))
return[e.name,e[a("0x120")],n]}))}static[a("0x125")](e){let n=[]
if(Object[a("0x12a")]&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||a("0x12b")in window){const r=[a("0x12c"),a("0x12d"),"AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1",a("0x12e"),a("0x12f"),"Msxml2.XMLHTTP",a("0x130"),a("0x131"),a("0x132"),a("0x133"),a("0x134"),"RealVideo.RealVideo(tm) ActiveX Control (32-bit)",a("0x135"),a("0x136"),a("0x137"),"ShockwaveFlash.ShockwaveFlash",a("0x138"),a("0x139"),"WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"]
n=t[a("0x10")](r,(function(t){try{return new(window[a("0x12b")])(t),t}catch(t){return e[a("0x13a")]}}))}else n[a("0x11a")](e.NOT_AVAILABLE)
return navigator[a("0x123")]&&(n=n[a("0xfa")](t.getRegularPlugins(e))),n}static[a("0x127")](e){let t=!1
for(let n=0,r=e[a("0x123")].sortPluginsFor[a("0x5")];n<r;n++){const r=e[a("0x123")].sortPluginsFor[n]
if(navigator[a("0x59")][a("0x3d")](r)){t=!0
break}}return t}static[a("0x13b")](e,t){void 0!==navigator[a("0x13c")]?navigator[a("0x13c")]()[a("0x13d")]((function(t){const n={}
n[a("0x13e")]=t[a("0x13e")],n[a("0x13f")]=t[a("0x13f")],n.chargingTime=t[a("0x140")],n[a("0x141")]=t.dischargingTime,e(n)})):e(t[a("0x2f")])}static[a("0x142")](e,t){const n=navigator[a("0x143")]
e(void 0!==n?{downlink:n[a("0x144")],downlinkMax:n[a("0x145")],type:n[a("0x41")],effectiveType:n[a("0x146")],rtt:n[a("0x147")],saveData:n[a("0x148")]}:t.NOT_AVAILABLE)}static[a("0x149")](e){e(t[a("0x14a")]())}static[a("0x14b")](e,n){e(t[a("0x14c")](n))}static[a("0x7a")](e){try{return!!window[a("0x14d")]}catch(t){return e[a("0x13a")]}}static[a("0x14e")](e){try{return!!window[a("0x9a")]}catch(t){return e[a("0x13a")]}}static[a("0x7d")](e){try{return!!window.indexedDB}catch(t){return e.ERROR}}static getHardwareConcurrency(e){return navigator[a("0x14f")]?navigator.hardwareConcurrency:e[a("0x2f")]}static[a("0x82")](e){return navigator[a("0x150")]||e[a("0x2f")]}static[a("0x8d")](e){return navigator[a("0x151")]?navigator[a("0x151")]:e[a("0x2f")]}static[a("0x93")](e){return navigator[a("0x152")]?navigator.doNotTrack:navigator[a("0x153")]?navigator.msDoNotTrack:window[a("0x152")]?window[a("0x152")]:e[a("0x2f")]}static[a("0x14a")](){let e,t=0
void 0!==navigator[a("0x154")]?t=navigator.maxTouchPoints:void 0!==navigator[a("0x155")]&&(t=navigator[a("0x155")])
try{document[a("0x156")]("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:a("0x157")in window}}static[a("0xab")](t){const n={},r=document[a("0xff")](a("0x158"))
r[a("0x6d")]=2e3,r[a("0x6e")]=200,r.style[a("0x159")]=a("0x15a")
const i=r.getContext("2d")
return i.rect(0,0,10,10),i[a("0x15b")](2,2,6,6),n[a("0x15c")]=!1===i[a("0x15d")](5,5,a("0x15e"))?"yes":"no",i.textBaseline=a("0x15f"),i[a("0x160")]="#f60",i.fillRect(125,1,62,20),i[a("0x160")]="#069",t[a("0x161")]?i[a("0x162")]=a("0x163"):i.font="11pt no-real-font-123",i[a("0x164")]("Cwm fjordbank glyphs vext quiz, 😃",2,15),i[a("0x160")]=a("0x165"),i[a("0x162")]=a("0x166"),i.fillText(a("0x167"),4,45),i[a("0x168")]=a("0x169"),i[a("0x160")]=a("0x16a"),i[a("0x16b")](),i[a("0x16c")](50,50,50,0,2*Math.PI,!0),i[a("0x16d")](),i.fill(),i.fillStyle=a("0x16e"),i[a("0x16b")](),i[a("0x16c")](100,50,50,0,2*Math.PI,!0),i[a("0x16d")](),i[a("0x16f")](),i.fillStyle="rgb(255,255,0)",i.beginPath(),i[a("0x16c")](75,100,50,0,2*Math.PI,!0),i[a("0x16d")](),i[a("0x16f")](),i[a("0x160")]=a("0x16a"),i[a("0x16c")](75,75,75,0,2*Math.PI,!0),i[a("0x16c")](75,75,25,0,2*Math.PI,!0),i[a("0x16f")](a("0x15e")),r[a("0x170")]&&(n[a("0x171")]=e[a("0x4")](r[a("0x170")](),23)),n}static[a("0xae")](n){let r
const i=function(e){return r[a("0x172")](0,0,0,1),r[a("0x173")](r[a("0x174")]),r[a("0x175")](r[a("0x176")]),r.clear(r[a("0x177")]|r[a("0x178")]),"["+e[0]+", "+e[1]+"]"}
if(r=t[a("0x179")](),!r)return null
const o={},s=r[a("0x17a")]()
r.bindBuffer(r[a("0x17b")],s)
const c=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
r[a("0x17c")](r[a("0x17b")],c,r.STATIC_DRAW),s[a("0x17d")]=3,s[a("0x17e")]=3
const u=r[a("0x17f")](),l=r.createShader(r[a("0x180")])
r[a("0x181")](l,a("0x182")),r.compileShader(l)
const d=r[a("0x183")](r[a("0x184")])
r[a("0x181")](d,a("0x185")),r[a("0x186")](d),r[a("0x187")](u,l),r[a("0x187")](u,d),r[a("0x188")](u),r.useProgram(u),u[a("0x189")]=r[a("0x18a")](u,a("0x18b")),u[a("0x18c")]=r.getUniformLocation(u,"uniformOffset"),r.enableVertexAttribArray(u.vertexPosArray),r[a("0x18d")](u[a("0x189")],s[a("0x17d")],r[a("0x18e")],!1,0,0),r[a("0x18f")](u[a("0x18c")],1,1),r[a("0x190")](r[a("0x191")],0,s.numItems)
try{o[a("0x192")]=e[a("0x4")](r[a("0x158")].toDataURL(),23)}catch(e){}if(n[a("0x193")][a("0x194")])return o
o[a("0x195")]=t[a("0x196")](),o.extensions=r.getSupportedExtensions()||[],o[a("0x197")]=i(r[a("0x198")](r[a("0x199")])),o[a("0x19a")]=i(r[a("0x198")](r.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=r.getParameter(r[a("0x19b")]),o["webgl antialiasing"]=r[a("0x19c")]().antialias?a("0x19d"):"no",o["webgl blue bits"]=r[a("0x198")](r[a("0x19e")]),o[a("0x19f")]=r[a("0x198")](r[a("0x1a0")]),o[a("0x1a1")]=r[a("0x198")](r.GREEN_BITS),o[a("0x1a2")]=function(e){const t=e.getExtension(a("0x1a3"))||e[a("0x1a4")](a("0x1a5"))||e.getExtension("MOZ_EXT_texture_filter_anisotropic")
if(t){let n=e[a("0x198")](t[a("0x1a6")])
return 0===n&&(n=2),n}return null}(r),o[a("0x1a7")]=r[a("0x198")](r[a("0x1a8")]),o["webgl max cube map texture size"]=r[a("0x198")](r[a("0x1a9")]),o[a("0x1aa")]=r.getParameter(r[a("0x1ab")]),o[a("0x1ac")]=r[a("0x198")](r[a("0x1ad")]),o[a("0x1ae")]=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),o[a("0x1af")]=r.getParameter(r[a("0x1b0")]),o[a("0x1b1")]=r.getParameter(r[a("0x1b2")]),o[a("0x1b3")]=r[a("0x198")](r[a("0x1b4")]),o[a("0x1b5")]=r[a("0x198")](r[a("0x1b6")]),o["webgl max vertex uniform vectors"]=r.getParameter(r[a("0x1b7")]),o[a("0x1b8")]=i(r[a("0x198")](r[a("0x1b9")])),o[a("0x1ba")]=r[a("0x198")](r[a("0x1bb")]),o[a("0x1bc")]=r[a("0x198")](r.RENDERER),o["webgl shading language version"]=r[a("0x198")](r[a("0x1bd")]),o[a("0x1be")]=r.getParameter(r[a("0x1bf")]),o["webgl vendor"]=r.getParameter(r[a("0x1c0")]),o[a("0x1c1")]=r.getParameter(r.VERSION)
try{const e=r[a("0x1a4")]("WEBGL_debug_renderer_info")
e&&(o[a("0x1c2")]=r[a("0x198")](e[a("0x1c3")]),o[a("0x1c4")]=r[a("0x198")](e[a("0x1c5")]))}catch(e){}return r[a("0x1c6")]?(t[a("0xc")]([a("0x18e"),a("0x1c7")],(function(e){t[a("0xc")]([a("0x1c8"),a("0x1c9")],(function(n){t[a("0xc")]([a("0x1ca"),a("0x1cb"),"LOW"],(function(i){t.each([a("0x1cc"),a("0x1cd"),a("0x1ce")],(function(t){const s=r.getShaderPrecisionFormat(r[n+"_SHADER"],r[i+"_"+e])[t]
a("0x1cc")!==t&&(t=a("0x1cf")+t)
const c=["webgl ",n[a("0x1d0")](),a("0x1d1"),i.toLowerCase()," ",e[a("0x1d0")]()," ",t][a("0xa5")]("")
o[c]=s}))}))}))})),o):o}static[a("0x196")](){try{const e=t[a("0x179")](),n=e[a("0x1a4")]("WEBGL_debug_renderer_info")
return e[a("0x198")](n[a("0x1c3")])+"~"+e[a("0x198")](n[a("0x1c5")])}catch(e){return null}}static[a("0xbb")](){const e=document.createElement(a("0x100"))
e[a("0x1d2")]=a("0x1d3"),e[a("0x1d4")]=a("0x1d5")
let t=!1
try{document.body.appendChild(e),t=0===document[a("0x1d6")](a("0x1d5"))[0][a("0x118")],document[a("0x7f")][a("0x11b")](e)}catch(e){t=!1}return t}static[a("0xbc")](){if(void 0!==navigator[a("0x1d7")])try{if(navigator.languages[0][a("0x1d8")](0,2)!==navigator[a("0x5b")].substr(0,2))return!0}catch(e){return!0}return!1}static[a("0xbd")](){return window[a("0x5e")][a("0x6d")]<window.screen.availWidth||window[a("0x5e")][a("0x6e")]<window[a("0x5e")][a("0x72")]}static getHasLiedOs(){const e=navigator[a("0x59")].toLowerCase()
let t=navigator.oscpu
const n=navigator[a("0x151")][a("0x1d0")]()
let r
if(r=e[a("0x19")](a("0x1d9"))>=0?a("0x1da"):e.indexOf(a("0x1db"))>=0?a("0x1dc"):e[a("0x19")](a("0x1dd"))>=0?"Android":e[a("0x19")](a("0x1de"))>=0||e[a("0x19")]("cros")>=0?a("0x1df"):e[a("0x19")]("iphone")>=0||e[a("0x19")](a("0x1e0"))>=0?"iOS":e[a("0x19")](a("0x1e1"))>=0?"Mac":a("0x1e2"),(a("0x157")in window||navigator[a("0x154")]>0||navigator[a("0x155")]>0)&&a("0x1da")!==r&&a("0x1e3")!==r&&a("0x1e4")!==r&&a("0x1e2")!==r)return!0
if(void 0!==t){if(t=t.toLowerCase(),t.indexOf(a("0x1db"))>=0&&"Windows"!==r&&a("0x1da")!==r)return!0
if(t[a("0x19")](a("0x1de"))>=0&&a("0x1df")!==r&&a("0x1e3")!==r)return!0
if(t[a("0x19")]("mac")>=0&&"Mac"!==r&&"iOS"!==r)return!0
if((-1===t.indexOf(a("0x1db"))&&-1===t[a("0x19")]("linux")&&-1===t.indexOf(a("0x1e1")))!=(a("0x1e2")===r))return!0}return n[a("0x19")]("win")>=0&&a("0x1dc")!==r&&a("0x1da")!==r||(n.indexOf("linux")>=0||n.indexOf(a("0x1dd"))>=0||n[a("0x19")](a("0x1e5"))>=0)&&a("0x1df")!==r&&a("0x1e3")!==r||(n.indexOf(a("0x1e1"))>=0||n[a("0x19")](a("0x1e0"))>=0||n[a("0x19")](a("0x1e6"))>=0||n[a("0x19")](a("0x1e7"))>=0)&&a("0x1e8")!==r&&a("0x1e4")!==r||(n[a("0x19")](a("0x1db"))<0&&n.indexOf(a("0x1de"))<0&&n[a("0x19")](a("0x1e1"))<0&&n.indexOf(a("0x1e7"))<0&&n[a("0x19")](a("0x1e0"))<0)!=("Other"===r)||void 0===navigator.plugins&&"Windows"!==r&&a("0x1da")!==r}static getHasLiedBrowser(){const e=navigator[a("0x59")][a("0x1d0")](),t=navigator.productSub
let n
if(n=e[a("0x19")](a("0x1e9"))>=0?"Firefox":e.indexOf(a("0x1ea"))>=0||e.indexOf(a("0x1eb"))>=0?a("0xa8"):e[a("0x19")](a("0x1ec"))>=0?a("0x27"):e[a("0x19")](a("0x1ed"))>=0?a("0x1ee"):e[a("0x19")]("trident")>=0?a("0x1ef"):a("0x1e2"),(a("0x27")===n||a("0x1ee")===n||a("0xa8")===n)&&"20030107"!==t)return!0
const r=eval.toString()[a("0x5")]
if(37===r&&a("0x1ee")!==n&&a("0x29")!==n&&a("0x1e2")!==n)return!0
if(39===r&&a("0x1ef")!==n&&a("0x1e2")!==n)return!0
if(33===r&&a("0x27")!==n&&a("0xa8")!==n&&"Other"!==n)return!0
let i
try{throw"a"}catch(e){try{e[a("0x1f0")](),i=!0}catch(e){i=!1}}return i&&a("0x29")!==n&&a("0x1e2")!==n}static[a("0xaa")](){const e=document[a("0xff")](a("0x158"))
return!(!e[a("0x1f1")]||!e[a("0x1f1")]("2d"))}static[a("0xad")](){if(!t[a("0xaa")]())return!1
const e=t[a("0x179")]()
return!!window[a("0x1f2")]&&!!e}static[a("0x122")](){return a("0x1f3")===navigator[a("0x85")]||!("Netscape"!==navigator.appName||!/Trident/[a("0x9b")](navigator.userAgent))}static[a("0xc0")](){return void 0!==window[a("0x1f4")]}static[a("0xc1")](){return window[a("0x1f4")][a("0x1f5")](a("0x1f6"))}static[a("0x1f7")](e){const t=document.createElement(a("0x100"))
t[a("0x1f8")]("id",e.fonts[a("0x1f9")]),document[a("0x7f")][a("0x119")](t)}static loadSwfAndDetectFonts(e,n){window[a("0x1fa")]=function(t){e(t)}
const r=n[a("0xc2")][a("0x1f9")]
t[a("0x1f7")](),window[a("0x1f4")][a("0x1fb")](n.fonts.swfPath,r,"1","1",a("0x1f6"),!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:a("0x1fc")},{})}static[a("0x179")](){const e=document[a("0xff")](a("0x158"))
let t=null
try{t=e.getContext(a("0x193"))||e[a("0x1f1")](a("0x1fd"))}catch(e){}return t||(t=null),t}constructor(){this[a("0x1fe")]=[{key:"webrtc",getData:t[a("0x30")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:a("0x34"),getData:t[a("0x32")],shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t[a("0x84")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x1ff"),getData:t[a("0x8a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x87"),getData:t[a("0x86")],shouldEnforceDataLimit:!0,dataLimit:300},{key:a("0x89"),getData:t[a("0x88")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x200"),getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:a("0x201"),getData:t[a("0xaf")],shouldEnforceDataLimit:!0,dataLimit:2200},{key:a("0x151"),getData:t[a("0x8c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x8e"),getData:t[a("0x202")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x203"),getData:t[a("0x8f")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x150"),getData:t[a("0x204")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x205"),getData:t[a("0x83")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x14f"),getData:t[a("0x14b")],alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x206"),getData:t[a("0x60")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x207"),getData:t[a("0x90")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x92"),getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t[a("0x5a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x73"),getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x75"),getData:t[a("0x75")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t[a("0x58")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:a("0x28"),getData:t[a("0x28")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x152"),getData:t[a("0x208")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t[a("0x94")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x5f"),getData:t[a("0x209")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t[a("0x62")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t[a("0x20a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x20b"),getData:t[a("0x64")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x20c"),getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x20d"),getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x14d"),getData:t[a("0x20e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x9a"),getData:t[a("0x7b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x20f"),getData:t[a("0x7c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x80"),getData:t[a("0x7e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x81"),getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x158"),getData:t[a("0x210")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x193"),getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:a("0x211"),getData:t[a("0xb9")],shouldEnforceDataLimit:!0,dataLimit:150},{key:a("0x212"),getData:t[a("0x149")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x213"),getData:t[a("0x142")],shouldEnforceDataLimit:!0,dataLimit:150},{key:a("0x214"),getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x3b"),getData:t[a("0x3a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x215"),getData:t[a("0x22")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x123"),getData:t[a("0x121")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:a("0x216"),getData:t[a("0x11d")],shouldEnforceDataLimit:!0,dataLimit:27e3},{key:a("0xc2"),getData:t[a("0x217")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t[a("0xbf")],shouldEnforceDataLimit:!0,dataLimit:100}]}[a("0x218")](e,t){if(a("0x4c")!=typeof e)return
if(!t)return e({error:a("0x219")})
let n={data:{latency:{acq_time:{}},errors:{}}},r=Date[a("0x8b")](),i={},o=0,s=0
this.components[a("0xd")]((function(c){if(t[a("0x21a")][c[a("0x21b")]])return
let u=c[a("0x21b")]
void 0!==c[a("0x21c")]&&null!==c.alias&&c[a("0x21c")][a("0x5")]>0&&(u=c[a("0x21c")]),o++
const l=()=>{i[u]=Date.now()
try{c[a("0x21d")]((function(t){if(!1!==c[a("0x21e")]){let e=c[a("0xf")](a("0x21f"))&&a("0x220")==typeof c.dataLimit?c[a("0x21f")]:1e3
const r=JSON[a("0x221")](t)[a("0x5")]
r>e&&(n.data[a("0x222")][u]="Exceeded current data limit:"+e+" Data length for:"+u+a("0x223")+r,t={})}n[a("0x224")][u]=t,n[a("0x224")].latency[a("0x225")][u]=Date.now()-i[u],s++,s>=o&&(n[a("0x224")][a("0x226")][a("0x225")][a("0x227")]=Date[a("0x8b")]()-r,n[a("0x224")][a("0x228")]=Date[a("0x8b")](),e(n.data,!0))}),t)}catch(e){n[a("0x224")].errors[u]=String(e)}}
a("0x4c")==typeof window[a("0x229")]&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(l):l()})),n[a("0x224")][a("0x226")][a("0x225")][a("0x227")]=Date[a("0x8b")]()-r,e(n[a("0x224")],!1)}}function n(e){let t=arguments[a("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2]
const r=n?n[a("0x22a")]("#"+e):document.getElementById(e)
if(r){const n=r.firstChild[a("0x22b")]
if(t&&r[a("0x22c")].removeChild(r),n)try{return JSON[a("0x22d")](n)}catch(e){return}}}function r(e){let t=document.getElementsByClassName(e)
return void 0!==t&&t.length>=1}function i(){try{let e=document[a("0x22e")][a("0x26")](";")
for(let t=0;t<e[a("0x5")];t++){const n=e[t][a("0x26")]("=")
if(n[a("0x5")]>1&&a("0x22f")===n[0]){const e=n[n[a("0x5")]-1]
return e.substring(2,e[a("0x5")]-1)}}}catch(e){return""}}class o{static str2ab(e){const t=new ArrayBuffer(e[a("0x5")]),n=new Uint8Array(t)
for(let t=0,r=e.length;t<r;t++)n[t]=e[a("0x6")](t)
return t}static[a("0x230")](e){return window[a("0x231")](String[a("0x232")][a("0x233")](null,e))}static[a("0x234")](e,t,n){const r=window[a("0x235")](t),i=o[a("0x236")](r)
return window.crypto.subtle[a("0x237")](e,i,{name:"RSA-OAEP",hash:a("0x238")},!0,n)}static[a("0x239")](e,t){return o.importPk(a("0x23a"),t,["wrapKey"])[a("0x13d")]((t=>window[a("0x23b")][a("0x23c")][a("0x23d")]("raw",e,t,{name:a("0x23e")}))).then((e=>o[a("0x230")](new Uint8Array(e))))}static[a("0x23f")](e){const t={a:null,b:null,c:null}
return t.error=e,t}static encryptWithKey(e,t,n){const r={a:null,b:null,c:null}
try{let i=Date[a("0x8b")]()
if(a("0x240")!=typeof t||a("0x220")!=typeof n)throw new Error("ec1")
const s=window[a("0x23b")][a("0x241")](new Uint8Array(16))
r.a=o[a("0x230")](s)
const c=(new TextEncoder)[a("0x230")](e),u=a("0x242")
return window.crypto[a("0x23c")][a("0x243")]({name:u,length:256},!0,["encrypt",a("0x244")]).then((e=>window[a("0x23b")][a("0x23c")].encrypt({name:u,iv:s},e,c).then((s=>o[a("0x239")](e,t)[a("0x13d")]((e=>(r.b=e,r.c=o.encode(new Uint8Array(s)),r.d=Date.now()-i,r.e=n,r))))))).catch((e=>(r.error=String(e),r)))}catch(e){return r[a("0x245")]=String(e),Promise[a("0x246")](r)}}static[a("0x247")](e,t,r,i){if(a("0x240")!=typeof t||a("0x240")!=typeof r)return Promise[a("0x246")](o[a("0x23f")]("Error: ec2"))
let s=n(t),c=parseInt(n(r))
return(""===s||"string"!=typeof s||a("0x220")!=typeof c||Number.isNaN(c))&&(s=a(i?"0x248":"0x249"),c=i?2:1),o[a("0x24a")](e,s,c)}static[a("0x24b")](e,t,n,r,i){return null!=r&&a("0x240")==typeof r.publicKey&&a("0x220")==typeof r[a("0x24c")]?o[a("0x24a")](e,r[a("0x24d")],r[a("0x24c")]):o[a("0x247")](e,t,n,i)}static[a("0x24e")](){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^window.crypto[a("0x241")](new Uint8Array(1))[0]&15>>e/4)[a("0xa")](16)))}static[a("0x24f")](e){const t=(new TextEncoder)[a("0x230")](e)
return crypto[a("0x23c")][a("0x250")](a("0x238"),t)[a("0x13d")]((e=>Array[a("0x251")](new Uint8Array(e))[a("0x10")]((e=>("00"+e[a("0xa")](16)).slice(-2)))[a("0xa5")](""))).catch((()=>""))}}const s=a("0x252"),c=a("0x253"),u=a("0x254"),l={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:a("0x255"),swfPath:a("0x256"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:a("0x257"),telemetryCollectPath:a("0x258"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:a("0x259"),ERROR:"err",EXCLUDED:a("0x25a"),useRequestIdleCallBack:!0}
class d{constructor(e,t,n){if(void 0!==t&&void 0!==e&&a("0x25b")===e[a("0x25c")])a("0x25d")===document[a("0x25e")]?(this.checkConfigAndInitializeGlobalIntegration(t,n),this[a("0x25f")](t,n)):window[a("0x260")]("load",(()=>{this.checkConfigAndInitializeGlobalIntegration(t,n),this[a("0x25f")](t,n)}))
else if(void 0!==e){const t=JSON[a("0x22d")](JSON[a("0x221")](l))
r("settings-iframe")||r(a("0x261"))||(t[a("0x262")]=!1),this[a("0x263")](t,e)}else{const e=JSON[a("0x22d")](JSON[a("0x221")](l))
r(a("0x264"))||r(a("0x261"))||(e[a("0x262")]=!1),a("0x25d")===document[a("0x25e")]?this.initialize(e):window.addEventListener(a("0x265"),(()=>{this.initialize(e)}))}}[a("0x266")](e,t){!0===t.dnaFingerprintingEnabled&&this.intializeGlobalIntegration(l,e)}[a("0x25f")](e,t){!0===t.humanIntegrationEnabled&&this[a("0x267")](e,t),!0===t[a("0x268")]&&this.intializeDfpIntegration(e)}[a("0x263")](e,r){if(null!=r||null!=n(a("0x269"))){this[a("0x26c")](e,r)
var i=this[a("0x26d")],s=this[a("0x26e")],c=this[a("0x26f")]()
return(new t)[a("0x218")]((function(t,n){t[a("0x26d")]=i,t[a("0x26e")]=s,t[a("0x270")]=n,o.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK",a("0x271"),r,c)[a("0x13d")]((t=>{globalThis[a("0x255")]=t,!0===n&&function(e,t,n){let r=new XMLHttpRequest,i=a(n?"0x272":"0x273")
i+=String(t),r[a("0x9d")]("POST",i),r[a("0x274")](a("0x275"),a("0x276")),r[a("0x277")](e)}(JSON.stringify(t),e[a("0x278")],c)}))}),e)}globalThis[a("0x26a")]=this[a("0x26b")]}[a("0x279")](e,n){return(new t).getFeatures((function(e,t){!0===t&&o.encryptWithKeyIds(JSON.stringify(e),a("0x269"),a("0x271"))[a("0x13d")]((e=>{n(s,JSON.stringify(e))}))}),e)}[a("0x27a")](e){let t=i(),n=this.isProd()?a("0x27b"):a("0x27c")
try{if(RegExp("^[\\w-]*$")[a("0x9b")](t)){const r=a("0x27d")+t+"&instanceId="+n
let i=document[a("0xff")](a("0x27e"))
i[a("0x1f8")](a("0x27f"),r),i.setAttribute("id",a("0x280")),i[a("0x260")]("load",(()=>window[a("0x281")][a("0x282")](document))),document[a("0xfe")](a("0x283"))[0][a("0x119")](i)
const o={sessionId:t,instanceId:n}
e(u,JSON[a("0x221")](o))}else{const n={error:a("0x284")+t}
e(u,JSON[a("0x221")](n))}}catch(t){const n={error:t}
e(u,JSON.stringify(n))}}[a("0x267")](e,t){let n=t[a("0x285")],r=Date.now(),s=this[a("0x26f")]()?a("0x286"):"PXgoH0hfKu",u=i(),l=a("0x287")+r+a("0x288")+n+a("0x289")+s+"&uc=scraping"
o[a("0x24f")](u)[a("0x13d")]((t=>{u=t,""!==u&&(l+=a("0x28a")+u)
try{let t=document[a("0xff")](a("0x28b"))
t[a("0x1f8")]("id",a("0x28c")),t[a("0x1f8")](a("0x27f"),l),t[a("0x1f8")]("sandbox",a("0x28d")),t[a("0x102")][a("0x159")]="none",document.body[a("0x119")](t)
const i={app_id:s,ts:r,d_id:u,r_id:n,uc:a("0x28e")}
e(c,JSON[a("0x221")](i))}catch(t){const n={error:t}
e(c,JSON.stringify(n))}}))}}d[a("0xe")][a("0x26b")]=function(e){globalThis.triggerApfc=null,new d(e)},d[a("0xe")][a("0x28f")]=function(e,t){globalThis.triggerDnaApfcEvent=null,new d({globalIntegration:a("0x25b")},e,t)},d[a("0xe")][a("0x26f")]=function(){const e=location&&location[a("0xb3")]
return e&&e[a("0x19")](a("0x290"))>-1&&!e.startsWith(a("0x291"))},d[a("0xe")][a("0x292")]=function(e){return e&&0===Object[a("0x1b")](e)[a("0x5")]},d[a("0xe")][a("0x293")]=function(){var e=[]
return[...document.getElementsByClassName(a("0x294"))][a("0xd")]((t=>{[...t[a("0xfe")](a("0x295"))][a("0xd")]((t=>{let n=t[a("0x1d2")]
if(n){var r=(new DOMParser)[a("0x296")](n,a("0x297"))
r&&[...r.getElementsByClassName("bc")][a("0xd")]((t=>{e[a("0x11a")]({src:t[a("0x2a")](a("0x27f")),style:t[a("0x2a")](a("0x102")),class:t[a("0x2a")](a("0x298")),width:t[a("0x2a")]("width"),height:t[a("0x2a")](a("0x6e"))})}))}}))})),0===e[a("0x5")]?null:e[0]},d[a("0xe")][a("0x26c")]=function(e,t){if(null==e)return
var n,r,i="bc",s="display:none;",c="1",u="1",l=e[a("0x299")]
if(this[a("0x26d")]=null,this[a("0x26e")]=null,null!==(n=this.getUrlFromNoscriptBeacon())){i=n[a("0x298")],s=n[a("0x102")],c=n[a("0x6d")],u=n[a("0x6e")]
let e=new URL(n.src)
l=e[a("0x29a")]+"//"+e[a("0xb3")]+e[a("0xb7")],this[a("0x26d")]=e[a("0x29b")][a("0x29c")]("reqid"),this[a("0x26e")]=e[a("0x29b")][a("0x29c")]("pageInstance")}else if(void 0!==(r=function(e){let t=arguments[a("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2]
const r=n?n[a("0x22a")]("#"+e):document[a("0x29d")](e)
if(r){const n=r.firstChild[a("0x22b")]
if(t&&r[a("0x22c")][a("0x11b")](r),n)try{let e=n
return"'"!==e[a("0x29e")](0)&&'"'!==e[a("0x29e")](0)||(e=e[a("0x29f")](1,e.length-1)),JSON[a("0x22d")](e)}catch(e){return}}}(a("0x2a0"))))this[a("0x26d")]=void 0===r[a("0x26d")]?null:r[a("0x26d")],this[a("0x26e")]=r[a("0x26e")]
else{if(void 0===t)return
this[a("0x26e")]=t[a("0x26e")]}this[a("0x26f")]()||(l=l[a("0xa6")](/\.linkedin\.com/,a("0x2a1"))),null===this.reqid&&(this.reqid=o[a("0x24e")]())
let d=l+"?"+new URLSearchParams({reqid:this[a("0x26d")],pageInstance:this.pageInstance,js:"enabled"})[a("0xa")](),f=document[a("0x1d6")](a("0x294"))[0]
null==f&&(f=document[a("0xff")]("div"),f.setAttribute("id",this.reqid),document.body[a("0x119")](f))
let h=document[a("0xff")](a("0x2a2"))
h.src=d,h.style=s,h[a("0x1d4")]=i,h.width=c,h[a("0x6e")]=u,f[a("0x119")](h)},a("0x2a3")!=typeof globalThis&&a("0x2a3")!=typeof document&&"undefined"!=typeof window&&(globalThis.triggerDnaApfcEvent=d[a("0xe")].reentryGlobalIntegration,new d)}()
class s{static isInitialized(){return Boolean("undefined"!=typeof globalThis&&void 0!==globalThis.triggerApfc&&null!==globalThis.triggerApfc)}static setDf(e){globalThis.triggerApfc(e)}}class c{static collectFeatures(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEvent&&globalThis.triggerDnaApfcEvent(t,e)}catch(e){}}}function u(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?u(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(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 f(e){return function(){var t=this,n=arguments
return new Promise((function(r,i){var o=e.apply(t,n)
function a(e){d(o,r,i,a,s,"next",e)}function s(e){d(o,r,i,a,s,"throw",e)}a(void 0)}))}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=[{id:"ekolibgoaoffbjaggmgfkmbopmlmkfcp",file:"xhr.js"},{id:"jfjbcckhglfamaagobaibpjmnibmooko",file:"webcomponents-bundle.js"},{id:"oiecklaabeielolbliiddlbokpfnmhba",file:"ui/content-script/index.js"},{id:"oifhpkdmngmgaemkbjalbbgnminihhai",file:"tooltip.html"},{id:"jkoakdgjjpjjpcaeggokiklmafdihdck",file:"templates/int_addcontactModal.html"},{id:"dgafcidlgmbcehokgdeghmfnbpbfhihh",file:"styles/popup.css"},{id:"cnnffgdlkepdhppahlfeojbpjlbbpgep",file:"style.css"},{id:"ncommjceghfmmcioaofnflklomgpcfmb",file:"src/res/main.css"},{id:"fenjfkfmoocofnlehendoahbndmdapkf",file:"src/options/options.html"},{id:"pglgkbbnncfddpclbgomegdnjihljkdp",file:"src/options/index.html"},{id:"akeepikolhaikilagiekmegfhefcbohd",file:"src/iframe.html"},{id:"cbeoaifhldmaldbakgpgbhdiekhjonfb",file:"src/embed/embed.html"},{id:"kbgdnekpkdbagiccakldjfmhmncdnphc",file:"src/embed/embed.html"},{id:"ncmkhdipigpgfnponnnghhelehbfdggb",file:"src/counter.html"},{id:"mbdaegkegbiehfcmodfhcljbffahjphg",file:"src/content.html"},{id:"ejdadbpkolbdgjifejidccmoaonegnlm",file:"src/common/fonts/icons.woff"},{id:"khnbclggeggefodgimdekejhipkeobnc",file:"src/browser_action/browser_action.html"},{id:"knnijejlhfdhdodhmannmgefocpcabem",file:"src/assets/leads-garden-icon.png"},{id:"hohnofgiopagfojkjalkjkgogpkjghpe",file:"smartreach.html"},{id:"eeaoemhlndempejchkcdapgdhfledkcn",file:"smartreach.html"},{id:"eeibpfgnekehoogipmbkaaibcobhdmkc",file:"signup.html"},{id:"nmaonghoefpmlfgaknnboiekjhfpmajh",file:"sidebar.html"},{id:"pmnhcgfcafcnkbengdcanjablaabjplo",file:"sidebar.html"},{id:"aeeccphegbhmemmjncggcjlieanbkcmg",file:"sidebar.html"},{id:"bljigloeikaihodehchnpcnpgbhplcdp",file:"settings/options.html"},{id:"kpjflgccfgdakjfijakkeofkigkegiff",file:"settings.html"},{id:"gmlafenklffcmegjhklbpdkmglelbobb",file:"settings.html"},{id:"fecgbkpogfcghjebjhpggnkmchofiolh",file:"settings.html"},{id:"ichmnigkjinmjedillldopaolidofben",file:"salesnav_inject.js"},{id:"hnfaoknidihlaefdeogopolookigppec",file:"results.html"},{id:"fijekigbmminoddgfpakkphelmnabdpa",file:"resources/favicon.png"},{id:"nenjfdjpmgeoollancmilgebdhbibine",file:"refetchFrame.html"},{id:"faijbkbhlnconmeidaljhlmobmdgnfih",file:"public/icon128.png"},{id:"ahbaomfclkbgaadpmlcmlchhcgfibfld",file:"public/icon128.png"},{id:"ndfbfegjcohejllfjococichokofhigi",file:"public/icon128.png"},{id:"kcgepaimjgkfioiepdjghaaieoihndkp",file:"prospectdaddy.html"},{id:"mnpfmcfgdahpdcdbaebpjlnhkanbphlk",file:"popups.html"},{id:"ngeodglgpmplepchhghijjncnikifaed",file:"popup/index.html"},{id:"pcobbcdoanadagdelmmjklpbjlgbgnna",file:"popup/index.html"},{id:"jefhkjnnfaiicaaonfjkibcipeabocck",file:"popup/index.html"},{id:"lgaajoacmibdfdjklimiamkbjaafekhb",file:"popup.html"},{id:"binfkcmklghbjkbiaknecnheepdiagfl",file:"popup.html"},{id:"bbcflpielkpbkfnhadlgaanfkoakdeai",file:"popup.html"},{id:"fffkjdapcgkdhlhbdbkgpcjbnhkmhmlf",file:"popup.html"},{id:"dankmejnhbejpoogggdomhapckhpdjml",file:"popup.html"},{id:"ecdjnnnodhapkhgginpicggbmhmkjjbc",file:"popup.html"},{id:"fghbfikeodjkbajmokiekipabfckcpgc",file:"popup.html"},{id:"agbbbanmddhembghpamggfdjknafcbka",file:"popup.html"},{id:"mlknnmdepgmefemphhdombdflfgceejg",file:"popup.html"},{id:"gfcmbjmjadhcijjpbpoelmejbkhnbhia",file:"popup.html"},{id:"ffebfjkgjgbpmnoogjjdgfkmiobngdnf",file:"popover.html"},{id:"mkbffgipobpkmhbhappjodngcbopopmm",file:"panel.html"},{id:"mnfkepfkbemjhmpijcepabfhkldegbga",file:"pageWorld.js"},{id:"kpejmmgnnhlaolplbbpdnmmpfbjgkmfp",file:"pages/popup/index.html"},{id:"ddgjkhpdbpeiifciiijfbcfcodmiicfi",file:"pages/markup.html"},{id:"gelgoaopfcabbigaimoeojnhbcijoalk",file:"options.html"},{id:"cgfpdaekohadjagbpmolmjdbgdchodjd",file:"options.html"},{id:"jdanmmkadklcdnmmhodecjodjljkekja",file:"notes.txt"},{id:"hnbnkioepackpgmdppegkkjkebdoaeil",file:"matomo.js"},{id:"pjojbbffkpdnffdbdficagjnpmjflifk",file:"manifest.json"},{id:"ilocdbladnokjbbfnoigbjfboophlkda",file:"manifest.json"},{id:"geibognnhplplidflnhpdbanjkekganc",file:"manifest.json"},{id:"gkcdjgjhmpmjdikeokefahhecpbecldb",file:"manifest.json"},{id:"dodghoacmcolcigjioiapehcmpdadgmi",file:"manifest.json"},{id:"hmpfdofadldbdljibacoicljekdmbpog",file:"main.css"},{id:"gfecljmddkaiphnmhgaeekgkadnooafb",file:"logo.png"},{id:"dfpbcakpogbfaohnnjlgghdjkgaoiaik",file:"logo_taplio_500.png"},{id:"alhgpfoeiimagjlnfekdhkjlkiomcapa",file:"loading.html"},{id:"gojmmkhaiojimnnjhhilmhjmhdbdagod",file:"linkedin-script.js"},{id:"dpbhcmkmgkcnifdjempfpbbjfiomifch",file:"linkedin-content.min.js"},{id:"odfhegllgcagejmjbanonlofmllejfea",file:"json/linkedin_keys.json"},{id:"nggfafecghkamhbcpcnoblcildgkjlnj",file:"js/sc_main.js"},{id:"dkkmpkpjimkollpfgbbglcikcmgmdlhn",file:"js/guest_script.js"},{id:"pgkbilhblcclmglgocjmoahimlhfgadh",file:"js/details-contentscripts-injected-script.js"},{id:"hnfijcggbbnhciandggikibemjjjpoaf",file:"js/content.js"},{id:"fljmbeoepcgelhoofclbcapdehejknik",file:"js/button.js"},{id:"aeidadjdhppdffggfgjpanbafaedankd",file:"injectLI.js"},{id:"bjginahbhcpmjhjmfgebfpneegkdcobe",file:"injected.js"},{id:"kfihpeckbnofhbnaeeoilcokaaphpcfa",file:"injected.js"},{id:"mlholfadgbpidekmhdibonbjhdmpmafd",file:"index.html"},{id:"emjmhnkkiinkeccaefoalpakghddjncg",file:"index.html"},{id:"gnnnbgkmbljmjghbhjhbfiiffndpnjij",file:"index.html"},{id:"jjmlbbndggneogioknejomjbdeebijmb",file:"index.html"},{id:"mkpoonlmiaknmcdcmdhbnehhglndcolf",file:"index.html"},{id:"aclgcfmciekojimhckimdcapkejceili",file:"index.html"},{id:"jkhkdbfkjiipnhlpianbimoopafelden",file:"index.html"},{id:"idfblidcbbfkggckamnibfbngnbgjocf",file:"index.html"},{id:"cadapjildilfaacohgaimaoibhhlognp",file:"index.html"},{id:"nndbennabmfpkofomdhobjbcfdagcmfc",file:"index.html"},{id:"lijchjgefodlogdmbglgfgelnceipkpm",file:"index.html"},{id:"ngdjlkacliphopkcgcffflancnlbebnc",file:"index.html"},{id:"jeablngoapekimaeoeclgcefdcpjhjcg",file:"index.html"},{id:"fofjcndophjadilglgimelemjkjblgpf",file:"index.html"},{id:"ajceemkmbgjolpocnkfccjmplcbbppel",file:"index.html"},{id:"gjfehlcidibkbachipbggopmmphholkg",file:"index.html"},{id:"gjfehlcidibkbachipbggopmmphholkg",file:"index.html"},{id:"edfgdiieipdlhkmmanhakhibhomfdjip",file:"index.html"},{id:"mkjedhephckpdnpadogmilejdbgbbdfm",file:"indeedInjectContentScript.bundle.js"},{id:"agdddnmdjmljkjeglnidfpmpenbimmmn",file:"imgs/final.png"},{id:"eeamleimapjehkomedbhminckkldpkke",file:"img/icon_16.png"},{id:"delakdmnpanaclafnplfomddhlhlcloe",file:"img/bg-home.svg"},{id:"focmnenmjhckllnenffcchbjdfpkbpie",file:"img/arrow-merge.png"},{id:"eofoblinhpjfhkjlfckmeidagfogclib",file:"images/track_test.png"},{id:"inpefkfjedjpkakiaiphlbdhobebocbh",file:"images/success.gif"},{id:"fcbcmoamiepjicllddbajeadkidecbki",file:"images/scrape_logo.png"},{id:"bagapgnffhmfccajdbbjcgalkphdjccn",file:"images/pp_icon48.png"},{id:"pgnfaifdbfoiehcndkoeemaifhhbgkmm",file:"images/panda1.png"},{id:"hpncohefniamkphainmdcghaljbiaiol",file:"images/logo.svg"},{id:"lkpekgkhmldknbcgjicjkomphkhhdkjj",file:"images/logo.svg"},{id:"bgkalnkemmojlglhakebbpjecigamgii",file:"images/logo.svg"},{id:"jncipjngcbgolcmipohjjhepphdedigk",file:"images/logo.png"},{id:"hhdffcchnkhbhlppcnaomfonehjkaghm",file:"images/logo.gif"},{id:"dddpkdpmdfdphmjnbpmnjaajedhjddpf",file:"images/images/logo_32x32.png"},{id:"mdcgloagodjhgjobkflggmokmhhodcjo",file:"images/icon.png"},{id:"jgiapobaigghdocinfndjifhkcnmbcan",file:"images/icon-32.png"},{id:"ablfgphjibcgmjcflkflckpoeojilojg",file:"images/flowq-icon-white.png"},{id:"giidlnpcdhcldhfccdhkaicefhpokghc",file:"images/extension.svg"},{id:"fniibmiigfdndeahlcpgalaobeoempgg",file:"images/active.png"},{id:"ocgihmepobcgbfibaopggddieigbopja",file:"images/16.svg"},{id:"mdfjplgeknamfodpoghbmhhlcjoacnbp",file:"iframe-wrapper/iframe-wrapper.html"},{id:"lijdbieejfmoifapddolljfclangkeld",file:"icons/success.png"},{id:"hombkmjjoapdaclgaaioldnljmhhliai",file:"icons/SlikWhiteIcon.png"},{id:"hlbjniodlfameclpjodmamnpppnppobk",file:"icons/mentions.svg"},{id:"knlidfjjemelddmpbcapghcajlkemkcj",file:"icons/logo.png"},{id:"kmchjegahcidgahijkjoaheobkjjgkfj",file:"icons/logo.png"},{id:"nfkbblgbfkmbidomjccaejkaohlppbhp",file:"icons/logo.png"},{id:"ebkhdmdkadbjecipaoocokoboianbpom",file:"icons/linkedin.png"},{id:"hbcdhdfokpdbnhfggebeeiokjjlfnffk",file:"icons/icon16.png"},{id:"lfkfmfkndiknkfbggpldaijcifekgdgh",file:"icons/icon16.png"},{id:"onjifbpemkphnaibpiibbdcginjaeokn",file:"icons/icon128.png"},{id:"kgpckhbdfdhbkfkepcoebpabkmnbhoke",file:"icons/icon128.png"},{id:"dbcllnegglfpapjcfhfndakmajhhbdfd",file:"icons/icon128.png"},{id:"mliipdijmfmbnemagicfibpffnejhcki",file:"icons/icon128.png"},{id:"ahkdkfejeplinhgmclegkhopdiiedeji",file:"icons/header-logo.png"},{id:"maanaljajdhhnllllmhmiiboodmoffon",file:"icons/forbidden.svg"},{id:"nelhhkchoapcbpcgpmmiahfkcdhgecaf",file:"icons/engage.svg"},{id:"fndnhbhipldpbhpnjmnadkeengnckdik",file:"icons/512.png"},{id:"kgojhlllchdepinmopmlhihnipicpoah",file:"icons/128.png"},{id:"pfgcpffbebicalfmjajbmacnfopgobom",file:"icon128.png"},{id:"cgikbmpjlipafepacaajlmgdjffgikig",file:"icon/icon.png"},{id:"lnpfjkleopcaojhabdaemndloghpbdnd",file:"icon.png"},{id:"gpbocgnhdopagefbfgohcjpmdnceidkd",file:"icon.png"},{id:"hpmofmhcflopelbdkalanmdbaifbmaek",file:"icon.png"},{id:"ljganmjpdpdhihlanmnioaldnbgpokep",file:"icon-34.png"},{id:"jcnkojfhcdojpfffoddbnceadkngaond",file:"icon-34.png"},{id:"kecadfolelkekbfmmfoifpfalfedeljo",file:"icon-34.png"},{id:"pfmbhdbhllglinbdgfckkajcfcabeknl",file:"icon-34.png"},{id:"nfjemjifleiijedpmipbgbpefcopdkci",file:"icon-34.png"},{id:"niokdclgdbnokoiobbidcolokmelokig",file:"icon-128.png"},{id:"aleoomdhnjddjlmfocibikjdpkdpadko",file:"icon-128.png"},{id:"dlcnbdemimiedcapkncdfmmnidobcpmi",file:"icon-128.png"},{id:"cmlngncglcblbobiehdpjcgbpoemidho",file:"html/linkedin-save-form.html"},{id:"gncdeciaplnakdjjkcbmlbbbnlpochik",file:"hiresweet-for-linkedin.html"},{id:"olddfhipinhhfbhhfodcnaalbcgmbida",file:"hires_close.png"},{id:"kigfnbfbpfpgphbocdkmeablbgdbpfke",file:"hider/hider-main.css"},{id:"camppjleccjaphfdbohjdohecfnoikec",file:"HankenGrotesk-Regular.c415711c.woff2"},{id:"mcebeofpilippmndlpcghpmghcljajna",file:"frame.html"},{id:"oahjfinghkkolgfkbfanpmhpiafmnepn",file:"fonts/Roboto-Regular.ttf"},{id:"dbepenphjfofmnjmlacfcdehikakmaap",file:"flyout.html"},{id:"ebaikcmadbhckgkehkfnpbagpfjnidml",file:"extension/images/icon16.png"},{id:"mnefanhigbjeejlkhhmmnmbngimlmphc",file:"extension-assets/button.html"},{id:"bomddfcanochfdhopndjibndlgpakdlg",file:"ext/index.html"},{id:"dijhcpbkalfgkcebgoncjmfpbamihgaf",file:"dly-popover.html"},{id:"iogffmglhkiajlbnlkfmfobhdhlfadkj",file:"dist/index.html"},{id:"jnbmekkgllcampcfjkobpffkfglolekn",file:"dist/index.html"},{id:"ceflmpdagpfcipehlhmdeldlclnpakih",file:"dist/contentScripts/style.css"},{id:"mfkiheojdlkamhimblpljacaeoncjock",file:"dist/assets/icon48.png"},{id:"khgfclfejdekdjmmdbhhjjbdngipnkda",file:"cvc.png"},{id:"ekbmkecmfjahfomoafomalldaihhfjnh",file:"css/content.css"},{id:"nkedbgifgajhhicbmabjgkkjifecajla",file:"css/all.css"},{id:"beddhfglegaaiemmjbmhclhnbpoicicc",file:"contentScript.js"},{id:"gcecnlnmpidkanpnhpdcgfagpekjaihe",file:"contents.da50c4d1.css"},{id:"gbiokpgbipklfamljmahhmlldgdffikk",file:"content/index.js"},{id:"fkmbgbgddogjgljfpiahdmhnchghlhhf",file:"content/browserextension.config.json"},{id:"iadokddofjgcgjpjlfhngclhpmaelnli",file:"content.styles.css"},{id:"nhekipmihkpmekdnhnchchjancdjkcnk",file:"content.styles.css"},{id:"dnaodjplhbebpfjdkbieelgfgpdcbcph",file:"content.styles.css"},{id:"idcdkjpekpkllkjecfaiibaigfhgedpc",file:"content.html"},{id:"bimmbgomanhpkfodmiomjgfakleojpia",file:"content.css"},{id:"lfnidahlcpjiabeocjdiigbhbjfjodfb",file:"content.1f671790.svg"},{id:"mjcffemmfdpcjekgonelgmphacdhhbod",file:"content-script-frame.html"},{id:"jlnbkamgambebndfodgebpgpbeibbdpi",file:"check.html"},{id:"ihhkmalpkhkoedlmcnilbbhhbhnicjga",file:"boot-prompt.html"},{id:"dnfhnfpngcdclcofckaailggoaomcecl",file:"bizz-icon.png"},{id:"nmdenlkgkkgncmibclhckkhclilpfjap",file:"beameryExtensionWrapper.html"},{id:"fkkpeaipjpjcokkoencfnkkflemodgpl",file:"assets/whatsin.png"},{id:"mdklkilghglpihondfmedeefgfnpecbb",file:"assets/tutorial.gif"},{id:"ilfckacnmnjlcboodahhojdnllfailhl",file:"assets/settings-fa859063.js"},{id:"opcgffjclpcoeiajgachmeecapgldmcl",file:"assets/play.png"},{id:"jcgholhpbpcnglbilaflciokdnhjlfgl",file:"assets/play.png"},{id:"ijjpcllafkdhjkfenmkgnkklbnphalpj",file:"assets/logo.png"},{id:"ohjgcieckcgnjpbbmfojepagllbomnoa",file:"assets/loading.gif"},{id:"nljnogdbefgdiejolejlajbghojopcpb",file:"assets/js/_extractor.js"},{id:"iaanlollhchoikocdhpcbijkpeonghch",file:"assets/index.ts-36e04c6e.js"},{id:"cgficojlgbcfggfonjojmckiilgijeha",file:"assets/index.js.65857ac1.js"},{id:"cjafanjojiojlmedfjmdmkbgeekigmcc",file:"assets/img/link-bg.png"},{id:"kkfgenjfpmoegefcckjklfjieepogfhg",file:"assets/images/logo_round.png"},{id:"fdkhjbgdknepkmlpodfkalikgljnikkj",file:"assets/icons/icon48.png"},{id:"ajmlcdlcagmkcfbomfchikkkkabomeda",file:"assets/icon16.png"},{id:"jabnaledogdghdbckajlnbipcdicinom",file:"assets/icon-16.png"},{id:"okljidbiljmlhmlpmaefgaegnobfjgib",file:"assets/fonts/fa-brands-400.svg"},{id:"bhbcbkonalnjkflmdkdodieehnmmeknp",file:"assets/css/common.css"},{id:"gokkgekggjoaehmegbcajkngkedmjjnm",file:"assets/client-5a203ff8.js"},{id:"hpfndbeelpjpdgeaoknoeggagglgelhp",file:"assets/chunk-62f94c4b.js"},{id:"ahlmkaafohhhbocahhjlcgofddbhcaef",file:"assets/chakraTheme.1adba3fb.js"},{id:"iibninhmiggehlcdolcilmhacighjamp",file:"assets/all-icon.svg"},{id:"ppgndohgacfggdpbcdlgibdkdknimfmn",file:"assets/16x16.png"},{id:"bjahjijchjnokbgbahdmfcjoblkicank",file:"app/index.js"},{id:"obkjfcijfdhcnjhbomcfgaloojcphlla",file:"app.js"},{id:"neamplaeghaioimdanffppbikdfcimko",file:"app.html"},{id:"ennpkannelepddoomheofppcbnnlnoop",file:"app.html"},{id:"jdljloonnicomdafhnljcjblkghndpcp",file:"all-users-coffeee.html"},{id:"nfcldgholonecfckicgfmekkecmnopbi",file:"agent.js"},{id:"cenlnghioejfjidkaigndnhaalfbofad",file:"addContact.html"},{id:"bodcackmmefldjpmeefapllhcpdlhfhp",file:"48.png"},{id:"odnlhpgfojmkjbpbhgbmkohlbeincomi",file:"fonts/Inter/Inter-Black.woff"},{id:"cjhohccbpbkcealndpfanpclfgcekell",file:"fonts/SlatePro.woff2"},{id:"jdppdnnmobmmpegaoacpopfaoabeladn",file:"img/app_title.png"},{id:"adknclagpadmdnjepbfddpplgmfginnb",file:"js/activity.js"},{id:"ncmegehmmipjannnmleaojhmhmfelkje",file:"embedded-app/28.js"},{id:"blcddfbfkinmhmokhpjiiljjfafjpgom",file:"images/icon-16.png"},{id:"gahcfmlnmednhnbkifdoffblfffpeljf",file:"components/form/ui/form.html"},{id:"haiofogejpjmphinemcanjidbaibkebc",file:"icons/icon16.png"},{id:"gdhhcapaofinjmlambmbfhkicbpmidbn",file:"icons/icon16.png"},{id:"clhmnbpdboilpogpmojknkopklkfggpa",file:"icons/icon16.png"},{id:"lojgckjlhpmcefkhdcdjlgmjflpaeeph",file:"assets/icons/icon48.png"},{id:"bblennjdmmdfjdmpcbalaiabelnjfdfc",file:"assets/icons/linkedin.png"},{id:"mdlnjfcpdiaclglfbdkbleiamdafilil",file:"assets/buster-icon-16.png"},{id:"chhgomfjadniehakfodegblpbkfancgk",file:"dist/assets/32.png"},{id:"jgbnbeibkdooefdklbkcnfooggcoeifk",file:"assets/flamingoLogo_16.png"},{id:"gmcehfailpfakmipokpdbibjceppjeej",file:"assets/icon.png"},{id:"kojhcdejfimplnokhhhekhiapceggamn",file:"assets/style.scss"},{id:"cghdjcdmopohjlogglcbocjldjhjlddg",file:"assets/img/icon-16x16.png"},{id:"jpnappbebbldpfefhgfphjpjfcdkonac",file:"assets/logo16.png"},{id:"miionnbpcoinccnhekjjjloiknalhhfh",file:"assets/icon16.png"},{id:"agghbaheofcoecndkbflbnggdjcmiaml",file:"images/hide-button-icon.svg"},{id:"gpdcibinjnbkbocdlgeidbgblecljmnp",file:"images/logo.png"},{id:"pdciaimcnfkdbboodbpfpmhimkdlbaja",file:"assets/allowClipboardInstructions/clickLockIcon.svg"},{id:"cnoopnlkkfpifcpakdifmpknciegdijj",file:"assets/back_icon_32.png"},{id:"jcpkgjfbhhglonendnnmicgicebbemjd",file:"assets/activity.svg"},{id:"hdappgahcgpifoabanfifjicfllpokgo",file:"assets/images/icon16.png"},{id:"gaflhpfkjpfkkhefnddlpdceiibonehh",file:"manifest.json"},{id:"ihclelbigemkpdnbjkenimnbgkepieka",file:"assets/bg-dots.svg"},{id:"acackkdpiddedeionboakefkpfflkcfc",file:"assets/bg-dots.svg"},{id:"cokmophcenlaoacgnanhfjoihjcpkibm",file:"box.svg"},{id:"nkkchjgbhhgbmochpphoohfebbcifehj",file:"icon.png"},{id:"hdopabkhobppbaaajnanhadcamfopobc",file:"assets/logo.png"},{id:"jdbdgcibmddkccanncenaahimbfcgglj",file:"img/copyicon.svg"},{id:"kialmgneflnabmjopnjadlildnlegklk",file:"templates/status-bar.html"},{id:"jejkgijkhbdnekbbdonkikkfdmlfmdol",file:"images/linkedin/onboarding-search.png"},{id:"nlofjaolgiolnmpiekakhhdoflmijphj",file:"www/icon.png"},{id:"dibfbemhegmnkjbpgdemgobiknmdhhpj",file:"webfonts/fa-regular-400.woff2"},{id:"hphemlkiblibajapikfnjnoebaepeckp",file:"views/index.html"},{id:"mpdjhieodgnmhmhdemdccnamgjllogdj",file:"src/popup.html"},{id:"hobhidjecjjgknjpnclnmfgkajdjlaml",file:"assets/images/icons/button.png"},{id:"cabldpgmkejdhjbgmeooocablkljdbcg",file:"icons/button.png"},{id:"mooiecoaeebopkiknkokhhcifbnbhihk",file:"images/pipegen-logo.svg"},{id:"gpmcdaocjaodfgpniloimojpldldihfn",file:"assets/back_icon_32.png"},{id:"ajcfhmjfhpbeefcnfmbheidefdodhcfa",file:"img/icon16.png"},{id:"gnhoimmdfeclleccljjflgngepoicidi",file:"images/linkedin.png"},{id:"nogdppkjhdnlpkbbdbgpmekmbfpkkogb",file:"images/icon16.png"},{id:"fceibemhbfdalddpenabjkcfdgheeaij",file:"images/iClickats-icon.png"},{id:"iodbiefeiiififbdcdckdbigakehaemb",file:"images/arrow_left.png"},{id:"ckheedjclgkpfccemlljhcepjjflfbfd",file:"images/get_started16.png"},{id:"oplolbghaddhfckbgbnjeadnflmbahca",file:"images/7e83324226e7c9.png"},{id:"ppbjfmdejofomgglmammnchkaabnklfe",file:"image/attention.png"},{id:"fkajbcdnmbhlgdgbhcbppkipbgepopcj",file:"image/attention.png"},{id:"eafadncoenbcmghdgbooflkolmoaejed",file:"image/attention.png"},{id:"kencjkgapindpgehbgolojoocgpcepfk",file:"icons/icon16.png"},{id:"acmbfggokaabfndehodmoekhccfnphel",file:"dist/bundle-background.js"},{id:"ocpljaamllnldhepankaeljmeeeghnid",file:"core/assets/img/icon.png"},{id:"ihlbailjldnbpajldeoeefcclocfolpd",file:"common/img/co-16-blue.png"},{id:"aoieokedbecedmpafmimaabhcpmefjdk",file:"assets/images/vtiger16.png"},{id:"fbnpmcpajifmidcabmlpimbkadodjeao",file:"assets/icons/favicon-16.png"},{id:"pcambcbbejngpalfbdnlkgeaickjankc",file:"assets/icons/app_16x16.png"},{id:"bkcibcjcbhgjoddeldfmgkbaipjkidpf",file:"assets/16x16.png"},{id:"ceplokfhfeekddamgoaojabdhkggafnk",file:"assets/bizbar.svg"},{id:"hlkiignknimkfafapmgpbnbnmkajgljh",file:"assets/16x16.png"},{id:"mkglodjadhkjjedlbeaiigfpokmimffb",file:"static/media/books.2fcaf23f.png"},{id:"ohmpcdmgbjhkhnljkaeeahndchboiici",file:"images/logo16.png"},{id:"hpdonlnaehfbmhaeajlppcfkngapiofj",file:"img/icon.png"},{id:"fdjminldlpednddoeokglgpjiibncfpe",file:"images/logo.png"},{id:"nmcepmjolcpckhpjgbmlaekpohfepnlk",file:"icons/icon16.png"},{id:"npcfccjbkefemjkfogefnhojohpdjflg",file:"favicon.png"},{id:"agiilkigodfhimkdcjgbjdlajpjdhaig",file:"assets/img/error.png"}]
function g(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function m(){var e,t,n
return(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.indexOf("Chrome"))>-1}let v=(y=f(regeneratorRuntime.mark((function e(){var t,n
return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=p.map((function(e){let t=e.id,n=e.file
return fetch(`chrome-extension://${t}/${n}`)})),e.next=4,Promise.allSettled(n)
case 4:return e.sent.forEach((function(e,n){if("fulfilled"===e.status){const e=p[n]
e&&t.push(e.id)}})),e.abrupt("return",t)
case 7:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})
var y
let b=(E=f(regeneratorRuntime.mark((function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
var r
return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g()&&m()){e.next=2
break}return e.abrupt("return")
case 2:return e.next=4,v()
case 4:r=e.sent,Array.isArray(r)&&r.length>0&&t.fireTrackingPayload("AedEvent",l({browserExtensionIds:r},n))
case 6:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})
var E},57727:(e,t,n)=>{"use strict"
function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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}n.r(t),n.d(t,{NON_ESSENTIAL_CATEGORIES:()=>v,USER_MODE:()=>y,getBannerData:()=>N,getCookieConsent:()=>M,parseEncodedConsent:()=>O,updateCookieConsent:()=>P})
var a=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),s=/^fs_/
function c(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,n,r=a.exec(e)
return r&&(t=r[1].replace(s,""),n=r[2]),{id:n,type:t}}var u,l,d,f,h,p,g=/(?![^(]*\)),/,m=function e(t){var n=c(t),r=n.id,i=n.type,o={}
if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(g),u=0;a=s[u];++u)0===a.indexOf("urn")&&(s[u]=e(a))
r=s}return o[i]=r,o},v={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},y={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},b=(i(u={},y.GUEST,"li_gc"),i(u,y.MEMBER,"li_mc"),i(u,y.ENTERPRISE_UNBOUND,"li_ec"),u),E=(i(l={},y.GUEST,"mypreferences/g/guest-cookies"),i(l,y.MEMBER,"settings/member-cookies"),i(l,y.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),l),_="liap",T=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={},v)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o},S=(d=[v.ADVERTISING,v.ANALYTICS_AND_RESEARCH,v.FUNCTIONAL],f=[0,1,2,0],h=function(e){for(var t={},n=0;n<d.length;n++)t[d[n]]=f[e>>2*n&3]
return t},p=function(e){var t=0
return e>=0&&e<=3&&(t=f[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 T}
var i=h(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=p(parseInt(r[3],10))
return{error:null,consent:new T(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 T}
var i=r.enterpriseAccountId,a=r.enterpriseProfileId,s=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),c=e.match(s)
if(!c)return{error:"Invalid consent body encoding",consent:new T}
var u=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,r=(4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0
try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),4!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,4)
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)?o(e,4):void 0}}(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.")}()),s=r[1],c=r[2],u=r[3]
return s===i&&c===a&&u===n}))[0]
if(!u)return{error:null,consent:new T}
var l=h(u[0]),d=new Date(1e3*parseInt(c[2],10)),f=p(parseInt(c[3],10))
return{error:null,consent:new T(l,d,y.ENTERPRISE_UNBOUND,f)}}}),x=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),C=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},A=function(e,t,n,r){var i=C(b[e],t)
return i?O(i,e,n,r):C(b[y.GUEST],t)||C(b[y.MEMBER],t)||C(b[y.ENTERPRISE_UNBOUND],t)?w(2):w(1)},w=function(e){var t={}
for(var n in v)t[n]=e
return{error:null,consent:new T(t,null,null,e)}},I=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},R=function(e,t){var n=E[e],r=t.enterpriseProfileHash,i=t.enterpriseAppInstanceId,o=new URLSearchParams
e===y.ENTERPRISE_UNBOUND&&(r&&o.append("p",r),i&&o.append("iid",i))
var a=Array.from(o).length?"?"+o.toString():""
return"https://www.".concat(I(),"/").concat(n).concat(a)},k=function(){return"undefined"==typeof document},O=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(x)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new T}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===y.ENTERPRISE_UNBOUND?S.parseConsentBodyEnterpriseUnbound(s,n,r):S.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new T}},M=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(k())return{error:"cookie string must be provided in SSR mode",consent:new T}
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 T}
if(!(e!==y.ENTERPRISE_UNBOUND||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new T}
if(!e){var o=C(b[y.ENTERPRISE_UNBOUND],t)
if(o&&r&&i){var a=O(o,y.ENTERPRISE_UNBOUND,r,i),s=a.consent.userMode===y.ENTERPRISE_UNBOUND
if(s||a.error)return a}e=C(_,t)?C(b[y.MEMBER],t)?y.MEMBER:y.GUEST:C(b[y.GUEST],t)?y.GUEST:y.MEMBER}return A(e,t,r,i)},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=M(e,document.cookie,t),r=n.consent,i=e||r.userMode||y.GUEST
return{showBanner:!n.error&&!r.consentAvailable,userMode:i,managePreferenceUrl:R(i,t)}},P=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=C(b[y.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(I(),"/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 h={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}}
for(var p in v){var g=void 0
!0===n[p]?g=1:!1===n[p]&&(g=2),h.CATEGORIES[p]=g}l.send(JSON.stringify(h))}},74319:(e,t,n)=>{"use strict"
var r
n.r(t),n.d(t,{CALL_TREE_ID_HEADER_NAME:()=>p,DEGRADATION_TRACKING_EVENT_FIELD:()=>_,DEGRADATION_TRACKING_EVENT_NAME:()=>d,DOWNSTREAM_REQUEST_FIELD:()=>T,DegradationTrackingMetadata:()=>B,DegradationTrackingMetadataOptionName:()=>P,FABRIC_HEADER_NAME:()=>v,FEATURE_DEGRADATION_METRIC_EVENT_NAME:()=>f,FailureTrackingMetadata:()=>X,INSTRUMENTATION_GUIDE_PROMPT:()=>l,InternalFailureProcessingMetadata:()=>Q,InternalFeatureDegradationMetricEventProducer:()=>A,InternalFeatureDegradationMetricStore:()=>N,InvalidArgumentError:()=>U,JET_UNCLASSIFIED_ERROR_TAG:()=>x,METRIC_EMISSION_INTERVAL_IN_MS:()=>S,MICROSOFT_EDGE_REFERENCE_HEADER_NAME:()=>m,PEM_METADATA_HEADER_NAME:()=>b,PEM_RESPONSE_METADATA_HEADER_NAME:()=>y,PEM_RESPONSE_METATADA_HEADER_AVAILABILITY_KEY:()=>E,POINT_OF_PRESENCE_ID_HEADER_NAME:()=>g,ParsedResponseHeaders:()=>Y,PemTrackingService:()=>ee,RESPONSE_HEADERS:()=>h,ResponseDetails:()=>$,RetryableDegradationTrackingMetadata:()=>q,SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:()=>D,calculateSuccessfulDownstreamCallsRatio:()=>W,createDegradeEvents:()=>V,determineResponseErrorType:()=>K,generateSpanSuffix:()=>z,parseDownstreamEndpointPathname:()=>H,refineServerErrorType:()=>G,teardown:()=>Z,validateKey:()=>F,validateProductName:()=>j})
var i=new Uint8Array(16)
function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return r(i)}const a=/^(?:[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,s=function(e){return"string"==typeof e&&a.test(e)}
for(var c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1))
const l="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",d="FeatureDegradeEvent",f="FeatureDegradationMetricEvent",h={CALL_TREE_ID:"x-li-uuid",POINT_OF_PRESENCE_ID:"x-li-pop",MICROSOFT_EDGE_REFERENCE:"x-msedge-ref",FABRIC:"x-li-fabric",PEM_RESPONSE_METADATA:"x-li-pem-resp-meta",CONTENT_TYPE:"content-type",CDN_CACHE:"x-cache"},p=h.CALL_TREE_ID,g=h.POINT_OF_PRESENCE_ID,m=h.MICROSOFT_EDGE_REFERENCE,v=h.FABRIC,y=h.PEM_RESPONSE_METADATA,b="X-LI-PEM-Metadata",E="availability",_={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},T={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},S=6e4,x="pem-unclassified-error"
class C{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class A extends C{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const r={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback(f,r,t.pageInstance,e)}))}}class w{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class I{constructor(e){this.featureMetricIdentifier=e}}function R(e){return JSON.stringify(e,Object.keys(e).sort())}class k extends w{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=R(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const r=new O(e)
t(r),this.featureCallCounts.set(n,r)}}}class O extends I{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class M{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class N extends M{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,r)=>{var i
let o=n.featureCallCounts.get(r)
void 0!==o?o=o.mergeCallCounts(e):null===(i=this.metrics.get(t))||void 0===i||i.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=R(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const r=new k(e)
t(r),this.metrics.set(n,r)}}}var P
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(P||(P={}))
const D=new Set(Object.values(P))
class U extends Error{constructor(e){super(e),Object.setPrototypeOf(this,U.prototype)}}function L(e){return 0===e.length||!e.trim()}function j(e){if("string"!=typeof e)throw new U(`The product name must be a string. ${l}.`)
if(L(e))throw new U(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${l}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new U(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${l}.`)
return e}function F(e){if("string"!=typeof e)throw new U(`Keys must be strings. ${l}.`)
if(L(e))throw new U(`Keys should not be blank. ${l}.`)
if(/[^a-z0-9-]/.test(e))throw new U(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${l}.`)
return e}class B{constructor(e,t,n){var r,i,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=F(e),this._defaultDegradationKey=F(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new U(`DegradationTrackingMetadata options should be an object. ${l}.`)
const a=n.productName
a&&(this._productName=j(a))
const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new U(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${l}.`)
var n
if(429===e||999===e)throw new U(`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 ${t} options.`)
if(t===P.NonDegradedResponseCodes&&e>=400&&e<500)throw new U(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${P.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${P.NonDegradedResponseCodes} option. ${l}.`)}
if(void 0!==e&&!Array.isArray(e))throw new U(`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 ${P.NonDegradedResponseCodes} option. ${l}.`)
if(void 0!==t&&!Array.isArray(t))throw new U(`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 ${P.AdditionalDegradedResponseCodes} option. ${l}.`)
null==e||e.forEach((e=>n(e,P.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,P.AdditionalDegradedResponseCodes)))
const r=new Set(t),i=new Set(e)
if([...r].some((e=>i.has(e))))throw new U(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${l}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach((e=>{if(!D.has(e))throw new U(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${l}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(B.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class q{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new N,this._lastRequestMetricStore=new N,this._requestsMade=0,this._trackingId=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)()
if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0
for(var i=0;i<16;++i)t[n+i]=r[i]
return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()
if(!s(n))throw TypeError("Stringified UUID is invalid")
return n}(r)}()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(q.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}function H(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),r=n.split("/").filter((e=>e.length))
if(!t.length)return r.join("/")
const i=[]
for(let e=r.length-1;e>=0;e--){const n=r[e],o=t.indexOf(n)
o>=0?t.splice(o,1):i.push(n)}return i.reverse().join("/")}function G(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}function K(e){const t=e.responseError,n=e.parsedHeaders,r=e.responseCode
if(null!==r){if(429===r||999===r)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&r&&r>=400&&r<600)return"BLOCKED_BY_CLIENT_PROXY"
if((i=r)>=400&&i<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(r)
if(function(e){return e>=500&&e<600}(r))return G(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(r,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var i
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}function V(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const i=[],o=r.responseCode
return t.forEach((t=>{const a=t.getDegradationKey(o),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,o),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode}
o&&(c.responseCode=o)
const u=r.parsedHeaders
u.callTreeId&&(c.responseCallTreeId=u.callTreeId),(null==u?void 0:u.pointOfPresenceId)&&(c.pointOfPresenceId=u.pointOfPresenceId),(null==u?void 0:u.microsoftEdgeReference)&&(c.microsoftEdgeReference=u.microsoftEdgeReference),(null==u?void 0:u.fabric)&&(c.fabric=u.fabric),q.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),i.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),i}function z(e){if(!e)return"-success"
switch(e){case"SERVER_ERROR":case"GRAPHQL_FULL_FAILURE":return"-server-error"
case"CLIENT_ERROR":case"TOO_MANY_REQUESTS":return"-client-error"
default:return"-misc-error"}}function W(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}class X extends B{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===X.name}}class Q{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!q.isRetryableDegradationTrackingMetadata(e)&&!B.isDegradationTrackingMetadata(e)&&!X.isFailureTrackingMetadata(e))throw new U("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new U("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=B.isDegradationTrackingMetadata(e)?e:void 0
q.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=e>=300&&e<400,r=this._nonDegradedResponseCodes.has(e)
return!n&&!t&&!r}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new U(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${l}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new U(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${l}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new U(`A degradation key override was specified for ${t}, but that response code isn't considered degraded. Please add it to additionalDegradedResponseCodes if you want it to count against your availability.`)
this._degradationKeyByResponseCode.set(t,e.degradationKey)}))}))}}class Y{constructor(e){const t=new Map
null==e||e.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get(h.CALL_TREE_ID)||null,this._pointOfPresenceId=t.get(h.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=t.get(h.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=t.get(h.FABRIC)||null,this._responseMetadata=t.get(h.PEM_RESPONSE_METADATA)||null,this._downstreamAvailability=function(e){if(null==e)return null
const t=e.split(",")
for(const e of t){const t=e.split("=",2)
if(2===t.length&&t[0]===E){const e=parseFloat(t[1])
if(e>=0&&e<=1)return e}}return null}(this._responseMetadata)||1,this._contentType=t.get(h.CONTENT_TYPE)||null,this._cdnCacheMetadata=t.get(h.CDN_CACHE)||null,this._rawHeaders=e||null}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}get contentType(){return this._contentType}get cdnCacheMetadata(){return this._cdnCacheMetadata}get responseMetadata(){return this._responseMetadata}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}get rawHeaders(){return this._rawHeaders}}class ${constructor(e,t,n,r){this._responseCode=void 0!==e?e:null,this._parsedResponseHeaders=t?new Y(t):new Y,this._responseError=n||null,this._downstreamServiceErrorCode=r}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const J="undefined"==typeof FastBoot
function Z(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class ee{constructor(e,t,n){this._featureMetricStore=new N,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new A(this._featureMetricStore,t),J&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),S),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,r,i){let o,a=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{a=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),(!1===e.ok||e.status<200||a>=300)&&(o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,i,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,o){const a=t.status,s=t.getAllResponseHeaders(),c=new Map
s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift()
if(n){const e=t.join(": ")
c.set(n.toLowerCase(),e)}}))
const u=o?null:t,l=this._createFailureProcessingMetadata(r)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,l,i,c,u)}startRetryFlow(e){return ee.startRetryFlow(e)}static startRetryFlow(e){return new q(e)}completeRetryFlow(e){if(!q.isRetryableDegradationTrackingMetadata(e))throw new U("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,i,o,a){const s=new $(t,o,a),c=s.parsedHeaders,u=K(s),l=H(e,n),f=new Set,h=new Set
r.forEach((e=>{f.add(e.productName),h.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(u)&&(e.isCountedAgainstAvailability(u,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:u,responseFabric:c.fabric},i,W(u,c)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},i))})),u&&(this._reportErrorIfUnclassified(a,u,t,f,h),V(l,r,u,s).forEach((e=>{this._fireEventCallback(d,e,i)})))}_reportErrorIfUnclassified(e,t,n,r,i){var o
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=[x]
let n
r.forEach((e=>t.push(`pem-product-${e}`))),i.forEach((e=>t.push(`pem-feature-${e}`))),n=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new U(`Please specify a non-empty array of degradation tracking metadata. ${l}.`)
const t=new Set
return e.map((e=>{if(!B.isDegradationTrackingMetadata(e)&&!q.isRetryableDegradationTrackingMetadata(e))throw new U(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${l}.`)
const n=j(e.productName||this._defaultProductName),r=`${n}!!${e.featureKey}`
if(t.has(r))throw new U("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(r),new Q(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new U(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${l}.`)
return e}}},97549:function(e,t){!function(e){"use strict"
const t=/[,()':]/g,n=/[,()':]/
function r(e){const t=JSON.parse(JSON.stringify(e))
return function(e){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),i(t,!1)}function i(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let r=0;r<e.length;r++)n[r]=i(e[r],t)
return`List(${n.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){return`(${Object.keys(e).map((n=>`${o(n,t)}:${i(e[n],t)}`)).join(",")})`}(e,t):o(e,t)}function o(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":r&&"string"==typeof e&&n.test(e)?e.replace(t,escape):r?e:encodeURIComponent(e).replace(t,escape)}Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const a={"X-RestLi-Protocol-Version":"2.0.0","X-HTTP-Method-Override":"GET","Content-Type":"application/x-www-form-urlencoded"},s="lix/treatmentsV2"
function c(){const e=function(){const e=document.cookie.match(/JSESSIONID="?([^";]+)"?/)
if(e)return e[1]}()
if(e){const t={"Csrf-Token":e}
return Object.assign(t,a)}return a}class u{constructor(e,t){const n=function(e){return!e.lix}(e)?{lix:e}:e
this.lixes=n.lix,this.tracker=t}treatment(e){let{peek:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=this.lixes[e]
if(!n)return"control"
if(!n.treatment)throw new Error("The LiX treatment object does not contain any treatment")
return!0!==t&&this.tracker.notifyOfEval(n),n.treatment}cleanup(){this.lixes={}}append(e){for(const t in e){const n=e[t]
void 0!==n&&(this.lixes[t]=n)}}getTests(){return this.lixes}replace(e){this.lixes=e}}const l="LixTreatmentsEvent"
class d{constructor(e){this.queue=[],this.pendingTrackedLixes=[],this.trackingFiredRecords=new WeakMap,this.logger=e}fireTrackingEvent(e){this._fireTrackingEvent?this._fireTrackingEvent(l,e):this.queue.push(e)}notifyOfEval(e){var t
const n=Date.now()
this.shouldFireTrackingEvent(e,n)&&this.appendForTracking(e,n),null===(t=e.recursiveResults)||void 0===t||t.forEach((e=>this.notifyOfEval(e)))}shouldFireTrackingEvent(e,t){return!(!e||!e.trackingInfo)&&t-(this.trackingFiredRecords.get(e)||0)>6e4}appendForTracking(e,t){0===this.pendingTrackedLixes.length&&(this.timer=window.setTimeout(this.fireTrackingEvents.bind(this),100)),this.pendingTrackedLixes.push(e.trackingInfo),this.trackingFiredRecords.set(e,t)}fireTrackingEvents(){this.track(this.pendingTrackedLixes),this.pendingTrackedLixes.length=0}attach(e){this._fireTrackingEvent=e,this.queue.forEach((e=>{var t
null===(t=this._fireTrackingEvent)||void 0===t||t.call(this,l,e)}))}cleanup(){delete this._fireTrackingEvent,this.pendingTrackedLixes=[],this.timer&&clearTimeout(this.timer)}track(e){const t=e.reduce(((e,t)=>{var n
const{experimentId:r,treatmentIndex:i,segmentIndex:o,urn:a,trackingUrns:s}=t,c={experimentId:r,treatmentIndex:i,segmentIndex:o},u=a.match(/^urn:li:([a-zA-Z0-9]+):(\S+)$/)
if(null===u)return this.logger(`Failed parse the URN: "${a}"`),e
const l=u[1],d=u[2]
if(!l||!d)return e
e[l]||(e[l]={})
const f=e[l]
f[d]||(f[d]={primaryEvaluationUrn:a,trackingUrns:s,treatments:[]})
const h=f[d]
return null==h||null===(n=h.treatments)||void 0===n||n.push(c),e}),{}),n=[]
for(const e in t)for(const i in t[e]){var r
const o=null===(r=t[e])||void 0===r?void 0:r[i]
if(o){const t={urnId:i,urnType:e,primaryEvaluationUrn:o.primaryEvaluationUrn,treatments:o.treatments}
Array.isArray(o.trackingUrns)&&(t.additionalTrackingUrns=o.trackingUrns),n.push(t)}}this.fireTrackingEvent({urns:n})}}const f="value_"
e.LixCache=u,e.LixClient=class{constructor(e,t,n){this.tracker=new d(t),this.legacyLixCache=new u(e,this.tracker),this.env=n}get lixKeys(){return Object.keys(this.legacyLixCache.getTests())}attachTrackingCore(e){const t=e.fireEvent.bind(e)
this.tracker.attach(t)}fetch(e){return this.env.isBrowser?function(e){let{lixKeys:t=[],explicitUrnLixList:n=[],context:i={},endpointPath:o=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const a={ids:t,explicitUrnLiXList:n,evaluationContext:{context:i}},u=Object.keys(a).map((e=>`${e}=${r(a[e])}`))
return e(`/${o||s}`,{credentials:"same-origin",method:"POST",headers:c(),body:u.join("&")}).then((e=>e.text().then((t=>{const n=e.status
if(200!==n)throw new Error(`LiX request failed with status code: ${n}\n${t}`)
try{return JSON.parse(t).results}catch(e){throw new Error(`Failed to parse the LiX response: "${t}"\n${e}`)}}))))}(this.env.fetch,e).then((e=>this.appendToCache(e))):this.env.Promise.resolve({})}getTreatment(e,t){return this.legacyLixCache.treatment(e,t)}getTreatmentIsEnabled(e,t){return"control"!==this.getTreatment(e,t)}getTreatmentValue(e,t){const n=this.getTreatment(e,t)
if(!n||-1===n.indexOf(f))return!1
const r=parseInt(n.replace(f,""),10)
return!isNaN(r)&&r}destroy(){this.legacyLixCache.cleanup(),this.tracker.cleanup(),this.env.onDestroy&&this.env.onDestroy()}appendToCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.legacyLixCache.append(e),this.legacyLixCache.getTests()}replaceCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.legacyLixCache.replace(e)}clearCache(){this.legacyLixCache.cleanup()}notifyOfEval(e){this.tracker.notifyOfEval(e)}},e.LixTracker=d,e.TRACKING_BATCH_DELAY=100,e.fetchFromDom=function(){const e=document.querySelector('meta[name="__init"]')
if(!(e instanceof HTMLMetaElement))throw new Error("Unable to parse lix values from DOM, expected HTMLMetaElement")
if(!e||!e.content||"%INIT%"===e.content)return{}
try{return JSON.parse(e.content)}catch(e){throw new Error("Unable to parse lix values from DOM")}},Object.defineProperty(e,"__esModule",{value:!0})}(t)},60686:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{INPAGE_URL:()=>i,getShimmedLink:()=>c,initAnchorLinkShim:()=>f,isExternalLink:()=>s,removeAnchorLinkShim:()=>h})
var r=["linkedin.com","linkedin.cn","linkedin-ei.com","linkedin-ei.cn","lynda.com"],i="https://www.linkedin.com/safety/go",o=new RegExp(/^http(s)?:\/\/.*/)
function a(e){return e?(e=(e=(e=(e=(e=e.replace(/(https?:\/\/)?(www.)?/i,"")).includes("/")?e.split("/")[0]:e).includes("@")?e.split("@")[1]:e).includes(":")?e.split(":")[0]:e).split(".")).slice(e.length-2).join("."):(console.warn("Called getDomain with empty url"),e)}function s(e){var t
return!(!function(e){return!(!e||"string"!=typeof e||!e.match(1<arguments.length&&void 0!==arguments[1]?arguments[1]:o))}(e)||(e=a(e))===a(null==(t=window)?void 0:t.location.host)||-1!==r.indexOf(e))}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
if(s(e)){var n,r=i+"?url=".concat(encodeURIComponent(e))
for(n in t)r+="&"+n+"="+encodeURIComponent(t[n])
return r}return e}function u(e,t){return t instanceof HTMLAnchorElement?t:e instanceof HTMLAnchorElement?e:t===e||null===t?null:t.parentElement instanceof HTMLAnchorElement?t.parentElement:u(e,t.parentElement)}function l(e){return function(t){(t=t.currentTarget instanceof HTMLElement&&t.target instanceof HTMLElement?u(t.currentTarget,t.target):null)&&(t.href=c(t.href,e),t.removeAttribute("rel"))}}function d(e){return function(t){var n=t.currentTarget instanceof HTMLElement&&t.target instanceof HTMLElement?u(t.currentTarget,t.target):null
"Enter"===t.key&&n&&(n.href=c(n.href,e),n.removeAttribute("rel"))}}function f(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
e instanceof HTMLElement?(e.addEventListener("mousedown",l(t)),e.addEventListener("keydown",d(t))):console.warn("attempting to `initAnchorLinkShim()` on non-`HTMLElement` item ".concat(e))}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
console.error("removeAnchorLinkShim is deprecated and does nothing. Please remove this call (with element ".concat(e," and params ").concat(JSON.stringify(t)))}},70588:function(e){var t
"undefined"!=typeof self&&self,t=function(){return function(e){var t={}
function n(r){if(t[r])return t[r].exports
var i=t[r]={i:r,l:!1,exports:{}}
return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e}
return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=63)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")()
"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(31)("wks"),i=n(21),o=n(0).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports={version:"2.6.11"}
"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(4),i=n(44),o=n(29),a=Object.defineProperty
t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!")
return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(9)
e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!")
return e}},function(e,t,n){e.exports=!n(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=window||e}).call(t,n(41))},function(e,t,n){var r=n(0),i=n(2),o=n(17),a=n(8),s=n(10),c="prototype",u=function(e,t,n){var l,d,f,h=e&u.F,p=e&u.G,g=e&u.S,m=e&u.P,v=e&u.B,y=e&u.W,b=p?i:i[t]||(i[t]={}),E=b[c],_=p?r:g?r[t]:(r[t]||{})[c]
for(l in p&&(n=t),n)(d=!h&&_&&void 0!==_[l])&&s(b,l)||(f=d?_[l]:n[l],b[l]=p&&"function"!=typeof _[l]?n[l]:v&&d?o(f,r):y&&_[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e
case 1:return new e(t)
case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)}
return t[c]=e[c],t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[l]=f,e&u.R&&E&&!E[l]&&a(E,l,f)))}
u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(3),i=n(19)
e.exports=n(5)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty
e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(69),i=n(27)
e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PROD_REGEX=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,t.UDO_KEY="utag_data",t.CDN_HOSTNAME_PROD="platform.linkedin.com",t.CDN_HOSTNAME_EI="platform.linkedin-ei.com",t.CN_CDN_HOSTNAME_PROD="platform.linkedin.cn",t.CN_CDN_HOSTNAME_EI="platform.linkedin-ei.cn",t.COOKIE_CONSENT_CHECK_INTERVAL=2e3,t.ROOT_HOSTNAME_EI="www.linkedin-ei.com",t.ROOT_HOSTNAME_PROD="www.linkedin.com",t.CN_ROOT_HOSTNAME_EI="www.linkedin-ei.cn",t.CN_ROOT_HOSTNAME_PROD="www.linkedin.cn",t.UTAG_GLOBAL_OBJECT_KEY="utag",t.UTAG_CONFIG_OVERRIDE_OBJECT_KEY="utag_cfg_ovrd",t.CUSTOM_EVENTS_TMS_LOAD_EVENT="TagManagementSystemLoadEvent",t.CUSTOM_EVENTS_TAG_FIRE_AUDIT_EVENT="ExternalMarketingTagFireEvent",t.TAG_MANAGEMENT_SYSTEM_USED="tealium",t.USER_METADATA_PATH="/litms/api/metadata/user",t.TRACKING_EVENT_DEBUG_DATA="trackingEventDebugData",t.REFRESH_ON_COOKIE_CONSENT_PROPERTY="entity.refreshOnCookieConsent",t.TRACKING_IDS=["twclid","clickid"],t.L_PAGE_COOKIE_LIFETIME="15780000"},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){var n={}.toString
e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(18)
e.exports=function(e,t,n){if(r(e),void 0===t)return e
switch(n){case 1:return function(n){return e.call(t,n)}
case 2:return function(n,r){return e.call(t,n,r)}
case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")
return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(47),i=n(32)
e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n=0,r=Math.random()
e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(3).f,i=n(10),o=n(1)("toStringTag")
e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIHostname=t.getCDNHostname=t.isProd=void 0
var r,i=(r=n(6))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}(n(12))
function a(){var e=i.default.location?i.default.location.hostname:""
return o.PROD_REGEX.test(e)}function s(){var e=i.default.location?i.default.location.hostname:""
return/\.cn$/.test(e)}t.isProd=a,t.getCDNHostname=function(){return a()?s()?o.CN_CDN_HOSTNAME_PROD:o.CDN_HOSTNAME_PROD:s()?o.CN_CDN_HOSTNAME_EI:o.CDN_HOSTNAME_EI},t.getAPIHostname=function(){return a()?s()?o.CN_ROOT_HOSTNAME_PROD:o.ROOT_HOSTNAME_PROD:s()?o.CN_ROOT_HOSTNAME_EI:o.ROOT_HOSTNAME_EI}},function(e,t,n){"use strict"
t.__esModule=!0
var r=a(n(64)),i=a(n(76)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e}
function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t){var n=Math.ceil,r=Math.floor
e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e)
return e}},function(e,t,n){var r=n(9),i=n(0).document,o=r(i)&&r(i.createElement)
e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(9)
e.exports=function(e,t){if(!r(e))return e
var n,i
if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i
if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i
if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i
throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(31)("keys"),i=n(21)
e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(2),i=n(0),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(27)
e.exports=function(e){return Object(r(e))}},function(e,t,n){t.f=n(1)},function(e,t,n){var r=n(0),i=n(2),o=n(13),a=n(34),s=n(3).f
e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{})
"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){e.exports={default:n(89),__esModule:!0}},function(e,t,n){"use strict"
var r=n(18)
function i(e){var t,n
this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor")
t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.shouldRefreshOnCookieConsent=t.isDebugMode=t.generateCacheBuster=t.assign=void 0
var r=a(n(23)),i=n(12),o=a(n(6))
function a(e){return e&&e.__esModule?e:{default:e}}t.assign=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
if(n)for(var i=(0,r.default)(n),o=0;o<i.length;o++){var a=i[o]
e[a]=n[a]}}return e},t.generateCacheBuster=function(e){var t=new o.default.Date
t.setSeconds(0),t.setMilliseconds(0)
var n=Math.floor(t.getMinutes()/e)*e
return t.setMinutes(n),t.getTime()},t.isDebugMode=function(){return/utagdb=[^;]+/.test(o.default.document.cookie)},t.shouldRefreshOnCookieConsent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
return!!Array.isArray(e)&&e.some((function(e){var t=e.data[i.REFRESH_ON_COOKIE_CONSENT_PROPERTY]
return"boolean"==typeof t?t:"string"==typeof t&&"true"===t.toLowerCase()}))}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var r="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
t.default=r},function(e,t){var n
n=function(){return this}()
try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict"
var r=n(66)(!0)
n(43)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i
return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict"
var r=n(13),i=n(7),o=n(45),a=n(8),s=n(15),c=n(67),u=n(22),l=n(72),d=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",p="values",g=function(){return this}
e.exports=function(e,t,n,m,v,y,b){c(n,t,m)
var E,_,T,S=function(e){if(!f&&e in w)return w[e]
switch(e){case h:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",C=v==p,A=!1,w=e.prototype,I=w[d]||w["@@iterator"]||v&&w[v],R=I||S(v),k=v?C?S("entries"):R:void 0,O="Array"==t&&w.entries||I
if(O&&(T=l(O.call(new e)))!==Object.prototype&&T.next&&(u(T,x,!0),r||"function"==typeof T[d]||a(T,d,g)),C&&I&&I.name!==p&&(A=!0,R=function(){return I.call(this)}),r&&!b||!f&&!A&&w[d]||a(w,d,R),s[t]=R,s[x]=g,v)if(E={values:C?R:S(p),keys:y?R:S(h),entries:k},b)for(_ in E)_ in w||o(w,_,E[_])
else i(i.P+i.F*(f||A),t,E)
return E}},function(e,t,n){e.exports=!n(5)&&!n(14)((function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=n(4),i=n(68),o=n(32),a=n(30)("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n(28)("iframe"),r=o.length
for(t.style.display="none",n(49).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u[c][o[r]]
return u()}
e.exports=Object.create||function(e,t){var n
return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(10),i=n(11),o=n(70)(!1),a=n(30)("IE_PROTO")
e.exports=function(e,t){var n,s=i(e),c=0,u=[]
for(n in s)n!=a&&r(s,n)&&u.push(n)
for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n))
return u}},function(e,t,n){var r=n(26),i=Math.min
e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(0).document
e.exports=r&&r.documentElement},function(e,t,n){n(73)
for(var r=n(0),i=n(8),o=n(15),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],d=l&&l.prototype
d&&!d[a]&&i(d,a,u),o[u]=o.Array}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(47),i=n(32).concat("length","prototype")
t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){},function(e,t,n){var r=n(16),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}())
e.exports=function(e){var t,n,a
return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(4),i=n(18),o=n(1)("species")
e.exports=function(e,t){var n,a=r(e).constructor
return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(17),s=n(96),c=n(49),u=n(28),l=n(0),d=l.process,f=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,m=0,v={},y="onreadystatechange",b=function(){var e=+this
if(v.hasOwnProperty(e)){var t=v[e]
delete v[e],t()}},E=function(e){b.call(e.data)}
f&&h||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++])
return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},h=function(e){delete v[e]},"process"==n(16)(d)?r=function(e){d.nextTick(a(b,e,1))}:g&&g.now?r=function(e){g.now(a(b,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=E,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",E,!1)):r=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:h}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(4),i=n(9),o=n(38)
e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t
var n=o.f(e)
return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.UTAG_CACHE_BUSTER_INTERVAL_IN_MINUTES_DEFAULT=t.createLoadRulesCompletedListenerForUTag=t.setGlobalUTagReference=t.cleanUpGlobalUTagReferences=t.getUTagFromGlobalReference=t.getTagsFired=t.processQueuedEvents=t.trackControlInteraction=t.trackPageView=t.loadScript=t.constructContainerTagUrl=void 0
var r=f(n(23)),i=f(n(37)),o=f(n(6)),a=d(n(12)),s=d(n(24)),c=n(60),u=n(39),l=f(n(40))
function d(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY]=o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY]||{},o.default[a.TRACKING_EVENT_DEBUG_DATA]=o.default[a.TRACKING_EVENT_DEBUG_DATA]||[],o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY].noview=!0,o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY].nocookie=!0
var h=void 0
function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null
return"string"==typeof e&&(n="https://"+s.getCDNHostname()+"/litms/utag/"+e+"/utag.js?cb="+(0,u.generateCacheBuster)(t)),n}function g(){return function(){if(void 0===h&&l.default){var e=o.default.document.cookie.match(/litms_utag_override=([^;]+)/)
h=e?e[1]:""}return h}().length>0}function m(e,t,n,r){e.onLoadRulesRunOnce(n)
var i=(0,u.assign)({},t,(0,c.getUpdatedSharedEventData)(r))
e.view(i),(0,u.isDebugMode)()&&o.default[a.TRACKING_EVENT_DEBUG_DATA].push({profileName:r,eventType:"PV",trackingData:i})}function v(e,t,n,r){e.onLoadRulesRunOnce(n)
var i=(0,u.assign)({},t,(0,c.getUpdatedSharedEventData)(r))
e.link(i),(0,u.isDebugMode)()&&o.default[a.TRACKING_EVENT_DEBUG_DATA].push({profileName:r,eventType:"CI",trackingData:i})}function y(e){o.default[a.UTAG_GLOBAL_OBJECT_KEY]=e}t.constructContainerTagUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments[1]
return g()?h:p(e,t)},t.loadScript=function(e){return new i.default((function(t){var n=o.default.document.createElement("script")
n.type="text/javascript",n.src=e,n.async=!0,n.onload=t,o.default.document.getElementsByTagName("head")[0].appendChild(n)}))},t.trackPageView=m,t.trackControlInteraction=v,t.processQueuedEvents=function(e,t,n){if(y(e),t instanceof Array&&t.length>0)for(var r=t.length,i=0;i<r;i++){var o=t.shift()
o.isControlInteraction?v(e,o.data,o.callback,n):m(e,o.data,o.callback,n)}},t.getTagsFired=function(e){return(0,r.default)(e.loader.cfg).filter((function(t){return 1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load}))},t.getUTagFromGlobalReference=function(){return o.default[a.UTAG_GLOBAL_OBJECT_KEY]},t.cleanUpGlobalUTagReferences=function(){void 0!==o.default[a.UTAG_GLOBAL_OBJECT_KEY]&&(o.default[a.UTAG_GLOBAL_OBJECT_KEY]=void 0),void 0!==o.default[a.UDO_KEY]&&(o.default[a.UDO_KEY]=void 0)},t.setGlobalUTagReference=y,t.createLoadRulesCompletedListenerForUTag=function(e){var t=[]
e.onLoadRulesRunOnce=function(e){t.push(e)}
var n=e.loader.initcfg
e.loader.initcfg=function(){if(n.call(this,arguments),t.length>0){var e=t.shift()
e()}}},t.UTAG_CACHE_BUSTER_INTERVAL_IN_MINUTES_DEFAULT=5},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getEnterpriseContextForProfile=t.getUpdatedSharedEventData=t.addInUpdatedComplianceObjectFromConsentCookie=t.sharedEventData=t.addSharedEventData=t.getAllowlistForProfile=t.getUserSettings=t.UDO=void 0
var r=h(n(23)),i=h(n(25)),o=h(n(37)),a=h(n(6)),s=f(n(12)),c=n(24),u=n(109),l=f(n(61)),d=n(39)
function f(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}var p=void 0,g={},m={},v=a.default[s.UDO_KEY]||(a.default[s.UDO_KEY]={})
function y(e,t){var n=t+"."+t
return{enterpriseProfileUrn:e[n+".enterpriseProfile"]||e[t+".enterpriseProfile"],enterpriseAppInstanceId:e[n+".enterpriseAppInstanceId"]||e[t+".enterpriseAppInstanceId"]}}function b(e,t){var n=(0,d.assign)({},e),r={userSettings:n,enterpriseContext:y(e,t)}
return n["compliance.isAdvertisingOptIn"]=!function(e,t){var n=t+"."+t,r=e[n+".isEnterpriseUser"]||e[t+".isEnterpriseUser"],i=e[n+".isBoundUser"]||e[t+".isBoundUser"]
return r&&!i}(e,t)&&l.getUpdatedUserAdvertisingOptIn(r),n["compliance.isAnalyticsAndResearchOptIn"]=l.getUpdatedUserAnalyticsAndResearchOptIn(r),n["compliance.isFunctionalOptIn"]=l.getUpdatedUserFunctionalOptIn(r),n}t.UDO=v,t.getUserSettings=function(){if(!p){var e="https://"+(0,c.getAPIHostname)()+s.USER_METADATA_PATH
p=new o.default((function(t,n){(0,u.get)(e,(function(e){try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}}),(function(e){n(e)}))}))}return p},t.getAllowlistForProfile=function(e){if(!m[e]){var t=function(e){return"https://"+(0,c.getCDNHostname)()+"/litms/allowlist/"+encodeURIComponent(e)}(e),n=new o.default((function(e,n){(0,u.get)(t,(function(t){e(JSON.parse(t))}),(function(e){n(e)}),!1)}))
m[e]=n}return m[e]},t.addSharedEventData=function(e,t){var n="string"!=typeof t?"":t+"."
"object"===(void 0===e?"undefined":(0,i.default)(e))&&(0,r.default)(e).forEach((function(t){g[n+t]=e[t]}))},t.sharedEventData=g,t.addInUpdatedComplianceObjectFromConsentCookie=b,t.getUpdatedSharedEventData=function(e){return b(g,e)},t.getEnterpriseContextForProfile=y},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getUpdatedUserFunctionalOptIn=t.getUpdatedUserAnalyticsAndResearchOptIn=t.getUpdatedUserAdvertisingOptIn=t.getAdvertisingOptIn=t.getAnalyticsAndResearchOptIn=t.getFunctionalOptIn=t.getGDPROptIn=void 0
var r=function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}(n(62))
function i(e){return e["compliance.isGDPROptIn"]}function o(e){var t=r.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.FUNCTIONAL}function a(e){var t=r.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}function s(e){var t=r.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.ADVERTISING}t.getGDPROptIn=i,t.getFunctionalOptIn=o,t.getAnalyticsAndResearchOptIn=a,t.getAdvertisingOptIn=s,t.getUpdatedUserAdvertisingOptIn=function(e){var t=e.userSettings,n=e.enterpriseContext
return s(void 0===n?{}:n)&&i(t)},t.getUpdatedUserAnalyticsAndResearchOptIn=function(e){e.userSettings
var t=e.enterpriseContext
return a(void 0===t?{}:t)},t.getUpdatedUserFunctionalOptIn=function(e){e.userSettings
var t=e.enterpriseContext
return o(void 0===t?{}:t)}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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}n.d(t,"NON_ESSENTIAL_CATEGORIES",(function(){return v})),n.d(t,"USER_MODE",(function(){return y})),n.d(t,"getBannerData",(function(){return N})),n.d(t,"getCookieConsent",(function(){return M})),n.d(t,"parseEncodedConsent",(function(){return O})),n.d(t,"updateCookieConsent",(function(){return P}))
var a=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),s=/^fs_/
function c(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,n,r=a.exec(e)
return r&&(t=r[1].replace(s,""),n=r[2]),{id:n,type:t}}var u,l,d,f,h,p,g=/(?![^(]*\)),/,m=function e(t){var n=c(t),r=n.id,i=n.type,o={}
if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(g),u=0;a=s[u];++u)0===a.indexOf("urn")&&(s[u]=e(a))
r=s}return o[i]=r,o},v={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},y={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},b=(i(u={},y.GUEST,"li_gc"),i(u,y.MEMBER,"li_mc"),i(u,y.ENTERPRISE_UNBOUND,"li_ec"),u),E=(i(l={},y.GUEST,"mypreferences/g/guest-cookies"),i(l,y.MEMBER,"settings/member-cookies"),i(l,y.ENTERPRISE_UNBOUND,"settings/cookies"),l),_="liap",T=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={},v)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o},S=(d=[v.ADVERTISING,v.ANALYTICS_AND_RESEARCH,v.FUNCTIONAL],f=[0,1,2,0],h=function(e){for(var t={},n=0;n<d.length;n++)t[d[n]]=f[e>>2*n&3]
return t},p=function(e){var t=0
return e>=0&&e<=3&&(t=f[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 T}
var i=h(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=p(parseInt(r[3],10))
return{error:null,consent:new T(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 T}
var i=r.enterpriseAccountId,a=r.enterpriseProfileId,s=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),c=e.match(s)
if(!c)return{error:"Invalid consent body encoding",consent:new T}
var u=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,r=(4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0
try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),4!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,4)
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)?o(e,4):void 0}}(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.")}()),s=r[1],c=r[2],u=r[3]
return s===i&&c===a&&u===n}))[0]
if(!u)return{error:null,consent:new T}
var l=h(u[0]),d=new Date(1e3*parseInt(c[2],10)),f=p(parseInt(c[3],10))
return{error:null,consent:new T(l,d,y.ENTERPRISE_UNBOUND,f)}}}),x=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),C=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},A=function(e,t,n,r){var i=C(b[e],t)
return i?O(i,e,n,r):C(b[y.GUEST],t)||C(b[y.MEMBER],t)||C(b[y.ENTERPRISE_UNBOUND],t)?w(2):w(1)},w=function(e){var t={}
for(var n in v)t[n]=e
return{error:null,consent:new T(t,null,null,e)}},I=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},R=function(e){var t=E[e]
return"https://www.".concat(I(),"/").concat(t)},k=function(){return"undefined"==typeof document},O=function(t,n,r,i){t&&t.length>1&&'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1))
var o,a=null
try{a=(o=t,"undefined"==typeof atob&&void 0!==e?e.from(o,"base64").toString("binary"):atob(o)).match(x)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new T}
var s=parseInt(a[1],10),c=a[2]
return 1===s?n===y.ENTERPRISE_UNBOUND?S.parseConsentBodyEnterpriseUnbound(c,r,i):S.parseConsentBody(c,n):{error:"Invalid encoded consent version ".concat(s),consent:new T}},M=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(k())return{error:"cookie string must be provided in SSR mode",consent:new T}
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 T}
if(!(e!==y.ENTERPRISE_UNBOUND||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new T}
if(!e){var o=C(b[y.ENTERPRISE_UNBOUND],t)
if(o&&r&&i){var a=O(o,y.ENTERPRISE_UNBOUND,r,i),s=a.consent.userMode===y.ENTERPRISE_UNBOUND
if(s||a.error)return a}e=C(_,t)?C(b[y.MEMBER],t)?y.MEMBER:y.GUEST:C(b[y.GUEST],t)?y.GUEST:y.MEMBER}return A(e,t,r,i)},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=M(e,document.cookie,t),r=n.consent,i=e||r.userMode||y.GUEST
return{showBanner:!n.error&&!r.consentAvailable,userMode:i,managePreferenceUrl:R(i)}},P=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=C(b[y.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(I(),"/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 h={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}}
for(var p in v){var g=void 0
!0===n[p]?g=1:!1===n[p]&&(g=2),h.CATEGORIES[p]=g}l.send(JSON.stringify(h))}}.call(t,n(110).Buffer)},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.teardownInstanceForProfile=t.getInstanceForProfile=t.addSharedEventData=void 0
var r=E(n(25)),i=E(n(23)),o=E(n(37)),a=E(n(104)),s=E(n(105)),c=b(n(59)),u=b(n(114)),l=n(24),d=n(60),f=n(39),h=n(61),p=E(n(115)),g=n(62),m=E(n(40)),v=E(n(6)),y=n(12)
function b(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}var _={},T=void 0,S={},x=void 0,C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.profileName,r=t.tracking2Instance,i=t.enableAllowlisting,s=void 0!==i&&i,c=t.cacheBusterInterval;(0,a.default)(this,e),this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=o.default.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=r,this.profileName=n,this.enableAllowlisting=s,this.cacheBusterInterval=c,this.landingPageUrl}return(0,s.default)(e,[{key:"initialize",value:function(){var e=this
return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(m.default&&(sessionStorage.getItem("utagLandingPage")&&sessionStorage.removeItem("utagLandingPage"),this.landingPageUrl=v.default.location.href),this.isInitialized=!0,this.initializePromise=new o.default((function(t,n){e.enableAllowlisting?(e.isAllowlistingEnabled=!0,e._onInitializeSuccessCallback=t,e._onInitializeFailureCallback=n,e._allowlistReadyPromise=(0,d.getAllowlistForProfile)(e.profileName).then((function(t){return e._processAllowlistResult(t)})).catch((function(t){return console.error("Unable to retrieve allowlists for profile : "+e.profileName,t)}))):e._loadContainerTag(t,n)})),this.profileName&&(_[this.profileName]=this),this.initializePromise):o.default.resolve()}},{key:"_processAllowlistResult",value:function(e){var t=this;(0,i.default)(e).forEach((function(n){return t.addValuesToAllowlist(n,e[n])}))}},{key:"_setLandingPageCookie",value:function(){var e=this,t=(0,d.getUpdatedSharedEventData)(this.profileName),n={userSettings:t,enterpriseContext:(0,d.getEnterpriseContextForProfile)(t,this.profileName)}
if(this.landingPageUrl&&(0,h.getUpdatedUserAdvertisingOptIn)(n)&&y.TRACKING_IDS.find((function(t){return e.landingPageUrl.includes(t)}))){var r=(0,l.isProd)()?".linkedin.com":"linkedin-ei.com"
v.default.document.cookie="l_page="+this.landingPageUrl+";domain="+r+";path=/;max-age="+y.L_PAGE_COOKIE_LIFETIME}}},{key:"_loadContainerTag",value:function(e,t){var n=this
c.cleanUpGlobalUTagReferences()
var a=(0,d.getUserSettings)().then((function(e){(0,i.default)(e).forEach((function(t){(0,d.addSharedEventData)(e[t],t)})),m.default&&n._setLandingPageCookie()})).catch((function(e){console.error("Unable to get user settings while calling loading container tag",e)})),s=c.loadScript(c.constructContainerTagUrl(this.profileName,this.cacheBusterInterval))
o.default.all([a,s]).then((function(){n.isContainerTagLoaded=!0,n._uTag=c.getUTagFromGlobalReference(),c.createLoadRulesCompletedListenerForUTag(n._uTag),n._processQueuedEvents()
var t=u.buildTmsLoadEvent()
"object"===(0,r.default)(n.tracking2Instance)&&u.fireTrackingEvent(n.tracking2Instance,t),e(t)})).catch((function(e){console.error("Unable to complete loading container tag",e),t()}))}},{key:"_shouldInitialize",value:function(){return!p.default}},{key:"_shouldProcessEvent",value:function(e){var t=this
return p.default?o.default.resolve(!1):this.isAllowlistingEnabled?new o.default((function(n){t._allowlistReadyPromise.then((function(){n(t._isEventAllowlisted(e))}))})):o.default.resolve(!0)}},{key:"_isEventAllowlisted",value:function(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}},{key:"_isEventAllowlistedByPageKey",value:function(e){return void 0!==this.allowlist.pageKey[e.pageKey]}},{key:"_isEventAllowlistedByControlUrn",value:function(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}},{key:"addValuesToAllowlist",value:function(e,t){var n=this
"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach((function(t){n.allowlist[e][t]=!0}))}},{key:"_processQueuedEvents",value:function(){this.isContainerTagLoaded?c.processQueuedEvents(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}},{key:"_fireAuditEvent",value:function(){var e=u.buildTagFireAuditEvent(this._uTag)
return void 0!==this.tracking2Instance&&void 0!==e&&u.fireTrackingEvent(this.tracking2Instance,e),e}},{key:"_createCallbackForAuditEvent",value:function(e){var t=this
return function(){var n=t._fireAuditEvent()
"function"==typeof e&&e(n)}}},{key:"_checkForCookieConsent",value:function(){var e=this,t=(0,d.getEnterpriseContextForProfile)(d.sharedEventData,this.profileName);(0,g.getCookieConsent)(null,void 0,t).consent.consentAvailable&&!x?(0,f.shouldRefreshOnCookieConsent)(S.payloads)?location.reload():this._refireTracking():T=setTimeout((function(){e._checkForCookieConsent()}),y.COOKIE_CONSENT_CHECK_INTERVAL)}},{key:"_refireTracking",value:function(){var e=this
S.payloads&&S.payloads.forEach((function(t){var n=t.data,r=t.callback
n.cookieConsentGiven=!0,e.trackPageView(n,r)}))}},{key:"_savePayloadForRefire",value:function(e,t){var n=this
if(m.default){x=!1
var r=S,i=r.payloads,o=void 0===i?[]:i,a=r.url,s=location.href,c={data:e,callback:t},u=s!==a?[]:o
u.push(c),S={url:s,payloads:u},T||(T=setTimeout((function(){n._checkForCookieConsent()}),y.COOKIE_CONSENT_CHECK_INTERVAL))}}},{key:"trackPageView",value:function(e,t){var n=this,r=(0,d.getEnterpriseContextForProfile)(d.sharedEventData,this.profileName)
return(0,g.getCookieConsent)(null,void 0,r).consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then((function(r){r&&(n._queue.push({isControlInteraction:!1,data:e,callback:n._createCallbackForAuditEvent(t)}),n._processQueuedEvents())}))}},{key:"trackControlInteraction",value:function(e,t){var n=this
return this._shouldProcessEvent(e).then((function(r){r&&(n._queue.push({isControlInteraction:!0,data:e,callback:n._createCallbackForAuditEvent(t)}),n._processQueuedEvents())}))}}]),e}()
t.addSharedEventData=d.addSharedEventData,t.getInstanceForProfile=function(e){var t=_[e]
return t&&c.setGlobalUTagReference(t._uTag),t},t.teardownInstanceForProfile=function(e){delete _[e]},t.default=C},function(e,t,n){e.exports={default:n(65),__esModule:!0}},function(e,t,n){n(42),n(50),e.exports=n(34).f("iterator")},function(e,t,n){var r=n(26),i=n(27)
e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length
return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict"
var r=n(46),i=n(19),o=n(22),a={}
n(8)(a,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(3),i=n(4),o=n(20)
e.exports=n(5)?Object.defineProperties:function(e,t){i(e)
for(var n,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n])
return e}},function(e,t,n){var r=n(16)
e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(11),i=n(48),o=n(71)
e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u)
if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0
return!e&&-1}}},function(e,t,n){var r=n(26),i=Math.max,o=Math.min
e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(10),i=n(33),o=n(30)("IE_PROTO"),a=Object.prototype
e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict"
var r=n(74),i=n(75),o=n(15),a=n(11)
e.exports=n(43)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++
return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(77),__esModule:!0}},function(e,t,n){n(78),n(53),n(84),n(85),e.exports=n(2).Symbol},function(e,t,n){"use strict"
var r=n(0),i=n(10),o=n(5),a=n(7),s=n(45),c=n(79).KEY,u=n(14),l=n(31),d=n(22),f=n(21),h=n(1),p=n(34),g=n(35),m=n(80),v=n(81),y=n(4),b=n(9),E=n(33),_=n(11),T=n(29),S=n(19),x=n(46),C=n(82),A=n(83),w=n(51),I=n(3),R=n(20),k=A.f,O=I.f,M=C.f,N=r.Symbol,P=r.JSON,D=P&&P.stringify,U="prototype",L=h("_hidden"),j=h("toPrimitive"),F={}.propertyIsEnumerable,B=l("symbol-registry"),q=l("symbols"),H=l("op-symbols"),G=Object[U],K="function"==typeof N&&!!w.f,V=r.QObject,z=!V||!V[U]||!V[U].findChild,W=o&&u((function(){return 7!=x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=k(G,t)
r&&delete G[t],O(e,t,n),r&&e!==G&&O(G,t,r)}:O,X=function(e){var t=q[e]=x(N[U])
return t._k=e,t},Q=K&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},Y=function(e,t,n){return e===G&&Y(H,t,n),y(e),t=T(t,!0),y(n),i(q,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=x(n,{enumerable:S(0,!1)})):(i(e,L)||O(e,L,S(1,{})),e[L][t]=!0),W(e,t,n)):O(e,t,n)},$=function(e,t){y(e)
for(var n,r=m(t=_(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n])
return e},J=function(e){var t=F.call(this,e=T(e,!0))
return!(this===G&&i(q,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(q,e)||i(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=_(e),t=T(t,!0),e!==G||!i(q,t)||i(H,t)){var n=k(e,t)
return!n||!i(q,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=M(_(e)),r=[],o=0;n.length>o;)i(q,t=n[o++])||t==L||t==c||r.push(t)
return r},te=function(e){for(var t,n=e===G,r=M(n?H:_(e)),o=[],a=0;r.length>a;)!i(q,t=r[a++])||n&&!i(G,t)||o.push(q[t])
return o}
K||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!")
var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(H,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),W(this,e,S(1,n))}
return o&&z&&W(G,e,{configurable:!0,set:t}),X(e)},s(N[U],"toString",(function(){return this._k})),A.f=Z,I.f=Y,n(52).f=C.f=ee,n(36).f=J,w.f=te,o&&!n(13)&&s(G,"propertyIsEnumerable",J,!0),p.f=function(e){return X(h(e))}),a(a.G+a.W+a.F*!K,{Symbol:N})
for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++])
for(var ie=R(h.store),oe=0;ie.length>oe;)g(ie[oe++])
a(a.S+a.F*!K,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=N(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!")
for(var t in B)if(B[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!K,"Object",{create:function(e,t){return void 0===t?x(e):$(x(e),t)},defineProperty:Y,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te})
var ae=u((function(){w.f(1)}))
a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return w.f(E(e))}}),P&&a(a.S+a.F*(!K||u((function(){var e=N()
return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++])
if(n=t=r[1],(b(t)||void 0!==e)&&!Q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,D.apply(P,r)}}),N[U][j]||n(8)(N[U],j,N[U].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(21)("meta"),i=n(9),o=n(10),a=n(3).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(14)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e
if(!o(e,r)){if(!c(e))return"F"
if(!t)return"E"
l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0
if(!t)return!1
l(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&c(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(20),i=n(51),o=n(36)
e.exports=function(e){var t=r(e),n=i.f
if(n)for(var a,s=n(e),c=o.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a)
return t}},function(e,t,n){var r=n(16)
e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(11),i=n(52).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[]
e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(36),i=n(19),o=n(11),a=n(29),s=n(10),c=n(44),u=Object.getOwnPropertyDescriptor
t.f=n(5)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){n(35)("asyncIterator")},function(e,t,n){n(35)("observable")},function(e,t,n){n(87),e.exports=n(2).Object.keys},function(e,t,n){var r=n(33),i=n(20)
n(88)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(7),i=n(2),o=n(14)
e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={}
a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){n(53),n(42),n(50),n(90),n(102),n(103),e.exports=n(2).Promise},function(e,t,n){"use strict"
var r,i,o,a,s=n(13),c=n(0),u=n(17),l=n(54),d=n(7),f=n(9),h=n(18),p=n(91),g=n(92),m=n(55),v=n(56).set,y=n(97)(),b=n(38),E=n(57),_=n(98),T=n(58),S="Promise",x=c.TypeError,C=c.process,A=C&&C.versions,w=A&&A.v8||"",I=c[S],R="process"==l(C),k=function(){},O=i=b.f,M=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(1)("species")]=function(e){e(k,k)}
return(R||"function"==typeof PromiseRejectionEvent)&&e.then(k)instanceof t&&0!==w.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t
return!(!f(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0
var n=e._c
y((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain
try{s?(i||(2==e._h&&L(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(x("Promise-chain cycle")):(o=N(n))?o.call(n,c,u):c(n)):u(r)}catch(e){l&&!a&&l.exit(),u(e)}};n.length>o;)a(n[o++])
e._c=[],e._n=!1,t&&!e._h&&D(e)}))}},D=function(e){v.call(c,(function(){var t,n,r,i=e._v,o=U(e)
if(o&&(t=E((function(){R?C.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=R||U(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},U=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){v.call(c,(function(){var t
R?C.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},j=function(e){var t=this
t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},F=function(e){var t,n=this
if(!n._d){n._d=!0,n=n._w||n
try{if(n===e)throw x("Promise can't be resolved itself");(t=N(e))?y((function(){var r={_w:n,_d:!1}
try{t.call(e,u(F,r,1),u(j,r,1))}catch(e){j.call(r,e)}})):(n._v=e,n._s=1,P(n,!1))}catch(e){j.call({_w:n,_d:!1},e)}}}
M||(I=function(e){p(this,I,S,"_h"),h(e),r.call(this)
try{e(u(F,this,1),u(j,this,1))}catch(e){j.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(99)(I.prototype,{then:function(e,t){var n=O(m(this,I))
return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r
this.promise=e,this.resolve=u(F,e,1),this.reject=u(j,e,1)},b.f=O=function(e){return e===I||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!M,{Promise:I}),n(22)(I,S),n(100)(S),a=n(2)[S],d(d.S+d.F*!M,S,{reject:function(e){var t=O(this)
return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!M),S,{resolve:function(e){return T(s&&this===a?I:this,e)}}),d(d.S+d.F*!(M&&n(101)((function(e){I.all(e).catch(k)}))),S,{all:function(e){var t=this,n=O(t),r=n.resolve,i=n.reject,o=E((function(){var n=[],o=0,a=1
g(e,!1,(function(e){var s=o++,c=!1
n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}))
return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=O(t),r=n.reject,i=E((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}))
return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!")
return e}},function(e,t,n){var r=n(17),i=n(93),o=n(94),a=n(4),s=n(48),c=n(95),u={},l={};(t=e.exports=function(e,t,n,d,f){var h,p,g,m,v=f?function(){return e}:c(e),y=r(n,d,t?2:1),b=0
if("function"!=typeof v)throw TypeError(e+" is not iterable!")
if(o(v)){for(h=s(e.length);h>b;b++)if((m=t?y(a(p=e[b])[0],p[1]):y(e[b]))===u||m===l)return m}else for(g=v.call(e);!(p=g.next()).done;)if((m=i(g,y,p.value,t))===u||m===l)return m}).BREAK=u,t.RETURN=l},function(e,t,n){var r=n(4)
e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return
throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(15),i=n(1)("iterator"),o=Array.prototype
e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(54),i=n(1)("iterator"),o=n(15)
e.exports=n(2).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t){e.exports=function(e,t,n){var r=void 0===n
switch(t.length){case 0:return r?e():e.call(n)
case 1:return r?e(t[0]):e.call(n,t[0])
case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1])
case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2])
case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(0),i=n(56).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(16)(a)
e.exports=function(){var e,t,n,u=function(){var r,i
for(c&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next
try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()}
if(c)n=function(){a.nextTick(u)}
else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0)
n=function(){l.then(u)}}else n=function(){i.call(r,u)}
else{var d=!0,f=document.createTextNode("")
new o(u).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var i={fn:r,next:void 0}
t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var r=n(0).navigator
e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(8)
e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i])
return e}},function(e,t,n){"use strict"
var r=n(0),i=n(2),o=n(3),a=n(5),s=n(1)("species")
e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e]
a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(1)("iterator"),i=!1
try{var o=[7][r]()
o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1
var n=!1
try{var o=[7],a=o[r]()
a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict"
var r=n(7),i=n(2),o=n(0),a=n(55),s=n(58)
r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e
return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict"
var r=n(7),i=n(38),o=n(57)
r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e)
return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict"
t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict"
t.__esModule=!0
var r,i=(r=n(106))&&r.__esModule?r:{default:r}
t.default=function(){function e(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),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(107),__esModule:!0}},function(e,t,n){n(108)
var r=n(2).Object
e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(7)
r(r.S+r.F*!n(5),"Object",{defineProperty:n(3).f})},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0
var r,i=(r=n(6))&&r.__esModule?r:{default:r}
t.get=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3]
if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.")
var o=new i.default.XMLHttpRequest
o.withCredentials=r,o.open("GET",e,!0),o.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},o.send()}},function(e,t,n){"use strict";(function(e){var r=n(111),i=n(112),o=n(113)
function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length")
return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n)
if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string")
return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number')
return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds")
if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds")
return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding')
var r=0|p(t,n),i=(e=s(e,r)).write(t,n)
return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length)
return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t)
if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number')
if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0
return e}function f(e,t){var n=t.length<0?0:0|h(t.length)
e=s(e,n)
for(var r=0;r<n;r+=1)e[r]=255&t[r]
return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes")
return 0|e}function p(e,t){if(c.isBuffer(e))return e.length
if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength
"string"!=typeof e&&(e=""+e)
var n=e.length
if(0===n)return 0
for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n
case"utf8":case"utf-8":case void 0:return B(e).length
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n
case"hex":return n>>>1
case"base64":return q(e).length
default:if(r)return B(e).length
t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1
if((void 0===t||t<0)&&(t=0),t>this.length)return""
if((void 0===n||n>this.length)&&(n=this.length),n<=0)return""
if((n>>>=0)<=(t>>>=0))return""
for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n)
case"utf8":case"utf-8":return A(this,t,n)
case"ascii":return I(this,t,n)
case"latin1":case"binary":return R(this,t,n)
case"base64":return C(this,t,n)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n)
default:if(r)throw new TypeError("Unknown encoding: "+e)
e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t]
e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1
if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1
n=e.length-1}else if(n<0){if(!i)return-1
n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i)
if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i)
throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,c=t.length
if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1
a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1
for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(u(e,o+f)!==u(t,f)){d=!1
break}if(d)return o}return-1}function b(e,t,n,r){n=Number(n)||0
var i=e.length-n
r?(r=Number(r))>i&&(r=i):r=i
var o=t.length
if(o%2!=0)throw new TypeError("Invalid hex string")
r>o/2&&(r=o/2)
for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16)
if(isNaN(s))return a
e[n+a]=s}return a}function E(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function _(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n))
return t}(t),e,n,r)}function T(e,t,n,r){return _(e,t,n,r)}function S(e,t,n,r){return H(q(t),e,n,r)}function x(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r)
return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n)
for(var r=[],i=t;i<n;){var o,a,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1
if(i+d<=n)switch(d){case 1:u<128&&(l=u)
break
case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c)
break
case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c)
break
case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length
if(t<=w)return String.fromCharCode.apply(String,e)
for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=w))
return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1)
return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers")
if(e===t)return 0
for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i]
break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0
default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers')
if(0===e.length)return c.alloc(0)
var n
if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length
var r=c.allocUnsafe(t),i=0
for(n=0;n<e.length;++n){var a=e[n]
if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers')
a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length
if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits")
for(var t=0;t<e;t+=2)m(this,t,t+1)
return this},c.prototype.swap32=function(){var e=this.length
if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits")
for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2)
return this},c.prototype.swap64=function(){var e=this.length
if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits")
for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4)
return this},c.prototype.toString=function(){var e=0|this.length
return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer")
return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES
return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer")
if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index")
if(r>=i&&t>=n)return 0
if(r>=i)return-1
if(t>=n)return 1
if(this===e)return 0
for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),d=0;d<s;++d)if(u[d]!==l[d]){o=u[d],a=l[d]
break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0
else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0
else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")
t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t
if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds")
r||(r="utf8")
for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n)
case"utf8":case"utf-8":return E(this,e,t,n)
case"ascii":return _(this,e,t,n)
case"latin1":case"binary":return T(this,e,t,n)
case"base64":return S(this,e,t,n)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n)
default:if(o)throw new TypeError("Unknown encoding: "+r)
r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}}
var w=4096
function I(e,t,n){var r=""
n=Math.min(e.length,n)
for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i])
return r}function R(e,t,n){var r=""
n=Math.min(e.length,n)
for(var i=t;i<n;++i)r+=String.fromCharCode(e[i])
return r}function k(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i)
for(var o="",a=t;a<n;++a)o+=(r=e[a])<16?"0"+r.toString(16):r.toString(16)
return o}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1])
return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint")
if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance')
if(t>i||t<o)throw new RangeError('"value" argument is out of bounds')
if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1)
for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1)
for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range")
if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||U(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||U(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length
if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype
else{var i=t-e
n=new c(i,void 0)
for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length)
for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i
return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length)
for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i
return r},c.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length)
for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i
return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length)
for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i
return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||M(e,2,this.length)
var n=this[e]|this[e+1]<<8
return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||M(e,2,this.length)
var n=this[e+1]|this[e]<<8
return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0)
var i=1,o=0
for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255
return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0)
var i=n-1,o=1
for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255
return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1)
N(this,e,t,n,i-1,-i)}var o=0,a=1,s=0
for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255
return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1)
N(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0
for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255
return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0
if(0===e.length||0===this.length)return 0
if(t<0)throw new RangeError("targetStart out of bounds")
if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds")
if(r<0)throw new RangeError("sourceEnd out of bounds")
r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n)
var i,o=r-n
if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n]
else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n]
else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t)
return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0)
i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string")
if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255)
if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index")
if(n<=t)return this
var o
if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e
else{var a=c.isBuffer(e)?e:B(new c(e,r).toString()),s=a.length
for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this}
var F=/[^+\/0-9A-Za-z-_]/g
function B(e,t){var n
t=t||1/0
for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189)
continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189)
continue}i=n
continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n
continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189)
if(i=null,n<128){if((t-=1)<0)break
o.push(n)}else if(n<2048){if((t-=2)<0)break
o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break
o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point")
if((t-=4)<0)break
o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return""
for(;e.length%4!=0;)e+="="
return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i]
return i}}).call(t,n(41))},function(e,t,n){"use strict"
t.byteLength=function(e){var t=u(e),n=t[0],r=t[1]
return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a
for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t
return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(l(e,s,s+a>c?c:s+a))
return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}
for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s
function u(e){var t=e.length
if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4")
var n=e.indexOf("=")
return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o])
return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d]
for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u
else{if(o===c)return a?NaN:1/0*(h?-1:1)
a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0
for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},function(e,t){var n={}.toString
e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.buildTagFireAuditEvent=t.buildTmsLoadEvent=t.fireTrackingEvent=void 0
var r,i=(r=n(25))&&r.__esModule?r:{default:r},o=s(n(12)),a=s(n(59))
function s(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function c(e,t){return"urn:li:externalMarketingTag:("+function(e){var t=e.data["ut.profile"],n=e.cfg.v
return"urn:li:tagManagementSystemProfile:("+o.TAG_MANAGEMENT_SYSTEM_USED+","+t+","+n+")"}(e)+","+parseInt(t)+")"}t.fireTrackingEvent=function(e,t){!function(e){return"object"===(void 0===e?"undefined":(0,i.default)(e))&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)},t.buildTmsLoadEvent=function(){return{info:{name:o.CUSTOM_EVENTS_TMS_LOAD_EVENT},body:{header:{},requestHeader:{}}}},t.buildTagFireAuditEvent=function(e){var t=a.getTagsFired(e).map((function(t){return function(e,t){return{tagUrn:c(e,t)}}(e,t)}))
if(0!==t.length)return{info:{name:o.CUSTOM_EVENTS_TAG_FIRE_AUDIT_EVENT},body:{header:{},requestHeader:{},tags:t}}}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var r=o(n(40)),i=o(n(6))
function o(e){return e&&e.__esModule?e:{default:e}}var a=r.default&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(i.default.navigator.userAgent)
t.default=a}])},e.exports=t()},12965:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.decorate=void 0
const r=n(69808)
function i(e){return e}function o(){return""}t.decorate=function(e,t,n){let a=n
if(!e||!(e.begin||e.end||e.segment))return a
if(Array.isArray(t)&&t.length){const s=new r.StringView(n),c=s.length,u="function"==typeof e.begin?e.begin:o,l="function"==typeof e.end?e.end:o,d="function"==typeof e.segment?e.segment:i,f=[],h=t,p=[]
let g,m=c
for(g=c;g>=0;g--){let t,n
for(n=f.length>0&&f[f.length-1];f.length&&n&&g===n.start;)g!==m&&p.push(d.call(e,s.substring(g,m).toString())),p.push(u.call(e,n)),m=g,f.pop(),n=f[f.length-1]
for(t=h.length>0&&h[h.length-1];h.length&&t&&g===t.start+t.length;)g!==m&&p.push(d.call(e,s.substring(g,m).toString())),p.push(l.call(e,t)),m=g,f.push(h.pop()),t=h[h.length-1]
for(n=f.length>0&&f[f.length-1];f.length&&n&&g===n.start;)g!==m&&p.push(d.call(e,s.substring(g,m).toString())),p.push(u.call(e,n)),m=g,f.pop(),n=f[f.length-1]
0===g&&m!==g&&p.push(d(s.substring(g,m).toString()))}a=p.reverse().join("")}else a="function"==typeof e.segment?e.segment(a):a
return a}},97034:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.decorate=t.StringView=void 0
var r=n(69808)
Object.defineProperty(t,"StringView",{enumerable:!0,get:function(){return r.StringView}})
var i=n(12965)
Object.defineProperty(t,"decorate",{enumerable:!0,get:function(){return i.decorate}})},69808:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.StringView=void 0
const n=String.fromCharCode
class r{constructor(e){Array.isArray(e)?(this.str=null,this.codePoints=e):(this.str=e,this.codePoints=function(e){let t,n,r=[],i=0,o=e.length
for(;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t)
return r}(e)),this.length=this.codePoints.length}substring(e,t){const n=this.length
return 0===t?new r(""):((isNaN(e)||e<0)&&(e=0),(isNaN(t)||t<0)&&(t=n),e>n&&(e=n),t>n&&(t=n),t<e&&([t,e]=[e,t]),new r(e===t?"":this.codePoints.slice(e,t)))}toString(){return null!==this.str?this.str:this.codePoints.map((function(e){let t=""
return e>65535&&(t+=n((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=n(e),t})).join("")}}t.StringView=r},23484:(e,t,n)=>{var r=n(97034)
e.exports=r},87118:(e,t)=>{var n
void 0===(n=function(){return function(e){var t=window.location.origin,n={width:"100%",iframeId:"payments-iframe",iframeCartPath:"/payments/embed",iframeOrderTokenPath:"/payments/order/token/embed",iframePaymentPath:"/payments/v2/purchase",iframeTitle:"Linkedin payments embedded checkout",load:function(){},update:function(){},cancel:function(){},cartTaxed:function(){},showPMPanel:function(){},handleShow3dsAuthentication:function(){},handleSubmit3dsAuthentication:function(){},handleSetProcessingModal:function(){}},r={left:"0",height:"100%",position:"fixed",top:"0",width:"100%","z-index":"10000"},i=["https://www.linkedin-ei.com","https://www.linkedin-ei.cn","https://www.linkedin.com","https://www.linkedin.cn","https://staging.slideshare.com","https://www.slideshare.net","https://pemberly.www.linkedin-ei.com:4443","https://pemberly.www.linkedin-ei.cn:4443","https://pemberly.www.linkedin.com:4443","https://pemberly.www.linkedin.cn:4443"],o=["height"],a=["error.session.timeout","error.purchase.generic","error.unknown","error.purchase.enter_valid_vat","error.purchase.no_confirmed_email_address","harderror"],s=this
this.init=function(){var t,r
if(this.config=e,!this._isProperConfig(e))throw new Error("Config is incomplete. Must have success, error, sessionTimeout, and iframeParentId. Must have cartId or accessToken or have viewType, customerUrn and routingType.")
if(!(t=document.getElementById(this.config.iframeParentId)))throw new Error('Cannot find an element with an ID of "'+this.config.iframeParentId+'"')
this.clearIframeParentContainer(),this.config=this.setDefaults(n,this.config),this.iframe=document.createElement("iframe"),this.iframe.setAttribute("width",this.config.width),this.iframe.setAttribute("id",this.config.iframeId),this.iframe.setAttribute("title",this.config.iframeTitle),this.iframe.style.border=0,r=this.config.cartId?this.config.iframeCartPath+"?_cartId="+this.config.cartId:this.config.accessToken?this.config.iframeOrderTokenPath+"?accessToken="+this.config.accessToken+"&viewType=PAYMENTFORM":`${this.config.iframePaymentPath}?viewType=${this.config.viewType}&owner=${this.config.customerUrn}&routingType=${this.config.routingType}`,this.iframe.setAttribute("src",r),t.appendChild(this.iframe),this.attachEventListeners()},this.clearIframeParentContainer=function(){document.getElementById(this.config.iframeParentId).innerHTML=""},this.removeEventListener=function(){window.removeEventListener("message",this.receiveMessage,!1)},this.attachEventListeners=function(){this.iframe.contentWindow.addEventListener("message",this.receiveMessage,!1),window.addEventListener("message",this.receiveMessage,!1)},this.receiveMessage=function(e){var t
if(e.origin&&-1!==i.indexOf(e.origin)&&(t=s.config,e.data&&e.data.type))switch(e.data.type){case"success":s._handleSuccessEvt(e,t)
break
case"success:orderV5Auth":s._handleOrderV5AuthSuccessEvt(e,t)
break
case"error":s._handleErrorEvt(e,t)
break
case"fullscreen:collapse":s._handleFullscreenCollapseEvt()
break
case"fullscreen:expand":s._handleFullscreenExpandEvt()
break
case"load":s._handleLoadEvt(e,t)
break
case"cancel":s._handleCancelEvt(e,t)
break
case"update":s._handleUpdateEvt(e,t)
break
case"action:carttaxed":s._handleCartTaxedEvent(e,t)
break
case"action:showpaymentmethodpanel":s._handleShowPMPanelEvent(e,t)
break
case"action:show3dsauthentication":case"dialog:two_factor_auth:open":s._handleShow3dsAuthentication(e,t)
break
case"action:submit3dsauthentication":s._handleSubmit3dsAuthentication(e,t)
break
case"set:processingModal":s._handleSetProcessingModal(e,t)
break
case"sessiontimeout":s._handleSessionTimeoutErrorEvt(e,t)}},this.setLIThemeForIframe=function(e){this.iframe.contentWindow.postMessage({type:"set:theme"},t)},this.buyJobsCart=function(){var e={type:"submit"}
if(!this.config||!this.config.cartId)throw new Error("Parameter cartId: "+cartId+" does not match the checkout cartId: "+this.config.cartId)
e.cartId=this.config.cartId,this.iframe.contentWindow.postMessage(e,t)},this.buyCart=function(e,n){var r={type:"submit"}
if(this.config.accessToken&&e.fullName&&e.title)r.accessToken=this.config.accessToken,r.fullName=e.fullName,r.title=e.title,e.enterpriseProfileEmail&&(r.enterpriseProfileEmail=e.enterpriseProfileEmail),r.OrderV5PlaceOrderFlow=n||!1
else if(this.config.accessToken&&(!e.fullName||!e.title))throw new Error("Missing fields accessToken, fullName, and title.")
this.iframe.contentWindow.postMessage(r,t)},this.setDefaults=function(e,t){for(key in e)t[key]||(t[key]=e[key])
return t},this._handleErrorEvt=function(e,t){var n=e.data.value
if(!n||!n.errorCode||-1===a.indexOf(n.errorCode))throw new Error('Invalid data sent for "error" call')
t.error(n)},this._handleSessionTimeoutErrorEvt=function(e,t){var n=e.data.value
if(!n||!n.errorCode||0!==a.indexOf(n.errorCode))throw new Error('Invalid data sent for "sessiontimeout" call')
t.sessionTimeout(n)},this._handleFullscreenCollapseEvt=function(){void 0!==s.iframe.style.cssText?s.iframe.style.cssText=s.previousStyles:s.setAttribute("style",s.previousStyles),s.previousStyles=""},this._handleFullscreenExpandEvt=function(e,t){s.newFullscreenStyles=s.newFullscreenStyles||s._toStyleString(r),void 0!==s.iframe.style.cssText?(s.previousStyles=s.iframe.style.cssText,s.iframe.style.cssText+=s.newFullscreenStyles):(s.previousStyles=s.iframe.getAttribute("style"),s.iframe.setAttribute("style",s.previousStyles+s.newFullscreenStyles))},this._handleLoadEvt=function(e,t){t.load()},this._handleCancelEvt=function(e,t){t.cancel()},this._handleSuccessEvt=function(e,t){t.success()},this._handleOrderV5AuthSuccessEvt=function(e,t){var n=e.data&&e.data.value
n&&n.errorCode?this._handleErrorEvt(e,t):t.orderV5AuthSuccess(n)},this._handleUpdateEvt=function(e,t){var n=e.data.value
if(!n||!n.val||!n.attr||2!==Object.keys(n).length||-1===o.indexOf(n.attr))throw new Error('Invalid data sent for "update" call')
document.getElementById(t.iframeId).setAttribute(n.attr,n.val),t.update()},this._handleCartTaxedEvent=function(e,t){t.cartTaxed()},this._handleShowPMPanelEvent=function(e,t){t.showPMPanel()},this._handleShow3dsAuthentication=function(e,t){t.handleShow3dsAuthentication()},this._handleSubmit3dsAuthentication=function(e,t){t.handleSubmit3dsAuthentication()},this._handleSetProcessingModal=function(e,t){var n=e.data.value
t.handleSetProcessingModal(n)},this._toStyleString=function(e){var t,n=""
for(t in e)n+=t+": "+e[t]+"; "
return n.substring(0,n.length-1)},this._isProperConfig=function(e){const t=e.success&&e.error&&e.iframeParentId,n=e.cartId||e.accessToken,r=e.viewType&&e.customerUrn&&e.routingType
return t&&(n||r)},this.init()}}.apply(t,[]))||(e.exports=n)},78789:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getGraphQLSource=t.getGraphQLQueryId=t.isGraphQLQuery=t.isGraphQLFragment=t.getQueryTokenByQuerySource=t.lookup=t.register=t.resetRegisteredQueries=void 0
const n=new Map
function r(e,t,n){if(e)return Object.freeze(Object.create(null))
if("query"===t.kind||"mutation"===t.kind||"subscription"===t.kind){const e=t
if(e.ast)return Object.assign(Object.create(null),e.ast,n)}return Object.freeze(Object.assign(Object.create(null),n))}function i(e){return n.get(e)}function o(e,t){const n=i(e)
if(void 0===n)throw new Error(`No GraphQL query or fragment metadata associated with the given token: ${JSON.stringify(e)}`)
return n.kind===t}t.resetRegisteredQueries=function(){n.clear()},t.register=function(e,t){let i
return i=e?r(!0,t):"query"===t.kind||"mutation"===t.kind?r(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):r(!1,t,{$debug:{name:t.name,kind:t.kind}}),n.set(i,t),i},t.lookup=i,t.getQueryTokenByQuerySource=function(e){const t=[]
for(const[r,i]of n)"query"!==i.kind&&"mutation"!==i.kind||i.source!==e||t.push(r)
if(t.length>1)throw new Error("Query source is found in multiple query files")
return t[0]},t.isGraphQLFragment=function(e){return o(e,"fragment")},t.isGraphQLQuery=function(e){return o(e,"query")},t.getGraphQLQueryId=function(e){const t=i(e)
if(void 0===t||"query"!==t.kind&&"mutation"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
return t.id},t.getGraphQLSource=function(e){const t=i(e)
if(void 0===t||"query"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
if(!t.source)throw new Error(`No GraphQL source associated with the given token: ${JSON.stringify(e)}`)
return t.source}},94083:function(e,t){!function(e){"use strict"
function t(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 n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{}
n%2?t(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}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,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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)||s(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 a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 s(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function c(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 u=null,l=null,d=null
window&&window.t8&&(u=window.t8,Object.keys(u).length&&(l=new u.CurrencyFormatter,d=new u.NumberFormatter))
var f=l,h=d,p=null,g=null
function m(){throw new Error("You need to inject a ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""," formatter or have t8 available as a global, neither were found"))}var v={currency:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var r=t[0],i=t[1],o=t[2]
return p?p(r,i,o):(f||m("currency"),f.format(r,o,i))},number:function(){var e
return g?g.apply(void 0,arguments):(h||m("number"),(e=h).format.apply(e,arguments))}}
function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
if("number"===e){var i=n[0],o=void 0===i?"":i,a=n[1]
return v[e](o,a)}if("currency"===e){var s=n[0],c=n[1],u=n[2]
return v[e](s,c,u)}return""}function b(e){return"number"==typeof e?!isNaN(e-parseFloat(e.toString())):"string"==typeof e}function E(e,t){if(!b(e))return""
var n=o(e.toString().split("."),2),r=n[0],i=n[1]
r&&(r=r.replace(/(\d)(?=(\d{2})+\d$)/g,"$1,"))
var a=r
return t&&(a="".concat(t).concat(r)),"string"==typeof i&&(a="".concat(a,".").concat(i)),a||""}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US"
return"en_IN"===t&&e?E(e):y("number",e,t)}var T="12345678.91",S={},x={en_US:["K","M","B"],zh_CN:["K","M","B"],en_IN:["K","Lakh","cr"]},C=["en_US","zh_CN"],A=["en_IN"],w=function(e){return Math.pow(10,3*(e+1))},I=function(e){return 0===e?1e3:Math.pow(10,2*(e+1.5))},R=function(){return Number.POSITIVE_INFINITY}
function k(e){return x[e]||[]}function O(e){return C.indexOf(e)>-1?w:A.indexOf(e)>-1?I:R}function M(e){return[",","."].reduce((function(t,n){return 2===e.split(n).length?n:t}))}function N(e,t){return 4===e.split(t).length?"india":"thousands"}function P(e,t){var n=function(e){return[",","."," "," ","'"].reduce((function(t,n){return e.split(n).length>=3?n:t}))}(e)
return{delimiter:n,radixMark:M(e),delimiterStyle:N(e,n),abbreviations:k(t),abbreviateOn:O(t)}}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=e,n=S[t]
if(n)return n
var r=P(_(T,e),e)
return S[t]=r,r}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=[".",",","'"]
return t.splice(t.indexOf(e),1),t}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=U(e),n=[].concat(a(t),["s"]).join("\\")
return new RegExp("([^,\\.\\d]*)([".concat(n,"\\d]*\\d+)(\\").concat(e,"?)(\\d*)(\\D*)"))}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=["","","","",""]
if(!b(e))return n
var r=L(t).exec(e)
if(!r)return n
r.shift()
var i=function(e){return e||""}
return n[0]=i(r[0]),n[1]=i(r[1]),n[2]=i(r[2]),n[3]=i(r[3]),n[4]=i(r[4]),n}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).keepTrailingRadixMark,i=void 0!==r&&r
if(!b(e))return""
var a,s=o(j(e.toString(),t),5),c=s[0],u=s[1],l=s[2],d=s[3],f=s[4]
return b(n)&&""!==n&&(a=Number(n)),0===a?"".concat(c).concat(u).concat(f):i&&""===d?"".concat(c).concat(u).concat(l).concat(f):(a&&(d=d.slice(0,a)),""===d?"".concat(c).concat(u).concat(f):"".concat(c).concat(u).concat(l).concat(d).concat(f))}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD"
if("en_IN"===t){var r=W("en_US",n),i=r.currencySymbol,o=r.radixPlaces
return E(F(e,r.radixMark,o),i)}return y("currency",e,t,n)}var q="12345678.91",H={}
function G(e){return Number(e.substring(0,1))?"after":"before"}function K(e,t,n){var r=new RegExp("[^\\d\\".concat(t,"\\").concat(n,"\\s]+")),i=e.match(r)
return i?i[0]:""}function V(e,t){var n=t.replace("$","\\$"),r=new RegExp("\\s?".concat(n,"\\s?")),i=e.match(r)
return i?i[0]:t}function z(e,t){var n=new RegExp("\\".concat(t,"(\\d+)")),r=e.match(n)
return r&&r[1]?r[1].length:0}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",r="".concat(e,":").concat(t),i=H[r]
if(i)return i
var o=D(e),a=o.radixMark,s=o.delimiter,c=B(q,e,t),u=G(c),l=K(c,a,s),d=V(c,l),f=z(c,a),h=n(n({},o),{currencySymbolLocation:u,currencySymbol:l,currencySymbolWithWhitespace:d,radixPlaces:f})
return H[r]=h,h}var X=function(e){return e[e.Delete=46]="Delete",e[e.Backspace=8]="Backspace",e[e.Three=51]="Three",e}({})
function Q(e){return e===X.Delete||e===X.Backspace}function Y(e){var t=e.selectionStart,n=e.selectionEnd
return{start:t,end:n,length:(n||0)-(t||0)}}function $(e,t){return e.length-t.length}function J(e,t,n,r,i){return t?0:r&&e===X.Backspace?-i:n&&e===X.Delete?i:0}function Z(e,t){return e+t}function ee(e,t,n){return n.charAt(t-1)===e}function te(e,t,n){return n.charAt(t)===e}function ne(e,t,n){t!==n&&(e.selectionStart=n,e.selectionEnd=n)}function re(e){return e.replace(/\s/g,(function(){return" "}))}function ie(e){return"0".concat(e)}function oe(e,t,n,r){return t||""===t?F("".concat(e).concat(n).concat(t),n,r,{keepTrailingRadixMark:!0}):e}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2?arguments[2]:void 0,r=D(t).radixMark,i=n
if(b(i)&&""!==i&&(i=Number(i)),!e)return""
if("."===e)return 0===i?"":ie(r)
var a=o(e.split("."),2),s=a[0],c=a[1]
return oe(re(_(s,t)),c,r,n)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(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 ue(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}function fe(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)}function he(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)||ge(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 pe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ge(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 ge(e,t){if(e){if("string"==typeof e)return me(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)?me(e,t):void 0}}function me(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 ve="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",ye="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",be=["b","del","em","i","s","strong","sub","sup"],Ee=be.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"]),_e=[ve,"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("|"),Te=ue((function e(){se(this,e)}))
function Se(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var xe,Ce,Ae=(xe=/[&<>"'\u0000\\=]/g,Ce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"<22>","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(xe,(function(e){return function(e){return e in Ce}(e)?Ce[e]:e}))}),we=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'}
function i(e){if(function(e){return Se(r,e)}(e))return r[e]
if(!t)return e
t.innerHTML="&".concat(e,";")
var n=t[ye]
return r[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"<22>"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,r,o){return n?i(n):r||o?e(parseInt(r||o,r?16:10)||65533):"<22>"}))}}()
function Ie(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)}function Re(e){return/[<&]/.test(e)}var ke,Oe="[ \t\r\n]*"
function Me(e){e=Array.isArray(e)?e:[e]
var t,n,r,i=0,o="<(?!/?"
return o+="(?:",e.forEach((function(e,a){t=e.tags||Ee,n=e.attrs||_e,r=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=Oe,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+=")"+Oe+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function Ne(e){return Me({tags:e=e||Ee,checkUrlAttrs:!0})}function Pe(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup
return n&&n.length>0?!Ne(n).test(e):r?!Pe.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Pe.R_UNSAFE_HTML.test(e)}function De(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}Pe.R_UNSAFE_HTML=Ne(),Pe.R_UNSAFE_CUSTOM_ELEMENT=Me([{tags:Ee,checkUrlAttrs:!0},{tags:[(ke={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[ve,ke.attrs].join("|"),checkUrlAttrs:!1}])
var Ue={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,"",""]},Le=/<([\w:]+)/
function je(e){return e in Ue}function Fe(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=he(Le.exec(r)||["",""],2)[1]
if(void 0!==u){var l=u.toLowerCase(),d=je(l)&&Ue[l]||Ue._default
for(Ge(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,pe(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 Be(e,t,n){e=e.toString()
var r=t?function(e,t){var n={}
return e.replace(/\{([^}]+)\}/g,(function(e,r){if(Se(n,r))return n[r]
if(Se(t,r)){var i=t[r],o="string"==typeof i
if(!(o||i instanceof Te||"number"==typeof i))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return i?(i=o?"".concat(Ae(i)):i.toString(),n[r]=i,i):e}return e}))}(e,t):e,i=e
return Re(r)&&!Pe(r,n)&&(r=De(r),Ie("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}var qe=Be,He=Be
function Ge(e,t,n){var r=Be(t,n)
return r&&Re(r)?e.innerHTML=r:r&&(e[ye]=r),r}var Ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(n,e)
var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()
return function(){var n,r=le(e)
if(t){var i=le(this).constructor
n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
return fe(this,n)}}(n)
function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return se(this,n),(r=t.call(this)).options=i,r.tags=r.options.allowTags?r.options.allowTags.flat():[],r.str=e,r}return ue(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(Pe(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=De(e),Ie("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(Te),Ve=/ /g,ze=/[\s\u0000<>"]|%00/,We=/\\/,Xe=/([.]|%2e){2}/i,Qe=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 Ye(e){var t,n="invalid://"
if("string"!=typeof e)return Ie("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(Ie("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Ve,"+")),!Qe.test(t))return Ie("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(ze.test(t))return Ie("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),Xe.test(r))return Ie("jSecure Error: malicious data found in url path: "+i,"error"),n}catch(e){o=!0}if(o)return Ie("jSecure Error: malformed url path detected: "+i),n
if(We.test(i)||Xe.test(i))return Ie("jSecure Error: malicious data found in url path: "+i,"error"),n}return e}var $e={redirect:function(e){window&&(window.location.href=e)}},Je={ALLOWED_TAGS:Ee,FORMATTING_TAGS:be,htmlEncode:Ae,htmlUnencode:we,log:Ie,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){o+=e,t<a&&(i=n[t],o+=i instanceof Ke?i:Ae(i))})),"".concat(He(o))},parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Fe([e],t)
else{if(!Array.isArray(e))return e
n=Fe(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:qe,reEncode:function(e){return Ae(we(e))},_redirector:$e,redirect:function(e){var t=Ye(e)
t===e&&$e.redirect(t)},sanitizeHTML:He,sanitizeUrl:Ye,setElementContent:Ge,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 Ke(t,n)}}.sanitizeHTML
function Ze(e){if(e instanceof HTMLInputElement){var t=e.value.trim()
return t?Je(t):""}return""}function et(e){if(e instanceof HTMLInputElement)return e
throw new Error("Event target is not an HTMLInputElement")}function tt(e){var t=e.value
return t?Je(t):""}function nt(e,t){e.value=t}var rt=function(e){return function(e){return/[a-z][_-][A-Z]/g.test(e)}(e)},it=function(e){return D(e)},ot=function(e){return b(e)}
function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."
return st(e,t).replace(new RegExp("\\".concat(t),"g"),".")}function st(e){var t=new RegExp("((&#(39|92|61);)|[^\\d\\".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:".","])"),"g")
return e.replace(t,"")}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."
if(!ot(e))return""
var n=t
return rt(t)&&(n=it(t).radixMark),at(e,n)}function ut(e,t,n,r){if(function(e,t,n){return function(e,t,n){var r=n.indexOf(e),i=r+e.length
return t>r&&t<i}(e,t,n)||function(e,t,n){return t===n.indexOf(e)+e.length}(e,t,n)||function(e,t,n){return t===n.indexOf(e)}(e,t,n)}(e,n,r)){var i=r.indexOf(e),o=i+e.length
return"before"===t?o:i}return n}function lt(e,t,n){return"before"===n?"".concat(t).concat(e):"".concat(e).concat(t)}function dt(e,t){var n=e
return b(n)&&""!==n&&(n=Number(n)),n||0===n?n:t}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD",r=arguments.length>3?arguments[3]:void 0,i=W(t,n),a=i.currencySymbolWithWhitespace,s=i.currencySymbolLocation,c=i.radixMark,u=i.radixPlaces
if(!b(e))return""
var l=dt(r,u)
a=re(a)
var d=ct(e,c),f=o(j(d,"."),2)[1]
if(""===d)return a
if("."===d)return 0===l?a:lt(ie(c),a,s)
var h=o(j(F(e,c,l,{keepTrailingRadixMark:!0}),c),4),p=h[2],g=h[3],m=o(j(re(B(f,t,n)),c),5),v=m[0],y=m[1],E=m[4]
return"".concat(v).concat(y).concat(p).concat(g).concat(E)}function ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2?arguments[2]:void 0
return ae(ct(e,t),t,n)}function pt(e,t,n){for(var r=t.length-1;r>=0;r--){var i=n(r)
if(i<=e){var o=t[r]||"",a=e/i,s=Math.round(e/i)
return Math.floor(a)!==a&&r>0?[a.toFixed(1),o]:[s.toString(),o]}}return[e.toString(),""]}e.abbreviateNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US"
if(!b(e))return""
var n=D(t),r=n.radixMark,i=n.abbreviations,a=n.abbreviateOn
if(!i.length)return"".concat(e)
var s=o(j(e.toString(),r),5),c=s[0],u=s[1],l=s[2],d=s[3],f=s[4],h=o(pt(+ct(u,r),i,a),2),p=h[0],g=void 0===p?"":p,m=h[1]
return g=g.replace(".",r),m?"".concat(c).concat(g).concat(m).concat(f):"".concat(c).concat(g).concat(m).concat(l).concat(d).concat(f)},e.addNBSP=function(e){var t=String.fromCharCode(160)
return e.replace(/\s/g,(function(){return t}))},e.formatCurrency=B,e.formatMaskingCurrency=ft,e.formatMaskingNumber=ht,e.formatNumber=_,e.formatUnformattedCurrency=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD",r=arguments.length>3?arguments[3]:void 0
return ft(ae(e,t,r),t,n,r)},e.formatUnformattedNumber=ae,e.getAdjustedCursorPosition=Z,e.getCurrencyFormatData=W,e.getCursorAdjustment=$,e.getElementSelection=Y,e.getNumberFormatData=D,e.indiaNumberFormatter=E,e.injectCurrencyFormatter=function(e){var t=r(e)
if(!e||"function"!==t)throw new Error("Expected function for currency formatter, got ".concat(t))
p=e},e.injectNumberFormatter=function(e){var t=r(e)
if(!e||"function"!==t)throw new Error("Expected function for number formatter, got ".concat(t))
g=e},e.isCursorImmediatelyAfterCharacter=ee,e.isCursorImmediatelyBeforeCharacter=te,e.isNumberOrString=b,e.onCurrencyBlur=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?"en_US":n,i=t.currencyCode,o=void 0===i?"USD":i,a=t.beforeSetValue,s=t.setValue,c=t.afterSetValue,u=et(e.target),l=Ze(u),d=W(r,o).currencySymbol
if(""===l||l===d){var f=""
a&&"function"==typeof a&&a(f,f),s&&"function"==typeof s?s(f,f):nt(u,f),c&&"function"==typeof c&&c(f,f)}},e.onCurrencyFocus=function(e,t){var n=t.locale,r=void 0===n?"en_US":n,i=t.currencyCode,o=void 0===i?"USD":i,a=et(e.target)
if(""===Ze(a)){var s=W(r,o),c=s.currencySymbolWithWhitespace,u=s.currencySymbolLocation
nt(a,c=re(c))
var l=Y(a).start,d=null!=l?l:0
ne(a,d,ut(c,u,d,c))}},e.onCurrencyInput=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.locale,i=void 0===r?"en_US":r,o=n.currencyCode,a=void 0===o?"USD":o,s=n.maxRadixPlaces,c=void 0===s?"":s,u=n.setValue,l=n.beforeSetValue,d=n.afterSetValue,f=et(e.target),h=Ze(f),p=W(i,a),g=p.currencySymbolWithWhitespace,m=p.currencySymbolLocation,v=p.radixMark
g=re(g)
var y=ft(h,i,a,c),b=$(y,h),E=Z(null!==(t=Y(f).end)&&void 0!==t?t:0,b)
E=ut(g,m,E,y)
var _=ct(y,v)
l&&"function"==typeof l&&l(y,_),u&&"function"==typeof u?u(y,_):nt(f,y),ne(f,y.length,E),d&&"function"==typeof d&&d(y,_)},e.onCurrencyKeyDown=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?"en_US":n,i=t.currencyCode,o=void 0===i?"USD":i,a=e.which,s=et(e.target),c=tt(s),u=Y(s),l=u.start,d=u.length,f=null!=l?l:0,h=f,p=W(r,o),g=p.currencySymbolWithWhitespace,m=p.currencySymbolLocation,v=p.delimiter
g=re(g),v=re(v),Q(a)&&(h=Z(f,J(a,d,te(v,f,c),ee(v,f,c),v.length))),h=ut(g,m,h,c),d||ne(s,f,h)},e.onNumberInput=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?"en_US":n,i=t.maxRadixPlaces,o=void 0===i?"":i,a=t.setValue,s=t.beforeSetValue,c=t.afterSetValue,u=et(e.target),l=Ze(u),d=ct(l,r),f=ht(l,r,o),h=$(f,l),p=Y(u).end,g=Z(null!=p?p:0,h)
d=ct(f,r),s&&"function"==typeof s&&s(f,d),a&&"function"==typeof a?a(f,d):nt(u,f),ne(u,f.length,g),c&&"function"==typeof c&&c(f,d)},e.onNumberKeyDown=function(e,t){var n=t.locale,r=void 0===n?"en_US":n,i=e.which
if(Q(i)){var o=et(e.target),a=Ze(o),s=D(r).delimiter,c=Y(o),u=c.start,l=null!=u?u:0
ne(o,null!=l?l:0,Z(null!=l?l:0,J(i,c.length,te(s,l,a),ee(s,l,a),s.length)))}},e.parseNumber=j,e.removeFormatting=st,e.removeNBSP=re,e.resetCurrencyFormatter=function(){p=null},e.resetNumberFormatter=function(){g=null},e.toDecimalString=ct,e.trimFractionalNumbers=function(e,t,n,r){return F(e,D(t).radixMark,n,r)},e.trimRadixPlaces=F,Object.defineProperty(e,"__esModule",{value:!0})}(t)},61365:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1)
e.exports=function(e,n){var r=n||0,i=t
return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},27969:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(t){var n=new Uint8Array(16)
e.exports=function(){return t(n),n}}else{var r=new Array(16)
e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255
return r}}},43503:(e,t,n)=>{var r=n(27969),i=n(61365)
e.exports=function(e,t,n){var o=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var a=(e=e||{}).random||(e.rng||r)()
if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s]
return t||i(a)}},88970:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>re})
var r=n(39705),i=n.n(r)
class o{constructor(){const e=this.states={PENDING:!0,STARTED:!0,PAUSED:!0,COMPLETED:!1,FAILED:!1,CANCELLED:!1}
this.is={},Object.freeze(e),Object.keys(e).forEach((e=>{this.is[e]=!1,this[e]=e})),this.set(this.PENDING)}get(){return this.state}isFrozen(){return Object.isFrozen(this)}set(e){return e===this.state?Promise.resolve(e):Object.isFrozen(this)?Promise.reject(new Error(`[StateManager] cannot change immutable state '${this.state}' to '${e}'`)):this.states.hasOwnProperty(e)?(this.state&&(this.is[this.state]=!1),this.is[e]=!0,this.state=e,this.states[e]||Object.freeze(this),Promise.resolve(e)):Promise.reject(new Error(`[StateManager] cannot set invalid state: ${e}`))}}var a=n(43503),s=n.n(a)
class c extends(i()){constructor(){super(),this.reset()}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
this.progress=e-(this.loaded||0),this.loaded=e,this.completed=t,this.active=this.loaded-this.completed,this.emit("change",this)}add(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
this.set(this.loaded+e,this.completed+t)}done(){this.set(this.loaded,this.loaded)}reset(){this.progress=0,this.loaded=0,this.completed=0,this.active=0}}class u extends(i()){constructor(e){let{beforeSend:t,body:n,headers:r,method:i,mimeType:o,timeout:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(!e)throw new Error("[Request] an action must be provided")
super(),this.action=e,this.beforeSend=t,this.body=n,this.headers=r||{},this.method=i||"GET",this.mimeType=o,this.timeout=a,this.progress=new c,this.progress.on("change",(()=>{this.emit("progress",this.progress)})),this.reset()}send(){const e=this.request=new XMLHttpRequest
return this.attempts++,new Promise(((t,n)=>{const r=e=>{let{loaded:t}=e
this.progress.set(t)},i=e=>{r({loaded:0}),n(e)}
e.open(this.method,this.action),function(e,t){Object.keys(t).forEach((n=>{e.setRequestHeader(n,t[n])}))}(e,this.headers),e.onerror=()=>{const{status:t,responseText:n}=e
i(new Error("[Request] a network error occurred",{cause:{status:t,responseText:n}}))},e.onabort=()=>{const{status:t,responseText:n}=e
i(new Error("[Request] the request was aborted",{cause:{status:t,responseText:n}}))},e.onload=()=>{const{status:n,responseText:r}=e
n>=200&&n<300||304===n?this.state.set(this.state.COMPLETED).then((()=>{this.progress.done(),t(r)})):i(new Error(`[Request] server responded with status ${n}`,{cause:{status:n,responseText:r}}))},this.timeout&&(e.timeout=this.timeout),this.mimeType&&e.overrideMimeType(this.mimeType),e.upload.onprogress=r
const o=new Promise((e=>{this.state.isFrozen()||(this.state.is.PAUSED?this.on("resume",e):e())}))
o.then((()=>{this.beforeSend&&this.beforeSend(e),e.partUploadStartTime=performance.now(),e.send(this.body)}))}))}abort(){return this.state.set(this.state.CANCELLED).then((()=>{this.progress.reset(),this.request&&this.request.abort()}))}pause(){return this.state.set(this.state.PAUSED).then((()=>{this.emit("pause")}))}resume(){return this.state.set(this.state.STARTED).then((()=>{this.emit("resume")}))}reset(){return this.attempts=0,this.progress.reset(),this.state=new o,this}}class l extends u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(!t.body)throw new Error("[UploadRequest] a body must be provided")
t.method=t.method||"PUT",super(e,t)}}function d(e,t){["then","catch"].forEach((n=>{e[n]=t[n].bind(t)}))}function f(e){return e&&"object"==typeof e&&!Array.isArray(e)}function h(e){return p({},e)}function p(e){if(f(e)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
n.forEach((t=>{f(t)&&Object.keys(t).forEach((n=>{f(t[n])?f(e[n])?p(e[n],t[n]):e[n]=h(t[n]):e[n]=t[n]}))}))}return e}class g{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.defaults=e,Object.freeze(this)}extend(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return p({},this.defaults,...t)}}const m="SERVER_ERROR",v="NETWORK_ERROR",y="CLIENT_ERROR",b={SINGLE:"SINGLE",MULTIPART:"MULTIPART",MULTIPART_FORMDATA:"MULTIPART_FORMDATA"},E="CANCELLED",_="STARTED",T="UPLOAD",S="CLIENT",x=36152320,C="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0
const r=t.type
if([b.SINGLE,b.MULTIPART_FORMDATA].includes(r))return{partUploadId:e,firstByteOffset:n?0:null,lastByteOffset:n?n-1:null}
const i=t.partUploadRequests||[],o=i.find((t=>t.uploadUrl===e))||{}
return{partUploadId:e,firstByteOffset:"number"==typeof o.firstByte?o.firstByte:null,lastByteOffset:o.lastByte||null}}function w(e,t){let n=""
return t&&(n+=`[Headers]: ${t}`),e&&(n+=`[Response Text]: ${e}`),n}function I(e){let t="UNKNOWN"
return e>=500?t=m:e>=400?t=y:0===e&&(t=v),t}function R(e){switch(I(parseInt(e))){case y:return S
case m:return"SERVER"
case v:return"NETWORK"
default:return"UNKNOWN"}}function k(e,t){let n
try{n=t instanceof Error?t.toString():JSON.stringify(t)}catch(e){n=null}const r=parseInt(t.status)
return{errorPhase:e,errorType:R(r),httpErrorCode:"number"!=typeof r||Number.isNaN(r)?null:r,statusMessage:t.message||n}}function O(e){return e instanceof FormData?e.get("file")||{}:e}const M={done:s()()},N=new g({action:"/",method:"PUT",headers:{},configure:null,maxConcurrentPartsPerFile:1/0,maxRetriesPerPart:0,retryDelay:0,timeout:0})
function P(){return this.consumer.next().then((e=>{if(e)return Promise.resolve(this.configure.call(this,e,this.config)||this.config).then((t=>{const{action:n,beforeSend:r,headers:i,method:o,mimeType:a,timeout:s}=t,c=new l(n,{body:e.blob,beforeSend:r,headers:i,method:o,mimeType:a,timeout:s})
return c.on("progress",F.bind(this)),c}))}),(()=>{}))}function D(e){e.send().then(U.bind(this,e),L.bind(this,e))}function U(e){this.isTrackingEnabled&&this.uploadTracker.sendPartUploadSuccessEvent(e),this.emit("part:success",e),this.pending.delete(e),j.call(this)}function L(e,t){this.isTrackingEnabled&&this.uploadTracker.sendPartUploadFailureEvent(e),this.emit("part:error",t,e)
const n=4===Math.floor(e.request.status/100)
if(n||e.attempts>this.config.maxRetriesPerPart)this.initialFailedRequest||(this.initialFailedRequest={status:e.request.status,statusMessage:JSON.stringify({error:t.toString(),is4xx:n,numberOfRetries:e.attempts,maxRetriesPerPart:this.config.maxRetriesPerPart,responseText:e.request.responseText})}),H.call(this)
else{const t=D.bind(this,e)
setTimeout(t,this.config.retryDelay)}}function j(){this.pending.size<this.config.maxConcurrentPartsPerFile&&!this.state.isFrozen()&&P.call(this).then((e=>{e?(this.state.is.PAUSED&&e.pause(),this.results.push(e),this.pending.add(e),D.call(this,e)):this.pending.size||this.emit(M.done)}))}function F(e){this.progress.add(e.progress,e.completed),this.emit("progress",this.progress),B.call(this)}function B(){const e=this.status()
this.isTrackingEnabled&&this.uploadTracker.sendUploadInProgressEvent(e),this.emit("status",e)}function q(e){return this.state.set(e).then((()=>(this.state.is.COMPLETED&&this.progress.done(),B.call(this),this.status())))}function H(e){return q.call(this,e||this.state.FAILED).then((()=>{this.pending.forEach((e=>{e.abort(),this.pending.delete(e)})),this.emit(M.done)}))}function G(){this.state=new o,this.consumer.reset(),this.progress.reset(),this.pending.clear(),this.results=[],this.initialFailedRequest=null,d(this,K.call(this))}function K(){return new Promise(((e,t)=>{this.on(M.done,(()=>{q.call(this,this.state.COMPLETED).then((()=>{if(!this.isTrackingEnabled)return e(V(this))
const n=V(this)
return[b.SINGLE,b.MULTIPART_FORMDATA].includes(n.meta.type)?(this.uploadTracker.sendUploadCompletedEvent(),e(n)):z.call(this,n).then((()=>(this.uploadTracker.sendUploadCompletedEvent(),e(n)))).catch((e=>t(p(n,{type:"MULTIPART_COMPLETION_CALL_FAIL",errorDetails:k("FINALIZE",e)}))))})).catch((()=>{if(!this.isTrackingEnabled)return t(V(this))
const e=V(this),n="CANCELLED"===e.status.state,r=[b.SINGLE,b.MULTIPART_FORMDATA].includes(e.meta.type),i=n?{errorPhase:T,errorType:S,httpErrorCode:0,statusMessage:"The upload request was cancelled by the user"}:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=parseInt(t.status)
return{errorPhase:e,errorType:R(n),httpErrorCode:n||0===n?n:null,statusMessage:t.statusMessage||null}}(T,this.initialFailedRequest||{})
let o="MULTIPART_UPLOAD_FAIL"
return r&&(o=e.meta.type===b.SINGLE?"SINGLE_UPLOAD_FAIL":"MULTIPART_FORMDATA_UPLOAD_FAIL"),n||r?t(p(e,{type:n?"USER_CANCELLED":o,errorDetails:i})):z.call(this,e).finally((()=>t(p(e,{type:o,errorDetails:i}))))}))}))}))}function V(e){return{meta:e.consumer.meta,results:e.results,status:e.status()}}function z(e){const{meta:t,results:n}=e,{mediaArtifactUrn:r,multipartMetadata:i}=t,{headers:o,timeout:a}=this.config,s=n.map((e=>{let{request:t}=e
return{headers:(n=t.getAllResponseHeaders(),n.split("\r\n").reduce(((e,t)=>{const n=t.trim(),r=n.indexOf(": ")
if(r>0){const t=n.substring(0,r),i=n.substring(r+": ".length)
e[t]=i}return e}),{})),httpStatusCode:t.status}
var n}))
return new l(t.finalizeUploadUrl,{body:JSON.stringify({completeUploadRequest:{mediaArtifactUrn:r,multipartMetadata:i,partUploadResponses:s}}),headers:o,method:"POST",timeout:a}).send().catch((e=>{throw{message:e.message||e.cause.responseText,status:e.cause.status}}))}class W extends(i()){constructor(e,t,n,r){super(),this.config=t=N.extend(t),this.configure=t.configure||function(){},this.meta=n,this.uploadTracker=r,this.results=[],this.consumer=e,this.file=e.file,this.size=e.size,this.id=e.id||s()(),this.state=new o,this.progress=new c,this.pending=new Set,this.initialFailedRequest=null,e.length===1/0&&(this.config.maxConcurrentPartsPerFile=1),this.isTrackingEnabled=this.config.enableTracking||!1,d(this,K.call(this))}start(){return q.call(this,this.state.STARTED).then((()=>{this.pending.forEach((e=>{e.resume()}))
let e=Math.min(this.consumer.length,this.config.maxConcurrentPartsPerFile)-this.pending.size
for(;e--;)j.call(this)}))}reset(){return H.call(this).then(G.bind(this),G.bind(this))}retry(){return this.state.isFrozen()?this.state.is.COMPLETED?Promise.reject(new Error("[Uploader] cannot retry an upload that completed")):this.reset().then((()=>(this.start(),this))):Promise.reject(new Error("[Uploader] cannot retry a pending upload"))}resume(){return q.call(this,this.state.STARTED).then((()=>{this.pending.forEach((e=>{e.resume()}))}))}pause(){return q.call(this,this.state.PAUSED).then((()=>{this.pending.forEach((e=>{e.pause()}))}))}cancel(){return H.call(this,this.state.CANCELLED)}toggle(){return this.state.is.PAUSED?this.resume():this.pause()}status(){return{state:this.state.get(),progress:this.progress,total:this.size}}}class X extends(i()){constructor(e,t){super(),this.file=O(e),this.meta=t,this.partUploadStartTime=performance.now(),this.uploadSessionId=s()()}updateUploadFile(e){this.file=O(e)}updateMetadata(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.meta=p({},this.meta,e)}_buildAndFireUploadStatusEvent(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null
const{name:o="",size:a=0,type:s=""}=this.file,c={digitalMediaArtifactUrn:this.meta.mediaArtifactUrn||null,durationSinceUploadStarted:Math.round(performance.now()-this.partUploadStartTime),mediaFileInfo:{fileName:o,size:a,contentType:s},mediaContentCreationSessionTrackingObject:{sessionTrackingId:this.uploadSessionId,useCase:this.meta.useCase||"UNKNOWN"},uploadMechanism:this.meta.type||null,uploadSessionTrackingId:this.uploadSessionId,uploadState:e,videoDuration:this.meta.videoDuration||null}
t&&n&&(c.errorPhase=t,c.errorType=n,c.httpErrorCode=r,c.statusMessage=i),this._fireTrackingEvent({eventName:"UploadStatusEvent",eventBody:c})}sendUploadRefreshedEvent(){this._buildAndFireUploadStatusEvent("REFRESHED")}sendUploadStartEvent(){this._buildAndFireUploadStatusEvent(_)}sendUploadFailedEvent(){let{errorPhase:e,errorType:t,httpErrorCode:n,statusMessage:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this._buildAndFireUploadStatusEvent("FAILED",e,t,n,r)}sendUploadInProgressEvent(e){const{active:t}=e.progress
e.state!==_||t||this._buildAndFireUploadStatusEvent("IN_PROGRESS")}sendUploadCompletedEvent(){this._buildAndFireUploadStatusEvent("COMPLETED")}sendUploadCancelledEvent(){let{errorPhase:e,errorType:t,httpErrorCode:n,statusMessage:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this._buildAndFireUploadStatusEvent(E,e,t,n,r)}sendPartUploadSuccessEvent(e){const{request:t}=e,n={digitalMediaArtifactUrn:this.meta.mediaArtifactUrn||null,partUploadMetadata:A(e.action,this.meta,this.file.size),uploadDuration:Math.round(performance.now()-t.partUploadStartTime),uploadMechanism:this.meta.type||null,uploadSessionTrackingId:this.uploadSessionId,numberOfRetries:e.attempts?e.attempts-1:0}
this._fireTrackingEvent({eventName:"PartUploadCompletedEvent",eventBody:n})}sendPartUploadFailureEvent(e){const{request:t,state:n,progress:r}=e,{responseText:i,status:o}=t,a=n.is.CANCELLED?"USER_CANCELLED":I(o),s=t.getAllResponseHeaders(),c={bytesTransferred:r.completed||0,digitalMediaArtifactUrn:this.meta.mediaArtifactUrn||null,errorType:a,partUploadMetadata:A(e.action,this.meta,this.file.size),responseBody:w(i,s),statusCode:o,uploadDuration:Math.round(performance.now()-t.partUploadStartTime),uploadMechanism:this.meta.type||null,uploadSessionTrackingId:this.uploadSessionId}
this._fireTrackingEvent({eventName:"PartUploadFailureEvent",eventBody:c})}_fireTrackingEvent(e){this.emit("tracking",e)}}const Q=new g({enableTracking:!1,enableImagePreprocessing:!1,maxConcurrentFiles:1/0})
function Y(){if(this.queue.size&&this.pending.size<this.config.maxConcurrentFiles){let e
if(this.queue.forEach((t=>{e||(e=t)})),e){this.pending.add(e),this.queue.delete(e),this.state.is.STARTED&&e.start()
const t=()=>{this.delete(e)}
e.then(t,t)}}}function $(e){this.queue.add(e),Y.call(this)}class J extends(i()){constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if("function"!=typeof e.consume)throw new Error("[UploadManager] a consume() function is required")
super(),this.consume=e.consume,this.config=Q.extend(e),this.pending=new Set,this.queue=new Set,this.state=new o}addFiles(e){const t=function(e){return Array.isArray(e)?e.reduce(((e,t,n)=>{let{file:r,meta:i}=t
return r||e.push(`error at fileInfo index ${n}: upload 'file' required`),i&&i.useCase||e.push(`error at fileInfo index ${n}: upload 'useCase' required`),e}),[]).join(", "):"addFiles only accepts array"}(e)
if(t)return Promise.reject({message:t,type:"INVALID_FILE_INFO"})
const n=e.map((e=>{let{file:t,meta:n,uploadCallback:r}=e
return this.add(t,n,r)}))
return Promise.all(n.map((e=>e.then((e=>({state:"fulfilled",value:e}))).catch((e=>({state:"rejected",reason:e})))))).then((e=>{const t=e.filter((e=>"fulfilled"===e.state)),n=e.filter((e=>"rejected"===e.state))
if(n.length)throw n.map((e=>e.reason))
return t.map((e=>e.value[0]))}))}add(e,t,n){e=e&&("length"in e?Array.from(e):[e])||[],t=t||{}
const r=e.filter(Boolean).map((e=>{if(!this.config.enableTracking){const r=this.consume.call(this,e,t)
return Promise.resolve(r).then((()=>{const e=new W(r,this.config,t)
return"function"==typeof n&&n(e),this.emit("upload",e),$.call(this,e),e}))}return this._addWithTracking(e,t,n)}))
return Promise.all(r)}_addWithTracking(e,t,n){let r
const i=this._createAndStartUploadTracker(e,t)
return function(e){return new Promise((t=>{const n={}
if(!C||!/^video\//.test(e.type))return t(n)
const r=document.createElement("video")
r.preload="metadata",r.addEventListener("loadedmetadata",(()=>(n.videoDuration=Math.round(1e3*r.duration),t(n)))),r.addEventListener("error",(e=>t(n))),r.src=window.URL.createObjectURL(e)}))}(e).then((t=>this.config.enableImagePreprocessing?function(e){return C&&/^image\//.test(e.type)?new Promise((t=>{const n=window.URL.createObjectURL(e),r=document.createElement("img")
r.onload=n=>{const{naturalHeight:r,naturalWidth:i}=n.target
if(r*i<x)return t(e)
const{height:o,width:a}=function(e,t){const n=Math.sqrt(x/(t*e)),r=Math.floor(1e3*n)/1e3
return{height:Math.floor(t*r),width:Math.floor(e*r)}}(i,r)
return function(e,t,n,r){const i=O(r)
return new Promise((r=>{const o=document.createElement("canvas")
o.width=t,o.height=n,o.getContext("2d").drawImage(e,0,0,o.width,o.height),o.toBlob((e=>(e.name=i.name||"",r(e))),i.type)}))}(n.target,a,o,e).then((e=>t(e)))},r.onerror=()=>t(e),r.src=n})):Promise.resolve(e)}(e).then((e=>(i.updateUploadFile(e),{fileMetadata:t,fileToUpload:e}))):Promise.resolve({fileMetadata:t,fileToUpload:e}))).then((e=>{let{fileMetadata:n,fileToUpload:i}=e
return t=p({},t,n),r=this.consume.call(this,i,t),Promise.resolve(r).catch((e=>{throw p(e,{errorDetails:k("REGISTRATION",e)})}))})).then((()=>{const e=p({},t,r.meta)
return this._validateUploadMetadata(e),i.updateMetadata(e),this._createAndEnqueueUploader(r,e,i,n)})).catch((e=>{throw e&&e.status&&e.status.state===E?i.sendUploadCancelledEvent(e.errorDetails):i.sendUploadFailedEvent(e&&e.errorDetails),e}))}_createAndStartUploadTracker(e,t){const n=new X(e,t)
return n.on("tracking",(e=>{this.emit("tracking",e)})),t.isRetry&&n.sendUploadRefreshedEvent(),n.sendUploadStartEvent(),n}_validateUploadMetadata(e){let{type:t,finalizeUploadUrl:n}=e
if(![b.SINGLE,b.MULTIPART_FORMDATA].includes(t)&&!n){const e=`Upload Mechanism: ${t} requires a valid finalizeUploadUrl to be passed`
throw{errorDetails:{errorPhase:T,errorType:S,httpErrorCode:null,statusMessage:e},message:e,type:"INVALID_METADATA"}}}_createAndEnqueueUploader(e,t,n,r){const i=new W(e,this.config,t,n)
return"function"==typeof r&&r(i),this.emit("upload",i),$.call(this,i),i}delete(e){this.pending.delete(e),this.queue.delete(e),Y.call(this)}start(){return this.state.set(this.state.STARTED).then((()=>{this.pending.forEach((e=>{e.start()}))}))}resume(){return this.start()}pause(){this.state.set(this.state.PAUSED).then((()=>{this.pending.forEach((e=>{e.pause()}))}))}cancel(){return this.state.set(this.state.STARTED).then((()=>{this.queue.clear(),this.pending.forEach((e=>{this.pending.delete(e),e.cancel()}))}))}toggle(){this.state.is.PAUSED?this.resume():this.pause()}}class Z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0
this.id=t.id||s()(),this.file=e,this.size=e.size,this.meta=n,this.length=1/0}next(){throw new Error("[AbstractConsumer] Consumer must implement #next() method")}reset(){throw new Error("[AbstractConsumer] Consumer must implement #reset() method")}}class ee{constructor(e,t,n,r){this.file=n,this.blob=e,this.index=t,this.id=s()(),this.meta=r}}class te extends Z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0
if(!t.getUploadMetaData)throw new Error("a getUploadMetaData() function is required")
super(e,t,n),this.length=1/0,this.getUploadMetaData=()=>t.getUploadMetaData(e,n),this.reset()}next(){return this.then((()=>{if(this.index++,this.index>=this.length)return Promise.reject()
switch(this.meta.type){case"SINGLE":case"MULTIPART_FORMDATA":return Promise.resolve(new ee(this.file,0,this.file,this.meta))
case"MULTIPART":const{partUploadRequests:e}=this.meta,t=e[this.index]
if(!t)return Promise.reject()
const n=this.file.slice(t.firstByte,t.lastByte+1,this.file.type)
return Promise.resolve(new ee(n,this.index,this.file,t))
default:return Promise.reject(new Error(`TODO: unknown upload type '${this.meta.type}'`))}}))}reset(){return this.index=-1,this.meta={},d(this,this.getUploadMetaData().then((e=>{this.meta=e,this.length=e.partUploadRequests?e.partUploadRequests.length:1}))),this}}const ne={headers:{},mimeType:"text/plain",getUploadMetaData(){}}
class re extends J{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
e=p({},ne,e,{consume:(t,n)=>new te(t,{headers:e.headers,getUploadMetaData:e.getUploadMetaData},n),configure(e){const{meta:t}=this.consumer,{type:n}=t,r=e=>p({},this.config,e)
if("SINGLE"===n||"MULTIPART_FORMDATA"===n){const{singleUploadUrl:e,singleUploadHeaders:n}=t
return r({action:e,headers:n})}if("MULTIPART"===n){const{headers:t,uploadUrl:n}=e.meta
return r({action:n,headers:t})}throw new Error(`TODO: unknown type '${n}'`)}}),super(e)}}},32472:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1)
e.exports=function(e,n){var r=n||0,i=t
return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},28401:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(t){var n=new Uint8Array(16)
e.exports=function(){return t(n),n}}else{var r=new Array(16)
e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255
return r}}},81611:(e,t,n)=>{var r=n(28401),i=n(32472)
e.exports=function(e,t,n){var o=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var a=(e=e||{}).random||(e.rng||r)()
if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s]
return t||i(a)}},7409:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{IngestionError:()=>P,MediaIngestionManager:()=>be,MultipartFinalizationError:()=>L,RegistrationError:()=>U})
var r=n(81611),i=n.n(r)
const o="VALIDATION",a="REGISTRATION",s="PREPROCESSING",c="UPLOAD",u="FINALIZE",l={QUEUED:"QUEUED",INPROGRESS:"INPROGRESS",CANCELLED:"CANCELLED",FAILED:"FAILED",COMPLETED:"COMPLETED"},d={CONNECTION_TIMEOUT:"CONNECTION_TIMEOUT",FILE_NOT_FOUND:"FILE_NOT_FOUND",INVALID_FILE_SIZE:"INVALID_FILE_SIZE",NETWORK_LOST:"NETWORK_LOST",SERVER_PROCESSING_ERROR:"SERVER_PROCESSING_ERROR",UNKNOWN:"UNKNOWN"},f="USER_CANCELLED",h="task:update",p="tracking:update",g="upload:progress",m="upload:tracking:update",v="UploadStatusEvent",y=36152320,b="MULTIPART_FORMDATA",E="MULTIPART",_="CLIENT",T="SERVER",S="NETWORK",x="IMAGE_SHARING",C="MICROSOFT_DESIGNER_IMAGE_SHARING",A="VIDEO_SHARING",w="VIDEO_PRIVATE_AUTOCAPTION",I="VIDEO_WITHOUT_AUTOCAPTION"
class R extends Error{constructor(e,t){super(f),this.code="AbortError",this.errorPhase=e,this.meta=t,this.httpErrorCode=0,this.errorType=_,this.statusMessage=`${this.code} - Upload was cancelled by the user`,this.reason=d.UNKNOWN}}function k(e){let t="UNKNOWN"
return e>=500?t=T:e>=400?t=_:0===e&&(t=S),t}function O(e){switch(k(e)){case T:return"SERVER_ERROR"
case _:return"CLIENT_ERROR"
case S:return"NETWORK_ERROR"
default:return"UNKNOWN"}}function M(e){let t=d.UNKNOWN
return 0===e?t=d.NETWORK_LOST:e>=500&&(t=d.SERVER_PROCESSING_ERROR),t}class N extends Error{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5?arguments[5]:void 0
super(e),this.reason=t,this.errorPhase=n,this.meta=o,this.httpErrorCode=r,this.errorType=function(e){return[d.FILE_NOT_FOUND,d.INVALID_FILE_SIZE,d.NETWORK_LOST].includes(e)}(t)?_:k(r),this.statusMessage=i||this.stack}}class P extends Error{constructor(e,t,n){super(e),this.details=t,this.originalError=n}}class D extends Error{constructor(e,t,n){super(e),this.statusCode=t,this.stack=function(e){return("string"==typeof e?e:JSON.stringify(e)).trim().substring(0,500)}(n||this.stack)}}class U extends D{constructor(e,t,n){super(e,t,n)}}class L extends D{constructor(e,t,n){super(e,t,n)}}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F{constructor(){j(this,"_id",i()()),j(this,"_tasks",new Map),j(this,"_taskPromises",[]),j(this,"_progress",0),j(this,"_state",l.QUEUED)}get id(){return this._id}get progress(){return this._progress}get state(){return this._state}getTask(e){return this._tasks.get(e)||null}getTaskList(){return Array.from(this._tasks.values())}getFirstTask(){return this.getTaskList()[0]}addTask(e){this._tasks.has(e.id)||this._tasks.set(e.id,e)}run(){this._state=l.INPROGRESS,this._tasks.forEach((e=>{this._taskPromises.push(e.runTask())}))}isDone(){return Promise.all(this._taskPromises).then((e=>(this._state=l.COMPLETED,e))).catch((e=>{throw this._state=e.originalError instanceof R?l.CANCELLED:l.FAILED,e}))}update(){let e=0
this._tasks.forEach((t=>{e+=t.status.progress})),this._progress=parseFloat((e/this._tasks.size).toFixed(2))}cancel(){this._tasks.forEach((e=>{e.cancel()}))}}var B=n(39705),q=n.n(B)
function H(e){return e instanceof FormData?e.get("file")||{}:e}var G=n(37647)
function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class V{constructor(e){K(this,"_file",void 0),K(this,"_mediaUploadType",void 0),K(this,"_error",null),K(this,"_metadata",{}),this._processMedia(e)}get file(){return this._file}get mediaUploadType(){return this._mediaUploadType}get isValid(){return!this._error}get error(){return this._error}get metadata(){return this._metadata}_processMedia(e){this._updateUploadFileAndMetadata(e),this._updateMediaUploadType(e),this.isValid}_updateUploadFileAndMetadata(e){if(!e.file)return void(this._error=d.FILE_NOT_FOUND)
this._file=e.file
const t=H(e.file)
null==t||!t.size||t.size<=0?this._error=d.INVALID_FILE_SIZE:this._getFileMetadata(t)}_updateMediaUploadType(e){this._mediaUploadType=e.mediaUploadType}_getFileMetadata(e){const{name:t="",size:n,type:r=""}=e
this._updateMetadata({fileName:t,fileSize:n,fileType:r,videoDuration:null,fileHash:null})}getFileHash(){return new Promise((e=>{const t=new FileReader
t.onloadend=t=>{crypto.subtle.digest("SHA-256",t.target.result).then((t=>{const n=Array.from(new Uint8Array(t)).map((e=>e.toString(16).padStart(2,"0"))).join("")
this._updateMetadata({fileHash:n}),e()})).catch(e)},t.onerror=()=>e(),t.readAsArrayBuffer(H(this._file))}))}fetchVideoDuration(){return e=this._file,/^video\//.test(e.type)?(0,G.getVideoDuration)(this.file).then((e=>this._updateMetadata({videoDuration:e===1/0?null:e}))):Promise.resolve()
var e}fetchMetadata(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
const t=[this.fetchVideoDuration()]
return e&&t.push(this.getFileHash()),Promise.all(t)}_updateMetadata(e){this._metadata={...this._metadata,...e}}setFileToUpload(e){this._file=e,this._getFileMetadata(e)}}var z=n(11056)
function W(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class X{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
W(this,"_media",void 0),W(this,"_uploadParams",void 0),W(this,"_error",null),this._processIngestionRequest(e),this._featureOptions=t}get media(){return this._media}get uploadParams(){return this._uploadParams}get isValid(){return!this.error}get error(){return this._error}_processIngestionRequest(e){if("object"!=typeof(t=null==e?void 0:e.media)||null===t||Array.isArray(t))return void(this._error=d.FILE_NOT_FOUND)
var t
const{media:n,uploadParams:r={}}=e,i=new V(n)
i.isValid?(this._media=i,this._uploadParams=r):this._error=i.error}fetchMetadata(){return(0,z.isBrowser)()?this._media.fetchMetadata(this._featureOptions.addFileHash):Promise.resolve()}}class Q{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this._ingestionRequest=e,this._featureOptions=t}run(e){return e.aborted?Promise.reject(new R(o)):this._validateAndDigest(e)}_validateAndDigest(e){return new Promise(((t,n)=>{const r=()=>n(new R(o))
e.addEventListener("abort",r)
const i=new X(this._ingestionRequest,this._featureOptions)
if(!i.isValid){const e=i.error
return n(new N("Validation Failed",e,o))}i.fetchMetadata().then((()=>{if(e.removeEventListener("abort",r),!e.aborted)return t(i)}))}))}}function Y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ${constructor(){Y(this,"_phase",void 0),Y(this,"_state",l.QUEUED),Y(this,"_phaseProgress",0),Y(this,"_progress",0),Y(this,"_reason",void 0),Y(this,"_validPhases",[o,a,s,c,u]),Y(this,"_validStates",[l.INPROGRESS,l.COMPLETED,l.CANCELLED,l.FAILED])}get phase(){return this._phase}get state(){return this._state}get progress(){return this._progress}get phaseProgress(){return this._phaseProgress}get reason(){return this._reason}updatePhase(e){this._validPhases.includes(e)&&(this._phase=e)}updateState(e){this._validStates.includes(e)&&(this._state=e)}updateReason(e){"string"==typeof e&&(this._reason=e)}_updateProgress(){this._phase===c&&(this._progress=this._phaseProgress)}updatePhaseProgress(e){this._phaseProgress=e,this._updateProgress()}}class J{constructor(e,t,n){this._media=e,this._uploadParams=t,this._ingesterConfig=n}run(e){return e.aborted?Promise.reject(new R(a)):this._registerUpload(e)}_registerUpload(e){return new Promise(((t,n)=>{const r=()=>n(new R(a))
e.addEventListener("abort",r)
const i=this._ingesterConfig.registerUpload(this._media.file,{mediaUploadType:this._media.mediaUploadType,...this._uploadParams})
return Promise.resolve(i).then(t).catch((e=>{var t
const r=e instanceof U?e.statusCode:null==e||null===(t=e.cause)||void 0===t?void 0:t.status,i=M(r)
return n(new N(e.message,i,a,r,e.stack))})).finally((()=>{e.removeEventListener("abort",r)}))}))}}class Z{constructor(e){this._media=e}run(e){return e.aborted?Promise.reject(new R(s)):this._preprocessImage(e)}_preprocessImage(e){const t=this._media.file
return new Promise(((n,r)=>{const i=()=>{r(new R(s))}
e.addEventListener("abort",i)
const o=()=>e.removeEventListener("abort",i),a=window.URL.createObjectURL(t),c=document.createElement("img")
c.onload=r=>{if(e.aborted)return void o()
const{naturalHeight:i,naturalWidth:s}=r.target
if(i*s<=y)return o(),window.URL.revokeObjectURL(a),n()
const{width:c,height:u}=this._getImageDimensionsToResize(s,i)
return this._resizeImage(r.target,c,u,t).then((e=>(o(),this._media.setFileToUpload(e),window.URL.revokeObjectURL(a),n())))},c.onerror=()=>(o(),n()),c.src=a}))}_getImageDimensionsToResize(e,t){const n=Math.sqrt(y/(e*t)),r=Math.floor(1e3*n)/1e3
return{height:Math.floor(t*r),width:Math.floor(e*r)}}_resizeImage(e,t,n,r){return new Promise((i=>{const o=document.createElement("canvas")
o.width=t,o.height=n,o.getContext("2d").drawImage(e,0,0,o.width,o.height),o.toBlob((e=>(e.name=r.name,i(e))),r.type)}))}}class ee{constructor(e){this._media=e}run(e){return e.aborted?Promise.reject(new R(s)):(t=this._media.file,/^image\//.test(t.type)&&(0,z.isBrowser)()?(this._imagePreprocessor=new Z(this._media),this._imagePreprocessor.run(e)):Promise.resolve())
var t}}function te(e,t){let n=""
return t&&(n+=`[Headers]: ${t}`),e&&(n+=`${n.length?"\n":""}[Response Text]: ${e}`),n}function ne(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
const n=t.find((t=>t.url===e))||{}
return{partUploadId:e,firstByteOffset:"number"==typeof n.firstByte?n.firstByte:null,lastByteOffset:"number"==typeof n.lastByte?n.lastByte:null}}function re(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map
const n=t.get(e)||{}
return n.loaded||0}class ie{constructor(){this._sessionId=i()(),this._ingestionStartTime=performance.now()}_buildUploadStatusEvent(e){let{digitalMediaArtifactUrn:t=null,mediaFileInfo:n,useCase:r="UNKNOWN",uploadMechanism:i=null,uploadState:o,errorDetails:a,videoDuration:s=null}=e
const c={digitalMediaArtifactUrn:t,durationSinceUploadStarted:Math.round(performance.now()-this._ingestionStartTime),mediaFileInfo:n,mediaContentCreationSessionTrackingObject:{sessionTrackingId:this._sessionId,useCase:r},uploadMechanism:i,uploadSessionTrackingId:this._sessionId,uploadState:o,videoDuration:s}
if(a){const{errorPhase:e,errorType:t,httpErrorCode:n,statusMessage:r}=a
c.errorPhase=e,c.errorType=t,c.httpErrorCode=n,c.statusMessage=r}return c}getIngestionStartedTrackingData(e,t){return{name:v,body:this._buildUploadStatusEvent({mediaFileInfo:e,useCase:t,uploadState:"STARTED"})}}getIngestionCompleteTrackingData(e,t,n){const{fileName:r,fileSize:i,fileType:o,videoDuration:a,fileHash:s}=e.metadata
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:{fileName:r,size:i,contentType:o,fileHash:s},useCase:e.mediaUploadType,uploadState:"COMPLETED",uploadMechanism:n,videoDuration:a})}}getIngestionRefreshedTrackingData(e,t){return{name:v,body:this._buildUploadStatusEvent({mediaFileInfo:e,useCase:t,uploadState:"REFRESHED"})}}getRegistrationStartedTrackingData(e){const{fileName:t,fileSize:n,fileType:r,videoDuration:i,fileHash:o}=e.metadata
return{name:v,body:this._buildUploadStatusEvent({mediaFileInfo:{fileName:t,size:n,contentType:r,fileHash:o},useCase:e.mediaUploadType,uploadState:"REGISTRATION_STARTED",videoDuration:i})}}getPreprocessingStartedTrackingData(e,t,n){const{fileName:r,fileSize:i,fileType:o,videoDuration:a,fileHash:s}=e.metadata
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:{fileName:r,size:i,contentType:o,fileHash:s},useCase:e.mediaUploadType,uploadState:"PREPROCESSING_STARTED",uploadMechanism:n,videoDuration:a})}}getUploadStartedTrackingData(e,t,n){const{fileName:r,fileSize:i,fileType:o,videoDuration:a,fileHash:s}=e.metadata
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:{fileName:r,size:i,contentType:o,fileHash:s},useCase:e.mediaUploadType,uploadState:"FILE_UPLOAD_STARTED",uploadMechanism:n,videoDuration:a})}}getUploadCancelledTrackingData(e,t,n,r){var i
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:null!=e&&e.metadata?{fileName:e.metadata.fileName,size:e.metadata.fileSize,contentType:e.metadata.fileType,fileHash:e.metadata.fileHash}:null,useCase:null==e?void 0:e.mediaUploadType,uploadState:"CANCELLED",uploadMechanism:n,errorDetails:r,videoDuration:null==e||null===(i=e.metadata)||void 0===i?void 0:i.videoDuration})}}getUploadFailedTrackingData(e,t,n,r){var i
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:null!=e&&e.metadata?{fileName:e.metadata.fileName,size:e.metadata.fileSize,contentType:e.metadata.fileType,fileHash:e.metadata.fileHash}:null,useCase:null==e?void 0:e.mediaUploadType,uploadState:"FAILED",uploadMechanism:n,errorDetails:r,videoDuration:null==e||null===(i=e.metadata)||void 0===i?void 0:i.videoDuration})}}getIngestionInProgressTrackingData(e,t,n){const{fileName:r,fileSize:i,fileType:o,videoDuration:a,fileHash:s}=e.metadata
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:{fileName:r,size:i,contentType:o,fileHash:s},useCase:e.mediaUploadType,uploadState:"IN_PROGRESS",uploadMechanism:n,videoDuration:a})}}getUploadRetryTrackingData(e,t,n){const{fileName:r,fileSize:i,fileType:o,videoDuration:a,fileHash:s}=e.metadata
return{name:v,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:{fileName:r,size:i,contentType:o,fileHash:s},useCase:e.mediaUploadType,uploadState:"RETRY",uploadMechanism:n,videoDuration:a})}}getPartUploadFailedTrackingData(e,t,n,r,i){const{xhr:o}=e,{responseText:a,status:s}=o,c=o.getAllResponseHeaders()
return{name:"PartUploadFailureEvent",body:{bytesTransferred:re(e.id,i),digitalMediaArtifactUrn:t,errorType:e.isAborted?"USER_CANCELLED":O(s),partUploadMetadata:ne(e.url,r),responseBody:te(a,c),statusCode:s,uploadDuration:Math.round(performance.now()-o.partUploadStartTime),uploadMechanism:n,uploadSessionTrackingId:this._sessionId}}}getPartUploadSuccessTrackingData(e,t,n,r){const{xhr:i}=e
return{name:"PartUploadCompletedEvent",body:{digitalMediaArtifactUrn:t,partUploadMetadata:ne(e.url,r),uploadDuration:Math.round(performance.now()-i.partUploadStartTime),uploadMechanism:n,uploadSessionTrackingId:this._sessionId,numberOfRetries:e.attempts-1}}}}function oe(e){var t
return null==e||null===(t=e.media)||void 0===t?void 0:t.mediaUploadType}class ae{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;(function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"_id",i()()),this._method=e,this._url=t,this._body=n,this._headers=r,this._attempts=0,this._aborted=!1,this._beforeSend=o}get id(){return this._id}get attempts(){return this._attempts}get xhr(){return this._xhr}get url(){return this._url}get isAborted(){return this._aborted}setProgressHandler(e){this._progressHandler=e}abort(){this._xhr&&(this._aborted=!0,this._xhr.abort())}send(){if(this._attempts++,this._xhr&&4!==this._xhr.readyState){const{status:e,responseText:t}=this._xhr
return Promise.reject(new Error("[Request] Invalid attempt to send request",{cause:{status:e,responseText:t}}))}return this._xhr=new XMLHttpRequest,new Promise(((e,t)=>{var n,r,i
this._xhr.open(this._method,this._url),this._xhr.onload=()=>{const{status:n,responseText:r}=this._xhr
n>=200&&n<300||304===n?e(r):t(new Error(`[Request] server responded with status ${n}`,{cause:{status:n,responseText:r}}))},this._xhr.onerror=()=>{const{status:e,responseText:n}=this._xhr
t(new Error("[Request] a network error occurred",{cause:{status:e,responseText:n}}))},this._xhr.onabort=()=>{const{status:e,responseText:n}=this._xhr
t(new Error("[Request] the request was aborted",{cause:{status:e,responseText:n,isAborted:!0}}))},n=this._xhr,r=this._headers,Object.keys(r).forEach((e=>{n.setRequestHeader(e,r[e])})),this._xhr.upload.onprogress=e=>{var t
return null===(t=this._progressHandler)||void 0===t?void 0:t.call(this,e)},this.isAborted||(null===(i=this._beforeSend)||void 0===i||i.call(this,this._xhr),this._xhr.send(this._body))}))}}const se=i()()
class ce extends(q()){constructor(e,t,n){super(),this._uploadClient=e,this._ingesterConfig=t,this._trackingData=n,this._pendingRequests=new Set,this._results=[],this._uploadProgressMap=new Map,this._initialFailedRequest=null}run(e){if(e.aborted)return Promise.reject(new R(c,{uploadResult:this._results}))
e.addEventListener("abort",(()=>this.abort()))
const{media:t,metadata:{mediaArtifactUrn:n,type:r}}=this._uploadClient
this.emit(m,this._trackingData.getIngestionInProgressTrackingData(t,n,r))
let i=this._uploadClient.totalPartsToUpload
for(;i--;)this._tryNextPartUploadRequest()
return new Promise(((t,n)=>{this.on(se,(r=>r?e.aborted?n(new R(c,{uploadResult:this._results})):n(new N("UPLOAD_FAILED",M(this._initialFailedRequest.statusCode),c,this._initialFailedRequest.statusCode,this._initialFailedRequest.statusMessage,{uploadResult:this._results})):t(this._results)))}))}_tryNextPartUploadRequest(){return this._getNextUploadRequest().then((e=>{if(e)return this._results.push(e),this._pendingRequests.add(e),this._handleUploadRequest(e)
this._pendingRequests.size||this.emit(se)}))}_getNextUploadRequest(){return this._uploadClient.getNextPart().then((e=>{const{uploadUrl:t,fragment:n}=e,{blob:r,meta:i}=n,o=new ae("PUT",t,r,function(e,t){if(t!==b)return e
const n={...e}
return delete n["content-type"],delete n["Content-Type"],n}(i.headers,this._uploadClient.uploadMechanism),(e=>{e.partUploadStartTime=performance.now()}))
return this._uploadProgressMap.set(o.id,{loaded:0,total:r.size}),o.setProgressHandler((e=>{let{loaded:t,total:n}=e
if(t/n==1){const{media:e,metadata:{mediaArtifactUrn:t,type:n}}=this._uploadClient
this.emit(m,this._trackingData.getIngestionInProgressTrackingData(e,t,n))}this._uploadProgressMap.set(o.id,{loaded:t,total:n})
let r=0
this._uploadProgressMap.forEach((e=>{r+=e.loaded/e.total})),this.emit(g,parseFloat((r/this._uploadProgressMap.size).toFixed(2)))})),o}),(()=>{}))}_handleUploadRequest(e){return e.send().then(this._handleUploadSuccess.bind(this,e),this._handleUploadFailure.bind(this,e))}_handleUploadSuccess(e){const{metadata:{mediaArtifactUrn:t,type:n},uploadRequests:r}=this._uploadClient
this.emit(m,this._trackingData.getPartUploadSuccessTrackingData(e,t,n,r)),this._pendingRequests.delete(e),this._tryNextPartUploadRequest()}_handleUploadFailure(e,t){const{metadata:{mediaArtifactUrn:n,type:r},uploadRequests:i}=this._uploadClient
if(this.emit(m,this._trackingData.getPartUploadFailedTrackingData(e,n,r,i,this._uploadProgressMap)),t.cause.isAborted)return
const o=4===Math.floor(e.xhr.status/100)
if(o||e.attempts>this._ingesterConfig.maxRetryAttempts)this._initialFailedRequest||(this._initialFailedRequest={statusCode:e.xhr.status,statusMessage:JSON.stringify({error:t.toString(),is4xx:o,numberOfRetries:e.attempts,maxRetriesPerPart:this._ingesterConfig.maxRetryAttempts})}),this.abort()
else{const{media:t,metadata:{mediaArtifactUrn:n,type:r}}=this._uploadClient
this.emit(m,this._trackingData.getUploadRetryTrackingData(t,n,r)),this._handleUploadRequest(e)}}abort(){this._pendingRequests.forEach((e=>e.abort())),this._pendingRequests.clear(),this.emit(se,!0)}}class ue{constructor(e,t){this._blob=e,this._meta=t}get blob(){return this._blob}get meta(){return this._meta}}class le{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
this._metadata=e,this._headers=n,this._media=t,this._type=this._metadata.type,this._index=-1,this._uploadRequests=[],this._generatePartUploadRequests()}get totalPartsToUpload(){return this._metadata.partUploadRequests?this._metadata.partUploadRequests.length:1}get uploadMechanism(){return this._type}get isDynamicUpload(){return"DYNAMIC"===this._type}get media(){return this._media}get metadata(){return this._metadata}get uploadRequests(){return this._uploadRequests}_generatePartUploadRequests(){switch(this._type){case"SINGLE":case b:this._uploadRequests.push({url:this._metadata.singleUploadUrl,headers:{...this._metadata.singleUploadHeaders,...this._headers},firstByte:0,lastByte:H(this._media.file).size-1})
break
case E:this._metadata.partUploadRequests.forEach((e=>{this._uploadRequests.push({url:e.uploadUrl,headers:{...e.headers,...this._headers},firstByte:e.firstByte,lastByte:e.lastByte})}))}}getNextPart(){return new Promise(((e,t)=>{this._index++
const n=this._uploadRequests[this._index]
if(!n)return t()
const r=this.uploadMechanism!==E?this._media.file:this._media.file.slice(n.firstByte,n.lastByte+1,this._media.file.type)
return e({uploadUrl:n.url,fragment:new ue(r,n)})}))}}function de(e,t,n){let{phase:r,state:i,reason:o,progress:a}=t
r&&e.updatePhase(r),i&&e.updateState(i),o&&e.updateReason(o),"number"==typeof a&&e.updatePhaseProgress(a),"function"==typeof n&&n()}class fe{constructor(e,t,n){this._ingesterConfig=e,this._uploadResult=t,this._registrationResult=n}run(e){return e.aborted?Promise.reject(new R(u)):this._finalizeMultipartUpload(e)}_finalizeMultipartUpload(e){return new Promise(((t,n)=>{const r=()=>n(new R(u))
e.addEventListener("abort",r)
const i=this._ingesterConfig.finalizeMultipartUpload(this._uploadResult,this._registrationResult)
return Promise.resolve(i).then(t).catch((e=>{var t
const r=e instanceof L?e.statusCode:null==e||null===(t=e.cause)||void 0===t?void 0:t.status,i=M(r)
return n(new N(e.message,i,u,r,e.stack))})).finally((()=>{e.removeEventListener("abort",r)}))}))}}class he{constructor(e,t,n,r,i,o,a){this._media=e,this._registrationResult=t,this._ingesterConfig=n,this._taskStatus=r,this._trackingData=i,this._onUpdateCallback=o,this._onTrackingUpdateCallback=a}_updateStatus(e){let{phase:t,state:n,progress:r,reason:i}=e
de(this._taskStatus,{phase:t,state:n,progress:r,reason:i},this._onUpdateCallback.bind(this))}run(e){var t
if(e.aborted)return this._updateStatus({phase:c,state:l.CANCELLED,progress:0}),Promise.reject(new R(c))
const n=new le(this._registrationResult,this._media,null===(t=this._ingesterConfig)||void 0===t?void 0:t.headers)
if(n.isDynamicUpload){this._updateStatus({phase:c,reason:d.UNKNOWN,state:l.FAILED})
const e=`Unsupported upload mechanism ${n.uploadMechanism}`
return Promise.reject(new N(e,d.UNKNOWN,c,null,e))}return this._uploadWithSimpleUploader(e,n)}_uploadWithSimpleUploader(e,t){return Promise.resolve().then((()=>this._updateStatus({phase:c,state:l.INPROGRESS,progress:0}))).then((()=>{const n=new ce(t,this._ingesterConfig,this._trackingData)
return n.on(m,(e=>this._onTrackingUpdateCallback(e))),n.on(g,(e=>this._updateStatus({progress:e}))),n.run(e).then((n=>this._handleSimpleUploadSuccess(n,t,e))).catch((n=>this._handleSimpleUploadFailure(n,t,e)))}))}_handleSimpleUploadSuccess(e,t,n){if(t.uploadMechanism===E)return new fe(this._ingesterConfig,e,this._registrationResult).run(n).then((()=>{this._updateStatus({state:l.COMPLETED,progress:1})}))
this._updateStatus({state:l.COMPLETED,progress:1})}_handleSimpleUploadFailure(e,t,n){var r
if(this._updateStatus({reason:e.reason,state:l.FAILED}),t.uploadMechanism!==E||e instanceof R||e.errorPhase===u)return Promise.reject(e)
const i=new fe(this._ingesterConfig,null==e||null===(r=e.meta)||void 0===r?void 0:r.uploadResult,this._registrationResult)
return Promise.reject(e).finally((()=>i.run(n)))}}class pe{constructor(e){(function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"_clientSensor",void 0),this._clientSensor=function(){var e
let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return"function"==typeof(null===(e=t.clientSensor)||void 0===e?void 0:e.incrementMetricCounter)&&t.clientSensor||null}(e)}_incrementCounter(e){var t
null===(t=this._clientSensor)||void 0===t||t.incrementMetricCounter({groupName:"media-infra",metricName:e})}incrementUploadStartCounter(e){switch(e){case x:case C:this._incrementCounter("feed-image-upload-start")
break
case A:case w:case I:this._incrementCounter("feed-video-upload-start")}}incrementUploadSuccessCounter(e){switch(e){case x:case C:this._incrementCounter("feed-image-upload-success")
break
case A:case w:case I:this._incrementCounter("feed-video-upload-success")}}incrementUploadFailureCounter(e){switch(e){case x:case C:this._incrementCounter("feed-image-upload-failure")
break
case A:case w:case I:this._incrementCounter("feed-video-upload-failure")}}}function ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class me extends(q()){constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
super(),ge(this,"_id",i()()),ge(this,"_status",new $),ge(this,"_abortController",new AbortController),ge(this,"_abortSignal",this._abortController.signal),this._ingestionRequest=e,this._ingesterConfig=t,this._featureOptions=n,this._clientSensor=new pe(t),this._trackingData=new ie}get id(){return this._id}get status(){return this._status}get mediaUrn(){return this._mediaUrn}get mediaRecipes(){return this._mediaRecipes}get media(){return this._ingestionRequest.media}isDone(){return[l.CANCELLED,l.FAILED,l.COMPLETED].includes(this._status._state)}_buildStepWithAbort(e){return e.bind(this,this._abortSignal,this._onTaskUpdate.bind(this))}_onTaskUpdate(){this.emit(h)}_onMediaUrnAvailable(){this._onTaskUpdate()}_sendTrackingUpdate(e){this.emit(p,e)}runTask(){var e
const t=function(e){const t=function(e){var t
const n=null==e||null===(t=e.media)||void 0===t?void 0:t.file
return n instanceof FormData?n.get("file")||{}:n}(e)
return t?{fileName:t.name||"",size:t.size,contentType:t.type||""}:null}(this._ingestionRequest),n=oe(this._ingestionRequest)
return null!==(e=this._ingestionRequest.uploadParams)&&void 0!==e&&e.isRetry&&this._sendTrackingUpdate(this._trackingData.getIngestionRefreshedTrackingData(t,n)),this._sendTrackingUpdate(this._trackingData.getIngestionStartedTrackingData(t,n)),this._clientSensor.incrementUploadStartCounter(n),Promise.resolve().then(this._buildStepWithAbort(this._validateAndDigestStep)).then(this._buildStepWithAbort(this._mediaRegistrationStep)).then(this._buildStepWithAbort(this._mediaPreprocessingStep)).then(this._buildStepWithAbort(this._mediaUploadStep)).then(this._completeIngestion.bind(this)).catch(this._handleIngestionTaskFailure.bind(this))}_validateAndDigestStep(e){return new Q(this._ingestionRequest,this._featureOptions).run(e).then((e=>{this._media=e.media,this._uploadParams=e.uploadParams}))}_mediaRegistrationStep(e){return this._sendTrackingUpdate(this._trackingData.getRegistrationStartedTrackingData(this._media)),new J(this._media,this._uploadParams,this._ingesterConfig).run(e).then((e=>{const{urn:t,recipes:n}=e
this._registrationResult=e,this._mediaUrn=t,this._mediaRecipes=n,this._onMediaUrnAvailable()}))}_mediaPreprocessingStep(e){return this._sendTrackingUpdate(this._trackingData.getPreprocessingStartedTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type)),new ee(this._media).run(e)}_mediaUploadStep(e,t){return this._sendTrackingUpdate(this._trackingData.getUploadStartedTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type)),new he(this._media,this._registrationResult,this._ingesterConfig,this._status,this._trackingData,t,this._sendTrackingUpdate.bind(this)).run(e)}_completeIngestion(){de(this._status,{state:l.COMPLETED,progress:1},this._onTaskUpdate.bind(this)),this._sendTrackingUpdate(this._trackingData.getIngestionCompleteTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type)),this._clientSensor.incrementUploadSuccessCounter(this._media.mediaUploadType)}_handleIngestionTaskFailure(e){var t,n
const{errorPhase:r,errorType:i,httpErrorCode:o,reason:a,statusMessage:s}=e,c=e instanceof R,u=c?l.CANCELLED:l.FAILED
var d
c||this._clientSensor.incrementUploadFailureCounter((null===(d=this._media)||void 0===d?void 0:d.mediaUploadType)||oe(this._ingestionRequest)),de(this._status,{phase:r,reason:a,state:u},this._onTaskUpdate.bind(this))
const f=c?"getUploadCancelledTrackingData":"getUploadFailedTrackingData"
throw this._sendTrackingUpdate(this._trackingData[f](this._media,null===(t=this._registrationResult)||void 0===t?void 0:t.mediaArtifactUrn,null===(n=this._registrationResult)||void 0===n?void 0:n.type,{errorPhase:r,errorType:i,httpErrorCode:o,statusMessage:s})),new P("INGESTION FAILED",{reason:a,isCancelled:c},e)}cancel(){this._abortController.abort(f)}}class ve{constructor(e){this._ingestionListener=e}updateIngestionProgress(e){var t,n
null===(t=this._ingestionListener)||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,e)}updateTracking(e){var t,n
null===(t=this._ingestionListener)||void 0===t||null===(n=t.onTracking)||void 0===n||n.call(t,e)}}function ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class be{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
ye(this,"_ingesterJobMap",new Map),ye(this,"_ingesterConfig",{maxRetryAttempts:10}),ye(this,"_featureOptions",{}),this._ingesterConfig={...e,...this._ingesterConfig},this._featureOptions=t}ingest(e,t){var n
if(n=e,!function(e){return e.map((e=>e.media??e)).every((e=>{return function(e){return"string"==typeof e}(t=null==e?void 0:e.mediaUploadType)&&t.length
var t}))}(e=Array.isArray(n)&&n.length>0?e:[e]))throw TypeError("Invalid mediaUploadType")
const r=new ve(t),i=new F
return e.forEach((e=>{const t=new me(e,this._ingesterConfig,this._featureOptions)
!function(e,t,n){e.on(h,(()=>{t.update(),n.updateIngestionProgress(t)})),e.on(p,(e=>{n.updateTracking(e)}))}(t,i,r),i.addTask(t)})),this._ingesterJobMap.set(i.id,i),i.run(),i}cancel(e){const t=this._ingesterJobMap.get(e)
t&&(t.cancel(),this._ingesterJobMap.delete(e))}cancelAll(){this._ingesterJobMap.forEach((e=>e.cancel())),this._ingesterJobMap.clear()}}},37647:e=>{e.exports={getVideoDuration:function(e){return new Promise((t=>{const n=document.createElement("video")
n.preload="metadata",n.addEventListener("loadedmetadata",(()=>t(Math.round(1e3*n.duration)))),n.addEventListener("error",(()=>t(null))),n.src=window.URL.createObjectURL(e)}))}}},11056:e=>{e.exports={isBrowser:function(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}}},51510:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ConversationsIterable:()=>st,MDError:()=>Ae,Mailbox:()=>vl,MailboxConnection:()=>bl,MailboxConnectionPool:()=>yl,apiErrors:()=>ye,clearStateForTesting:()=>Ze,clientErrors:()=>be,connectToMailbox:()=>El,connectToMailboxes:()=>_l,conversationStateIdentifierIs:()=>De,conversationStateUrnIs:()=>Ne,getCommonTimeClient:()=>r.getClient,getConvoStateFromMessageUrn:()=>te,getRealtimeConnectionHeaders:()=>Mu,getRealtimeQueryMap:()=>Ou,graphQlErrors:()=>Ee,hasMessageData:()=>je,isAString:()=>le,isClientId:()=>Y,isCommonTimeAPIError:()=>xe,isContentUpdateMode:()=>ae,isConversationCategory:()=>de,isConversationUrn:()=>$,isConvoActivationOption:()=>oe,isError:()=>Te,isForwardedMessageContent:()=>ce,isIdentifier:()=>Z,isInputMailboxFilter:()=>me,isMDError:()=>Se,isMDResponseError:()=>Ce,isMailboxCategoryFilter:()=>ge,isMarkConvoReadTypes:()=>ie,isMemberParticipant:()=>ee,isNextFunction:()=>ne,isOptionalSendData:()=>he,isSavedConversationState:()=>Q,isSelectorFilterOption:()=>fe,isSubscriber:()=>re,isTextFragment:()=>ue,isTrackingData:()=>pe,isUrn:()=>J,isUrnUpdateMap:()=>se,messageStateClientIdIs:()=>Le,optionalErrorData:()=>ve,realtimeErrors:()=>_e,rejectAsMDResponseError:()=>we})
var r=n(75023)
function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?i(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(){a=function(){return e}
var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.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,i){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new A(i||[])
return r(a,"_invoke",{value:T(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}}}e.wrap=l
var f={}
function h(){}function p(){}function g(){}var m={}
u(m,o,(function(){return this}))
var v=Object.getPrototypeOf,y=v&&v(v(w([])))
y&&y!==t&&n.call(y,o)&&(m=y)
var b=g.prototype=h.prototype=Object.create(m)
function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(r,o,a,s){var c=d(e[r],e,o)
if("throw"!==c.type){var u=c.arg,l=u.value
return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,s)}))}s(c.arg)}var o
r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function T(e,t,n){var r="suspendedStart"
return function(i,o){if("executing"===r)throw new Error("Generator is already running")
if("completed"===r){if("throw"===i)throw o
return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate
if(a){var s=S(a,n)
if(s){if(s===f)continue
return s}}if("next"===n.method)n.sent=n._sent=n.arg
else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg
n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg)
r="executing"
var c=d(e,t,n)
if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue
return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n]
if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f
var i=d(r,e.iterator,t.arg)
if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f
var o=i.arg
return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(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 C(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function w(e){if(e){var t=e[o]
if(t)return t.call(e)
if("function"==typeof e.next)return e
if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t
return t.value=void 0,t.done=!0,t}
return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:p,configurable:!0}),p.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor
return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},E(_.prototype),u(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise)
var a=new _(l(t,n,r,i),o)
return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(b),u(b,c,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.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}},e.values=w,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0
var e=this.tryEntries[0].completion
if("throw"===e.type)throw e.arg
return this.rval},dispatchException:function(e){if(this.done)throw e
var t=this
function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion
if("root"===o.tryLoc)return r("end")
if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc")
if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)
if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally")
if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r]
if(i.tryLoc<=this.prev&&n.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,f):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),f},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),C(n),f}},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
C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function s(e){return s="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},s(e)}function c(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 u(e){return function(){var t=this,n=arguments
return new Promise((function(r,i){var o=e.apply(t,n)
function a(e){c(o,r,i,a,s,"next",e)}function s(e){c(o,r,i,a,s,"throw",e)}a(void 0)}))}}function l(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 f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(){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 v(e,t,n){return v=m()?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&&g(i,n.prototype),i},v.apply(null,arguments)}function y(e){var t="function"==typeof Map?new Map:void 0
return y=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(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 v(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},y(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function E(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)||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 _(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(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 T(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}function S(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 x(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}const C=e=>t=>!1===e.includes(t),A=(e,t)=>n=>n.map(((n,r)=>e(n,r)?t(n):n)),w=(e,t)=>n=>{let r=!1
return n.map(((n,i)=>!r&&e(n,i)?(r=!0,t(n)):n))},I=e=>t=>t.reduce(((t,n)=>(e(n)?t[0].push(n):t[1].push(n),[t[0],t[1]])),[[],[]]),R=e=>Object.keys(e),k=e=>null!=e,O=e=>null==e,M=e=>t=>{const{[e]:n,...r}=t
return void 0===n?t:r},N=e=>Object.values(e)
var P,D=function(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment},U=function(e){return Object.fromEntries(e)},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
return t&&0!==t.length?[].concat(_(e),_(t.filter(C(e)))):e},j=function(e){return!e},F=function(e,t,n){var r=new Map(e)
return r.set(t,n),r},B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},H=function(e,t){if(e.has(t))return e
var n=new Set(e)
return Object.freeze(n.add(t))},G=function(e,t){var n=new Set(e)
return n.delete(t)?Object.freeze(n):e},K=function(e){return"object"===s(e)&&null!==e},V=function(e){return"number"==typeof e},z=function(e){return"string"==typeof e},W=function(e,t){return e.every(t)},X=function(e,t){return t.substring(Math.max(t.length-e,0))},Q=function(e){return void 0!==e.entityUrn},Y=function(e){return z(e)&&/^[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+$/.test(e)},$=function(e){return/^urn:li:msg_conversation:.*$/.test(e)},J=function(e){return z(e)&&e.startsWith("urn:")},Z=function(e){return J(e)||z(e)&&Y(e)},ee=function(e){return"MEMBER"===e.kind},te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState"
return e.find((function(e){return void 0!==e.messages.getByIdentifier(t)}),n)}
function ne(e){return"function"==typeof e}function re(e){var t=e
return!((null===t||"object"!==s(t))&&"function"!=typeof t||"function"!=typeof t.next||void 0!==t.error&&"function"!=typeof t.error||void 0!==t.complete&&"function"!=typeof t.complete)}function ie(e){return"MARK_READ"===e||"MARK_UNREAD"===e||"NO_CHANGE"===e}function oe(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&ie(t.markConvoReadTypes)&&("FALLBACK_SYNC"===t.setConvoActiveSyncOption||"ALWAYS_SYNC"===t.setConvoActiveSyncOption)}function ae(e){return"ADD"===e||"REPLACE"===e}function se(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&Object.entries(t).every((function(e){var t=E(e,2),n=t[0]
return"boolean"==typeof t[1]&&"string"==typeof n}))}function ce(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&ue(t.forwardedBody)&&ue(t.footerText)&&(null!==t&&"object"===s(t)||"function"==typeof t)&&"number"==typeof t.originalSendAt&&le(t.originalSenderUrn)}function ue(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&le(t.text)&&Array.isArray(t.attributes)&&t.attributes.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.start&&"number"==typeof e.length&&(void 0===e.attributeKind||null===e.attributeKind||(null!==e.attributeKind&&"object"===s(e.attributeKind)||"function"==typeof e.attributeKind)&&(void 0===e.attributeKind.bold||null===e.attributeKind.bold||(null!==e.attributeKind.bold&&"object"===s(e.attributeKind.bold)||"function"==typeof e.attributeKind.bold)&&"pemberly_text_Bold"===e.attributeKind.bold.__typename)&&(void 0===e.attributeKind.italic||null===e.attributeKind.italic||(null!==e.attributeKind.italic&&"object"===s(e.attributeKind.italic)||"function"==typeof e.attributeKind.italic)&&"pemberly_text_Italic"===e.attributeKind.italic.__typename)&&(void 0===e.attributeKind.hyperlink||null===e.attributeKind.hyperlink||(null!==e.attributeKind.hyperlink&&"object"===s(e.attributeKind.hyperlink)||"function"==typeof e.attributeKind.hyperlink)&&"pemberly_text_Hyperlink"===e.attributeKind.hyperlink.__typename&&le(e.attributeKind.hyperlink.url))&&(void 0===e.attributeKind.paragraph||null===e.attributeKind.paragraph||(null!==e.attributeKind.paragraph&&"object"===s(e.attributeKind.paragraph)||"function"==typeof e.attributeKind.paragraph)&&"pemberly_text_Paragraph"===e.attributeKind.paragraph.__typename)&&(void 0===e.attributeKind.list||null===e.attributeKind.list||(null!==e.attributeKind.list&&"object"===s(e.attributeKind.list)||"function"==typeof e.attributeKind.list)&&"pemberly_text_List"===e.attributeKind.list.__typename&&"boolean"==typeof e.attributeKind.list.ordered)&&(void 0===e.attributeKind.listItem||null===e.attributeKind.listItem||(null!==e.attributeKind.listItem&&"object"===s(e.attributeKind.listItem)||"function"==typeof e.attributeKind.listItem)&&"pemberly_text_ListItem"===e.attributeKind.listItem.__typename)&&(void 0===e.attributeKind.lineBreak||null===e.attributeKind.lineBreak||(null!==e.attributeKind.lineBreak&&"object"===s(e.attributeKind.lineBreak)||"function"==typeof e.attributeKind.lineBreak)&&"pemberly_text_LineBreak"===e.attributeKind.lineBreak.__typename)&&(void 0===e.attributeKind.underline||null===e.attributeKind.underline||(null!==e.attributeKind.underline&&"object"===s(e.attributeKind.underline)||"function"==typeof e.attributeKind.underline)&&"pemberly_text_Underline"===e.attributeKind.underline.__typename)&&(void 0===e.attributeKind.subscript||null===e.attributeKind.subscript||(null!==e.attributeKind.subscript&&"object"===s(e.attributeKind.subscript)||"function"==typeof e.attributeKind.subscript)&&"pemberly_text_Subscript"===e.attributeKind.subscript.__typename)&&(void 0===e.attributeKind.superscript||null===e.attributeKind.superscript||(null!==e.attributeKind.superscript&&"object"===s(e.attributeKind.superscript)||"function"==typeof e.attributeKind.superscript)&&"pemberly_text_Superscript"===e.attributeKind.superscript.__typename)&&(void 0===e.attributeKind.entity||null===e.attributeKind.entity||(null!==e.attributeKind.entity&&"object"===s(e.attributeKind.entity)||"function"==typeof e.attributeKind.entity)&&le(e.attributeKind.entity.urn)))}))}function le(e){return"string"==typeof e}function de(e){return"string"==typeof e}function fe(e){return"FilteredMailboxState"===e||"FullMailboxState"===e}function he(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&Array.isArray(t.renderContent)&&t.renderContent.every((function(e){return(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.audio||null===e.audio||(null!==e.audio&&"object"===s(e.audio)||"function"==typeof e.audio)&&"number"==typeof e.audio.duration&&le(e.audio.url))&&(void 0===e.awayMessage||null===e.awayMessage||(null!==e.awayMessage&&"object"===s(e.awayMessage)||"function"==typeof e.awayMessage)&&ue(e.awayMessage.footerText)&&ue(e.awayMessage.text))&&(void 0===e.externalMedia||null===e.externalMedia||(null!==e.externalMedia&&"object"===s(e.externalMedia)||"function"==typeof e.externalMedia)&&le(e.externalMedia.entityUrn)&&(void 0===e.externalMedia.title||null===e.externalMedia.title||le(e.externalMedia.title))&&(null!==e.externalMedia.media&&"object"===s(e.externalMedia.media)||"function"==typeof e.externalMedia.media)&&"number"==typeof e.externalMedia.media.originalHeight&&"number"==typeof e.externalMedia.media.originalWidth&&le(e.externalMedia.media.url)&&(void 0===e.externalMedia.previewMedia||null===e.externalMedia.previewMedia||(null!==e.externalMedia.previewMedia&&"object"===s(e.externalMedia.previewMedia)||"function"==typeof e.externalMedia.previewMedia)&&"number"==typeof e.externalMedia.previewMedia.originalHeight&&"number"==typeof e.externalMedia.previewMedia.originalWidth&&le(e.externalMedia.previewMedia.url)))&&(void 0===e.file||null===e.file||(null!==e.file&&"object"===s(e.file)||"function"==typeof e.file)&&le(e.file.assetUrn)&&(void 0===e.file.byteSize||null===e.file.byteSize||"number"==typeof e.file.byteSize)&&le(e.file.mediaType)&&le(e.file.name)&&le(e.file.url))&&(void 0===e.messageAdRenderContent||null===e.messageAdRenderContent||(null!==e.messageAdRenderContent&&"object"===s(e.messageAdRenderContent)||"function"==typeof e.messageAdRenderContent)&&(void 0===e.messageAdRenderContent.advertiserLabel||null===e.messageAdRenderContent.advertiserLabel||le(e.messageAdRenderContent.advertiserLabel))&&(void 0===e.messageAdRenderContent.bodyTracking||null===e.messageAdRenderContent.bodyTracking||le(e.messageAdRenderContent.bodyTracking))&&(void 0===e.messageAdRenderContent.legalTextTracking||null===e.messageAdRenderContent.legalTextTracking||le(e.messageAdRenderContent.legalTextTracking))&&(void 0===e.messageAdRenderContent.openTracking||null===e.messageAdRenderContent.openTracking||le(e.messageAdRenderContent.openTracking))&&(void 0===e.messageAdRenderContent.sponsoredCampaignUrn||null===e.messageAdRenderContent.sponsoredCampaignUrn||le(e.messageAdRenderContent.sponsoredCampaignUrn))&&("PENDING"===e.messageAdRenderContent.status||"ACTIONED"===e.messageAdRenderContent.status)&&(null!==e.messageAdRenderContent.creativeAdsReportingInfo&&"object"===s(e.messageAdRenderContent.creativeAdsReportingInfo)||"function"==typeof e.messageAdRenderContent.creativeAdsReportingInfo)&&("MESSAGE_AD"===e.messageAdRenderContent.creativeAdsReportingInfo.contentSource||"SPONSORED_MESSAGE"===e.messageAdRenderContent.creativeAdsReportingInfo.contentSource)&&le(e.messageAdRenderContent.creativeAdsReportingInfo.sponsoredAccountUrn)&&le(e.messageAdRenderContent.creativeAdsReportingInfo.sponsoredCreativeUrn)&&(void 0===e.messageAdRenderContent.legalText||null===e.messageAdRenderContent.legalText||ue(e.messageAdRenderContent.legalText))&&(void 0===e.messageAdRenderContent.sponsoredTracking||null===e.messageAdRenderContent.sponsoredTracking||(null!==e.messageAdRenderContent.sponsoredTracking&&"object"===s(e.messageAdRenderContent.sponsoredTracking)||"function"==typeof e.messageAdRenderContent.sponsoredTracking)&&le(e.messageAdRenderContent.sponsoredTracking.adRequestId)&&("SPONSORED"===e.messageAdRenderContent.sponsoredTracking.activityType||"VIRAL"===e.messageAdRenderContent.sponsoredTracking.activityType)&&(void 0===e.messageAdRenderContent.sponsoredTracking.adTrackingCode||null===e.messageAdRenderContent.sponsoredTracking.adTrackingCode||le(e.messageAdRenderContent.sponsoredTracking.adTrackingCode))&&(void 0===e.messageAdRenderContent.sponsoredTracking.leadTrackingCode||null===e.messageAdRenderContent.sponsoredTracking.leadTrackingCode||le(e.messageAdRenderContent.sponsoredTracking.leadTrackingCode))&&(void 0===e.messageAdRenderContent.sponsoredTracking.version||null===e.messageAdRenderContent.sponsoredTracking.version||le(e.messageAdRenderContent.sponsoredTracking.version))&&(void 0===e.messageAdRenderContent.sponsoredTracking.videoBehavior||null===e.messageAdRenderContent.sponsoredTracking.videoBehavior||"DISPLAY_WITH_LANDING_PAGE"===e.messageAdRenderContent.sponsoredTracking.videoBehavior||"DISPLAY_WITH_LEADGEN_FORM"===e.messageAdRenderContent.sponsoredTracking.videoBehavior||"OPEN_VIDEO_FULLSCREEN"===e.messageAdRenderContent.sponsoredTracking.videoBehavior)&&(void 0===e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn||null===e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn||le(e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn))&&(void 0===e.messageAdRenderContent.sponsoredTracking.adServingUrn||null===e.messageAdRenderContent.sponsoredTracking.adServingUrn||le(e.messageAdRenderContent.sponsoredTracking.adServingUrn)))&&(null!==e.messageAdRenderContent.subContent&&"object"===s(e.messageAdRenderContent.subContent)||"function"==typeof e.messageAdRenderContent.subContent)&&(void 0===e.messageAdRenderContent.subContent.action||null===e.messageAdRenderContent.subContent.action||le(e.messageAdRenderContent.subContent.action))&&le(e.messageAdRenderContent.subContent.actionText)&&(void 0===e.messageAdRenderContent.subContent.actionTracking||null===e.messageAdRenderContent.subContent.actionTracking||le(e.messageAdRenderContent.subContent.actionTracking))&&(void 0===e.messageAdRenderContent.subContent.callToActionLabel||null===e.messageAdRenderContent.subContent.callToActionLabel||le(e.messageAdRenderContent.subContent.callToActionLabel))&&(void 0===e.messageAdRenderContent.subContent.leadGenFormOpenTracking||null===e.messageAdRenderContent.subContent.leadGenFormOpenTracking||le(e.messageAdRenderContent.subContent.leadGenFormOpenTracking))&&(void 0===e.messageAdRenderContent.subContent.leadGenFormUrn||null===e.messageAdRenderContent.subContent.leadGenFormUrn||le(e.messageAdRenderContent.subContent.leadGenFormUrn))&&(void 0===e.messageAdRenderContent.subContent.leadTrackingCode||null===e.messageAdRenderContent.subContent.leadTrackingCode||le(e.messageAdRenderContent.subContent.leadTrackingCode))&&(void 0===e.messageAdRenderContent.subContent.leadTrackingParams||null===e.messageAdRenderContent.subContent.leadTrackingParams||le(e.messageAdRenderContent.subContent.leadTrackingParams))&&(void 0===e.messageAdRenderContent.subContent.tscpUrl||null===e.messageAdRenderContent.subContent.tscpUrl||le(e.messageAdRenderContent.subContent.tscpUrl))&&(void 0===e.messageAdRenderContent.subContent.adUnit||null===e.messageAdRenderContent.subContent.adUnit||(null!==e.messageAdRenderContent.subContent.adUnit&&"object"===s(e.messageAdRenderContent.subContent.adUnit)||"function"==typeof e.messageAdRenderContent.subContent.adUnit)&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnitTracking||null===e.messageAdRenderContent.subContent.adUnit.adUnitTracking||le(e.messageAdRenderContent.subContent.adUnit.adUnitTracking))&&(null!==e.messageAdRenderContent.subContent.adUnit.adUnit&&"object"===s(e.messageAdRenderContent.subContent.adUnit.adUnit)||"function"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit)&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.attribution||null===e.messageAdRenderContent.subContent.adUnit.adUnit.attribution||le(e.messageAdRenderContent.subContent.adUnit.adUnit.attribution))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl||null===e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl||le(e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset||null===e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset||le(e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset))&&Array.isArray(e.messageAdRenderContent.subContent.adUnit.adUnit.artifacts)&&e.messageAdRenderContent.subContent.adUnit.adUnit.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint||null===e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint||(null!==e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint&&"object"===s(e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint)||"function"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint)&&"number"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint.xOffsetPercentage&&"number"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint.yOffsetPercentage)))&&(void 0===e.vectorImage||null===e.vectorImage||(null!==e.vectorImage&&"object"===s(e.vectorImage)||"function"==typeof e.vectorImage)&&(void 0===e.vectorImage.attribution||null===e.vectorImage.attribution||le(e.vectorImage.attribution))&&(void 0===e.vectorImage.rootUrl||null===e.vectorImage.rootUrl||le(e.vectorImage.rootUrl))&&(void 0===e.vectorImage.digitalmediaAsset||null===e.vectorImage.digitalmediaAsset||le(e.vectorImage.digitalmediaAsset))&&Array.isArray(e.vectorImage.artifacts)&&e.vectorImage.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.vectorImage.focalPoint||null===e.vectorImage.focalPoint||(null!==e.vectorImage.focalPoint&&"object"===s(e.vectorImage.focalPoint)||"function"==typeof e.vectorImage.focalPoint)&&"number"==typeof e.vectorImage.focalPoint.xOffsetPercentage&&"number"==typeof e.vectorImage.focalPoint.yOffsetPercentage))&&(void 0===e.video||null===e.video||(null!==e.video&&"object"===s(e.video)||"function"==typeof e.video)&&(void 0===e.video.entityUrn||null===e.video.entityUrn||le(e.video.entityUrn))&&(void 0===e.video.aspectRatio||null===e.video.aspectRatio||"number"==typeof e.video.aspectRatio)&&(void 0===e.video.duration||null===e.video.duration||"number"==typeof e.video.duration)&&(void 0===e.video.liveStreamCreatedAt||null===e.video.liveStreamCreatedAt||"number"==typeof e.video.liveStreamCreatedAt)&&(void 0===e.video.liveStreamEndedAt||null===e.video.liveStreamEndedAt||"number"==typeof e.video.liveStreamEndedAt)&&le(e.video.media)&&(void 0===e.video.nextMedia||null===e.video.nextMedia||le(e.video.nextMedia))&&(void 0===e.video.prevMedia||null===e.video.prevMedia||le(e.video.prevMedia))&&(void 0===e.video.provider||null===e.video.provider||"ADS"===e.video.provider||"ASSESSMENTS"===e.video.provider||"CAREER_VIDEO"===e.video.provider||"LEARNING"===e.video.provider||"LINKEDIN"===e.video.provider||"LIVE_VIDEO"===e.video.provider||"MESSAGING"===e.video.provider||"PROFILE_VIDEO"===e.video.provider||"STORIES"===e.video.provider||"UGC"===e.video.provider)&&le(e.video.trackingId)&&(void 0===e.video.adaptiveStreams||null===e.video.adaptiveStreams||Array.isArray(e.video.adaptiveStreams)&&e.video.adaptiveStreams.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.initialBitRate||null===e.initialBitRate||"number"==typeof e.initialBitRate)&&(void 0===e.mediaType||null===e.mediaType||le(e.mediaType))&&("DASH"===e.protocol||"HDS"===e.protocol||"HLS"===e.protocol||"SMOOTH"===e.protocol)&&Array.isArray(e.masterPlaylists)&&e.masterPlaylists.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.expiresAt||null===e.expiresAt||"number"==typeof e.expiresAt)&&le(e.url)}))})))&&Array.isArray(e.video.progressiveStreams)&&e.video.progressiveStreams.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.bitRate&&"number"==typeof e.height&&(void 0===e.mediaType||null===e.mediaType||le(e.mediaType))&&(void 0===e.mimeType||null===e.mimeType||"MP3"===e.mimeType||"MP4"===e.mimeType||"WEBM"===e.mimeType)&&"number"==typeof e.size&&"number"==typeof e.width&&Array.isArray(e.streamingLocations)&&e.streamingLocations.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.expiresAt||null===e.expiresAt||"number"==typeof e.expiresAt)&&le(e.url)}))}))&&(void 0===e.video.thumbnail||null===e.video.thumbnail||(null!==e.video.thumbnail&&"object"===s(e.video.thumbnail)||"function"==typeof e.video.thumbnail)&&(void 0===e.video.thumbnail.attribution||null===e.video.thumbnail.attribution||le(e.video.thumbnail.attribution))&&(void 0===e.video.thumbnail.rootUrl||null===e.video.thumbnail.rootUrl||le(e.video.thumbnail.rootUrl))&&(void 0===e.video.thumbnail.digitalmediaAsset||null===e.video.thumbnail.digitalmediaAsset||le(e.video.thumbnail.digitalmediaAsset))&&Array.isArray(e.video.thumbnail.artifacts)&&e.video.thumbnail.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.video.thumbnail.focalPoint||null===e.video.thumbnail.focalPoint||(null!==e.video.thumbnail.focalPoint&&"object"===s(e.video.thumbnail.focalPoint)||"function"==typeof e.video.thumbnail.focalPoint)&&"number"==typeof e.video.thumbnail.focalPoint.xOffsetPercentage&&"number"==typeof e.video.thumbnail.focalPoint.yOffsetPercentage))&&(void 0===e.video.transcripts||null===e.video.transcripts||Array.isArray(e.video.transcripts)&&e.video.transcripts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.captionFile||null===e.captionFile||le(e.captionFile))&&(void 0===e.captionFormat||null===e.captionFormat||"SRT"===e.captionFormat||"WEBVTT"===e.captionFormat)&&"boolean"==typeof e.isAutogenerated&&Array.isArray(e.lines)&&e.lines.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&le(e.caption)&&"number"==typeof e.lineEndAt&&"number"==typeof e.lineStartAt}))&&(null!==e.locale&&"object"===s(e.locale)||"function"==typeof e.locale)&&(void 0===e.locale.country||null===e.locale.country||le(e.locale.country))&&le(e.locale.language)&&(void 0===e.locale.script||null===e.locale.script||le(e.locale.script))&&(void 0===e.locale.variant||null===e.locale.variant||le(e.locale.variant))&&(void 0===e.locale.extensions||null===e.locale.extensions||(null!==e.locale.extensions&&"object"===s(e.locale.extensions)||"function"==typeof e.locale.extensions)&&(void 0===e.locale.extensions.t||null===e.locale.extensions.t||le(e.locale.extensions.t))&&(void 0===e.locale.extensions.u||null===e.locale.extensions.u||le(e.locale.extensions.u))&&(void 0===e.locale.extensions.x||null===e.locale.extensions.x||le(e.locale.extensions.x)))}))))&&(void 0===e.videoMeeting||null===e.videoMeeting||(null!==e.videoMeeting&&"object"===s(e.videoMeeting)||"function"==typeof e.videoMeeting)&&(void 0===e.videoMeeting.earliestStartAt||null===e.videoMeeting.earliestStartAt||"number"==typeof e.videoMeeting.earliestStartAt)&&(void 0===e.videoMeeting.expiresAt||null===e.videoMeeting.expiresAt||"number"==typeof e.videoMeeting.expiresAt)&&(void 0===e.videoMeeting.videoMeeting||null===e.videoMeeting.videoMeeting||(null!==e.videoMeeting.videoMeeting&&"object"===s(e.videoMeeting.videoMeeting)||"function"==typeof e.videoMeeting.videoMeeting)&&le(e.videoMeeting.videoMeeting.entityUrn))&&(void 0===e.videoMeeting.timeRange||null===e.videoMeeting.timeRange||(null!==e.videoMeeting.timeRange&&"object"===s(e.videoMeeting.timeRange)||"function"==typeof e.videoMeeting.timeRange)&&(void 0===e.videoMeeting.timeRange.end||null===e.videoMeeting.timeRange.end||"number"==typeof e.videoMeeting.timeRange.end)&&(void 0===e.videoMeeting.timeRange.start||null===e.videoMeeting.timeRange.start||"number"==typeof e.videoMeeting.timeRange.start)))&&(void 0===e.hostUrnData||null===e.hostUrnData||(null!==e.hostUrnData&&"object"===s(e.hostUrnData)||"function"==typeof e.hostUrnData)&&le(e.hostUrnData.hostUrn)&&le(e.hostUrnData.type))&&(void 0===e.conversationAdsMessageContent||null===e.conversationAdsMessageContent||(null!==e.conversationAdsMessageContent&&"object"===s(e.conversationAdsMessageContent)||"function"==typeof e.conversationAdsMessageContent)&&le(e.conversationAdsMessageContent.sponsoredMessageContentUrn)&&(void 0===e.conversationAdsMessageContent.sponsoredMessageTrackingId||null===e.conversationAdsMessageContent.sponsoredMessageTrackingId||"number"==typeof e.conversationAdsMessageContent.sponsoredMessageTrackingId)&&Array.isArray(e.conversationAdsMessageContent.sponsoredMessageOptions)&&e.conversationAdsMessageContent.sponsoredMessageOptions.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.tscpUrl||null===e.tscpUrl||le(e.tscpUrl))&&(void 0===e.clickAction||null===e.clickAction||(null!==e.clickAction&&"object"===s(e.clickAction)||"function"==typeof e.clickAction)&&(void 0===e.clickAction.externalWebsiteClickAction||null===e.clickAction.externalWebsiteClickAction||(null!==e.clickAction.externalWebsiteClickAction&&"object"===s(e.clickAction.externalWebsiteClickAction)||"function"==typeof e.clickAction.externalWebsiteClickAction)&&(void 0===e.clickAction.externalWebsiteClickAction.redirectUrl||null===e.clickAction.externalWebsiteClickAction.redirectUrl||le(e.clickAction.externalWebsiteClickAction.redirectUrl)))&&(void 0===e.clickAction.leadGenClickAction||null===e.clickAction.leadGenClickAction||(null!==e.clickAction.leadGenClickAction&&"object"===s(e.clickAction.leadGenClickAction)||"function"==typeof e.clickAction.leadGenClickAction)&&(void 0===e.clickAction.leadGenClickAction.leadGenFormUrn||null===e.clickAction.leadGenClickAction.leadGenFormUrn||le(e.clickAction.leadGenClickAction.leadGenFormUrn))&&(void 0===e.clickAction.leadGenClickAction.leadTrackingCode||null===e.clickAction.leadGenClickAction.leadTrackingCode||le(e.clickAction.leadGenClickAction.leadTrackingCode))&&(void 0===e.clickAction.leadGenClickAction.leadTrackingParams||null===e.clickAction.leadGenClickAction.leadTrackingParams||le(e.clickAction.leadGenClickAction.leadTrackingParams))))&&ue(e.optionText)&&(void 0===e.sponsoredMessageOption||null===e.sponsoredMessageOption||(null!==e.sponsoredMessageOption&&"object"===s(e.sponsoredMessageOption)||"function"==typeof e.sponsoredMessageOption)&&le(e.sponsoredMessageOption.entityUrn))})))&&(void 0===e.forwardedMessageContent||null===e.forwardedMessageContent||(null!==e.forwardedMessageContent&&"object"===s(e.forwardedMessageContent)||"function"==typeof e.forwardedMessageContent)&&"number"==typeof e.forwardedMessageContent.originalSendAt&&(null!==e.forwardedMessageContent.originalSender&&"object"===s(e.forwardedMessageContent.originalSender)||"function"==typeof e.forwardedMessageContent.originalSender)&&le(e.forwardedMessageContent.originalSender.entityUrn)&&(void 0===e.forwardedMessageContent.originalSender.hostIdentityUrn||null===e.forwardedMessageContent.originalSender.hostIdentityUrn||le(e.forwardedMessageContent.originalSender.hostIdentityUrn))&&(void 0===e.forwardedMessageContent.originalSender.backendUrn||null===e.forwardedMessageContent.originalSender.backendUrn||le(e.forwardedMessageContent.originalSender.backendUrn))&&(void 0===e.forwardedMessageContent.originalSender.participantType||null===e.forwardedMessageContent.originalSender.participantType||(null!==e.forwardedMessageContent.originalSender.participantType&&"object"===s(e.forwardedMessageContent.originalSender.participantType)||"function"==typeof e.forwardedMessageContent.originalSender.participantType)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member||null===e.forwardedMessageContent.originalSender.participantType.member||(null!==e.forwardedMessageContent.originalSender.participantType.member&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profileUrl||null===e.forwardedMessageContent.originalSender.participantType.member.profileUrl||le(e.forwardedMessageContent.originalSender.participantType.member.profileUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.distance||null===e.forwardedMessageContent.originalSender.participantType.member.distance||"DISTANCE_1"===e.forwardedMessageContent.originalSender.participantType.member.distance||"DISTANCE_2"===e.forwardedMessageContent.originalSender.participantType.member.distance||"DISTANCE_3"===e.forwardedMessageContent.originalSender.participantType.member.distance||"OUT_OF_NETWORK"===e.forwardedMessageContent.originalSender.participantType.member.distance||"SELF"===e.forwardedMessageContent.originalSender.participantType.member.distance)&&ue(e.forwardedMessageContent.originalSender.participantType.member.firstName)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.lastName||null===e.forwardedMessageContent.originalSender.participantType.member.lastName||ue(e.forwardedMessageContent.originalSender.participantType.member.lastName))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.headline||null===e.forwardedMessageContent.originalSender.participantType.member.headline||ue(e.forwardedMessageContent.originalSender.participantType.member.headline))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture||(null!==e.forwardedMessageContent.originalSender.participantType.member.profilePicture&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member.profilePicture)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution||le(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||le(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||le(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset))&&Array.isArray(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.artifacts)&&e.forwardedMessageContent.originalSender.participantType.member.profilePicture.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||(null!==e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.xOffsetPercentage&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.yOffsetPercentage))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.pronoun||null===e.forwardedMessageContent.originalSender.participantType.member.pronoun||(null!==e.forwardedMessageContent.originalSender.participantType.member.pronoun&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member.pronoun)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member.pronoun)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.pronoun.customPronoun||null===e.forwardedMessageContent.originalSender.participantType.member.pronoun.customPronoun||le(e.forwardedMessageContent.originalSender.participantType.member.pronoun.customPronoun))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||null===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"HE_HIM"===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"SHE_HER"===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"THEY_THEM"===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun)))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization||null===e.forwardedMessageContent.originalSender.participantType.organization||(null!==e.forwardedMessageContent.originalSender.participantType.organization&&"object"===s(e.forwardedMessageContent.originalSender.participantType.organization)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.organization)&&"boolean"==typeof e.forwardedMessageContent.originalSender.participantType.organization.following&&("COMPANY"===e.forwardedMessageContent.originalSender.participantType.organization.pageType||"SCHOOL"===e.forwardedMessageContent.originalSender.participantType.organization.pageType||"SHOWCASE"===e.forwardedMessageContent.originalSender.participantType.organization.pageType)&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.pageUrl||null===e.forwardedMessageContent.originalSender.participantType.organization.pageUrl||le(e.forwardedMessageContent.originalSender.participantType.organization.pageUrl))&&ue(e.forwardedMessageContent.originalSender.participantType.organization.name)&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.tagline||null===e.forwardedMessageContent.originalSender.participantType.organization.tagline||ue(e.forwardedMessageContent.originalSender.participantType.organization.tagline))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo||null===e.forwardedMessageContent.originalSender.participantType.organization.logo||(null!==e.forwardedMessageContent.originalSender.participantType.organization.logo&&"object"===s(e.forwardedMessageContent.originalSender.participantType.organization.logo)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo)&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution||le(e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl||le(e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||le(e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset))&&Array.isArray(e.forwardedMessageContent.originalSender.participantType.organization.logo.artifacts)&&e.forwardedMessageContent.originalSender.participantType.organization.logo.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint||(null!==e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint&&"object"===s(e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint)&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint.xOffsetPercentage&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint.yOffsetPercentage))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.industryName||null===e.forwardedMessageContent.originalSender.participantType.organization.industryName||ue(e.forwardedMessageContent.originalSender.participantType.organization.industryName)))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom||null===e.forwardedMessageContent.originalSender.participantType.custom||(null!==e.forwardedMessageContent.originalSender.participantType.custom&&"object"===s(e.forwardedMessageContent.originalSender.participantType.custom)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.custom)&&ue(e.forwardedMessageContent.originalSender.participantType.custom.name)&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image||null===e.forwardedMessageContent.originalSender.participantType.custom.image||(null!==e.forwardedMessageContent.originalSender.participantType.custom.image&&"object"===s(e.forwardedMessageContent.originalSender.participantType.custom.image)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image)&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.attribution||null===e.forwardedMessageContent.originalSender.participantType.custom.image.attribution||le(e.forwardedMessageContent.originalSender.participantType.custom.image.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl||le(e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||le(e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset))&&Array.isArray(e.forwardedMessageContent.originalSender.participantType.custom.image.artifacts)&&e.forwardedMessageContent.originalSender.participantType.custom.image.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint||null===e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint||(null!==e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint&&"object"===s(e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint)&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint.xOffsetPercentage&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint.yOffsetPercentage))))&&ue(e.forwardedMessageContent.forwardedBody)&&ue(e.forwardedMessageContent.footerText))&&(void 0===e.repliedMessageContent||null===e.repliedMessageContent||(null!==e.repliedMessageContent&&"object"===s(e.repliedMessageContent)||"function"==typeof e.repliedMessageContent)&&"number"==typeof e.repliedMessageContent.originalSendAt&&(null!==e.repliedMessageContent.originalSender&&"object"===s(e.repliedMessageContent.originalSender)||"function"==typeof e.repliedMessageContent.originalSender)&&le(e.repliedMessageContent.originalSender.entityUrn)&&(void 0===e.repliedMessageContent.originalSender.hostIdentityUrn||null===e.repliedMessageContent.originalSender.hostIdentityUrn||le(e.repliedMessageContent.originalSender.hostIdentityUrn))&&(void 0===e.repliedMessageContent.originalSender.backendUrn||null===e.repliedMessageContent.originalSender.backendUrn||le(e.repliedMessageContent.originalSender.backendUrn))&&(void 0===e.repliedMessageContent.originalSender.participantType||null===e.repliedMessageContent.originalSender.participantType||(null!==e.repliedMessageContent.originalSender.participantType&&"object"===s(e.repliedMessageContent.originalSender.participantType)||"function"==typeof e.repliedMessageContent.originalSender.participantType)&&(void 0===e.repliedMessageContent.originalSender.participantType.member||null===e.repliedMessageContent.originalSender.participantType.member||(null!==e.repliedMessageContent.originalSender.participantType.member&&"object"===s(e.repliedMessageContent.originalSender.participantType.member)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profileUrl||null===e.repliedMessageContent.originalSender.participantType.member.profileUrl||le(e.repliedMessageContent.originalSender.participantType.member.profileUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.distance||null===e.repliedMessageContent.originalSender.participantType.member.distance||"DISTANCE_1"===e.repliedMessageContent.originalSender.participantType.member.distance||"DISTANCE_2"===e.repliedMessageContent.originalSender.participantType.member.distance||"DISTANCE_3"===e.repliedMessageContent.originalSender.participantType.member.distance||"OUT_OF_NETWORK"===e.repliedMessageContent.originalSender.participantType.member.distance||"SELF"===e.repliedMessageContent.originalSender.participantType.member.distance)&&ue(e.repliedMessageContent.originalSender.participantType.member.firstName)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.lastName||null===e.repliedMessageContent.originalSender.participantType.member.lastName||ue(e.repliedMessageContent.originalSender.participantType.member.lastName))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.headline||null===e.repliedMessageContent.originalSender.participantType.member.headline||ue(e.repliedMessageContent.originalSender.participantType.member.headline))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture||(null!==e.repliedMessageContent.originalSender.participantType.member.profilePicture&&"object"===s(e.repliedMessageContent.originalSender.participantType.member.profilePicture)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution||le(e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||le(e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||le(e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset))&&Array.isArray(e.repliedMessageContent.originalSender.participantType.member.profilePicture.artifacts)&&e.repliedMessageContent.originalSender.participantType.member.profilePicture.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||(null!==e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint&&"object"===s(e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)&&"number"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.xOffsetPercentage&&"number"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.yOffsetPercentage))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.pronoun||null===e.repliedMessageContent.originalSender.participantType.member.pronoun||(null!==e.repliedMessageContent.originalSender.participantType.member.pronoun&&"object"===s(e.repliedMessageContent.originalSender.participantType.member.pronoun)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member.pronoun)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.pronoun.customPronoun||null===e.repliedMessageContent.originalSender.participantType.member.pronoun.customPronoun||le(e.repliedMessageContent.originalSender.participantType.member.pronoun.customPronoun))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||null===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"HE_HIM"===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"SHE_HER"===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"THEY_THEM"===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun)))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization||null===e.repliedMessageContent.originalSender.participantType.organization||(null!==e.repliedMessageContent.originalSender.participantType.organization&&"object"===s(e.repliedMessageContent.originalSender.participantType.organization)||"function"==typeof e.repliedMessageContent.originalSender.participantType.organization)&&"boolean"==typeof e.repliedMessageContent.originalSender.participantType.organization.following&&("COMPANY"===e.repliedMessageContent.originalSender.participantType.organization.pageType||"SCHOOL"===e.repliedMessageContent.originalSender.participantType.organization.pageType||"SHOWCASE"===e.repliedMessageContent.originalSender.participantType.organization.pageType)&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.pageUrl||null===e.repliedMessageContent.originalSender.participantType.organization.pageUrl||le(e.repliedMessageContent.originalSender.participantType.organization.pageUrl))&&ue(e.repliedMessageContent.originalSender.participantType.organization.name)&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.tagline||null===e.repliedMessageContent.originalSender.participantType.organization.tagline||ue(e.repliedMessageContent.originalSender.participantType.organization.tagline))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo||null===e.repliedMessageContent.originalSender.participantType.organization.logo||(null!==e.repliedMessageContent.originalSender.participantType.organization.logo&&"object"===s(e.repliedMessageContent.originalSender.participantType.organization.logo)||"function"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo)&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.attribution||null===e.repliedMessageContent.originalSender.participantType.organization.logo.attribution||le(e.repliedMessageContent.originalSender.participantType.organization.logo.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl||null===e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl||le(e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||le(e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset))&&Array.isArray(e.repliedMessageContent.originalSender.participantType.organization.logo.artifacts)&&e.repliedMessageContent.originalSender.participantType.organization.logo.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint||null===e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint||(null!==e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint&&"object"===s(e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint)||"function"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint)&&"number"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint.xOffsetPercentage&&"number"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint.yOffsetPercentage))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.industryName||null===e.repliedMessageContent.originalSender.participantType.organization.industryName||ue(e.repliedMessageContent.originalSender.participantType.organization.industryName)))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom||null===e.repliedMessageContent.originalSender.participantType.custom||(null!==e.repliedMessageContent.originalSender.participantType.custom&&"object"===s(e.repliedMessageContent.originalSender.participantType.custom)||"function"==typeof e.repliedMessageContent.originalSender.participantType.custom)&&ue(e.repliedMessageContent.originalSender.participantType.custom.name)&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image||null===e.repliedMessageContent.originalSender.participantType.custom.image||(null!==e.repliedMessageContent.originalSender.participantType.custom.image&&"object"===s(e.repliedMessageContent.originalSender.participantType.custom.image)||"function"==typeof e.repliedMessageContent.originalSender.participantType.custom.image)&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.attribution||null===e.repliedMessageContent.originalSender.participantType.custom.image.attribution||le(e.repliedMessageContent.originalSender.participantType.custom.image.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl||null===e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl||le(e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||le(e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset))&&Array.isArray(e.repliedMessageContent.originalSender.participantType.custom.image.artifacts)&&e.repliedMessageContent.originalSender.participantType.custom.image.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&le(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint||null===e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint||(null!==e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint&&"object"===s(e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint)||"function"==typeof e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint)&&"number"==typeof e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint.xOffsetPercentage&&"number"==typeof e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint.yOffsetPercentage))))&&(null!==e.repliedMessageContent.originalMessage&&"object"===s(e.repliedMessageContent.originalMessage)||"function"==typeof e.repliedMessageContent.originalMessage)&&le(e.repliedMessageContent.originalMessage.entityUrn)&&ue(e.repliedMessageContent.messageBody))&&(void 0===e.unavailableContent||null===e.unavailableContent||(null!==e.unavailableContent&&"object"===s(e.unavailableContent)||"function"==typeof e.unavailableContent)&&("AUDIO"===e.unavailableContent.contentType||"FILE"===e.unavailableContent.contentType||"NON_MULTIMEDIA"===e.unavailableContent.contentType||"OTHER_MULTIMEDIA"===e.unavailableContent.contentType||"UNKNOWN"===e.unavailableContent.contentType||"VIDEO"===e.unavailableContent.contentType)&&(void 0===e.unavailableContent.unavailableReason||null===e.unavailableContent.unavailableReason||ue(e.unavailableContent.unavailableReason)))}))&&(void 0===t.messageRequestContextByRecipient||Array.isArray(t.messageRequestContextByRecipient)&&t.messageRequestContextByRecipient.every((function(e){return(null!==e&&"object"===s(e)||"function"==typeof e)&&le(e.hostRecipientUrn)&&le(e.contextEntityUrn)})))&&(void 0===t.messageSubject||le(t.messageSubject))&&(void 0===t.quickActionContextUrn||le(t.quickActionContextUrn))&&(void 0===t.invitationUrn||le(t.invitationUrn))&&(void 0===t.forwardedMessageUrn||le(t.forwardedMessageUrn))&&(void 0===t.conversationState||"ACCEPTED"===t.conversationState||"DECLINED"===t.conversationState||"PENDING"===t.conversationState)&&(void 0===t.hostMessageCreateContent||(null!==t.hostMessageCreateContent&&"object"===s(t.hostMessageCreateContent)||"function"==typeof t.hostMessageCreateContent)&&Object.entries(t.hostMessageCreateContent).every((function(e){var t=E(e,2),n=t[0]
return t[1],"string"==typeof n})))&&(void 0===t.conversationTitle||le(t.conversationTitle))}function pe(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&(void 0===t.pageInstance||(null!==t.pageInstance&&"object"===s(t.pageInstance)||"function"==typeof t.pageInstance)&&le(t.pageInstance.pageUrn)&&le(t.pageInstance.trackingId)||(null!==t.pageInstance&&"object"===s(t.pageInstance)||"function"==typeof t.pageInstance)&&le(t.pageInstance.pageUrn)&&le(t.pageInstance.trackingId))&&(void 0===t.trackingId||le(t.trackingId))&&(void 0===t.sourceType||le(t.sourceType))&&(void 0===t.messageComposeFlowTrackingId||le(t.messageComposeFlowTrackingId))&&(void 0===t.isSystemClipboardUsed||!1===t.isSystemClipboardUsed||!0===t.isSystemClipboardUsed)&&(void 0===t.aiMessageType||le(t.aiMessageType))}function ge(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&"category"===t.kind&&le(t.category)}function me(e){var t=e
return ge(t)||(null!==t&&"object"===s(t)||"function"==typeof t)&&"search"===t.kind&&Array.isArray(t.categories)&&t.categories.every((function(e){return le(e)}))&&(void 0===t.keywords||le(t.keywords))&&(void 0===t.read||!1===t.read||!0===t.read)&&"boolean"==typeof t.firstDegreeConnections}var ve=function(e){return{msg:e,cause:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],originalStatusCodes:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]}},ye={MISSING_DATA_FROM_RESPONSE:{message:"Some data was missing or invalid from the response",code:100},ERRORS_IN_RESPONSE:{message:"Some errors were returned in the response",code:101},RESPONSE_INVALID_JSON:{message:"Failed to parse a JSON response",code:102},NO_RESPONSE_RECEIVED:{message:"No response received",code:103},NETWORK_ERROR:{message:"Network Error",code:104}},be={FEATURE_NOT_YET_AVAILABLE:{message:"This feature is not yet available",code:613},MAILBOX_CONNECT_FAILED:{message:"Connecting to the Mailbox failed",code:614},MESSAGE_DECORATE_FAILED:{message:"Decoration of messages failed",code:600},CONVERSATION_DECORATE_FAILED:{message:"Decoration of conversation failed",code:601},MAILBOX_DECORATE_FAILED:{message:"Decoration of mailbox failed",code:602},CONVERSATION_DOES_NOT_EXIST:{message:"The conversation does not exist",code:603},DRAFT_MESSAGE_IS_EMPTY:{message:"The draft message is empty",code:604},MESSAGE_SEND_FAILED:{message:"Could not send the message",code:605},MESSAGE_DELETE_FAILED:{message:"Could not delete the message",code:606},MESSAGE_EDIT_FAILED:{message:"Could not edit the message",code:607},MESSAGE_DOES_NOT_EXIST:{message:"The message does not exist",code:608},DRAFT_CONVERSATION_NOT_FOUND:{message:"The draft conversation could not be found",code:610},PARTICIPANTS_DECORATE_FAILED:{message:"Decoration of participants failed",code:611},TOO_MANY_CATEGORIES:{message:"Too many categories specified and no keywords for find conversations",code:612},CANNOT_CREATE_FILTERED_MAILBOX:{message:"Cannot create a FilteredMailbox from a non-root mailbox",code:616},LOAD_OLDER_MESSAGES_FAILED:{message:"Cannot load older messages",code:617},RETRY_CANCELLED:{message:"The exponential backoff retry was cancelled",code:618},SENDING_QUEUE_IN_PROGRESS:{message:"The sending queue is already in progress. Cannot sendPendingMessages.",code:619},CANNOT_ADD_MESSAGES_IN_CONVERSATION:{message:"The draft conversation is in the process of sending the first message and creating a saved conversation. Cannot add more messages.",code:620},CANNOT_ADD_PARTICIPANTS_IN_CONVERSATION:{message:"Cannot add participants in conversation",code:621},CANNOT_REMOVE_PARTICIPANTS_FROM_CONVERSATION:{message:"Cannot remove participants from conversation",code:622},CANNOT_DISMISS_INLINE_WARNING:{message:"Cannot dismiss inline warning",code:623},MESSAGE_LIST_SYNC_FAILED:{message:"Message list sync failed",code:624},CHAIN_SYNC_FAILED:{message:"Chain sync failed",code:625},GET_REACTORS_FAILED:{message:"Get reactors by message and emoji failed",code:627},REACTION_LIMIT_REACHED:{message:"Cannot react to message because the reaction limit has been reached on this message",code:628},CONTENT_IS_NOT_ATTRIBUTED_TEXT:{message:"Content is not in the proper format of an AttributedTextFragment",code:629},INVALID_URL:{message:"Invalid restli or graphql URL",code:630},CHAIN_SYNC_CANNOT_START:{message:"Chain sync cannot start because missing syncToken",code:631},INVALID_TYPE_ARGUMENT:{message:"Invalid type argument",code:632},COMPOSE_BY_RECIPIENTS_FAILED:{message:"composeByRecipients failed: The conversation found could not be added to the Mailbox State",code:633},MAILBOX_NOT_FOUND:{message:"Mailbox not found: The mailbox URN could not be found in the store",code:634}},Ee={CANNOT_QUERY_FRAGMENT:{message:"Cannot submit a GraphQL request with a fragment query",code:800},GRAPHQL_ERROR_PAYLOAD:{message:"Error in GraphQL response",code:801},GRAPHQL_INVALID_LOOKUP:{message:"Could not lookup the graphql query - invalid query",code:802}},_e={CANNOT_CONNECT:{message:"Connection to Realtime failed",code:700},PAYLOAD_DATA_DOES_NOT_EXIST:{message:"Realtime response decorated payload data does not exist",code:701},PAYLOAD_DECORATION_DOES_NOT_EXIST:{message:"Realtime response decorated payload decoration does not exist",code:702},PAYLOAD_RESULT_DOES_NOT_EXIST:{message:"Realtime response decorated payload result does not exist",code:703},COMMON_TIME_ERROR:{message:"Error event emitted from common-time",code:704},EVENT_ERROR:{message:"Event data received from Realtime is invalid",code:705},EVENT_RESPONSE_ERROR:{message:"Event data contains GraphQL decoration errors",code:706},PAYLOAD_DATA_IS_NOT_COMPLETE:{message:"Realtime decorated payload does not contain all the fields needed for processing the event",code:707}},Te=function(e){return e instanceof Error},Se=function(e){return e instanceof Ae},xe=function(e){var t=e
return void 0!==t.status&&null!==t.status},Ce=function(e){return void 0!==e.status}
P=Symbol.toPrimitive
var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(n,y(Error))
var t=function(e){var t=m()
return function(){var n,r=p(e)
if(t){var i=p(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 b(e)}(this,n)}}(n)
function n(e,r,i,o,a){var s
return l(this,n),h(b(s=t.call(this,"[web-messenger-data] ".concat(i.trim()," (").concat(r,")").concat(n.getMessageFromCause(o)).trimEnd())),"namespace",void 0),h(b(s),"code",void 0),h(b(s),"originalStatusCodes",[]),h(b(s),"cause",void 0),s.name="MDError",s.code=r,s.namespace=e,s.cause=o,s.originalStatusCodes=null!=a?a:[],Object.setPrototypeOf(b(s),(this instanceof n?this.constructor:void 0).prototype),s}return f(n,[{key:"id",get:function(){return"".concat(this.namespace,":").concat(this.code)}},{key:P,value:function(e){return"string"===e?this.toString():null}}],[{key:"fromUnknown",value:function(e,t){var r=be[t],i=r.code,o=r.message
return Te(e)?new n("client",i,"".concat(o," - ").concat(e.message)):new n("client",i,o)}},{key:"fromMDResponseError",value:function(e,t,r){var i=t.message||t.code,o=void 0!==i?"".concat(e," ").concat(i):e
return new n("api",null!=r?r:t.status,o)}},{key:"fromClientErrorMemo",value:function(e,t){var r=be[e]
return new n("client",r.code,r.message,t)}},{key:"fromClientErrorMemoWithComment",value:function(e,t,r){var i=be[e],o=i.code,a=i.message
return new n("client",o,"".concat(a," - ").concat(t),r)}},{key:"fromInvalidType",value:function(e,t,r){var i=be.INVALID_TYPE_ARGUMENT,o=i.code,a=i.message,s="".concat(e,"() invalid argument ").concat(t," not a ").concat(r,"'")
return new n("client",o,"".concat(a," - ").concat(s))}},{key:"fromApiErrorMemo",value:function(e,t){var r=ye[e],i=r.code,o=r.message
return new n("api",i,"".concat(o).concat(null!=t&&t.msg?" - "+t.msg:""),null==t?void 0:t.cause,null==t?void 0:t.originalStatusCodes)}},{key:"fromGraphQLErrorMemo",value:function(e,t){var r=Ee[e]
return new n("graphql",r.code,r.message,t)}},{key:"fromRealtimeErrorMemo",value:function(e,t){var r=_e[e]
return new n("realtime",r.code,r.message,t)}},{key:"buildCommonTimeError",value:function(e){var t=_e.COMMON_TIME_ERROR.message,r=e.message?"".concat(t," - ").concat(e.message):t,i=E(xe(e)?[e.originalEvent,e.status]:[void 0,_e.COMMON_TIME_ERROR.code],2),o=i[0]
return new n("realtime",i[1],r,o)}},{key:"buildGraphQLPayloadError",value:function(e,t){var r,i,o=Ee.GRAPHQL_ERROR_PAYLOAD.message,a=e.message,s='"'.concat(t,'" ').concat(o," - ").concat(null!=a?a:"")
return new n("graphql",null!==(r=null===(i=e.extensions)||void 0===i?void 0:i.status)&&void 0!==r?r:Ee.GRAPHQL_ERROR_PAYLOAD.code,s)}},{key:"getMessageFromCause",value:function(e){return Array.isArray(e)?0===e.length?"":" - ".concat(e.map((function(e){return e.message})).join()):e?" - ".concat(e.message):""}}]),n}(),we=function(e,t,n){return Promise.reject(Ae.fromMDResponseError(e,t,n))},Ie={fullyLoaded:!1,loading:!1,nextCursor:null,syncToken:null,lastRequestId:0},Re={observers:null,realtime:null,store:null}
function ke(e){return e&&null!==e.store&&null!==e.observers&&null!==e.realtime}var Oe,Me={},Ne=function(e){return function(t){return!!Q(t)&&t.entityUrn===e}},Pe=function(e){return function(t){return!!Q(t)&&e.includes(t.entityUrn)}},De=function(e){return function(t){return e===(J(e)?t.entityUrn:t.clientId)}},Ue=function(e){return function(t){return t.entityUrn===e}},Le=function(e){return function(t){return t.clientId===e}},je=function(e){return function(t){return void 0!==e[t.clientId]&&null!==e[t.clientId]}},Fe=function(e){return void 0!==e.conversationUrn},Be=function(e){return void 0!==e.messageUrn},qe=function(e){return Be(e)||Fe(e)},He=function(e,t){var n,r,i,o,a,s,c,u
return{renderContent:"ADD"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ADD")?[].concat(_(e.renderContent),_(t.renderContent)):t.renderContent,messageRequestContextByRecipient:null!==(n=t.messageRequestContextByRecipient)&&void 0!==n?n:e.messageRequestContextByRecipient,quickActionContextUrn:null!==(r=t.quickActionContextUrn)&&void 0!==r?r:e.quickActionContextUrn,invitationUrn:null!==(i=t.invitationUrn)&&void 0!==i?i:e.invitationUrn,forwardedMessageUrn:null!==(o=t.forwardedMessageUrn)&&void 0!==o?o:e.forwardedMessageUrn,conversationState:null!==(a=t.conversationState)&&void 0!==a?a:e.conversationState,conversationTitle:null!==(s=t.conversationTitle)&&void 0!==s?s:e.conversationTitle,hostMessageCreateContent:null!==(c=t.hostMessageCreateContent)&&void 0!==c?c:e.hostMessageCreateContent,messageSubject:null!==(u=t.messageSubject)&&void 0!==u?u:e.messageSubject}},Ge=function(e){return function(t){var n
return t?o(o(o({},t),e),{},{optionalSendData:e.optionalSendData?He(t.optionalSendData,e.optionalSendData,"REPLACE"):t.optionalSendData,status:"Delivered"===t.status?"Delivered":null!==(n=e.status)&&void 0!==n?n:t.status,additionalData:e.additionalData||t.additionalData,entityUrn:t.entityUrn||e.entityUrn,clientId:t.clientId}):e}},Ke=function(e){return e.connected.api},Ve=function(e){return e.slice().sort((function(e,t){return t.lastActivityAt.getTime()-e.lastActivityAt.getTime()}))},ze=function(e){return e.reduce((function(e,t){return[].concat(_(e),_(t.messages))}),[])},We=function(e){return void 0===e.messages&&void 0!==e.status},Xe=function(e,t){var n,r,i,a,s
if(t.lastActivityAt&&t.lastActivityAt<e.lastActivityAt)return e
var c=et(null!==(n=e.seenReceiptsMap)&&void 0!==n?n:{},null!==(r=t.seenReceiptsMap)&&void 0!==r?r:{})
return o(o(o({},e),t),{},{participants:t.participants&&t.participants.length>0?t.participants:e.participants,lastActivityAt:null!==(i=t.lastActivityAt)&&void 0!==i?i:e.lastActivityAt,status:o(o({},e.status),t.status),metadata:{prevCursor:null!==(a=t.metadata)&&void 0!==a&&a.prevCursor&&""!==t.metadata.prevCursor?t.metadata.prevCursor:e.metadata.prevCursor,syncToken:null!==(s=t.metadata)&&void 0!==s&&s.syncToken&&""!==t.metadata.syncToken?t.metadata.syncToken:e.metadata.syncToken},seenReceiptsMap:c,quickReplies:t.quickReplies&&t.quickReplies.length>0?t.quickReplies:e.quickReplies})},Qe=function(e,t){var n,r,i,a
if(We(t))return o(o({},e),{},{status:o(o({},e.status),t.status)})
var s=t.participants||[],c=_(t.messages||[]),u=t.matchingSearches||[]
return o(o(o({},e),t),{},{participants:s.length>0?L(e.participants,s).filter((function(e){return void 0!==e})).sort():e.participants,messages:c.length>0?e.messages.add(c):e.messages,clientId:e.clientId,draftMessages:e.draftMessages,matchingSearches:u.length>0?L(e.matchingSearches,u):e.matchingSearches,metadata:{prevCursor:null!==(n=t.metadata)&&void 0!==n&&n.prevCursor&&""!==(null===(r=t.metadata)||void 0===r?void 0:r.prevCursor)?t.metadata.prevCursor:e.metadata.prevCursor,syncToken:null!==(i=t.metadata)&&void 0!==i&&i.syncToken&&""!==(null===(a=t.metadata)||void 0===a?void 0:a.syncToken)?t.metadata.syncToken:e.metadata.syncToken},quickReplies:t.quickReplies&&t.quickReplies.length>0?t.quickReplies:e.quickReplies})},Ye=function(e,t){return function(n){var r=n.entityUrn?e.get(n.entityUrn):void 0,i=t.get(n.clientId)
return void 0!==r||void 0!==i&&(void 0===i.entityUrn||void 0===n.entityUrn)}},$e=function(e,t){return function(n){var r=e.state.draftConversations.get(t)||e.state.conversations.getByIdentifier(t,"FullMailboxState")
if(!r)throw Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Checking is in message list")
return void 0!==r.messages.getByIdentifier(n)}},Je=function(e,t,n){if(0===t.length)return[]
var r=t[0].message,i=e.messages.last()
if(!i)return[]
var o=i.entityUrn
return n&&n.deliveredAt&&(o=i.deliveredAt.getTime()>n.deliveredAt.getTime()?i.entityUrn:n.entityUrn),o===r.entityUrn?t:[]},Ze=function(){r.Client.close(!1),function(){try{for(var e in Me)delete Me[e]}catch(e){console.error("clearStateTable",e)}}()},et=function(e,t){var n=t?function(e,t){var n=o({},e)
return R(t).forEach((function(e){var r=t[e]
if(!O(r)){var i,o=n[e]
k(o)?(i=n[e]).push.apply(i,_(r)):n[e]=r.slice().sort((function(e,t){return e.seenAt-t.seenAt}))}})),n}(e,t):e
return function(e){var t=function(e){var t={}
return R(e).forEach((function(n){t[e[n].messageUrn]?t[e[n].messageUrn].push({participantUrn:n,seenAt:e[n].seenAt}):t[e[n].messageUrn]=[{participantUrn:n,seenAt:e[n].seenAt}]})),t}(function(e){var t={}
return R(e).forEach((function(n){e[n].forEach((function(e){var r=e.participantUrn
if(t[r]){var i=t[r].seenAt
new Date(e.seenAt)>new Date(i)&&(t[r]={messageUrn:n,seenAt:e.seenAt})}else t[r]={messageUrn:n,seenAt:e.seenAt}}))})),t}(e))
return t}(n)},tt=function(e,t){return e.lastActivityAt.getTime()>=t},nt=function(e,t){var n=e.reduce((function(e,t){return o(o({},e),{},h({},t.hostIdentityUrn,t))}),{}),r=t.reduce((function(e,t){return o(o({},e),{},h({},t.hostIdentityUrn,t))}),n)
return N(r)},rt=function(e){var t=e.participants.find((function(e){return e.includes("UNKNOWN")}))
return t&&q("messenger-data","Realtime ⚡️","New Message conversation update contains invalid participants."),t?o(o({},e),{},{participants:[]}):e},it=function(e){return[e.filter(Fe).map((function(e){return e.conversationUrn})).sort(),e.filter(Be).map((function(e){return e.messageUrn})).sort()]},ot=function(){return st.fromConversationArray([])},at=function(e){return!0}
Oe=Symbol.iterator
var st=function(){function e(t,n){l(this,e),h(this,"_conversations",void 0),h(this,"_filterPredicate",void 0),h(this,"_entityUrnIndex",void 0),h(this,"_clientIdIndex",void 0),h(this,"_idx",0),this._conversations=Ve(t),this._filterPredicate=n||at,this._entityUrnIndex=new Map(this._conversations.map((function(e){return[e.entityUrn,e]}))),this._clientIdIndex=new Map(this._conversations.map((function(e){return[e.clientId,e]})))}return f(e,[{key:"getByIdentifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState",n=J(e)?this._entityUrnIndex.get(e):this._clientIdIndex.get(e)
return"FullMailboxState"===t||n&&this._filterPredicate(n)?n:void 0}},{key:"filterPredicate",get:function(){return this._filterPredicate}},{key:"filtered",value:function(t){return new e(this._conversations,t)}},{key:Oe,value:function(){return this}},{key:"next",value:function(){for(;this._idx<this._conversations.length&&!this._filterPredicate(this._conversations[this._idx]);)this._idx++
return this._idx<this._conversations.length?{done:!1,value:this._conversations[this._idx++]}:(this._idx=0,{done:!0,value:void 0})}},{key:"last",value:function(){if(0!==this._conversations.length){for(var e=this._conversations.length-1;e>=0&&!this._filterPredicate(this._conversations[e]);)e--
return e>=0?this._conversations[e]:void 0}}},{key:"first",value:function(){if(0!==this._conversations.length){for(var e=0;e<this._conversations.length&&!this._filterPredicate(this._conversations[e]);)e++
return e<this._conversations.length?this._conversations[e]:void 0}}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return this._conversations.filter("FilteredMailboxState"===t?this._filterPredicate:function(){return!0}).find(e)}},{key:"findMessage",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return null===(t=this._conversations.filter("FilteredMailboxState"===n?this._filterPredicate:function(){return!0}).find((function(t){return void 0!==t.messages.getByIdentifier(e)})))||void 0===t?void 0:t.messages.getByIdentifier(e)}},{key:"filter",value:function(e){return this._conversations.filter(this._filterPredicate).filter(e)}},{key:"updateItem",value:function(t,n){return new e(w(t,n)(this._conversations))}},{key:"updateItemByIdentifier",value:function(t,n){var r
if(!(r=J(t)?this._entityUrnIndex.get(t):this._clientIdIndex.get(t)))throw Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Updating item by identifier")
var i=this._conversations.map((function(e){return e.clientId===r.clientId?Xe(e,n):e}))
return new e(i,this._filterPredicate)}},{key:"addItem",value:function(t){var n=!1,r=this._conversations.map((function(e){return e.entityUrn===t.entityUrn?(n=!0,Qe(e,t)):e}))
return new e(n?r:[].concat(_(this._conversations),[t]),this._filterPredicate)}},{key:"addItems",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=I(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return function(n){return void 0===e.find((r=n,function(e){return r.entityUrn===e.entityUrn}),t)
var r}}(this._conversations))(t),i=E(r,2),a=i[0],s=i[1],c=n?a:a.map((function(e){return o(o({},e),{},{categories:[]})})),u=this._conversations.map((function(e){var t=s.find(Ne(e.entityUrn))
return t?Qe(e,t):e}))
return new e([].concat(_(u),_(c)),this._filterPredicate)}},{key:"updateAny",value:function(t,n){return new e(A(t,n)(this._conversations))}},{key:"deleteItems",value:function(t){var n
return new e((n=t,e=>e.filter(((e,t)=>!n(e,t))))(this._conversations.filter(this._filterPredicate)),this._filterPredicate)}},{key:"map",value:function(e){return this._conversations.filter(this._filterPredicate).map(e)}},{key:"reduce",value:function(e,t){return this._conversations.filter(this._filterPredicate).reduce(e,t)}},{key:"splitCollection",value:function(t){var n=E(I(t)(this._conversations.filter(this._filterPredicate)),2),r=n[0],i=n[1]
return[new e(r),new e(i)]}},{key:"length",get:function(){return this._conversations.filter(this._filterPredicate).length}},{key:"toString",value:function(){return this.map((function(e){return e.toString()})).toString()}}],[{key:"fromConversationArray",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1?arguments[1]:void 0)}},{key:"fromConversationIterable",value:function(t){return new e(t._conversations,t._filterPredicate)}},{key:"merge",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at
return new e([].concat(_(t),_(n)),r)}}]),e}(),ct=function(e,t){var n=void 0,r=void 0
return[function(){for(var i=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s]
n?r=e:(e.apply(this,a),r=void 0,n=setTimeout((function(){r&&(r.apply(i,a),r=void 0),n=void 0}),t))},function(){n&&(clearTimeout(n),n=void 0)}]}
function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lt,dt="function"==typeof Symbol&&Symbol.observable||"@@observable",ft=function(){return Math.random().toString(36).substring(7).split("").join(".")},ht={INIT:"@@redux/INIT"+ft(),REPLACE:"@@redux/REPLACE"+ft(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ft()}}
function pt(e,t,n){var r
if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ut(0))
if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ut(1))
return n(pt)(e,t)}if("function"!=typeof e)throw new Error(ut(2))
var i=e,o=t,a=[],s=a,c=!1
function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(ut(3))
return o}function d(e){if("function"!=typeof e)throw new Error(ut(4))
if(c)throw new Error(ut(5))
var t=!0
return u(),s.push(e),function(){if(t){if(c)throw new Error(ut(6))
t=!1,u()
var n=s.indexOf(e)
s.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1
for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t)
return Object.getPrototypeOf(e)===t}(e))throw new Error(ut(7))
if(void 0===e.type)throw new Error(ut(8))
if(c)throw new Error(ut(9))
try{c=!0,o=i(o,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])()
return e}return f({type:ht.INIT}),(r={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ut(10))
i=e,f({type:ht.REPLACE})}})[dt]=function(){var e,t=d
return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ut(11))
function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[dt]=function(){return this},e},r}function gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=yt(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 vt(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yt(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 yt(e,t){if(e){if("string"==typeof e)return bt(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)?bt(e,t):void 0}}function bt(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 Et(e){return(Et="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)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(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 St(e,t,n){return t&&Tt(e.prototype,t),n&&Tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ct,At=new Uint8Array(16)
function wt(){if(!Ct&&!(Ct="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 Ct(At)}var It=/^(?:[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 Rt(e){return"string"==typeof e&&It.test(e)}for(var kt=[],Ot=0;Ot<256;++Ot)kt.push((Ot+256).toString(16).slice(1))
function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(kt[e[t+0]]+kt[e[t+1]]+kt[e[t+2]]+kt[e[t+3]]+"-"+kt[e[t+4]]+kt[e[t+5]]+"-"+kt[e[t+6]]+kt[e[t+7]]+"-"+kt[e[t+8]]+kt[e[t+9]]+"-"+kt[e[t+10]]+kt[e[t+11]]+kt[e[t+12]]+kt[e[t+13]]+kt[e[t+14]]+kt[e[t+15]]).toLowerCase()}function Nt(e){if(!Rt(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 Pt(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=Nt(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 Mt(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Dt(e){return 14+(e+64>>>9<<4)+1}function Ut(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Lt(e,t,n,r,i,o){return Ut((a=Ut(Ut(t,e),Ut(r,o)))<<(s=i)|a>>>32-s,n)
var a,s}function jt(e,t,n,r,i,o,a){return Lt(t&n|~t&r,e,t,i,o,a)}function Ft(e,t,n,r,i,o,a){return Lt(t&r|n&~r,e,t,i,o,a)}function Bt(e,t,n,r,i,o,a){return Lt(t^n^r,e,t,i,o,a)}function qt(e,t,n,r,i,o,a){return Lt(n^(t|~r),e,t,i,o,a)}Pt("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[Dt(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=jt(n,r,i,o,e[a],7,-680876936),o=jt(o,n,r,i,e[a+1],12,-389564586),i=jt(i,o,n,r,e[a+2],17,606105819),r=jt(r,i,o,n,e[a+3],22,-1044525330),n=jt(n,r,i,o,e[a+4],7,-176418897),o=jt(o,n,r,i,e[a+5],12,1200080426),i=jt(i,o,n,r,e[a+6],17,-1473231341),r=jt(r,i,o,n,e[a+7],22,-45705983),n=jt(n,r,i,o,e[a+8],7,1770035416),o=jt(o,n,r,i,e[a+9],12,-1958414417),i=jt(i,o,n,r,e[a+10],17,-42063),r=jt(r,i,o,n,e[a+11],22,-1990404162),n=jt(n,r,i,o,e[a+12],7,1804603682),o=jt(o,n,r,i,e[a+13],12,-40341101),i=jt(i,o,n,r,e[a+14],17,-1502002290),n=Ft(n,r=jt(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=Ft(o,n,r,i,e[a+6],9,-1069501632),i=Ft(i,o,n,r,e[a+11],14,643717713),r=Ft(r,i,o,n,e[a],20,-373897302),n=Ft(n,r,i,o,e[a+5],5,-701558691),o=Ft(o,n,r,i,e[a+10],9,38016083),i=Ft(i,o,n,r,e[a+15],14,-660478335),r=Ft(r,i,o,n,e[a+4],20,-405537848),n=Ft(n,r,i,o,e[a+9],5,568446438),o=Ft(o,n,r,i,e[a+14],9,-1019803690),i=Ft(i,o,n,r,e[a+3],14,-187363961),r=Ft(r,i,o,n,e[a+8],20,1163531501),n=Ft(n,r,i,o,e[a+13],5,-1444681467),o=Ft(o,n,r,i,e[a+2],9,-51403784),i=Ft(i,o,n,r,e[a+7],14,1735328473),n=Bt(n,r=Ft(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=Bt(o,n,r,i,e[a+8],11,-2022574463),i=Bt(i,o,n,r,e[a+11],16,1839030562),r=Bt(r,i,o,n,e[a+14],23,-35309556),n=Bt(n,r,i,o,e[a+1],4,-1530992060),o=Bt(o,n,r,i,e[a+4],11,1272893353),i=Bt(i,o,n,r,e[a+7],16,-155497632),r=Bt(r,i,o,n,e[a+10],23,-1094730640),n=Bt(n,r,i,o,e[a+13],4,681279174),o=Bt(o,n,r,i,e[a],11,-358537222),i=Bt(i,o,n,r,e[a+3],16,-722521979),r=Bt(r,i,o,n,e[a+6],23,76029189),n=Bt(n,r,i,o,e[a+9],4,-640364487),o=Bt(o,n,r,i,e[a+12],11,-421815835),i=Bt(i,o,n,r,e[a+15],16,530742520),n=qt(n,r=Bt(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=qt(o,n,r,i,e[a+7],10,1126891415),i=qt(i,o,n,r,e[a+14],15,-1416354905),r=qt(r,i,o,n,e[a+5],21,-57434055),n=qt(n,r,i,o,e[a+12],6,1700485571),o=qt(o,n,r,i,e[a+3],10,-1894986606),i=qt(i,o,n,r,e[a+10],15,-1051523),r=qt(r,i,o,n,e[a+1],21,-2054922799),n=qt(n,r,i,o,e[a+8],6,1873313359),o=qt(o,n,r,i,e[a+15],10,-30611744),i=qt(i,o,n,r,e[a+6],15,-1560198380),r=qt(r,i,o,n,e[a+13],21,1309151649),n=qt(n,r,i,o,e[a+4],6,-145523070),o=qt(o,n,r,i,e[a+11],10,-1120210379),i=qt(i,o,n,r,e[a+2],15,718787259),r=qt(r,i,o,n,e[a+9],21,-343485551),n=Ut(n,s),r=Ut(r,c),i=Ut(i,u),o=Ut(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(Dt(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32
return n}(e),8*e.length))}))
var Ht={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function Gt(e,t,n){if(Ht.randomUUID&&!t&&!e)return Ht.randomUUID()
var r=(e=e||{}).random||(e.rng||wt)()
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 Mt(r)}function Kt(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 Vt(e,t){return e<<t|e>>>32-t}Pt("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),h=0;h<16;++h)f[h]=s[d][h]
for(var p=16;p<80;++p)f[p]=Vt(f[p-3]^f[p-8]^f[p-14]^f[p-16],1)
for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),T=Vt(g,5)+Kt(_,m,v,y)+b+t[_]+f[E]>>>0
b=y,y=v,v=Vt(m,30)>>>0,m=g,g=T}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>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 zt=Uint8Array,Wt=Uint16Array,Xt=Uint32Array,Qt=new zt([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]),Yt=new zt([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]),$t=new zt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Jt=function(e,t){for(var n=new Wt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1]
var i=new Xt(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]},Zt=Jt(Qt,2),en=Zt[0],tn=Zt[1]
en[28]=258,tn[258]=28
for(var nn=Jt(Yt,0)[1],rn=new Wt(32768),on=0;on<32768;++on){var an=(43690&on)>>>1|(21845&on)<<1
an=(61680&(an=(52428&an)>>>2|(13107&an)<<2))>>>4|(3855&an)<<4,rn[on]=((65280&an)>>>8|(255&an)<<8)>>>1}var sn=function(e,t,n){for(var r=e.length,i=0,o=new Wt(t);i<r;++i)e[i]&&++o[e[i]-1]
var a,s=new Wt(t)
for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1
if(n){a=new Wt(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[rn[d]>>>c]=u}else for(a=new Wt(r),i=0;i<r;++i)e[i]&&(a[i]=rn[s[e[i]-1]++]>>>15-e[i])
return a},cn=new zt(288)
for(on=0;on<144;++on)cn[on]=8
for(on=144;on<256;++on)cn[on]=9
for(on=256;on<280;++on)cn[on]=7
for(on=280;on<288;++on)cn[on]=8
var un=new zt(32)
for(on=0;on<32;++on)un[on]=5
var ln=sn(cn,9,0),dn=sn(un,5,0),fn=function(e){return(e+7)/8|0},hn=function(e,t,n){n<<=7&t
var r=t/8|0
e[r]|=n,e[r+1]|=n>>>8},pn=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},gn=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[Tn,0]
if(1==i){var a=new zt(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 h=new Wt(f+1),p=mn(n[l-1],h,0)
if(p>t){r=0
var g=0,m=p-t,v=1<<m
for(o.sort((function(e,t){return h[t.s]-h[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s
if(!(h[y]>t))break
g+=v-(1<<p-h[y]),h[y]=t}for(g>>>=m;g>0;){var b=o[r].s
h[b]<t?g-=1<<t-h[b]++-1:++r}for(;r>=0&&g;--r){var E=o[r].s
h[E]==t&&(--h[E],++g)}p=t}return[new zt(h),p]},mn=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},vn=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Wt(++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]},yn=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r]
return n},bn=function(e,t,n){var r=n.length,i=fn(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)},En=function(e,t,n,r,i,o,a,s,c,u,l){hn(t,l++,n),++i[256]
for(var d=gn(i,15),f=d[0],h=d[1],p=gn(o,15),g=p[0],m=p[1],v=vn(f),y=v[0],b=v[1],E=vn(g),_=E[0],T=E[1],S=new Wt(19),x=0;x<y.length;++x)S[31&y[x]]++
for(x=0;x<_.length;++x)S[31&_[x]]++
for(var C=gn(S,7),A=C[0],w=C[1],I=19;I>4&&!A[$t[I-1]];--I);var R,k,O,M,N=u+5<<3,P=yn(i,cn)+yn(o,un)+a,D=yn(i,f)+yn(o,g)+a+14+3*I+yn(S,A)+(2*S[16]+3*S[17]+7*S[18])
if(N<=P&&N<=D)return bn(t,l,e.subarray(c,c+u))
if(hn(t,l,1+(D<P)),l+=2,D<P){R=sn(f,h,0),k=f,O=sn(g,m,0),M=g
var U=sn(A,w,0)
for(hn(t,l,b-257),hn(t,l+5,T-1),hn(t,l+10,I-4),l+=14,x=0;x<I;++x)hn(t,l+3*x,A[$t[x]])
l+=3*I
for(var L=[y,_],j=0;j<2;++j){var F=L[j]
for(x=0;x<F.length;++x){var B=31&F[x]
hn(t,l,U[B]),l+=A[B],B>15&&(hn(t,l,F[x]>>>5&127),l+=F[x]>>>12)}}}else R=ln,k=cn,O=dn,M=un
for(x=0;x<s;++x)if(r[x]>255){B=r[x]>>>18&31,pn(t,l,R[B+257]),l+=k[B+257],B>7&&(hn(t,l,r[x]>>>23&31),l+=Qt[B])
var q=31&r[x]
pn(t,l,O[q]),l+=M[q],q>3&&(pn(t,l,r[x]>>>5&8191),l+=Yt[q])}else pn(t,l,R[r[x]]),l+=k[r[x]]
return pn(t,l,R[256]),l+k[256]},_n=new Xt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Tn=new zt(0),Sn=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}(),xn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Cn="undefined"!=typeof TextDecoder&&new TextDecoder
try{Cn.decode(Tn,{stream:!0})}catch(Bi){}function An(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function wn(){try{return An()&&"keepalive"in new Request("")}catch(e){return!1}}function In(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=Sn[255&n^t[r]]^n>>>8
e=n},d:function(){return~e}}}(),r=e.length
n.p(e)
var i,o,a,s=(i=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),function(e,t,n,r,i,o){var a=e.length,s=new zt(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]=true),u=bn(c,u+1,e.subarray(l,d))}else{for(var f=_n[t-1],h=f>>>13,p=8191&f,g=(1<<n)-1,m=new Wt(32768),v=new Wt(g+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},_=new Xt(25e3),T=new Wt(288),S=new Wt(32),x=0,C=0,A=(l=0,0),w=0,I=0;l<a;++l){var R=E(l),k=32767&l,O=v[R]
if(m[k]=O,v[R]=k,w<=l){var M=a-l
if((x>7e3||A>24576)&&M>423){u=En(e,c,0,_,T,S,C,A,I,l-I,u),A=x=C=0,I=l
for(var N=0;N<286;++N)T[N]=0
for(N=0;N<30;++N)S[N]=0}var P=2,D=0,U=p,L=k-O&32767
if(M>2&&R==E(l-L))for(var j=Math.min(h,M)-1,F=Math.min(32767,l),B=Math.min(258,M);L<=F&&--U&&k!=O;){if(e[l+P]==e[l+P-L]){for(var q=0;q<B&&e[l+q]==e[l+q-L];++q);if(q>P){if(P=q,D=L,q>j)break
var H=Math.min(L,q-2),G=0
for(N=0;N<H;++N){var K=l-L+N+32768&32767,V=K-m[K]+32768&32767
V>G&&(G=V,O=K)}}}L+=(k=O)-(O=m[k])+32768&32767}if(D){_[A++]=268435456|tn[P]<<18|nn[D]
var z=31&tn[P],W=31&nn[D]
C+=Qt[z]+Yt[W],++T[257+z],++S[W],w=l+P,++x}else _[A++]=e[l],++T[e[l]]}}u=En(e,c,true,_,T,S,C,A,I,l-I,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?Wt:4==e.BYTES_PER_ELEMENT?Xt:zt)(n-t)
return r.set(e.subarray(t,n)),r}(s,0,r+fn(u)+8)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a)),c=s.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&&xn(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)}}(s,t),xn(s,c-8,n.d()),xn(s,c-4,r),s}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function Rn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var kn,On="undefined"!=typeof navigator&&"sendBeacon"in navigator,Mn=wn()?function(e,t,n,r){return new Promise((function(i){fetch(e,In({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,In({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:Rn(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(On){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,In({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:Rn(e)})}))}))}
function Nn(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 Pn(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 Dn(){return kn||(kn=Pn("idb-queue","default")),kn}function Un(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))},Nn(e.transaction)}var Ln=!1
function jn(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]:Dn()
return n("readwrite",(function(n){return n.put(e),Nn(n.count()).then((function(e){if(!(e<=t.maxNumber))return Un(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]:Dn())("readwrite",(function(t){return Un(t,e)}))}(t,n)}))}function Fn(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]:Dn()
return Ln?Promise.resolve():jn(e,t,n)}function Bn(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())},Nn(t.transaction).then((function(){return r}))}))}function qn(){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 Hn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Gn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Kn(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 Vn=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
_t(this,e),xt(this,"config",void 0),xt(this,"compress",void 0),xt(this,"throttleControl",void 0),xt(this,"withStore",void 0),xt(this,"disablePersistence",!1),this.config=t,this.compress=r
var i=t.measureIDB
i&&performance.mark(i.createStartMark),this.withStore=Pn(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=function(e,t){var n=0
return{throttledFn:function(){var r=Date.now()
r-n>t&&(Hn((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}(this.replayEntries.bind(this),t.throttleWait)}return St(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){Hn((function(){return"Persisting to DB "+e.url})),Fn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Hn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Gn((function(){return"push failed"}))}))}
this.config.useIdle?Kn(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]:Dn()
return Ln=!0,e("readwrite",(function(e){return e.clear(),Nn(e.transaction).finally((function(){return Ln=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Gn((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 Bn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Gn((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 Bn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Gn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){Hn((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){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())},Nn(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]:Dn())}(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 Hn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,a),Mn(o,a,qn(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,h,p
if(l+1>e.config.attemptLimit)return Hn((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),Hn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),Fn({url:o,body:a,timestamp:c,statusCode:u,attemptCount:l+1},e.config,e.withStore)
t.drop=!0,null===(h=(p=e.config).onResult)||void 0===h||h.call(p,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Gn((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?Kn(t):t()}}}]),e}(),zn=function(){function e(){_t(this,e)}return St(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}(),Wn=function(){function e(t,n){_t(this,e),xt(this,"queue",void 0),xt(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Vn(t,n.compress):new zn}return St(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}()
xt(Wn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var Xn=[502,504],Qn=[429,503],Yn=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
_t(this,e),xt(this,"url",void 0),xt(this,"body",void 0),xt(this,"config",void 0),xt(this,"persistenceConfig",void 0),xt(this,"compress",void 0),xt(this,"timestamp",void 0),xt(this,"isClearQueuePending",!1),xt(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 St(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 Mn(e.url,e.body,t,e.compress)}),n,t).finally((function(){Hn((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(qn(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(Hn((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 Hn((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 $n(e,t,n){var r=e.get(t)
r&&r.push(n)||e.set(t,[n])}function Jn(e,t,n){var r=e.get(t)
r&&r.splice(r.indexOf(n)>>>0,1)}var Zn,er,tr=(Zn=new Map,er=new Map,{on:function(e,t){$n(Zn,e,t)},before:function(e,t){$n(er,e,t)},off:function(e,t){Jn(Zn,e,t)},offBefore:function(e,t){Jn(er,e,t)},emit:function(e,t){(er.get(e)||[]).concat(Zn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){er.clear(),Zn.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var nr=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||tr.emit("internal:hide",e)}
document.addEventListener("visibilitychange",nr),window.addEventListener("pagehide",nr)}var rr=null
if("undefined"==typeof crypto||!crypto.getRandomValues){var ir=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(ir){var or=new Uint8Array(256),ar=or.length
rr={rng:function(){return ar>or.length-16&&(ir.randomFillSync(or),ar=0),or.slice(ar,ar+=16)}}}}var sr="object"===("undefined"==typeof crypto?"undefined":Et(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){var t=Mt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!Rt(t))throw TypeError("Stringified UUID is invalid")
return t}(cr())}
function cr(){return Gt(rr,new Array(16),0)}function ur(e){return vt(e).map((function(e){return String.fromCharCode(e)})).join("")}function lr(){return ur(cr())}var dr=/^[a-zA-Z0-9/+]+[=]+$/
function fr(e){return Nt(e)}function hr(e,t){return{pageUrn:gr(e),trackingId:t||function(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("")}(cr())}}function pr(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function gr(e){return"urn:li:page:".concat(e)}function mr(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function vr(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 yr(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function br(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var r="sequenceNumber",i=window.indexedDB.open(r)
return new Promise((function(o,a){i.onupgradeneeded=function(){var e=i.result
e.objectStoreNames.contains(r)||e.createObjectStore(r,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,c=s.transaction(r,"readwrite"),u=c.objectStore(r),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 h={sequenceNumber:0}
n&&Object.keys(n).forEach((function(e){h[e]=0}))
var p=u.add(h)
p.onsuccess=function(){return o(0)},p.onerror=function(){a(p.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()}},i.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Er(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!An()||"undefined"==typeof Promise}function _r(e,t){tr.emit("internal:error",{tags:["core-web-tracking:".concat(e)],reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t))})}function Tr(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&wn()&&t&&n}var Sr=function(){function e(t){_t(this,e),xt(this,"host",void 0),this.host=t}return St(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&&Tr()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase("beacons")
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}()
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 function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:"beacons",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=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:Xn,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:Qn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
i.headerName=i.headerName||r.headerName,e=new Wn(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,a){var s
return An()?new Yn(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Qn},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(l),f=d.beacon,h=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:h},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?h.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body)
if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return h.clearQueue()}}),(function(){return h.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){_r("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){_r("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){_r("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment()
wn()&&"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){_r("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)&&(Er()?function(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)}}(e,JSON.stringify(t),{headers:n}):Mn(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&&Tr()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),xr="undefined"!=typeof window&&"undefined"!=typeof document,Cr=/JSESSIONID="?([^";]+)"?/,Ar="",wr=0
function Ir(){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?Cr:r
if(!Ar||Date.now()-wr>n){var o=xr&&document.cookie.match(i)
Ar=o&&o[1]||"",wr=Date.now()}return Ar}var Rr=function(){function e(t){_t(this,e),xt(this,"networkTransporter",void 0),xt(this,"inactive",void 0),xt(this,"mpName",void 0),xt(this,"endpoint",void 0),xt(this,"debug",void 0),this.networkTransporter=new Sr(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
switch(e){case"https://www.linkedin.com/li/track":t=Or
break
case"https://www.linkedin-ei.com/li/track/validate":default:n=!0,t=kr
break
case"https://www.linkedin-ei.com/li/track":t=kr}return{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return St(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":Ir(),"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,vt(t.failures)),e}),[]);[].concat(vt(o),vt(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}(),kr="https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures",Or="https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"
function Mr(e){return"string"==typeof e}function Nr(e){return Mr(e)?e:e.topicName||e.eventName}function Pr(e){return Mr(e)?e:e.eventName}var Dr,Ur,Lr,jr=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
_t(this,e),xt(this,"host",void 0),xt(this,"cmoTransporter",void 0),xt(this,"clientMonitoringInstanceId",lr()),xt(this,"currentContext",{pageKey:"unknown",pageInstance:hr("unknown")}),xt(this,"appState",{}),xt(this,"estimatedFragmentSize",0),xt(this,"fragmentSizeLimit",void 0),xt(this,"activeFragmentEvent",void 0),xt(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new Rr(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Br(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return St(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=mt(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:Pr(t),eventTopic:Nr(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=Br(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=qr(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=qr(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:lr(),memberId:0}}}}]),e}()
function Fr(e){return Dr||(Dr=new jr(e)),{getCurrentInstanceId:function(){return Dr.getCurrentInstanceId()},logEventGenerated:function(e){return Dr.logEventGenerated(e)},logEventReadyToSend:function(e){Dr.logEventReadyToSend(e)},logEventSent:function(e){Dr.logEventSent(e)},logPersistedEventSent:function(e,t){Dr.logEventSent(t,e)},logNetworkResponseCode:function(e){Dr.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Dr)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Dr.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Dr.logFailedEvent(t,n,r,i,e)},flush:function(){Dr.flush()},destroy:function(){Dr=void 0},isDestroyed:function(){return void 0===Dr},setCurrentContext:function(e){Dr.setCurrentContext(e)},updateAppState:function(e){Dr.updateAppState(e)}}}function Br(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 qr(e){return Array.isArray(e)?ur(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(dr)}(e)?atob(e):ur(fr(e))}(Lr=Ur||(Ur={})).NONE="NONE",Lr.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",Lr.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",Lr.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",Lr.RETRIES_EXCEEDED="RETRIES_EXCEEDED",Lr.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",Lr.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",Lr.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"
var Hr,Gr,Kr,Vr=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],zr="PageViewEvent",Wr=function(){function e(t){var n=this
_t(this,e),xt(this,"host",void 0),xt(this,"queue",void 0),xt(this,"preContextQueue",void 0),xt(this,"debounceTimer",void 0),xt(this,"unloadHandlers",void 0),xt(this,"maxQueueSize",void 0),xt(this,"flushDebounceTime",void 0),xt(this,"trackingEventListeners",[]),xt(this,"onHideHandler",(function(){n.forceFlush()})),xt(this,"networkTransporter",void 0),xt(this,"clientMonitoringConn",void 0),xt(this,"clientGlobalSequenceNumberCounter",void 0),xt(this,"clientTopicLocalSequenceNumberCountersMap",{}),xt(this,"isTimerRunning",void 0),xt(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var r=t.batching
this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,tr.on("internal:hide",this.onHideHandler),this.networkTransporter=new Sr(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Fr(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return St(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(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(Ur.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,Ur.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{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(Nr(e.id)))
var n=this.host,r=n.api.Promise,i=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t)
null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1)
var s=Nr(a.id)
if(this.isLixEnabled("pemberly.tracking.generic-event-immediate-fire")&&("GenericActionEvent"===s||"GenericImpressionEvent"===s)){var c=[a]
return this.sendPayload(c),r.resolve(!0)}return this.queue.push(a),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(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,tr.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(e){var t=this
this.populatePreContextQueue({pageInstance:hr("unknown"),pageKey:"unknown"}).forEach((function(n){t.isLixEnabled("pemberly.tracking.even-batch")&&Array.isArray(e)?e.push(n):t.queue.push(n)})),this.isLixEnabled("pemberly.tracking.even-batch")&&Array.isArray(e)&&e.length>0?this.sendPayload(e):this.flush(!0)}},{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
br("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Vr.forEach((function(n){var r
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){_r("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){br("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){_r("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=mr(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){return t.queue.push(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===zr:e.eventName===zr}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,h=null
"string"!=typeof i&&null!==this.host.locale||(h=i)
var p={interfaceLocale:h,pageKey:f,path:a.pathname+a.search,referer:s.referrer,isFlushOnCloseBrowserTabEnabled:!Er()&&(wn()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},g={pageInstance:d,time:e.meta.time,version:r,server:"",service:"",guid:lr(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(g,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var m=Nr(e.id)
if(Vr.includes(m)){var v=this.clientTopicLocalSequenceNumberCountersMap[m]
"number"==typeof v&&c(g,{clientTopicLocalSequenceNumber:v})}var y={header:c(g,e.meta.header||{}),requestHeader:c(p,e.meta.requestHeader||{})},b=e.meta.clientMonitoringInstanceId,E=e.meta.clientMonitoringInstanceEventNumber
return b&&c(y.header,{clientMonitoringInstanceId:b,clientMonitoringInstanceEventNumber:E}),c(e.body,y)}},{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,t){var n=this
e((function(){n.forceFlush(t)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this.host.api.requestIdleCallback
e||!n?this.sendPayload():Array.isArray(t)&&t.length>0?this.requestFlush(n,t):this.requestFlush(n)}},{key:"batchFire",value:function(){var e=this
if(this.queue.length>this.maxQueueSize)if(this.isLixEnabled("pemberly.tracking.even-batch")){var t=this.queue
this.queue=[],this.flush(!1,t)}else this.flush()
else this.debounceTimer&&clearTimeout(this.debounceTimer),this.isLixEnabled("pemberly.tracking.even-batch")?this.debounceTimer=setTimeout((function(){return e.flush(!0)}),this.flushDebounceTime):this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime)}},{key:"sendPayload",value:function(e){var t,n=this
if(Array.isArray(e)?t=e:(t=this.queue,this.queue=[]),0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3))
var r,i,o=[],a=[]
t.forEach((function(e){var t=n.getGenericEventBody(e),r=n.getBreadcrumbs(e),i=n.envelop(e.id,t,r)
n.trigger(i,e.meta)
var s=i.eventInfo.eventName
if("LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?o.push(i):a.push(i),n.enableSequenceNumberLix){"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var c=Nr(e.id)
Vr.includes(c)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[c]&&n.clientTopicLocalSequenceNumberCountersMap[c]++}})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(o.length+a.length),i=this.clientMonitoringConn,r={onResult:function(e,t){i&&!i.isDestroyed()&&(e.statusCode&&i.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ")
null==i||i.logFailedEvent(Ur.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,o,void 0,r),this.networkTransporter.sendPayload(this.host.endpoint,a,void 0,r))}}}]),e}(),Xr=function(){function e(t,n){_t(this,e),this.clientBreadcrumbType=t,this.id=n}return St(e,[{key:"builder",get:function(){return function(){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}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
function Qr(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&&function(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(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}}function Yr(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Hr||(Hr={})),St((function e(t,n){var r,i
if(_t(this,e),xt(this,"transporter",void 0),xt(this,"delegate",void 0),xt(this,"currentContext",void 0),xt(this,"appState",void 0),xt(this,"previousAppContext",void 0),xt(this,"customTransporters",void 0),xt(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var a=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[o]=new Wr(this.transporter.host.api.assign(a,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Fr(t.host))}),[{key:"host",get:function(){return this.transporter.host}},{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 mr(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,Qr(t))
if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t
this.currentContext=mr(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(mr(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=pr(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t}
return i&&i(o),a}),{context:n})}},{key:"fireEvent",value:function(e,t,n,r){if(!t){var i=Nr(e),o=void 0===t?"undefined":null===t?"null":Et(t),a='Firing tracking event "'.concat(i,'" with invalid body, you fired "').concat(o,'"')
if(this.clientMonitoringConn){var s=this.clientMonitoringConn.logEventGenerated(i)
this.clientMonitoringConn.logFailedEvent(Ur.MISSING_REQUIRED_PROPERTIES,e,a,s)}throw new Error(a)}var c=r||[]
if(c.length>0){var u=c.map((function(e){return Xr.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:u})}var l=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n)
return this.fireEnvelope(l)}},{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=this.generateEnvelope(e,t,n)
return r.length>0?this.addBreadcrumbsToEnvelope(i,r):i}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e
return delete t.clientBreadcrumbType,t}))
return this.host.api.assign(e,{clientBreadcrumbs:n}),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(Mr(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=Nr(i.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(Ur.UNKNOWN_EXECUTION_ERROR,i.id,c,u)}throw new Error(c)}return a.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return hr(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()
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),tr.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return pr((t||this.currentContext||{pageKey:"unknown"}).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){var n="NavigationEvent"
this.previousAppContext=t.previousContext
var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n
return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,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=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&mr(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}]),St((function e(t,n){var r,i=this
_t(this,e),xt(this,"core",void 0),xt(this,"protocol",void 0),xt(this,"throttleKeySet",new Set),xt(this,"config",void 0),xt(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t
var o=this.core.host.api.location.protocol
this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},tr.on("internal:error",this.reportTransporterError)}),[{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=e.message,l=e.name,d=e.stack,f=void 0===d?"":d,h=e.fileName,p=void 0===h?"":h,g=e.lineNumber,m=void 0===g?0:g,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,_=b.appVersion,T=b.service,S=b.serviceInstance,x=b.treeID,C=void 0===x?"":x,A=b.api,w=A.Promise,I=A.location,R=I.host,k=I.pathname,O=I.search,M=I.hash,N=void 0===M?"":M
if(c){t={}
var P=new Map
Object.keys(c).forEach((function(e){P.set(e.toLowerCase(),c[e])})),t.callTreeId=P.get("x-li-uuid"),t.microsoftEdgeReference=P.get("x-msedge-ref"),t.pointOfPresenceId=P.get("x-li-pop"),t.fabric=P.get("x-li-fabric")}var D=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:m,m:u,s:f,t:l,u:p},h:N,l:n.protocol,o:R,p:k,pageKey:e.pageKey,q:O,service:T,serviceInstance:S,serviceVersion:_,t:r,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:a,responseTraceHeaders:t}}))}
if(this.config.throttleTime<0)return D()
var U=function(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}(l+u+f+r.join("")+a)
return this.throttleKeySet.has(U)?w.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),D())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),tr.off("internal:error",this.reportTransporterError)}}]),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"}(Gr||(Gr={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent"}(Kr||(Kr={}))
var $r,Jr,Zr,ei,ti,ni,ri=(xt(lt={},"web-ui-framework","EMBER"),xt(lt,"app-id","linkedin.rum.tracking"),xt(lt,"app-version","unknown"),xt(lt,"is-single-page-app",!0),xt(lt,"user-timing-mark-enabled",!1),xt(lt,"user-timing-measure-enabled",!0),xt(lt,"beacon-source","apps"),xt(lt,"enable-rs-timing",!0),xt(lt,"enable-cdn-tracking",!1),xt(lt,"async-plugins-timeout",5e3),xt(lt,"beacon-timeout",3e4),xt(lt,"enable-memory-measurement",!1),xt(lt,"pageKeyPrefix",""),lt),ii=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],oi={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"},ai={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},si="rum token passed is invalid",ci=function(){function e(){_t(this,e),xt(this,"userTimingEntries",[]),xt(this,"longTasks",[]),xt(this,"resourceTimingEntries",[]),xt(this,"cdnData",void 0)}return St(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(li),cdnData:this.cdnData}}}]),e}(),ui=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function li(e){return ui.reduce((function(t,n){var r=e[n]
return void 0!==r&&(t[n]=r),t}),{})}function di(e,t,n){for(var r=null,i=[],o=e,a=0,s=function(){var e=yi(function(e){var t=e.getAttribute("id")
return t&&ti.idName(t)?{name:"#"+Ri(t,{isIdentifier:!0}),penalty:0}:null}(o))||yi.apply(void 0,vt(function(e){return Array.from(e.attributes).filter((function(e){return ti.attr(e.name,e.value)})).map((function(e){return{name:"["+Ri(e.name,{isIdentifier:!0})+'="'+Ri(e.value)+'"]',penalty:.5}}))}(o)))||yi.apply(void 0,vt(function(e){return Array.from(e.classList).filter(ti.className).map((function(e){return{name:"."+Ri(e,{isIdentifier:!0}),penalty:1}}))}(o)))||yi(function(e){var t=e.tagName.toLowerCase()
return ti.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===ei.All)s&&(e=e.concat(e.filter(vi).map((function(e){return mi(e,s)}))))
else if(t===ei.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(vi).map((function(e){return mi(e,s)}))))
else if(t===ei.One){var c=function(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),1!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e)||yt(e,1)||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=e.slice(0,1))[0]
s&&vi(c)&&(e=[mi(c,s)])}var u,l=mt(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>=ti.seedMinLength&&(r=fi(i,n)))return"break"
o=o.parentElement,a++};o&&o!==ti.root.parentElement&&"break"!==s(););return r||(r=fi(i,n)),r}function fi(e,t){var n=_i(Ei(e))
if(n.length>ti.threshold)return t?t():null
var r,i=mt(n)
try{for(i.s();!(r=i.n()).done;){var o=r.value
if(gi(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function hi(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 pi(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function gi(e){switch(ni.querySelectorAll(hi(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(hi(e)))
case 1:return!0
default:return!1}}function mi(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function vi(e){return"html"!==e.name&&!e.name.startsWith("#")}function yi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var r=t.filter(bi)
return r.length>0?r:null}function bi(e){return null!=e}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,r=[],i=mt(e[0])
try{for(i.s();!(n=i.n()).done;){var o=n.value
r=r.concat(Ei(e.slice(1,e.length),t.concat(o)))}}catch(e){i.e(e)}finally{i.f()}return r}return[t]}function _i(e){return Array.from(e).sort((function(e,t){return pi(e)-pi(t)}))}function Ti(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>ti.optimizedMinLength)for(var i=1;i<e.length-1;i++){if(n.counter>ti.maxNumberOfTries)return r
n.counter+=1
var o=vt(e)
o.splice(i,1)
var a=hi(o)
if(n.visited.has(a))return r
gi(o)&&Si(o,t)&&(r.push(o),n.visited.set(a,!0),r=r.concat(Ti(o,t,n)))}return r}function Si(e,t){return ni.querySelector(hi(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"}($r||($r={})),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"}(Jr||(Jr={})),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"}(Zr||(Zr={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(ei||(ei={}))
var xi,Ci=/[ -,\.\/:-@\[-\^`\{-~]/,Ai=/[ -,\.\/:-@\[\]\^`\{-~]/,wi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ii={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function Ri(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Ii),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?Ci.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&&Ai.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(wi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+a+r:a}function ki(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 Oi(e){var t=e||performance
return Math.round(t.now())}function Mi(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return function(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}
ti=Object.assign(Object.assign({},n),{idName:function(e){return 0!==e.indexOf("ember")}}),ni=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(ti.root,n)
var r=di(e,ei.All,(function(){return di(e,ei.Two,(function(){return di(e,ei.One)}))}))
if(r){var i=_i(Ti(r,e))
return i.length>0&&(r=i[0]),hi(r)}throw new Error("Selector was not found.")}(e)}catch(e){return"serialization_error"}var t=Mi(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Ni(e,t,n,r){var i=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
i.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==r||r({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
i.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==r||r({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),i}function Pi(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var Di=function(){function e(t){_t(this,e),xt(this,"hostApis",void 0),xt(this,"hostnameProperties",void 0),xt(this,"usedHostnames",void 0),xt(this,"abortController",void 0),xt(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 St(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return yr(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=vr(yr(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,(xi=xi||r.createElement("a")).href=n,xi.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}(),Ui=function(){function e(t,n,r,i,o,a,s){_t(this,e),xt(this,"hostApis",void 0),xt(this,"statics",void 0),xt(this,"options",void 0),xt(this,"allowTimingOrigin",void 0),xt(this,"fireCustomMeasureEvent",void 0),xt(this,"fireResourceLoadEvent",void 0),xt(this,"isTracerLixEnabled",void 0),xt(this,"collectResourceTimings",void 0),xt(this,"collectCdnData",void 0),xt(this,"perfObserver",void 0),xt(this,"renderTimings",new Map),xt(this,"urlToTreeId",new Map),xt(this,"cdnDataProvider",void 0),xt(this,"observables",new ci),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerLixEnabled=s,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Di(t))}return St(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(xi=xi||t.createElement("a")).href=e,xi.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:ki(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e)
if(r&&(r.renderEnd=r.renderEnd||ki(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void _r("ViewLoadEvent","pageLoadId does not exist")}},{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=ji(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,ii.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={}
c.resourceKey=n,c.isNetwork=!!r&&0!==r,c.loadType=i||"unknown",c.timeOrigin=t
var u={},l=this.urlToTreeId.get(n)
l&&(u.resourceTreeId=l)
var d=ai[o]
u.nextHopProtocol=null!=d?d:"UNKNOWN",u.transferSize=r,u.encodedBodySize=a,u.decodedBodySize=s,c.resourceNetworkContext=u
var f=[]
return Object.keys(oi).forEach((function(t){var n
t in Zr&&void 0!==e[t]&&f.push({resourceProgressType:oi[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),c.resourceProgressStates=f,c}},{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=Ni(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,ji(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?vr(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e,t){var n=this
this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var r=e.entryType,i=e.name,o=e.startTime,a=e.duration
"resource"===r?n.processSingleResourceTiming(e,t):"mark"===r?(n.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:i,measurementType:"MARK",measureProgressStates:[{measureProgressName:i,timestamp:o}]})):"measure"===r?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:i,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:i,timestamp:o,duration:a}]})):"longtask"===r&&(n.observables.longTasks.push({duration:a,name:i,startTime:o}),n.fireCustomMeasureEvent({measurementName:i,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:i,timestamp:o,duration:a}]}))}))})),this.observables.userTimingEntries=Ni(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent)
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){if(this.collectResourceTimings){this.observables.resourceTimingEntries.push(e)
var n=-1!==e.name.indexOf("/li/track")
if(this.isTracerLixEnabled&&!n){var r=this.collectResourceLoadEvent(e,t)
this.fireResourceLoadEvent(r)}}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:Pi(this.renderTimings),networkInformationMetrics:Li(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function Li(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 ji(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,ii.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var Fi=function(){function e(t,n,r){_t(this,e),xt(this,"featureName",void 0),xt(this,"trackingCore",void 0),xt(this,"rumConfig",void 0),xt(this,"observing",!1),xt(this,"basePageTreeId",void 0),xt(this,"startPageInstance",void 0),xt(this,"startMemory",void 0),xt(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return St(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)||hr("unknown"),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:Oi(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}()
xt(Fi,"checkpoints",[1,3,10,30,90,180,300])
var Bi,qi,Hi,Gi,Ki,Vi=St((function e(t,n,r){_t(this,e),xt(this,"webUIFramework",void 0),xt(this,"timeSource",void 0),xt(this,"isSinglePageApp",void 0),xt(this,"appRenderMode",void 0),xt(this,"isAppRenderFailed",void 0),xt(this,"pageLoadMode","INITIAL"),xt(this,"isSSL",void 0),xt(this,"treeId",void 0),xt(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})),zi=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)}},Wi=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){}},Xi=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)},Qi=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Yi=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)))}},$i=-1,Ji=function(){return"hidden"===document.visibilityState?0:1/0},Zi=function(){Xi((function(e){var t=e.timeStamp
$i=t}),!0)},eo=function(){return $i<0&&($i=Ji(),Zi(),Qi((function(){setTimeout((function(){$i=Ji(),Zi()}),0)}))),{get firstHiddenTime(){return $i}}},to=!1,no=-1,ro=function(e,t){to||(function(e,t){var n,r=eo(),i=zi("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:Wi("paint",o);(a||s)&&(n=Yi(e,i,t),a&&o(a),Qi((function(r){i=zi("FCP"),n=Yi(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){no=e.value})),to=!0)
var n,r=function(t){no>-1&&e(t)},i=zi("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=Wi("layout-shift",s)
c&&(n=Yi(r,i,t),Xi((function(){c.takeRecords().map(s),n(!0)})),Qi((function(){o=0,no=-1,i=zi("CLS",0),n=Yi(r,i,t)})))},io={passive:!0,capture:!0},oo=new Date,ao=function(e,t){Bi||(Bi=t,qi=e,Hi=new Date,uo(removeEventListener),so())},so=function(){if(qi>=0&&qi<Hi-oo){var e={entryType:"first-input",name:Bi.type,target:Bi.target,cancelable:Bi.cancelable,startTime:Bi.timeStamp,processingStart:Bi.timeStamp+qi}
Gi.forEach((function(t){t(e)})),Gi=[]}},co=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(){ao(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,io),removeEventListener("pointercancel",r,io)}
addEventListener("pointerup",n,io),addEventListener("pointercancel",r,io)}(t,e):ao(t,e)}},uo=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,co,io)}))},lo=function(e,t){var n,r=eo(),i=zi("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=Wi("first-input",o)
n=Yi(e,i,t),a&&Xi((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Qi((function(){var r
i=zi("FID"),n=Yi(e,i,t),Gi=[],qi=-1,Bi=null,uo(addEventListener),r=o,Gi.push(r),so()}))},fo={},ho=function(e,t){var n,r=eo(),i=zi("LCP"),o=function(e){var t=e.startTime
t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},a=Wi("largest-contentful-paint",o)
if(a){n=Yi(e,i,t)
var s=function(){fo[i.id]||(a.takeRecords().map(o),a.disconnect(),fo[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Xi(s,!0),Qi((function(r){i=zi("LCP"),n=Yi(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,fo[i.id]=!0,n(!0)}))}))}))}},po=["LCP","FID","CLS"],go={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},mo={},vo=function(){var e
if(!xr)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}(),yo=!1,bo=new Set,Eo={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function _o(){var e=!0===window.__test__resetWebVitalsState
if(!yo||e){e&&(bo=new Set),po.forEach(To)
var t=Symbol()
Ki=t,[ho,lo,ro].forEach((function(e){return e(So.bind(null,t),!0)})),[ho,lo,ro].forEach((function(e){return e(xo.bind(null,t))})),yo=!0}}function To(e){mo[e]={name:e,value:-1,updateHistory:[]}
var t=Eo[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(mo[e].value=-2)}function So(e,t){if(e===Ki){var n=mo[t.name],r=Oi()
n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),bo.forEach((function(e){return e(t,r,!1)}))}}function xo(e,t){e===Ki&&bo.forEach((function(e){return e(t,Oi(),!0)}))}var Co=function(){function e(t,n){var r=this
_t(this,e),xt(this,"basePageTreeId",void 0),xt(this,"basePageKey",void 0),xt(this,"observing",!1),xt(this,"appContextMap",new Map),xt(this,"rumConfig",void 0),xt(this,"trackingCore",void 0),xt(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 St(e,[{key:"startObserving",value:function(){var e,t,n=this
_o(),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",po.forEach((function(e){var t;-2===(null===(t=mo[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,bo.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,bo.delete(e)}},{key:"reportMetric",value:function(e){var t=mo[e],n={name:go[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var r=mo[e]
if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:vo},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:Mi(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:Mi(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":Mi(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,r,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}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}()
St((function e(t,n,r){var i,o
_t(this,e),xt(this,"core",void 0),xt(this,"config",void 0),xt(this,"collector",void 0),xt(this,"boomerangStart",-1),xt(this,"webVitalsObserver",void 0),xt(this,"appMemoryObserver",void 0),xt(this,"pageMemoryObserver",void 0),xt(this,"liveTokens",new Set),xt(this,"stateWM",new WeakMap),xt(this,"activeToken",void 0),xt(this,"isInitial",void 0),xt(this,"shouldTrackCustomMeasureEvent",void 0),xt(this,"pageLoadId",void 0),xt(this,"initialResourcesEvents",[]),xt(this,"initialCustomMeasureEvents",[]),xt(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),xt(this,"fireCustomMeasureEventBound",this.fireCustomMeasureEvent.bind(this)),xt(this,"fireResourceLoadEventBound",this.fireResourceLoadEvent.bind(this)),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({},ri),n)
var a="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"))
this.collector=new Ui(r.host.api,new Vi(t,this.config,r.host),this.config,a,this.fireCustomMeasureEventBound,this.fireResourceLoadEventBound,this.isTracerLixEnabled),this.collector.startObserving(),tr.before("internal:hide",this.beforeHideHandlerBound)}),[{key:"isTracerLixEnabled",get:function(){var e,t
return"enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.generic-tracers"))}},{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=this.collector.recordRenderEnd(e,this.isTracerLixEnabled,this.pageLoadId)
t&&this.isTracerLixEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},t)}},{key:"start",value:function(){var e,t
this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset()
var n,r=Object.create(null),i="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"))
return this.activeToken=r,this.liveTokens.add(r),this.stateWM.set(r,{isInitial:this.isInitial,startTime:ki(this.core.host.api.performance,i)}),this.config["enable-memory-measurement"]&&(null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.pageMemoryObserver=new Fi("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Fi("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Co(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=ki(this.core.host.api.performance,s)
a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o}
var u=this.activeToken
a.fireRumEventTimeout=setTimeout((function(){if(r.isTracerLixEnabled){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)}),this.config["beacon-timeout"]),this.activeToken=void 0}else _r("rum-end",si)}},{key:"firePageLoadStartEvent",value:function(e,t){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0
var n=this.stateWM.get(e)
this.pageLoadId=lr()
var r=this.collector.collectPageLoadStartData({isInitial:n.isInitial,rumKey:t})
r.pageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},r)}else _r("PageLoadStartEvent",si)}},{key:"destroy",value:function(){var e,t,n
tr.offBefore("internal:hide",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.core.destroy()}},{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.isTracerLixEnabled){var r=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0})
e.firePageLoadEndEvent(r,t)}var i=e.collector.collect({isInitial:n.isInitial,immediate:!0})
e.fireRumEvent(i,t)}}))}},{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
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey
if(e.pageLoadId=this.pageLoadId,e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=s),e.navigationTiming){var u,l=null===(u=e.navigationTiming)||void 0===u?void 0:u.navigationStart,d=this.boomerangStart=l||this.boomerangStart,f=l||i,h=a-f
e.navigationTiming.boomerangStart=d,e.navigationTiming.timeDone=h,e.navigationTiming.navigationStart=f,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:c||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this
if(this.isTracerLixEnabled&&this.shouldTrackCustomMeasureEvent){if(!this.pageLoadId)return void this.initialCustomMeasureEvents.push(e)
this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=t.pageLoadId,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e){var t=this
if(this.isTracerLixEnabled){if(!this.pageLoadId)return void this.initialResourcesEvents.push(e)
this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=t.pageLoadId,t.core.fireEvent({appId:t.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=this.pageLoadId,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()}}])
var Ao="undefined"!=typeof window&&"undefined"!=typeof performance,wo="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG")
St((function e(t,n){_t(this,e),xt(this,"trackingCore",void 0),xt(this,"endPageInstance",void 0),xt(this,"startPageInstance",void 0),xt(this,"featureIdentifier",void 0),xt(this,"marks",[]),xt(this,"spans",[]),xt(this,"spanStarts",new Map),xt(this,"started",!1),xt(this,"ended",!1),xt(this,"featureKey",void 0),xt(this,"productName",void 0),xt(this,"flushOnEnd",void 0),xt(this,"basePageTreeId",void 0),xt(this,"debounceFlush",void 0),xt(this,"disableAutoFlush",void 0),xt(this,"isCanceled",!1),xt(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}),[{key:"start",value:function(e){var t
if(Ao){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(Ao){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){Ao&&(this.marks.push({name:e,startTime:Oi()}),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){Ao&&(this.spanStarts.set(e,Oi()),wo&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Ao&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e
this.spans.push({name:r,startTime:n,duration:Oi()-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:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return Oi()}},{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||hr("unknown"),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(Ao){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'))}}}])
const Io=new Map
function Ro(e,t,n){if(e)return Object.freeze(Object.create(null))
if("query"===t.kind||"mutation"===t.kind||"subscription"===t.kind){const e=t
if(e.ast)return Object.assign(Object.create(null),e.ast,n)}return Object.freeze(Object.assign(Object.create(null),n))}function ko(e,t){let n
return n=e?Ro(!0,t):"query"===t.kind||"mutation"===t.kind?Ro(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):Ro(!1,t,{$debug:{name:t.name,kind:t.kind}}),Io.set(n,t),n}function Oo(e){return Io.get(e)}function Mo(e,t){const n=Oo(e)
if(void 0===n)throw new Error(`No GraphQL query or fragment metadata associated with the given token: ${JSON.stringify(e)}`)
return n.kind===t}function No(e){const t=Oo(e)
if(void 0===t||"query"!==t.kind&&"mutation"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
return t.id}const Po="fields",Do=/^(\/[^?]+)\??(.*)$/
function Uo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=Do.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}const Lo=/[,()':]/g,jo=/[,()':]/
function Fo(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===Po?`${Po}=${t[Po]}`:`${qo(e)}=${Bo(t[e],!1)}`)).join("&")}function Bo(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let r=0;r<e.length;r++)n[r]=Bo(e[r],t)
return`List(${n.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){return`(${Object.keys(e).map((n=>`${qo(n,t)}:${Bo(e[n],t)}`)).join(",")})`}(e,t):qo(e,t)}function qo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":t&&"string"==typeof e&&jo.test(e)?e.replace(Lo,escape):t?e:encodeURIComponent(e).replace(Lo,escape)}const Ho="application/x-www-form-urlencoded",Go="POST",Ko=8e3
function Vo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=("graphql"===e?zo:Wo)(t,n)
return Object.keys(r).length?"".concat(i,"?").concat(Fo(r)):i}var zo=function(e,t){var n=Qo(e.path),r=Qo(e.host),i=e.graphQLPrefix?Qo(e.graphQLPrefix):""
return"".concat(r).concat(n).concat(i).concat(t)},Wo=function(e,t){var n=Qo(e.path),r=Qo(e.host),i=Xo(e.restliPrefix,t)
return"".concat(r).concat(n).concat(i)},Xo=function(e,t){return e?"".concat(e).concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)):t},Qo=function(e){var t=e.endsWith("/")?"":"/"
return"".concat(e).concat(t)},Yo=function(e){return e.map((function(e){return function(e){return encodeURIComponent(e).replace(/\(/g,"%28").replace(/\)/g,"%29")}(e)})).join(",")},$o=ko(!0,{kind:"query",id:"messengerConversations.0c663c739fad6d5a743b2ccac0d0c2e0",typeName:"com.linkedin.a48779e96d56416b455684d54ca0a605",name:"find-conversations-by-category"}),Jo=ko(!0,{kind:"query",id:"messengerConversations.c6e2778ef6f5c2b617c06261738cd193",typeName:"com.linkedin.637753efb2e5d51c7275035cac9b4c5f",name:"find-conversations-by-recipients"}),Zo=ko(!0,{kind:"query",id:"messengerConversations.270d2609539ba85bf6094da500c52261",typeName:"com.linkedin.c3d42ec0291728dbe7f3aced6f0826e5",name:"find-conversations-by-search-criteria"}),ea=ko(!0,{kind:"query",id:"messengerConversations.c37db7bc38b4ea3420199767a8337fd9",typeName:"com.linkedin.47459727fe9dc4c6dd28af91d35c3bea",name:"get-conversation-by-id"}),ta=ko(!0,{kind:"query",id:"messengerMessages.f6a28de8abdec530187b553206cc132f",typeName:"com.linkedin.5ead02a2479291ebdce3f63ac66fbe93",name:"get-messages-by-conversation"}),na=ko(!0,{kind:"query",id:"messengerMessages.09c5ea0b30fb11aa2c2ccc56b4e4b514",typeName:"com.linkedin.f06a0d9d67201ccfd952b77289ff240e",name:"get-messages-by-timestamp"}),ra=ko(!0,{kind:"query",id:"messengerConversations.40f36dc4c2590f2fc0c9434522757158",typeName:"com.linkedin.2a7f21c8d98d18e3a6c802f0dd8d222d",name:"get-conversations-by-ids"}),ia=ko(!0,{kind:"query",id:"messengerMessages.5eb61795b8c78ca9143ced85859bab4e",typeName:"com.linkedin.9103982cbb84a6713a12118e18d0aede",name:"get-messages"})
ko(!0,{kind:"query",id:"messengerMessageDrafts.700fc5581d971994cae1f58597d01b0a",typeName:"com.linkedin.6f29433b666b615cc843d0c53e498d90",name:"get-message-draft"})
var oa=ko(!0,{kind:"query",id:"messengerMailboxCounts.fc528a5a81a76dff212a4a3d2d48e84b",typeName:"com.linkedin.7455e0e579fcb3a34f96eb0eefe7a411",name:"get-mailbox-unreadcounts"}),aa=ko(!0,{kind:"query",id:"messengerQuickReplies.4338d226319203b5b08920ab7621fa45",typeName:"com.linkedin.4c7816368899aefc0404a81a21b89aad",name:"get-quick-replies-by-conversation"}),sa=ko(!0,{kind:"query",id:"messengerMessagingParticipants.6a6059be0cc8bfe3b829c850366d1fe4",typeName:"com.linkedin.17d2b5b00f250b93fa250e00473c98a2",name:"get-reactors-by-message-and-emoji"}),ca=ko(!0,{kind:"query",id:"messengerSeenReceipts.15417b08a7230a8c0de682635d1fa848",typeName:"com.linkedin.33851ce67c1a444c09e057014b5c4d81",name:"get-seen-receipts-by-conversation"}),ua=ko(!0,{kind:"query",id:"messengerConversations.0df6f006f938bcf4f6be8f8fdfc2fe4c",typeName:"com.linkedin.bc13e1b1426cc03e36eab503d342cabe",name:"initial-sync-conversations"}),la=ko(!0,{kind:"query",id:"messengerConversations.33c5bfbf15b112da638fee15f77f5e33",typeName:"com.linkedin.2a25dae6962f40be897d5ffe00289c5c",name:"mark-all-conversations-as-read"}),da=ko(!0,{kind:"query",id:"messengerConversations.116abff3932cbb6477631d3f2a6cb05e",typeName:"com.linkedin.13baefbc2d95f2e6498312456b544fc4",name:"sync-conversations"}),fa=ko(!0,{kind:"query",id:"messengerMessages.fcaf6a3aca4ff63c4d1585bddb1e1a8e",typeName:"com.linkedin.c38c518a13ae3dfabbd000dba2c1323a",name:"sync-messages"}),ha=ko(!0,{kind:"query",id:"messengerMessages.af1df90051433f7bf9633a10cfd1795e",typeName:"com.linkedin.d517c530e9e9e6efa128b8e0e66d8226",name:"sync-messages-by-convo-id-in-batch"}),pa=ko(!0,{kind:"query",id:"messengerMailboxRealtimeSubscriptionAuthorizationTokens.1a3b0efc0a0a2c24c23367b5f8a25e62",typeName:"com.linkedin.606462b788cb71b5e1a280f01897a453",name:"realtime-subscription-auth-tokens"})
ko(!0,{kind:"mutation",id:"messengerMessageDrafts.2cf9ab96f9203dcfb41c51cc8a81d024",typeName:"com.linkedin.755dfb6105c9f45ad1ddc0ab8f011f1c",name:"create-message-draft"})
var ga,ma=function(){return sr()},va=function(e,t){if(!Mo(e,"query")){var n=Ee.GRAPHQL_INVALID_LOOKUP
throw new Ae("graphql",n.code,n.message)}if(function(e){return Mo(e,"fragment")}(e)){var r=Ee.CANNOT_QUERY_FRAGMENT
throw new Ae("graphql",r.code,r.message)}var i={}
try{"full"===t.queryFormat?i.query=function(e){const t=Oo(e)
if(void 0===t||"query"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
if(!t.source)throw new Error(`No GraphQL source associated with the given token: ${JSON.stringify(e)}`)
return t.source}(e):i.queryId=No(e)}catch(t){i.queryId=No(e)}for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s]
var c=a[0]
return i.variables=c||{},Vo("graphql",t.messengerResource,"graphql",i)},ya=function(e){return function(t){return va(e,t,arguments.length<=1?void 0:arguments[1])}},ba=ya(ea),Ea=ya(ua),_a=ya(oa),Ta=ya($o),Sa=ya(Jo),xa=ya(Zo),Ca=ya(ra),Aa=ya(ia),wa=ya(ta),Ia=ya(na),Ra=ya(ca),ka=ya(da),Oa=ya(fa),Ma=ya(ha),Na=ya(la),Pa=ya(sa),Da=ya(aa),Ua=ya(pa)
ga=Symbol.iterator
var La=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
l(this,e),h(this,"_idx",0),h(this,"_messages",void 0),h(this,"_clientIdIndex",void 0),h(this,"_entityUrnIndex",void 0),this._messages=function(e){return e.slice().sort((function(e,t){return"Delivered"===e.status&&"Delivered"!==t.status?-1:"Delivered"!==e.status&&"Delivered"===t.status?1:e.deliveredAt.getTime()-t.deliveredAt.getTime()}))}(t),this._clientIdIndex=new Map(t.map((function(e){return[e.clientId,e]}))),this._entityUrnIndex=new Map(t.filter(k).map((function(e){return[e.entityUrn,e]})))}return f(e,[{key:"length",get:function(){return this._messages.length}},{key:"at",value:function(e){if(e>=0&&e<this._messages.length)return this._messages[e]
throw new Error("Index out of bounds")}},{key:"getByIdentifier",value:function(e){return J(e)?this._entityUrnIndex.get(e):this._clientIdIndex.get(e)}},{key:"next",value:function(){return this._idx<this._messages.length?{done:!1,value:this._messages[this._idx++]}:(this._idx=0,{done:!0,value:null})}},{key:"first",value:function(){try{return this.at(0)}catch(e){return}}},{key:"last",value:function(){try{return this.at(this.length-1)}catch(e){return}}},{key:ga,value:function(){return this}},{key:"map",value:function(e){return Array.from(this,e)}},{key:"updateAny",value:function(t,n){return new e(A(t,n)(this._messages))}},{key:"updateByUrn",value:function(t,n){return this._entityUrnIndex.has(t)?new e(w(Ue(t),Ge(n))(this._messages)):this}},{key:"updateByClientId",value:function(t,n){return this._clientIdIndex.has(t)?new e(w(Le(t),Ge(n))(this._messages)):this}},{key:"add",value:function(t){var n=this,r=t.filter(gt(j,Ye(this._entityUrnIndex,this._clientIdIndex))).map((function(e){return n._clientIdIndex.has(e.clientId)?o(o({},e),{},{clientId:ma()}):e})),i=t.filter(Ye(this._entityUrnIndex,this._clientIdIndex)).map((function(e){return Ge(e)(n.getByIdentifier(e.entityUrn||e.clientId))})),a=new Map(i.map((function(e){return[e.clientId,!0]}))),s=this._messages.filter((function(e){return!a.has(e.clientId)}))
return new e([].concat(_(s),_(i),_(r)))}},{key:"removeByClientId",value:function(t){var n=this._messages.filter((function(e){return e.clientId!==t}))
return[this._clientIdIndex.get(t),new e(n)]}},{key:"removeByUrns",value:function(t){var n=this._messages.filter((function(e){return!e.entityUrn||!t.has(e.entityUrn)}))
return new e(n)}}]),e}(),ja={continueOnFailure:!0,convCount:20,decorators:{},enableParameterTypeChecks:!0,experimental:{},graphQlQueryIds:{},headers:function(){return{}},isPreconnected:!1,mailboxType:"auto",messengerResource:{host:"/",path:"messenger/api/",graphQLPrefix:"",restliPrefix:""},mpName:"web-messenger-data",mpVersion:"1.0.0",msgCount:20,queryFormat:"id",realtimeHost:null,sendRetryTimeoutInSecond:16,syncRetryTimeoutInSecond:80,typingIndicatorDelayInSecond:5,useRealtime:!0,viewerUrn:""},Fa=function(e){return e?e.filter(k):[]},Ba=function(e){var t,n,r,i,o=new Date
return{additionalData:e.additionalData||null,backendConversationUrn:e.backendConversationUrn,backendUrn:e.backendUrn,clientId:null!==(t=e.clientId)&&void 0!==t?t:ma(),content:e.content,deliveredAt:e.deliveredAt?new Date(e.deliveredAt):o,entityUrn:e.entityUrn,footer:e.footer,actorUrn:e.actorUrn,inlineWarning:null!==(n=e.inlineWarning)&&void 0!==n?n:void 0,incompleteRetriableData:null!==(r=e.incompleteRetriableData)&&void 0!==r&&r,lastActivityAt:o,messageBodyRenderFormat:e.messageBodyRenderFormat||"DEFAULT",optionalSendData:null!==(i=e.optionalSendData)&&void 0!==i?i:{renderContent:[]},reactions:qa(e.reactions),retries:e.retries||0,senderUrn:e.senderUrn,status:e.status||"Pending",subject:e.subject}},qa=function(e){return(e||[]).filter(k).map((function(e){return o(o({},e),{},{reactors:[]})}))},Ha=function(e){var t,n,r,i,o,a,s,c,u,l,d,f,h,p
return{backendUrn:e.backendUrn,categories:e.categories.filter(k),contentMetadata:null!==(t=e.contentMetadata)&&void 0!==t?t:void 0,conversationTypeText:null!==(n=e.conversationTypeText)&&void 0!==n?n:void 0,conversationUrl:e.conversationUrl,createdAt:new Date(e.createdAt),creatorHostIdentityUrn:null===(r=e.creator)||void 0===r?void 0:r.hostIdentityUrn,disabledFeatures:null!==(i=null===(o=e.disabledFeatures)||void 0===o?void 0:o.filter(k))&&void 0!==i?i:[],groupChat:null!==(a=e.groupChat)&&void 0!==a&&a,headlineText:null!==(s=e.headlineText)&&void 0!==s?s:void 0,hostConversationActions:e.hostConversationActions.filter(k),incompleteRetriableData:null!==(c=e.incompleteRetriableData)&&void 0!==c&&c,lastActivityAt:new Date(e.lastActivityAt),lastReadAt:e.lastReadAt?new Date(e.lastReadAt):void 0,metadata:{},notificationStatus:e.notificationStatus,participants:(null!==(u=e.conversationParticipants)&&void 0!==u?u:[]).filter(k).map((function(e){return e.hostIdentityUrn})).filter(k).sort(),quickReplies:null!==(l=e.quickReplies)&&void 0!==l?l:[],read:e.read,seenReceiptsMap:null!==(d=e.seenReceiptsMap)&&void 0!==d?d:{},shortHeadlineText:null!==(f=e.shortHeadlineText)&&void 0!==f?f:void 0,state:null!==(h=e.state)&&void 0!==h?h:void 0,status:{},title:null!==(p=e.title)&&void 0!==p?p:void 0,unreadCount:e.unreadCount}},Ga=function(e,t,n){var r=new Date(Date.now())
return{clientId:ma(),content:null!=t?t:{text:"",attributes:[]},lastActivityAt:r,optionalSendData:null!=n?n:{renderContent:[]},senderUrn:e,status:"Draft"}},Ka=function(e){return o(o({},e),{},{additionalData:null,deliveredAt:new Date(Date.now()),messageBodyRenderFormat:"DEFAULT",reactions:[],incompleteRetriableData:!1,retries:0,status:"Pending"})},Va=function(e){var t,n=new Date
return{clientId:e.clientId,content:e.content,optionalSendData:e.optionalSendData,lastActivityAt:null!==(t=e.lastActivityAt)&&void 0!==t?t:n,senderUrn:e.senderUrn,actorUrn:e.actorUrn,status:"Draft"}},za=function(e){return _(e?e.filter(k).map((function(e){return Xa(e)})):[])},Wa=function(e,t,n){var r,i,o,a,s,c,u,l,d,f,h,p,g,m
if(!e.entityUrn)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("conversationResponseToState: convoResponse.entityUrn is null or undefined"))
var v=e.creator&&e.creator.hostIdentityUrn?Xa(e.creator):void 0,y=null!==(r=null===(i=e.messages)||void 0===i||null===(o=i.elements)||void 0===o?void 0:o.filter(k))&&void 0!==r?r:[],b=ts(y),E=b.messages,_=b.participants,T=e.conversationParticipants.filter(k),S=za(T),x=T.map((function(e){return e.hostIdentityUrn})),C=nt(_,S),A=C
S.length!==C.length&&(A=C.filter((function(e){return x.includes(e.hostIdentityUrn)})))
var w=null!==(a=null===(s=e.creator)||void 0===s?void 0:s.hostIdentityUrn)&&void 0!==a?a:void 0,I={additionalData:null,backendUrn:e.backendUrn,categories:e.categories.filter(k),clientId:ma(),contentMetadata:null!==(c=e.contentMetadata)&&void 0!==c?c:void 0,conversationTypeText:null!==(u=e.conversationTypeText)&&void 0!==u?u:void 0,conversationUrl:e.conversationUrl,createdAt:new Date(e.createdAt),creatorHostIdentityUrn:w,disabledFeatures:null!==(l=null===(d=e.disabledFeatures)||void 0===d?void 0:d.filter(k))&&void 0!==l?l:[],draftMessages:[t],entityUrn:e.entityUrn,groupChat:null!==(f=e.groupChat)&&void 0!==f&&f,headlineText:null!==(h=e.headlineText)&&void 0!==h?h:void 0,incompleteRetriableData:e.incompleteRetriableData,lastActivityAt:new Date(e.lastActivityAt),lastReadAt:e.lastReadAt?new Date(e.lastReadAt):void 0,matchingSearches:n?[n]:[],messages:new La(E),quickReplies:[],metadata:{prevCursor:void 0,syncToken:void 0},notificationStatus:e.notificationStatus,participants:A.map((function(e){return e.hostIdentityUrn})).sort(),read:e.read,shortHeadlineText:null!==(p=e.shortHeadlineText)&&void 0!==p?p:void 0,state:null!==(g=e.state)&&void 0!==g?g:void 0,status:{fullyLoaded:!1,loading:!1,sending:"Ready"},title:null!==(m=e.title)&&void 0!==m?m:void 0,typingUrns:new Set,unreadCount:e.unreadCount,hostConversationActions:e.hostConversationActions.filter(k)}
return v&&!C.find((function(e){return e.hostIdentityUrn===v.hostIdentityUrn&&"EMPTY"!==e.kind}))&&C.push(v),[I,C]},Xa=function(e){var t,n,r
if(!e.hostIdentityUrn)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("messageParticipantDataToState: hostIdentityUrn is missing"))
if(null!==(t=e.participantType)&&void 0!==t&&t.member||null!==(n=e.participantType)&&void 0!==n&&n.organization||null!==(r=e.participantType)&&void 0!==r&&r.custom){var i=e.participantType,o=i.member,a=i.organization,s=i.custom
if(s)return{kind:"CUSTOM",additionalData:null,clientId:ma(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,name:s.name,image:s.image}
if(a)return{kind:"ORGANIZATION",additionalData:null,clientId:ma(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,name:a.name,tagline:a.tagline,logo:a.logo,pageType:a.pageType,pageUrl:a.pageUrl,following:a.following,industryName:a.industryName}
if(o){var c,u,l,d,f,h,p,g,m,v={url:null!==(c=o.profileUrl)&&void 0!==c?c:void 0,picture:o.profilePicture&&o.profilePicture.rootUrl?{rootUrl:o.profilePicture.rootUrl,artifacts:o.profilePicture.artifacts.filter(k)}:void 0}
return{kind:"MEMBER",additionalData:null,clientId:ma(),entityUrn:e.entityUrn,firstName:o.firstName.text,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,lastName:null!==(u=null===(l=o.lastName)||void 0===l?void 0:l.text)&&void 0!==u?u:"",headline:null!==(d=null===(f=o.headline)||void 0===f?void 0:f.text)&&void 0!==d?d:"",pronoun:{customPronoun:null!==(h=null===(p=o.pronoun)||void 0===p?void 0:p.customPronoun)&&void 0!==h?h:"",standardizedPronoun:null!==(g=null===(m=o.pronoun)||void 0===m?void 0:m.standardizedPronoun)&&void 0!==g?g:""},profile:v}}}return{kind:"EMPTY",additionalData:null,clientId:ma(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn}},Qa=function(e){return null!==e},Ya=function(e,t){var n,r=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsByRecipients.elements.filter(Qa)
if(!r)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("recipientConversationsToState: messengerConversationsByRecipients response does not contain non-null elements"))
return Za(r,t)},$a=function(e,t){var n,r=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsByIds
if(!r)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("getConversationsToState: messengerConversationsByIds response is missing"))
return o(o({},Za(r,t)),{},{requestId:e.requestId})},Ja=function(e){return e&&e.length?e.reduce((function(e,t){return function(e,t){if(t&&t.participantType&&!e[t.entityUrn]){var n=Xa(t)
return o(o({},e),{},h({},n.hostIdentityUrn,n))}return e}(e,t)}),{}):{}},Za=function(e,t){var n={},r=e.filter(Qa).map((function(e){var r=E(Wa(e,t),2),i=r[0]
return r[1].forEach((function(e){n[e.hostIdentityUrn]=e})),i}))
return{conversations:r,participants:n}},es=function(e,t){var n,r,i,o,a,s,c=null===(n=e.metadata)||void 0===n?void 0:n.newSyncToken,u=null!==(r=null===(i=e.metadata)||void 0===i?void 0:i.shouldClearCache)&&void 0!==r&&r,l=null!==(o=null===(a=e.metadata)||void 0===a?void 0:a.deletedUrns)&&void 0!==o?o:[],d=(null!==(s=e.elements)&&void 0!==s?s:[]).filter(k),f=ts(d)
return{messages:new La(f.messages),newSyncToken:c,shouldClearCache:u,deletedUrns:l,participants:f.participants,requestId:t}},ts=function(e){var t=Ja(e.reduce((function(e,t){return[].concat(_(e),[t.sender])}),[])),n=e.reduce((function(e,t){var n=function(e){var t,n,r,i
if(!e.sender.hostIdentityUrn)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("singleMessageAndParticipantsToState: sender hostIdentityUrn is missing"))
var o=Xa(e.sender),a=is(Fa(e.renderContent)),s=a.data,c=a.participants,u=e.actor?Xa(e.actor):void 0,l=nt([o],c)
return{participants:(u?nt(l,[u]):l).sort(),message:{additionalData:null,clientId:ma(),content:null!==(t=e.body)&&void 0!==t?t:{text:"",attributes:[]},optionalSendData:s,inlineWarning:null!==(n=e.inlineWarning)&&void 0!==n?n:void 0,incompleteRetriableData:e.incompleteRetriableData,deliveredAt:new Date(e.deliveredAt),entityUrn:e.entityUrn,backendConversationUrn:e.backendConversationUrn,backendUrn:e.backendUrn,footer:null!==(r=e.footer)&&void 0!==r?r:void 0,actorUrn:null==u?void 0:u.hostIdentityUrn,subject:null!==(i=e.subject)&&void 0!==i?i:void 0,messageBodyRenderFormat:e.messageBodyRenderFormat,reactions:qa(e.reactionSummaries),retries:0,senderUrn:e.sender.hostIdentityUrn,status:"Delivered"}}}(t),r=n.participants,i=n.message
return{messages:[].concat(_(e.messages),[i]),participants:nt(r,e.participants)}}),{messages:[],participants:[]}),r=nt(n.participants,N(t).filter(k))
return r.sort(),{messages:n.messages,participants:r}},ns=function(e){return"search"===e.kind},rs=function(e){if(!e.data||!e.data.messengerMailboxCountsByMailbox||!e.data.messengerMailboxCountsByMailbox.elements)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("mailboxUnreadCountsResponseToUnreadCounts: messengerMailboxCountsByMailbox response is missing"))
return function(e,t){return{counters:e.reduce((function(e,t){var n
return o(o({},e),{},h({},t.category,(null!==(n=e[t.category])&&void 0!==n?n:0)+t.unreadConversationCount))}),{}),requestId:t}}(e.data.messengerMailboxCountsByMailbox.elements.filter(k),e.requestId)},is=function(e){var t={}
return{data:{renderContent:e.filter(k).map((function(e){var n,r,i=e.forwardedMessageContent?(n=e.forwardedMessageContent,r=Xa(n.originalSender),{content:{originalSendAt:n.originalSendAt,originalSenderUrn:n.originalSender.hostIdentityUrn,forwardedBody:n.forwardedBody,footerText:n.footerText},participant:r}):{content:void 0,participant:void 0},a=i.content,s=i.participant
return s&&(t[s.hostIdentityUrn]=s),o(o({},M("forwardedMessageContent")(e)),{},{forwardedMessageContent:a})}))},participants:N(t).filter(k)}},os=function(e){return k(e.extensions)&&k(e.extensions.status)},as=function(e,t){var n=e.errors
if(n){var r=n.map((function(e){return Ae.buildGraphQLPayloadError(e,t)})),i=n.filter(os).map((function(e){return e.extensions.status}))
throw Ae.fromApiErrorMemo("ERRORS_IN_RESPONSE",ve(t,r,i))}},ss=function(e){return e.reduce((function(e,t){return o(o({},e),{},h({},t.hostIdentityUrn,t))}),{})}
function cs(e){return fetch(e)}const us=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH");(()=>{let e=globalThis,t=e[us]
t||(t=e[us]=new WeakMap)})()
const ls="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
new Headers({"X-RestLi-Protocol-Version":"2.0.0"})
var ds,fs=0,hs=function(){return fs+=1},ps={accept:"application/graphql","x-restli-protocol-version":"2.0.0"},gs=function(e){ps=o(o({},ps),e())},ms=function(e,t){if(typeof fetch>"u")throw new Error("@data-eden/network requires `fetch` to be available on`globalThis`. Did you forget to setup `cross-fetch/polyfill` before calling @data-eden/network's `buildFetch`?")
const n=cs
let r
const i=[...e].reverse().reduce(((e,t)=>async n=>t(n,e,{fetch:r})),n)
r=async(e,t)=>{const n=new Request(e,t)
return i(n)}
{const t=new Error
r.$debug={get creationStack(){return t.stack},get middlewares(){return e}}}return r}([function(){var e=u(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(ps).forEach((function(e){t.headers.set(e,ps[e])})),t.headers.set("accept","application/graphql"),t.headers.set("x-restli-protocol-version","2.0.0"),e.abrupt("return",n(t))
case 4:case"end":return e.stop()}}),e)})))
return function(t,n){return e.apply(this,arguments)}}(),async function(e,t){let n=null
return ls&&"undefined"!=typeof document?(n=await async function(e){const t=document.getElementsByTagName("img")
return new Promise((n=>{for(let r=0;r<t.length;r++){const i=t[r]
if(null!=i&&i.className.startsWith("datalet-bpr-guid")){const t=i.className,r=document.getElementById(t),o=(null==r?void 0:r.textContent)||"",a=JSON.parse(o),s=document.getElementById(a.body),c=null==s?void 0:s.textContent
if(e.url.endsWith(null==a?void 0:a.request)){const e=null==a?void 0:a.request,t=(null==c?void 0:c.trimEnd().trimStart())||""
n({urlLink:e,headers:a.headers,body:t})}}}n(null)}))}(e),n?function(e){const{urlLink:t,headers:n,body:r}=e
return new Response(JSON.stringify({body:r,url:t}),{headers:n,status:200})}(n):t(e)):t(e)}]),vs=function(e){var t,n=hs(),r=function(e,t){var n={url:t,request:{}},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return function(e){const{path:t,queryString:n}=Uo(e)
if(t.length>Ko)throw new Error(`Per AFD limitations, this request url ${e} will not work. Please contact ask_traffic@.`)
return e.length>Ko||n.length>4e3}(e)?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=Object.assign({},t)
n.url=e,n.forceQueryTunnel=!0
const r=function(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=Uo(e.url||void 0)
if(n){const r={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(r[t]=e.headers[t]||"")
let i,o
if(r["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,i=["--"+t,"Content-Type: "+Ho,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=Ho,i=n
return r["Content-Type"]=o,{body:i,headers:r,method:Go,url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}(n)
if(t.method=r.method,t.headers=r.headers,t.body=r.body,t.data=r.body,null==r.url)throw new Error("Invalid: URL to be encoded cannot be 'null' or 'undefined' when performing query tunneling")
return{url:r.url,request:t}}(e,t):{url:e,request:t}}("/".concat(t),{method:"GET"})
if(t&&r.url)return n.url=r.url.substring(1),n.request=r.request,{url:n.url,request:n.request}
throw Ae.fromClientErrorMemo("INVALID_URL")}(0,e),i=r.url,o=r.request
return ds&&gs(ds),ms(i,{body:o.body,headers:null!==(t=o.headers)&&void 0!==t?t:{},method:o.method||"GET"}).then((function(e){return{response:e,requestId:n}}))},ys=function(e,t){var n=hs()
return ds&&gs(ds),fetch(e,{headers:o(o({},ps),{},{accept:"application/json"}),body:t,method:"POST"}).then((function(e){return{response:e,requestId:n}}))},bs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vo("restli",e.messengerResource,t,n),i=hs()
return fetch(r,{headers:o({"x-restli-protocol-version":"2.0.0"},ps),method:"DELETE"}).then((function(e){return{response:e,requestId:i}}))},Es={exports:{}},_s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(_s){var Ts=new Uint8Array(16)
Es.exports=function(){return _s(Ts),Ts}}else{var Ss=new Array(16)
Es.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),Ss[t]=e>>>((3&t)<<3)&255
return Ss}}for(var xs=Es.exports,Cs=[],As=0;As<256;++As)Cs[As]=(As+256).toString(16).substr(1)
var ws,Is,Rs=function(e,t){var n=t||0,r=Cs
return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")},ks=xs,Os=Rs,Ms=0,Ns=0,Ps=xs,Ds=Rs,Us=function(e,t,n){var r=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var i=(e=e||{}).random||(e.rng||Ps)()
if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o]
return t||Ds(i)},Ls=Us
Ls.v1=function(e,t,n){var r=t&&n||0,i=t||[],o=(e=e||{}).node||ws,a=void 0!==e.clockseq?e.clockseq:Is
if(null==o||null==a){var s=ks()
null==o&&(o=ws=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Is=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),u=void 0!==e.nsecs?e.nsecs:Ns+1,l=c-Ms+(u-Ns)/1e4
if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||c>Ms)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
Ms=c,Ns=u,Is=a
var d=(1e4*(268435455&(c+=122192928e5))+u)%4294967296
i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=255&d
var f=c/4294967296*1e4&268435455
i[r++]=f>>>8&255,i[r++]=255&f,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a
for(var h=0;h<6;++h)i[r+h]=o[h]
return t||Os(i)},Ls.v4=Us
var js=Ls
const Fs="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions"
class Bs{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class qs extends Bs{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const r={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback("FeatureDegradationMetricEvent",r,t.pageInstance,e)}))}}class Hs{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class Gs{constructor(e){this.featureMetricIdentifier=e}}function Ks(e){return JSON.stringify(e,Object.keys(e).sort())}class Vs extends Hs{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=Ks(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const r=new zs(e)
t(r),this.featureCallCounts.set(n,r)}}}class zs extends Gs{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class Ws{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class Xs extends Ws{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,r)=>{var i
let o=n.featureCallCounts.get(r)
void 0!==o?o=o.mergeCallCounts(e):null===(i=this.metrics.get(t))||void 0===i||i.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=Ks(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const r=new Vs(e)
t(r),this.metrics.set(n,r)}}}var Qs
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(Qs||(Qs={}))
const Ys=new Set(Object.values(Qs))
class $s extends Error{constructor(e){super(e),Object.setPrototypeOf(this,$s.prototype)}}function Js(e){return 0===e.length||!e.trim()}function Zs(e){if("string"!=typeof e)throw new $s(`The product name must be a string. ${Fs}.`)
if(Js(e))throw new $s(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Fs}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new $s(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Fs}.`)
return e}function ec(e){if("string"!=typeof e)throw new $s(`Keys must be strings. ${Fs}.`)
if(Js(e))throw new $s(`Keys should not be blank. ${Fs}.`)
if(/[^a-z0-9-]/.test(e))throw new $s(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Fs}.`)
return e}class tc{constructor(e,t,n){var r,i,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=ec(e),this._defaultDegradationKey=ec(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new $s(`DegradationTrackingMetadata options should be an object. ${Fs}.`)
const a=n.productName
a&&(this._productName=Zs(a))
const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new $s(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Fs}.`)
var n
if(429===e||999===e)throw new $s(`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 ${t} options.`)
if(t===Qs.NonDegradedResponseCodes&&e>=400&&e<500)throw new $s(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${Qs.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${Qs.NonDegradedResponseCodes} option. ${Fs}.`)}
if(void 0!==e&&!Array.isArray(e))throw new $s(`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 ${Qs.NonDegradedResponseCodes} option. ${Fs}.`)
if(void 0!==t&&!Array.isArray(t))throw new $s(`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 ${Qs.AdditionalDegradedResponseCodes} option. ${Fs}.`)
null==e||e.forEach((e=>n(e,Qs.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,Qs.AdditionalDegradedResponseCodes)))
const r=new Set(t),i=new Set(e)
if([...r].some((e=>i.has(e))))throw new $s(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Fs}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach((e=>{if(!Ys.has(e))throw new $s(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${Fs}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(tc.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class nc{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new Xs,this._lastRequestMetricStore=new Xs,this._requestsMade=0,this._trackingId=js.v4()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(nc.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}class rc extends tc{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===rc.name}}class ic{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!nc.isRetryableDegradationTrackingMetadata(e)&&!tc.isDegradationTrackingMetadata(e)&&!rc.isFailureTrackingMetadata(e))throw new $s("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new $s("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=tc.isDegradationTrackingMetadata(e)?e:void 0
nc.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=this._nonDegradedResponseCodes.has(e)
return!t&&!n}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new $s(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${Fs}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new $s(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${Fs}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new $s(`A degradation key override was specified for ${t}, but that response code isn't considered degraded. Please add it to additionalDegradedResponseCodes if you want it to count against your availability.`)
this._degradationKeyByResponseCode.set(t,e.degradationKey)}))}))}}class oc{constructor(e){const t=new Map
null==e||e.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get("x-li-uuid")||null,this._pointOfPresenceId=t.get("x-li-pop")||null,this._msEdgeRef=t.get("x-msedge-ref")||null,this._fabric=t.get("x-li-fabric")||null,this._responseMetadata=t.get("x-li-pem-resp-meta")||null,this._downstreamAvailability=function(e){if(null==e)return null
const t=e.split(",")
for(const e of t){const t=e.split("=",2)
if(2===t.length&&"availability"===t[0]){const e=parseFloat(t[1])
if(e>=0&&e<=1)return e}}return null}(this._responseMetadata)||1}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}class ac{constructor(e,t,n,r){this._responseCode=e||null,this._parsedResponseHeaders=t?new oc(t):new oc,this._responseError=n||null,this._downstreamServiceErrorCode=r}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const sc="undefined"==typeof FastBoot
function cc(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class uc{constructor(e,t,n){this._featureMetricStore=new Xs,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new qs(this._featureMetricStore,t),sc&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),6e4),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,r,i){let o,a=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{a=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),!1===e.ok&&(o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,i,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,o){const a=t.status,s=t.getAllResponseHeaders(),c=new Map
s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift()
if(n){const e=t.join(": ")
c.set(n.toLowerCase(),e)}}))
const u=o?null:t,l=this._createFailureProcessingMetadata(r)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,l,i,c,u)}startRetryFlow(e){return uc.startRetryFlow(e)}static startRetryFlow(e){return new nc(e)}completeRetryFlow(e){if(!nc.isRetryableDegradationTrackingMetadata(e))throw new $s("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,i,o,a){const s=new ac(t,o,a),c=s.parsedHeaders,u=function(e){const t=e.responseError,n=e.parsedHeaders,r=e.responseCode
if(r){if(429===r||999===r)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&r&&r>=400&&r<600)return"BLOCKED_BY_CLIENT_PROXY"
if((i=r)>=400&&i<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(r)
if(function(e){return e>=500&&e<600}(r))return function(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(r,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var i
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}(s),l=function(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),r=n.split("/").filter((e=>e.length))
if(!t.length)return r.join("/")
const i=[]
for(let e=r.length-1;e>=0;e--){const n=r[e],o=t.indexOf(n)
o>=0?t.splice(o,1):i.push(n)}return i.reverse().join("/")}(e,n),d=new Set,f=new Set
if(r.forEach((e=>{d.add(e.productName),f.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(u)&&(e.isCountedAgainstAvailability(u,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:u,responseFabric:c.fabric},i,function(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}(u,c)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},i))})),u){this._reportErrorIfUnclassified(a,u,t,d,f)
const e=function(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const i=[],o=r.responseCode
return t.forEach((t=>{const a=t.getDegradationKey(o),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,o),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode}
o&&(c.responseCode=o)
const u=r.parsedHeaders
u.callTreeId&&(c.responseCallTreeId=u.callTreeId),(null==u?void 0:u.pointOfPresenceId)&&(c.pointOfPresenceId=u.pointOfPresenceId),(null==u?void 0:u.microsoftEdgeReference)&&(c.microsoftEdgeReference=u.microsoftEdgeReference),(null==u?void 0:u.fabric)&&(c.fabric=u.fabric),nc.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),i.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),i}(l,r,u,s)
e.forEach((e=>{this._fireEventCallback("FeatureDegradeEvent",e,i)}))}}_reportErrorIfUnclassified(e,t,n,r,i){var o
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["noise","pem-unclassified-error"]
let n
r.forEach((e=>t.push(`pem-product-${e}`))),i.forEach((e=>t.push(`pem-feature-${e}`))),n=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new $s(`Please specify a non-empty array of degradation tracking metadata. ${Fs}.`)
const t=new Set
return e.map((e=>{if(!tc.isDegradationTrackingMetadata(e)&&!nc.isRetryableDegradationTrackingMetadata(e))throw new $s(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${Fs}.`)
const n=Zs(e.productName||this._defaultProductName),r=`${n}!!${e.featureKey}`
if(t.has(r))throw new $s("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(r),new ic(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new $s(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${Fs}.`)
return e}}var lc=function(e,t,n){},dc=function(){},fc=function(e){return function(t,n,r,i){e(t,n)}},hc=function(e,t,n,r){return function(){return e.track?gt(e.track(t,"READ",n,r),vs)(t):vs(t)}},pc=function(e,t,n,r){return function(i){return e.track?gt(e.track(t,"WRITE",n,r),ys)(t,i):ys(t,i)}},gc=function(e){return function(t){return Se(t)?Promise.reject(t):Promise.reject(Ae.fromApiErrorMemo("NETWORK_ERROR",{cause:t,msg:e,originalStatusCodes:[]}))}},mc=function(e,t){return function(n){return Ce(n)?we("".concat(e," failed"),n,t.status):we("".concat(e," failed"),{status:500},t.status)}},vc=function(e){return function(t){var n=t.response,r=t.requestId
return n?n.ok?n.json().then((function(e){return function(e){return function(e){return null!==e&&"object"===s(e)&&!Array.isArray(e)}(e)&&"value"in e&&1===Object.keys(e).length}(e)?e.value:e})).then(function(e){return function(t){return o(o({},t),{},{requestId:e})}}(r)).catch((function(t){return Promise.reject(Ae.fromApiErrorMemo("RESPONSE_INVALID_JSON",ve(e,t)))})):n.json().catch((function(e){return Promise.reject(new Ae("api",n.status,n.statusText,e))})).then(mc(e,n)):Promise.reject(Ae.fromApiErrorMemo("NO_RESPONSE_RECEIVED",ve(e)))}},yc=function(e){return function(t){var n=t.response,r=t.requestId
return n?n.ok?Promise.resolve({requestId:r}):n.json().then(mc(e,n)):Promise.reject(Ae.fromApiErrorMemo("NO_RESPONSE_RECEIVED",ve(e)))}},bc=function(e,t,n,r){var i="getConversationsByIds",o=Ca(e,{conversationIds:t,count:n}),a=vc(i)
return hc(e,o,i,r)().catch(gc(i)).then(a)},Ec={category:"INBOX",count:20},_c=function(e,t,n,r){var i="findConversationsByRecipients",o=Sa(e,{mailboxUrn:t,recipients:n}),a=vc(i)
return hc(e,o,i,r)().then(a).catch(gc(i))},Tc=function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7?arguments[7]:void 0,c="findConversationsBySearchCriteria",u={categories:n,count:20,firstDegreeConnections:i,mailboxUrn:t}
void 0!==o&&(u.read=o),null!==a&&(u.nextCursor=a),r&&r.trim().length>0&&(u.keywords=r)
var l=xa(e,u),d=vc(c),f=function(e,t,n,r){return function(){return e.track?gt(e.track(t,"SEARCH",n,r),vs)(t):vs(t)}}(e,l,c,s)
return f().then(d).catch(gc(c))},Sc=function(e,t,n){var r="updateConversation",i=yc(r),o=function(e,t){var n="messengerConversations/".concat(encodeURIComponent(t))
return Vo("restli",e.messengerResource,n)}(e,t)
return ys(o,n).catch(gc(r)).then(i)},xc=function(e,t){var n="activateTypingStatus",r=JSON.stringify({conversationUrn:t}),i=yc(n),o=function(e){return Vo("restli",e.messengerResource,"messengerConversations",{action:"typing"})}(e)
return ys(o,r).catch(gc(n)).then(i)},Cc=function(e,t,n,r,i,a,s,c){var u,l,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"NOT_DEDUPE",f="sendMessageToConversation",h=null!==(u=null==c?void 0:c.renderContent)&&void 0!==u?u:void 0,p=null!==(l=null==c?void 0:c.messageSubject)&&void 0!==l?l:void 0,g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return e=>t.reduce(((e,t)=>M(t)(e)),e)}("renderContent","messageSubject")(o({},c)),m=o({message:{body:r,subject:p,renderContentUnions:h,conversationUrn:n,originToken:i},mailboxUrn:t,trackingId:a.trackingId,dedupeByClientGeneratedToken:"DEDUPE"===d},g)
s&&(m.messageDraftUrn=s)
var v=JSON.stringify(m),y=vc(f),b=function(e){return Vo("restli",e.messengerResource,"messengerMessages",{action:"createMessage"})}(e)
return pc(e,b,f,a)(v).catch(gc(f)).then(y)},Ac=function(e,t,n,r,i,a,s){var c,u,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"NOT_DEDUPE",d="sendFirstMessageToRecipients",f=null!==(c=null==s?void 0:s.renderContent)&&void 0!==c?c:void 0,h=null!==(u=null==s?void 0:s.messageSubject)&&void 0!==u?u:void 0,p=o({},s)
delete p.renderContent,delete p.messageSubject
var g=o({message:{body:n,subject:h,originToken:r,renderContentUnions:f},mailboxUrn:t,trackingId:a.trackingId,dedupeByClientGeneratedToken:"DEDUPE"===l,hostRecipientUrns:i},p),m=JSON.stringify(g),v=vc(d),y=function(e){return Vo("restli",e.messengerResource,"messengerMessages",{action:"createMessage"})}(e)
return pc(e,y,d,a)(m).catch(gc(d)).then(v)},wc=function(e,t,n){var r="reactWithEmojiAPI",i=JSON.stringify({messageUrn:t,emoji:n}),o=function(e){return Vo("restli",e.messengerResource,"messengerMessages",{action:"reactWithEmoji"})}(e),a=yc(r)
return ys(o,i).catch(gc(r)).then(a)},Ic=function(e,t,n){var r="unreactWithEmojiAPI",i=JSON.stringify({messageUrn:t,emoji:n}),o=function(e){return Vo("restli",e.messengerResource,"messengerMessages",{action:"unreactWithEmoji"})}(e),a=yc(r)
return ys(o,i).catch(gc(r)).then(a)},Rc={kind:"category",category:"INBOX"},kc=function(e){var t,n
return null===(t=Me[e])||void 0===t||null===(n=t.store)||void 0===n?void 0:n.getState()},Oc=function(e,t,n,r,i){var a=o(o({},e.status),{},{fullyLoaded:i,nextCursor:r})
switch(t.kind){case"category":return"INBOX"===t.category?o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return tt(e,n)&&e.categories.includes("INBOX")&&!e.categories.some((function(e){return["SPAM","ARCHIVE"].includes(e)}))}))}):o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return tt(e,n)&&e.categories.includes(t.category)}))})
case"search":return o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return tt(e,n)&&e.matchingSearches.includes(t.id)}))})}},Mc=function(e){var t
return null===(t=Me[e])||void 0===t?void 0:t.store},Nc=function(e,t){var n=Me[e]
return ke(n)?(q(t.message),n.observers.forEach((function(e){return e.error(t)})),n.observers.length):0},Pc=function(e,t,n,r,i){return function(e,t,n,r){var i="getConversationById",o=ba(e,{messengerConversationsId:t,count:20}),a=vc(i)
return hc(e,o,i,r)().then(a).catch(gc(i))}(e,n,0,i).then(function(e,t){return function(n){var r,i,o,a=null===(r=n.data)||void 0===r?void 0:r.messengerConversationsById,s=n.requestId
if(!a)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("conversationByIdResponseToState: messengerConversationsById response is missing"))
var c,u=a.backendUrn,l=a.categories,d=a.contentMetadata,f=a.conversationTypeText,h=a.conversationUrl,p=a.createdAt,g=a.creator,m=a.disabledFeatures,v=a.entityUrn,y=a.groupChat,b=a.incompleteRetriableData,E=a.lastActivityAt,_=a.lastReadAt,T=a.messages,S=a.notificationStatus,x=a.conversationParticipants,C=a.read,A=a.state,w=a.title,I=a.unreadCount,O=a.hostConversationActions,M=T.elements,P=Ja(x),D=ts(M),U=D.messages,L=D.participants,j=nt(L,N(P).filter(k))
return{conversationState:{additionalData:null,backendUrn:u,categories:l,clientId:t,conversationUrl:h,createdAt:new Date(p),creatorHostIdentityUrn:null!==(i=null==g?void 0:g.hostIdentityUrn)&&void 0!==i?i:void 0,draftMessages:[Ga(e)],entityUrn:v,incompleteRetriableData:b,lastActivityAt:new Date(E),lastReadAt:new Date(_),messages:new La(U),participants:(c=P,R(c).sort()),quickReplies:[],read:C,title:w,state:A,groupChat:null!=y&&y,conversationTypeText:f,contentMetadata:d,disabledFeatures:null!==(o=null==m?void 0:m.filter(k))&&void 0!==o?o:[],typingUrns:new Set,matchingSearches:[],metadata:{},notificationStatus:S,status:{loading:!1,sending:"Ready",fullyLoaded:!1},unreadCount:I,hostConversationActions:O},participants:j.sort(),requestId:s}}}(t,r))},Dc=function(e,t){return function(n){var r=t?Ae.fromClientErrorMemo(t,n):n
return Nc(e,r),Promise.reject(r)}},Uc=function(e,t){return function(n){var r=t?Ae.fromClientErrorMemo(t,n):n
return Nc(e,r),r}},Lc=function(e,t){return function(n){var r=Ae.fromUnknown(n,t)
Nc(e,r)}},jc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
return function(n){return Nc(e,n),Promise.resolve(t)}},Fc=function(){return new Map},Bc=function(e,t){return e.updateAny(je(t),function(e){return function(t){return o(o({},t),{},{additionalData:e[t.clientId]||t.additionalData})}}(t))},qc=function(e,t){if(!t||!R(t).length||!t.emoji||!t.reactors&&void 0===t.viewerReacted||t.reactors&&(!e||!e.length))return e
var n=t.emoji,r=_(e),i=r.findIndex((function(e){return e.emoji===n}))
if(i>-1){var o=r[i]
if(t.reactors)return o.reactors=t.reactors,r.splice(i,1,o),r
if(o.viewerReacted=t.viewerReacted,t.count&&0===t.count)return r.splice(i,1),r
if(t.count&&t.count>0)o.count=t.count
else if(t.viewerReacted)o.count=o.count+1
else{if(1===o.count)return r.splice(i,1),r
o.count=o.count-1}return t.firstReactedAt&&t.firstReactedAt<o.firstReactedAt&&(o.firstReactedAt=t.firstReactedAt),r.splice(i,1,o),r}return 0===t.count?r:[].concat(_(r),[{count:void 0!==t.count?t.count:1,emoji:n,firstReactedAt:t.firstReactedAt?t.firstReactedAt:Date.now(),viewerReacted:t.viewerReacted,reactors:[]}]).sort((function(e,t){return e.firstReactedAt-t.firstReactedAt}))},Hc=function(e,t){var n=E(it(t),2),r=n[0],i=n[1]
return e.filter((function(e){return Fe(e)?!r.includes(e.conversationUrn):!i.includes(e.messageUrn)}))},Gc=function(e,t,n){var r=[]
return t.length&&(r=function(e,t){var n=function(e,t){var n=E(it(t),2),r=n[0],i=n[1]
return e.map((function(e){var t=Be(e)&&i.includes(e.messageUrn),n=Fe(e)&&r.includes(e.conversationUrn)
return t||n?o(o({},e),{},{retryCount:e.retryCount+1}):e}))}(e,t),r=function(e,t){return Hc(t,e).map((function(e){return o(o({},e),{},{retryCount:0})}))}(e,t)
return[].concat(_(n),_(r))}(e,t)),n.length&&(r=Hc(r,n)),r},Kc=function(e,t){return t&&t>e?t:e},Vc=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r]
"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n)
try{!function(e){Object.keys(e).forEach((function(t){var n=e[t]
if(void 0===n(void 0,{type:ht.INIT}))throw new Error(ut(12))
if(void 0===n(void 0,{type:ht.PROBE_UNKNOWN_ACTION()}))throw new Error(ut(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o
for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],u=n[c],l=e[c],d=u(l,t)
if(void 0===d)throw t&&t.type,new Error(ut(14))
i[c]=d,r=r||d!==l}return(r=r||a.length!==Object.keys(e).length)?i:e}}({entityUrn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0
return"UPDATE_MAILBOXURN"===t.type?t.entityUrn:e},lastActivityAt:function(){return new Date},draftConversations:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fc(),i=arguments.length>1?arguments[1]:void 0
switch(i.type){case"REMOVE_DRAFT_CONVERSATION":case"CONVERT_DRAFT_CONVERSATION":return e=r,t=i.payload.conversationId,(n=new Map(e)).delete(t)?n:e
case"ADD_DRAFT_CONVERSATION":return F(r,i.payload.conversation.clientId,i.payload.conversation)
case"DRAFT_MESSAGE_READY_TO_SEND":var a=r.get(i.payload.clientId)
if(!a)return r
var s=a.draftMessages.length-1
return F(r,i.payload.clientId,o(o({},a),{},{messages:a.messages.add([Ka(a.draftMessages[s])]),draftMessages:[].concat(_(a.draftMessages),[Ga(a.draftMessages[s].senderUrn)])}))
case"ADD_NEW_MESSAGE_BY_ID":var c=r.get(i.payload.conversationId)
return c?F(r,i.payload.conversationId,o(o({},c),{},{messages:c.messages.add([i.payload.message])})):r
case"READY_MESSAGE_BACK_TO_DRAFT":var u=r.get(i.payload.conversationId)
if(!u)return r
var l=E(u.messages.removeByClientId(i.payload.messageClientId),2),d=l[0],f=l[1]
return F(r,i.payload.conversationId,o(o({},u),{},{messages:f,draftMessages:[].concat(_(u.draftMessages),d?[Va(d)]:[Ga(i.payload.mboxUrn)])}))
case"DELETE_MESSAGE":var h=r.get(i.payload.conversationId)
if(!h)return r
var p=E(h.messages.removeByClientId(i.payload.messageClientId),2)[1]
return F(r,i.payload.conversationId,o(o({},h),{},{messages:p}))
case"UPDATE_DRAFT_MESSAGE":var g=r.get(i.payload.conversationId),m=null==g?void 0:g.draftMessages
if(!m)return r
var v=m.length-1,y=m[v]
return F(r,i.payload.conversationId,o(o({},g),{},{draftMessages:[].concat(_(m.slice(0,v)),[o(o({},i.payload.messageUpdate),{},{clientId:y.clientId})])}))
case"UPDATE_NEW_MESSAGE":if(!Y(i.payload.conversationIdentifier))return r
var b=r.get(i.payload.conversationIdentifier)
return b?F(r,i.payload.conversationIdentifier,o(o({},b),{},{messages:b.messages.updateByClientId(i.payload.messageId,i.payload.message)})):r
case"UPDATE_DRAFT_CONVERSATION":var T=r.get(i.payload.conversationId)
return T?F(r,i.payload.conversationId,o(o({},T),{},{recipients:i.payload.recipientUrns})):r
case"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS":var S=r.get(i.payload.conversationId)
return S?F(r,i.payload.conversationId,o(o({},S),{},{sending:i.payload.sendingStatus})):r
default:return r}},participants:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"DECORATE_PARTICIPANTS":var n=t.payload.data,r=U(R(n).map((function(t){return e[t]?[t,o(o({},e[t]),{},{additionalData:n[t]})]:null})).filter(k))
return o(o({},e),r)
case"ADD_MAILBOX_PARTICIPANTS":case"ADD_CONVERSATION":case"ADD_OLDER_CONVERSATIONS":case"ADD_CONVERSATIONS":case"UPDATE_CONVERSATION_BY_URN":var i=U(t.payload.participants.map((function(e){return[e.hostIdentityUrn,e]}))),a=R(i).reduce((function(t,n){var r=e[n]
return k(r)&&"EMPTY"!==r.kind&&i[n]&&"EMPTY"===i[n].kind?t[n]=o({},r):t[n]=o(o(o({},r),i[n]),{},{clientId:k(r)?r.clientId:i[n].clientId}),t}),{})
return o(o({},e),a)
default:return e}},conversations:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot(),n=arguments.length>1?arguments[1]:void 0
switch(n.type){case"DECORATE_CONVERSATIONS":return st.fromConversationArray(t.map((function(e){return o(o({},e),{},{additionalData:n.payload.data[e.clientId]||e.additionalData})})))
case"DECORATE_ALL_MESSAGES":return st.fromConversationArray(t.map((function(e){return o(o({},e),{},{messages:Bc(e.messages,n.payload.data)})})))
case"DECORATE_MESSAGES":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:Bc(e.messages,n.payload.data)})}))
case"DECORATE_MESSAGE":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:e.messages.updateByUrn(n.payload.messageUrn,{additionalData:n.payload.data})})}))
case"DRAFT_MESSAGE_READY_TO_SEND":return t.updateItem(De(n.payload.clientId),(function(e){var t=e.draftMessages.length-1
return o(o({},e),{},{messages:e.messages.add([Ka(e.draftMessages[t])]),draftMessages:[].concat(_(e.draftMessages),[Ga(e.draftMessages[t].senderUrn)])})}))
case"UPDATE_DRAFT_MESSAGE":return t.updateItem(De(n.payload.conversationId),(function(e){var t=e.draftMessages.length-1,r=e.draftMessages[t]
return o(o({},e),{},{draftMessages:[].concat(_(e.draftMessages.slice(0,t)),[o(o({},n.payload.messageUpdate),{},{clientId:r.clientId})])})}))
case"UPDATE_NEW_MESSAGE":return t.updateItem(De(n.payload.conversationIdentifier),(function(e){return o(o({},e),{},{messages:e.messages.updateByClientId(n.payload.messageId,n.payload.message),quickReplies:Je(e,e.quickReplies,n.payload.message)})}))
case"UPDATE_MESSAGES":var r=n.payload.conversationUrn,i=n.payload.messageUpdateMap
if(!r){var a=R(i),s=te(t,a[0])
if(!s)return t
r=s.entityUrn}return t.updateItem(Ne(r),(function(e){if(Q(e)){var t=R(i)
return o(o({},e),{},{messages:e.messages.updateAny((n=t,function(e){return n.includes(e.entityUrn)}),(function(e){return e.entityUrn?o(o(o({},e),i[e.entityUrn]),{},{clientId:e.clientId}):e})),quickReplies:Je(e,e.quickReplies)})}return e
var n}))
case"UPDATE_REACTIONS_ON_MESSAGE":var c=n.payload,u=c.messageUrn,l=c.reaction,d=te(t,u)
if(!d)return t
var f=d.entityUrn
return t.updateItem(Ne(f),(function(e){if(Q(e)){var t=e.messages.getByIdentifier(u)
return o(o({},e),{},{messages:e.messages.updateAny(Ue(u),(function(e){return o(o({},e),{},{reactions:qc(t.reactions,l),clientId:e.clientId})}))})}return e}))
case"READY_MESSAGE_BACK_TO_DRAFT":return t.updateItem(De(n.payload.conversationId),(function(e){var t=E(e.messages.removeByClientId(n.payload.messageClientId),2),r=t[0],i=t[1]
return o(o({},e),{},{messages:i,draftMessages:[].concat(_(e.draftMessages),r?[Va(r)]:[Ga(n.payload.mboxUrn)])})}))
case"DELETE_MESSAGE":return t.updateItem(De(n.payload.conversationId),(function(e){var t=E(e.messages.removeByClientId(n.payload.messageClientId),2)[1]
return o(o({},e),{},{messages:t})}))
case"DELETE_MESSAGES":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){var t=n.payload.clearAll?new La(Array.from(e.messages).filter((function(e){return function(e){return"Draft"===e.status||"Pending"===e.status||"Sending"===e.status}(e)}))):e.messages.removeByUrns(n.payload.messageUrns)
return o(o({},e),{},{messages:t})}))
case"DELETE_DRAFT_MESSAGE":return t.updateItem(De(n.payload.conversationUrn),(function(e){var t=e.draftMessages.filter((function(e){return e.entityUrn!==n.payload.draftMessageUrn}))
return o(o({},e),{},{draftMessages:t})}))
case"REALTIME_TYPING_ON":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){return o(o({},e),{},{typingUrns:H(e.typingUrns,n.payload.typingUrn)})}))
case"REALTIME_TYPING_OFF":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){return o(o({},e),{},{typingUrns:G(e.typingUrns,n.payload.typingUrn)})}))
case"ADD_NEW_MESSAGE_BY_ID":var h=n.payload,p=h.message,g=h.conversationId,m=p.optionalSendData.conversationState
return t.updateItem(De(g),(function(e){return o(o({},e),{},{messages:e.messages.add([p]),typingUrns:G(e.typingUrns,p.senderUrn),quickReplies:Je(e,e.quickReplies,p),state:null!=m?m:void 0})}))
case"ADD_NEW_MESSAGE_BY_CONVO_URN":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){var t=n.payload.message
return o(o({},e),{},{messages:e.messages.add([t]),typingUrns:G(e.typingUrns,t.senderUrn),quickReplies:Je(e,e.quickReplies,t)})}))
case"CONVERSATION_LOADING":return t.updateItem(De(n.payload.conversationId),(function(e){return o(o({},e),{},{status:o(o({},e.status),{},{loading:n.payload.loading})})}))
case"ADD_OLDER_MESSAGES":return t.updateItem(De(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:e.messages.add(n.payload.messages),metadata:o(o({},e.metadata),{},{prevCursor:n.payload.prevCursor}),status:o(o({},e.status),{},{fullyLoaded:n.payload.completed,loading:!1})})}))
case"ADD_NEW_MESSAGES":return t.updateItem(De(n.payload.conversationUrn),(function(e){var t=e.messages.add(n.payload.messages)
return o(o({},e),{},{quickReplies:[],messages:t,metadata:o(o({},e.metadata),{},{syncToken:n.payload.syncToken,shouldClearCache:n.payload.shouldClearCache}),status:o(o({},e.status),{},{loading:!1})})}))
case"CONVERT_DRAFT_CONVERSATION":return t.find(Ne(n.payload.conversation.entityUrn),"FullMailboxState")?t.updateItem(Ne(n.payload.conversation.entityUrn),(function(e){var t=n.payload.conversation.participants.filter(C(e.participants)),r=[].concat(_(e.participants),_(t))
return o(o(o({},e),n.payload.conversation),{},{participants:r,messages:e.messages.add(_(n.payload.conversation.messages)),clientId:n.payload.conversation.clientId})})):t.addItem(o(o({},n.payload.conversation),{},{clientId:n.payload.conversationId}))
case"ADD_OLDER_CONVERSATIONS":return t.addItems(n.payload.conversations,n.payload.writeCategories)
case"ADD_CONVERSATIONS":return t.addItems(n.payload.conversations,"ADD_CATEGORIES"===n.payload.categoriesOption)
case"ADD_CONVERSATION":return t.addItem(n.payload.conversation)
case"UPDATE_CONVERSATION_BY_URN":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){return Xe(e,n.payload.conversationUpdate)}))
case"UPDATE_CONVERSATIONS_BY_URN":return t.updateAny(Pe(R(n.payload.convoStatusUpdateMap)),(function(e){var t=n.payload.convoStatusUpdateMap[e.entityUrn]
if(!We(t)&&t.seenReceiptsMap&&e.seenReceiptsMap){var r=et(e.seenReceiptsMap,t.seenReceiptsMap),i=o(o(o({},e),t),{},{seenReceiptsMap:r})
return Qe(e,i)}return Qe(e,t)}))
case"UPDATE_CONVERSATION_QUICK_REPLIES":return t.updateItem(Ne(n.payload.conversationUrn),(function(e){return o(o({},e),{},{quickReplies:n.payload.quickReplies})}))
case"UPDATE_CONVERSATION_BY_MESSAGE_URN":var v=te(t,n.payload.messageUrn)
return v?t.updateItem(De(v.entityUrn),(function(e){return n.payload.conversationUpdate.quickReplies?o(o({},e),{},{quickReplies:Je(e,n.payload.conversationUpdate.quickReplies)}):o(o({},e),n.payload.conversationUpdate)})):t
case"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES":return t.updateAny((e=n.payload.categories,function(t){return void 0!==e.find((function(e){return t.categories.includes(e)}))}),(function(e){return Qe(e,n.payload.conversationUpdate)}))
case"DELETE_CONVERSATION":return t.deleteItems(Ne(n.payload.conversationUrn))
case"DELETE_CONVERSATIONS":return n.payload.clearAll?ot():t.deleteItems(Pe(n.payload.conversationUrns))
default:return t}},additionalData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0
return"DECORATE_MAILBOX"===t.type?t.payload:e},connected:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{api:!1,realtime:!1},t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"CONNECT":return o(o({},e),{},{api:!0})
case"REALTIME_CONNECT":return o(o({},e),{},{realtime:t.payload})
default:return e}},status:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o({},Ie),r=arguments.length>1?arguments[1]:void 0
switch(r.type){case"MAILBOX_LOADING":return o(o({},n),{},{loading:r.payload.loading,lastRequestId:Kc(n.lastRequestId,r.requestId)})
case"ADD_OLDER_CONVERSATIONS":return o(o({},n),{},{nextCursor:null!==(e=r.payload.nextCursor)&&void 0!==e?e:n.nextCursor,fullyLoaded:r.payload.fullyLoaded,loading:!1,lastRequestId:Kc(n.lastRequestId,r.requestId)})
case"ADD_CONVERSATIONS":return o(o({},n),{},{loading:!1,syncToken:null!==(t=r.payload.syncToken)&&void 0!==t?t:n.syncToken,lastRequestId:Kc(n.lastRequestId,r.requestId)})
case"UPDATE_REQUEST_ID":return o(o({},n),{},{lastRequestId:Kc(n.lastRequestId,r.requestId)})
default:return r.requestId?o(o({},n),{},{lastRequestId:Kc(n.lastRequestId,r.requestId)}):n}},unreadCounts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{requestId:0},t=arguments.length>1?arguments[1]:void 0
return"UPDATE_MAILBOX_UNREAD_COUNT"===t.type?o(o({},e),t.payload):e},incompleteRetriableEntities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"ADD_CONVERSATION":var n=t.payload.conversation
return n.incompleteRetriableData?Gc(e,[{conversationUrn:n.entityUrn}],[]):Gc(e,[],[{conversationUrn:n.entityUrn}])
case"ADD_CONVERSATIONS":case"ADD_OLDER_CONVERSATIONS":var r=t.payload.conversations,i=r.filter((function(e){return e.incompleteRetriableData})).map((function(e){return{conversationUrn:e.entityUrn}})),o=r.filter((function(e){return!e.incompleteRetriableData})).map((function(e){return{conversationUrn:e.entityUrn}}))
return Gc(e,i,o)
case"UPDATE_CONVERSATION_BY_URN":var a=t.payload,s=a.conversationUrn
return a.conversationUpdate.incompleteRetriableData?Gc(e,[{conversationUrn:s}],[]):Gc(e,[],[{conversationUrn:s}])
case"UPDATE_CONVERSATIONS_BY_URN":var c=t.payload.convoStatusUpdateMap,u=[],l=[]
for(var d in c){var f=c[d]
!We(f)&&f.incompleteRetriableData?u.push({conversationUrn:d}):We(f)||O(f.incompleteRetriableData)||l.push({conversationUrn:d})}return Gc(e,u,l)
case"UPDATE_CONVERSATION_BY_MESSAGE_URN":case"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES":var h=t.payload.conversationUpdate
return h.entityUrn?h.incompleteRetriableData?Gc(e,[{conversationUrn:h.entityUrn}],[]):Gc(e,[],[{conversationUrn:h.entityUrn}]):e
case"ADD_NEW_MESSAGE_BY_ID":case"ADD_NEW_MESSAGE_BY_CONVO_URN":case"UPDATE_NEW_MESSAGE":var p=t.payload.message
return p.entityUrn?p.incompleteRetriableData?Gc(e,[{messageUrn:p.entityUrn}],[]):Gc(e,[],[{messageUrn:p.entityUrn}]):e
case"ADD_NEW_MESSAGES":case"ADD_OLDER_MESSAGES":var g=t.payload.messages.filter((function(e){return e.entityUrn})),m=g.filter((function(e){return e.incompleteRetriableData})).map((function(e){return{messageUrn:e.entityUrn}})),v=g.filter((function(e){return!e.incompleteRetriableData})).map((function(e){return{messageUrn:e.entityUrn}}))
return Gc(e,m,v)
case"UPDATE_MESSAGES":var y=t.payload.messageUpdateMap,b=[],E=[]
for(var _ in y){var T=y[_]
T.incompleteRetriableData?b.push({messageUrn:_}):O(T.incompleteRetriableData)||E.push({messageUrn:_})}return Gc(e,b,E)
default:return e}}}),zc=function(e,t){return{type:"ADD_MAILBOX_PARTICIPANTS",payload:{participants:e},requestId:t}},Wc=function(e,t){return{type:"REALTIME_TYPING_ON",payload:{conversationUrn:e,typingUrn:t}}},Xc=function(e,t){return{type:"REALTIME_TYPING_OFF",payload:{conversationUrn:e,typingUrn:t}}},Qc=function(e){return{type:"REALTIME_CONNECT",payload:e}},Yc=function(e,t){return{type:"UPDATE_CONVERSATIONS_BY_URN",payload:{convoStatusUpdateMap:e},requestId:t}},$c=function(e,t){return{type:"DELETE_CONVERSATION",payload:{conversationUrn:e},requestId:t}},Jc=function(e){return{type:"DELETE_CONVERSATIONS",payload:{conversationUrns:e,clearAll:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},requestId:arguments.length>2?arguments[2]:void 0}},Zc=function(e,t,n){return{type:"ADD_CONVERSATION",payload:{conversation:e,participants:t},requestId:n}},eu=function(e,t,n){return{type:"UPDATE_CONVERSATION_BY_URN",payload:{conversationUpdate:e,conversationUrn:t,participants:null!=n?n:[]}}},tu=function(e,t){return{type:"ADD_CONVERSATIONS",payload:{syncToken:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,conversations:e,participants:t,categoriesOption:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ADD_CATEGORIES"},requestId:arguments.length>4?arguments[4]:void 0}},nu=function(e,t,n){return{type:"ADD_NEW_MESSAGE_BY_ID",payload:{message:e,conversationId:t},requestId:n}},ru=function(e,t){return{type:"CONVERSATION_LOADING",payload:{conversationId:e,loading:t}}},iu=function(e){return{type:"MAILBOX_LOADING",payload:{loading:e}}},ou=function(e,t,n,r,i){return{type:"ADD_OLDER_MESSAGES",payload:{messages:e,conversationUrn:t,completed:n,prevCursor:r},requestId:i}},au=function(e,t,n,r,i){return{type:"ADD_NEW_MESSAGES",payload:{conversationUrn:t,messages:e,syncToken:n,shouldClearCache:r},requestId:i}},su=function(e,t,n,r){return{type:"UPDATE_NEW_MESSAGE",payload:{message:e,messageId:t,conversationIdentifier:n},requestId:r}},cu=function(e,t,n){return{type:"UPDATE_MESSAGES",payload:{messageUpdateMap:e,conversationUrn:t},requestId:n}},uu=function(e,t,n){return{type:"UPDATE_REACTIONS_ON_MESSAGE",payload:{messageUrn:e,reaction:t},requestId:n}},lu=function(e,t,n){return{type:"UPDATE_CONVERSATION_BY_MESSAGE_URN",payload:{messageUrn:e,conversationUpdate:t},requestId:n}},du=function(e,t){return{type:"UPDATE_DRAFT_MESSAGE",payload:{conversationId:e,messageUpdate:t}}},fu=function(e,t){return{type:"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS",payload:{conversationId:e,sendingStatus:t}}},hu=function(e,t,n){return{type:"DELETE_MESSAGE",payload:{conversationId:e,messageClientId:t},requestId:n}},pu=function(e,t){return{type:"DELETE_MESSAGES",payload:{conversationUrn:e,messageUrns:t,clearAll:arguments.length>2&&void 0!==arguments[2]&&arguments[2]},requestId:arguments.length>3?arguments[3]:void 0}},gu=function(e,t,n){var r=e.payload.errors
if(!r)return!1
var i=r.map((function(e){return Ae.buildGraphQLPayloadError(e,t)}))
return jc(n)(Ae.fromRealtimeErrorMemo("EVENT_RESPONSE_ERROR",i)),!0},mu=function(e,t,n,r){var i,o,a=null!==(i=null===(o=e.payload)||void 0===o?void 0:o.data)&&void 0!==i?i:void 0
if(O(a)||O(a[n])||O(a[n].result)){var s=_e.PAYLOAD_DATA_DOES_NOT_EXIST
return jc(r)(new Ae("realtime",s.code,"".concat(t,": ").concat(s.message))),!0}return!1},vu=new Map,yu=function(e){return vu.get(e)},bu={quickReplyMap:{},seenReceiptsMap:{}},Eu=function(e,t,n){if(!mu(t,"SeenReceipt","doDecorateSeenReceiptMessengerRealtimeDecoration",e)){var r,i=t.payload.data.doDecorateSeenReceiptMessengerRealtimeDecoration.result,o=i.message.entityUrn
i.seenByParticipant.hostIdentityUrn&&(r=h({},o,[{participantUrn:i.seenByParticipant.hostIdentityUrn,seenAt:i.seenAt}]),bu.seenReceiptsMap=et(bu.seenReceiptsMap,r),n.dispatch(lu(o,{seenReceiptsMap:bu.seenReceiptsMap})))}},_u=function(e,t,n){if(!mu(t,"QuickReplies","doDecorateQuickRepliesMessengerRealtimeDecoration",e)){var r=t.payload.data.doDecorateQuickRepliesMessengerRealtimeDecoration.result
if(0===r.length||O(r[0])||O(r[0].message)){var i=_e.PAYLOAD_DATA_IS_NOT_COMPLETE
jc(e)(new Ae("realtime",i.code,"QuickReply: ".concat(i.message)))}else{var o,a=r[0].message,s=r.filter(k)
o=h({},a.entityUrn,s),bu.quickReplyMap=o,n.dispatch(lu(a.entityUrn,{quickReplies:s}))}}},Tu=function(e,t,n,r){var i
if(gu(t,"NewMessage",e))n.triggerChainSync({pageInstance:null===(i=r.getPageInstance)||void 0===i?void 0:i.call(r)})
else if(!mu(t,"NewMessage","doDecorateMessageMessengerRealtimeDecoration",e)){var a=t.payload.data.doDecorateMessageMessengerRealtimeDecoration.result
if(k((s=a).conversation)&&k(s.body)&&k(s.sender)){var s,c,u,l,d=a.backendConversationUrn,f=a.backendUrn,p=a.body,g=a.conversation,m=a.deliveredAt,v=a.entityUrn,y=a.inlineWarning,b=a.messageBodyRenderFormat,E=a.originToken,T=a.reactionSummaries,S=a.renderContent,x=a.sender,C=a.actor,A=a.subject,w=null!==(l=(null!==(c=null===(u=a.previousMessages)||void 0===u?void 0:u.elements)&&void 0!==c?c:[]).filter(k)[0])&&void 0!==l?l:null,I=g.entityUrn,R=Xa(x),O=C?Xa(C):void 0,M=is(Fa(S)),N=M.data,P=M.participants
if(I&&p&&function(e,t){return 0==e.text.length&&(null===t||0===t.length)}(p,S))setTimeout((function(){var e
n.triggerMessagesSync(I,{pageInstance:null===(e=r.getPageInstance)||void 0===e?void 0:e.call(r)})}),2e3)
else{var D,U,L=Ba({actorUrn:null==O?void 0:O.hostIdentityUrn,senderUrn:R.hostIdentityUrn,content:p,optionalSendData:N,entityUrn:v,inlineWarning:null!=y?y:void 0,messageBodyRenderFormat:b,reactions:qa(T),status:"Delivered",clientId:E,deliveredAt:new Date(m),backendConversationUrn:d,backendUrn:f,subject:null!=A?A:""}),j=function(e,t){var n=bu.quickReplyMap[t]?bu.quickReplyMap[t]:[],r=bu.seenReceiptsMap[t]?h({},t,bu.seenReceiptsMap[t]):{},i=o(o({},e),{},{quickReplies:n,seenReceiptsMap:r})
return delete bu.quickReplyMap[t],delete bu.seenReceiptsMap[t],i}(g,v),F=Ha(j),B=O?[].concat(_(P),[O]):P,q=nt(B,za(g.conversationParticipants))
n.experimentalValues&&!0!==n.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?(n.dispatch(zc(q)),n.handleRealtimeNewMessage(I,F,L,w,void 0,{pageInstance:null===(D=r.getPageInstance)||void 0===D?void 0:D.call(r)}).catch((function(t){jc(e)(Ae.fromRealtimeErrorMemo("EVENT_ERROR",t))}))):n.handleRealtimeNewMessage(I,F,L,w,q,{pageInstance:null===(U=r.getPageInstance)||void 0===U?void 0:U.call(r)}).catch((function(t){jc(e)(Ae.fromRealtimeErrorMemo("EVENT_ERROR",t))}))}}else{var H=_e.PAYLOAD_DATA_IS_NOT_COMPLETE
jc(e)(new Ae("realtime",H.code,"NewMessage: ".concat(H.message)))}}},Su=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.280dd3e05c2756f34bd490c227d64518",typeName:"com.linkedin.029c6f75329f8ff4005dd9033dd59dba",name:"realtime-conversation-delete"}),xu=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.9acf6860c422f61b44c3d6ca9a11a652",typeName:"com.linkedin.103d92df0d822bed3dffad51d56bc810",name:"realtime-conversation-update"}),Cu=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.f9914da82c4cc74a60715db8c63785a9",typeName:"com.linkedin.a9b490147a887015674ccce3d34af950",name:"realtime-message-update"}),Au=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.4e5b40b7a6723463f6deec71ca09be21",typeName:"com.linkedin.53b0fe670d5c42700787090abfc1f179",name:"realtime-quick-reply"}),wu=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.18c72c0ef88106e86b0df4dadc13f200",typeName:"com.linkedin.531ab76429266860c4dbca00334927e3",name:"realtime-reaction-summary"}),Iu=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.7606db239e7cda3ea88b4ace2d4733ab",typeName:"com.linkedin.77af5b7af42a0712271f9ee525f0d9f0",name:"realtime-seen-receipt"}),Ru=ko(!0,{kind:"query",id:"messengerRealtimeDecoration.15007ba729faa527d4b1a77c2d101a78",typeName:"com.linkedin.9399ea2910cb2327ff9f56d243375157",name:"realtime-typing-indicator"}),ku={conversationsTopic:No(xu),conversationDeletesTopic:No(Su),messageReactionSummariesTopic:No(wu),messageSeenReceiptsTopic:No(Iu),messagesTopic:No(Cu),replySuggestionTopicV2:No(Au),typingIndicatorsTopic:No(Ru)},Ou=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return{topicToGraphQLQueryParams:{conversationsBroadcastTopic:{queryId:yu("realtime-conversation-update")||"".concat(e).concat(ku.conversationsTopic),variables:{},extensions:{}},conversationsTopic:{queryId:yu("realtime-conversation-update")||"".concat(e).concat(ku.conversationsTopic),variables:{},extensions:{}},conversationDeletesBroadcastTopic:{queryId:yu("realtime-conversation-delete")||"".concat(e).concat(ku.conversationDeletesTopic),variables:{},extensions:{}},conversationDeletesTopic:{queryId:yu("realtime-conversation-delete")||"".concat(e).concat(ku.conversationDeletesTopic),variables:{},extensions:{}},messageReactionSummariesBroadcastTopic:{queryId:yu("realtime-reaction-summary")||"".concat(e).concat(ku.messageReactionSummariesTopic),variables:{},extensions:{}},messageReactionSummariesTopic:{queryId:yu("realtime-reaction-summary")||"".concat(e).concat(ku.messageReactionSummariesTopic),variables:{},extensions:{}},messageSeenReceiptsBroadcastTopic:{queryId:yu("realtime-seen-receipt")||"".concat(e).concat(ku.messageSeenReceiptsTopic),variables:{},extensions:{}},messageSeenReceiptsTopic:{queryId:yu("realtime-seen-receipt")||"".concat(e).concat(ku.messageSeenReceiptsTopic),variables:{},extensions:{}},messagesBroadcastTopic:{queryId:yu("realtime-message-update")||"".concat(e).concat(ku.messagesTopic),variables:{},extensions:{}},messagesTopic:{queryId:yu("realtime-message-update")||"".concat(e).concat(ku.messagesTopic),variables:{},extensions:{}},replySuggestionBroadcastTopic:{queryId:yu("realtime-quick-reply")||"".concat(e).concat(ku.replySuggestionTopicV2),variables:{},extensions:{}},replySuggestionTopicV2:{queryId:yu("realtime-quick-reply")||"".concat(e).concat(ku.replySuggestionTopicV2),variables:{},extensions:{}},typingIndicatorsBroadcastTopic:{queryId:yu("realtime-typing-indicator")||"".concat(e).concat(ku.typingIndicatorsTopic),variables:{},extensions:{}},typingIndicatorsTopic:{queryId:yu("realtime-typing-indicator")||"".concat(e).concat(ku.typingIndicatorsTopic),variables:{},extensions:{}}}}},Mu=function(e){var t={},n={}
return e&&(e.csrfToken&&(t={"csrf-token":e.csrfToken}),e.xLiLang&&(n={"x-li-lang":e.xLiLang})),o(o({"x-RestLi-Protocol-Version":"2.0.0","x-li-query-accept":"application/graphql","x-li-track":e.xLiTrack||JSON.stringify({mpName:e&&e.mpName?e.mpName:ja.mpName}),"x-li-query-map":JSON.stringify(Ou())},n),t)},Nu=function(e,t,n,r,i,o,a){try{var s,c,u,l,d,f,h,p=E(i.getRealtimeTopics(),2)[1],g=null!==(s=null==p?void 0:p.get("TypingIndicator"))&&void 0!==s?s:"no-topic",m=null!==(c=null==p?void 0:p.get("NewMessage"))&&void 0!==c?c:"no-topic",v=null!==(u=null==p?void 0:p.get("ConversationUpdate"))&&void 0!==u?u:"no-topic",y=null!==(l=null==p?void 0:p.get("ConversationDelete"))&&void 0!==l?l:"no-topic",b=null!==(d=null==p?void 0:p.get("SeenReceipt"))&&void 0!==d?d:"no-topic",_=null!==(f=null==p?void 0:p.get("QuickReplies"))&&void 0!==f?f:"no-topic",T=null!==(h=null==p?void 0:p.get("ReactionSummary"))&&void 0!==h?h:"no-topic"
switch(Array.from(p.values()).includes(t.topic)&&a&&function(e,t,n,r,i){if(i&&i.trackingFireEvent){var o={publisherTrackingId:e.publisherTrackingId||null,realtimeEventId:e.id,realtimeTrackingId:e.trackingId,topicUrn:e.topic,consumedTime:t,contextUrn:n,actorUrn:r}
i.trackingFireEvent("RealtimeEventConsumedEvent",o)}}(t,o,e,i.actorUrn,a),t.topic){case g:!function(e,t,n,r,i){if(!mu(t,"TypingIndicator","doDecorateTypingIndicatorMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateTypingIndicatorMessengerRealtimeDecoration.result,a=o.conversation.entityUrn,s=o.typingParticipant.hostIdentityUrn
n>=0&&function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:5
r(i(e,t))
var s="".concat(e,",").concat(t)
n.has(s)&&clearTimeout(n.get(s))
var c=setTimeout((function(){r(o(e,t))}),1e3*a)
n.set(s,c)}(a,s,r,i.dispatch,Wc,Xc,n)}}(e,t,r,n,i)
break
case m:Tu(e,t,i,a)
break
case v:!function(e,t,n,r){var i
if(gu(t,"ConversationUpdate",e))n.triggerChainSync({pageInstance:null===(i=r.getPageInstance)||void 0===i?void 0:i.call(r)})
else if(!mu(t,"ConversationUpdate","doDecorateConversationMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateConversationMessengerRealtimeDecoration.result,a=za(o.conversationParticipants),s=o.entityUrn,c=Ha(o)
n.experimentalValues&&!0===n.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?n.dispatch(eu(rt(c),s,a)):(n.dispatch(zc(a)),n.dispatch(eu(rt(c),s)))}}(e,t,i,a)
break
case y:!function(e,t,n,r){var i
if(gu(t,"ConversationDelete",e))n.triggerChainSync({pageInstance:null===(i=r.getPageInstance)||void 0===i?void 0:i.call(r)})
else if(!mu(t,"ConversationDelete","doDecorateConversationDeleteMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateConversationDeleteMessengerRealtimeDecoration.result.entityUrn
n.dispatch($c(o))}}(e,t,i,a)
break
case b:Eu(e,t,i)
break
case _:_u(e,t,i)
break
case T:!function(e,t,n){if(!mu(t,"ReactionSummary","doDecorateRealtimeReactionSummaryMessengerRealtimeDecoration",e)){var r=t.payload.data.doDecorateRealtimeReactionSummaryMessengerRealtimeDecoration.result
if(r.reactionSummary){var i=r.message.entityUrn
n.dispatch(uu(i,r.reactionSummary))}else{var o=_e.PAYLOAD_DATA_IS_NOT_COMPLETE
jc(e)(new Ae("realtime",o.code,"ReactionSummaryUpdate: ".concat(o.message)))}}}(e,t,i)
break
default:q("Unhandled realtime event: ",t)}}catch(t){var S=_e.EVENT_ERROR
jc(e)(new Ae("realtime",S.code,S.message,t))}},Pu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2
l(this,e),h(this,"_maxRetryCount",void 0),h(this,"_retryTimeoutInSecond",void 0),h(this,"_backoffMultiplier",void 0),h(this,"_attemptCount",0),h(this,"_startTime",Date.now()),h(this,"_currentTask",null),h(this,"_messageId",void 0),h(this,"_tryFn",void 0),h(this,"_cancelCondition",void 0),h(this,"_retryCondition",void 0),h(this,"_internalResolve",void 0),h(this,"_internalReject",void 0),this._messageId=t,this._backoffMultiplier=n,this.reset()}return f(e,[{key:"retryCount",get:function(){return this._attemptCount-1}},{key:"_backoff",get:function(){return Math.min(Math.pow(2,this._attemptCount)*this._backoffMultiplier,640)}},{key:"try",value:function(e){return this._tryFn=e,this}},{key:"times",value:function(e){return this._maxRetryCount=e,this}},{key:"timeoutAfter",value:function(e){return this._retryTimeoutInSecond=e,this}},{key:"cancelIf",value:function(e){return this._cancelCondition=e,this}},{key:"retryIf",value:function(e){return this._retryCondition=e,this}},{key:"start",value:function(){var e=this
this._startTime=Date.now()
var t=new Promise((function(t,n){e._internalResolve=t,e._internalReject=n}))
return this._cycle(),t}},{key:"cancel",value:function(){this._currentTask&&(this._currentTask.cancel(),this._currentTask=null),this._stopRetrying(Ae.fromClientErrorMemo("RETRY_CANCELLED"))}},{key:"reset",value:function(){this._attemptCount=0,this._startTime=Date.now()}},{key:"_cycle",value:function(){var e=this
this._currentTask=null,this._attemptCount++,void 0!==this._tryFn?this._tryFn(this._attemptCount).then((function(t){var n
return null===(n=e._internalResolve)||void 0===n||n.call(e,t),t})).catch((function(t){var n
if(null!==(n=e._cancelCondition)&&void 0!==n&&n.call(e,t)||e._exceedMaxRetryCount()||e._exceedRetryTimeout())e._stopRetrying(t)
else if(e._retryCondition&&e._messageId&&!e._retryCondition(e._messageId))e._stopRetrying(t)
else{var i=new r.Task(e._cycle.bind(e))
i.start(1e3*e._backoff),e._currentTask=i}})):this._stopRetrying(new Error("No function supplied to retry"))}},{key:"_stopRetrying",value:function(e){var t
null===(t=this._internalReject)||void 0===t||t.call(this,e)}},{key:"_exceedMaxRetryCount",value:function(){return void 0!==this._maxRetryCount&&this._attemptCount>this._maxRetryCount}},{key:"_exceedRetryTimeout",value:function(){return void 0!==this._retryTimeoutInSecond&&(Date.now()-this._startTime)/1e3+this._backoff>this._retryTimeoutInSecond}}]),e}(),Du=function(e,t,n,r,i,o,a){if(t&&a){var s,c=e?e.messages:null,u=c&&c.length>1?c.at(c.length-2):null,l={funnelBody:{clientSend:{isFirstMessage:!e||1===e.messages.length,isSelfReply:!!u&&u.senderUrn===i,messagingThreadUrn:null!=r?r:null,messagingMessageUrn:null!=o?o:null,sourceType:null==t?void 0:t.sourceType,previousMessageCreatedTime:u?u.deliveredAt.getTime():null,previousMessagingMessageUrn:u?u.backendUrn:null,draftMessageStorageType:null,isSystemClipboardUsed:null==t?void 0:t.isSystemClipboardUsed,aiMessageType:null!==(s=null==t?void 0:t.aiMessageType)&&void 0!==s?s:null,sentTime:n}},trackingId:t.trackingId,funnelStep:"CLIENT_SEND"}
t.messageComposeFlowTrackingId&&(l.messageComposeFlowTrackingId=t.messageComposeFlowTrackingId),a&&a("MessageSendFunnelTrackingEvent",l)}},Uu=function(e){var t=e.optionalSendData.renderContent[0]
return null!=t&&t.file?"ATTACHMENT":null!=t&&t.externalMedia?"GIF":null!=t&&t.forwardedMessageContent?"FORWARD":null!=t&&t.vectorImage?"IMAGE":"TEXT_ONLY"},Lu=function(e,t){var n="ONE_ON_ONE"
return t&&(n="GROUP_CHAT"),e.optionalSendData.renderContent.length&&e.optionalSendData.renderContent.forEach((function(e){e.hostUrnData&&e.hostUrnData.type.includes("INMAIL")&&(n="INMAIL")})),n},ju=function(e){var t=e.code,n=e.message
return D()&&window.navigator&&!window.navigator.onLine?"NO_NETWORK":n&&(n.indexOf("NetworkError when attempting to fetch resource")>=0||n.indexOf("Failed to fetch")>=0)?"NETWORK_ERROR":t&&/^[4-5][0-9][0-9]$/.test(t.toString())?"SERVER_ERROR":t&&999===t?"OTHER_NON_FATAL_ERROR":null},Fu=function(e,t,n,r,i,o,a){a&&a("MessagesSyncConsumedEvent",{syncedMessagingMessageUrns:e.filter((function(e){return!!e})),messagingThreadUrn:t,isBootstrap:!!r,mailboxUrn:null!=i?i:null,actorUrn:null!=o?o:null,consumedTime:null!=n?n:null})},Bu=function(e,t,n,r,i){return!!i&&(i("ConversationsSyncConsumedEvent",{syncedMessagingThreadUrns:e,isBootstrap:t,mailboxUrn:null!=n?n:null,actorUrn:null!=r?r:null}),!0)},qu=function(e,t,n,r,i,o,a){var s={trackingId:lr(),syncType:t,messagingThreadUrns:o?o.forEach((function(e){return e.backendUrn})):[],failureReason:ju(e),failureDetail:e.message,responseCode:e.code,retryCount:n,mailboxUrn:r,actorUrn:i,failureTime:Date.now()}
a&&a("MessagingSyncClientFailureEvent",s)},Hu=function(e,t,n){n&&n("MessagingClientSendEvent",{sentTime:t,messageUrn:e,publisherTrackingId:""})},Gu=function(e){return ur(Array.from(fr(e)))},Ku=function(e){return e.headers()["Csrf-Token"]||e.headers()["csrf-token"]},Vu=function(e,t,n,r,i,a,s,c){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"FIRST",l=n.messages.getByIdentifier(r)
if(!l)return Promise.reject(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var d=Gu(r),f=o(o({},c),{},{trackingId:d}),h=-1
return i(su({status:"Sending"},r,n.entityUrn)),new Pu(r).try((function(i){return h=dl(),Cc(e,t,n.entityUrn,l.content,r,f,s,l.optionalSendData,1!==i||"RETRY"===u?"DEDUPE":"NOT_DEDUPE").then(cl(a,i,u)).catch(sl(a,i,u,n,l,f))})).timeoutAfter(a.options.sendRetryTimeoutInSecond).retryIf($e(a,n.clientId)).cancelIf(il).start().then((function(e){return function(e,t,n){if(t.originToken&&t.originToken!==n)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("messagePostToState: MessagePostResponse originToken does not match with the clientId",new Error("Invalid originToken ".concat(t.originToken," - expected ").concat(n))))
return{clientId:n,content:(r=t,s=(null!==(i=r.body.attributes)&&void 0!==i?i:[]).filter(k),c=s.find((function(e){return e.attributeKindUnion})),o(o({},r.body),{},c?{attributes:s.map((function(e){return{start:e.start,length:e.length,attributeKind:e.attributeKindUnion}}))}:{attributes:null!==(a=r.body.attributes)&&void 0!==a?a:[]})),entityUrn:t.entityUrn,backendConversationUrn:t.backendConversationUrn,backendUrn:t.backendUrn,lastActivityAt:new Date(t.deliveredAt),deliveredAt:new Date(t.deliveredAt),senderUrn:e,status:"Sent",subject:t.subject}
var r,i,a,s,c}(l.senderUrn,e,r)})).then((function(e){var t,o
return h&&i(su({lastAttemptAt:new Date(h)},r,n.entityUrn)),Du(n,f,h,n.backendUrn,e.senderUrn,e.backendUrn,null===(t=a.options.trackingOptions)||void 0===t?void 0:t.trackingFireEvent),e.backendUrn&&Hu(e.backendUrn,h,null===(o=a.options.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),e})).then((function(e){return i(su(o(o({},e),{},{status:"Sent"}),r,n.entityUrn)),n.clientId})).catch((function(e){return i(su({status:"Failed"},r,n.entityUrn)),Promise.reject(e)}))},zu=function(e,t,n,r,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"FIRST",u=n.messages.getByIdentifier(r)
if(!u)return Promise.reject(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var l=n.clientId,d=n.recipients,f=Gu(r),h=o(o({},s),{},{trackingId:f}),p=-1
return i(su({status:"Sending"},r,l)),new Pu(r).try((function(n){return p=dl(),Ac(e,t,u.content,r,d,h,u.optionalSendData,1!==n||"RETRY"===c?"DEDUPE":"NOT_DEDUPE").then(cl(a,n,c)).catch(sl(a,n,c,void 0,u,h,d))})).timeoutAfter(a.options.sendRetryTimeoutInSecond).retryIf($e(a,l)).cancelIf(il).start().then((function(e){var n,o
return p&&i(su({lastAttemptAt:new Date(p)},r,l)),Du(void 0,h,p,e.backendConversationUrn,t,e.backendUrn,null===(n=a.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),Hu(e.backendUrn,p,null===(o=a.options.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),e})).then((function(n){return Pc(e,t,n.conversationUrn,l,h)})).then((function(e){var t=e.conversationState,n=e.participants,o=e.requestId
return i(zc(n,o)),i(function(e,t,n){return{type:"CONVERT_DRAFT_CONVERSATION",payload:{conversationId:e,conversation:t},requestId:n}}(l,t,o)),i(su({status:"Sent"},r,t.entityUrn)),t.entityUrn})).catch((function(e){return i(su({status:"Failed"},r,l)),Promise.reject(e)}))},Wu=function(e,t){if(Me[e]&&ke(Me[e]))return!1
var n=function(e,t){return{entityUrn:e,lastActivityAt:new Date,conversations:st.fromConversationArray(),participants:{},draftConversations:Fc(),connected:{api:t.connected,realtime:t.connected},additionalData:null,status:o(o({},Ie),{},{loading:t.loading}),unreadCounts:{},incompleteRetriableEntities:[]}}(e,t),r=pt(Vc,n)
return Me[e]={store:r,observers:[]},r.subscribe((function(){!function(e){var t=Me[e]
ke(t)&&(t.observers.forEach((function(e){return e.next(t.store.getState())})),t.observers.length)}(e)})),!0},Xu=function(e){return"personal"===e.mailboxType},Qu=function(e,t,n,i,o,a){var s=function(e){var t=Me[e]
if(ke(t))return{urn:e,data:t.store.getState(),realtime:t.realtime}}(e)
return s&&Ke(s.data)?Promise.resolve(s):t.useRealtime?function(e,t,n,i){var o,a=t.realtimeHost?(0,r.getClient)({domain:t.realtimeHost,mpInfo:{name:t.mpName,id:t.mpName,version:t.mpVersion},sessionHeartbeat:t.sessionHeartbeatInSecond?1e3*t.sessionHeartbeatInSecond:void 0,reconnectGapThreshold:void 0!==t.realtimeMaxDisconnectInSecond?1e3*t.realtimeMaxDisconnectInSecond:void 0,connectHeaders:Mu({mpName:t.mpName,csrfToken:Ku(t),xLiTrack:t.headers()["X-LI-Track"],xLiLang:t.headers()["x-li-lang"]}),tracking:t.trackingOptions&&t.trackingOptions.trackingFireEvent?{fireEventCallback:t.trackingOptions.trackingFireEvent}:void 0,experimental:{isHeartbeatPayloadEnabled:null===(o=t.experimental)||void 0===o?void 0:o.isHeartbeatPayloadEnabled},actorUrn:n.actorUrn}):(0,r.getClient)()
return a.addActorUrn(n.actorUrn),function(e,t,n,i){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5?arguments[5]:void 0,u=(o=i.triggerChainSync,a=null==s?void 0:s.getPageInstance,ct((function(){B("Throttled chain-sync"),o({pageInstance:null==a?void 0:a()})}),6e4)[0])
return(e.connected?Promise.resolve():e.connect("RETRY")).then((function(){B("realtime connected"),function(e,t){var n=(0,r.getClient)(),i=E(e.getRealtimeTopics(),2),o=i[0],a=_(i[1].values()).filter((function(e){return!e.endsWith(":myself")}))
o&&a.length>0&&(B("Subscribing to broadcast topics",'JWT="...'.concat(X(20,o),'"'),"Number of topics: ".concat(a.length)),n.addSubscriptions(a,o).then((function(e){7===e.succeeded.length?null==t||t.triggerGeneralMetric("unlimited-mailboxes-subscribe-topics"):B("Broadcast topics subscription failed for these topics:",e.failed.join(", "))})).catch((function(e){B("Broadcast topics subscription failed! ❌",e)})))}(i,c),(0,r.getClient)().addContext(t)
var o=new Map
e.addEventListener("error",(function(n,r){B("error event from common-time - ".concat(r.message," ").concat(e.connected?"💚":"💔")),i.dispatch(Qc(e.connected)),function(e){return void 0!==e.status}(r)&&600===r.status&&jc(t)(Ae.buildCommonTimeError(r))})),e.addEventListener("connect",(function(){B("realtime connect ".concat(e.connected?"💚":"💔")),i.dispatch(Qc(e.connected))})),e.addEventListener("reconnecting",(function(){B("realtime reconnecting ".concat(e.connected?"💚":"💔"))})),e.addEventListener("close",(function(){B("realtime close ".concat(e.connected?"💚":"💔")),i.dispatch(Qc(e.connected))})),e.addEventListener("poorRealtimeConnectionDetected",(function(){B("realtime poor connection ".concat(e.connected?"💛":"💔")),i.dispatch(Qc(e.connected))})),e.addEventListener("authSubscribeFailed",(function(t,n){B("realtime authSubscribeFailed (Auth token likely expired) ".concat(e.connected?"💚":"💔")),function(e,t,n){t.getRealtimeTopics()[0]===e&&t.fetchAndUpdateTopics().then((function(){var e=E(t.getRealtimeTopics(),2),r=e[0],i=e[1]
r&&n.addSubscriptions(Array.from(i.values()),r)}))}(n,i,e)})),"personal"===i.mailboxType?e.addEventListener("reconnected",(function(n,r){B("personal mailbox ".concat(t," re-subscribed - chainSync! gap (sec):"),r/1e3),u(),i.dispatch(Qc(e.connected))})):e.addEventListener("topicsResubscribed",(function(n,r){(function(e,t,n){var r=E(e.getRealtimeTopics(),2)[1].get("NewMessage")
return k(r)&&t.includes(r)})(i,r.topics)&&(B("secondary mailbox ".concat(t," re-subscribed - chainSync! gap (sec):"),r.timeGapMs/1e3),u(),i.dispatch(Qc(e.connected)))})),e.addEventListener("topic",(function(r,a){B("⚡️ Realtime event: ",a.topic),Nu(t,a,o,n,i,e.serverClockTime,s)}))})).catch((function(e){var n=_e.CANNOT_CONNECT
return Dc(t)(new Ae("realtime",n.code,n.message,e))}))}(a,e,t.typingIndicatorDelayInSecond,n,t.trackingOptions,i).catch((function(){return Promise.resolve()}))}(e,t,i,a).then((function(){return Yu(e,t,n,o)})):s&&s.data.connected.api?Promise.resolve(s):Yu(e,t,n,o)},Yu=function(e,t,n,r){return function(e,t,n,r){return function(e,t,n){var r="initialSyncConversations",i=Ea(e,{mailboxUrn:t}),o=vc(r)
return hc(e,i,r,n)().then(o).catch(gc(r))}(e,t,r).then((i=n,function(e){var t,n,r
as(e,"messengerConversationsBySyncToken")
var a=null===(t=e.data)||void 0===t?void 0:t.messengerConversationsBySyncToken
if(!a)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("allConversationsToState: messengerConversationsBySyncToken response is missing"))
var s=e.requestId,c=h({},i.hostIdentityUrn,i),u=null!==(n=null===(r=a.metadata)||void 0===r?void 0:r.newSyncToken)&&void 0!==n?n:null,l=a.elements.filter(Qa).map((function(e){var t=E(Wa(e,Ga(i.entityUrn)),2),n=t[0]
return t[1].forEach((function(e){c[e.hostIdentityUrn]?"EMPTY"!==e.kind&&(c[e.hostIdentityUrn]=o(o({},c[e.hostIdentityUrn]),e)):c[e.hostIdentityUrn]=e})),n})).filter(k)
return{conversations:l,newSyncToken:u,participants:c,requestId:s}})).then((function(e){return(n=t,function(e){var t=new Date,r=e.conversations,i=e.participants,a=e.newSyncToken,s=e.requestId
return{additionalData:null,connected:{api:!1,realtime:!1},conversations:st.fromConversationArray(r),draftConversations:new Map,entityUrn:n,lastActivityAt:t,participants:i,status:o(o({},Ie),{},{syncToken:a,lastRequestId:s}),unreadCounts:{}}})(e)
var n}))
var i}(el(t),e,n,r).then((function(t){return{urn:e,data:t}})).catch((function(n){var r,i,o
throw null===(r=t.trackingOptions)||void 0===r||null===(i=r.incrementMetricCounterHandler)||void 0===i||i.call(r,{groupName:"messengerData",metricName:"conversation-list-sync-fail"}),qu(n,"CONVERSATIONS",1,e,t.viewerUrn,void 0,null===(o=t.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),n}))},$u=function(e){var t
return e.data&&void 0!==e.data.messengerConversationsByCategory?{data:e.data.messengerConversationsByCategory,requestId:e.requestId}:null!==(t=e.data)&&void 0!==t&&t.messengerConversationsBySearchCriteria&&function(e){return void 0!==e.messengerConversationsBySearchCriteria}(e.data)?{data:e.data.messengerConversationsBySearchCriteria,requestId:e.requestId}:{data:{elements:[],metadata:{nextCursor:null}}}},Ju=function(e,t){return h({},e.entityUrn,{status:{sending:t}})},Zu=function(e,t,n,r){e(t?r?pu(r,new Set,!0):Jc([],!0):r?pu(r,new Set(n.filter((function(e){return e.message})).map((function(e){return e.message.entityUrn})))):Jc(n.filter((function(e){return e.conversation})).map((function(e){return e.conversation.entityUrn}))))},el=function(e){var t,n=null!==(t=function(e){var t,n
if(!1===(null===(t=e.trackingOptions)||void 0===t?void 0:t.usePemTracking))return null
var r=null!==(n=e.trackingOptions)&&void 0!==n?n:{},i=r.pemPrefix,o=r.trackingFireEvent,a=r.jetCallback
return void 0!==i&&void 0!==o&&D()?function(e,t,n,r){var i,o=function(e,t,n){return{READ:new uc("".concat(e," - Read"),fc(t),lc),WRITE:new uc("".concat(e," - Send"),fc(t),lc),SEARCH:new uc("".concat(e," - Search"),fc(t),null!=n?n:lc)}}(e,n,r)
return[function(e,n,r,i){return function(a){var s,c=(null!=i?i:{}).pageInstance
if(c){var u=[new tc(t[n],"failed-to-".concat((s=r,s.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})))))],l=new Promise((function(e,t){a.then((function(t){return e(t.response)})).catch(t)}))
return o[n].trackFeatureDegradationsForFetch(e,[],u,l,c).then((function(){return a}))}return a}},(i=o,function(){return N(i).forEach(cc)})]}(i,{READ:"messaging-conversation-load-module",WRITE:"messaging-conversation-send-module",SEARCH:"messaging-conversation-search-module"},o,a):[function(){return function(e){return e}},dc]}(e))&&void 0!==t?t:[],r=E(n,2),i=r[0],o=void 0===i?null:i,a=r[1],s=void 0===a?dc:a
return{experimental:e.experimental,messengerResource:e.messengerResource,mpName:e.mpName,queryFormat:e.queryFormat,teardown:D()?s:dc,track:o}},tl=function(e,t,n,r,i){n.length&&function(e,t,n,r){var i="acknowledgeMessagesReceived",o=JSON.stringify({messageUrns:t,clientId:r,deliveryMechanism:n,clientConsumedAt:Date.now()}),a=function(e){return Vo("restli",e.messengerResource,"messengerMessageDeliveryAcknowledgements",{action:"sendDeliveryAcknowledgement"})}(e),s=yc(i)
return ys(a,o).catch(gc(i)).then(s)}(t,n,r,i).catch(jc(e))},nl=function(e,t,n,r){t(function(e,t,n){return{type:"ADD_NEW_MESSAGE_BY_CONVO_URN",payload:{message:e,conversationUrn:t},requestId:void 0}}(r,n)),e.clientSensorTrackers.triggerRecipientMetric("realtime-message-received")},rl=function(e,t,n){return function(r,i,a,s,c,u){if(a.entityUrn){var l,d=null!==(l=e.experimentalValues)&&void 0!==l&&l.useNewClientId?"".concat(t.mpName,"-").concat(e.actorUrn):t.mpName
tl(e.id,t,[a.entityUrn],"REALTIME",d)}var f=e.state.conversations.getByIdentifier(r,"FullMailboxState")
if(f){var h=f.messages.first()
return h&&h.deliveredAt.getTime()>a.deliveredAt.getTime()?Promise.resolve():(i.lastActivityAt>f.lastActivityAt&&(e.experimentalValues&&!0===e.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?n(eu(rt(i),r,c)):n(eu(rt(i),r))),nl(e,n,r,a),s&&f.messages.getByIdentifier(s.entityUrn)?Promise.resolve():(e.clientSensorTrackers.triggerRecipientMetric("realtime-message-gap-detected"),e.syncConversationMessages(r,"FullMailboxState",u)))}var p=function(e,t,n){var r,i,a
return o(o({},t),{},{clientId:ma(),entityUrn:e,draftMessages:[n],matchingSearches:[],messages:new La,typingUrns:new Set,additionalData:null,status:{fullyLoaded:null!==(r=t.status.fullyLoaded)&&void 0!==r&&r,loading:null!==(i=t.status.loading)&&void 0!==i&&i,sending:null!==(a=t.status.sending)&&void 0!==a?a:"Ready"}})}(r,i,Ga(e.participant.hostIdentityUrn))
return n(Zc(p,[])),nl(e,n,r,a),Promise.resolve()}},il=function(e){if(Se(e)){var t=e.code
return void 0!==t&&t>399&&t<500&&422!==t&&429!==t}return!1},ol=function(e){if(Se(e)){var t=e.code
return void 0!==t&&t>399&&t<500}return!1},al=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now()
return e.reduce((function(e,t){return t.lastActivityAt.getTime()<e?t.lastActivityAt.getTime():e}),t)}
function sl(e,t,n,r,i,o,a){return function(s){var c,u
1===t?e.clientSensorTrackers.triggerSenderMetric("FIRST"===n?"message-send-fail":"message-manual-retry-fail"):e.clientSensorTrackers.triggerSenderMetric("message-auto-retry-fail")
var l=dl()
return Du(r,o,l,null==r?void 0:r.backendUrn,i.senderUrn,void 0,null===(c=e.options.trackingOptions)||void 0===c?void 0:c.trackingFireEvent),function(e,t,n,r,i,o,a){var s,c=ju(e),u=Array.isArray(e.cause)?e.cause.map((function(e){return e.stack})).join():null===(s=e.cause)||void 0===s?void 0:s.stack,l="".concat(e.message).concat(u?"; ".concat(u):""),d="failure message: ".concat(l),f=!1
if(o&&(f=o.length>1),n&&(f=null==n?void 0:n.groupChat),i&&r){var h={isAutoRetry:t>1,clientFailureType:c,clientFailureDetail:d,conversationType:Lu(r,f),messageContentType:Uu(r),messagingThreadUrn:n?n.backendUrn:null,sourceType:i.sourceType,trackingId:i.trackingId,messageComposeFlowTrackingId:i.messageComposeFlowTrackingId,messageSendAttemptedAt:Date.now()}
a&&a("MessageSendClientFailureEvent",h)}}(s,t,r,i,o,a,null===(u=e.options.trackingOptions)||void 0===u?void 0:u.trackingFireEvent),Promise.reject(s)}}function cl(e,t,n){return function(r){return 1===t?e.clientSensorTrackers.triggerSenderMetric("FIRST"===n?"message-send-success":"message-manual-retry-success"):e.clientSensorTrackers.triggerSenderMetric("message-auto-retry-success"),r}}var ul,ll=function(e,t,n,r){n&&n.length>0&&n.map((function(n){t.findIndex((function(e){return Fe(e)&&e.conversationUrn===n.entityUrn}))>-1&&(n.incompleteRetriableData?e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-failure"):e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-success"))})),r&&r.length>0&&r.map((function(n){n.entityUrn&&t.findIndex((function(e){return Be(e)&&e.messageUrn===n.entityUrn}))>-1&&(n.incompleteRetriableData?e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-failure"):e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-success"))}))},dl=function(){try{return(0,r.getClient)().serverClockTime}catch(e){return B("Failed to retrieve server time from common-time:",e),Date.now()}},fl=function(e,t){return{kind:"MEMBER",clientId:e,entityUrn:"urn:li:msg_messagingParticipant:".concat(t),hostIdentityUrn:t,backendUrn:null,firstName:"",lastName:"",headline:"",additionalData:null,pronoun:{customPronoun:"",standardizedPronoun:""},profile:{}}},hl=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
l(this,e),h(this,"_queue",void 0),h(this,"_continueOnFailure",void 0),this._queue=[],this._continueOnFailure=t}return f(e,[{key:"length",get:function(){return this._queue.length}},{key:"enqueue",value:function(e,t,n){var r=this
return new Promise((function(i,o){r._queue.push({requestGenerator:e,resolve:i,reject:o,messageId:t}),1===r._queue.length&&r._flush(n)}))}},{key:"start",value:function(e){return this._flush(e)}},{key:"_flush",value:function(e){var t=this
if(this._queue.length){var n=this._queue[0]
if(!e||e&&n.messageId&&e(n.messageId))return n.requestGenerator().then((function(r){return n.resolve(r),t._queue.shift(),t._queue.length>0?t._flush(e).then((function(e){return e+1})):1})).catch((function(r){return n.reject(r),t._continueOnFailure&&(t._queue.shift(),t._queue.length>0)?t._flush(e):Promise.resolve(0)}))
if(this._queue.shift(),this._queue.length>0)return this._flush(e)}return Promise.resolve(0)}}]),e}(),pl="function"==typeof Symbol&&Symbol.observable||"@@observable",gl="messengerData",ml=function(e){return{triggerSenderMetric:function(t){null==e||e({groupName:gl,metricName:t})},triggerRecipientMetric:function(t){null==e||e({groupName:gl,metricName:t})},triggerGeneralMetric:function(t){null==e||e({groupName:gl,metricName:t})}}}
ul=Symbol.observable
var vl=function(){function e(t,n,r){var i,a=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Rc,c=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0
l(this,e),h(this,"_retrieveNetworkConfig",void 0),h(this,"_stateSubscribers",[]),h(this,"_complete",!1),h(this,"_pendingErrors",[]),h(this,"_id",void 0),h(this,"_options",void 0),h(this,"_throttledTypingFns",{}),h(this,"_filter",void 0),h(this,"_oldestConversationTime",0),h(this,"_cursor",null),h(this,"_fullyLoaded",!1),h(this,"_isLoadingConversations",!1),h(this,"_localParticipant",void 0),h(this,"_actorUrn",void 0),h(this,"_dispatch",void 0),h(this,"_clientSensorTrackers",void 0),h(this,"trackingData",{}),h(this,"_sendFullMessageInDraftConversation",(function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"FIRST"
if(e.messages.length>0)return Dc(a.id)(Ae.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
var o=Ba({senderUrn:a.participant.hostIdentityUrn,content:t,optionalSendData:n})
a._dispatch(nu(o,e.clientId))
var s=a.state.draftConversations.get(e.clientId)
return s?("Failed"!==s.sending&&a._dispatch(fu(s.clientId,"InProgress")),a._getRequestQueue("messageSend",s.clientId).enqueue((function(){return zu(a.networkConfig,a.participant.hostIdentityUrn,s,o.clientId,a._dispatch.bind(a),a,r,i).then((function(e){var t
return(null===(t=a.state.conversations.getByIdentifier(e,"FullMailboxState"))||void 0===t?void 0:t.clientId)||s.clientId})).catch((function(e){return a.options.continueOnFailure||a._dispatch(fu(s.clientId,"Failed")),Dc(a.id)(Ae.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),o.clientId,$e(a,s.clientId)).finally((function(){0===a._getRequestQueue("messageSend",s.clientId).length&&a._dispatch(fu(s.clientId,"Ready"))}))):Dc(a.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send message in Draft conversation"))})),this._id=t,this._options=o({},n),this._filter=s,this._dispatch=c,this._retrieveNetworkConfig=u,this._clientSensorTrackers=ml(null===(i=n.trackingOptions)||void 0===i?void 0:i.incrementMetricCounterHandler),this._localParticipant=fl(r,this.id),this._actorUrn=n.viewerUrn,function(e,t){var n=Me[e]
ke(n)&&n.observers.push(t)}(t,{next:function(e){return function(e,t){e.forEach((function(e){return e.next(t)}))}(a._stateSubscribers,Oc(e,s,a._oldestConversationTime,a._cursor,a._fullyLoaded))},error:function(e){return a._notifyErrorSubscribers(e)},complete:function(){a._complete||(a._complete=!0,a._stateSubscribers.forEach((function(e){var t
return null===(t=e.complete)||void 0===t?void 0:t.call(e)})))}})}return f(e,[{key:"experimentalValues",get:function(){return this._options.experimental}},{key:ul,value:function(){return this}},{key:pl,value:function(){return this}},{key:"observable",get:function(){return this}},{key:"subscribe",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!re(e)&&!ne(e))throw Ae.fromInvalidType("subscribe","subscriber"," Subscriber | NextFunction")
var n=e
return ne(e)&&(n={next:e}),this._stateSubscribers.push(n),this._pendingErrors.length>0&&this._pendingErrors.forEach((function(e){return t._notifyErrorSubscribers(e)})),setTimeout((function(){return n.next(t.state)}),0),{unsubscribe:function(){t._stateSubscribers=t._stateSubscribers.filter((function(e){return e!==n}))}}}},{key:"filter",get:function(){return this._filter}},{key:"subscribersCount",get:function(){return this._stateSubscribers.length}},{key:"state",get:function(){var e=kc(this._id)
if(!e)throw Ae.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = get state(), mailboxUrn = ".concat(this._id,", state = ").concat(s(e))))
return Oc(e,this._filter,this._oldestConversationTime,this._cursor,this._fullyLoaded)}},{key:"participant",get:function(){return this._localParticipant}},{key:"actorUrn",get:function(){return this._actorUrn}},{key:"id",get:function(){return this._id}},{key:"options",get:function(){return this._options}},{key:"clientSensorTrackers",get:function(){return this._clientSensorTrackers}},{key:"getPageInstanceFn",get:function(){var e,t
return null!==(e=this._options.trackingOptions)&&void 0!==e&&e.getPageInstance?null===(t=this._options.trackingOptions)||void 0===t?void 0:t.getPageInstance:function(){}}},{key:"getPageKeyFn",get:function(){var e
return null===(e=this._options.trackingOptions)||void 0===e?void 0:e.getPageKey}},{key:"isLoadingConversations",get:function(){return this._isLoadingConversations}},{key:"getConversations",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0
if(this._options.enableParameterTypeChecks){var i="getConversations"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(i,"conversationIdentifiers"," URN | UUIDV4[]"))
if(!V(n))return Dc(this.id)(Ae.fromInvalidType(i,"count"," number"))
if(!O(r)&&!pe(r))return Dc(this.id)(Ae.fromInvalidType(i,"trackingData","TrackingData | undefined"))
if(!W(e,Z))return Dc(this.id)(Ae.fromInvalidType(i,"conversationIdentifiers[x]"," URN or UUIDV4"))}var o=E(e.reduce((function(e,n){var r=t.state.conversations.getByIdentifier(n,"FullMailboxState")
return r?[e[0],[].concat(_(e[1]),[r])]:[[].concat(_(e[0]),[n]),e[1]]}),[[],[]]),2),a=o[0],s=o[1]
return a.length?bc(this.networkConfig,a,n,r).then((function(e){return $a(e,t.createNewDraftMessage())})).then((function(e){var n=e.conversations,r=e.participants,i=e.requestId
return t._dispatch(tu(n,N(r).filter(k),null,"SKIP_CATEGORIES",i)),t._updateLocalParticipant(),Ve([].concat(_(s),_(n)))})).catch(Dc(this.id)):Promise.resolve(s)}},{key:"syncConversationMessages",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FullMailboxState",r=arguments.length>2?arguments[2]:void 0
if(this._options.enableParameterTypeChecks){var i="syncConversationMessages"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(i,"conversationUrn","URN"))
if(!fe(n))return Dc(this.id)(Ae.fromInvalidType(i,"selectOption","SelectorFilterOption"))
if(!O(r)&&!pe(r))return Dc(this.id)(Ae.fromInvalidType(i,"trackingData","TrackingData | undefined"))}var o=this.state.conversations.getByIdentifier(e,n)
return o?(this._dispatch(ru(o.clientId,!0)),new Pu(void 0,1.25).try((function(n){return function(e,t,n,r){var i="getSyncMessagesByConversationId",o={conversationUrn:t,syncToken:n}
n||delete o.syncToken
var a=Oa(e,o),s=vc(i)
return hc(e,a,i,r)().then(s).catch(gc(i))}(t.networkConfig,e,o.metadata.syncToken,r).catch((function(e){var r
throw t.clientSensorTrackers.triggerRecipientMetric("message-list-sync-fail"),qu(e,"MESSAGES",n,t.id,t.actorUrn,[o],null===(r=t.options.trackingOptions)||void 0===r?void 0:r.trackingFireEvent),e}))})).timeoutAfter(this.options.syncRetryTimeoutInSecond).cancelIf(ol).start().then((function(e){return function(e){var t
as(e,"messengerMessagesBySyncToken")
var n=null===(t=e.data)||void 0===t?void 0:t.messengerMessagesBySyncToken
if(!n)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("syncMessagesToMessageStates: messengerMessagesBySyncToken response is missing"))
return es(n,e.requestId)}(e)})).then((function(n){var r,i,a=n.messages,s=n.newSyncToken,c=n.shouldClearCache,u=n.deletedUrns,l=n.participants,d=n.requestId
t._dispatch(zc(l,d)),Zu(t._dispatch.bind(t),c,u,e),t._dispatch(au(_(a),o.entityUrn,s,c,d))
var f,h=null!==(r=t.experimentalValues)&&void 0!==r&&r.useNewClientId?"".concat(t.networkConfig.mpName,"-").concat(t.actorUrn):t.networkConfig.mpName
return tl(t.id,t.networkConfig,a.map((function(e){return e.entityUrn})),"SYNC",h),f=dl(),Fu(a.map((function(e){return e.backendUrn})),o.backendUrn,f,c,t.id,t.actorUrn,null===(i=t.options.trackingOptions)||void 0===i?void 0:i.trackingFireEvent),t._updateLocalParticipant(),t._getSeenReceipts(e).catch(jc(t.id)),t._getQuickReplies(e).catch(Dc(t.id)),t.clientSensorTrackers.triggerRecipientMetric("message-list-sync-success"),Promise.resolve()})).catch((function(e){return t._dispatch(ru(o.clientId,!1)),Dc(t.id)(Ae.fromClientErrorMemo("MESSAGE_LIST_SYNC_FAILED",e))}))):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Syncing conversation messages"))}},{key:"syncConversations",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!O(e)&&!pe(e))return Dc(this.id)(Ae.fromInvalidType("syncConversations","trackingData","TrackingData | undefined"))
var n=this.state.status.syncToken
return this.state.status.loading?(q("Trying to chain-sync while already loading"),Promise.resolve(0)):n?(this._dispatch(iu(!0)),new Pu(void 0,1.25).try((function(r){return function(e,t,n,r,i,a,s){return function(e,t,n,r){var i="syncConversations",o={mailboxUrn:t}
n&&(o.syncToken=n)
var a=ka(e,o),s=vc(i)
return hc(e,a,i,r)().then(s)}(e,t,r,s).then((function(e){return function(e,t){var n,r,i,a,s,c,u
as(e,"messengerConversationsBySyncToken")
var l=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsBySyncToken
if(!l)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("syncConversationsToState: messengerConversationsBySyncToken response is missing"))
var d=e.requestId,f={},h=null!==(r=null===(i=l.metadata)||void 0===i?void 0:i.newSyncToken)&&void 0!==r?r:null,p=null!==(a=null===(s=l.metadata)||void 0===s?void 0:s.shouldClearCache)&&void 0!==a&&a,g=null!==(c=null===(u=l.metadata)||void 0===u?void 0:u.deletedUrns)&&void 0!==c?c:[],m=l.elements.filter(Qa).map((function(e){var n=E(Wa(e,Ga(t)),2),r=n[0]
return n[1].forEach((function(e){f[e.hostIdentityUrn]?f[e.hostIdentityUrn]=o(o({},f[e.hostIdentityUrn]),e):f[e.hostIdentityUrn]=e})),r})).filter(k)
return{conversations:m,newSyncToken:h,shouldClearCache:p,deletedUrns:g,participants:f,requestId:d}}(e,t)})).then((function(e){var n
return Bu(e.conversations.map((function(e){return e.backendUrn})),!!e.shouldClearCache,t,i.actorUrn,null===(n=i.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),i.clientSensorTrackers.triggerRecipientMetric("conversation-list-sync-success"),e})).catch((function(e){var n
throw i.clientSensorTrackers.triggerRecipientMetric("conversation-list-sync-fail"),qu(e,"CONVERSATIONS",a,t,i.actorUrn,void 0,null===(n=i.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),e})).then((function(r){var o=r.conversations.map((function(e){var t,n,r=null===(t=i.state.conversations.getByIdentifier(e.entityUrn))||void 0===t||null===(n=t.metadata)||void 0===n?void 0:n.syncToken
return r?{conversationUrn:e.entityUrn,syncToken:r}:{conversationUrn:e.entityUrn}}))
return function(e,t,n){var r="getSyncMessagesByConversationIdInBatch",i=Ma(e,{criteria:t}),o=vc(r)
return hc(e,i,r,n)().then(o).catch(gc(r))}(e,o,s).then((function(t){var o
as(t,"messengerMessagesBySyncTokensInBatch")
var a=null===(o=t.data)||void 0===o?void 0:o.messengerMessagesBySyncTokensInBatch
if(!a)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("chainSync: messengerMessagesBySyncTokensInBatch response is missing"))
var s=U(r.conversations.map((function(e){return[e.entityUrn,e]})))
return a.forEach(function(e,t,n,r,i){return function(o){var a,s,c
if(!o)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("chainSync > handleSingleResponseBatchSync: messengerMessagesBySyncTokensInBatch response for a single conversation is missing"))
var u=es(o,n),l=u.messages,d=u.newSyncToken,f=u.shouldClearCache,h=u.deletedUrns,p=u.participants,g=u.requestId
e(zc(p,g))
var m=null===(a=(null!==(c=o.elements)&&void 0!==c?c:[])[0])||void 0===a||null===(s=a.conversation)||void 0===s?void 0:s.entityUrn
if(m){var v
Zu(e,f,h,m),void 0===r.state.conversations.getByIdentifier(m)&&e(Zc(t[m],[])),e(au(_(l),m,d,f,g))
var y=null!==(v=r.experimentalValues)&&void 0!==v&&v.useNewClientId?"".concat(i.mpName,"-").concat(r.actorUrn):i.mpName
tl(r.id,i,l.map((function(e){return e.entityUrn})),"SYNC",y)
var b=r.state.conversations.getByIdentifier(m,"FullMailboxState")
if(b){var E,T=dl()
Fu(l.map((function(e){return e.backendUrn})),b.backendUrn,T,f,r.id,r.actorUrn,null===(E=r.options.trackingOptions)||void 0===E?void 0:E.trackingFireEvent)}}r._updateLocalParticipant()}}(n,s,t.requestId,i,e)),i.clientSensorTrackers.triggerRecipientMetric("message-list-sync-success"),r})).catch((function(e){var n
throw i.clientSensorTrackers.triggerRecipientMetric("message-list-sync-fail"),qu(e,"MESSAGES",1,t,i.actorUrn,r.conversations,null===(n=i.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),e}))}))}(t.networkConfig,t.id,t._dispatch.bind(t),n,t,r,e)})).timeoutAfter(this.options.syncRetryTimeoutInSecond).cancelIf(ol).start().then((function(e){var n=e.conversations,r=e.newSyncToken,i=e.shouldClearCache,o=e.deletedUrns,a=e.participants,s=e.requestId
return Zu(t._dispatch.bind(t),null!=i&&i,null!=o?o:[]),t._dispatch(tu(n,N(a).filter(k),r,"ADD_CATEGORIES",s)),t._updateLocalParticipant(),n.length})).catch((function(e){return t._dispatch(iu(!1)),Dc(t.id)(Ae.fromClientErrorMemo("CHAIN_SYNC_FAILED",e))}))):Dc(this.id)(Ae.fromClientErrorMemo("CHAIN_SYNC_CANNOT_START"))}},{key:"composeByRecipients",value:function(e){var t,n,r=this
if(this._options.enableParameterTypeChecks){var i="composeByRecipients"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(i,"recipientUrns","URN[]"))
if(!W(e,J))return Dc(this.id)(Ae.fromInvalidType(i,"recipientUrns[x]","URN"))}return _c(this.networkConfig,this.id,e,{pageInstance:null===(t=this.options.trackingOptions)||void 0===t||null===(n=t.getPageInstance)||void 0===n?void 0:n.call(t)}).then((function(t){var n,i=null===(n=t.data)||void 0===n?void 0:n.messengerConversationsByRecipients.elements.filter(Qa),o=t.requestId
if(null!=i&&i.length){var a=i[0],s=r.state.conversations.getByIdentifier(a.entityUrn,"FullMailboxState")
if(s)return Promise.resolve(s)
var c=Ya(t,r.createNewDraftMessage()),u=c.conversations,l=c.participants,d=u.filter((function(e){return!r.state.conversations.getByIdentifier(e.clientId)}))
r._dispatch(tu(d,N(l).filter(k),null,"ADD_CATEGORIES",o))
var f=r.state.conversations.getByIdentifier(u[0].clientId,"FullMailboxState")
return f?Promise.resolve(f):Dc(r.id)(Ae.fromClientErrorMemo("COMPOSE_BY_RECIPIENTS_FAILED"))}return r.createDraftConversation(e)}))}},{key:"getConversationsByRecipients",value:function(e){var t,n,r=this
if(this._options.enableParameterTypeChecks){var i="getConversationsByRecipients"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(i,"recipientUrns","URN[]"))
if(!W(e,J))return Dc(this.id)(Ae.fromInvalidType(i,"recipientUrns[x]","URN"))}return _c(this.networkConfig,this.id,e,{pageInstance:null===(t=this.options.trackingOptions)||void 0===t||null===(n=t.getPageInstance)||void 0===n?void 0:n.call(t)}).then((function(e){var t=Ya(e,r.createNewDraftMessage()),n=t.conversations,i=t.participants,o=r._updateConvoStateListClientId(n)
return r._dispatch(tu(o,N(i).filter(k),null,"SKIP_CATEGORIES",e.requestId)),Promise.resolve(o)}))}},{key:"createDraftConversation",value:function(e){if(this._options.enableParameterTypeChecks){var t="createDraftConversation"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(t,"recipientUrns","URN[]"))
if(!W(e,J))return Dc(this.id)(Ae.fromInvalidType(t,"recipientUrns[x]","URN"))}var n,r,i=(n=this.participant.entityUrn,r=e,{clientId:ma(),draftMessages:[Ga(n)],messages:new La,recipients:r,sending:"Ready"})
return this._dispatch({type:"ADD_DRAFT_CONVERSATION",payload:{conversation:i}}),Promise.resolve(i)}},{key:"deleteDraftConversation",value:function(e){return this._options.enableParameterTypeChecks&&!Z(e)?Dc(this.id)(Ae.fromInvalidType("deleteDraftConversation","draftConversationClientId","URN")):this.state.draftConversations.has(e)?(this._dispatch({type:"REMOVE_DRAFT_CONVERSATION",payload:{conversationId:e}}),Promise.resolve(e)):Dc(this.id)(Ae.fromClientErrorMemo("DRAFT_CONVERSATION_NOT_FOUND"))}},{key:"deleteServerDraftMessage",value:function(e,t){var n,r,i,o,a
return(n=this.networkConfig,r=t,i="deleteServerDraftMessageAPI",o="messengerMessageDrafts/".concat(encodeURIComponent(r)),a=yc(i),bs(n,o).catch(gc(i)).then(a)).catch(Dc(this.id)),this._dispatch(function(e,t,n){return{type:"DELETE_DRAFT_MESSAGE",payload:{conversationUrn:e,draftMessageUrn:t},requestId:void 0}}(e,t)),Promise.resolve(t)}},{key:"updateDraftConversation",value:function(e,t){if(this._options.enableParameterTypeChecks){var n="deleteDraftConversation"
if(!Y(e))return Dc(this.id)(Ae.fromInvalidType(n,"conversationId","UUIDV4"))
if(!Array.isArray(t))return Dc(this.id)(Ae.fromInvalidType(n,"newRecipientUrns","URN[]"))
if(!W(t,J))return Dc(this.id)(Ae.fromInvalidType(n,"newRecipientUrns[x]","URN"))}return this.state.draftConversations.get(e)?(this._dispatch(function(e,t){return{type:"UPDATE_DRAFT_CONVERSATION",payload:{conversationId:e,recipientUrns:t}}}(e,t)),Promise.resolve(this.state.draftConversations.get(e))):Dc(this.id)(Ae.fromClientErrorMemo("DRAFT_CONVERSATION_NOT_FOUND"))}},{key:"setConversationAsActive",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{markConvoReadTypes:"NO_CHANGE",setConvoActiveSyncOption:"FALLBACK_SYNC"},i=arguments.length>2?arguments[2]:void 0
if(this._options.enableParameterTypeChecks){var a="setConversationAsActive"
if(!Z(e))return Dc(this.id)(Ae.fromInvalidType(a,"convoIdentifier","URN | UUIDV4"))
if(!oe(r))return Dc(this.id)(Ae.fromInvalidType(a,"convoActivationOption","ConvoActivationOption"))
if(i&&!pe(i))return Dc(this.id)(Ae.fromInvalidType(a,"trackingData","TrackingData"))}var s=this._getConversationByIdentifier(e,"FullMailboxState"),c=this.state.connected.realtime
if(!s)return Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Setting convo as active"))
if(!Q(s))return Promise.resolve()
"MARK_READ"!==r.markConvoReadTypes&&"MARK_UNREAD"!==r.markConvoReadTypes||this.updateConversationsReadStatus(h({},s.entityUrn,"MARK_READ"===r.markConvoReadTypes)).then((function(){return Promise.resolve()})).catch(Dc(this.id))
var u,l,d,f,p,g,m,v,y,b,E=s.draftMessages,_=E[E.length-1]
return null!==(t=this.experimentalValues)&&void 0!==t&&t.enableServerDraft&&!_.entityUrn&&(u=this.networkConfig,l=this.id,d=_.content,f=s.entityUrn,p=ma(),g="createServerDraftMessage",m={mailboxUrn:l},v=JSON.stringify({body:d,conversationUrn:f,originToken:p}),y=Vo("restli",u.messengerResource,"messengerMessageDrafts",m),b=vc(g),ys(y,v).catch(gc(g)).then(b)).then((function(e){var t=o(o({},_),{entityUrn:e.entityUrn})
n._dispatch(du(s.clientId,t))})),"ALWAYS_SYNC"!==r.setConvoActiveSyncOption&&s.metadata.syncToken&&c?Promise.resolve():this.syncConversationMessages(s.entityUrn,"FullMailboxState",i)}},{key:"updateConversation",value:function(e,t){if(this._options.enableParameterTypeChecks){var n="updateConversation"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrn","URN"))
if(!K(t)||Array.isArray(t))return Dc(this.id)(Ae.fromInvalidType(n,"status","ConversationUpdate<C, M>"))}var r=h({},e,t)
return this._dispatch(Yc(r)),function(e,t,n){var r=JSON.stringify({patch:{$set:n}})
return Sc(e,t,r)}(this.networkConfig,e,t).then((function(){return Promise.resolve()})).catch(Dc(this.id))}},{key:"updateConversationsReadStatus",value:function(e){if(this._options.enableParameterTypeChecks&&!se(e))return Dc(this.id)(Ae.fromInvalidType("updateConversationsReadStatus","readStatusUpdateMap","UrnUpdateMap"))
var t=U(R(e).map((function(t){return[t,{read:e[t]}]})))
return this._dispatch(Yc(t)),function(e,t){var n="updateConversations",r=R(t),i={}
r.forEach((function(e){i[e]={patch:{$set:t[e]}}}))
var o=JSON.stringify({entities:i}),a=yc(n),s=function(e,t){var n=Yo(t),r="messengerConversations?ids=List(".concat(n,")")
return Vo("restli",e.messengerResource,r)}(e,r)
return ys(s,o).catch(gc(n)).then(a)}(this.networkConfig,t).then((function(){return Promise.resolve()})).catch(Dc(this.id))}},{key:"addCategoryToConversations",value:function(e,t){if(this._options.enableParameterTypeChecks){var n="addCategoryToConversations"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrns","URN[]"))
if(!W(e,J))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrns[x]","URN"))
if(!de(t))return Dc(this.id)(Ae.fromInvalidType(n,"category","ConversationCategory"))}return this._dispatchCategoryUpdate(e,t,"ADD"),function(e,t,n){var r="addCategoryToConversationsAPI",i=JSON.stringify({conversationUrns:t,category:n}),o=yc(r),a=function(e){return Vo("restli",e.messengerResource,"messengerConversations",{action:"addCategory"})}(e)
return ys(a,i).catch(gc(r)).then(o)}(this.networkConfig,e,t).then((function(){return Promise.resolve()})).catch(Dc(this.id))}},{key:"removeCategoryFromConversations",value:function(e,t){if(this._options.enableParameterTypeChecks){var n="removeCategoryFromConversations"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrns","URN[]"))
if(!W(e,J))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrns[x]","URN"))
if(!de(t))return Dc(this.id)(Ae.fromInvalidType(n,"category","ConversationCategory"))}return this._dispatchCategoryUpdate(e,t,"REMOVE"),function(e,t,n){var r="removeCategoryFromConversationsAPI",i=JSON.stringify({conversationUrns:t,category:n}),o=yc(r),a=function(e){return Vo("restli",e.messengerResource,"messengerConversations",{action:"removeCategory"})}(e)
return ys(a,i).catch(gc(r)).then(o)}(this.networkConfig,e,t).then((function(){return Promise.resolve()})).catch(Dc(this.id))}},{key:"updateConversationTitle",value:function(e,t){if(this._options.enableParameterTypeChecks){var n="updateConversationTitle"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrn","URN"))
if(!z(t))return Dc(this.id)(Ae.fromInvalidType(n,"title","string"))}var r=h({},e,{title:t})
return this._dispatch(Yc(r)),function(e,t,n){var r=JSON.stringify({patch:{$set:{title:n}}})
return Sc(e,t,r)}(this.networkConfig,e,t).then((function(){return Promise.resolve()})).catch(Dc(this.id))}},{key:"deleteConversation",value:function(e){var t=this
return this._options.enableParameterTypeChecks&&!J(e)?Dc(this.id)(Ae.fromInvalidType("deleteConversation","conversationUrn","URN")):function(e,t){var n="deleteConversation",r="messengerConversations/".concat(encodeURIComponent(t)),i=yc(n)
return bs(e,r).catch(gc(n)).then(i)}(this.networkConfig,e).then((function(){t._dispatch($c(e))})).catch(Dc(this.id))}},{key:"deleteConversations",value:function(e){var t=this
if(this._options.enableParameterTypeChecks){var n="deleteConversations"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrns","URN[]"))
if(!W(e,J))return Dc(this.id)(Ae.fromInvalidType(n,"conversationUrns[x]","URN"))}return function(e,t){var n="bulkDeleteConversations",r=Yo(t),i="messengerConversations?ids=List(".concat(r,")"),o=yc(n)
return bs(e,i).catch(gc(n)).then(o)}(this.networkConfig,e).then((function(){t._dispatch(Jc(e))})).catch(Dc(this.id))}},{key:"loadOlderConversations",value:function(){var e=this
if(this._isLoadingConversations)return Promise.resolve(0)
if("search"!==this.filter.kind&&this.state.status.fullyLoaded)return Promise.resolve(0)
this._isLoadingConversations=!0
var t=this.state.conversations.last()
this._dispatch(iu(!0))
var n=t?t.lastActivityAt.getTime():null,r=this._cursor
return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null
switch(n.kind){case"category":var a,s,c,u,l={category:n.category,count:r.convCount}
return o?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ec,i=arguments.length>4?arguments[4]:void 0,o="findConversationsByCursor",a=r.count,s=r.category,c=Ta(e,{category:s,count:a,mailboxUrn:t,nextCursor:n}),u=vc(o)
return hc(e,c,o,i)().then(u).catch(gc(o))}(e,t,o,l,{pageInstance:null===(a=r.trackingOptions)||void 0===a||null===(s=a.getPageInstance)||void 0===s?void 0:s.call(a)}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ec,i=arguments.length>4?arguments[4]:void 0,o="findConversationsByTimestamp",a=r.count,s={category:r.category,count:a,mailboxUrn:t}
null!==n&&(s.lastUpdatedBefore=n)
var c=Ta(e,s),u=vc(o)
return hc(e,c,o,i)().then(u).catch(gc(o))}(e,t,i,l,{pageInstance:null===(c=r.trackingOptions)||void 0===c||null===(u=c.getPageInstance)||void 0===u?void 0:u.call(c)})
case"search":var d,f,h=n.categories,p=n.keywords,g=n.read,m=n.firstDegreeConnections
return Tc(e,t,h,null!=p?p:null,m,g,o,{pageInstance:null===(d=r.trackingOptions)||void 0===d||null===(f=d.getPageInstance)||void 0===f?void 0:f.call(d)})}}(this.networkConfig,this.id,this.filter,this.options,n,r).then($u).then((function(t){var n=t.data,i=t.requestId,a=function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{kind:"category",category:"INBOX"}
if(!e||!e.elements)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("conversationsResponseDataToState: data or its elements is missing"))
var a=e.elements.filter(Qa).reduce((function(e,n){var r,a,s=E(Wa(n,t,ns(i)?i.id:void 0),2),c=s[0],u=s[1]
return[(r=e[0],a=ss(u),o(o({},r),a)),[].concat(_(e[1]),[c])]}),[{},[]]),s=E(a,2),c=s[0]
return{conversations:s[1],participants:c,nextCursor:null!==(n=null===(r=e.metadata)||void 0===r?void 0:r.nextCursor)&&void 0!==n?n:null}}(n,e.createNewDraftMessage(),e.filter),s=a.conversations,c=a.participants,u=a.nextCursor
e._cursor=u,e._fullyLoaded=null===u||u===r,e._oldestConversationTime=al(s,e._oldestConversationTime)
var l="search"!==e.filter.kind
return e._dispatch(function(e,t){return{type:"ADD_OLDER_CONVERSATIONS",payload:{nextCursor:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,conversations:e,participants:t,fullyLoaded:arguments.length>3?arguments[3]:void 0,writeCategories:arguments.length>4?arguments[4]:void 0},requestId:arguments.length>5?arguments[5]:void 0}}(s,N(c).filter(k),e._cursor,e._fullyLoaded,l,i)),e.clientSensorTrackers.triggerRecipientMetric("conversation-list-load-more-success"),s.length})).catch((function(t){return e.clientSensorTrackers.triggerRecipientMetric("conversation-list-load-more-fail"),e._dispatch(iu(!1)),Dc(e.id)(t)})).finally((function(){e._isLoadingConversations=!1}))}},{key:"sendMessage",value:function(e,t,n,r){if(this._options.enableParameterTypeChecks){var i="sendMessage"
if(!Z(e))return Dc(this.id)(Ae.fromInvalidType(i,"convoIdentifier","URN | UUIDV4"))
if(!ue(t))return Dc(this.id)(Ae.fromInvalidType(i,"content","TextFragment"))
if(!O(n)&&!he(n))return Dc(this.id)(Ae.fromInvalidType(i,"optionalSendData","OptionalSendData"))
if(!O(r)&&!pe(r))return Dc(this.id)(Ae.fromInvalidType(i,"trackingData","TrackingData | undefined"))}var o=this._getConversationByIdentifier(e)
return o?Q(o)?(this._throttledTypingFns[o.entityUrn]&&this._throttledTypingFns[o.entityUrn][1](),this._sendMessageInExistingConvo(o,t,n,r)):this._sendFullMessageInDraftConversation(o,t,n,r):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Sending message"))}},{key:"sendPendingMessages",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!Z(e))return Dc(this.id)(Ae.fromInvalidType("sendPendingMessages","conversationId","URN | UUIDV4"))
var n=this._getConversationByIdentifier(e)
if(!n)return Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send pending messages"))
if(Q(n)){var r
if("InProgress"===(null===(r=n.status)||void 0===r?void 0:r.sending))return Dc(this.id)(Ae.fromClientErrorMemo("SENDING_QUEUE_IN_PROGRESS"))
this._dispatch(Yc(Ju(n,"InProgress")))}else{if("InProgress"===n.sending)return Dc(this.id)(Ae.fromClientErrorMemo("SENDING_QUEUE_IN_PROGRESS"))
this._dispatch(fu(n.clientId,"InProgress"))}return this._getRequestQueue("messageSend",n.clientId).start($e(this,n.clientId)).then((function(){return n.clientId})).finally((function(){0===t._getRequestQueue("messageSend",n.clientId).length&&(Q(n)?t._dispatch(Yc(Ju(n,"Ready"))):t._dispatch(fu(n.clientId,"Ready")))}))}},{key:"retrySendMessage",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var r="retrySendMessage"
if(!Z(e))return Dc(this.id)(Ae.fromInvalidType(r,"convoIdentifier","URN | UUIDV4"))
if(!Y(t))return Dc(this.id)(Ae.fromInvalidType(r,"messageId","UUIDV4"))
if(!O(n)&&!pe(n))return Dc(this.id)(Ae.fromInvalidType(r,"trackingData","TrackingData | undefined"))}var i=this._getConversationByIdentifier(e)
if(!i)return Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Retry send message"))
var o=i.messages.getByIdentifier(t)
if(!o)return Dc(this.id)(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
this._dispatch(hu(i.clientId,t))
var a=this._getConversationByIdentifier(e)
return a?Q(a)?this._sendMessageInExistingConvo(a,o.content,o.optionalSendData,n,"RETRY"):this._sendFullMessageInDraftConversation(a,o.content,o.optionalSendData,n,"RETRY"):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Retry send message getting updated state"))}},{key:"fetchEntities",value:function(e){var t=this
if(this._options.enableParameterTypeChecks){var n="fetchEntities"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(n,"entities","GenericEntity[]"))
var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=T(e))){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}}}}(e)
try{for(i.s();!(r=i.n()).done;){var o=r.value
if(!qe(o))return Dc(this.id)(Ae.fromInvalidType(n,"entities","GenericEntity[]"))}}catch(e){i.e(e)}finally{i.f()}}var a,s,c=E(it(e),2),u=c[0],l=c[1],d=this.state.incompleteRetriableEntities
return function(e,t,n){var r=e.state.incompleteRetriableEntities
t&&t.length>0&&t.map((function(t){r.findIndex((function(e){return Fe(e)&&e.conversationUrn===t&&0===e.retryCount}))>-1&&e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-received")})),n&&n.length>0&&n.map((function(t){r.findIndex((function(e){return Be(e)&&e.messageUrn===t&&0===e.retryCount}))>-1&&e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-received")}))}(this,u,l),a=u.length?bc(this.networkConfig,u,1).then((function(e){return $a(e,t.createNewDraftMessage())})).then((function(e){var n=e.conversations,r=e.participants,i=e.requestId
return t._dispatch(tu(n,N(r).filter(k),null,"SKIP_CATEGORIES",i)),t._updateLocalParticipant(),ll(t,d,n,void 0),Promise.resolve(n)})).catch(Dc(this.id)):Promise.resolve(),s=l.length?function(e,t,n){var r="getMessagesByIds",i=Aa(e,{messengerMessagesIds:t}),o=vc(r)
return hc(e,i,r,void 0)().then(o).catch(gc(r))}(this.networkConfig,l).then((function(e){return function(e){var t,n,r=(null!==(t=null===(n=e.data)||void 0===n?void 0:n.messengerMessagesByIds)&&void 0!==t?t:[]).filter(k)
if(!e||!e.data)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("messagesByIdsResponseToStates: messengerMessagesByIds response is missing"))
var i=ts(r)
return{messages:i.messages,participants:i.participants,requestId:e.requestId}}(e)})).then((function(e){var n=e.messages,r=e.participants,i=e.requestId,o=n.filter(k).reduce((function(e,t){return e[t.entityUrn]=t,e}),{})
return t.experimentalValues&&!0===t.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?(t._dispatch(zc(r)),t._dispatch(cu(o,void 0,i))):(t._dispatch(cu(o,void 0,i)),t._dispatch(zc(r))),t._updateLocalParticipant(),ll(t,d,void 0,n),Promise.resolve(n)})).catch(Dc(this.id)):Promise.resolve(),Promise.allSettled([a,s]).then((function(e){var t={conversations:{status:null},messages:{status:null}}
return e.forEach((function(e,n){var r=0===n?"conversations":"messages"
t[r]={status:e.status},"fulfilled"===e.status?t[r].value=e.value:t[r].reason=e.reason})),t}))}},{key:"editMessage",value:function(e,t,n){var r,i,o=this
if(this._options.enableParameterTypeChecks){var a="editMessage"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(a,"conversationUrn","URN"))
if(!J(t))return Dc(this.id)(Ae.fromInvalidType(a,"messageUrn","URN"))
if(!ue(n))return Dc(this.id)(Ae.fromInvalidType(a,"editedMessage","TextFragment"))}return(null===(r=this.state.conversations.getByIdentifier(e))||void 0===r||null===(i=r.messages)||void 0===i?void 0:i.getByIdentifier(t))?function(e,t,n){var r="editConversationMessage",i=JSON.stringify({patch:{$set:{body:n}}}),o=function(e,t){var n="messengerMessages/".concat(encodeURIComponent(t))
return Vo("restli",e.messengerResource,n)}(e,t),a=yc(r)
return ys(o,i).catch(gc(r)).then(a)}(this.networkConfig,t,n).then((function(){o._dispatch(cu(h({},t,{content:n,messageBodyRenderFormat:"EDITED"}),e))})).catch((function(e){return Dc(o.id)(Ae.fromClientErrorMemo("MESSAGE_EDIT_FAILED",e))})):Dc(this.id)(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))}},{key:"deleteMessage",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks){var r="deleteMessage"
if(!Z(e))return Dc(this.id)(Ae.fromInvalidType(r,"conversationId","URN | UUIDV4"))
if(!Z(t))return Dc(this.id)(Ae.fromInvalidType(r,"messageId","UUIDV4 | UUIDV4"))}var i=this._getConversationByIdentifier(e)
if(!i)return Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Delete message"))
var o=i.messages.getByIdentifier(t)
if(!o)return Dc(this.id)(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
if(o.entityUrn&&Q(i)){var a=o.entityUrn
return function(e,t){var n="deleteConversationMessage",r=JSON.stringify({messageUrn:t}),i=function(e){return Vo("restli",e.messengerResource,"messengerMessages",{action:"recall"})}(e),o=yc(n)
return ys(i,r).catch(gc(n)).then(o)}(this.networkConfig,a).then((function(){n._dispatch(cu(h({},a,{messageBodyRenderFormat:"RECALLED"}),i.entityUrn))})).catch((function(e){return Dc(n.id)(Ae.fromClientErrorMemo("MESSAGE_DELETE_FAILED",e))}))}return this._dispatch(hu(i.clientId,o.clientId)),this.options.continueOnFailure||this.sendPendingMessages(e),Promise.resolve()}},{key:"react",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState"
if(this._options.enableParameterTypeChecks){var i="react"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(i,"messageUrn","URN"))
if(!z(t))return Dc(this.id)(Ae.fromInvalidType(i,"emoji","string"))}var o=this.state.conversations.findMessage(e,r)
if(!o)return Dc(this.id)(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var a=te(this.state.conversations,e,r)
return this._reactAttemptWouldExceedCap(o,t)?Dc(this.id)(Ae.fromClientErrorMemo("REACTION_LIMIT_REACHED")):(this._dispatch(uu(e,{emoji:t,viewerReacted:!0})),this._getRequestQueue("reactions",a.clientId).enqueue((function(){return wc(n.networkConfig,e,t).then((function(){return Promise.resolve(a.clientId)})).catch((function(){return n._dispatch(uu(e,{emoji:t,viewerReacted:!1})),Promise.resolve(a.clientId)}))})))}},{key:"unreact",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState"
if(this._options.enableParameterTypeChecks){var i="unreact"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(i,"messageUrn","URN"))
if(!z(t))return Dc(this.id)(Ae.fromInvalidType(i,"emoji","string"))}var o=te(this.state.conversations,e,r)
return o?(this._dispatch(uu(e,{emoji:t,viewerReacted:!1})),this._getRequestQueue("reactions",o.clientId).enqueue((function(){return Ic(n.networkConfig,e,t).then((function(){return Promise.resolve(o.clientId)})).catch((function(){return n._dispatch(uu(e,{emoji:t,viewerReacted:!0})),Promise.resolve(o.clientId)}))}))):Dc(this.id)(Ae.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))}},{key:"getReactors",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks){var r="getReactors"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(r,"messageUrn","URN"))
if(!z(t))return Dc(this.id)(Ae.fromInvalidType(r,"emoji","string"))}return function(e,t,n){var r="getReactorsByMessageAndEmojiAPI",i=Pa(e,{messageUrn:t,emoji:n}),o=vc(r)
return vs(i).then(o).catch(gc(r))}(this.networkConfig,e,t).then((function(r){var i=function(e){if(!e.data||!e.data.messengerMessagingParticipantsByMessageAndEmoji||!e.data.messengerMessagingParticipantsByMessageAndEmoji.elements)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("reactorsResponseToReactorsState: messengerMessagingParticipantsByMessageAndEmoji response is missing"))
var t=e.requestId
return{reactors:e.data.messengerMessagingParticipantsByMessageAndEmoji.elements.reduce((function(e,t){return t&&t.hostIdentityUrn&&e.push(t.hostIdentityUrn),e}),[]),requestId:t}}(r),o=i.reactors,a=i.requestId
return n._dispatch(uu(e,{emoji:t,reactors:o},a)),Promise.resolve({reactors:o})})).catch((function(e){return Dc(n.id)(Ae.fromClientErrorMemo("GET_REACTORS_FAILED",e))}))}},{key:"updateDraftMessage",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ADD"
if(this._options.enableParameterTypeChecks){var o="updateDraftMessage"
if(!Z(e))throw Uc(this.id)(Ae.fromInvalidType(o,"conversationIdentifier","URN | UUIDV4"))
if(!O(t)&&!ue(t))throw Uc(this.id)(Ae.fromInvalidType(o,"content","TextFragment | undefined"))
if(!O(n)&&!he(n))throw Uc(this.id)(Ae.fromInvalidType(o,"optionalSendData","OptionalSendData | undefined"))
if(!ae(i))throw Uc(this.id)(Ae.fromInvalidType(o,"optionalSendData","ContentUpdateMode"))}var a=this._getConversationByIdentifier(e)
if(a)if(!Q(a)&&a.messages.length>0)Uc(this.id)(Ae.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
else{var s=a.draftMessages.length-1,c=He(a.draftMessages[s].optionalSendData,null!=n?n:{renderContent:[]},i),u=Ga(this.participant.hostIdentityUrn,t,c)
if(this.options.typingIndicatorDelayInSecond>=0&&Q(a)){var l=a.entityUrn
l in this._throttledTypingFns||(this._throttledTypingFns[l]=ct((function(){xc(r.networkConfig,l).catch(jc(r.id))}),1e3*this.options.typingIndicatorDelayInSecond)),this._throttledTypingFns[l][0]()}this._dispatch(du(a.clientId,u))}else Uc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Updating draft message"))}},{key:"sendDraftMessage",value:function(e,t){var n,r=this
if(this._options.enableParameterTypeChecks){var i="updateConversation"
if(!Z(e))return Dc(this.id)(Ae.fromInvalidType(i,"conversationId","URN | UUIDV4"))
if(!O(t)&&!pe(t))return Dc(this.id)(Ae.fromInvalidType(i,"trackingData","TrackingData | undefined"))}var o=this._getConversationByIdentifier(e)
if(!o)return Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Sending draft message"))
if(!Q(o)&&o.messages.length>0)return Dc(this.id)(Ae.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
var a=o.draftMessages.length-1,s=o.draftMessages[a],c=s.content,u=null===(n=s.optionalSendData)||void 0===n?void 0:n.renderContent,l=function(e){switch(e.kind){case"MEMBER":return"".concat(e.firstName," ").concat(e.lastName)
case"ORGANIZATION":case"CUSTOM":return"".concat(e.name.text)
default:return""}}(this.participant),d=s.clientId
if(""==c.text&&(!u||0===u.length))return Dc(this.id)(Ae.fromClientErrorMemo("DRAFT_MESSAGE_IS_EMPTY"))
this._dispatch(function(e,t,n){return{type:"DRAFT_MESSAGE_READY_TO_SEND",payload:{clientId:e,senderName:t},requestId:void 0}}(o.clientId,l))
var f,h=this._getConversationByIdentifier(e)
return h?Q(h)?(this._throttledTypingFns[h.entityUrn]&&this._throttledTypingFns[h.entityUrn][1](),"Failed"!==(null===(f=h.status)||void 0===f?void 0:f.sending)&&this._dispatch(Yc(Ju(h,"InProgress"))),this._getRequestQueue("messageSend",h.clientId).enqueue((function(){return Vu(r.networkConfig,r.id,h,d,r._dispatch.bind(r),r,r.experimentalValues.enableServerDraft?o.draftMessages[o.draftMessages.length-1].entityUrn:void 0,t).catch((function(e){return r.options.continueOnFailure||r._dispatch(Yc(Ju(h,"Failed"))),Dc(r.id)(Ae.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),d,$e(this,h.clientId)).finally((function(){0===r._getRequestQueue("messageSend",h.clientId).length&&r._dispatch(Yc(Ju(h,"Ready")))}))):("Failed"!==h.sending&&this._dispatch(fu(h.clientId,"InProgress")),this._getRequestQueue("messageSend",h.clientId).enqueue((function(){return zu(r.networkConfig,r.participant.hostIdentityUrn,h,d,r._dispatch.bind(r),r,t).then((function(e){var t
return(null===(t=r.state.conversations.getByIdentifier(e))||void 0===t?void 0:t.clientId)||o.clientId})).catch((function(e){return r.options.continueOnFailure||r._dispatch(fu(h.clientId,"Failed")),Dc(r.id)(Ae.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),d,$e(this,h.clientId)).finally((function(){0===r._getRequestQueue("messageSend",h.clientId).length&&r._dispatch(fu(h.clientId,"Ready"))}))):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Sending draft message while getting updated conversation"))}},{key:"loadOlderMessages",value:function(e,t){if(this._options.enableParameterTypeChecks){var n="loadOlderMessages"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(n,"convoUrn","URN"))
if(!V(t))return Dc(this.id)(Ae.fromInvalidType(n,"count","number"))}var r=this.state.conversations.getByIdentifier(e,"FullMailboxState")
if(!r)return Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Getting older messages"))
if(r.status.fullyLoaded||r.status.loading)return Promise.resolve(0)
var i=r.metadata.prevCursor
return i?this._getOlderMessagesByCursor(e,r,t,i):this._getOlderMessagesByTimestamp(e,r,t)}},{key:"dismissInlineWarning",value:function(e){var t=this
return this._options.enableParameterTypeChecks&&!J(e)?Dc(this.id)(Ae.fromInvalidType("dismissInlineWarning","messageUrn","URN")):function(e,t){var n="dismissInlineWarningAPI",r=JSON.stringify({messageUrn:t}),i=function(e){return Vo("restli",e.messengerResource,"messengerMessages",{action:"dismissInlineWarning"})}(e),o=yc(n)
return ys(i,r).catch(gc(n)).then(o)}(this.networkConfig,e).then((function(){return Promise.resolve()})).catch((function(e){return Dc(t.id)(Ae.fromClientErrorMemo("CANNOT_DISMISS_INLINE_WARNING",e))}))}},{key:"addParticipantsToConversation",value:function(e,t,n){var r=this
if(this._options.enableParameterTypeChecks){var i="addParticipantsToConversation"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(i,"convoUrn","URN"))
if(!Array.isArray(t))return Dc(this.id)(Ae.fromInvalidType(i,"participantUrns","URN[]"))
if(!W(t,J))return Dc(this.id)(Ae.fromInvalidType(i,"participantUrns[x]","URN"))
if(n&&!Array.isArray(n))return Dc(this.id)(Ae.fromInvalidType(i,"messageRequestContextByRecipient","MessageRequestContextByRecipient[]"))}return this._getConversationByIdentifier(e)?function(e,t,n,r){var i="addParticipantsToConversation",o=JSON.stringify({participants:t,conversationUrn:n,messageRequestContextByRecipient:r}),a=Vo("restli",e.messengerResource,"messengerConversations",{action:"addParticipants"}),s=yc(i)
return ys(a,o).catch(gc(i)).then(s)}(this.networkConfig,t,e,n).then((function(){return Promise.resolve()})).catch((function(e){return Dc(r.id)(Ae.fromClientErrorMemo("CANNOT_ADD_PARTICIPANTS_IN_CONVERSATION",e))})):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Adding participants"))}},{key:"removeParticipantsFromConversation",value:function(e,t){var n,r,i,o,a,s,c,u=this,l="removeParticipantsFromConversation"
return J(e)?Array.isArray(t)?W(t,J)?this._getConversationByIdentifier(e)?(n=this.networkConfig,r=t,i=e,o="removeParticipantsFromConversation",a=JSON.stringify({participants:r,conversationUrn:i}),s=Vo("restli",n.messengerResource,"messengerConversations",{action:"removeParticipants"}),c=yc(o),ys(s,a).catch(gc(o)).then(c)).then((function(){return Promise.resolve()})).catch((function(e){return Dc(u.id)(Ae.fromClientErrorMemo("CANNOT_REMOVE_PARTICIPANTS_FROM_CONVERSATION",e))})):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Removing participants")):Dc(this.id)(Ae.fromInvalidType(l,"participantUrns[x]","URN")):Dc(this.id)(Ae.fromInvalidType(l,"participantUrns","URN[]")):Dc(this.id)(Ae.fromInvalidType(l,"convoUrn","URN"))}},{key:"markAllConversationsAsRead",value:function(e){var t=this
if(this._options.enableParameterTypeChecks){var n="markAllConversationsAsRead"
if(!Array.isArray(e))return Dc(this.id)(Ae.fromInvalidType(n,"categories","ConversationCategory[]"))
if(!W(e,de))return Dc(this.id)(Ae.fromInvalidType(n,"categories[x]","ConversationCategory"))}var r=e.map((function(e){return e.toUpperCase()}))
return function(e,t,n){var r="markAllConversationsAsReadAPI",i=Na(e,{mailboxUrn:t,categories:n}),o=vc(r)
return vs(i).catch(gc(r)).then(o)}(this.networkConfig,this.id,e).then((function(e){var n=function(e){var t,n
if(void 0===(null===(t=e.data)||void 0===t||null===(n=t.doMarkAllConversationsAsReadMessengerConversations)||void 0===n?void 0:n.result))throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("markAllConversationsAsReadResponseToState: doMarkAllConversationsAsReadMessengerConversations is missing"))
return{allSynchronouslyProcessed:e.data.doMarkAllConversationsAsReadMessengerConversations.result.allSynchronouslyProcessed,requestId:e.requestId}}(e),i=n.allSynchronouslyProcessed,o=n.requestId
return i&&t._dispatch(function(e,t,n){return{type:"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES",payload:{categories:e,conversationUpdate:{read:!0}},requestId:n}}(r,0,o)),Promise.resolve()}))}},{key:"conversationAccept",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var r="conversationAccept"
if(!J(e))return Dc(this.id)(Ae.fromInvalidType(r,"convoUrn","URN"))
if(!function(e){return"boolean"==typeof e}(t))return Dc(this.id)(Ae.fromInvalidType(r,"state","boolean"))
if(!O(n)&&!ue(n))return Dc(this.id)(Ae.fromInvalidType(r,"message","TextFragment | undefined"))}var i=this._getConversationByIdentifier(e)
return i&&Q(i)?n?this.sendMessage(e,n,{renderContent:[],conversationState:t?"ACCEPTED":"DECLINED"}):this.updateConversation(e,{state:t?"ACCEPTED":"DECLINED"}):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Conversation accept"))}},{key:"_getSeenReceipts",value:function(e){var t,n,r,i,o,a=this
return(t=this.networkConfig,n=e,r="getSeenReceiptsByConversation",i=Ra(t,{conversationUrn:n}),o=vc(r),vs(i).then(o).catch(gc(r))).then((function(t){var n=function(e){if(!e.data||!e.data.messengerSeenReceiptsByConversation||!e.data.messengerSeenReceiptsByConversation.elements)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("seenReceiptsResponseToSeenReceiptsState: messengerSeenReceiptsByConversation response is missing"))
var t=e.data.messengerSeenReceiptsByConversation.elements,n=e.requestId,r={}
return t.forEach((function(e){var t={participantUrn:e.seenByParticipant.hostIdentityUrn,seenAt:e.seenAt},n=e.message.entityUrn
r[n]?r[n].push(t):r[n]=[t]})),{seenReceiptsMap:r,requestId:n}}(t),r=n.seenReceiptsMap,i=n.requestId
return a._dispatch(Yc(h({},e,{seenReceiptsMap:r}),i)),Promise.resolve(r)}))}},{key:"_getQuickReplies",value:function(e){var t,n,r,i,o,a=this
return(t=this.networkConfig,n=e,r="getQuickRepliesByConversationAPI",i=Da(t,{conversationUrn:n}),o=vc(r),vs(i).then(o).catch(gc(r))).then((function(t){var n=function(e){if(!e.data||!e.data.messengerQuickRepliesByConversation||!e.data.messengerQuickRepliesByConversation.elements)throw Ae.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",ve("quickRepliesResponseToQuickRepliesState: messengerQuickRepliesByConversation response is missing"))
return{quickReplies:e.data.messengerQuickRepliesByConversation.elements,requestId:e.requestId}}(t),r=n.quickReplies,i=n.requestId,o=a._getConversationByIdentifier(e)
if(!o||!Q(o))return Promise.resolve(void 0)
var s=Je(o,r)
return a._dispatch(function(e,t,n){return{type:"UPDATE_CONVERSATION_QUICK_REPLIES",payload:{conversationUrn:e,quickReplies:t},requestId:n}}(e,s,i)),Promise.resolve(r)}))}},{key:"createNewDraftMessage",value:function(){return Ga(this.participant.hostIdentityUrn)}},{key:"_getConversationByIdentifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FullMailboxState"
return Y(e)&&this.state.draftConversations.has(e)?this.state.draftConversations.get(e):this.state.conversations.getByIdentifier(e,t)}},{key:"networkConfig",get:function(){return this._retrieveNetworkConfig()}},{key:"_notifyErrorSubscribers",value:function(e){this._stateSubscribers.length>0?this._stateSubscribers.forEach((function(t){var n
return null===(n=t.error)||void 0===n?void 0:n.call(t,e)})):this._pendingErrors.push(e)}},{key:"_getOlderMessagesByTimestamp",value:function(e,t,n,r){var i=this
this._dispatch(ru(t.clientId,!0))
var o=t.messages.length>0?t.messages.at(0).deliveredAt.getTime():Date.now()
return function(e,t,n,r,i,o){var a="getConversationMessagesByTimestamp",s=Ia(e,{deliveredAt:n,conversationUrn:t,countBefore:r,countAfter:0}),c=vc(a)
return hc(e,s,a,o)().then(c).catch(gc(a))}(this.networkConfig,e,o,n,0,r).then((function(e){var n,r,o,a,s,c,u=null===(n=e.data)||void 0===n||null===(r=n.messengerMessagesByAnchorTimestamp)||void 0===r||null===(o=r.metadata)||void 0===o?void 0:o.prevCursor,l=null!==(a=null===(s=e.data)||void 0===s||null===(c=s.messengerMessagesByAnchorTimestamp)||void 0===c?void 0:c.elements)&&void 0!==a?a:[],d=ts(l),f=d.messages,h=d.participants,p=null===u
return i._dispatch(ru(t.clientId,!1)),i._dispatch(zc(h,e.requestId)),i._dispatch(ou(f,t.entityUrn,p,u,e.requestId)),i.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-success"),f.length})).catch((function(e){return i._dispatch(ru(t.clientId,!1)),i.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-fail"),Dc(i.id)(Ae.fromClientErrorMemo("LOAD_OLDER_MESSAGES_FAILED",e))}))}},{key:"_getOlderMessagesByCursor",value:function(e,t,n,r,i){var o=this
return this._dispatch(ru(t.clientId,!0)),function(e,t,n,r,i){var o="getConversationMessagesByConversation",a={conversationUrn:t,count:n}
r&&(a.prevCursor=r)
var s=wa(e,a),c=vc(o)
return hc(e,s,o,i)().then(c).catch(gc(o))}(this.networkConfig,e,n,r,i).then((function(e){var n,i,a,s,c,u,l=null===(n=e.data)||void 0===n||null===(i=n.messengerMessagesByConversation)||void 0===i||null===(a=i.metadata)||void 0===a?void 0:a.prevCursor,d=null!==(s=null===(c=e.data)||void 0===c||null===(u=c.messengerMessagesByConversation)||void 0===u?void 0:u.elements)&&void 0!==s?s:[],f=ts(d),h=f.messages,p=f.participants,g=null===l||r===l
return o._dispatch(ru(t.clientId,!1)),o._dispatch(zc(p,e.requestId)),o._dispatch(ou(h,t.entityUrn,g,l,e.requestId)),o.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-success"),h.length})).catch((function(e){return o._dispatch(ru(t.clientId,!1)),o.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-fail"),Dc(o.id)(Ae.fromClientErrorMemo("LOAD_OLDER_MESSAGES_FAILED",e))}))}},{key:"_getRequestQueue",value:function(t,n){return e._queues[t][n]||(e._queues[t][n]=new hl(this.options.continueOnFailure)),e._queues[t][n]}},{key:"_sendMessageInExistingConvo",value:function(e,t,n,r){var i,o=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"FIRST",s=Ba({senderUrn:this.participant.hostIdentityUrn,content:t,optionalSendData:n})
this._dispatch(nu(s,e.clientId))
var c=this.state.conversations.getByIdentifier(e.entityUrn,"FullMailboxState")
return c?("Failed"!==(null===(i=c.status)||void 0===i?void 0:i.sending)&&this._dispatch(Yc(Ju(c,"InProgress"))),this._getRequestQueue("messageSend",c.clientId).enqueue((function(){return Vu(o.networkConfig,o.id,c,s.clientId,o._dispatch.bind(o),o,void 0,r,a).catch((function(e){return o.options.continueOnFailure||o._dispatch(Yc(Ju(c,"Failed"))),Dc(o.id)(Ae.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),s.clientId,$e(this,c.clientId)).finally((function(){0===o._getRequestQueue("messageSend",c.clientId).length&&o._dispatch(Yc(Ju(c,"Ready")))}))):Dc(this.id)(Ae.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send message in existing conversation"))}},{key:"_updateLocalParticipant",value:function(){var e,t=this
this._localParticipant=null!==(e=N(kc(this._id).participants).filter(k).find((function(e){return e.entityUrn===t._localParticipant.entityUrn})))&&void 0!==e?e:this._localParticipant}},{key:"_dispatchCategoryUpdate",value:function(e,t,n){var r=this,i=e.reduce((function(e,i){var a,s,c=null!==(a=null===(s=r.state.conversations.getByIdentifier(i))||void 0===s?void 0:s.categories)&&void 0!==a?a:[]
return o(o({},e),{},h({},i,"ADD"===n?{categories:[].concat(_(c.filter((function(e){return e!==t}))),[t])}:{categories:c.filter((function(e){return e!==t}))}))}),{})
this._dispatch(Yc(i))}},{key:"_reactAttemptWouldExceedCap",value:function(e,t){return 20===e.reactions.length&&!e.reactions.find((function(e){return e.emoji===t}))}},{key:"_updateConvoStateListClientId",value:function(e){var t=this,n=[]
return e.forEach((function(e){var r=e.entityUrn,i=t.state.conversations.getByIdentifier(r,"FullMailboxState")
if(i){var a=o(o({},e),{},{clientId:i.clientId})
n.push(a)}else n.push(e)})),n}}]),e}()
h(vl,"_queues",{messageSend:{},reactions:{}})
var yl=function(){function e(){l(this,e)}return f(e,null,[{key:"prioritySortedListMaxSize",get:function(){return e.poolCap-e.pinnedMailboxList.length}},{key:"prioritySortedListAvailableSpace",get:function(){return e.prioritySortedListMaxSize-e.prioritySortedMailboxList.length}},{key:"sortedPrioritySortedMailboxList",get:function(){return e.prioritySortedMailboxList.sort((function(e,t){var n,r,i=null===(n=kc(e.urn))||void 0===n?void 0:n.lastActivityAt,o=null===(r=kc(t.urn))||void 0===r?void 0:r.lastActivityAt
return!i&&o?1:i&&!o?-1:i||o?o.getTime()-i.getTime():0}))}},{key:"sortAndUpdatePrioritySortedMailboxList",value:function(){e.prioritySortedMailboxList=e.sortedPrioritySortedMailboxList}},{key:"clear",value:function(){e.pinnedMailboxList=[],e.prioritySortedMailboxList=[]}},{key:"findConnection",value:function(t){return e.pinnedMailboxList.concat(e.prioritySortedMailboxList).find((function(e){return e.urn===t}))}},{key:"addMailbox",value:function(t,n,r){if(Xu(n))e.pinnedMailboxList=e.pinnedMailboxList.concat(t)
else{if(0===e.prioritySortedListAvailableSpace){e.sortAndUpdatePrioritySortedMailboxList()
var i=e.prioritySortedMailboxList[e.prioritySortedMailboxList.length-1]
i&&(i.urn===t.urn?e.removeMailboxFromPool(i.urn):e.disconnectMailbox(i.urn,r))}e.prioritySortedMailboxList=[t].concat(e.prioritySortedMailboxList)}}},{key:"removeMailboxFromPool",value:function(t){e.findConnection(t)&&(e.prioritySortedMailboxList=e.prioritySortedMailboxList.filter((function(e){return e.urn!==t})))}},{key:"disconnectMailbox",value:function(t,n){var i=e.findConnection(t)
i&&(e.removeMailboxFromPool(t),null==n||n.triggerGeneralMetric("unlimited-mailboxes-disconnect-mailbox"),(0,r.getClient)().removeContext(t),i.mailboxHandlers&&function(e,t){var n=(0,r.getClient)(),i=_(E(e.getRealtimeTopics(),2)[1].values()).filter((function(e){return!e.endsWith(":myself")}))
i.length>0&&(B("Unsubscribing from broadcast topics","Number of topics: ".concat(i.length)),n.removeSubscriptions(i).then((function(e){7===e.succeeded.length?null==t||t.triggerGeneralMetric("unlimited-mailboxes-unsubscribe-topics"):B("Removing broadcast topics subscriptions failed for these topics:",e.failed.join(", "))})).catch((function(e){B("Removing broadcast topics subscriptions failed! ❌",e)})))}(i.mailboxHandlers,n),function(e){(function(e){var t=Me[e]
ke(t)&&t.observers.forEach((function(e){return e.complete()}))})(e),Me[e]=Re}(t))}}]),e}()
h(yl,"pinnedMailboxList",[]),h(yl,"prioritySortedMailboxList",[]),h(yl,"poolCap",5)
var bl=function(){function e(t,n){var i,o=this
l(this,e),h(this,"_participantClientId",ma()),h(this,"_urn",void 0),h(this,"_options",void 0),h(this,"_realtimeEventsTopics",new Map),h(this,"_realtimeAuthToken",null),h(this,"_networkConfig",null),h(this,"_renewAuthTokenTask",null),h(this,"mailboxHandlers",null),this._urn=t,this._options=n,this._renewAuthTokenTask=new r.Task((function(){o._fetchAndUpdateAuth(o._options)})),e.clientSensorTrackersMap[t]=ml(null===(i=n.trackingOptions)||void 0===i?void 0:i.incrementMetricCounterHandler)}return f(e,[{key:"_retrieveNetworkConfig",value:function(){return O(this._networkConfig)&&(this._networkConfig=el(this._options)),this._networkConfig}},{key:"networkConfig",get:function(){return this._retrieveNetworkConfig()}},{key:"_dispatch",value:function(e){var t=this,n=this._options.decorators,r=n.mailboxDecorator,i=n.messagesDecorator,o=n.participantsDecorator,a=Mc(this._urn)
if(O(a))throw Ae.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = _dispatch(), mailboxUrn = ".concat(this._urn,", mailboxStore = ").concat(s(a))))
var c,u=kc(this._urn),l=u.status.lastRequestId
switch(e.requestId&&l>e.requestId&&q("Invalid requestId: the store was updated since the request was made. Store lastRequestId: ".concat(l,", action requestId: ").concat(e.requestId)),a.dispatch(e),u=kc(this._urn),e.type){case"CONNECT":if(r)try{r(u).then((function(e){e&&a.dispatch(function(e){return{type:"DECORATE_MAILBOX",payload:e}}(e))})).catch(Lc(this._urn,"MAILBOX_DECORATE_FAILED"))}catch(e){Lc(this._urn,"MAILBOX_DECORATE_FAILED")(e)}break
case"ADD_MAILBOX_PARTICIPANTS":var d=e.payload.participants
d.length>0&&o&&this._invokeParticipantsDecorator(o,d,a)
break
case"ADD_CONVERSATION":var f=e.payload,h=f.conversation,p=f.participants,g=ze([h])
this._invokeDecorators([h],p,g)
break
case"ADD_OLDER_CONVERSATIONS":case"ADD_CONVERSATIONS":var m=e.payload,v=m.conversations,y=m.participants,b=ze(v)
this._invokeDecorators(v,y,b)
break
case"ADD_NEW_MESSAGE_BY_CONVO_URN":var _=e.payload,T=_.message,S=_.conversationUrn
i&&this._invokeMessageDecorator(i,S,[T],a)
break
case"ADD_NEW_MESSAGES":case"ADD_OLDER_MESSAGES":var x=e.payload,C=x.messages,A=x.conversationUrn
C.length&&i&&this._invokeMessageDecorator(i,A,C,a)
break
case"UPDATE_MESSAGES":if(i){var w=e.payload.conversationUrn,I=e.payload.messageUpdateMap
if(!w){var k=R(I),M=u.conversations.find((function(e){return void 0!==e.messages.getByIdentifier(k[0])}),"FullMailboxState")
if(!M)return
w=M.entityUrn}(c=I,Object.entries(c)).forEach((function(e){var n=E(e,2),r=n[0],o=n[1]
if(w)try{i([o]).then(function(e,t,n){return function(r){e.dispatch(function(e,t,n){return{type:"DECORATE_MESSAGE",payload:{messageUrn:t,conversationUrn:n,data:e}}}(r,n,t))}}(a,w,r)).catch(Lc(t._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){Lc(t._urn,"MESSAGE_DECORATE_FAILED")(e)}}))}}}},{key:"_invokeParticipantsDecorator",value:function(e,t,n){try{e(t).then(function(e,t){return function(n){var r
e.dispatch((r=U(t.map((function(e,t){return[e.entityUrn,n[t]]}))),{type:"DECORATE_PARTICIPANTS",payload:{data:r}}))}}(n,t)).catch(Lc(this._urn,"PARTICIPANTS_DECORATE_FAILED"))}catch(e){var r=Ae.fromUnknown(e,"PARTICIPANTS_DECORATE_FAILED")
jc(this._urn)(r)}}},{key:"_invokeAllMessageDecorator",value:function(e,t,n){try{e(t).then((i=n,o=t,function(e){var t
e.length>0&&i.dispatch((t=U(o.map((function(t,n){return[t.clientId,e[n]]}))),{type:"DECORATE_ALL_MESSAGES",payload:{data:t}}))})).catch(Lc(this._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){var r=Ae.fromUnknown(e,"MESSAGE_DECORATE_FAILED")
jc(this._urn)(r)}var i,o}},{key:"_invokeMessageDecorator",value:function(e,t,n,r){try{e(n).then(function(e,t,n){return function(r){r.length>0&&e.dispatch(function(e,t){return{type:"DECORATE_MESSAGES",payload:{data:t,conversationUrn:e}}}(t,U(n.map((function(e,t){return[e.clientId,r[t]]})))))}}(r,t,n)).catch(Lc(this._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){var i=Ae.fromUnknown(e,"MESSAGE_DECORATE_FAILED")
jc(this._urn)(i)}}},{key:"_invokeDecorators",value:function(e,t,n){var r=this._options.decorators,i=r.messagesDecorator,o=r.conversationsDecorator,a=r.participantsDecorator,c=Mc(this._urn)
if(O(c))throw Ae.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = _invokeDecorators(), mailboxUrn = ".concat(this._urn,", mailboxStore = ").concat(s(c))))
e.length>0&&o&&this._invokeConversationsDecorator(o,e,c),t.length>0&&a&&this._invokeParticipantsDecorator(a,t,c),n.length>0&&i&&this._invokeAllMessageDecorator(i,n,c)}},{key:"_invokeConversationsDecorator",value:function(e,t,n){try{var r=st.fromConversationArray(t)
e(r).then(function(e,t){return function(n){var r
n.length>0&&e.dispatch((r=U(t.map((function(e,t){return[e.clientId,n[t]]}))),{type:"DECORATE_CONVERSATIONS",payload:{data:r}}))}}(n,r)).catch(Lc(this._urn,"CONVERSATION_DECORATE_FAILED"))}catch(e){var i=Ae.fromUnknown(e,"CONVERSATION_DECORATE_FAILED")
jc(this._urn)(i)}}},{key:"_getRealtimeTopics",value:function(){return[this._realtimeAuthToken,this._realtimeEventsTopics]}},{key:"_updateRealtimeAuth",value:function(e){var t,n
this._realtimeEventsTopics=(n=e.realtimeTopics)?new Map([["TypingIndicator",n.typingIndicatorsBroadcastTopicUrn],["NewMessage",n.messagesBroadcastTopicUrn],["ConversationUpdate",n.conversationsBroadcastTopicUrn],["ConversationDelete",n.conversationDeletesBroadcastTopicUrn],["SeenReceipt",n.messageSeenReceiptsBroadcastTopicUrn],["QuickReplies",n.replySuggestionBroadcastTopicUrn],["ReactionSummary",n.messageReactionSummariesBroadcastTopicUrn]]):new Map([["TypingIndicator","urn:li-realtime:typingIndicatorsTopic:urn:li-realtime:myself"],["NewMessage","urn:li-realtime:messagesTopic:urn:li-realtime:myself"],["ConversationUpdate","urn:li-realtime:conversationsTopic:urn:li-realtime:myself"],["ConversationDelete","urn:li-realtime:conversationDeletesTopic:urn:li-realtime:myself"],["SeenReceipt","urn:li-realtime:messageSeenReceiptsTopic:urn:li-realtime:myself"],["QuickReplies","urn:li-realtime:replySuggestionTopicV2:urn:li-realtime:myself"],["ReactionSummary","urn:li-realtime:messageReactionSummariesTopic:urn:li-realtime:myself"]]),this._realtimeAuthToken=null!==(t=e.authToken)&&void 0!==t?t:null}},{key:"_fetchAndUpdateAuth",value:function(e){var t=this
return function(e,t,n){var r
return"enabled"!==(null===(r=e.experimental)||void 0===r?void 0:r.RealtimeForSecondaryMailbox)||n?Promise.resolve({}):(B("Retrieving mailbox broadcast topics for ",t),function(e,t){var n="getRealtimeAuthTokenAPI",r=Ua(e,{mailboxUrn:t}),i=vc(n)
return vs(r).then(i).catch(gc(n))}(e,t).then((function(e){var n,r
as(e,"messengerMailboxRealtimeSubscriptionAuthorizationTokensByMailboxUrnsInBatch")
var i,o=(i=(null!==(n=null===(r=e.data)||void 0===r?void 0:r.messengerMailboxRealtimeSubscriptionAuthorizationTokensByMailboxUrnsInBatch)&&void 0!==n?n:[]).filter(k).map((function(e){var t
return null!==(t=e.elements)&&void 0!==t?t:[]})),i.reduce(((e,t)=>[...e,...t]),[])).filter(k),a=o.find(gt(function(e){return function(t){return e===t}}(t),(function(e){return e.mailboxUrn})))
return a?{realtimeTopics:a,authToken:a.token}:{}})).catch((function(e){var t
if(422===(null===(t=e.originalStatusCodes)||void 0===t?void 0:t[0]))return Promise.resolve({})
throw e})))}(this.networkConfig,this._urn,Xu(e)).then((function(n){var i
t._renewAuthTokenTask&&t._renewAuthTokenTask.cancel(),t._realtimeAuthToken&&n.authToken&&(B("updating auth token for ".concat(t.urn," to realtime"),"...".concat(X(20,n.authToken))),function(e,t){if(e&&t&&e!==t){var n=(0,r.getClient)()
n&&n.updateAuthToken(e,t)}}(n.authToken,t._realtimeAuthToken),t._realtimeAuthToken=n.authToken),n.authToken&&(B("Start countdown to renew JWT in ".concat(12," minutes")),null===(i=t._renewAuthTokenTask)||void 0===i||i.start(72e4)),t._updateRealtimeAuth(n)
try{var o,a
n.authToken&&(null===(o=e.trackingOptions)||void 0===o||null===(a=o.incrementMetricCounterHandler)||void 0===a||a.call(o,{groupName:"messengerData",metricName:"fetch-jwt-token-success"}))}catch(e){B("Error while firing client sensor for JWT",e)}return n})).catch((function(t){var n,r
throw null===(n=e.trackingOptions)||void 0===n||null===(r=n.incrementMetricCounterHandler)||void 0===r||r.call(n,{groupName:"messengerData",metricName:"fetch-jwt-token-failed"}),B("Error fetching JWT",t),t}))}},{key:"_createMailboxHandlers",value:function(e,t){var n=this
return this.mailboxHandlers={actorUrn:this._options.viewerUrn,dispatch:this._dispatch.bind(this),experimentalValues:this._options.experimental,fetchAndUpdateTopics:function(){return n._fetchAndUpdateAuth(n._options)},getRealtimeTopics:this._getRealtimeTopics.bind(this),handleRealtimeNewMessage:rl(e,t,this._dispatch.bind(this)),mailboxType:this._options.mailboxType,triggerChainSync:e.syncConversations.bind(e),triggerMessagesSync:function(t,n){return e.syncConversationMessages(t,"FullMailboxState",n)}},this.mailboxHandlers}},{key:"urn",get:function(){return this._urn}},{key:"preloadMailboxData",value:function(){var e=this
B("Bootstrapping mailbox data for ",this._urn)
var t=kc(this._urn)
if(O(t))return Promise.reject(new Error("Mailbox state not could not be found"))
if(Ke(t))return Promise.resolve()
var n,r,i,o=fl(this._participantClientId,this._urn)
return(n=this._urn,r=this._options,i=o,Yu(n,r,i)).then((function(t){var n=t.data,r=n.conversations,i=n.participants,o=n.status,a=r.filter(Q)
return e._dispatch({type:"CONNECT"}),e._dispatch(tu(a,N(i).filter(k),o.syncToken,"ADD_CATEGORIES",o.lastRequestId)),Promise.resolve()}))}},{key:"getMailbox",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rc,n=arguments.length>1?arguments[1]:void 0
if(this._options.enableParameterTypeChecks){if(!me(t))return Dc(this.urn)(Ae.fromInvalidType("getMailbox","filter","InputMailboxFilter"))
if(n&&(Array.isArray(n)||!pe(n)))return Dc(this.urn)(Ae.fromInvalidType("getMailbox","trackingData","TrackingData"))}B("Activating a mailbox for: ",this._urn)
var r=ns(t)?o(o({},t),{},{id:ma()}):t,i=new vl(this._urn,this._options,this._participantClientId,r,this._dispatch.bind(this),this._retrieveNetworkConfig.bind(this)),a=kc(this._urn)
if(O(a))throw Ae.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = getMailbox(), mailboxUrn = ".concat(this._urn,", mailboxState = ").concat(s(a))))
return a&&!Ke(a)?this._fetchAndUpdateAuth(this._options).then((function(){return Qu(e._urn,e._options,i.participant,e._createMailboxHandlers(i,e.networkConfig),n,i.clientSensorTrackers)})).then((function(t){var n,r,o,a,s,c,u=t.data,l=u.conversations,d=u.participants,f=u.status,h=l.filter(Q)
return i._oldestConversationTime=l.length>0?al(_(l)):0,e._dispatch({type:"CONNECT"}),e._dispatch(tu(h,N(d).filter(k),f.syncToken,"ADD_CATEGORIES",f.lastRequestId)),i._updateLocalParticipant(),Bu(l.map((function(e){return e.backendUrn})),!0,e._urn,i.options.viewerUrn,null===(n=i.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),i.clientSensorTrackers.triggerRecipientMetric("conversation-list-sync-success"),f.syncToken||Nc(e.urn,Ae.fromApiErrorMemo("ERRORS_IN_RESPONSE",ve("SyncToken is null on initial Mailbox bootstrap"))),(r=e.networkConfig,o=e._urn,a="getMailboxUnreadCounts",s=_a(r,{mailboxUrn:o}),c=vc(a),vs(s).then(c).catch(gc(a))).then((function(e){return rs(e)})).then((function(t){Mc(e._urn)?e._dispatch({type:"UPDATE_MAILBOX_UNREAD_COUNT",payload:t.counters,requestId:t.requestId}):q("Mailbox was destroyed before unread counts were received")})).catch(Dc(e._urn)),i})):(i.state.conversations.length<20&&(i._updateLocalParticipant(),i.loadOlderConversations()),Promise.resolve(i))}},{key:"teardown",value:function(){this.networkConfig.teardown()}}],[{key:"create",value:function(t,n){var r,i
n.headers&&(r=n.headers,ds=r),n.graphQlQueryIds&&(i=n.graphQlQueryIds,Object.keys(i).forEach((function(e){vu.set(e,i[e])}))),Wu(t,{connected:!1,loading:!0})
var o=new e(t,n)
return Promise.resolve(o)}}]),e}()
function El(e,t){if(B("4.0.44","Connecting to",e),O(e)||!J(e))return Promise.reject(Ae.fromInvalidType("connectToMailbox","mailboxUrn","URN"))
if(!K(t))return Promise.reject(Ae.fromInvalidType("connectToMailbox","options","Partial<MailboxOptions>"))
var n=yl.findConnection(e)
if(n)return Promise.resolve(n)
var r=o(o({},ja),t),i=bl.create(e,r)
return function(e,t,n){Tl.apply(this,arguments)}(i,r,e),Xu(t)||(function(e){return!0===e.isPreconnected}(t)?bl.clientSensorTrackersMap[e].triggerGeneralMetric("unlimited-mailboxes-pre-connect-mailbox"):bl.clientSensorTrackersMap[e].triggerGeneralMetric("unlimited-mailboxes-connect-mailbox")),i}function _l(e){if(!Array.isArray(e))return[Promise.reject(Ae.fromInvalidType("connectToMailboxes","mailboxesToConnect","MailboxConnectInitialData[]"))]
var t=e
e.length>yl.prioritySortedListMaxSize&&(t=e.slice(0,yl.prioritySortedListMaxSize))
var n=yl.prioritySortedMailboxList
if(yl.prioritySortedMailboxList.length+t.length>yl.prioritySortedListAvailableSpace){yl.sortAndUpdatePrioritySortedMailboxList()
var r=yl.prioritySortedMailboxList.map((function(e){return e.urn}))
t.filter((function(e){return r.includes(e.mailboxUrn)})).forEach((function(e){yl.removeMailboxFromPool(e.mailboxUrn)}))
var i=yl.prioritySortedListMaxSize-t.length,o=yl.prioritySortedMailboxList.length-i
o>0&&yl.prioritySortedMailboxList.slice(-o).forEach((function(e){yl.disconnectMailbox(e.urn)})),n=yl.prioritySortedMailboxList.slice(0,i)}var a=t.map((function(e){return El(e.mailboxUrn,e.mboxOptions)}))
return Promise.all(a).then((function(e){yl.prioritySortedMailboxList=e.concat(n)})),a}function Tl(){return(Tl=u(a().mark((function e(t,n,r){var i
return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t
case 2:i=e.sent,yl.addMailbox(i,n,bl.clientSensorTrackersMap[r])
case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}h(bl,"clientSensorTrackersMap",{})},46670:(e,t,n)=>{"use strict"
function r(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}n.r(t),n.d(t,{Subject:()=>g,conversationDraftMessageObservable:()=>C,conversationMessagesObservable:()=>x,conversationObservable:()=>S,distinct:()=>v,distinctUntilChanged:()=>m,incompleteRetriableEntitiesObservable:()=>A,newMessageFromMailboxObservable:()=>T,resetAlertedMessages:()=>E,toMessengerObservable:()=>y})
var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=()=>{}
function s(e){var t=[e]
return t.tag=0,t}function c(e){var t=[e]
return t.tag=1,t}function u(e){return t=>n=>{var r=a
t((t=>{0===t?n(0):0===t.tag?(r=t[0],n(t)):e(t[0])?n(t):r(0)}))}}function l(e){return t=>n=>t((t=>{0===t||0===t.tag?n(t):n(c(e(t[0])))}))}var d,f=()=>Symbol.observable||"@@observable"
function h(e){return e=e[f()]?e[f()]():e,t=>{var n=e.subscribe({next(e){t(c(e))},complete(){t(0)},error(){}})
t(s((e=>{1===e&&n.unsubscribe()})))}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
for(var r=t[0],i=1,o=t.length;i<o;i++)r=t[i](r)
return r}d=Symbol.observable
var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"_subscribers",new Set),r(this,"_lastState",void 0),r(this,"_complete",!1),this._lastState=null!=t?t:null}var t,n
return t=e,(n=[{key:"subscribe",value:function(e){var t=this,n="function"==typeof e?{next:e}:e
return this._subscribers.add(n),null!==this._lastState&&n.next(this._lastState),{unsubscribe:function(){return t._subscribers.delete(n)}}}},{key:"subscribersCount",get:function(){return this._subscribers.size}},{key:"state",get:function(){return this._lastState}},{key:"observable",get:function(){return this}},{key:d,value:function(){return this}},{key:o,value:function(){return this}},{key:"emit",value:function(e){this._complete||(this._lastState=e,this._subscribers.forEach((function(t){return t.next(e)})))}},{key:"error",value:function(e){this._complete||this._subscribers.forEach((function(t){var n
return null===(n=t.error)||void 0===n?void 0:n.call(t,e)}))}},{key:"complete",value:function(){this._complete||(this._complete=!0,this._subscribers.forEach((function(e){var t
return null===(t=e.complete)||void 0===t?void 0:t.call(e)})))}}])&&function(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,i(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),m=function(e){return function(t){return p(t,function(e,t){return e=>n=>{var r=t
e((e=>{0===e?n(0):0===e.tag?n(e):n(c(r=function(e,t){return e.prev=e.current,e.current=t,e}(r,e[0])))}))}}(0,{prev:void 0,current:void 0}),u((function(t){return null==t.prev||!e(t.prev,t.current)})),l((function(e){return e.current})))}},v=function(){return m((function(e,t){return e===t}))},y=function(e){var t,n=new g
return p(e,(t=function(e){n.emit(e)},e=>{var n=a,r=!1
return e((e=>{0===e?r=!0:0===e.tag?(n=e[0])(0):r||(t(e[0]),n(0))})),{unsubscribe(){r||(r=!0,n(1))}}})),n},b=new Map,E=function(){b.clear()},_=function(e,t){return u((function(n){var r,i=null!==(r=b.get(e))&&void 0!==r?r:new Set
if(n&&n.entityUrn){var o=!i.has(n.entityUrn)&&function(e,t){var n=Date.now()
return e.deliveredAt.getTime()>n-t}(n,t)
return i.add(n.entityUrn),b.set(e,i),o}return!1}))},T=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=l((function(e){var t
return null===(t=e.conversations.first())||void 0===t?void 0:t.messages.last()})),a=(r=n,u((function(e){return void 0!==e&&e.senderUrn!==r}))),s=_(t,1e3*i),c=h(e)
return y(p(c,o,a,s))},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",r=l((function(e){return e.conversations.getByIdentifier(t,n)})),i=h(e)
return y(p(i,r,v()))},x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",r=l((function(e){return e.conversations.getByIdentifier(t,n)})),i=h(e)
return y(p(i,r,l((function(e){return null==e?void 0:e.messages})),v()))},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",r=l((function(e){return e.conversations.getByIdentifier(t,n)})),i=h(e)
return y(p(i,r,l((function(e){return null==e?void 0:e.draftMessages})),v()))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=h(e),r=l((function(e){return e.incompleteRetriableEntities})),i=u((function(e){return e.length>0}))
return y(p(n,r,v(),i,function(e){return t=>n=>{var r=0
t((t=>{0!==t&&0===t.tag?n(t):(r++,setTimeout((()=>{r&&(r--,n(t))}),e))}))}}(t),function(e){return t=>n=>{var r,i=!1
t((t=>{if(0===t)r&&clearTimeout(r),n(0)
else if(0===t.tag){var o=t[0]
n(s((e=>{1===e?(r&&clearTimeout(r),o(1)):o(0)})))}else i||(i=!0,r&&clearTimeout(r),r=setTimeout((()=>{r=void 0,i=!1}),e(t[0])),n(t))}))}}((function(){return t}))))}},17:e=>{var t
self,t=()=>(()=>{"use strict"
var e={150:(e,t)=>{var n
Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0,(n=t.ErrorCode||(t.ErrorCode={})).BadArgument="BadArgument",n.Timeout="Timeout",n.TokenExpired="TokenExpired",n.Throttled="Throttled",n.ServerError="ServerError",n.InvalidSubdomain="InvalidSubdomain"},925:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
return e},r.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.isValidSubdomain=t.close=t.launchAsync=void 0
var i=n(411),o=n(150),a="ImmersiveReader-Preferences:",s="ImmersiveReader-LaunchResponse:",c={}
c[o.ErrorCode.TokenExpired]="The access token supplied is expired.",c[o.ErrorCode.Throttled]="You have exceeded your quota.",c[o.ErrorCode.ServerError]="An error occurred when calling the server to process the text.",c[o.ErrorCode.InvalidSubdomain]="The subdomain supplied is invalid."
var u=!1
function l(e){return!!e&&new RegExp("^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])$").test(e)}t.launchAsync=function(e,t,n,d){return u?Promise.reject("Immersive Reader is already launching"):new Promise((function(f,h){if(e)if(n)if(n.chunks)if(n.chunks.length)if(l(t)||d&&d.customDomain){u=!0
var p=Date.now();(d=r({uiZIndex:1e3,timeout:15e3,useWebview:!1,allowFullscreen:!0,hideExitButton:!1,cookiePolicy:i.CookiePolicy.Disable},d)).uiZIndex&&"number"==typeof d.uiZIndex||(d.uiZIndex=1e3)
var g=null,m=document.createElement("div"),v=d.useWebview?document.createElement("webview"):document.createElement("iframe")
v.allow="autoplay; microphone",v.title="Immersive Reader Frame",v.setAttribute("aria-modal","true")
var y=document.createElement("style")
y.innerHTML="body{height:100%;overflow:hidden;}"
var b=function(){g&&(window.clearTimeout(g),g=null)},E=d.parent&&document.contains(d.parent)?d.parent:document.body,_=function(){E.contains(m)&&E.removeChild(m),window.removeEventListener("message",S),b(),y.parentNode&&y.parentNode.removeChild(y)},T=function(){if(_(),u=!1,d.onExit)try{d.onExit()}catch(e){}}
_()
var S=function(r){if(r&&r.data&&"string"==typeof r.data)if("ImmersiveReader-ReadyForContent"===r.data){b()
var i={cogSvcsAccessToken:e,cogSvcsSubdomain:t,request:n,launchToPostMessageSentDurationInMs:Date.now()-p,disableFirstRun:d.disableFirstRun,readAloudOptions:d.readAloudOptions,translationOptions:d.translationOptions,displayOptions:d.displayOptions,sendPreferences:!!d.onPreferencesChanged,preferences:d.preferences,disableTranslation:d.disableTranslation,disableGrammar:d.disableGrammar,disableLanguageDetection:d.disableLanguageDetection}
v.contentWindow.postMessage(JSON.stringify({messageType:"Content",messageValue:i}),"*")}else if("ImmersiveReader-Exit"===r.data)T()
else if(r.data.startsWith(s)){var l=null,g=null,y=null
try{y=JSON.parse(r.data.substring(s.length))}catch(e){}y&&y.success?l={container:m,sessionId:y.sessionId,charactersProcessed:y.meteredContentSize}:g=y&&!y.success?{code:y.errorCode,message:c[y.errorCode],sessionId:y.sessionId}:{code:o.ErrorCode.ServerError,message:c[o.ErrorCode.ServerError]},u=!1,l?(b(),f(l)):g&&(T(),h(g))}else if(r.data.startsWith(a)&&d.onPreferencesChanged&&"function"==typeof d.onPreferencesChanged)try{d.onPreferencesChanged(r.data.substring(a.length))}catch(e){}}
window.addEventListener("message",S),g=window.setTimeout((function(){_(),u=!1,h({code:o.ErrorCode.Timeout,message:"Page failed to load after timeout ("+d.timeout+" ms)"})}),d.timeout),d.allowFullscreen&&v.setAttribute("allowfullscreen",""),v.style.cssText=d.parent?"position: static; width: 100%; height: 100%; left: 0; top: 0; border-width: 0":"position: static; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0",d.useWebview&&v.addEventListener("loadstop",(function(){v.contentWindow.postMessage(JSON.stringify({messageType:"WebviewHost"}),"*")}))
var x=(d.customDomain?d.customDomain:"https://"+t+".cognitiveservices.azure.com/immersivereader/webapp/v1.0/")+"reader?exitCallback=ImmersiveReader-Exit&sdkPlatform=js&sdkVersion=1.3.0"
x+="&cookiePolicy="+(d.cookiePolicy===i.CookiePolicy.Enable?"enable":"disable"),d.hideExitButton&&(x+="&hideExitButton=true"),d.uiLang&&(x+="&omkt="+d.uiLang),v.src=x,m.style.cssText=d.parent?"position: relative; width: 100%; height: 100%; border-width: 0; -webkit-perspective: 1px; z-index: "+d.uiZIndex+"; background: white; overflow: hidden":"position: fixed; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0; -webkit-perspective: 1px; z-index: "+d.uiZIndex+"; background: white; overflow: hidden",m.appendChild(v),E.appendChild(m),document.head.appendChild(y)}else h({code:o.ErrorCode.InvalidSubdomain,message:c[o.ErrorCode.InvalidSubdomain]})
else h({code:o.ErrorCode.BadArgument,message:"Chunks must not be empty"})
else h({code:o.ErrorCode.BadArgument,message:"Chunks must not be null"})
else h({code:o.ErrorCode.BadArgument,message:"Content must not be null"})
else h({code:o.ErrorCode.BadArgument,message:"Token must not be null"})}))},t.close=function(){window.postMessage("ImmersiveReader-Exit","*")},t.isValidSubdomain=l},411:(e,t)=>{var n,r
Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeOption=t.CookiePolicy=void 0,(r=t.CookiePolicy||(t.CookiePolicy={}))[r.Disable=0]="Disable",r[r.Enable=1]="Enable",(n=t.ThemeOption||(t.ThemeOption={}))[n.Light=0]="Light",n[n.Dark=1]="Dark"},848:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderButtons=void 0
var n="data-locale",r={af:"Indompelende leser",am:"በህያው ስሜት ፈጣሪ ዕይታ አንባቢ",ar:"القارئ الشامل",as:"ইমাৰচিভ ৰিডাৰ",az:"İmmersiv Oxuyucu",be:"Імерсіўны чытальнік",bg:"Концентриран четец",bn:"মনোগ্রাহী পাঠক","bn-bd":"ইমার্সিভ পাঠক",bs:"Koncentrirani čitalac",ca:"Lector immersiu",cs:"Asistivní čtečka","cy-gb":"Darllenydd Ymdrwythol",da:"Forenklet læser",de:"Plastischer Reader",el:"Προηγμένο πρόγραμμα ανάγνωσης",en:"Immersive Reader",es:"Lector inmersivo",et:"Süvaluger",eu:"Irakurgailu murgiltzailea",fa:"خواننده همه‌جانبه",fi:"Syventävä lukuohjelma",fil:"Immersive Reader",fr:"Lecteur immersif","ga-ie":"Léitheoir tumthach",gd:"An leughadair ùr-nòsach",gl:"Lector avanzado",gu:"ઇમર્સિવ રીડર",ha:"Mai karatu Mai barbazawa",he:"תצוגת קריאה מודרנית",hi:"इमर्सिव रीडर",hr:"Stopljeni čitač",hu:"Modern olvasó",hy:"Խորասուզված ընթերցիչ",id:"Pembaca Imersif",ig:"Ọgụụ Kenzipụtara",is:"Aðgengilegt lestrarumhverfi",it:"Strumento di lettura immersiva",ja:"イマーシブ リーダー",ka:"იმერსიული წამკითხველი",kk:"Иммерсивті оқу құралы",km:"កម្មវិធីអានពណ៌រំលេចនៅលើអេក្រង់",kn:"ಇಮ್ಮರ್ಸಿವ್ ಓದುಗ",ko:"몰입형 리더",kok:"तंद्री लागिल्लो वाचक","ku-arab":"خوێنەری پڕ",ky:"Курчаган Окугуч",lb:"Immersive Reader",lo:"ຕົວອ່ານອິມເມີສີບ",lt:"Įtraukianti skaitytuvė",lv:"Tīrskata lasītājs",mi:"Pūpānui Rumaki",mk:"Сеопфатен читач",ml:"ഇമ്മേഴ്‌സീവ് റീഡർ",mn:"Идэвхтэй уншигч",mr:"इमर्सिव्ह वाचक",ms:"Pembaca Imersif",mt:"Qarrej Immersiv",ne:"इमेर्सिभ रिडर",nl:"Insluitende lezer","nn-no":"Engasjerande lesar",no:"Engasjerende leser",nso:"Go Bala ka Mongwalo o Mokoto",or:"ଇମରସିଭ୍ ରିଡର୍",pa:"ਇਮਰਸਿਵ ਰੀਡਰ","pa-arab":"گھیرن آلا مطالعہ کار",pl:"Czytnik immersyjny",prs:"خواننده نمایش",pt:"Leitura Avançada",quc:"Nim ucholajil sik'inel uwach",quz:"Wankisqa Ñawiq",ro:"Immersive Reader",ru:"Иммерсивное средство чтения",rw:"Insakazasoma",sd:"امرسو ريڊر",si:"ගිලෙන සුළු කියවනය",sk:"Imerzná čítačka",sl:"Potopni bralnik",sq:"Lexuesi kredhës","sr-cyrl-ba":"Концентрисани читалац","sr-cyrl-rs":"Концентрисани читалац","sr-latn-rs":"Koncentrisani čitalac",sv:"Avancerad läsare",sw:"Kisomaji cha Kuzamisha",ta:"அற்புதமான ரீடர்",te:"మంత్రముగ్ధులను చేసే పఠన సాధనం","tg-cyrl-tj":"Хонандаи фарогир",th:"โปรแกรมช่วยอ่าน",ti:"ኣንባቢ ሕሉው ስምዒት ፈጣሪ",tk:"Giňişleýin okaýjy",tn:"Sebadi sa Imesife",tr:"Tam Ekran Okuyucu",tt:"Чолгап алучы уку чарасы","ug-cn":"چۆكمە ئوقۇغۇچ",uk:"Занурення в текст",ur:"امرسیو مطالعہ کار",uz:"Immersiv mutolaa vositasi",vi:"Trình đọc Chân thực",wo:"Jàngukaay bu Rafet",xh:"Isifundi Esikhulu",yo:"Ìwò Alámùtán",zh:"沉浸式阅读器","zh-hant":"沈浸式閱讀程式",zu:"Isifundi Sokuzizwisa"}
function i(e){var t=document.createElement("img")
t.src="https://ircdname.azureedge.net/permanent-static-resources/immersive-reader-icon.svg"
var r=e.getAttribute("data-icon-px-size")||"20"
t.style.height=t.style.width=r+"px",t.style.verticalAlign="middle",t.style.marginTop="-2px"
var i=e.getAttribute(n)||"en"
t.alt=s(i),e.appendChild(t)}function o(e){var t=document.createElement("span")
t.style.marginLeft="8px",e.appendChild(t)}function a(e){var t=document.createElement("span"),r=e.getAttribute(n)||"en"
t.textContent=s(r),e.appendChild(t)}function s(e){return e=e.toLowerCase(),r[e]?r[e]:"zh-hk"===e||"zh-mo"===e||"zh-tw"===e?r["zh-hant"]:(e=e.substring(0,e.lastIndexOf("-")),r[e]?r[e]:(e=e.substring(0,e.lastIndexOf("-")),r[e]?r[e]:r.en))}t.renderButtons=function(e){var t=document.createElement("style")
t.innerHTML=".immersive-reader-button{cursor:pointer;display:inline-block;padding:5px;} .immersive-reader-button:hover{background:rgba(0,0,0,.05);border-radius:2px",document.head.appendChild(t)
var r=[].slice.call(document.getElementsByClassName("immersive-reader-button"))
e&&e.elements&&(r=e.elements)
for(var c=0,u=r;c<u.length;c++){var l=u[c]
l.setAttribute("role","button")
var d=l.getAttribute(n)||"en"
switch(l.setAttribute("aria-label",s(d)),l.textContent="",l.getAttribute("data-button-style")||"icon"){case"icon":i(l)
break
case"text":a(l)
break
case"iconAndText":i(l),o(l),a(l)}}}}},t={}
function n(r){var i=t[r]
if(void 0!==i)return i.exports
var o=t[r]={exports:{}}
return e[r].call(o.exports,o,o.exports,n),o.exports}var r={}
return(()=>{var e=r
Object.defineProperty(e,"__esModule",{value:!0}),e.CookiePolicy=e.launchAsync=e.close=e.renderButtons=void 0
var t=n(848)
Object.defineProperty(e,"renderButtons",{enumerable:!0,get:function(){return t.renderButtons}})
var i=n(925)
Object.defineProperty(e,"close",{enumerable:!0,get:function(){return i.close}}),Object.defineProperty(e,"launchAsync",{enumerable:!0,get:function(){return i.launchAsync}})
var o=n(411)
Object.defineProperty(e,"CookiePolicy",{enumerable:!0,get:function(){return o.CookiePolicy}}),"undefined"!=typeof window&&window.addEventListener("load",(function(){var e
window.hasOwnProperty("Promise")||((e=document.createElement("script")).src="https://ircdname.azureedge.net/permanent-static-resources/promise-polyfill.min.js",document.head.appendChild(e)),t.renderButtons()}))})(),r})(),e.exports=t()},7440:(e,t,n)=>{"use strict"
function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator]
if(!n)return e
var r,i,o=n.call(e),a=[]
try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var i
n.r(t),n.d(t,{InterpreterStatus:()=>i,assign:()=>s,createMachine:()=>h,interpret:()=>g}),function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(i||(i={}))
var o={type:"xstate.init"}
function a(e){return void 0===e?[]:[].concat(e)}function s(e){return{type:"xstate.assign",assignment:e}}function c(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function u(e){return function(t){return e===t}}function l(e){return"string"==typeof e?{type:e}:e}function d(e,t){return{value:e,context:t,actions:[],changed:!1,matches:u(e)}}function f(e,t,n){var r=t,i=!1
return[e.filter((function(e){if("xstate.assign"===e.type){i=!0
var t=Object.assign({},r)
return"function"==typeof e.assignment?t=e.assignment(r,n):Object.keys(e.assignment).forEach((function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](r,n):e.assignment[i]})),r=t,!1}return!0})),r,i]}function h(e,t){void 0===t&&(t={})
var n=r(f(a(e.states[e.initial].entry).map((function(e){return c(e,t.actions)})),e.context,o),2),i=n[0],s=n[1],h={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:u(e.initial)},transition:function(t,n){var i,o,s="string"==typeof t?{value:t,context:e.context}:t,p=s.value,g=s.context,m=l(n),v=e.states[p]
if(v.on){var y=a(v.on[m.type])
try{for(var b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0
if(n)return n.call(e)
if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),E=b.next();!E.done;E=b.next()){var _=E.value
if(void 0===_)return d(p,g)
var T="string"==typeof _?{target:_}:_,S=T.target,x=T.actions,C=void 0===x?[]:x,A=T.cond,w=void 0===S
if((void 0===A?function(){return!0}:A)(g,m)){var I=e.states[null!=S?S:p],R=r(f((w?a(C):[].concat(v.exit,C,I.entry).filter((function(e){return e}))).map((function(e){return c(e,h._options.actions)})),g,m),3),k=R[0],O=R[1],M=R[2],N=null!=S?S:p
return{value:N,context:O,actions:k,changed:S!==p||k.length>0||M,matches:u(N)}}}}catch(e){i={error:e}}finally{try{E&&!E.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}return d(p,g)}}
return h}var p=function(e,t){return e.actions.forEach((function(n){var r=n.exec
return r&&r(e.context,t)}))}
function g(e){var t=e.initialState,n=i.NotStarted,r=new Set,a={_machine:e,send:function(o){n===i.Running&&(t=e.transition(t,o),p(t,l(o)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var s="object"==typeof r?r:{context:e.config.context,value:r}
t={value:s.value,actions:[],context:s.context,matches:u(s.value)}}return n=i.Running,p(t,o),a},stop:function(){return n=i.Stopped,r.clear(),a},get state(){return t},get status(){return n}}
return a}},56131:(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(79774),i=n(69678),o=n(67229),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 h(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")
return l(this,"message",e)},postInternal:function(e){return l(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e}
h(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){h(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}}},3446:(e,t,n)=>{"use strict"
var r=n(33335)
e.exports={BroadcastChannel:r.BroadcastChannel,createLeaderElection:r.createLeaderElection,clearNodeFolder:r.clearNodeFolder,enforceOptions:r.enforceOptions,beLeader:r.beLeader}},33335:(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(56131),i=n(93145)},93145:(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(79774),i=n(5365),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")}}},69678:(e,t,n)=>{"use strict"
var r=n(9154)
n(61264),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=function(e){var t=[].concat(e.methods,u).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||c.isNode||(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(u.map((function(e){return e.type}))))}
var i=r(n(97594)),o=r(n(76777)),a=r(n(1095)),s=r(n(9981)),c=n(79774),u=[i.default,o.default,a.default]},76777:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=T,t.canBeUsed=_,t.cleanOldMessages=p,t.close=y,t.create=g,t.createDatabase=u,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(s).objectStore(s),n=[]
return new Promise((function(e){t.openCursor().onsuccess=function(t){var r=t.target.result
r?(n.push(r.value),r.continue()):e(n)}}))},t.getIdb=c,t.getMessagesHigherThan=d,t.getOldMessages=h,t.microSeconds=void 0,t.onMessage=E,t.postMessage=b,t.removeMessageById=f,t.type=void 0,t.writeMessage=l
var r=n(79774),i=n(63583),o=n(67229),a=r.microSeconds
t.microSeconds=a
var s="messages"
function c(){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 u(e){var t="pubkey.broadcast-channel-0-"+e,n=c().open(t,1)
return n.onupgradeneeded=function(e){e.target.result.createObjectStore(s,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){n.onerror=function(e){return t(e)},n.onsuccess=function(){e(n.result)}}))}function l(e,t,n){var r={uuid:t,time:(new Date).getTime(),data:n},i=e.transaction([s],"readwrite")
return new Promise((function(e,t){i.oncomplete=function(){return e()},i.onerror=function(e){return t(e)},i.objectStore(s).add(r)}))}function d(e,t){var n=e.transaction(s).objectStore(s),r=[]
return new Promise((function(e){(function(){try{var e=IDBKeyRange.bound(t+1,1/0)
return n.openCursor(e)}catch(e){return n.openCursor()}}()).onsuccess=function(n){var i=n.target.result
i?i.value.id<t+1?i.continue(t+1):(r.push(i.value),i.continue()):e(r)}}))}function f(e,t){var n=e.transaction([s],"readwrite").objectStore(s).delete(t)
return new Promise((function(e){n.onsuccess=function(){return e()}}))}function h(e,t){var n=(new Date).getTime()-t,r=e.transaction(s).objectStore(s),i=[]
return new Promise((function(e){r.openCursor().onsuccess=function(t){var r=t.target.result
if(r){var o=r.value
if(!(o.time<n))return void e(i)
i.push(o),r.continue()}else e(i)}}))}function p(e,t){return h(e,t).then((function(t){return Promise.all(t.map((function(t){return f(e,t.id)})))}))}function g(e,t){return t=(0,o.fillOptionsWithDefaults)(t),u(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()},m(o),o}))}function m(e){e.closed||v(e).then((function(){return(0,r.sleep)(e.options.idb.fallbackInterval)})).then((function(){return m(e)}))}function v(e){return e.closed?r.PROMISE_RESOLVED_VOID:e.messagesCallback?d(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 y(e){e.closed=!0,e.db.close()}function b(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return l(e.db,e.uuid,t)})).then((function(){0===(0,r.randomInt)(0,10)&&p(e.db,e.options.idb.ttl)})),e.writeBlockPromise}function E(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,v(e)}function _(){return!r.isNode&&!!c()}function T(e){return 2*e.idb.fallbackInterval}t.type="idb"
var S={create:g,close:y,onMessage:E,postMessage:b,canBeUsed:_,type:"idb",averageResponseTime:T,microSeconds:a}
t.default=S},1095:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=d,t.averageResponseTime=v,t.canBeUsed=m,t.close=p,t.create=h,t.default=void 0,t.getLocalStorage=c,t.microSeconds=void 0,t.onMessage=g,t.postMessage=l,t.removeStorageEventListener=f,t.storageKey=u,t.type=void 0
var r=n(63583),i=n(67229),o=n(79774),a=o.microSeconds
t.microSeconds=a
var s="localstorage"
function c(){var e
if("undefined"==typeof window)return null
try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function u(e){return"pubkey.broadcastChannel-"+e}function l(e,t){return new Promise((function(n){(0,o.sleep)().then((function(){var r=u(e.channelName),i={token:(0,o.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},a=JSON.stringify(i)
c().setItem(r,a)
var s=document.createEvent("Event")
s.initEvent("storage",!0,!0),s.key=r,s.newValue=a,window.dispatchEvent(s),n()}))}))}function d(e,t){var n=u(e),r=function(e){e.key===n&&t(JSON.parse(e.newValue))}
return window.addEventListener("storage",r),r}function f(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=d(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 p(e){f(e.listener)}function g(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function m(){if(o.isNode)return!1
var e=c()
if(!e)return!1
try{var t="__broadcastchannel_check"
e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function v(){var e=navigator.userAgent.toLowerCase()
return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=s
var y={create:h,close:p,onMessage:g,postMessage:l,canBeUsed:m,type:s,averageResponseTime:v,microSeconds:a}
t.default=y},97594:(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(79774),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(r.isNode&&"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},9981:(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(79774).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},67229:(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}},79774:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=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,s="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)
t.isNode=s},83924:e=>{"use strict"
var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e)
return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e
var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r
var u=Array.isArray(n)
return u===Array.isArray(e)?u?c.arrayMerge(e,n,c):function(e,t,n){var i={}
return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return s
var n=t.customMerge(e)
return"function"==typeof n?n:s}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}(e,n,c):r(n,c)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array")
return e.reduce((function(e,n){return s(e,n,t)}),{})}
var c=s
e.exports=c},38612:e=>{e.exports=!1},77577:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>l})
var r,i=function(){function e(){this.registry=new WeakMap}return e.prototype.elementExists=function(e){return this.registry.has(e)},e.prototype.getElement=function(e){return this.registry.get(e)},e.prototype.addElement=function(e,t){e&&this.registry.set(e,t||{})},e.prototype.removeElement=function(e){this.registry.delete(e)},e.prototype.destroyRegistry=function(){this.registry=new WeakMap},e}(),o=function(){}
!function(e){e.enter="enter",e.exit="exit"}(r||(r={}))
var a,s=function(){function e(){this.registry=new i}return e.prototype.addCallback=function(e,t,n){var i,o,a
e===r.enter?((i={})[r.enter]=n,a=i):((o={})[r.exit]=n,a=o),this.registry.addElement(t,Object.assign({},this.registry.getElement(t),a))},e.prototype.dispatchCallback=function(e,t,n){if(e===r.enter){var i=this.registry.getElement(t).enter;(void 0===i?o:i)(n)}else{var a=this.registry.getElement(t)
a&&a.exit&&a.exit(n)}},e}(),c=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
return e},u.apply(this,arguments)}
const l=function(e){function t(){var t=e.call(this)||this
return t.elementRegistry=new i,t}return c(t,e),t.prototype.observe=function(e,t){void 0===t&&(t={}),e&&(this.elementRegistry.addElement(e,u({},t)),this.setupObserver(e,u({},t)))},t.prototype.unobserve=function(e,t){var n=this.findMatchingRootEntry(t)
n&&n.intersectionObserver.unobserve(e)},t.prototype.addEnterCallback=function(e,t){this.addCallback(r.enter,e,t)},t.prototype.addExitCallback=function(e,t){this.addCallback(r.exit,e,t)},t.prototype.dispatchEnterCallback=function(e,t){this.dispatchCallback(r.enter,e,t)},t.prototype.dispatchExitCallback=function(e,t){this.dispatchCallback(r.exit,e,t)},t.prototype.destroy=function(){this.elementRegistry.destroyRegistry()},t.prototype.setupOnIntersection=function(e){var t=this
return function(n){return t.onIntersection(e,n)}},t.prototype.setupObserver=function(e,t){var n,r,i=t.root,o=void 0===i?window:i,a=this.findRootFromRegistry(o)
if(a&&(r=this.determineMatchingElements(t,a)),r){var s=r.elements,c=r.intersectionObserver
s.push(e),c&&c.observe(e)}else{var u={elements:[e],intersectionObserver:c=this.newObserver(e,t),options:t},l=this.stringifyOptions(t)
a?a[l]=u:this.elementRegistry.addElement(o,((n={})[l]=u,n))}},t.prototype.newObserver=function(e,t){var n=t.root,r=t.rootMargin,i=t.threshold,o=new IntersectionObserver(this.setupOnIntersection(t).bind(this),{root:n,rootMargin:r,threshold:i})
return o.observe(e),o},t.prototype.onIntersection=function(e,t){var n=this
t.forEach((function(t){var r=t.isIntersecting,i=t.intersectionRatio,o=e.threshold||0
Array.isArray(o)&&(o=o[o.length-1])
var a=n.findMatchingRootEntry(e)
r||i>o?a&&a.elements.some((function(e){return!(!e||e!==t.target||(n.dispatchEnterCallback(e,t),0))})):a&&a.elements.some((function(e){return!(!e||e!==t.target||(n.dispatchExitCallback(e,t),0))}))}))},t.prototype.findRootFromRegistry=function(e){if(this.elementRegistry)return this.elementRegistry.getElement(e)},t.prototype.findMatchingRootEntry=function(e){var t=e.root,n=void 0===t?window:t,r=this.findRootFromRegistry(n)
if(r)return r[this.stringifyOptions(e)]},t.prototype.determineMatchingElements=function(e,t){var n=this,r=Object.keys(t).filter((function(r){var i=t[r].options
return n.areOptionsSame(e,i)}))[0]
return t[r]},t.prototype.areOptionsSame=function(e,t){if(e===t)return!0
var n=Object.prototype.toString.call(e),r=Object.prototype.toString.call(t)
if(n!==r)return!1
if("[object Object]"!==n&&"[object Object]"!==r)return e===t
if(e&&t&&"object"==typeof e&&"object"==typeof t)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!1===this.areOptionsSame(e[i],t[i]))return!1
return!0},t.prototype.stringifyOptions=function(e){var t=e.root
return JSON.stringify(e,(function(e,n){if("root"===e&&t){var r=Array.prototype.slice.call(t.classList).reduce((function(e,t){return e+t}),""),i=t.id
return"".concat(i,"-").concat(r)}return n}))},t}(s)},63583:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ObliviousSet:()=>r,now:()=>o,removeTooOldValues:()=>i})
var r=function(){function e(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return e.prototype.has=function(e){return this.set.has(e)},e.prototype.add=function(e){var t=this
this.timeMap.set(e,o()),this.set.add(e),setTimeout((function(){i(t)}),0)},e.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},e}()
function i(e){for(var t=o()-e.ttl,n=e.set[Symbol.iterator]();;){var r=n.next().value
if(!r)return
if(!(e.timeMap.get(r)<t))return
e.timeMap.delete(r),e.set.delete(r)}}function o(){return(new Date).getTime()}},79103:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>Ue})
var r=Object.create
function i(){var e=r(null)
return e.__=void 0,delete e.__,e}var o=function(e,t,n){this.path=e,this.matcher=t,this.delegate=n}
o.prototype.to=function(e,t){var n=this.delegate
if(n&&n.willAddRoute&&(e=n.willAddRoute(this.matcher.target,e)),this.matcher.add(this.path,e),t){if(0===t.length)throw new Error("You must have an argument in the function passed to `to`")
this.matcher.addChild(this.path,e,t,this.delegate)}}
var a=function(e){this.routes=i(),this.children=i(),this.target=e}
function s(e,t,n){return function(r,i){var a=e+r
if(!i)return new o(a,t,n)
i(s(a,t,n))}}function c(e,t,n){for(var r=0,i=0;i<e.length;i++)r+=e[i].path.length
var o={path:t=t.substr(r),handler:n}
e.push(o)}function u(e,t,n,r){for(var i=t.routes,o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],l=e.slice()
c(l,s,i[s])
var d=t.children[s]
d?u(l,d,n,r):n.call(r,l)}}function l(e){return e.split("/").map(f).join("/")}a.prototype.add=function(e,t){this.routes[e]=t},a.prototype.addChild=function(e,t,n,r){var i=new a(t)
this.children[e]=i
var o=s(e,i,r)
r&&r.contextEntered&&r.contextEntered(t,o),n(o)}
var d=/%|\//g
function f(e){return e.length<3||-1===e.indexOf("%")?e:decodeURIComponent(e).replace(d,encodeURIComponent)}var h=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g
function p(e){return encodeURIComponent(e).replace(h,decodeURIComponent)}var g=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,m=Array.isArray,v=Object.prototype.hasOwnProperty
function y(e,t){if("object"!=typeof e||null===e)throw new Error("You must pass an object as the second argument to `generate`.")
if(!v.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.")
var n=e[t],r="string"==typeof n?n:""+n
if(0===r.length)throw new Error("You must provide a param `"+t+"`.")
return r}var b=[]
b[0]=function(e,t){for(var n=t,r=e.value,i=0;i<r.length;i++){var o=r.charCodeAt(i)
n=n.put(o,!1,!1)}return n},b[1]=function(e,t){return t.put(47,!0,!0)},b[2]=function(e,t){return t.put(-1,!1,!0)},b[4]=function(e,t){return t}
var E=[]
E[0]=function(e){return e.value.replace(g,"\\$1")},E[1]=function(){return"([^/]+)"},E[2]=function(){return"(.+)"},E[4]=function(){return""}
var _=[]
_[0]=function(e){return e.value},_[1]=function(e,t){var n=y(t,e.value)
return O.ENCODE_AND_DECODE_PATH_SEGMENTS?p(n):n},_[2]=function(e,t){return y(t,e.value)},_[4]=function(){return""}
var T=Object.freeze({}),S=Object.freeze([])
function x(e,t,n){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1))
for(var r=t.split("/"),i=void 0,o=void 0,a=0;a<r.length;a++){var s,c,u=r[a]
12&(s=2<<(c=""===u?4:58===u.charCodeAt(0)?1:42===u.charCodeAt(0)?2:0))&&(u=u.slice(1),(i=i||[]).push(u),(o=o||[]).push(0!=(4&s))),14&s&&n[c]++,e.push({type:c,value:f(u)})}return{names:i||S,shouldDecodes:o||S}}function C(e,t,n){return e.char===t&&e.negate===n}var A=function(e,t,n,r,i){this.states=e,this.id=t,this.char=n,this.negate=r,this.nextStates=i?t:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0}
function w(e,t){return e.negate?e.char!==t&&-1!==e.char:e.char===t||-1===e.char}function I(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r]
n=n.concat(o.match(t))}return n}A.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},A.prototype.get=function(e,t){var n=this.nextStates
if(null!==n)if(m(n))for(var r=0;r<n.length;r++){var i=this.states[n[r]]
if(C(i,e,t))return i}else{var o=this.states[n]
if(C(o,e,t))return o}},A.prototype.put=function(e,t,n){var r
if(r=this.get(e,t))return r
var i=this.states
return r=new A(i,i.length,e,t,n),i[i.length]=r,null==this.nextStates?this.nextStates=r.id:m(this.nextStates)?this.nextStates.push(r.id):this.nextStates=[this.nextStates,r.id],r},A.prototype.match=function(e){var t=this.nextStates
if(!t)return[]
var n=[]
if(m(t))for(var r=0;r<t.length;r++){var i=this.states[t[r]]
w(i,e)&&n.push(i)}else{var o=this.states[t]
w(o,e)&&n.push(o)}return n}
var R=function(e){this.length=0,this.queryParams=e||{}}
function k(e){var t
e=e.replace(/\+/gm,"%20")
try{t=decodeURIComponent(e)}catch(e){t=""}return t}R.prototype.splice=Array.prototype.splice,R.prototype.slice=Array.prototype.slice,R.prototype.push=Array.prototype.push
var O=function(){this.names=i()
var e=[],t=new A(e,0,-1,!0,!1)
e[0]=t,this.states=e,this.rootState=t}
O.prototype.add=function(e,t){for(var n,r=this.rootState,i="^",o=[0,0,0],a=new Array(e.length),s=[],c=!0,u=0,l=0;l<e.length;l++){for(var d=e[l],f=x(s,d.path,o),h=f.names,p=f.shouldDecodes;u<s.length;u++){var g=s[u]
4!==g.type&&(c=!1,r=r.put(47,!1,!1),i+="/",r=b[g.type](g,r),i+=E[g.type](g))}a[l]={handler:d.handler,names:h,shouldDecodes:p}}c&&(r=r.put(47,!1,!1),i+="/"),r.handlers=a,r.pattern=i+"$",r.types=o,"object"==typeof t&&null!==t&&t.as&&(n=t.as),n&&(this.names[n]={segments:s,handlers:a})},O.prototype.handlersFor=function(e){var t=this.names[e]
if(!t)throw new Error("There is no route named "+e)
for(var n=new Array(t.handlers.length),r=0;r<t.handlers.length;r++){var i=t.handlers[r]
n[r]=i}return n},O.prototype.hasRoute=function(e){return!!this.names[e]},O.prototype.generate=function(e,t){var n=this.names[e],r=""
if(!n)throw new Error("There is no route named "+e)
for(var i=n.segments,o=0;o<i.length;o++){var a=i[o]
4!==a.type&&(r+="/",r+=_[a.type](a,t))}return"/"!==r.charAt(0)&&(r="/"+r),t&&t.queryParams&&(r+=this.generateQueryString(t.queryParams)),r},O.prototype.generateQueryString=function(e){var t=[],n=Object.keys(e)
n.sort()
for(var r=0;r<n.length;r++){var i=n[r],o=e[i]
if(null!=o){var a=encodeURIComponent(i)
if(m(o))for(var s=0;s<o.length;s++){var c=i+"[]="+encodeURIComponent(o[s])
t.push(c)}else a+="="+encodeURIComponent(o),t.push(a)}}return 0===t.length?"":"?"+t.join("&")},O.prototype.parseQueryString=function(e){for(var t=e.split("&"),n={},r=0;r<t.length;r++){var i=t[r].split("="),o=k(i[0]),a=o.length,s=!1,c=void 0
1===i.length?c="true":(a>2&&"[]"===o.slice(a-2)&&(s=!0,n[o=o.slice(0,a-2)]||(n[o]=[])),c=i[1]?k(i[1]):""),s?n[o].push(c):n[o]=c}return n},O.prototype.recognize=function(e){var t,n=[this.rootState],r={},i=!1,o=e.indexOf("#");-1!==o&&(e=e.substr(0,o))
var a=e.indexOf("?")
if(-1!==a){var s=e.substr(a+1,e.length)
e=e.substr(0,a),r=this.parseQueryString(s)}"/"!==e.charAt(0)&&(e="/"+e)
var c=e
O.ENCODE_AND_DECODE_PATH_SEGMENTS?e=l(e):(e=decodeURI(e),c=decodeURI(c))
var u=e.length
u>1&&"/"===e.charAt(u-1)&&(e=e.substr(0,u-1),c=c.substr(0,c.length-1),i=!0)
for(var d=0;d<e.length&&(n=I(n,e.charCodeAt(d))).length;d++);for(var f=[],h=0;h<n.length;h++)n[h].handlers&&f.push(n[h])
n=function(e){return e.sort((function(e,t){var n=e.types||[0,0,0],r=n[0],i=n[1],o=n[2],a=t.types||[0,0,0],s=a[0],c=a[1],u=a[2]
if(o!==u)return o-u
if(o){if(r!==s)return s-r
if(i!==c)return c-i}return i!==c?i-c:r!==s?s-r:0}))}(f)
var p=f[0]
return p&&p.handlers&&(i&&p.pattern&&"(.+)$"===p.pattern.slice(-5)&&(c+="/"),t=function(e,t,n){var r=e.handlers,i=e.regex()
if(!i||!r)throw new Error("state not initialized")
var o=t.match(i),a=1,s=new R(n)
s.length=r.length
for(var c=0;c<r.length;c++){var u=r[c],l=u.names,d=u.shouldDecodes,f=T,h=!1
if(l!==S&&d!==S)for(var p=0;p<l.length;p++){h=!0
var g=l[p],m=o&&o[a++]
f===T&&(f={}),O.ENCODE_AND_DECODE_PATH_SEGMENTS&&d[p]?f[g]=m&&decodeURIComponent(m):f[g]=m}s[c]={handler:u.handler,params:f,isDynamic:h}}return s}(p,c,r)),t},O.VERSION="0.3.4",O.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,O.Normalizer={normalizeSegment:f,normalizePath:l,encodePathSegment:p},O.prototype.map=function(e,t){var n=new a
e(s("",n,this.delegate)),u([],n,(function(e){t?t(this,e):this.add(e)}),this)}
const M=O
var N=function(e,t,n,r){this.type=e,this.bubbles=t,this.cancelable=n,this.target=r}
N.prototype={stopPropagation:function(){},preventDefault:function(){this.defaultPrevented=!0}}
var P={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},D={"Accept-Charset":!0,"Accept-Encoding":!0,Connection:!0,"Content-Length":!0,Cookie:!0,Cookie2:!0,"Content-Transfer-Encoding":!0,Date:!0,Expect:!0,Host:!0,"Keep-Alive":!0,Referer:!0,TE:!0,Trailer:!0,"Transfer-Encoding":!0,Upgrade:!0,"User-Agent":!0,Via:!0}
function U(e,t){t.addEventListener(e,(function(n){var r=t["on"+e]
r&&"function"==typeof r&&r.call(n.target,n)}))}function L(){this._eventListeners={}
for(var e=["loadstart","progress","load","abort","loadend"],t=e.length-1;t>=0;t--)U(e[t],this)}function j(){L.call(this),this.readyState=j.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new L,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.onreadystatechange=null,this.ontimeout=null}L.prototype={addEventListener:function(e,t){this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(t)},removeEventListener:function(e,t){for(var n=this._eventListeners[e]||[],r=0,i=n.length;r<i;++r)if(n[r]==t)return n.splice(r,1)},dispatchEvent:function(e){for(var t=e.type,n=this._eventListeners[t]||[],r=0;r<n.length;r++)"function"==typeof n[r]?n[r].call(this,e):n[r].handleEvent(e)
return!!e.defaultPrevented},_progress:function(e,t,n){var r=new N("progress")
r.target=this,r.lengthComputable=e,r.loaded=t,r.total=n,this.dispatchEvent(r)}},j.prototype=new L,j.UNSENT=0,j.OPENED=1,j.HEADERS_RECEIVED=2,j.LOADING=3,j.DONE=4
var F={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,async:!0,withCredentials:!1,open:function(e,t,n,r,i){this.method=e,this.url=t,this.async="boolean"!=typeof n||n,this.username=r,this.password=i,this.responseText=null,this.response=this.responseText,this.responseXML=null,this.responseURL=t,this.requestHeaders={},this.sendFlag=!1,this._readyStateChange(j.OPENED)},setRequestHeader:function(e,t){if(q(this),D[e]||/^(Sec-|Proxy-)/.test(e))throw new Error('Refused to set unsafe header "'+e+'"')
this.requestHeaders[e]?this.requestHeaders[e]+=","+t:this.requestHeaders[e]=t},send:function(e){if(q(this),!/^(get|head)$/i.test(this.method)){var t=!1
Object.keys(this.requestHeaders).forEach((function(e){"content-type"===e.toLowerCase()&&(t=!0)})),t||(e||"").toString().match("FormData")||(this.requestHeaders["Content-Type"]="text/plain;charset=UTF-8"),this.requestBody=e}this.errorFlag=!1,this.sendFlag=this.async,this._readyStateChange(j.OPENED),"function"==typeof this.onSend&&this.onSend(this),this.dispatchEvent(new N("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,this.responseText=null,this.response=this.responseText,this.errorFlag=!0,this.requestHeaders={},this.dispatchEvent(new N("abort",!1,!1,this)),this.readyState>j.UNSENT&&this.sendFlag&&(this._readyStateChange(j.UNSENT),this.sendFlag=!1),"function"==typeof this.onerror&&this.onerror()},getResponseHeader:function(e){if(this.readyState<j.HEADERS_RECEIVED)return null
if(/^Set-Cookie2?$/i.test(e))return null
for(var t in e=e.toLowerCase(),this.responseHeaders)if(t.toLowerCase()==e)return this.responseHeaders[t]
return null},getAllResponseHeaders:function(){if(this.readyState<j.HEADERS_RECEIVED)return""
var e=""
for(var t in this.responseHeaders)this.responseHeaders.hasOwnProperty(t)&&!/^Set-Cookie2?$/i.test(t)&&(e+=t+": "+this.responseHeaders[t]+"\r\n")
return e},overrideMimeType:function(e){"string"==typeof e&&(this.forceMimeType=e.toLowerCase())},_readyStateChange:function(e){this.readyState=e,"function"==typeof this.onreadystatechange&&this.onreadystatechange(new N("readystatechange")),this.dispatchEvent(new N("readystatechange")),this.readyState==j.DONE&&this.dispatchEvent(new N("load",!1,!1,this)),this.readyState!=j.UNSENT&&this.readyState!=j.DONE||this.dispatchEvent(new N("loadend",!1,!1,this))},_setResponseHeaders:function(e){for(var t in this.responseHeaders={},e)e.hasOwnProperty(t)&&(this.responseHeaders[t]=e[t])
this.forceMimeType&&(this.responseHeaders["Content-Type"]=this.forceMimeType),this.async?this._readyStateChange(j.HEADERS_RECEIVED):this.readyState=j.HEADERS_RECEIVED},_setResponseBody:function(e){!function(e){if(e.readyState==j.DONE)throw new Error("Request done")}(this),function(e){if(e.async&&e.readyState!=j.HEADERS_RECEIVED)throw new Error("No headers received")}(this),function(e){if("string"!=typeof e){var t=new Error("Attempted to respond to fake XMLHttpRequest with "+e+", which is not a string.")
throw t.name="InvalidBodyException",t}}(e)
var t=this.chunkSize||10,n=0
this.responseText="",this.response=this.responseText
do{this.async&&this._readyStateChange(j.LOADING),this.responseText+=e.substring(n,n+t),this.response=this.responseText,n+=t}while(n<e.length)
var r,i,o=this.getResponseHeader("Content-Type")
if(this.responseText&&(!o||/(text\/xml)|(application\/xml)|(\+xml)/.test(o)))try{this.responseXML=(r=this.responseText,"undefined"!=typeof DOMParser?i=(new DOMParser).parseFromString(r,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(r)),i)}catch(e){}this.async?this._readyStateChange(j.DONE):this.readyState=j.DONE},respond:function(e,t,n){this._setResponseHeaders(t||{}),this.status="number"==typeof e?e:200,this.statusText=P[this.status],this._setResponseBody(n||"")}}
for(var B in F)j.prototype[B]=F[B]
function q(e){if(e.readyState!==j.OPENED)throw new Error("INVALID_STATE_ERR")
if(e.sendFlag)throw new Error("INVALID_STATE_ERR")}const H=j
var G="URLSearchParams"in self,K="Symbol"in self&&"iterator"in Symbol,V="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),z="FormData"in self,W="ArrayBuffer"in self
if(W)var X=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(e){return e&&X.indexOf(Object.prototype.toString.call(e))>-1}
function Y(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name")
return e.toLowerCase()}function $(e){return"string"!=typeof e&&(e=String(e)),e}function J(e){var t={next:function(){var t=e.shift()
return{done:void 0===t,value:t}}}
return K&&(t[Symbol.iterator]=function(){return t}),t}function Z(e){this.map={},e instanceof Z?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function ee(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"))
e.bodyUsed=!0}function te(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ne(e){var t=new FileReader,n=te(t)
return t.readAsArrayBuffer(e),n}function re(e){if(e.slice)return e.slice(0)
var t=new Uint8Array(e.byteLength)
return t.set(new Uint8Array(e)),t.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(e){var t
this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:V&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:z&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:G&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():W&&V&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=re(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):W&&(ArrayBuffer.prototype.isPrototypeOf(e)||Q(e))?this._bodyArrayBuffer=re(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):G&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},V&&(this.blob=function(){var e=ee(this)
if(e)return e
if(this._bodyBlob)return Promise.resolve(this._bodyBlob)
if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]))
if(this._bodyFormData)throw new Error("could not read FormData body as blob")
return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var e,t,n,r=ee(this)
if(r)return r
if(this._bodyBlob)return e=this._bodyBlob,n=te(t=new FileReader),t.readAsText(e),n
if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r])
return n.join("")}(this._bodyArrayBuffer))
if(this._bodyFormData)throw new Error("could not read FormData body as text")
return Promise.resolve(this._bodyText)},z&&(this.formData=function(){return this.text().then(se)}),this.json=function(){return this.text().then(JSON.parse)},this}Z.prototype.append=function(e,t){e=Y(e),t=$(t)
var n=this.map[e]
this.map[e]=n?n+", "+t:t},Z.prototype.delete=function(e){delete this.map[Y(e)]},Z.prototype.get=function(e){return e=Y(e),this.has(e)?this.map[e]:null},Z.prototype.has=function(e){return this.map.hasOwnProperty(Y(e))},Z.prototype.set=function(e,t){this.map[Y(e)]=$(t)},Z.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Z.prototype.keys=function(){var e=[]
return this.forEach((function(t,n){e.push(n)})),J(e)},Z.prototype.values=function(){var e=[]
return this.forEach((function(t){e.push(t)})),J(e)},Z.prototype.entries=function(){var e=[]
return this.forEach((function(t,n){e.push([n,t])})),J(e)},K&&(Z.prototype[Symbol.iterator]=Z.prototype.entries)
var oe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"]
function ae(e,t){var n,r,i=(t=t||{}).body
if(e instanceof ae){if(e.bodyUsed)throw new TypeError("Already read")
this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Z(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e)
if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Z(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),oe.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests")
this._initBody(i)}function se(e){var t=new FormData
return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ")
t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function ce(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new Z(t.headers),this.url=t.url||"",this._initBody(e)}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})},ie.call(ae.prototype),ie.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},ce.error=function(){var e=new ce(null,{status:0,statusText:""})
return e.type="error",e}
var ue=[301,302,303,307,308]
ce.redirect=function(e,t){if(-1===ue.indexOf(t))throw new RangeError("Invalid status code")
return new ce(null,{status:t,headers:{location:e}})}
var le=self.DOMException
try{new le}catch(e){(le=function(e,t){this.message=e,this.name=t
var n=Error(e)
this.stack=n.stack}).prototype=Object.create(Error.prototype),le.prototype.constructor=le}function de(e,t){return new Promise((function(n,r){var i=new ae(e,t)
if(i.signal&&i.signal.aborted)return r(new le("Aborted","AbortError"))
var o=new XMLHttpRequest
function a(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Z,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim()
if(r){var i=n.join(":").trim()
t.append(r,i)}})),t)}
r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL")
var i="response"in o?o.response:o.responseText
n(new ce(i,r))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.onabort=function(){r(new le("Aborted","AbortError"))},o.open(i.method,i.url,!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&V&&(o.responseType="blob"),i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}de.polyfill=!0,self.fetch||(self.fetch=de,self.Headers=Z,self.Request=ae,self.Response=ce)
var fe=Object.freeze({__proto__:null,Headers:Z,Request:ae,Response:ce,get DOMException(){return le},fetch:de}),he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},pe=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1
switch(t){case"http":case"ws":return 80!==e
case"https":case"wss":return 443!==e
case"ftp":return 21!==e
case"gopher":return 70!==e
case"file":return!1}return 0!==e},ge=Object.prototype.hasOwnProperty
function me(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}var ve={stringify:function(e,t){t=t||""
var n,r,i=[]
for(r in"string"!=typeof t&&(t="?"),e)if(ge.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=encodeURIComponent(r),n=encodeURIComponent(n),null===r||null===n)continue
i.push(r+"="+n)}return i.length?t+i.join("&"):""},parse:function(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);){var i=me(t[1]),o=me(t[2])
null===i||null===o||i in r||(r[i]=o)}return r}},ye=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,be=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,Ee=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+")
function _e(e){return(e||"").toString().replace(Ee,"")}var Te=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Se={hash:1,query:1}
function xe(e){var t,n=("undefined"!=typeof window?window:void 0!==he?he:"undefined"!=typeof self?self:{}).location||{},r={},i=typeof(e=e||n)
if("blob:"===e.protocol)r=new Ae(unescape(e.pathname),{})
else if("string"===i)for(t in r=new Ae(e,{}),Se)delete r[t]
else if("object"===i){for(t in e)t in Se||(r[t]=e[t])
void 0===r.slashes&&(r.slashes=ye.test(e.href))}return r}function Ce(e){e=_e(e)
var t=be.exec(e)
return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function Ae(e,t,n){if(e=_e(e),!(this instanceof Ae))return new Ae(e,t,n)
var r,i,o,a,s,c,u=Te.slice(),l=typeof t,d=this,f=0
for("object"!==l&&"string"!==l&&(n=t,t=null),n&&"function"!=typeof n&&(n=ve.parse),t=xe(t),r=!(i=Ce(e||"")).protocol&&!i.slashes,d.slashes=i.slashes||r&&t.slashes,d.protocol=i.protocol||t.protocol||"",e=i.rest,i.slashes||(u[3]=[/(.*)/,"pathname"]);f<u.length;f++)"function"!=typeof(a=u[f])?(o=a[0],c=a[1],o!=o?d[c]=e:"string"==typeof o?~(s=e.indexOf(o))&&("number"==typeof a[2]?(d[c]=e.slice(0,s),e=e.slice(s+a[2])):(d[c]=e.slice(s),e=e.slice(0,s))):(s=o.exec(e))&&(d[c]=s[1],e=e.slice(0,s.index)),d[c]=d[c]||r&&a[3]&&t[c]||"",a[4]&&(d[c]=d[c].toLowerCase())):e=a(e)
n&&(d.query=n(d.query)),r&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t
for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(o=!0),n.splice(r,1),a--)
return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}(d.pathname,t.pathname)),pe(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(a=d.auth.split(":"),d.username=a[0]||"",d.password=a[1]||""),d.origin=d.protocol&&d.host&&"file:"!==d.protocol?d.protocol+"//"+d.host:"null",d.href=d.toString()}Ae.prototype={set:function(e,t,n){var r=this
switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||ve.parse)(t)),r[e]=t
break
case"port":r[e]=t,pe(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="")
break
case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t
break
case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="")
break
case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n
break
case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#"
r[e]=t.charAt(0)!==i?i+t:t}else r[e]=t
break
default:r[e]=t}for(var o=0;o<Te.length;o++){var a=Te[o]
a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=ve.stringify)
var t,n=this,r=n.protocol
r&&":"!==r.charAt(r.length-1)&&(r+=":")
var i=r+(n.slashes?"//":"")
return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},Ae.extractProtocol=Ce,Ae.location=xe,Ae.trimLeft=_e,Ae.qs=ve
var we=Ae
function Ie(e){var t=new we(e)
t.host||(t.href=t.href)
var n=t.pathname
"/"!==n.charAt(0)&&(n="/"+n)
var r=t.host
return"80"!==t.port&&"443"!==t.port||(r=t.hostname),{host:r,protocol:t.protocol,search:t.query,hash:t.hash,href:t.href,pathname:n,fullpath:n+(t.query||"")+(t.hash||"")}}var Re=function(){this.verbs={GET:new M,PUT:new M,POST:new M,DELETE:new M,PATCH:new M,HEAD:new M,OPTIONS:new M}},ke=function(){function e(){this.registries={}}return e.prototype.forURL=function(e){var t=Ie(e).host,n=this.registries[t]
return void 0===n&&(n=this.registries[t]=new Re),n.verbs},e}()
function Oe(e){function t(){H.call(this)}return t.prototype=Object.create(H.prototype),t.prototype.constructor=t,t.prototype.send=function(){if(this.sendArguments=arguments,!e.pretender.running)throw new Error("You shut down a Pretender instance while there was a pending request. That request just tried to complete. Check to see if you accidentally shut down a pretender earlier than you intended to")
H.prototype.send.apply(this,arguments),e.pretender.checkPassthrough(this)?this.passthrough():e.pretender.handleRequest(this)},t.prototype.passthrough=function(){if(!this.sendArguments)throw new Error("You attempted to passthrough a FakeRequest that was never sent. Call `.send()` on the original request first")
var t=function(e,t){var n,r=["error","timeout","abort","readystatechange"],i=[],o=["readyState","responseText","response","responseXML","responseURL","status","statusText"],a=e._passthroughRequest=new t
function s(e,t,n){e.dispatchEvent(n),e["on"+t]&&e["on"+t](n)}function c(t){a["on"+t]=function(n){!function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r]
i in t&&(n[i]=t[i])}}(o,a,e),s(e,t,n)}}function u(t){a.upload&&e.upload&&e.upload["on"+t]&&(a.upload["on"+t]=function(n){s(e.upload,t,n)})}a.open(e.method,e.url,e.async,e.username,e.password),"arraybuffer"===e.responseType&&(o=["readyState","response","status","statusText"],a.responseType=e.responseType),"onload"in a&&r.push("load"),e.async&&"arraybuffer"!==e.responseType&&(r.push("progress"),i.push("progress"))
for(n=0;n<r.length;n++)c(r[n])
for(n=0;n<i.length;n++)u(i[n])
for(var l in e.async&&(a.timeout=e.timeout,a.withCredentials=e.withCredentials),e.requestHeaders)a.setRequestHeader(l,e.requestHeaders[l])
return a}(this,e.pretender._nativeXMLHttpRequest)
return t.send.apply(t,this.sendArguments),t},t.prototype._passthroughCheck=function(e,t){return this._passthroughRequest?this._passthroughRequest[e].apply(this._passthroughRequest,t):H.prototype[e].apply(this,t)},t.prototype.abort=function(){return this._passthroughCheck("abort",arguments)},t.prototype.getResponseHeader=function(){return this._passthroughCheck("getResponseHeader",arguments)},t.prototype.getAllResponseHeaders=function(){return this._passthroughCheck("getAllResponseHeaders",arguments)},e.pretender._nativeXMLHttpRequest.prototype._passthroughCheck&&console.warn("You created a second Pretender instance while there was already one running. Running two Pretender servers at once will lead to unexpected results and will be removed entirely in a future major version.Please call .shutdown() on your instances when you no longer need them to respond."),t}function Me(){this.hosts=new ke
var e=arguments[arguments.length-1],t="object"==typeof e?e:null,n=t&&!1===t.trackRequests,r={push:function(){},length:0}
this.handlers=[],this.handledRequests=n?r:[],this.passthroughRequests=n?r:[],this.unhandledRequests=n?r:[],this.requestReferences=[],this.forcePassthrough=t&&!0===t.forcePassthrough,this.disableUnhandled=t&&!0===t.disableUnhandled,this._nativeXMLHttpRequest=self.XMLHttpRequest,this.running=!1
var i={pretender:this}
this.ctx=i,self.XMLHttpRequest=Oe(i),this._fetchProps=fe?["fetch","Headers","Request","Response"]:[],this._fetchProps.forEach((function(e){this["_native"+e]=self[e],self[e]=fe[e]}),this),this.running=!0
for(var o=t?arguments.length-1:arguments.length,a=0;a<o;a++)this.map(arguments[a])}function Ne(e){return function(t,n,r){return this.register(e,t,n,r)}}function Pe(e,t,n){setTimeout((function(){if(!e.aborted&&!e.status){var r,i=(new Date).getTime()-t.getTime(),o=e.requestBody
r=o&&(o.byteLength||o.size||o.length)||0
var a=n<=0?0:i/n*r
e.upload._progress(!0,a,r),e._progress(!0,a,r),Pe(e,t,n)}}),50)}var De={}
Me.prototype={get:Ne("GET"),post:Ne("POST"),put:Ne("PUT"),delete:Ne("DELETE"),patch:Ne("PATCH"),head:Ne("HEAD"),options:Ne("OPTIONS"),map:function(e){e.call(this)},register:function(e,t,n,r){if(!n)throw new Error("The function you tried passing to Pretender to handle "+e+" "+t+" is undefined or missing.")
return n.numberOfCalls=0,n.async=r,this.handlers.push(n),this.hosts.forURL(t)[e].add([{path:Ie(t).fullpath,handler:n}]),n},passthrough:De,checkPassthrough:function(e){var t=e.method.toUpperCase(),n=Ie(e.url).fullpath,r=this.hosts.forURL(e.url)[t].recognize(n),i=r&&r[0]
return!!(i&&i.handler===De||this.forcePassthrough)&&(this.passthroughRequests.push(e),this.passthroughRequest(t,n,e),!0)},handleRequest:function(e){var t=e.method.toUpperCase(),n=e.url,r=this._handlerFor(t,n,e)
if(r){r.handler.numberOfCalls++
var i=r.handler.async
this.handledRequests.push(e)
var o=this,a=function(r){if(a=r,"[object Array]"!==Object.prototype.toString.call(a))throw new Error("Nothing returned by handler for "+n+". Remember to `return [status, headers, body];` in your route handler.")
var a,s=r[0],c=o.prepareHeaders(r[1]),u=o.prepareBody(r[2],c)
o.handleResponse(e,i,(function(){e.respond(s,c,u),o.handledRequest(t,n,e)}))}
try{var s=r.handler(e)
s&&"function"==typeof s.then?s.then((function(e){a(e)})):a(s)}catch(r){this.erroredRequest(t,n,e,r),this.resolve(e)}}else this.disableUnhandled||(this.unhandledRequests.push(e),this.unhandledRequest(t,n,e))},handleResponse:function(e,t,n){var r="function"==typeof t?t():t
if(!1===(r="boolean"==typeof r||"number"==typeof r?r:0))n()
else{var i=this
i.requestReferences.push({request:e,callback:n}),!0!==r&&(Pe(e,new Date,r),setTimeout((function(){i.resolve(e)}),r))}},resolve:function(e){for(var t=0,n=this.requestReferences.length;t<n;t++){var r=this.requestReferences[t]
if(r.request===e){r.callback(),this.requestReferences.splice(t,1)
break}}},requiresManualResolution:function(e,t){var n=this._handlerFor(e.toUpperCase(),t,{})
if(!n)return!1
var r=n.handler.async
return"function"==typeof r?!0===r():!0===r},prepareBody:function(e){return e},prepareHeaders:function(e){return e},handledRequest:function(){},passthroughRequest:function(){},unhandledRequest:function(e,t){throw new Error("Pretender intercepted "+e+" "+t+" but no handler was defined for this type of request")},erroredRequest:function(e,t,n,r){throw r.message="Pretender intercepted "+e+" "+t+" but encountered an error: "+r.message,r},_handlerFor:function(e,t,n){var r=this.hosts.forURL(t)[e].recognize(Ie(t).fullpath),i=r?r[0]:null
return i&&(n.params=i.params,n.queryParams=r.queryParams),i},shutdown:function(){self.XMLHttpRequest=this._nativeXMLHttpRequest,this._fetchProps.forEach((function(e){self[e]=this["_native"+e]}),this),this.ctx.pretender=void 0,this.running=!1}},Me.parseURL=Ie,Me.Hosts=ke,Me.Registry=Re
const Ue=Me},9516:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{decode:()=>v,default:()=>_,encode:()=>y,toASCII:()=>E,toUnicode:()=>b,ucs2decode:()=>h,ucs2encode:()=>p})
const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,l=String.fromCharCode
function d(e){throw new RangeError(c[e])}function f(e,t){const n=e.split("@")
let r=""
n.length>1&&(r=n[0]+"@",e=n[1])
const i=function(e,t){const n=[]
let r=e.length
for(;r--;)n[r]=t(e[r])
return n}((e=e.replace(s,".")).split("."),t).join(".")
return r+i}function h(e){const t=[]
let n=0
const r=e.length
for(;n<r;){const i=e.charCodeAt(n++)
if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++)
56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const p=e=>String.fromCodePoint(...e),g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},m=function(e,t,n){let r=0
for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;r+=i)e=u(e/35)
return u(r+36*e/(e+38))},v=function(e){const t=[],n=e.length
let o=0,a=128,s=72,c=e.lastIndexOf("-")
c<0&&(c=0)
for(let n=0;n<c;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n))
for(let f=c>0?c+1:0;f<n;){let c=o
for(let t=1,a=i;;a+=i){f>=n&&d("invalid-input")
const c=(l=e.charCodeAt(f++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:i;(c>=i||c>u((r-o)/t))&&d("overflow"),o+=c*t
const h=a<=s?1:a>=s+26?26:a-s
if(c<h)break
const p=i-h
t>u(r/p)&&d("overflow"),t*=p}const h=t.length+1
s=m(o-c,h,0==c),u(o/h)>r-a&&d("overflow"),a+=u(o/h),o%=h,t.splice(o++,0,a)}var l
return String.fromCodePoint(...t)},y=function(e){const t=[]
let n=(e=h(e)).length,o=128,a=0,s=72
for(const n of e)n<128&&t.push(l(n))
let c=t.length,f=c
for(c&&t.push("-");f<n;){let n=r
for(const t of e)t>=o&&t<n&&(n=t)
const h=f+1
n-o>u((r-a)/h)&&d("overflow"),a+=(n-o)*h,o=n
for(const n of e)if(n<o&&++a>r&&d("overflow"),n==o){let e=a
for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s
if(e<r)break
const o=e-r,a=i-r
t.push(l(g(r+o%a,0))),e=u(o/a)}t.push(l(g(e,0))),s=m(a,h,f==c),a=0,++f}++a,++o}return t.join("")},b=function(e){return f(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},E=function(e){return f(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},_={version:"2.1.0",ucs2:{decode:h,encode:p},decode:v,encode:y,toASCII:E,toUnicode:b}},93095:e=>{var t
self,t=()=>(()=>{var e={582:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>s})
var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i())
a.push([e.id,".ql-container{position:relative;overflow:hidden}@media(pointer: coarse){.ql-cursor-caret-container{z-index:-1}}.ql-cursor.hidden{display:none}.ql-cursor .ql-cursor-caret-container,.ql-cursor .ql-cursor-flag{position:absolute}.ql-cursor .ql-cursor-flag{z-index:1;transform:translate3d(-1px, -100%, 0);opacity:0;visibility:hidden;color:#fff;padding-bottom:2px;border-radius:0 3px 3px 0}.ql-cursor .ql-cursor-flag.flag-flipped{border-radius:3px 0 0 3px;transform:translate3d(calc(-100% + 1px ), -100%, 0)}@media screen{.ql-cursor .ql-cursor-flag{transition:opacity 0ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms,visibility 0ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms}}.ql-cursor .ql-cursor-flag .ql-cursor-name{margin-left:5px;margin-right:5px;display:inline-block;margin-top:-2px;white-space:nowrap}.ql-cursor .ql-cursor-flag.no-delay[style]{transition-delay:unset !important}.ql-cursor .ql-cursor-caret-container{cursor:text;margin-left:-9px;padding:0 9px}.ql-cursor .ql-cursor-caret-container.hover+.ql-cursor-flag{opacity:1;visibility:visible;transition:none}.ql-cursor .ql-cursor-caret-container.no-pointer{pointer-events:none}.ql-cursor .ql-cursor-caret-container .ql-cursor-caret{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background-color:attr(data-color)}.ql-cursor .ql-cursor-selection-block{position:absolute;pointer-events:none}",""])
const s=a},645:e=>{"use strict"
e.exports=function(e){var t=[]
return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5]
return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]])
var a={}
if(r)for(var s=0;s<this.length;s++){var c=this[s][0]
null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u])
r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},81:e=>{"use strict"
e.exports=function(e){return e[1]}},529:e=>{var t=-1
function n(e,s,c,u){if(e===s)return e?[[0,e]]:[]
if(null!=c){var l=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,o=e.length,a=t.length
if(0===r.length&&(null===i||0===i.length)){var s=r.index,c=e.slice(0,s),u=e.slice(s),l=i?i.index:null,f=s+a-o
if((null===l||l===f)&&!(f<0||f>a)){var h=t.slice(0,f)
if((m=t.slice(f))===u){var p=Math.min(s,f)
if((y=c.slice(0,p))===(E=h.slice(0,p)))return d(y,c.slice(p),h.slice(p),u)}}if(null===l||l===s){var g=s,m=(h=t.slice(0,g),t.slice(g))
if(h===c){var v=Math.min(o-g,a-g)
if((b=u.slice(u.length-v))===(_=m.slice(m.length-v)))return d(c,u.slice(0,u.length-v),m.slice(0,m.length-v),b)}}}if(r.length>0&&i&&0===i.length){var y=e.slice(0,r.index),b=e.slice(r.index+r.length)
if(!(a<(p=y.length)+(v=b.length))){var E=t.slice(0,p),_=t.slice(a-v)
if(y===E&&b===_)return d(y,e.slice(p,o-v),t.slice(p,a-v),b)}}return null}(e,s,c)
if(l)return l}var f=i(e,s),h=e.substring(0,f)
f=o(e=e.substring(f),s=s.substring(f))
var p=e.substring(e.length-f),g=function(e,a){var s
if(!e)return[[1,a]]
if(!a)return[[t,e]]
var c=e.length>a.length?e:a,u=e.length>a.length?a:e,l=c.indexOf(u)
if(-1!==l)return s=[[1,c.substring(0,l)],[0,u],[1,c.substring(l+u.length)]],e.length>a.length&&(s[0][0]=s[2][0]=t),s
if(1===u.length)return[[t,e],[1,a]]
var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e
if(n.length<4||2*r.length<n.length)return null
function a(e,t,n){for(var r,a,s,c,u=e.substring(n,n+Math.floor(e.length/4)),l=-1,d="";-1!==(l=t.indexOf(u,l+1));){var f=i(e.substring(n),t.substring(l)),h=o(e.substring(0,n),t.substring(0,l))
d.length<h+f&&(d=t.substring(l-h,l)+t.substring(l,l+f),r=e.substring(0,n-h),a=e.substring(n+f),s=t.substring(0,l-h),c=t.substring(l+f))}return 2*d.length>=e.length?[r,a,s,c,d]:null}var s,c,u,l,d,f=a(n,r,Math.ceil(n.length/4)),h=a(n,r,Math.ceil(n.length/2))
return f||h?(s=h?f&&f[4].length>h[4].length?f:h:f,e.length>t.length?(c=s[0],u=s[1],l=s[2],d=s[3]):(l=s[0],d=s[1],c=s[2],u=s[3]),[c,u,l,d,s[4]]):null}(e,a)
if(d){var f=d[0],h=d[1],p=d[2],g=d[3],m=d[4],v=n(f,p),y=n(h,g)
return v.concat([[0,m]],y)}return function(e,n){for(var i=e.length,o=n.length,a=Math.ceil((i+o)/2),s=a,c=2*a,u=new Array(c),l=new Array(c),d=0;d<c;d++)u[d]=-1,l[d]=-1
u[s+1]=0,l[s+1]=0
for(var f=i-o,h=f%2!=0,p=0,g=0,m=0,v=0,y=0;y<a;y++){for(var b=-y+p;b<=y-g;b+=2){for(var E=s+b,_=(A=b===-y||b!==y&&u[E-1]<u[E+1]?u[E+1]:u[E-1]+1)-b;A<i&&_<o&&e.charAt(A)===n.charAt(_);)A++,_++
if(u[E]=A,A>i)g+=2
else if(_>o)p+=2
else if(h&&(x=s+f-b)>=0&&x<c&&-1!==l[x]&&A>=(S=i-l[x]))return r(e,n,A,_)}for(var T=-y+m;T<=y-v;T+=2){for(var S,x=s+T,C=(S=T===-y||T!==y&&l[x-1]<l[x+1]?l[x+1]:l[x-1]+1)-T;S<i&&C<o&&e.charAt(i-S-1)===n.charAt(o-C-1);)S++,C++
if(l[x]=S,S>i)v+=2
else if(C>o)m+=2
else if(!h){var A
if((E=s+f-T)>=0&&E<c&&-1!==u[E]&&(_=s+(A=u[E])-E,A>=(S=i-S)))return r(e,n,A,_)}}}return[[t,e],[1,n]]}(e,a)}(e=e.substring(0,e.length-f),s=s.substring(0,s.length-f))
return h&&g.unshift([0,h]),p&&g.push([0,p]),a(g,u),g}function r(e,t,r,i){var o=e.substring(0,r),a=t.substring(0,i),s=e.substring(r),c=t.substring(i),u=n(o,a),l=n(s,c)
return u.concat(l)}function i(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0
for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n)
return s(e.charCodeAt(i-1))&&i--,i}function o(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0
for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n)
return c(e.charCodeAt(e.length-i))&&i--,i}function a(e,n){e.push([0,""])
for(var r,s=0,c=0,d=0,f="",h="";s<e.length;)if(s<e.length-1&&!e[s][1])e.splice(s,1)
else switch(e[s][0]){case 1:d++,h+=e[s][1],s++
break
case t:c++,f+=e[s][1],s++
break
case 0:var p=s-d-c-1
if(n){if(p>=0&&l(e[p][1])){var g=e[p][1].slice(-1)
if(e[p][1]=e[p][1].slice(0,-1),f=g+f,h=g+h,!e[p][1]){e.splice(p,1),s--
var m=p-1
e[m]&&1===e[m][0]&&(d++,h=e[m][1]+h,m--),e[m]&&e[m][0]===t&&(c++,f=e[m][1]+f,m--),p=m}}u(e[s][1])&&(g=e[s][1].charAt(0),e[s][1]=e[s][1].slice(1),f+=g,h+=g)}if(s<e.length-1&&!e[s][1]){e.splice(s,1)
break}if(f.length>0||h.length>0){f.length>0&&h.length>0&&(0!==(r=i(h,f))&&(p>=0?e[p][1]+=h.substring(0,r):(e.splice(0,0,[0,h.substring(0,r)]),s++),h=h.substring(r),f=f.substring(r)),0!==(r=o(h,f))&&(e[s][1]=h.substring(h.length-r)+e[s][1],h=h.substring(0,h.length-r),f=f.substring(0,f.length-r)))
var v=d+c
0===f.length&&0===h.length?(e.splice(s-v,v),s-=v):0===f.length?(e.splice(s-v,v,[1,h]),s=s-v+1):0===h.length?(e.splice(s-v,v,[t,f]),s=s-v+1):(e.splice(s-v,v,[t,f],[1,h]),s=s-v+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,d=0,c=0,f="",h=""}""===e[e.length-1][1]&&e.pop()
var y=!1
for(s=1;s<e.length-1;)0===e[s-1][0]&&0===e[s+1][0]&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)===e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),y=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),y=!0)),s++
y&&a(e,n)}function s(e){return e>=55296&&e<=56319}function c(e){return e>=56320&&e<=57343}function u(e){return c(e.charCodeAt(0))}function l(e){return s(e.charCodeAt(e.length-1))}function d(e,n,r,i){return l(e)||u(i)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n])
return t}([[0,e],[t,n],[1,r],[0,i]])}function f(e,t,r){return n(e,t,r,!0)}f.INSERT=1,f.DELETE=t,f.EQUAL=0,e.exports=f},465:(e,t,n)=>{e=n.nmd(e)
var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",c="[object Function]",u="[object GeneratorFunction]",l="[object Map]",d="[object Number]",f="[object Object]",h="[object Promise]",p="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",w="[object Uint8ClampedArray]",I="[object Uint16Array]",R="[object Uint32Array]",k=/\w*$/,O=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,N={}
N[o]=N["[object Array]"]=N[b]=N[E]=N[a]=N[s]=N[_]=N[T]=N[S]=N[x]=N[C]=N[l]=N[d]=N[f]=N[p]=N[g]=N[m]=N[v]=N[A]=N[w]=N[I]=N[R]=!0,N["[object Error]"]=N[c]=N[y]=!1
var P="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,D="object"==typeof self&&self&&self.Object===Object&&self,U=P||D||Function("return this")(),L=t&&!t.nodeType&&t,j=L&&e&&!e.nodeType&&e,F=j&&j.exports===L
function B(e,t){return e.set(t[0],t[1]),e}function q(e,t){return e.add(t),e}function H(e,t,n,r){var i=-1,o=e?e.length:0
for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e)
return n}function G(e){var t=!1
if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function K(e){var t=-1,n=Array(e.size)
return e.forEach((function(e,r){n[++t]=[r,e]})),n}function V(e,t){return function(n){return e(t(n))}}function z(e){var t=-1,n=Array(e.size)
return e.forEach((function(e){n[++t]=e})),n}var W,X=Array.prototype,Q=Function.prototype,Y=Object.prototype,$=U["__core-js_shared__"],J=(W=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",Z=Q.toString,ee=Y.hasOwnProperty,te=Y.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=F?U.Buffer:void 0,ie=U.Symbol,oe=U.Uint8Array,ae=V(Object.getPrototypeOf,Object),se=Object.create,ce=Y.propertyIsEnumerable,ue=X.splice,le=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,fe=V(Object.keys,Object),he=Ue(U,"DataView"),pe=Ue(U,"Map"),ge=Ue(U,"Promise"),me=Ue(U,"Set"),ve=Ue(U,"WeakMap"),ye=Ue(Object,"create"),be=qe(he),Ee=qe(pe),_e=qe(ge),Te=qe(me),Se=qe(ve),xe=ie?ie.prototype:void 0,Ce=xe?xe.valueOf:void 0
function Ae(e){var t=-1,n=e?e.length:0
for(this.clear();++t<n;){var r=e[t]
this.set(r[0],r[1])}}function we(e){var t=-1,n=e?e.length:0
for(this.clear();++t<n;){var r=e[t]
this.set(r[0],r[1])}}function Ie(e){var t=-1,n=e?e.length:0
for(this.clear();++t<n;){var r=e[t]
this.set(r[0],r[1])}}function Re(e){this.__data__=new we(e)}function ke(e,t,n){var r=e[t]
ee.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Oe(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n
return-1}function Me(e,t,n,r,i,h,y){var O
if(r&&(O=h?r(e,i,h,y):r(e)),void 0!==O)return O
if(!We(e))return e
var M=Ge(e)
if(M){if(O=function(e){var t=e.length,n=e.constructor(t)
return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length
for(t||(t=Array(r));++n<r;)t[n]=e[n]
return t}(e,O)}else{var P=je(e),D=P==c||P==u
if(Ve(e))return function(e,t){if(t)return e.slice()
var n=new e.constructor(e.length)
return e.copy(n),n}(e,t)
if(P==f||P==o||D&&!h){if(G(e))return h?e:{}
if(O=function(e){return"function"!=typeof e.constructor||Be(e)?{}:We(t=ae(e))?se(t):{}
var t}(D?{}:e),!t)return function(e,t){return Pe(e,Le(e),t)}(e,function(e,t){return e&&Pe(t,Xe(t),e)}(O,e))}else{if(!N[P])return h?e:{}
O=function(e,t,n,r){var i,o=e.constructor
switch(t){case b:return Ne(e)
case a:case s:return new o(+e)
case E:return function(e,t){var n=t?Ne(e.buffer):e.buffer
return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r)
case _:case T:case S:case x:case C:case A:case w:case I:case R:return function(e,t){var n=t?Ne(e.buffer):e.buffer
return new e.constructor(n,e.byteOffset,e.length)}(e,r)
case l:return function(e,t,n){return H(t?n(K(e),!0):K(e),B,new e.constructor)}(e,r,n)
case d:case m:return new o(e)
case p:return function(e){var t=new e.constructor(e.source,k.exec(e))
return t.lastIndex=e.lastIndex,t}(e)
case g:return function(e,t,n){return H(t?n(z(e),!0):z(e),q,new e.constructor)}(e,r,n)
case v:return i=e,Ce?Object(Ce.call(i)):{}}}(e,P,Me,t)}}y||(y=new Re)
var U=y.get(e)
if(U)return U
if(y.set(e,O),!M)var L=n?function(e){return function(e,t,n){var r=t(e)
return Ge(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n]
return e}(r,n(e))}(e,Xe,Le)}(e):Xe(e)
return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(L||e,(function(i,o){L&&(i=e[o=i]),ke(O,o,Me(i,t,n,r,o,e,y))})),O}function Ne(e){var t=new e.constructor(e.byteLength)
return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={})
for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0
ke(n,a,void 0===s?e[a]:s)}return n}function De(e,t){var n,r,i=e.__data__
return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t)
return function(e){return!(!We(e)||(t=e,J&&J in t))&&(ze(e)||G(e)?ne:O).test(qe(e))
var t}(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__
if(ye){var n=t[e]
return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__
return ye?void 0!==t[e]:ee.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},we.prototype.clear=function(){this.__data__=[]},we.prototype.delete=function(e){var t=this.__data__,n=Oe(t,e)
return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},we.prototype.get=function(e){var t=this.__data__,n=Oe(t,e)
return n<0?void 0:t[n][1]},we.prototype.has=function(e){return Oe(this.__data__,e)>-1},we.prototype.set=function(e,t){var n=this.__data__,r=Oe(n,e)
return r<0?n.push([e,t]):n[r][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||we),string:new Ae}},Ie.prototype.delete=function(e){return De(this,e).delete(e)},Ie.prototype.get=function(e){return De(this,e).get(e)},Ie.prototype.has=function(e){return De(this,e).has(e)},Ie.prototype.set=function(e,t){return De(this,e).set(e,t),this},Re.prototype.clear=function(){this.__data__=new we},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__
if(n instanceof we){var r=n.__data__
if(!pe||r.length<199)return r.push([e,t]),this
n=this.__data__=new Ie(r)}return n.set(e,t),this}
var Le=le?V(le,Object):function(){return[]},je=function(e){return te.call(e)}
function Fe(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){var t=e&&e.constructor
return e===("function"==typeof t&&t.prototype||Y)}function qe(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(he&&je(new he(new ArrayBuffer(1)))!=E||pe&&je(new pe)!=l||ge&&je(ge.resolve())!=h||me&&je(new me)!=g||ve&&je(new ve)!=y)&&(je=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?qe(n):void 0
if(r)switch(r){case be:return E
case Ee:return l
case _e:return h
case Te:return g
case Se:return y}return t})
var Ge=Array.isArray
function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!ze(e)}var Ve=de||function(){return!1}
function ze(e){var t=We(e)?te.call(e):""
return t==c||t==u}function We(e){var t=typeof e
return!!e&&("object"==t||"function"==t)}function Xe(e){return Ke(e)?function(e,t){var n=Ge(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(e)}(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n)
return r}(e.length,String):[],r=n.length,i=!!r
for(var a in e)!ee.call(e,a)||i&&("length"==a||Fe(a,r))||n.push(a)
return n}(e):function(e){if(!Be(e))return fe(e)
var t=[]
for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n)
return t}(e)}e.exports=function(e){return Me(e,!0,!0)}},307:(e,t,n)=>{e=n.nmd(e)
var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",_=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,S={}
S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[a]=S[b]=S[s]=S[E]=S[c]=S[u]=S[l]=S[d]=S[f]=S[h]=S[g]=S[m]=S[v]=S[y]=!1
var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,C="object"==typeof self&&self&&self.Object===Object&&self,A=x||C||Function("return this")(),w=t&&!t.nodeType&&t,I=w&&e&&!e.nodeType&&e,R=I&&I.exports===w,k=R&&x.process,O=function(){try{return k&&k.binding&&k.binding("util")}catch(e){}}(),M=O&&O.isTypedArray
function N(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0
return!1}function P(e){var t=-1,n=Array(e.size)
return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e){var t=-1,n=Array(e.size)
return e.forEach((function(e){n[++t]=e})),n}var U,L,j,F=Array.prototype,B=Function.prototype,q=Object.prototype,H=A["__core-js_shared__"],G=B.toString,K=q.hasOwnProperty,V=(U=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",z=q.toString,W=RegExp("^"+G.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=R?A.Buffer:void 0,Q=A.Symbol,Y=A.Uint8Array,$=q.propertyIsEnumerable,J=F.splice,Z=Q?Q.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=X?X.isBuffer:void 0,ne=(L=Object.keys,j=Object,function(e){return L(j(e))}),re=Ie(A,"DataView"),ie=Ie(A,"Map"),oe=Ie(A,"Promise"),ae=Ie(A,"Set"),se=Ie(A,"WeakMap"),ce=Ie(Object,"create"),ue=Me(re),le=Me(ie),de=Me(oe),fe=Me(ae),he=Me(se),pe=Q?Q.prototype:void 0,ge=pe?pe.valueOf:void 0
function me(e){var t=-1,n=null==e?0:e.length
for(this.clear();++t<n;){var r=e[t]
this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length
for(this.clear();++t<n;){var r=e[t]
this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length
for(this.clear();++t<n;){var r=e[t]
this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length
for(this.__data__=new ye;++t<n;)this.add(e[t])}function Ee(e){var t=this.__data__=new ve(e)
this.size=t.size}function _e(e,t){for(var n=e.length;n--;)if(Ne(e[n][0],t))return n
return-1}function Te(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=K.call(e,Z),n=e[Z]
try{e[Z]=void 0
var r=!0}catch(e){}var i=z.call(e)
return r&&(t?e[Z]=n:delete e[Z]),i}(e):function(e){return z.call(e)}(e)}function Se(e){return Be(e)&&Te(e)==o}function xe(e,t,n,r,i){return e===t||(null==e||null==t||!Be(e)&&!Be(t)?e!=e&&t!=t:function(e,t,n,r,i,l){var p=De(e),y=De(t),_=p?a:ke(e),T=y?a:ke(t),S=(_=_==o?h:_)==h,x=(T=T==o?h:T)==h,C=_==T
if(C&&Ue(e)){if(!Ue(t))return!1
p=!0,S=!1}if(C&&!S)return l||(l=new Ee),p||qe(e)?Ce(e,t,n,r,i,l):function(e,t,n,r,i,o,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1
e=e.buffer,t=t.buffer
case b:return!(e.byteLength!=t.byteLength||!o(new Y(e),new Y(t)))
case s:case c:case f:return Ne(+e,+t)
case u:return e.name==t.name&&e.message==t.message
case g:case v:return e==t+""
case d:var l=P
case m:var h=1&r
if(l||(l=D),e.size!=t.size&&!h)return!1
var p=a.get(e)
if(p)return p==t
r|=2,a.set(e,t)
var y=Ce(l(e),l(t),r,i,o,a)
return a.delete(e),y
case"[object Symbol]":if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,_,n,r,i,l)
if(!(1&n)){var A=S&&K.call(e,"__wrapped__"),w=x&&K.call(t,"__wrapped__")
if(A||w){var I=A?e.value():e,R=w?t.value():t
return l||(l=new Ee),i(I,R,n,r,l)}}return!!C&&(l||(l=new Ee),function(e,t,n,r,i,o){var a=1&n,s=Ae(e),c=s.length
if(c!=Ae(t).length&&!a)return!1
for(var u=c;u--;){var l=s[u]
if(!(a?l in t:K.call(t,l)))return!1}var d=o.get(e)
if(d&&o.get(t))return d==t
var f=!0
o.set(e,t),o.set(t,e)
for(var h=a;++u<c;){var p=e[l=s[u]],g=t[l]
if(r)var m=a?r(g,p,l,t,e,o):r(p,g,l,e,t,o)
if(!(void 0===m?p===g||i(p,g,n,r,o):m)){f=!1
break}h||(h="constructor"==l)}if(f&&!h){var v=e.constructor,y=t.constructor
v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,l))}(e,t,n,r,xe,i))}function Ce(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length
if(s!=c&&!(a&&c>s))return!1
var u=o.get(e)
if(u&&o.get(t))return u==t
var l=-1,d=!0,f=2&n?new be:void 0
for(o.set(e,t),o.set(t,e);++l<s;){var h=e[l],p=t[l]
if(r)var g=a?r(p,h,l,t,e,o):r(h,p,l,e,t,o)
if(void 0!==g){if(g)continue
d=!1
break}if(f){if(!N(t,(function(e,t){if(a=t,!f.has(a)&&(h===e||i(h,e,n,r,o)))return f.push(t)
var a}))){d=!1
break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1
break}}return o.delete(e),o.delete(t),d}function Ae(e){return function(e,t,n){var r=t(e)
return De(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n]
return e}(r,n(e))}(e,He,Re)}function we(e,t){var n,r,i=e.__data__
return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t)
return function(e){return!(!Fe(e)||function(e){return!!V&&V in e}(e))&&(Le(e)?W:_).test(Me(e))}(n)?n:void 0}me.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},me.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e]
return this.size-=t?1:0,t},me.prototype.get=function(e){var t=this.__data__
if(ce){var n=t[e]
return n===r?void 0:n}return K.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__
return ce?void 0!==t[e]:K.call(t,e)},me.prototype.set=function(e,t){var n=this.__data__
return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?r:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=_e(t,e)
return!(n<0||(n==t.length-1?t.pop():J.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=_e(t,e)
return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return _e(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e)
return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(ie||ve),string:new me}},ye.prototype.delete=function(e){var t=we(this,e).delete(e)
return this.size-=t?1:0,t},ye.prototype.get=function(e){return we(this,e).get(e)},ye.prototype.has=function(e){return we(this,e).has(e)},ye.prototype.set=function(e,t){var n=we(this,e),r=n.size
return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new ve,this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=t.delete(e)
return this.size=t.size,n},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__
if(n instanceof ve){var r=n.__data__
if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this
n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this}
var Re=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r<i;){var s=t[r]
c=s,$.call(e,c)&&(a[o++]=s)}var c
return a}(ee(e)))}:function(){return[]},ke=Te
function Oe(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ne(e,t){return e===t||e!=e&&t!=t}(re&&ke(new re(new ArrayBuffer(1)))!=E||ie&&ke(new ie)!=d||oe&&ke(oe.resolve())!=p||ae&&ke(new ae)!=m||se&&ke(new se)!=y)&&(ke=function(e){var t=Te(e),n=t==h?e.constructor:void 0,r=n?Me(n):""
if(r)switch(r){case ue:return E
case le:return d
case de:return p
case fe:return m
case he:return y}return t})
var Pe=Se(function(){return arguments}())?Se:function(e){return Be(e)&&K.call(e,"callee")&&!$.call(e,"callee")},De=Array.isArray,Ue=te||function(){return!1}
function Le(e){if(!Fe(e))return!1
var t=Te(e)
return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Fe(e){var t=typeof e
return null!=e&&("object"==t||"function"==t)}function Be(e){return null!=e&&"object"==typeof e}var qe=M?function(e){return function(t){return e(t)}}(M):function(e){return Be(e)&&je(e.length)&&!!S[Te(e)]}
function He(e){return null!=(t=e)&&je(t.length)&&!Le(t)?function(e,t){var n=De(e),r=!n&&Pe(e),i=!n&&!r&&Ue(e),o=!n&&!r&&!i&&qe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n)
return r}(e.length,String):[],c=s.length
for(var u in e)!K.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Oe(u,c))||s.push(u)
return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||q))return ne(e)
var t,n,r=[]
for(var i in Object(e))K.call(e,i)&&"constructor"!=i&&r.push(i)
return r}(e)
var t}e.exports=function(e,t){return xe(e,t)}},210:function(e,t,n){"use strict"
var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var i,o=r(n(465)),a=r(n(307))
!function(e){e.compose=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={})
var r=o.default(t)
for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i])
return Object.keys(r).length>0?r:void 0},e.diff=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={})
var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return a.default(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{})
return Object.keys(n).length>0?n:void 0},e.invert=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),e=e||{}
var n=Object.keys(t).reduce((function(n,r){return t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n}),{})
return Object.keys(e).reduce((function(n,r){return e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n}),n)},e.transform=function(e,t,n){if(void 0===n&&(n=!1),"object"!=typeof e)return t
if("object"==typeof t){if(!n)return t
var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{})
return Object.keys(r).length>0?r:void 0}}}(i||(i={})),t.default=i},895:function(e,t,n){"use strict"
var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=r(n(529)),o=r(n(465)),a=r(n(307)),s=r(n(210)),c=r(n(430)),u=String.fromCharCode(0),l=function(){function e(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={}
return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this
var n={retain:e}
return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1]
if(e=o.default(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this
if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this
if(a.default(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this
if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1]
return e&&e.retain&&!e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[]
return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+c.default.length(t):t.delete?e-t.delete:e}),0)},e.prototype.length=function(){return this.reduce((function(e,t){return e+c.default.length(t)}),0)},e.prototype.slice=function(t,n){void 0===t&&(t=0),void 0===n&&(n=1/0)
for(var r=[],i=c.default.iterator(this.ops),o=0;o<n&&i.hasNext();){var a=void 0
o<t?a=i.next(t-o):(a=i.next(n-o),r.push(a)),o+=c.default.length(a)}return new e(r)},e.prototype.compose=function(t){var n=c.default.iterator(this.ops),r=c.default.iterator(t.ops),i=[],o=r.peek()
if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var u=o.retain;"insert"===n.peekType()&&n.peekLength()<=u;)u-=n.peekLength(),i.push(n.next())
o.retain-u>0&&r.next(o.retain-u)}for(var l=new e(i);n.hasNext()||r.hasNext();)if("insert"===r.peekType())l.push(r.next())
else if("delete"===n.peekType())l.push(n.next())
else{var d=Math.min(n.peekLength(),r.peekLength()),f=n.next(d),h=r.next(d)
if("number"==typeof h.retain){var p={}
"number"==typeof f.retain?p.retain=d:p.insert=f.insert
var g=s.default.compose(f.attributes,h.attributes,"number"==typeof f.retain)
if(g&&(p.attributes=g),l.push(p),!r.hasNext()&&a.default(l.ops[l.ops.length-1],p)){var m=new e(n.rest())
return l.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&l.push(h)}return l.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice())
return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e
var r=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:u
throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new e,l=i.default(r[0],r[1],n),d=c.default.iterator(this.ops),f=c.default.iterator(t.ops)
return l.forEach((function(e){for(var t=e[1].length;t>0;){var n=0
switch(e[0]){case i.default.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n))
break
case i.default.DELETE:n=Math.min(t,d.peekLength()),d.next(n),o.delete(n)
break
case i.default.EQUAL:n=Math.min(d.peekLength(),f.peekLength(),t)
var r=d.next(n),c=f.next(n)
a.default(r.insert,c.insert)?o.retain(n,s.default.diff(r.attributes,c.attributes)):o.push(c).delete(n)}t-=n}})),o.chop()},e.prototype.eachLine=function(t,n){void 0===n&&(n="\n")
for(var r=c.default.iterator(this.ops),i=new e,o=0;r.hasNext();){if("insert"!==r.peekType())return
var a=r.peek(),s=c.default.length(a)-r.peekLength(),u="string"==typeof a.insert?a.insert.indexOf(n,s)-s:-1
if(u<0)i.push(r.next())
else if(u>0)i.push(r.next(u))
else{if(!1===t(i,r.next(1).attributes||{},o))return
o+=1,i=new e}}i.length()>0&&t(i,{},o)},e.prototype.invert=function(t){var n=new e
return this.reduce((function(e,r){if(r.insert)n.delete(c.default.length(r))
else{if(r.retain&&null==r.attributes)return n.retain(r.retain),e+r.retain
if(r.delete||r.retain&&r.attributes){var i=r.delete||r.retain
return t.slice(e,e+i).forEach((function(e){r.delete?n.push(e):r.retain&&r.attributes&&n.retain(c.default.length(e),s.default.invert(r.attributes,e.attributes))})),e+i}}return e}),0),n.chop()},e.prototype.transform=function(t,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof t)return this.transformPosition(t,n)
for(var r=t,i=c.default.iterator(this.ops),o=c.default.iterator(r.ops),a=new e;i.hasNext()||o.hasNext();)if("insert"!==i.peekType()||!n&&"insert"===o.peekType())if("insert"===o.peekType())a.push(o.next())
else{var u=Math.min(i.peekLength(),o.peekLength()),l=i.next(u),d=o.next(u)
if(l.delete)continue
d.delete?a.push(d):a.retain(u,s.default.transform(l.attributes,d.attributes,n))}else a.retain(c.default.length(i.next()))
return a.chop()},e.prototype.transformPosition=function(e,t){void 0===t&&(t=!1),t=!!t
for(var n=c.default.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType()
n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.Op=c.default,e.AttributeMap=s.default,e}()
e.exports=l},977:function(e,t,n){"use strict"
var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var i=r(n(430)),o=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){e||(e=1/0)
var t=this.ops[this.index]
if(t){var n=this.offset,r=i.default.length(t)
if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e}
var o={}
return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return this.ops[this.index]?i.default.length(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index)
var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index)
return this.offset=e,this.index=t,[n].concat(r)}return[]},e}()
t.default=o},430:function(e,t,n){"use strict"
var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var i,o=r(n(977))
!function(e){e.iterator=function(e){return new o.default(e)},e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}}(i||(i={})),t.default=i},165:function(e,t,n){var r,i
void 0===(i="function"==typeof(r=function(){var e,t={}
function n(e,t,n){var r=e.getClientRects()
if(2===r.length){var i=e.getBoundingClientRect()
return r[t][n]<i[n]}return!1}function r(e){if(!e)return e
if(screen.deviceXDPI===screen.logicalXDPI)return e
if("length"in e)return Array.prototype.map.call(e,r)
var t=screen.deviceXDPI/screen.logicalXDPI
return{top:e.top/t,bottom:e.bottom/t,left:e.left/t,right:e.right/t,width:e.width/t,height:e.height/t}}function i(e,t){var n,r=0,i=1024
if(i>=t.length)return Array.prototype.push.apply(e,t)
for(;r<t.length;)n=Array.prototype.push.apply(e,Array.prototype.slice.call(t,r,r+i)),r+=i
return n}return t.isBroken=function(){if(void 0===e){var t=document.createElement("p"),r=document.createElement("span"),i=document.createTextNode("aa"),o=document.createTextNode("aa"),a=document.createElement("img")
a.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=")
var s=document.createRange()
if(e={},t.appendChild(i),t.appendChild(r),r.appendChild(a),r.appendChild(o),document.body.appendChild(t),s.setStart(i,1),s.setEnd(r,0),e.getClientRects=e.getBoundingClientRect=s.getClientRects().length>1,e.getClientRects||(s.setEnd(o,1),e.getClientRects=e.getBoundingClientRect=2===s.getClientRects().length),!e.getBoundingClientRect){s.setEnd(s.startContainer,s.startOffset)
var c=s.getBoundingClientRect()
e.getBoundingClientRect=0===c.top&&0===c.left}if(document.body.removeChild(t),!e.getBoundingClientRect){var u=document.createElement("p")
u.style.width="0px",u.style.fontSize="20px",u.style.whiteSpace="normal",u.style.wordBreak="normal"
var l=document.createTextNode("m mm")
u.appendChild(l),document.body.appendChild(u),s.setStart(l,1),s.setEnd(l,2),n(s,1,"left")?e.getBoundingClientRect=!0:(s.setStart(l,1),s.setEnd(l,3),n(s,0,"top")&&(e.getBoundingClientRect=!0)),document.body.removeChild(u)}var d=window.ActiveXObject&&new Function("/*@cc_on return @_jscript_version; @*/")()
e.ieZoom=!!d&&d<=10}return e},t.getClientRects=function(e){var t=this.isBroken()
if(t.ieZoom)return r(e.getClientRects())
if(!t.getClientRects)return e.getClientRects()
var n=[],o=[],a=e.endContainer,s=e.endOffset,c=document.createRange()
function u(e){for(var t=0;e=e.previousSibling;)t++
return t}for(;a!==e.commonAncestorContainer;)c.setStart(a,0),c.setEnd(a,s),i(o,c.getClientRects()),s=u(a),a=a.parentNode
return(c=e.cloneRange()).setEnd(a,s),i(n,c.getClientRects()),i(n,o),n},t.getBoundingClientRect=function(e){var t=this.getClientRects(e)
if(0===t.length)return null
var n,i=e.getBoundingClientRect(),o=this.isBroken()
if(o.ieZoom)return r(i)
if(!o.getBoundingClientRect)return i
if(0===i.width&&0===i.height)return t[0]
for(var a=0,s=t.length;a<s;a++){var c=t[a]
n?(n.left=Math.min(n.left,c.left),n.top=Math.min(n.top,c.top),n.right=Math.max(n.right,c.right),n.bottom=Math.max(n.bottom,c.bottom)):n={left:c.left,top:c.top,right:c.right,bottom:c.bottom}}return n&&(n.width=n.right-n.left,n.height=n.bottom-n.top),n},t})?r.call(t,n,t,e):r)||(e.exports=i)},33:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>T})
var r=function(){if("undefined"!=typeof Map)return Map
function e(e,t){var n=-1
return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n]
return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t)
~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t)
~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null)
for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n]
e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0
function o(){n&&(n=!1,e()),r&&c()}function s(){a(o)}function c(){var e=Date.now()
if(n){if(e-i<2)return
r=!0}else n=!0,r=!1,setTimeout(s,20)
i=e}return c}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e)
~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}))
return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t
s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n]
Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=m(0,0,0,0)
function h(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox}
function m(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){return i?g(e)?function(e){var t=e.getBBox()
return m(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight
if(!t&&!n)return f
var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i]
t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),c=h(r.height)
if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=p(r,"left","right")+o),Math.round(c+a)!==n&&(c-=p(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(s+o)-t,l=Math.round(c+a)-n
1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return m(i.left,i.top,s,c)}(e):f}(this.target)
return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_
return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,r,i,o,a,s,c,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),l(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c)
l(this,{target:e,contentRect:u})},b=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.")
this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.")
if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".')
var t=this.observations_
t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.")
if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".')
var t=this.observations_
t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this
this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}))
this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.")
if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.")
var n=u.getInstance(),r=new b(t,n,this)
E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t
return(t=E.get(this))[e].apply(t,arguments)}}))
const T=void 0!==o.ResizeObserver?o.ResizeObserver:_},413:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>v})
var r=n(379),i=n.n(r),o=n(795),a=n.n(o),s=n(569),c=n.n(s),u=n(565),l=n.n(u),d=n(216),f=n.n(d),h=n(589),p=n.n(h),g=n(582),m={}
m.styleTagTransform=p(),m.setAttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),i()(g.Z,m)
const v=g.Z&&g.Z.locals?g.Z.locals:void 0},379:e=>{"use strict"
var t=[]
function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r
break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],l=o[u]||0,d="".concat(u," ").concat(l)
o[u]=l+1
var f=n(d),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]}
if(-1!==f)t[f].references++,t[f].updater(h)
else{var p=i(h,r)
r.byIndex=s,t.splice(s,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t)
return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return
n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{})
return function(e){e=e||[]
for(var a=0;a<o.length;a++){var s=n(o[a])
t[s].references--}for(var c=r(e,i),u=0;u<o.length;u++){var l=n(o[u])
0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},569:e=>{"use strict"
var t={}
e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e)
if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e)
if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")
r.appendChild(n)}},216:e=>{"use strict"
e.exports=function(e){var t=document.createElement("style")
return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict"
e.exports=function(e){var t=n.nc
t&&e.setAttribute("nonce",t)}},795:e=>{"use strict"
e.exports=function(e){var t=e.insertStyleElement(e)
return{update:function(n){!function(e,t,n){var r=""
n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"))
var i=void 0!==n.layer
i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}")
var o=n.sourceMap
o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1
e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict"
e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e
else{for(;t.firstChild;)t.removeChild(t.firstChild)
t.appendChild(document.createTextNode(e))}}},607:function(e,t,n){"use strict"
var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0}),t.Cursor=t.default=void 0
var i=r(n(678))
t.default=i.default
var o=r(n(353))
t.Cursor=o.default,n(413)},353:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var r=n(207),i=function(){function e(e,t,n){this.id=e,this.name=t,this.color=n,this.toggleNearCursor=this.toggleNearCursor.bind(this),this._toggleOpenedCursor=this._toggleOpenedCursor.bind(this),this._setHoverState=this._setHoverState.bind(this)}return e.prototype.build=function(t){var n=document.createElement(e.CONTAINER_ELEMENT_TAG)
n.classList.add(e.CURSOR_CLASS),n.id="ql-cursor-".concat(this.id),n.innerHTML=t.template
var r=n.getElementsByClassName(e.SELECTION_CLASS)[0],i=n.getElementsByClassName(e.CARET_CONTAINER_CLASS)[0],o=i.getElementsByClassName(e.CARET_CLASS)[0],a=n.getElementsByClassName(e.FLAG_CLASS)[0]
return a.style.backgroundColor=this.color,o.style.backgroundColor=this.color,n.getElementsByClassName(e.NAME_CLASS)[0].textContent=this.name,this._hideDelay="".concat(t.hideDelayMs,"ms"),this._hideSpeedMs=t.hideSpeedMs,this._positionFlag=t.positionFlag,a.style.transitionDelay=this._hideDelay,a.style.transitionDuration="".concat(this._hideSpeedMs,"ms"),this._el=n,this._selectionEl=r,this._caretEl=i,this._flagEl=a,i.addEventListener("mouseover",this._setHoverState),this._el},e.prototype.show=function(){this._el.classList.remove(e.HIDDEN_CLASS)},e.prototype.hide=function(){this._el.classList.add(e.HIDDEN_CLASS)},e.prototype.remove=function(){this._el.parentNode.removeChild(this._el)},e.prototype.toggleNearCursor=function(t,n){var r=this._getCoordinates(),i=r.left,o=r.right,a=r.top,s=r.bottom,c=t>=i&&t<=o&&n>=a&&n<=s
return this._caretEl.classList.toggle(e.CONTAINER_HOVER_CLASS,c),c},e.prototype.toggleFlag=function(t){var n=this
this._caretEl.classList.toggle(e.CONTAINER_HOVER_CLASS,t)||(this._flagEl.classList.add(e.NO_DELAY_CLASS),setTimeout((function(){return n._flagEl.classList.remove(e.NO_DELAY_CLASS)}),this._hideSpeedMs))},e.prototype.updateCaret=function(e,t){this._caretEl.style.top="".concat(e.top,"px"),this._caretEl.style.left="".concat(e.left,"px"),this._caretEl.style.height="".concat(e.height,"px"),this._positionFlag?this._positionFlag(this._flagEl,e,t):this._updateCaretFlag(e,t)},e.prototype.updateSelection=function(e,t){var n=this
this._clearSelection(),e=e||[],e=Array.from(e),e=this._sanitize(e),(e=this._sortByDomPosition(e)).forEach((function(e){return n._addSelection(e,t)}))},e.prototype._setHoverState=function(){document.addEventListener("mousemove",this._toggleOpenedCursor)},e.prototype._toggleOpenedCursor=function(t){var n=this.toggleNearCursor(t.clientX,t.clientY)
this._caretEl.classList.toggle(e.CONTAINER_NO_POINTER_CLASS,n),n||document.removeEventListener("mousemove",this._toggleOpenedCursor)},e.prototype._getCoordinates=function(){return this._caretEl.getBoundingClientRect()},e.prototype._updateCaretFlag=function(t,n){this._flagEl.style.width=""
var r=this._flagEl.getBoundingClientRect()
this._flagEl.classList.remove(e.FLAG_FLIPPED_CLASS),t.left>n.width-r.width&&this._flagEl.classList.add(e.FLAG_FLIPPED_CLASS),this._flagEl.style.left="".concat(t.left,"px"),this._flagEl.style.top="".concat(t.top,"px"),this._flagEl.style.width="".concat(Math.ceil(r.width),"px")},e.prototype._clearSelection=function(){this._selectionEl.innerHTML=""},e.prototype._addSelection=function(e,t){var n=this._selectionBlock(e,t)
this._selectionEl.appendChild(n)},e.prototype._selectionBlock=function(t,n){var i=document.createElement(e.SELECTION_ELEMENT_TAG)
return i.classList.add(e.SELECTION_BLOCK_CLASS),i.style.top="".concat(t.top-n.top,"px"),i.style.left="".concat(t.left-n.left,"px"),i.style.width="".concat(t.width,"px"),i.style.height="".concat(t.height,"px"),i.style.backgroundColor=r(this.color).setAlpha(.3).toString(),i},e.prototype._sortByDomPosition=function(e){return e.sort((function(e,t){return e.top===t.top?e.left-t.left:e.top-t.top}))},e.prototype._sanitize=function(e){var t=this,n=new Set
return e.filter((function(e){if(!e.width||!e.height)return!1
var r=t._serialize(e)
return!n.has(r)&&(n.add(r),!0)}))},e.prototype._serialize=function(e){return["top:".concat(e.top),"right:".concat(e.right),"bottom:".concat(e.bottom),"left:".concat(e.left)].join(";")},e.CONTAINER_ELEMENT_TAG="SPAN",e.SELECTION_ELEMENT_TAG="SPAN",e.CURSOR_CLASS="ql-cursor",e.SELECTION_CLASS="ql-cursor-selections",e.SELECTION_BLOCK_CLASS="ql-cursor-selection-block",e.CARET_CLASS="ql-cursor-caret",e.CARET_CONTAINER_CLASS="ql-cursor-caret-container",e.CONTAINER_HOVER_CLASS="hover",e.CONTAINER_NO_POINTER_CLASS="no-pointer",e.FLAG_CLASS="ql-cursor-flag",e.FLAG_FLIPPED_CLASS="flag-flipped",e.NAME_CLASS="ql-cursor-name",e.HIDDEN_CLASS="hidden",e.NO_DELAY_CLASS="no-delay",e}()
t.default=i},678:function(e,t,n){"use strict"
var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n)
var i=Object.getOwnPropertyDescriptor(t,n)
i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n)
return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var s=a(n(353)),c=o(n(165)),u=a(n(338)),l=a(n(33)),d=n(895),f=function(){function e(e,t){void 0===t&&(t={}),this._cursors={},this._isObserving=!1,this._handleCursorTouch=this._handleCursorTouch.bind(this),this.quill=e,this.options=this._setDefaults(t),this._container=this.quill.addContainer(this.options.containerClass),this._boundsContainer=this.options.boundsContainer||this.quill.container,this._currentSelection=this.quill.getSelection(),this._registerSelectionChangeListeners(),this._registerTextChangeListener(),this._registerDomListeners()}return e.prototype.createCursor=function(e,t,n){var r=this._cursors[e]
if(!r){r=new s.default(e,t,n),this._cursors[e]=r
var i=r.build(this.options)
this._container.appendChild(i)}return r},e.prototype.moveCursor=function(e,t){var n=this._cursors[e]
n&&(n.range=t,this._updateCursor(n))},e.prototype.removeCursor=function(e){var t=this._cursors[e]
t&&(t.remove(),delete this._cursors[e])},e.prototype.update=function(){var e=this
this.cursors().forEach((function(t){return e._updateCursor(t)}))},e.prototype.clearCursors=function(){var e=this
this.cursors().forEach((function(t){return e.removeCursor(t.id)}))},e.prototype.toggleFlag=function(e,t){var n=this._cursors[e]
n&&n.toggleFlag(t)},e.prototype.cursors=function(){var e=this
return Object.keys(this._cursors).map((function(t){return e._cursors[t]}))},e.prototype._registerSelectionChangeListeners=function(){var e=this
this.quill.on(this.quill.constructor.events.SELECTION_CHANGE,(function(t){e._currentSelection=t}))},e.prototype._registerTextChangeListener=function(){var e=this
this.quill.on(this.quill.constructor.events.TEXT_CHANGE,(function(t){return e._handleTextChange(t)}))},e.prototype._registerDomListeners=function(){var e=this,t=this.quill.container.getElementsByClassName("ql-editor")[0]
t.addEventListener("scroll",(function(){return e.update()})),t.addEventListener("touchstart",this._handleCursorTouch)},e.prototype._handleCursorTouch=function(e){var t=this
this.cursors().forEach((function(n){n.toggleNearCursor(e.pageX,e.pageY),setTimeout((function(){return n.toggleFlag(!1)}),t.options.hideDelayMs)}))},e.prototype._registerResizeObserver=function(){var e=this
if(!this._isObserving){var t=this.quill.container.getElementsByClassName("ql-editor")[0],n=new l.default((function(t){if(!t[0].target.isConnected)return n.disconnect(),void(e._isObserving=!1)
e.update()}))
n.observe(t),this._isObserving=!0}},e.prototype._updateCursor=function(e){if(this._registerResizeObserver(),!e.range)return e.hide()
var t=this._indexWithinQuillBounds(e.range.index),n=this._indexWithinQuillBounds(e.range.index+e.range.length),r=this.quill.getLeaf(t),i=this.quill.getLeaf(n)
if(!this._leafIsValid(r)||!this._leafIsValid(i))return e.hide()
e.show()
var o=this._boundsContainer.getBoundingClientRect(),a=this.quill.getBounds(n)
e.updateCaret(a,o)
var s=this._lineRanges(e,r,i).reduce((function(e,t){return e.concat(Array.from(c.getClientRects(t)))}),[])
e.updateSelection(s,o)},e.prototype._indexWithinQuillBounds=function(e){var t=this.quill.getLength(),n=t?t-1:0
return e=Math.max(e,0),Math.min(e,n)},e.prototype._leafIsValid=function(e){return e&&e[0]&&e[0].domNode&&e[1]>=0},e.prototype._handleTextChange=function(e){var t=this
window.setTimeout((function(){t.options.transformOnTextChange&&t._transformCursors(e),t.options.selectionChangeSource&&(t._emitSelection(),t.update())}))},e.prototype._emitSelection=function(){this.quill.emitter.emit(this.quill.constructor.events.SELECTION_CHANGE,this.quill.getSelection(),this._currentSelection,this.options.selectionChangeSource)},e.prototype._setDefaults=function(t){return(t=Object.assign({},t)).template||(t.template=e.DEFAULTS.template),t.containerClass||(t.containerClass=e.DEFAULTS.containerClass),null!==t.selectionChangeSource&&(t.selectionChangeSource||(t.selectionChangeSource=e.DEFAULTS.selectionChangeSource)),t.hideDelayMs=Number.isInteger(t.hideDelayMs)?t.hideDelayMs:e.DEFAULTS.hideDelayMs,t.hideSpeedMs=Number.isInteger(t.hideSpeedMs)?t.hideSpeedMs:e.DEFAULTS.hideSpeedMs,t.transformOnTextChange=!!t.transformOnTextChange,t},e.prototype._lineRanges=function(e,t,n){var r=this.quill.getLines(e.range)
return r.reduce((function(e,i,o){if(!i.children){var a=document.createRange()
return a.selectNode(i.domNode),e.concat(a)}var s=0===o?t:i.path(0).pop(),c=s[0],u=s[1],l=o===r.length-1?n:i.path(i.length()-1).pop(),d=l[0],f=l[1],h=document.createRange()
return c.domNode.nodeType===Node.TEXT_NODE?h.setStart(c.domNode,u):h.setStartBefore(c.domNode),d.domNode.nodeType===Node.TEXT_NODE?h.setEnd(d.domNode,f):h.setEndAfter(d.domNode),e.concat(h)}),[])},e.prototype._transformCursors=function(e){var t=this
e=new d(e),this.cursors().filter((function(e){return e.range})).forEach((function(n){n.range.index=e.transformPosition(n.range.index),t._updateCursor(n)}))},e.DEFAULTS={template:u.default,containerClass:"ql-cursors",selectionChangeSource:"api",hideDelayMs:3e3,hideSpeedMs:400},e}()
t.default=f},338:function(e,t,n){"use strict"
var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var i=r(n(353)),o='\n <span class="'.concat(i.default.SELECTION_CLASS,'"></span>\n <span class="').concat(i.default.CARET_CONTAINER_CLASS,'">\n <span class="').concat(i.default.CARET_CLASS,'"></span>\n </span>\n <div class="').concat(i.default.FLAG_CLASS,'">\n <small class="').concat(i.default.NAME_CLASS,'"></small>\n </div>\n')
t.default=o},207:function(e){e.exports=function(){"use strict"
const e=/^\s+/,t=/\s+$/
function n(r,i){if(i=i||{},(r=r||"")instanceof n)return r
if(!(this instanceof n))return new n(r,i)
var o=function(n){var r,i,o,a={r:0,g:0,b:0},s=1,c=null,u=null,l=null,d=!1,f=!1
return"string"==typeof n&&(n=function(n){n=n.replace(e,"").replace(t,"").toLowerCase()
var r,i=!1
if(b[n])n=b[n],i=!0
else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"}
return(r=M.rgb.exec(n))?{r:r[1],g:r[2],b:r[3]}:(r=M.rgba.exec(n))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=M.hsl.exec(n))?{h:r[1],s:r[2],l:r[3]}:(r=M.hsla.exec(n))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=M.hsv.exec(n))?{h:r[1],s:r[2],v:r[3]}:(r=M.hsva.exec(n))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=M.hex8.exec(n))?{r:x(r[1]),g:x(r[2]),b:x(r[3]),a:I(r[4]),format:i?"name":"hex8"}:(r=M.hex6.exec(n))?{r:x(r[1]),g:x(r[2]),b:x(r[3]),format:i?"name":"hex"}:(r=M.hex4.exec(n))?{r:x(r[1]+""+r[1]),g:x(r[2]+""+r[2]),b:x(r[3]+""+r[3]),a:I(r[4]+""+r[4]),format:i?"name":"hex8"}:!!(r=M.hex3.exec(n))&&{r:x(r[1]+""+r[1]),g:x(r[2]+""+r[2]),b:x(r[3]+""+r[3]),format:i?"name":"hex"}}(n)),"object"==typeof n&&(N(n.r)&&N(n.g)&&N(n.b)?(r=n.r,i=n.g,o=n.b,a={r:255*T(r,255),g:255*T(i,255),b:255*T(o,255)},d=!0,f="%"===String(n.r).substr(-1)?"prgb":"rgb"):N(n.h)&&N(n.s)&&N(n.v)?(c=A(n.s),u=A(n.v),a=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100)
var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6
return{r:255*[n,a,o,o,s,n][c],g:255*[s,n,n,a,o,o][c],b:255*[o,o,s,n,n,a][c]}}(n.h,c,u),d=!0,f="hsv"):N(n.h)&&N(n.s)&&N(n.l)&&(c=A(n.s),l=A(n.l),a=function(e,t,n){var r,i,o
function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)r=i=o=n
else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s
r=a(c,s,e+1/3),i=a(c,s,e),o=a(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,c,l),d=!0,f="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=_(s),{ok:d,format:n.format||f,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:s}}(r)
this._originalInput=r,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||o.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function r(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255)
var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2
if(o==a)r=i=0
else{var c=o-a
switch(i=s>.5?c/(2-o-a):c/(o+a),o){case e:r=(t-n)/c+(t<n?6:0)
break
case t:r=(n-e)/c+2
break
case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function i(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255)
var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,c=o-a
if(i=0===o?0:c/o,o==a)r=0
else{switch(o){case e:r=(t-n)/c+(t<n?6:0)
break
case t:r=(n-e)/c+2
break
case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function o(e,t,n,r){var i=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16))]
return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function a(e,t,n,r){return[C(w(r)),C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16))].join("")}function s(e,t){t=0===t?0:t||10
var r=n(e).toHsl()
return r.s-=t/100,r.s=S(r.s),n(r)}function c(e,t){t=0===t?0:t||10
var r=n(e).toHsl()
return r.s+=t/100,r.s=S(r.s),n(r)}function u(e){return n(e).desaturate(100)}function l(e,t){t=0===t?0:t||10
var r=n(e).toHsl()
return r.l+=t/100,r.l=S(r.l),n(r)}function d(e,t){t=0===t?0:t||10
var r=n(e).toRgb()
return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),n(r)}function f(e,t){t=0===t?0:t||10
var r=n(e).toHsl()
return r.l-=t/100,r.l=S(r.l),n(r)}function h(e,t){var r=n(e).toHsl(),i=(r.h+t)%360
return r.h=i<0?360+i:i,n(r)}function p(e){var t=n(e).toHsl()
return t.h=(t.h+180)%360,n(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number")
for(var r=n(e).toHsl(),i=[n(e)],o=360/t,a=1;a<t;a++)i.push(n({h:(r.h+a*o)%360,s:r.s,l:r.l}))
return i}function m(e){var t=n(e).toHsl(),r=t.h
return[n(e),n({h:(r+72)%360,s:t.s,l:t.l}),n({h:(r+216)%360,s:t.s,l:t.l})]}function v(e,t,r){t=t||6,r=r||30
var i=n(e).toHsl(),o=360/r,a=[n(e)]
for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,a.push(n(i))
return a}function y(e,t){t=t||6
for(var r=n(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],c=1/t;t--;)s.push(n({h:i,s:o,v:a})),a=(a+c)%1
return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb()
return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb()
return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=_(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b)
return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v)
return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b)
return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l)
return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return o(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16)),C(w(r))]
return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*T(this._r,255))+"%",g:Math.round(100*T(this._g,255))+"%",b:Math.round(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*T(this._r,255))+"%, "+Math.round(100*T(this._g,255))+"%, "+Math.round(100*T(this._b,255))+"%)":"rgba("+Math.round(100*T(this._r,255))+"%, "+Math.round(100*T(this._g,255))+"%, "+Math.round(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),r=t,i=this._gradientType?"GradientType = 1, ":""
if(e){var o=n(e)
r="#"+a(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e
e=e||this._format
var n=!1,r=this._a<1&&this._a>=0
return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)))
return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(f,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(p,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},n.fromRatio=function(e,t){if("object"==typeof e){var r={}
for(var i in e)e.hasOwnProperty(i)&&(r[i]="a"===i?e[i]:A(e[i]))
e=r}return n(e,t)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,r){r=0===r?0:r||50
var i=n(e).toRgb(),o=n(t).toRgb(),a=r/100
return n({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},n.readability=function(e,t){var r=n(e),i=n(t)
return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(e,t,r){var i,o,a,s,c,u=n.readability(e,t)
switch(o=!1,(a=r,"AA"!==(s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(a.size||"small").toLowerCase())&&"large"!==c&&(c="small"),i={level:s,size:c}).level+i.size){case"AAsmall":case"AAAlarge":o=u>=4.5
break
case"AAlarge":o=u>=3
break
case"AAAsmall":o=u>=7}return o},n.mostReadable=function(e,t,r){var i,o,a,s,c=null,u=0
o=(r=r||{}).includeFallbackColors,a=r.level,s=r.size
for(var l=0;l<t.length;l++)(i=n.readability(e,t[l]))>u&&(u=i,c=n(t[l]))
return n.isReadable(e,c,{level:a,size:s})||!o?c:(r.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],r))}
var b=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=n.hexNames=function(e){var t={}
for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n)
return t}(b)
function _(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%")
var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e)
return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function S(e){return Math.min(1,Math.max(0,e))}function x(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function w(e){return Math.round(255*parseFloat(e)).toString(16)}function I(e){return x(e)/255}var R,k,O,M=(k="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",O="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+O),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+O),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/})
function N(e){return!!M.CSS_UNIT.exec(e)}return n}()}},t={}
function n(r){var i=t[r]
if(void 0!==i)return i.exports
var o=t[r]={id:r,loaded:!1,exports:{}}
return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e
return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis
try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,n(607).default})(),e.exports=t()},26641:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.parser=t.validator=void 0
var r=n(71906),i=n(6930),o=n(29495)
function a(e){var t,n,a,s=[]
try{t=r.default.parse(e)}catch(e){s.push(e)}return s.length?s:(s.push.apply(s,(n=[o.default,i.default],a=t,n.map((function(e){return new e(a).validate()})).reduce((function(e,t){return e.push.apply(e,t),e}),[]))),s.sort((function(e,t){return e.lineNumber-t.lineNumber})))}t.validator=a,t.parser=r.default,t.default=a},60639:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default={hour:36e5,minute:6e4,second:1e3}},71906:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var r=n(79041),i=n(82128)
t.default={parse:r.default,serialize:i.default}},79041:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.parseTimeStamp=void 0
var r=n(65305),i=n(49023),o=n(60639),a=/\r?\n/,s=/\s$/,c=/^(\d{2}):(\d{2}):(\d{2}),(\d{3})$/
function u(e,t){if(!e)throw new i.default("Missing sequence number",t,r.default.PARSER_ERROR_MISSING_SEQUENCE_NUMBER)
var n=Number(e)
if(!Number.isInteger(n)||s.test(e))throw new i.default("Expected Integer for sequence number: ".concat(e),t,r.default.PARSER_ERROR_INVALID_SEQUENCE_NUMBER)
return n}function l(e,t){var n=c.exec(e)
if(!n)throw new i.default("Invalid time stamp: ".concat(e),t,r.default.PARSER_ERROR_INVALID_TIME_STAMP)
var a=n.slice(1).map(Number),s=a[0],u=a[1],l=a[2],d=a[3]
return s*o.default.hour+u*o.default.minute+l*o.default.second+d}function d(e,t){if(!e)throw new i.default("Missing time span",t,r.default.PARSER_ERROR_MISSING_TIME_SPAN)
var n=e.split(" --\x3e "),o=n[0],a=n[1]
if(!o||!a||s.test(e))throw new i.default("Invalid time span: ".concat(e),t,r.default.PARSER_ERROR_INVALID_TIME_SPAN)
return{start:l(o,t),end:l(a,t)}}t.parseTimeStamp=l,t.default=function(e){for(var t=e.trimEnd().split(a),n=[],o=0;o<t.length;o+=1){var s={chunkStart:o,timeSpan:o,text:o,chunkEnd:o},c=u(t[o],o)
o+=1,s.timeSpan=o
var l=d(t[o],o)
o+=1,s.text=o
for(var f=[];t[o]&&t[o].trim();)f.push(t[o]),o+=1
var h=f.join("\n")
if(!h)throw new i.default("Missing caption text",o,r.default.PARSER_ERROR_MISSING_TEXT)
s.chunkEnd=o-1,n.push({lineNumbers:s,sequenceNumber:c,time:l,text:h})}return n}},82128:function(e,t,n){"use strict"
var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
return e},r.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0})
var i=n(60639),o="\n"
function a(e,t){var n=e,r=e/i.default.hour,o=(n%=i.default.hour)/i.default.minute,a=(n%=i.default.minute)/i.default.second
n%=i.default.second
var s=[2,2,2,3],c=[r,o,a,n].map((function(e,t){return"".concat(Math.floor(e)).padStart(s[t],"0")})),u=c[0],l=c[1],d=c[2],f=c[3]
return"".concat(u,":").concat(l,":").concat(d).concat(t).concat(f)}t.default=function(e,t){void 0===t&&(t="SRT")
var n={FILE_HEADER:"",MS_SEPERATOR:",",FORMAT_TEXT:function(e){return e},CHUNK_SEPARATOR:"".concat(o).concat(o)}
switch(t.toLowerCase()){case"webvtt":n=r(r({},n),{FILE_HEADER:"WEBVTT".concat(o).concat(o),MS_SEPERATOR:"."})
break
case"srt":break
default:throw new Error("Unrecognized format: ".concat(t))}return n.FILE_HEADER+e.map((function(e){return"".concat(e.sequenceNumber,"\n").concat((t=e.time,r=n.MS_SEPERATOR,"".concat(a(t.start,r)," --\x3e ").concat(a(t.end,r))),"\n").concat(n.FORMAT_TEXT(e.text))
var t,r})).join(n.CHUNK_SEPARATOR)}},65305:(e,t)=>{"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.PARSER_ERROR_MISSING_TEXT="parserErrorMissingText",e.PARSER_ERROR_MISSING_SEQUENCE_NUMBER="parserErrorMissingSequenceNumber",e.PARSER_ERROR_INVALID_SEQUENCE_NUMBER="parserErrorInvalidSequenceNumber",e.PARSER_ERROR_MISSING_TIME_SPAN="parserErrorMissingTimeSpan",e.PARSER_ERROR_INVALID_TIME_SPAN="parserErrorInvalidTimeSpan",e.PARSER_ERROR_INVALID_TIME_STAMP="parserErrorInvalidTimeStamp",e.VALIDATOR_ERROR_START_TIME="validatorErrorStartTime",e.VALIDATOR_ERROR_END_TIME="validatorErrorEndTime",e.VALIDATOR_ERROR_SEQUENCE_NUMBER_START="validatorErrorSequenceNumberStart",e.VALIDATOR_ERROR_SEQUENCE_NUMBER_INCREMENT="validatorErrorSequenceNumberIncrement"}(n||(n={})),t.default=n},49023:function(e,t){"use strict"
var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})
Object.defineProperty(t,"__esModule",{value:!0})
var i=function(e){function t(t,n,r){var i=e.call(this,t)||this
return i.lineNumber=n,i.errorCode=r,i.lineNumber=n+1,i.errorCode=r,i}return r(t,e),t}(Error)
t.default=i},71074:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=function(){function e(e){this.parsedJSON=e,this.result=[],this.parsedJSON=e}return e.prototype.addToResult=function(e){this.result.push(e)},e}()
t.default=n},6930:function(e,t,n){"use strict"
var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})
Object.defineProperty(t,"__esModule",{value:!0})
var o=n(71074),a=n(65305),s=function(e){function t(t){var n=e.call(this,t)||this
return n.parsedJSON=t,n.validator="CaptionTimeSpanValidator",n}return i(t,e),t.prototype.validate=function(){var e=this
if(!this.parsedJSON.length)return this.result
var t=0
return this.parsedJSON.map((function(t){var n=t.time,r=n.start,i=n.end,o=t.lineNumbers
return r>=i&&e.addToResult({errorCode:a.default.VALIDATOR_ERROR_START_TIME,message:"start time should be less than end time",lineNumber:o.timeSpan+1,validator:e.validator}),{start:r,end:i,lineNumbers:o}})).forEach((function(n,r){var i=n.start,o=n.end,s=n.lineNumbers
0!==r?(t>i&&e.addToResult({errorCode:a.default.VALIDATOR_ERROR_END_TIME,message:"start time should be less than previous end time",lineNumber:s.timeSpan+1,validator:e.validator}),t=o):t=o})),this.result},t}(o.default)
t.default=s},29495:function(e,t,n){"use strict"
var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})
Object.defineProperty(t,"__esModule",{value:!0})
var o=n(71074),a=n(65305),s=function(e){function t(t){var n=e.call(this,t)||this
return n.parsedJSON=t,n.validator="LineNumberValidator",n}return i(t,e),t.prototype.validate=function(){if(!this.parsedJSON.length)return this.result
1!==this.parsedJSON[0].sequenceNumber&&this.addToResult({errorCode:a.default.VALIDATOR_ERROR_SEQUENCE_NUMBER_START,message:"number of sequence need to start with 1",lineNumber:this.parsedJSON[0].lineNumbers.chunkStart+1,validator:this.validator})
for(var e=1;e<this.parsedJSON.length;e+=1){var t=this.parsedJSON[e],n=t.sequenceNumber,r=t.lineNumbers
n!==e+1&&this.addToResult({errorCode:a.default.VALIDATOR_ERROR_SEQUENCE_NUMBER_INCREMENT,message:"number of sequence need to increment by 1",lineNumber:r.chunkStart+1,validator:this.validator})}return this.result},t}(o.default)
t.default=s},39705:e=>{function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={})
return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this
function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t)
return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[]
if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o])
return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},5365:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{add:()=>d,getSize:()=>p,removeAll:()=>h,runAll:()=>f})
var r=n(38612),i=n.n(r)
const 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)}}}
var a=n(99707),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 h(){u.clear()}function p(){return u.size}},34577:function(e,t){!function(e){"use strict"
function t(e){return fetch(e)}const n=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH"),r=(()=>{let e=globalThis,t=e[n]
return t||(t=e[n]=new WeakMap),t})(),i=new WeakMap
function o(e){return a(e).length>0}function a(e){const t=r.get(e)
return void 0===t?[]:t}let s
async function c(e,t={}){const n={...s,...t},r=i.get(e)
if(r){let t=new Error(n.timeoutMessagePrefix)
t.name="SETTLED_MIDDLEDWARE_REQUEST_COMPLETED_TIMEOUT"
const i=new Promise(((r,i)=>{setTimeout((()=>{let n=a(e).map((({method:e,url:t})=>` ${e} ${t}`)).join("\n")
t.message+=`\n${n}`,i(t)}),n.timeout)}))
return Promise.race([r.promise,i])}}s={timeout:2e3,timeoutMessagePrefix:"requestsCompleted timeout waiting for requests to complete:"},e.SettledTrackingMiddleware=async function(e,t,n){const s=new Error,u=n.fetch
if(typeof u.$debug<"u"){const e=u
void 0===e.$debug.settledness&&(e.$debug.settledness={get pendingRequestState(){return a(e)},get hasPendingRequests(){return o(e)},get requestsCompleted(){return c(e)}})}let l=r.get(u)
if(void 0===l&&(l=[],r.set(u,l)),0===l.length){const e=function(){let e
return{promise:new Promise((t=>{e=t})),resolve:e}}()
i.set(u,e)}const d={url:e.url,method:e.method,startTime:Date.now(),get stack(){return s.stack}}
l.push(d)
try{return await t(e)}finally{const e=l.findIndex((e=>e===d))
if(-1===e)throw new Error("[INTERNAL ERROR @data-eden/network]: Could not find debug information for a previously started request")
if(l.splice(e,1),0===l.length){const e=i.get(u)
if(void 0===e)throw new Error("[INTERNAL ERROR @data-eden/network]: Could not find requestsCompleted promise for a previously started request")
e.resolve()}}},e.buildFetch=function(e,n){if(typeof fetch>"u")throw new Error("@data-eden/network requires `fetch` to be available on`globalThis`. Did you forget to setup `cross-fetch/polyfill` before calling @data-eden/network's `buildFetch`?")
const r=(null==n?void 0:n.fetch)||t
let i
const o=[...e].reverse().reduce(((e,t)=>async n=>t(n,e,{fetch:i})),r)
if(i=async(e,t)=>{const n=new Request(e,t)
return o(n)},!1!==(null==n?void 0:n.debug)){const t=new Error
i.$debug={get creationStack(){return t.stack},get middlewares(){return e}}}return i},e.getPendingRequestState=a,e.hasPendingRequests=o,e.requestsCompleted=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t)},76196:e=>{"use strict"
function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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 r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(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)}function s(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)||c(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 c(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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 l="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",d="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",f=["b","del","em","i","s","strong","sub","sup"],h=f.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"]),p=[l,"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("|"),g=r((function e(){t(this,e)}))
function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var v,y,b,E,_,T,S=(v=/[&<>"'\u0000\\=]/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"<22>","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(v,(function(e){return function(e){return e in y}(e)?y[e]:e}))}),x=(E="undefined"!=typeof document?document.createElement("div"):null,_=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,T={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'},b="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"<22>"},function(e){return null==e?null:(e+"").replace(_,(function(e,t,n,r){return t?function(e){if(function(e){return m(T,e)}(e))return T[e]
if(!E)return e
E.innerHTML="&".concat(e,";")
var t=E[d]
return T[e]=t,t}(t):n||r?b(parseInt(n||r,n?16:10)||65533):"<22>"}))})
function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window
if(n&&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)}function A(e){return/[<&]/.test(e)}var w,I="[ \t\r\n]*"
function R(e){e=Array.isArray(e)?e:[e]
var t,n,r,i=0,o="<(?!/?"
return o+="(?:",e.forEach((function(e,a){t=e.tags||h,n=e.attrs||p,r=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=I,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+=")"+I+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function k(e){return R({tags:e=e||h,checkUrlAttrs:!0})}function O(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup
return n&&n.length>0?!k(n).test(e):r?!O.R_UNSAFE_CUSTOM_ELEMENT.test(e):!O.R_UNSAFE_HTML.test(e)}function M(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}O.R_UNSAFE_HTML=k(),O.R_UNSAFE_CUSTOM_ELEMENT=R([{tags:h,checkUrlAttrs:!0},{tags:[(w={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[l,w.attrs].join("|"),checkUrlAttrs:!1}])
var N={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,"",""]},P=/<([\w:]+)/
function D(e){return e in N}function U(e,t){var n,r,i,o,a,l,d=t.createDocumentFragment(),f=[]
for(i=0,a=e.length;i<a;i++)if(r=e[i])if("string"==typeof r){n=n||d.appendChild(t.createElement("div"))
var h=s(P.exec(r)||["",""],2)[1]
if(void 0!==h){var p=h.toLowerCase(),g=D(p)&&N[p]||N._default
for(B(n,g[1]+r+g[2]),o=g[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild)
f.push.apply(f,function(e){if(Array.isArray(e))return u(e)}(l=Array.from(n.childNodes))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||c(l)||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.")}()),(n=d.firstChild)&&(n.textContent="")}}else r instanceof Node&&f.push(r)
for(d.textContent="",r=f[i=0];r;)d.appendChild(r),r=f[++i]
return d}function L(e,t,n){e=e.toString()
var r=t?function(e,t){var n={}
return e.replace(/\{([^}]+)\}/g,(function(e,r){if(m(n,r))return n[r]
if(m(t,r)){var i=t[r],o="string"==typeof i
if(!(o||i instanceof g||"number"==typeof i))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return i?(i=o?"".concat(S(i)):i.toString(),n[r]=i,i):e}return e}))}(e,t):e,i=e
return A(r)&&!O(r,n)&&(r=M(r),C("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}var j=L,F=L
function B(e,t,n){var r=L(t,n)
return r&&A(r)?e.innerHTML=r:r&&(e[d]=r),r}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(u,e)
var n,s,c=(n=u,s=function(){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(){var e,t=i(n)
if(s){var r=i(this).constructor
e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments)
return a(this,e)})
function u(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return t(this,u),(n=c.call(this)).options=r,n.tags=n.options.allowTags?n.options.allowTags.flat():[],n.str=e,n}return r(u,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(O(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=M(e),C("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),u}(g),H=/ /g,G=/[\s\u0000<>"]|%00/,K=/\\/,V=/([.]|%2e){2}/i,z=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 W(e){var t,n="invalid://"
if("string"!=typeof e)return C("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(C("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(H,"+")),!z.test(t))return C("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(G.test(t))return C("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),V.test(r))return C("jSecure Error: malicious data found in url path: "+i,"error"),n}catch(e){o=!0}if(o)return C("jSecure Error: malformed url path detected: "+i),n
if(K.test(i)||V.test(i))return C("jSecure Error: malicious data found in url path: "+i,"error"),n}return e}var X={redirect:function(e){window&&(window.location.href=e)}},Q={ALLOWED_TAGS:h,FORMATTING_TAGS:f,htmlEncode:S,htmlUnencode:x,log:C,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){o+=e,t<a&&(i=n[t],o+=i instanceof q?i:S(i))})),"".concat(F(o))},parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=U([e],t)
else{if(!Array.isArray(e))return e
n=U(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:j,reEncode:function(e){return S(x(e))},_redirector:X,redirect:function(e){var t=W(e)
t===e&&X.redirect(t)},sanitizeHTML:F,sanitizeUrl:W,setElementContent:B,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 q(t,n)}}
e.exports=Q},61825:(e,t)=>{"use strict"
const n="List(",r="(",i="fields",o=/^(\/[^?]+)\??(.*)$/
function a(e=""){const t=o.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}function s(e=""){let t=e.indexOf("//")
return t=t>0?t+2:t+1,t=e.indexOf("/",t),t<0&&(t=e.indexOf("?",t)),t=t<0?0:t,{origin:e.substring(0,t),rest:e.substring(t)}}const c=/(%2C|%28|%29|%27|%3A)/g,u=/(%2C|%28|%29|%27|%3A)/
function l(e,t,n=0){return e.indexOf(t,n)===n}function d(e,t){if(e[e.length-1]!==t)throw new Error(`Input has unbalanced prefix and suffix: ${e}`)}function f(e,t=0){let n=0,r=!1
for(;t<e.length;){const i=e[t]
if("("===i&&(n++,r=!0),")"===i&&n--,0===n&&r)break
t++}return t}function h(e,t){return t?u.test(e)&&(e=e.replace(c,unescape)):e=decodeURIComponent(e),void 0===e||"''"===e?"":e}function p(e){return g(e,!1)}function g(e,t){return void 0!==e&&"''"!==e||(e=""),l(e,n)?(d(e,")"),m(e.substring(5,e.length-1),t)):l(e,r)?(d(e,")"),v(e.substring(1,e.length-1),t)):h(e,t)}function m(e,t=!1){const i=[]
let o=0
for(;o<e.length;){if(l(e,n,o)||l(e,r,o)){const n=f(e,o)
i.push(g(e.substring(o,n+1),t)),o=n+2
continue}let a=e.indexOf(",",o)
a<0&&(a=e.length),i.push(h(e.substring(o,a),t)),o=a+1}return i}function v(e,t=!1){const i={}
let o=0
for(;o<e.length;){const a=e.indexOf(":",o),s=h(e.substring(o,a),t)
if(o=a+1,e.startsWith(n,o)||e.startsWith(r,o)){const n=f(e,o)
i[s]=g(e.substring(o,n+1),t),o=n+2
continue}let c=e.indexOf(",",o)
c<0&&(c=e.length)
const u=h(e.substring(o,c),t)
i[s]=u,o=c+1}return i}const y=/[,()':]/g,b=/[,()':]/
function E(e,t){if("object"!=typeof e)throw new Error(t)}function _(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===i?`${i}=${t[i]}`:`${x(e)}=${S(t[e],!1)}`)).join("&")}function T(e){if(e=JSON.parse(JSON.stringify(e)),!Array.isArray(e))throw new Error("You must pass an array to the arrayParamEncode function.")
return e.reduce((function(e,t){if(!t||!t.hasOwnProperty("name")||!t.hasOwnProperty("value"))throw new Error("Objects passed to the arrayParamEncode function must have name and value properties.")
if("object"==typeof t.value&&null!==t.value)throw new Error("Only primitives may be passed to arrayParamEncode as item values.")
const n=t.name,r=e.hasOwnProperty(n),i=e[n]
return r?Array.isArray(i)?i.push(t.value):e[n]=[i,t.value]:e[n]=t.value,e}),{})}function S(e,t){return Array.isArray(e)?function(e,t){const r=new Array(e.length)
for(let n=0;n<e.length;n++)r[n]=S(e[n],t)
return`${n}${r.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){const n=Object.keys(e).map((n=>`${x(n,t)}:${S(e[n],t)}`))
return`${r}${n.join(",")})`}(e,t):x(e,t)}function x(e,t=!1){return""===e?"''":t&&"string"==typeof e&&b.test(e)?e.replace(y,escape):t?e:encodeURIComponent(e).replace(y,escape)}var C=Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const A="application/x-www-form-urlencoded"
function w(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=a(e.url||void 0)
if(n){const r={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(r[t]=e.headers[t]||"")
let i,o
if(r["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,i=["--"+t,"Content-Type: "+A,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=A,i=n
return r["Content-Type"]=o,{body:i,headers:r,method:"POST",url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}function I(e,t={}){return R(e)?k(e,t):{url:e,request:t}}function R(e){const{path:t,queryString:n}=a(e)
if(t.length>8e3)throw new Error(`Per AFD limitations, this request url ${e} will not work. Please contact ask_traffic@.`)
return e.length>8e3||n.length>4e3}function k(e,t={}){const n=Object.assign({},t)
n.url=e,n.forceQueryTunnel=!0
const r=w(n)
if(t.method=r.method,t.headers=r.headers,t.body=r.body,t.data=r.body,null==r.url)throw new Error("Invalid: URL to be encoded cannot be 'null' or 'undefined' when performing query tunneling")
return{url:r.url,request:t}}t.FIELDS_PARAM=i,t.LIST_PREFIX=n,t.LIST_SUFFIX=")",t.OBJ_PREFIX=r,t.OBJ_SUFFIX=")",t.arrayParamEncode=function(e){return _(T(e))},t.arrayParamToQueryStringObject=T,t.checkAndEncodeLongUrl=I,t.decode=p,t.decodeList=m,t.decodeObject=v,t.encode=function(e){const t=JSON.parse(JSON.stringify(e))
return E(t,"You must pass either an array or an object to the encode function."),S(t,!1)},t.encodeRequest=w,t.extractOriginAndRestFromUrl=s,t.extractPathAndQueryStringFromUrl=a,t.httpStatus=C,t.paramDecode=function(e){return e.split("&").reduce((function(e,t){if(!t.length)return e
if(0===t.indexOf("="))return e
let[n="",r]=t.split("=")
return"''"===n&&(n=""),void 0!==r&&""!==r||(r="''"),e[decodeURIComponent(n)]=p(r),e}),{})},t.paramEncode=_,t.queryTunnel=function(e){const{origin:t,rest:n}=s(e.url)
if(R(n)){const r=e.headers,i={}
r?.forEach(((e,t)=>i[t]=e))
let{method:o,body:a}=e
const{url:s,request:c}=k(n,{url:n,body:a,headers:i,method:o})
for(const e in r)r.delete(e)
for(const e in c.headers)r.set(e,c.headers[e]||"")
return({method:o="GET",body:a=""}=c),{url:t+s,method:o,body:a,headers:r}}return null},t.queryTunnelRequest=function(e,t={}){return function(){const e=document.querySelector('meta[name="isQueryTunnelRequestSupported"]')
return e&&"true"===e.getAttribute("content")||!1}()?I(e,t):{url:e,request:t}},t.reducedDecode=function(e){return g(e,!0)},t.reducedEncode=function(e){const t=JSON.parse(JSON.stringify(e))
return E(t,"You must pass either an array or an object to the reducedEncode function."),S(t,!0)},t.urlRequiresQueryTunneling=R},9154:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},61264: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},39068:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Leaf:()=>r,RadixTrie:()=>i,eventToHotkeyString:()=>a,install:()=>m,uninstall:()=>v})
class r{constructor(e){this.children=[],this.parent=e}delete(e){const t=this.children.indexOf(e)
return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class i{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let t=this
for(let n=0;n<e.length;n+=1){const o=e[n]
let a=t.get(o)
if(n===e.length-1)return a instanceof i&&(t.delete(a),a=null),a||(a=new r(t),t.children[o]=a),a
a instanceof r&&(a=null),a||(a=new i(t),t.children[o]=a),t=a}return t}delete(e){for(const t in this.children)if(this.children[t]===e){const e=delete this.children[t]
return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),e}return!1}}function o(e){if(!(e instanceof HTMLElement))return!1
const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase()
return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||e.isContentEditable}function a(e){const{ctrlKey:t,altKey:n,metaKey:r,key:i}=e,o=[],a=[t,n,r,c(e)]
for(const[e,t]of a.entries())t&&o.push(s[e])
return s.includes(i)||o.push(i),o.join("+")}const s=["Control","Alt","Meta","Shift"]
function c(e){const{shiftKey:t,code:n,key:r}=e
return t&&!(n.startsWith("Key")&&r.toUpperCase()===r)}const u=new i,l=new WeakMap
let d=u,f=null,h=[]
function p(){h=[],f=null,d=u}function g(e){if(e.defaultPrevented)return
if(!(e.target instanceof Node))return
if(o(e.target)){const t=e.target
if(!t.id)return
if(!t.ownerDocument.querySelector(`[data-hotkey-scope="${t.id}"]`))return}null!=f&&window.clearTimeout(f),f=window.setTimeout(p,1500)
const t=d.get(a(e))
if(t){if(h.push(a(e)),d=t,t instanceof r){const n=e.target
let r,i=!1
const a=o(n)
for(let e=t.children.length-1;e>=0;e-=1){r=t.children[e]
const o=r.getAttribute("data-hotkey-scope")
if(!a&&!o||a&&n.id===o){i=!0
break}}r&&i&&(function(e,t){const n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}})
!e.dispatchEvent(n)||(o(e)?e.focus():e.click())}(r,h),e.preventDefault()),p()}}else p()}function m(e,t){0===Object.keys(u.children).length&&document.addEventListener("keydown",g)
const n=function(e){const t=[]
let n=[""],r=!1
for(let i=0;i<e.length;i++)r&&","===e[i]?(t.push(n),n=[""],r=!1):" "!==e[i]?(r="+"!==e[i],n[n.length-1]+=e[i]):(n.push(""),r=!1)
return t.push(n),t.map((e=>e.filter((e=>""!==e)))).filter((e=>e.length>0))}(t||e.getAttribute("data-hotkey")||""),r=n.map((t=>u.insert(t).add(e)))
l.set(e,r)}function v(e){const t=l.get(e)
if(t&&t.length)for(const n of t)n&&n.delete(e)
0===Object.keys(u.children).length&&document.removeEventListener("keydown",g)}},75023:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Client:()=>J,Task:()=>B,closeClient:()=>ee,getClient:()=>Z})
const r=(i=()=>!0,e=>e.then(i).catch(i))
var i
const o=e=>Object.keys(e),a=e=>null==e,s=e=>t=>o(t).reduce(((n,r)=>e(t,r)?n:{...n,[r]:t[r]}),{}),c=(s(((e,t)=>a(e[t]))),s(((e,t)=>void 0===e[t]))),u=e=>Object.fromEntries(e)
var l=n(73265)
function d(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?d(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var r=n.call(e,"string")
if("object"!=typeof r)return r
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p="4.3.7",g=function(){new Date
for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},m=()=>"undefined"!=typeof window&&window&&"node"!==window.appEnvironment,v=(e,t)=>{throw t},y="com.linkedin.realtimefrontend.Invalid",b="fields",E=/^(\/[^?]+)\??(.*)$/,_=/[,()':]/g,T=/[,()':]/
function S(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),C(t,!1)}function x(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===b?`${b}=${t[b]}`:`${A(e)}=${C(t[e],!1)}`)).join("&")}function C(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let r=0;r<e.length;r++)n[r]=C(e[r],t)
return`List(${n.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){return`(${Object.keys(e).map((n=>`${A(n,t)}:${C(e[n],t)}`)).join(",")})`}(e,t):A(e,t)}function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":t&&"string"==typeof e&&T.test(e)?e.replace(_,escape):t?e:encodeURIComponent(e).replace(_,escape)}const w="application/x-www-form-urlencoded",I=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),R=/^fs_/
function k(e){if("string"!=typeof e)throw new TypeError(`URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type ${typeof e}.`)
const t=I.exec(e)
if(t)return{type:t[1].replace(R,""),id:t[2]}}function O(e){return(e=>null!=e)(e.error)}const M=(e,t,n)=>n.indexOf(e)===t,N=e=>t=>!e.includes(t),P=(e,t,n)=>a(e)?t:Math.max(n,e),D=(e,t)=>`${e}${e.endsWith("/")||t.startsWith("/")?"":"/"}${t}`,U=e=>5===Math.floor(e/100),L=(e,t,n,r,i)=>{let o,a
return i?(o=r.map((t=>({clientConnectionId:e,topic:t}))),a=u(o.map((e=>[S(e),{authToken:i}])))):(o=r.map((t=>({clientConnectionId:e,topic:t}))),a=u(o.map((e=>[S(e),{}])))),{method:"PUT",url:`${s=t,D(s,"realtime/realtimeFrontendSubscriptions")}?${x({ids:o})}`,body:{entities:a},headers:n}
var s},j=(e,t,n,r,i,o,a)=>{let s={isFirstHeartbeat:"FIRST_BEAT"===r,isLastHeartbeat:"FINAL_BEAT"===r,realtimeSessionId:e,mpName:i.name,mpVersion:i.version,clientId:i.clientId}
if(a&&o){const e={actorUrn:a,contextUrns:o}
s=f(f({},s),e)}var c
return{method:"POST",url:`${c=t,D(c,"realtime/realtimeFrontendClientConnectivityTracking")}?${x({action:"sendHeartbeat"})}`,body:s,headers:n}}
class F{constructor(e,t,n){var r=this
h(this,"_endpoint",void 0),h(this,"_connectionId",void 0),h(this,"_requestHeaders",void 0),h(this,"_serverClockTimeDiff",0),h(this,"_lastTimeClockSynced",0),h(this,"_recentServerClockTimeDiffs",[]),h(this,"_mpName",void 0),h(this,"_mpVersion",void 0),h(this,"_clientId",void 0),h(this,"parseResponse",((e,t)=>{const n=e.errors??{},r=o(n).filter((t=>!U(e.errors[t].status))),i=o(n).filter((t=>U(e.errors[t].status)))
return[t.filter((e=>!r.includes(e)&&!i.includes(e))),r,i,e.errors]})),h(this,"apiCallSubscribe",((e,t)=>this.connectionId?this.sendRequest(L(this.connectionId,this._endpoint,this._requestHeaders,e,t)):Promise.reject({status:900,message:"API: subscribe cannot be performed because of missing connectionID"}))),h(this,"apiCallUnsubscribe",(e=>null===this.connectionId?Promise.reject({status:900,message:"API: unsubscribe cannot be performed because of missing connectionID"}):this.sendRequest(((e,t,n,r)=>f(f({},L(e,t,n,r)),{},{method:"DELETE"}))(this.connectionId,this._endpoint,this._requestHeaders,e)))),h(this,"apiCallClockSync",(()=>this.sendRequest(((e,t)=>{return{method:"GET",url:`${n=e,D(n,"realtime/realtimeFrontendTimestamp")}`,body:[],headers:t}
var n})(this._endpoint,this._requestHeaders)))),h(this,"apiCallConnectivityTrack",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0
return r.sendRequest(j(e,r._endpoint,r._requestHeaders,t,{name:r._mpName,version:r._mpVersion,clientId:r._clientId},n,i))})),this._endpoint=e,this._connectionId=null,this._requestHeaders=t,this._mpName=n.name,this._mpVersion=n.version,this._clientId=n.id}get connectionId(){return this._connectionId}setConnectionId(e){e&&e.length>0&&(this._connectionId=e)}setSessionId(e){this._requestHeaders["x-li-realtime-session"]=e}setMpInfo(e){this._mpName=e.name,this._mpVersion=e.version,this._clientId=e.id}disconnect(){this._connectionId=null}subscribe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
return new Promise(((r,i)=>{null!==this.connectionId?this.apiCallSubscribe(e,t).then((t=>{r(this.parseResponse(t,e))})).catch((o=>{const{status:a}=o
412!==a&&U(a)&&n<2?this.subscribe(e,t,n+1).then(r):i(o)})):i(new Error("RealtimeAPI: error - missing connectionID"))}))}unsubscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return new Promise(((n,r)=>{null!==this.connectionId?this.apiCallUnsubscribe(e).then((t=>{const r=this.parseResponse(t,e)
n(r)})).catch((i=>{const{status:o}=i
412!==o&&U(o)&&t<2?this.unsubscribe(e,t+1).then(n).catch(r):r(i)})):r(new Error("RealtimeAPI: error - missing connectionID"))}))}getTimestamp(){return this.apiCallClockSync()}trackActiveConnection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ALIVE",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0
return this.apiCallConnectivityTrack(e,t,n,r).catch((e=>{if("FINAL_BEAT"!==t)return console.warn("Realtime: session heartbeat failed",e),{type:"WARNING_INFO",message:"Realtime: session heartbeat failed"}}))}syncRealtimeServerClockTime(){const e=Date.now()
if(!(e-this._lastTimeClockSynced<86e4))return this._lastTimeClockSynced=e,this.getTimestamp().then((t=>{const n=Date.now()
this._recentServerClockTimeDiffs=this._recentServerClockTimeDiffs.filter((e=>n-e.syncedAt<36e5))
let r=n-e
0===r&&(r=1),this._recentServerClockTimeDiffs.push({syncedAt:n,clockDiff:t.timestamp-(e+n)/2,weight:1/r}),this._serverClockTimeDiff=this._computeWeightedAverageOfServerClockTimeDiff(this._recentServerClockTimeDiffs)}))}getServerClockTime(){return this._serverClockTimeDiff?Date.now()+this._serverClockTimeDiff:-1}_computeWeightedAverageOfServerClockTimeDiff(e){let t=0,n=0
for(const r of e){const{clockDiff:e,weight:i}=r
t+=i*e,n+=i}return Math.round(t/n)}sendRequest(e){return new Promise(((t,n)=>{let r=f({},e)
const i=r.url.split("?")[0],o=f({},e.headers)
r.body&&(r.body=JSON.stringify(r.body))
const a=new XMLHttpRequest
a.open(r.method,r.url),Object.entries(o).forEach((e=>{let[t,n]=e
return a.setRequestHeader(t,n)})),a.onerror=e=>{n({status:a.status,message:e.message||`Realtime: request failed - ${i}`})},r.url.length>1e3&&(r.forceQueryTunnel=!0,r=function(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=E.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}(e.url||void 0)
if(n){const r={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(r[t]=e.headers[t]||"")
let i,o
if(r["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,i=["--"+t,"Content-Type: "+w,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=w,i=n
return r["Content-Type"]=o,{body:i,headers:r,method:"POST",url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}(r)),a.onreadystatechange=()=>{const{status:e}=a
if(a.readyState===a.DONE)if(e>=200&&e<300)try{t(a.responseText?JSON.parse(a.responseText):null)}catch(t){n({status:e,message:`Realtime: Invalid JSON in API response - ${i}`})}else n({status:e??500,message:`Realtime: API Server Error ${i}`})},a.withCredentials=!0,a.send(r.body)}))}}class B{constructor(e){h(this,"_timer",0),h(this,"_taskFunction",void 0),this._taskFunction=e}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
this._timer&&this.cancel(),this.schedule(this._taskFunction,e)}cancel(){this._timer&&(clearTimeout(this._timer),this._timer=0)}schedule(e,t){this._timer=setTimeout((()=>{e((n=>this.schedule(e,n||t)))}),t)}}const q=()=>(0,l.generateRfc4122UUID)()
class H{constructor(e){h(this,"fireEventTracking",void 0),this.fireEventTracking=e}fireRealtimeTracking(e,t){const{topic:n,publisherTrackingId:r,trackingId:i,id:o,receivedTime:a}=t,s={publisherTrackingId:r,realtimeEventId:o,realtimeTrackingId:i,topicUrn:n,receivedTime:a}
this.fireEventTracking(e,s)}}var G,K,V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},z={exports:{}}
G=z,K=z.exports,function(e){var t=e.setTimeout,n=e.clearTimeout,r=e.XMLHttpRequest,i=e.XDomainRequest,o=e.ActiveXObject,a=e.EventSource,s=e.document,c=e.Promise,u=e.fetch,l=e.Response,d=e.TextDecoder,f=e.TextEncoder,h=e.AbortController
if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(e){s.readyState="complete"}),!1)),null==r&&null!=o&&(r=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==h){var p=u
u=function(e,t){var n=t.signal
return p(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader()
return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},h=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function g(){this.bitsNeeded=0,this.codePoint=0}g.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047
if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535
if(3===n)return e>=65536>>t&&e<<t<=1114111
throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1
if(12===e)return t>15?3:2
if(18===e)return 3
throw new Error}for(var r=65533,i="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var c=e[s]
0!==o&&(c<128||c>191||!t(a<<6|63&c,o-6,n(o,a)))&&(o=0,a=r,i+=String.fromCharCode(a)),0===o?(c>=0&&c<=127?(o=0,a=c):c>=192&&c<=223?(o=6,a=31&c):c>=224&&c<=239?(o=12,a=15&c):c>=240&&c<=247?(o=18,a=7&c):(o=0,a=r),0===o||t(a,o,n(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&c),0===o&&(a<=65535?i+=String.fromCharCode(a):(i+=String.fromCharCode(55296+(a-65535-1>>10)),i+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,i},null!=d&&null!=f&&function(){try{return"test"===(new d).decode((new f).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(d=g)
var m=function(){}
function v(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function y(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function b(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),a=i.join(": ")
t[y(o)]=a}this._map=t}function E(){}function _(e){this._headers=e}function T(){}function S(){this._listeners=Object.create(null)}function x(e){t((function(){throw e}),0)}function C(e){this.type=e,this.target=void 0}function A(e,t){C.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function w(e,t){C.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){C.call(this,e),this.error=t.error}v.prototype.open=function(e,i){this._abort(!0)
var o=this,a=this._xhr,s=1,c=0
this._abort=function(e){0!==o._sendTimeout&&(n(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==c&&(n(c),c=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0}
var u=function(){if(1===s){var e=0,t="",n=void 0
if("contentType"in a)e=200,t="OK",n=a.contentType
else try{e=a.status,t=a.statusText,n=a.getResponseHeader("Content-Type")}catch(r){e=0,t="",n=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=n,o.onreadystatechange())}},l=function(){if(u(),2===s||3===s){s=3
var e=""
try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===s||2===s||3===s){if(s=4,0!==c&&(n(c),c=0),o.readyState=4,"load"===e)o.onload(t)
else if("error"===e)o.onerror(t)
else{if("abort"!==e)throw new TypeError
o.onabort(t)}o.onreadystatechange()}},f=function(){c=t((function(){f()}),500),3===a.readyState&&l()}
"onload"in a&&(a.onload=function(e){d("load",e)}),"onerror"in a&&(a.onerror=function(e){d("error",e)}),"onabort"in a&&(a.onabort=function(e){d("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||d(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&u())}(e)}),!("contentType"in a)&&"ontimeout"in r.prototype||(i+=(-1===i.indexOf("?")?"?":"&")+"padding=true"),a.open(e,i,!0),"readyState"in a&&(c=t((function(){f()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(e){return this._contentType},v.prototype.setRequestHeader=function(e,t){var n=this._xhr
"setRequestHeader"in n&&n.setRequestHeader(e,t)},v.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.prototype.send=function(){if("ontimeout"in r.prototype&&("sendAsBinary"in r.prototype||"mozAnon"in r.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr
"withCredentials"in e&&(e.withCredentials=this.withCredentials)
try{e.send(void 0)}catch(e){throw e}}else{var n=this
n._sendTimeout=t((function(){n._sendTimeout=0,n.send()}),4)}},b.prototype.get=function(e){return this._map[y(e)]},null!=r&&null==r.HEADERS_RECEIVED&&(r.HEADERS_RECEIVED=2),E.prototype.open=function(e,t,n,i,o,a,s){e.open("GET",o)
var c=0
for(var u in e.onprogress=function(){var t=e.responseText.slice(c)
c+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),i(new Error("NetworkError"))},e.onload=function(){i(null)},e.onabort=function(){i(null)},e.onreadystatechange=function(){if(e.readyState===r.HEADERS_RECEIVED){var n=e.status,i=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders()
t(n,i,o,new b(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u])
return e.send(),e},_.prototype.get=function(e){return this._headers.get(e)},T.prototype.open=function(e,t,n,r,i,o,a){var s=null,l=new h,f=l.signal,p=new d
return u(i,{headers:a,credentials:o?"include":"same-origin",signal:f,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new _(e.headers)),new c((function(e,t){var r=function(){s.read().then((function(t){if(t.done)e(void 0)
else{var i=p.decode(t.value,{stream:!0})
n(i),r()}})).catch((function(e){t(e)}))}
r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},S.prototype.dispatchEvent=function(e){e.target=this
var t=this._listeners[e.type]
if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r]
try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){x(e)}}},S.prototype.addEventListener=function(e,t){e=String(e)
var n=this._listeners,r=n[e]
null==r&&(r=[],n[e]=r)
for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0)
i||r.push(t)},S.prototype.removeEventListener=function(e,t){e=String(e)
var n=this._listeners,r=n[e]
if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o])
0===i.length?delete n[e]:n[e]=i}},A.prototype=Object.create(C.prototype),w.prototype=Object.create(C.prototype),I.prototype=Object.create(C.prototype)
var R=/^text\/event\-stream(;.*)?$/i,k=function(e,t){var n=null==e?t:parseInt(e,10)
return n!=n&&(n=t),O(n)},O=function(e){return Math.min(Math.max(e,1e3),18e6)},M=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){x(e)}}
function N(e,o){S.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,a){o=String(o)
var s=Boolean(a.withCredentials),c=a.lastEventIdQueryParameterName||"lastEventId",u=O(1e3),l=k(a.heartbeatTimeout,45e3),d="",f=u,h=!1,p=0,g=a.headers||{},m=a.Transport,y=P&&null==m?void 0:new v(null!=m?new m:null!=r&&"withCredentials"in r.prototype||null==i?new r:new i),b=null!=m&&"string"!=typeof m?new m:null==y?new T:new E,_=void 0,S=0,x=-1,C="",N="",D="",U="",L=0,j=0,F=0,B=function(t,n,r,i){if(0===x)if(200===t&&null!=r&&R.test(r)){x=1,h=Date.now(),f=u,e.readyState=1
var o=new w("open",{status:t,statusText:n,headers:i})
e.dispatchEvent(o),M(e,e.onopen,o)}else{var a=""
200!==t?(n&&(n=n.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",G(),o=new w("error",{status:t,statusText:n,headers:i}),e.dispatchEvent(o),M(e,e.onerror,o),console.error(a)}},q=function(r){if(1===x){for(var i=-1,o=0;o<r.length;o+=1)(c=r.charCodeAt(o))!=="\n".charCodeAt(0)&&c!=="\r".charCodeAt(0)||(i=o)
var a=(-1!==i?U:"")+r.slice(0,i+1)
U=(-1===i?U:"")+r.slice(i+1),""!==r&&(h=Date.now(),p+=r.length)
for(var s=0;s<a.length;s+=1){var c=a.charCodeAt(s)
if(-1===L&&c==="\n".charCodeAt(0))L=0
else if(-1===L&&(L=0),c==="\r".charCodeAt(0)||c==="\n".charCodeAt(0)){if(0!==L){1===L&&(F=s+1)
var g=a.slice(j,F-1),m=a.slice(F+(F<s&&a.charCodeAt(F)===" ".charCodeAt(0)?1:0),s)
"data"===g?(C+="\n",C+=m):"id"===g?N=m:"event"===g?D=m:"retry"===g?(u=k(m,u),f=u):"heartbeatTimeout"===g&&(l=k(m,l),0!==S&&(n(S),S=t((function(){K()}),l)))}if(0===L){if(""!==C){d=N,""===D&&(D="message")
var v=new A(D,{data:C.slice(1),lastEventId:N})
if(e.dispatchEvent(v),"open"===D?M(e,e.onopen,v):"message"===D?M(e,e.onmessage,v):"error"===D&&M(e,e.onerror,v),2===x)return}C="",D=""}L=c==="\r".charCodeAt(0)?-1:0}else 0===L&&(j=s,L=1),1===L?c===":".charCodeAt(0)&&(F=s+1,L=2):2===L&&(L=3)}}},H=function(r){if(1===x||0===x){x=-1,0!==S&&(n(S),S=0),S=t((function(){K()}),f),f=O(Math.min(16*u,2*f)),e.readyState=0
var i=new I("error",{error:r})
e.dispatchEvent(i),M(e,e.onerror,i),null!=r&&console.error(r)}},G=function(){x=2,null!=_&&(_.abort(),_=void 0),0!==S&&(n(S),S=0),e.readyState=2},K=function(){if(S=0,-1===x){h=!1,p=0,S=t((function(){K()}),l),x=0,C="",D="",N=d,U="",j=0,F=0,L=0
var n=o
if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==d){var r=o.indexOf("?")
n=-1===r?o:o.slice(0,r+1)+o.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===c?"":e})),n+=(-1===o.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(d)}var i=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers
if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u])
try{_=b.open(y,B,q,H,n,i,a)}catch(e){throw G(),e}}else if(h||null==_){var f=Math.max((h||Date.now())+l-Date.now(),1)
h=!1,S=t((function(){K()}),f)}else H(new Error("No activity within "+l+" milliseconds. "+(0===x?"No response received.":p+" chars received.")+" Reconnecting.")),null!=_&&(_.abort(),_=void 0)}
e.url=o,e.readyState=0,e.withCredentials=s,e.headers=g,e._close=G,K()}(this,e,o)}var P=null!=u&&null!=l&&"body"in l.prototype
N.prototype=Object.create(S.prototype),N.prototype.CONNECTING=0,N.prototype.OPEN=1,N.prototype.CLOSED=2,N.prototype.close=function(){this._close()},N.CONNECTING=0,N.OPEN=1,N.CLOSED=2,N.prototype.withCredentials=void 0
var D,U=a
null==r||null!=a&&"withCredentials"in a.prototype||(U=N),D=function(e){e.EventSourcePolyfill=N,e.NativeEventSource=a,e.EventSource=U}(K),void 0!==D&&(G.exports=D)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:V:globalThis)
var W,X=(W=z.exports)&&W.__esModule&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W
const Q={domain:"",mpInfo:{name:"common-time",version:p,id:"common-time"},detectMissedHeartbeat:!0,heartbeatPollInterval:15e3,heartbeatGapThreshold:3e4,reconnectGapThreshold:3e4,sessionHeartbeat:3e5,coverageGap:18e4,acceptableErrorCount:2,alertChannelErrors:!1,maxRetryCount:2,connectHeaders:{},urlQueryParams:"?rc=1",enableCustomRetry:!1,contextUrns:[]},Y=m()?window.EventSource:void 0
function $(e){"undefined"!=typeof globalThis?globalThis.EventSource=e:window.EventSource=e}class J{static getOrUpdateClient(e){return J.singleton?J.singleton.updateOptions(e):J.create(e),J.singleton}static create(e){if(g("Version",p),!m())throw new Error("common-time client can only be used in a browser environment\n\nFor more information please reference https://go/github%20multiproduct/common-time#user-content-node-compatibility")
if($(e.eventSource??X.EventSourcePolyfill),!(o(e).length>0&&e.mpInfo))throw new Error(`Unable to create common-time client - mailbox 'options' is empty or missing required data: ${JSON.stringify({options:e})}`)
return function(e){const t=[]
if(!e||!o(e).length)throw new Error(`Required header ${e} not supplied: }`)
if("x-li-track"in e||t.push("x-li-track"),"x-li-query-map"in e&&!("x-li-query-accept"in e)&&t.push("x-li-query-accept"),"x-li-recipe-map"in e&&!("x-li-recipe-accept"in e)&&t.push("x-li-recipe-accept"),"x-li-query-map"in e&&"x-li-recipe-map"in e){const n=JSON.parse(e["x-li-query-map"]).topicToGraphQLQueryParams,r=((e,t)=>{const n=o(e),r=o(t),i=new Set(n),a=new Set(r)
return[...i].filter((e=>a.has(e)))})(JSON.parse(e["x-li-recipe-map"]),n)
r.length>0&&t.push(`x-li-query and x-li-recipe map headers are supplied with the same topic: ${r.join(", ")}`)}if(t.length>0)throw new Error(`Required headers not supplied: ${t.join(", ")}`)
g("Headers validation pass: ",o(e).join(", "))}(e.connectHeaders),J.singleton=new J(e),J.singleton}static close(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
if(!J.singleton||!m())return Promise.resolve(!1)
let t=Promise.resolve()
const n=J.singleton
return J._connectivityTrackingTimer&&n&&(clearInterval(J._connectivityTrackingTimer),J._connectivityTrackingTimer=0,e&&(t=n._api.trackActiveConnection(n.sessionId,"FINAL_BEAT"))),n._boundUnloadHandler&&window.removeEventListener("beforeunload",n._boundUnloadHandler),window.removeEventListener("offline",n.handleLoseInternetConnection.bind(n)),window.removeEventListener("online",n.handleGainInternetConnection.bind(n)),n.disconnectAndClose(),n._realtimeTracking=null,n._contextUrns=[],Q.contextUrns=[],J.singleton=null,m()&&Y&&$(Y),r(t)}get options(){return this._options}get realtimeTracking(){return this._realtimeTracking}get connected(){return null!==this._eventSource&&1===this._eventSource.readyState}get sessionId(){return J._realtimeSessionId}get realtimeConnectUrl(){const e=this._options.domain.endsWith("/")?"":"/"
return`${this._options.domain}${e}realtime/connect${this._options.urlQueryParams}`}get eventSourceUrl(){return this.realtimeConnectUrl}get serverClockTime(){return this._api.getServerClockTime()}get sessionHeartbeatInterval(){return this._options.sessionHeartbeat}get HeartbeatGapThreshold(){return this._options.heartbeatGapThreshold}addSubscriptions(e,t){const n=t?this.filterSubscriptionListForAuthTopics(e,t,this._subscribedAuthBroadcastTopics):this.filterSubscriptionListForNonAuthTopics(e,this._subscribedNonAuthTopics)
if(0===n.length)return Promise.resolve({succeeded:[],failed:[]})
if(this._api.connectionId)return this.apiSubscribe(n,t,1)
if(void 0!==t){const e=this._subscribedAuthBroadcastTopics[t]??[]
this._subscribedAuthBroadcastTopics[t]=[...e,...n]}else this._subscribedNonAuthTopics=[...this._subscribedNonAuthTopics,...n]
return Promise.resolve({succeeded:n,failed:[]})}removeSubscriptions(e){return new Promise(((t,n)=>{const r=(e instanceof Array?e:[e]).filter(M).filter((i=this._subscribedNonAuthTopics,e=>i.includes(e)))
var i
if(0===r.length)return t({succeeded:[],failed:[]})
this._api.unsubscribe(r).then((e=>{let[n,r]=e
n.forEach((e=>this.triggerEvent("unsubscribe",e))),r.forEach((e=>this.triggerEvent("unsubscribeFailed",e))),this._subscribedNonAuthTopics=this._subscribedNonAuthTopics.filter(N(n)),t({succeeded:n,failed:r})})).catch((e=>{this.triggerEvent("error",e),n(e)}))}))}updateAuthToken(e,t){this._subscribedAuthBroadcastTopics[t]&&(this._subscribedAuthBroadcastTopics[e]=this._subscribedAuthBroadcastTopics[t],delete this._subscribedAuthBroadcastTopics[t])}addActorUrn(e){this._actorUrn||(this._actorUrn=e,this._contextUrns.length&&this.triggerActiveConnection())}addContext(e){-1===this._contextUrns.indexOf(e)&&(this._contextUrns.push(e),this._actorUrn&&this.triggerActiveConnection())}removeContext(e){-1!==this._contextUrns.indexOf(e)&&(this._contextUrns=this._contextUrns.filter((t=>t!==e)),this.triggerActiveConnection())}addEventListener(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
const[r,i]=t
switch(r){case"authSubscribeFailed":this._events.authSubscribeFailed.add(i)
break
case"connect":this._events.connect.add(i)
break
case"error":this._events.error.add(i)
break
case"close":this._events.close.add(i)
break
case"heartbeat":this._events.heartbeat.add(i)
break
case"open":this._events.open.add(i)
break
case"poorRealtimeConnectionDetected":this._events.poorRealtimeConnectionDetected.add(i)
break
case"reconnected":this._events.reconnected.add(i)
break
case"reconnecting":this._events.reconnecting.add(i)
break
case"subscribe":this._events.subscribe.add(i)
break
case"subscribeFailed":this._events.subscribeFailed.add(i)
break
case"topic":this._events.topic.add(i)
break
case"topicsResubscribed":this._events.topicsResubscribed.add(i)
break
case"unsubscribe":this._events.unsubscribe.add(i)
break
case"unsubscribeFailed":this._events.unsubscribeFailed.add(i)
break
case"warning":this._events.warning.add(i)
break
default:v(0,new Error("Unknown event type"))}return()=>this.removeEventListener(...t)}removeEventListener(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
let[r,i]=t
return this._events[r].delete(i)}_getConnectionHandler(e,t,n){return r=>{n.removeEventListener("error",t),n.addEventListener("error",this.eventSourceOnError.bind(this)),this.startHeartBeatMonitoring(),this.triggerEvent("open",r),this._lastConnectedStatus=this.connected,e()}}connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"FAIL-ON-ERROR"
return"RETRY"===this._autoReconnect?Promise.resolve():(this._explicitlyConnected=!0,this._autoReconnect=e,this._internalConnect(e))}_internalConnect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"FAIL-ON-ERROR"
const t=(t,n)=>r=>{"FAIL-ON-ERROR"===e?n(O(r)?r.error:r):(this.eventSourceOnError(r),t())}
return this.setNewSessionId(this.sessionId),this._eventSource?Promise.resolve():new Promise(((e,n)=>{this._lastConnectedStatus=!0
const r=this.connectEventSource()
if(0!==r.readyState){const e=new Error(`EventSource readyState is incorrect: ${r.readyState}`)
this.triggerEvent("error",e),n(e)}else{const i=t(e,n)
r.addEventListener("error",i),r.addEventListener("open",this._getConnectionHandler(e,i,r)),r.addEventListener("message",this.eventSourceOnmessage.bind(this))}}))}disconnectAndClose(){this._realtimeChannelDisconnectedTime||this.recordConnectionLostTime(),this._heartBeatMonitor.cancel(),this._reconnectTask.cancel(),this._eventSource&&(this._api.disconnect(),this._eventSource.close(),this._eventSource=null),this._eventSourceErrorCount=0,this.triggerEvent("close",null)}constructor(e){var t=this
h(this,"_options",void 0),h(this,"_events",{authSubscribeFailed:new Set,close:new Set,connect:new Set,error:new Set,heartbeat:new Set,open:new Set,poorRealtimeConnectionDetected:new Set,reconnected:new Set,reconnecting:new Set,subscribe:new Set,subscribeFailed:new Set,topic:new Set,unsubscribe:new Set,unsubscribeFailed:new Set,topicsResubscribed:new Set,warning:new Set}),h(this,"_eventSourceErrorCount",0),h(this,"_api",void 0),h(this,"_eventSource",null),h(this,"_lastHeartBeatReceivedAt",null),h(this,"_heartBeatMonitor",void 0),h(this,"_reconnectTask",void 0),h(this,"_reconnectDelay",void 0),h(this,"_realtimeTracking",null),h(this,"_actorUrn",void 0),h(this,"_contextUrns",[]),h(this,"_experimentalValues",void 0),h(this,"_subscribedNonAuthTopics",[]),h(this,"_subscribedAuthBroadcastTopics",{}),h(this,"_personalTopicsTypes",[]),h(this,"_lastConnectedStatus",!1),h(this,"_explicitlyConnected",!1),h(this,"_autoReconnect","FAIL-ON-ERROR"),h(this,"_realtimeChannelDisconnectedTime",void 0),h(this,"_lastTimeConnectionLost",void 0),h(this,"_boundUnloadHandler",null),h(this,"eventSourceOnmessage",(e=>{const{type:t,eventData:n}=this.parseMessage(e)
switch(t){case"com.linkedin.realtimefrontend.FailedEvent":{const e=`Decoration failure occurred for topic URN: ${n.topic}`
this.triggerEvent("error",{status:700,message:e})}break
case y:this.triggerEvent("error",{status:500,message:JSON.stringify(n)})
break
case"com.linkedin.realtimefrontend.ClientConnection":{g("⚡️ Received clientConnection event")
const{id:e,personalTopics:t}=n
this._personalTopicsTypes=[...t],this._api.setConnectionId(e),this._subscribedNonAuthTopics.length>0&&this.restoreSubscriptions(),o(this._subscribedAuthBroadcastTopics).length>0&&this.restoreAuthSubscriptions(),this._lastHeartBeatReceivedAt=Date.now(),this.triggerEvent("connect",{id:e,personalTopicsTypes:this._personalTopicsTypes})
const r=this.getRealtimeChannelDisconnectedTime()
r>this.options.reconnectGapThreshold&&this.triggerEvent("reconnected",r),this._realtimeChannelDisconnectedTime=null,this._api.syncRealtimeServerClockTime()}break
case"com.linkedin.realtimefrontend.Heartbeat":this._lastHeartBeatReceivedAt=Date.now(),this.triggerEvent("heartbeat",this._lastHeartBeatReceivedAt)
break
default:{const e=n,t=(r=this._personalTopicsTypes,e=>{const t=k(e)
return!!t&&r.includes(t.type)})
if(this._subscribedNonAuthTopics.includes(e.topic)||t(e.topic)||this.isAuthBroadcastTopic(e.topic)){if(this.triggerEvent("topic",f({},n)),this.realtimeTracking){const t=this.serverClockTime
e.receivedTime=t,this.realtimeTracking.fireRealtimeTracking("RealtimeEventDeliveredEvent",e)}}else this.triggerEvent("error",{status:600,message:`Received a message for "${e.topic}" that was not subscribed to`})}}var r})),h(this,"triggerEvent",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r]
let[i,o]=n
switch(i){case"authSubscribeFailed":t._events.authSubscribeFailed.forEach((e=>e(i,o)))
break
case"connect":t._events.connect.forEach((e=>e(i,o)))
break
case"error":t._events.error.forEach((e=>e(i,o)))
break
case"close":t._events.close.forEach((e=>e(i,o)))
break
case"heartbeat":t._events.heartbeat.forEach((e=>e(i,o)))
break
case"open":t._events.open.forEach((e=>e(i,o)))
break
case"poorRealtimeConnectionDetected":t._events.poorRealtimeConnectionDetected.forEach((e=>e(i,o)))
break
case"reconnected":t._events.reconnected.forEach((e=>e(i,o)))
break
case"reconnecting":t._events.reconnecting.forEach((e=>e(i,o)))
break
case"subscribe":t._events.subscribe.forEach((e=>e(i,o)))
break
case"subscribeFailed":t._events.subscribeFailed.forEach((e=>e(i,o)))
break
case"topic":t._events.topic.forEach((e=>e(i,o)))
break
case"topicsResubscribed":t._events.topicsResubscribed.forEach((e=>e(i,o)))
break
case"unsubscribe":t._events.unsubscribe.forEach((e=>e(i,o)))
break
case"unsubscribeFailed":t._events.unsubscribeFailed.forEach((e=>e(i,o)))
break
case"warning":t._events.warning.forEach((e=>e(i,o)))
break
default:v(0,new Error("Unknown event type"))}return!0})),h(this,"eventSourceOnError",(e=>{this._eventSourceErrorCount++,this.detectConnectionLost(),O(e)?(this.itShouldRetry(e.error.status)&&this.scheduleReconnect(),this.triggerEvent("error",{status:e.error.status??500,message:`EventSource error - ${e.error.message??"unknown"}`,originalEvent:e.error})):(this.itShouldRetry()&&this.scheduleReconnect(),this.options.alertChannelErrors&&this.triggerEvent("error",{status:900,message:"Unknown EventSource connection error/warning event",originalEvent:e}))})),h(this,"parseMessage",(e=>{let t
try{t=JSON.parse(e.data)}catch(e){const t=e instanceof Error?e.message:"JSON not valid"
return{type:y,eventData:`Error while parsing event data - ${t}`}}const n=o(t)[0]
return{type:n,eventData:t[n]}})),h(this,"_reconnectHandler",(e=>{this.triggerEvent("reconnecting",null),this._internalConnect().catch((t=>{this._eventSource=null
const n={status:t.status??900,message:`EventSource connection failed - ${t.message??"unknown reason"}`,originalEvent:t}
this.itShouldRetry(n.status)?(this.options.alertChannelErrors&&this.triggerEvent("error",n),e(this._reconnectDelay())):this.triggerEvent("error",n)}))})),h(this,"_heartbeatCheck",(e=>{if(null===this._realtimeChannelDisconnectedTime){if(null===this._lastHeartBeatReceivedAt)return void this.scheduleReconnect()
{const e=Date.now()-this._lastHeartBeatReceivedAt
if(e>this.options.heartbeatGapThreshold)return this.triggerEvent("poorRealtimeConnectionDetected",e),void this.scheduleReconnect()}}e()})),h(this,"scheduleReconnect",(()=>{this._options.enableCustomRetry&&(this.disconnectAndClose(),this._reconnectTask.start(this._reconnectDelay()))})),h(this,"startHeartBeatMonitoring",(()=>{this._options.detectMissedHeartbeat&&this._heartBeatMonitor.start(this.options.heartbeatPollInterval)})),h(this,"setupLeaveGuard",(()=>{this._boundUnloadHandler&&window.removeEventListener("beforeunload",this._boundUnloadHandler),this._boundUnloadHandler=this.beforeUnloadHandler.bind(this),window.addEventListener("beforeunload",this._boundUnloadHandler)})),h(this,"setupOnlineGuard",(()=>{window.addEventListener("offline",this.handleLoseInternetConnection.bind(this)),window.addEventListener("online",this.handleGainInternetConnection.bind(this))})),this._options=f(f({},Q),e),this._options.connectHeaders["x-li-realtime-session"]=this.sessionId,this._options.sessionHeartbeat=P(this._options.sessionHeartbeat,null,6e4),this._options.reconnectGapThreshold=Math.max(0,this._options.reconnectGapThreshold??Q.reconnectGapThreshold),this._options.heartbeatGapThreshold=Math.max(2*this._options.heartbeatPollInterval,this.options.heartbeatGapThreshold),this._reconnectDelay=(e=>{let t=0
return()=>{t++
const e=t-Math.max(1,0)
if(e<=0)return 0
const n=4*Math.random()
return 1===e?1e3*(5+n):1e3*(10+n)}})(),this._api=new F(this._options.domain,this._options.connectHeaders,this._options.mpInfo),this._heartBeatMonitor=new B(this._heartbeatCheck.bind(this)),this._reconnectTask=new B(this._reconnectHandler.bind(this)),this._lastTimeConnectionLost=null,this._realtimeChannelDisconnectedTime=null,this._options.tracking&&(this._realtimeTracking=new H(this._options.tracking.fireEventCallback)),this._actorUrn=this.options.actorUrn,this._contextUrns=this.options.contextUrns??[],this._experimentalValues=this.options.experimental,this.setupLeaveGuard(),this.setupOnlineGuard(),this.setNewSessionId(q()),this.startConnectivityTracker()}setNewSessionId(e){J._realtimeSessionId=e,this._options.connectHeaders["x-li-realtime-session"]=this.sessionId,this._api.setSessionId(this.sessionId)}updateOptions(e){if(J.singleton){const t=this.options.sessionHeartbeat
this._options=f(f(f({},J.singleton._options),c(e)),{},{tracking:J.singleton._options.tracking,experimental:f(f({},J.singleton._options.experimental),e.experimental),sessionHeartbeat:P(e.sessionHeartbeat,this.options.sessionHeartbeat,6e4)}),this._api.setMpInfo(this._options.mpInfo),t!==this.options.sessionHeartbeat&&this.startConnectivityTracker()}}startConnectivityTracker(){let e=!0
J._connectivityTrackingTimer&&(clearInterval(J._connectivityTrackingTimer),J._connectivityTrackingTimer=0,e=!1),this._options.sessionHeartbeat&&(e&&(this._actorUrn?this._api.trackActiveConnection(this.sessionId,"FIRST_BEAT",this._contextUrns,this._actorUrn).then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)})):this._api.trackActiveConnection(this.sessionId,"FIRST_BEAT").then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)}))),J._connectivityTrackingTimer=setInterval(this.triggerActiveConnection.bind(this),this._options.sessionHeartbeat))}triggerActiveConnection(){this._actorUrn?this._api.trackActiveConnection(this.sessionId,"ALIVE",this._contextUrns,this._actorUrn).then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)})):this._api.trackActiveConnection(this.sessionId,"ALIVE").then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)}))}stopConnectivityTracker(){J._connectivityTrackingTimer&&(clearInterval(J._connectivityTrackingTimer),J._connectivityTrackingTimer=0,this._actorUrn?this._api.trackActiveConnection(this.sessionId,"FINAL_BEAT",this._contextUrns,this._actorUrn):this._api.trackActiveConnection(this.sessionId,"FINAL_BEAT"))}handleLoseInternetConnection(){this.disconnectAndClose(),this.stopConnectivityTracker(),this.setNewSessionId(q())}handleGainInternetConnection(){if(this.startConnectivityTracker(),this._explicitlyConnected){const e=Date.now()-this.options.reconnectGapThreshold-1
this._realtimeChannelDisconnectedTime=Math.min(e,this._realtimeChannelDisconnectedTime??e),setTimeout((()=>{this._internalConnect(this._autoReconnect)}),3e3)}}filterSubscriptionListForNonAuthTopics(e,t){const n=(r=this._personalTopicsTypes,e=>{const t=k(e)
return!t||!r.includes(t.type)})
var r
const i=N(t)
return(e instanceof Array?e:[e]).filter(M).filter(n).filter(i)}filterSubscriptionListForAuthTopics(e,t,n){const r=e instanceof Array?e:[e]
return n[t]?r.filter(M).filter(N(n[t])):r.filter(M)}isAuthBroadcastTopic(e){return void 0!==o(this._subscribedAuthBroadcastTopics).find((t=>this._subscribedAuthBroadcastTopics[t].includes(e)))}getTimeSinceLastDisconnect(){if(null===this._lastTimeConnectionLost)return 0
const e=Date.now()
return e-(this._lastTimeConnectionLost??e)}getRealtimeChannelDisconnectedTime(){return this._realtimeChannelDisconnectedTime?Date.now()-this._realtimeChannelDisconnectedTime:0}recordConnectionLostTime(){this._lastConnectedStatus=!1,this._realtimeChannelDisconnectedTime=Date.now(),this._lastTimeConnectionLost=Date.now(),g("RT connection lost at",this._lastTimeConnectionLost)}restoreSubscriptions(){const e=this.filterSubscriptionListForNonAuthTopics(this._subscribedNonAuthTopics,[])
return 0===e.length?Promise.resolve({succeeded:[],failed:[]}):this.apiSubscribe(e).then((t=>(this.getTimeSinceLastDisconnect()>=this._options.reconnectGapThreshold&&this.triggerEvent("topicsResubscribed",{topics:e,timeGapMs:this.getTimeSinceLastDisconnect()}),t)))}restoreAuthSubscriptions(){return o(this._subscribedAuthBroadcastTopics).reduce(((e,t)=>{const n=t.substring(Math.max(t.length-20,0))
return e.then((e=>(g("restoring auth subscriptions with token",`...${n}`),this.apiSubscribe(this._subscribedAuthBroadcastTopics[t],t).then((r=>(this.getTimeSinceLastDisconnect()>=this.options.reconnectGapThreshold&&this.triggerEvent("topicsResubscribed",{token:t,topics:this._subscribedAuthBroadcastTopics[t],timeGapMs:this.getTimeSinceLastDisconnect()}),g(`auth subscription for [...${n}]`,r.succeeded.length,"succeeded",r.failed.length,"failed"),[...e,r]))))))}),Promise.resolve([]))}apiSubscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1
return new Promise(((r,i)=>{var s
const c=-1===this.serverClockTime?(new Date).getTime():this.serverClockTime
if(t&&null!==(s=this._experimentalValues)&&void 0!==s&&s.checkJwtExpiration&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4
if(!e.length)return!0
try{const r=e.split(".")[1]
if(!r)return!0
const i=JSON.parse(window.atob(r))
return!a(i.exp)&&1e3*i.exp-n<t}catch(e){return!0}}(t,c))return this._subscribedAuthBroadcastTopics[t]&&delete this._subscribedAuthBroadcastTopics[t],this.triggerEvent("authSubscribeFailed",t),void i({status:500,message:"JWT token expired"})
this._api.subscribe(e,t).then((e=>{let[a,s,c,u]=e
if(t&&0===o(u).length){const e=this.filterSubscriptionListForAuthTopics(a,t,this._subscribedAuthBroadcastTopics)
this._subscribedAuthBroadcastTopics[t]=[...this._subscribedAuthBroadcastTopics[t]??[],...e]}else if(t&&o(u).length>0){const e=Object.entries(u).find((e=>403===e[1].status))
e&&e.length>0&&(this._subscribedAuthBroadcastTopics[t]&&delete this._subscribedAuthBroadcastTopics[t],this.triggerEvent("authSubscribeFailed",t))}else this._subscribedNonAuthTopics=[...this._subscribedNonAuthTopics,...a.filter(N(this._subscribedNonAuthTopics))]
a.forEach((e=>this.triggerEvent("subscribe",e))),c.length>0&&n<this.options.maxRetryCount?this.apiSubscribe(c,t,n+1).then((e=>{r({succeeded:[...a,...e.succeeded],failed:[...s,...e.failed]})})).catch(i):(s.forEach((e=>this.triggerEvent("subscribeFailed",e))),r({succeeded:a,failed:[...s,...c]}))})).catch((t=>{412===t.status?(this.scheduleReconnect(),r({succeeded:[],failed:e})):(this.triggerEvent("error",t),i(t))}))}))}connectEventSource(){return this._eventSource||(this._eventSource=new EventSource(this.realtimeConnectUrl,{withCredentials:!0,headers:this.options.connectHeaders})),this._eventSource}itShouldRetry(e){return!(null!=e&&e>=400&&e<500)&&(!this._eventSource||2===this._eventSource.readyState||this._eventSourceErrorCount>this.options.acceptableErrorCount)}lostConnection(){return this._lastConnectedStatus&&(null===this._eventSource||2===this._eventSource.readyState)}detectConnectionLost(){const e=this.lostConnection()
return e&&(this._lastConnectedStatus=this.connected,this.recordConnectionLostTime()),e}beforeUnloadHandler(){J.close()}}function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return J.getOrUpdateClient(e)}function ee(){return J.close()}h(J,"singleton",void 0),h(J,"_realtimeSessionId",q()),h(J,"_connectivityTrackingTimer",0)},3658:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{IS_BROWSER:()=>c,M3TransformMiddleware:()=>A,buildMiddlewares:()=>v,csrfMiddleware:()=>f,decodeDatalets:()=>y,defaultDevMiddlewares:()=>g,defaultMiddlewares:()=>p,queryTunnelingMiddleware:()=>O})
const r=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH"),i=(()=>{let e=globalThis,t=e[r]
return t||(t=e[r]=new WeakMap),t})(),o=new WeakMap
function a(e){const t=i.get(e)
return void 0===t?[]:t}let s
s={timeout:2e3,timeoutMessagePrefix:"requestsCompleted timeout waiting for requests to complete:"}
const c="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,u=/JSESSIONID="?([^";]+)"?/
let l,d=Date.now()
const f=async function(e,t){if(!l||!d||Date.now()-d>1e4){const e=c&&document.cookie.match(u)
l=e&&e[1]||"",d=Date.now()}return e.headers.set("Csrf-Token",l),t(e)},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{overwrite:!0}
return async(n,r)=>(e.forEach(((e,r)=>{!t.overwrite&&n.headers.has(r)||n.headers.set(r,e)})),r(n))}(new Headers({"X-RestLi-Protocol-Version":"2.0.0"})),p=[f],g=[async function(e,t,n){const r=new Error,c=n.fetch
if(typeof c.$debug<"u"){const e=c
void 0===e.$debug.settledness&&(e.$debug.settledness={get pendingRequestState(){return a(e)},get hasPendingRequests(){return function(e){return a(e).length>0}(e)},get requestsCompleted(){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n={...s,...t},r=o.get(e)
if(r){let t=new Error(n.timeoutMessagePrefix)
t.name="SETTLED_MIDDLEDWARE_REQUEST_COMPLETED_TIMEOUT"
const i=new Promise(((r,i)=>{setTimeout((()=>{let n=a(e).map((e=>{let{method:t,url:n}=e
return` ${t} ${n}`})).join("\n")
t.message+=`\n${n}`,i(t)}),n.timeout)}))
return Promise.race([r.promise,i])}}(e)}})}let u=i.get(c)
if(void 0===u&&(u=[],i.set(c,u)),0===u.length){const e=function(){let e
return{promise:new Promise((t=>{e=t})),resolve:e}}()
o.set(c,e)}const l={url:e.url,method:e.method,startTime:Date.now(),get stack(){return r.stack}}
u.push(l)
try{return await t(e)}finally{const e=u.findIndex((e=>e===l))
if(-1===e)throw new Error("[INTERNAL ERROR @data-eden/network]: Could not find debug information for a previously started request")
if(u.splice(e,1),0===u.length){const e=o.get(c)
if(void 0===e)throw new Error("[INTERNAL ERROR @data-eden/network]: Could not find requestsCompleted promise for a previously started request")
e.resolve()}}}],m=[h]
function v(e){return e?[...g,...p,...m]:[...p,...m]}const y=async function(e,t){let n=null
return c&&"undefined"!=typeof document?(n=await async function(e){const t=document.getElementsByTagName("img")
return new Promise((n=>{for(let r=0;r<t.length;r++){const i=t[r]
if(null!=i&&i.className.startsWith("datalet-bpr-guid")){const t=i.className,r=document.getElementById(t),o=(null==r?void 0:r.textContent)||"",a=JSON.parse(o),s=document.getElementById(a.body),c=null==s?void 0:s.textContent
if(e.url.endsWith(null==a?void 0:a.request)){const e=null==a?void 0:a.request,t=(null==c?void 0:c.trimEnd().trimStart())||""
n({urlLink:e,headers:a.headers,body:t})}}}n(null)}))}(e),n?function(e){const{urlLink:t,headers:n,body:r}=e
return new Response(JSON.stringify({body:r,url:t}),{headers:n,status:200})}(n):t(e)):t(e)}
function b(e,t){if("object"!=typeof e||null===e)throw new Error(t)}const E="\\."
function _(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]
if("object"!=typeof e||null===e)return{}
if(Array.isArray(e))return e.map(((r,i)=>{if(Array.isArray(r)||"object"==typeof r)return _(r,t,[...n,String(i)])
{const[,o]=t([...n,i].join(E),r,e)
return o}}))
const r=Object.entries(e).reduce(((r,i)=>{let[o,a]=i
if(Array.isArray(a)){const[i,s]=t([...n,o].join(E),a,e)
if(!i)return r
r[i]=s,Array.isArray(s)&&(r[i]=null==s?void 0:s.map(((r,a)=>{if(Array.isArray(r)||"object"==typeof r)return _(r,t,[...n,o,String(a)])
{const[,o]=t([...n,i,a].join(E),r,e)
return o}})))}else if("object"==typeof a){const[i,s]=t([...n,o].join(E),a,e)
if(!i)throw new Error("Internal Error @linkedin/core-web-data: walk callback didn't return a key.")
if(r[i]=s,"string"==typeof s||"number"==typeof s||"boolean"==typeof s||null===s)return r
b(s,`Internal failure. All values should be walkable.\nvalue '${String(s)}' at '${n.join(".")}.${o}.${i}' is not walkable.`),r[o]=_(s,t,[...n,o])}else{const[i,s]=t([...n,o].join(E),a,e)
if(!i)return r
r[i]=s}return r}),{})
return r}function T(e){return Boolean(e&&0===e.indexOf("*"))}const S=/(?<fieldName>[a-zA-Z]+)(?:ResolutionResults|ResolutionResult|InjectionResult)/
function x(e,t){return _(e,((e,n)=>{const r=e.split(E),i=[r[r.length-1],r[r.length-2]],o=i[0]&&parseInt(i[0])>-1,a=i[0]&&i[0].replace(/\*/,"")
if(T(i[1])&&o||T(i[0])){if(Array.isArray(n))return[a,n.map((r=>{if("string"!=typeof r)throw new Error(`primary key (${r}) for resolving array of cached entity references has value (${n}) which is not a string.`)
const i=t.get(r)
if(!i)throw new Error(`Invalid API payload: path ${e} references cached entity ${r}, but no entity with entityUrn=${r} was found in 'data' or 'included'.`)
return x(i,t)}))]
if("string"!=typeof n)throw new Error("trying to access entity lookup map with a value that is not a string")
const r=t.get(n)
if(!r)throw new Error(`could not resolve alias for ${n}.`)
return[a,x(r,t)]}return[i[0],n]}))}function C(e){const{data:t,included:n}=e,r=function(e,t){const n=new Map
return t.forEach((e=>{if("object"!=typeof e)throw new Error("invalid value in API payload 'included' -- expected type object got "+typeof e)
if(!e.entityUrn)throw new Error(`Invalid cached entity in API payload 'included'. Entity did not have an entityUrn field. The invalid entity was:\n${JSON.stringify(e,null,2)}`)
if("string"!=typeof e.entityUrn)throw new Error("entityUrn is not of type string")
n.set(e.entityUrn,e)})),n}(0,n),i=x(function(e){const t=new Set
return _(e,((e,n)=>{const r=e.split(E),i=r[r.length-1]
if(T(i)&&S.test(e)){var o
const{fieldName:n}=(null===(o=e.match(S))||void 0===o?void 0:o.groups)??{}
n&&t.add(n)}return[i,n]})),_(e,((e,n)=>{var r,i
const o=e.split(E),a=o[o.length-1],s=!(null===(r=o[o.length-2])||void 0===r||!r.endsWith("Union")),c=!(null===(i=o[o.length-3])||void 0===i||!i.endsWith("Unions"))
return t.has(a)||(s||c)&&"string"==typeof n&&n.startsWith("urn:li")?[`*${a}`,n]:[a,n]}))}(t),r)
return _(i,((e,t,n)=>{const r=e.split(E),i=r[r.length-1]
return!Array.isArray(n)&&Array.isArray(n[`${i}Urns`])&&t&&"object"==typeof t?[i,Object.values(t)]:[i,t]}))}const A=async(e,t)=>{const n=await t(e),r=n.headers.get("content-type")
if(null==r||!r.includes("application/vnd.linkedin.normalized+json+2.1"))return n
const i=n.clone()
return i.json=()=>n.json().then(C),i},w=/^(\/[^?]+)\??(.*)$/
function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=w.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const R="application/x-www-form-urlencoded"
function k(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=I(e.url||void 0)
if(n){const r={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(r[t]=e.headers[t]||"")
let i,o
if(r["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,i=["--"+t,"Content-Type: "+R,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=R,i=n
return r["Content-Type"]=o,{body:i,headers:r,method:"POST",url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}const O=async(e,t)=>{const{url:n,method:r,headers:i}=e,o=function(e){const{origin:t,rest:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("//")
return t=t>0?t+2:t+1,t=e.indexOf("/",t),t<0&&(t=e.indexOf("?",t)),t=t<0?0:t,{origin:e.substring(0,t),rest:e.substring(t)}}(e.url)
if(function(e){const{path:t,queryString:n}=I(e)
if(t.length>8e3)throw new Error(`Per AFD limitations, this request url ${e} will not work. Please contact ask_traffic@.`)
return e.length>8e3||n.length>4e3}(n)){const r=e.headers,i={}
null==r||r.forEach(((e,t)=>i[t]=e))
let{method:o,body:a}=e
const{url:s,request:c}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=Object.assign({},t)
n.url=e,n.forceQueryTunnel=!0
const r=k(n)
if(t.method=r.method,t.headers=r.headers,t.body=r.body,t.data=r.body,null==r.url)throw new Error("Invalid: URL to be encoded cannot be 'null' or 'undefined' when performing query tunneling")
return{url:r.url,request:t}}(n,{url:n,body:a,headers:i,method:o})
for(const e in r)r.delete(e)
for(const e in c.headers)r.set(e,c.headers[e]||"")
return({method:o="GET",body:a=""}=c),{url:t+s,method:o,body:a,headers:r}}return null}({url:n,method:r,headers:i,body:await e.clone().text()})
return null!==o&&(e=new Request(o.url,e),e=new Request(e,o)),t(e)}},73265:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{BreadcrumbBuilder:()=>hn,BrowserTransporter:()=>fn,ClientBreadcrumb:()=>gn,ClientBreadcrumbType:()=>pn,ErrorType:()=>ci,FALLBACK_PAGEKEY:()=>_,FlushMode:()=>pi,GENERIC_TRACER_LIX_PATTERN:()=>Ln,Heap:()=>Bt,HttpProtocolType:()=>xn,JetCore:()=>Sn,ParsedResponseHeaders:()=>di,PerfMeasurement:()=>yi,RESPONSE_HEADERS:()=>li,ResourceProgressOriginalMetricsType:()=>An,ResourceProgressType:()=>Cn,ResourceRequestType:()=>wn,RumCore:()=>gi,TrackingCore:()=>yn,_eventEmitter:()=>nt,allPromisesSettled:()=>Ot,arrayFromSet:()=>Mt,copyContext:()=>xt,deepClone:()=>Ft,deleteIDB:()=>Nt,determinErrorType:()=>fi,emitJETError:()=>Lt,extractTransferInfo:()=>mn,extractVersionFromConfig:()=>kt,generateBase64UUID:()=>gt,generateByteUUID:()=>dt,generateControlUrn:()=>_t,generateNodeProcessJetPayload:()=>En,generatePageInstance:()=>Et,generatePageUrn:()=>Tt,generateResourceResponseContext:()=>hi,generateRfc4122UUID:()=>vt,generateTrackingId:()=>mt,generateUUID:()=>ut,getBase64FromBase64Url:()=>Ht,getBsCookieInfo:()=>jt,isBase64TrackingId:()=>ht,isFlushOnCloseBrowserTabEnabled:()=>Ut,operateSequenceNumberViaIDB:()=>Pt,parseStringPageInstance:()=>St,parseTrackingId:()=>bt,queryStringToContext:()=>Rt,queryStringToControlUrn:()=>It,resolveCNDomain:()=>qt,serializePageInstance:()=>Ct,shouldUseXHR:()=>Dt,stringifyTrackingId:()=>yt,uint8ToBase64:()=>pt,uint8ToByteString:()=>lt})
var r,i=["requestStart"],o=["requestTime","viewNames","requestType"],a=["requestStart"],s=["requestStart"]
function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?c(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(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 d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=h(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 f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(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 h(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(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 g(e){return(g="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)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E,_="unknown",T=new Uint8Array(16)
function S(){if(!E&&!(E="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 E(T)}var x=/^(?:[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 C(e){return"string"==typeof e&&x.test(e)}for(var A=[],w=0;w<256;++w)A.push((w+256).toString(16).slice(1))
function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase()}function R(e){if(!C(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 k(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=R(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 I(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function O(e){return 14+(e+64>>>9<<4)+1}function M(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function N(e,t,n,r,i,o){return M((a=M(M(t,e),M(r,o)))<<(s=i)|a>>>32-s,n)
var a,s}function P(e,t,n,r,i,o,a){return N(t&n|~t&r,e,t,i,o,a)}function D(e,t,n,r,i,o,a){return N(t&r|n&~r,e,t,i,o,a)}function U(e,t,n,r,i,o,a){return N(t^n^r,e,t,i,o,a)}function L(e,t,n,r,i,o,a){return N(n^(t|~r),e,t,i,o,a)}k("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[O(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=P(n,r,i,o,e[a],7,-680876936),o=P(o,n,r,i,e[a+1],12,-389564586),i=P(i,o,n,r,e[a+2],17,606105819),r=P(r,i,o,n,e[a+3],22,-1044525330),n=P(n,r,i,o,e[a+4],7,-176418897),o=P(o,n,r,i,e[a+5],12,1200080426),i=P(i,o,n,r,e[a+6],17,-1473231341),r=P(r,i,o,n,e[a+7],22,-45705983),n=P(n,r,i,o,e[a+8],7,1770035416),o=P(o,n,r,i,e[a+9],12,-1958414417),i=P(i,o,n,r,e[a+10],17,-42063),r=P(r,i,o,n,e[a+11],22,-1990404162),n=P(n,r,i,o,e[a+12],7,1804603682),o=P(o,n,r,i,e[a+13],12,-40341101),i=P(i,o,n,r,e[a+14],17,-1502002290),n=D(n,r=P(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=D(o,n,r,i,e[a+6],9,-1069501632),i=D(i,o,n,r,e[a+11],14,643717713),r=D(r,i,o,n,e[a],20,-373897302),n=D(n,r,i,o,e[a+5],5,-701558691),o=D(o,n,r,i,e[a+10],9,38016083),i=D(i,o,n,r,e[a+15],14,-660478335),r=D(r,i,o,n,e[a+4],20,-405537848),n=D(n,r,i,o,e[a+9],5,568446438),o=D(o,n,r,i,e[a+14],9,-1019803690),i=D(i,o,n,r,e[a+3],14,-187363961),r=D(r,i,o,n,e[a+8],20,1163531501),n=D(n,r,i,o,e[a+13],5,-1444681467),o=D(o,n,r,i,e[a+2],9,-51403784),i=D(i,o,n,r,e[a+7],14,1735328473),n=U(n,r=D(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=U(o,n,r,i,e[a+8],11,-2022574463),i=U(i,o,n,r,e[a+11],16,1839030562),r=U(r,i,o,n,e[a+14],23,-35309556),n=U(n,r,i,o,e[a+1],4,-1530992060),o=U(o,n,r,i,e[a+4],11,1272893353),i=U(i,o,n,r,e[a+7],16,-155497632),r=U(r,i,o,n,e[a+10],23,-1094730640),n=U(n,r,i,o,e[a+13],4,681279174),o=U(o,n,r,i,e[a],11,-358537222),i=U(i,o,n,r,e[a+3],16,-722521979),r=U(r,i,o,n,e[a+6],23,76029189),n=U(n,r,i,o,e[a+9],4,-640364487),o=U(o,n,r,i,e[a+12],11,-421815835),i=U(i,o,n,r,e[a+15],16,530742520),n=L(n,r=U(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=L(o,n,r,i,e[a+7],10,1126891415),i=L(i,o,n,r,e[a+14],15,-1416354905),r=L(r,i,o,n,e[a+5],21,-57434055),n=L(n,r,i,o,e[a+12],6,1700485571),o=L(o,n,r,i,e[a+3],10,-1894986606),i=L(i,o,n,r,e[a+10],15,-1051523),r=L(r,i,o,n,e[a+1],21,-2054922799),n=L(n,r,i,o,e[a+8],6,1873313359),o=L(o,n,r,i,e[a+15],10,-30611744),i=L(i,o,n,r,e[a+6],15,-1560198380),r=L(r,i,o,n,e[a+13],21,1309151649),n=L(n,r,i,o,e[a+4],6,-145523070),o=L(o,n,r,i,e[a+11],10,-1120210379),i=L(i,o,n,r,e[a+2],15,718787259),r=L(r,i,o,n,e[a+9],21,-343485551),n=M(n,s),r=M(r,c),i=M(i,u),o=M(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(O(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32
return n}(e),8*e.length))}))
var j={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function F(e,t,n){if(j.randomUUID&&!t&&!e)return j.randomUUID()
var r=(e=e||{}).random||(e.rng||S)()
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 I(r)}function B(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 q(e,t){return e<<t|e>>>32-t}k("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),h=0;h<16;++h)f[h]=s[d][h]
for(var p=16;p<80;++p)f[p]=q(f[p-3]^f[p-8]^f[p-14]^f[p-16],1)
for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),T=q(g,5)+B(_,m,v,y)+b+t[_]+f[E]>>>0
b=y,y=v,v=q(m,30)>>>0,m=g,g=T}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>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 H=Uint8Array,G=Uint16Array,K=Uint32Array,V=new H([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]),z=new H([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]),W=new H([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),X=function(e,t){for(var n=new G(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1]
var i=new K(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]},Q=X(V,2),Y=Q[0],$=Q[1]
Y[28]=258,$[258]=28
for(var J=X(z,0)[1],Z=new G(32768),ee=0;ee<32768;++ee){var te=(43690&ee)>>>1|(21845&ee)<<1
te=(61680&(te=(52428&te)>>>2|(13107&te)<<2))>>>4|(3855&te)<<4,Z[ee]=((65280&te)>>>8|(255&te)<<8)>>>1}var ne=function(e,t,n){for(var r=e.length,i=0,o=new G(t);i<r;++i)e[i]&&++o[e[i]-1]
var a,s=new G(t)
for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1
if(n){a=new G(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[Z[d]>>>c]=u}else for(a=new G(r),i=0;i<r;++i)e[i]&&(a[i]=Z[s[e[i]-1]++]>>>15-e[i])
return a},re=new H(288)
for(ee=0;ee<144;++ee)re[ee]=8
for(ee=144;ee<256;++ee)re[ee]=9
for(ee=256;ee<280;++ee)re[ee]=7
for(ee=280;ee<288;++ee)re[ee]=8
var ie=new H(32)
for(ee=0;ee<32;++ee)ie[ee]=5
var oe=ne(re,9,0),ae=ne(ie,5,0),se=function(e){return(e+7)/8|0},ce=function(e,t,n){n<<=7&t
var r=t/8|0
e[r]|=n,e[r+1]|=n>>>8},ue=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},le=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[ve,0]
if(1==i){var a=new H(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 h=new G(f+1),p=de(n[l-1],h,0)
if(p>t){r=0
var g=0,m=p-t,v=1<<m
for(o.sort((function(e,t){return h[t.s]-h[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s
if(!(h[y]>t))break
g+=v-(1<<p-h[y]),h[y]=t}for(g>>>=m;g>0;){var b=o[r].s
h[b]<t?g-=1<<t-h[b]++-1:++r}for(;r>=0&&g;--r){var E=o[r].s
h[E]==t&&(--h[E],++g)}p=t}return[new H(h),p]},de=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},fe=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new G(++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]},he=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r]
return n},pe=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)},ge=function(e,t,n,r,i,o,a,s,c,u,l){ce(t,l++,n),++i[256]
for(var d=le(i,15),f=d[0],h=d[1],p=le(o,15),g=p[0],m=p[1],v=fe(f),y=v[0],b=v[1],E=fe(g),_=E[0],T=E[1],S=new G(19),x=0;x<y.length;++x)S[31&y[x]]++
for(x=0;x<_.length;++x)S[31&_[x]]++
for(var C=le(S,7),A=C[0],w=C[1],I=19;I>4&&!A[W[I-1]];--I);var R,k,O,M,N=u+5<<3,P=he(i,re)+he(o,ie)+a,D=he(i,f)+he(o,g)+a+14+3*I+he(S,A)+(2*S[16]+3*S[17]+7*S[18])
if(N<=P&&N<=D)return pe(t,l,e.subarray(c,c+u))
if(ce(t,l,1+(D<P)),l+=2,D<P){R=ne(f,h,0),k=f,O=ne(g,m,0),M=g
var U=ne(A,w,0)
for(ce(t,l,b-257),ce(t,l+5,T-1),ce(t,l+10,I-4),l+=14,x=0;x<I;++x)ce(t,l+3*x,A[W[x]])
l+=3*I
for(var L=[y,_],j=0;j<2;++j){var F=L[j]
for(x=0;x<F.length;++x){var B=31&F[x]
ce(t,l,U[B]),l+=A[B],B>15&&(ce(t,l,F[x]>>>5&127),l+=F[x]>>>12)}}}else R=oe,k=re,O=ae,M=ie
for(x=0;x<s;++x)if(r[x]>255){B=r[x]>>>18&31,ue(t,l,R[B+257]),l+=k[B+257],B>7&&(ce(t,l,r[x]>>>23&31),l+=V[B])
var q=31&r[x]
ue(t,l,O[q]),l+=M[q],q>3&&(ue(t,l,r[x]>>>5&8191),l+=z[q])}else ue(t,l,R[r[x]]),l+=k[r[x]]
return ue(t,l,R[256]),l+k[256]},me=new K([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ve=new H(0),ye=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}(),be=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Ee="undefined"!=typeof TextDecoder&&new TextDecoder
try{Ee.decode(ve,{stream:!0})}catch(Sr){}function _e(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Te(){try{return _e()&&"keepalive"in new Request("")}catch(e){return!1}}function Se(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 xe(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=ye[255&n^t[r]]^n>>>8
e=n},d:function(){return~e}}}(),r=e.length
n.p(e)
var i,o,a,s=(i=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),function(e,t,n,r,i,o){var a=e.length,s=new H(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]=true),u=pe(c,u+1,e.subarray(l,d))}else{for(var f=me[t-1],h=f>>>13,p=8191&f,g=(1<<n)-1,m=new G(32768),v=new G(g+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},_=new K(25e3),T=new G(288),S=new G(32),x=0,C=0,A=(l=0,0),w=0,I=0;l<a;++l){var R=E(l),k=32767&l,O=v[R]
if(m[k]=O,v[R]=k,w<=l){var M=a-l
if((x>7e3||A>24576)&&M>423){u=ge(e,c,0,_,T,S,C,A,I,l-I,u),A=x=C=0,I=l
for(var N=0;N<286;++N)T[N]=0
for(N=0;N<30;++N)S[N]=0}var P=2,D=0,U=p,L=k-O&32767
if(M>2&&R==E(l-L))for(var j=Math.min(h,M)-1,F=Math.min(32767,l),B=Math.min(258,M);L<=F&&--U&&k!=O;){if(e[l+P]==e[l+P-L]){for(var q=0;q<B&&e[l+q]==e[l+q-L];++q);if(q>P){if(P=q,D=L,q>j)break
var W=Math.min(L,q-2),X=0
for(N=0;N<W;++N){var Q=l-L+N+32768&32767,Y=Q-m[Q]+32768&32767
Y>X&&(X=Y,O=Q)}}}L+=(k=O)-(O=m[k])+32768&32767}if(D){_[A++]=268435456|$[P]<<18|J[D]
var Z=31&$[P],ee=31&J[D]
C+=V[Z]+z[ee],++T[257+Z],++S[ee],w=l+P,++x}else _[A++]=e[l],++T[e[l]]}}u=ge(e,c,true,_,T,S,C,A,I,l-I,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?G:4==e.BYTES_PER_ELEMENT?K:H)(n-t)
return r.set(e.subarray(t,n)),r}(s,0,r+se(u)+8)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a)),c=s.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&&be(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)}}(s,t),be(s,c-8,n.d()),be(s,c-4,r),s}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function Ce(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Ae,we="undefined"!=typeof navigator&&"sendBeacon"in navigator,Ie=Te()?function(e,t,n,r){return new Promise((function(i){fetch(e,xe({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,xe({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:Ce(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(we){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,xe({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:Ce(e)})}))}))}
function Re(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 ke(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 Oe(){return Ae||(Ae=ke("idb-queue","default")),Ae}function Me(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))},Re(e.transaction)}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe()
return t("readwrite",(function(t){return Me(t,e)}))}var Pe=!1
function De(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]:Oe()
return n("readwrite",(function(n){return n.put(e),Re(n.count()).then((function(e){if(!(e<=t.maxNumber))return Me(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return Ne(t,n)}))}function Ue(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]:Oe()
return Pe?Promise.resolve():De(e,t,n)}function Le(e,t,n){return t("readwrite",(function(t){var r=[]
return t.openCursor(null,n).onsuccess=function(){var t=this.result
t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},Re(t.transaction).then((function(){return r}))}))}function je(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())},Re(t.transaction).then((function(){return r}))}))}function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe()
return je(e,t,"next")}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe()
return je(e,t,"prev")}function qe(){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 He(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Ge(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4}
if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10)
else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})}
n()}}function Ve(e,t){var n=0
return{throttledFn:function(){var r=Date.now()
r-n>t&&(He((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var ze=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
m(this,e),b(this,"config",void 0),b(this,"compress",void 0),b(this,"throttleControl",void 0),b(this,"withStore",void 0),b(this,"disablePersistence",!1),this.config=t,this.compress=r
var i=t.measureIDB
i&&performance.mark(i.createStartMark),this.withStore=ke(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=Ve(this.replayEntries.bind(this),t.throttleWait)}return y(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){He((function(){return"Persisting to DB "+e.url})),Ue(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),He((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Ge((function(){return"push failed"}))}))}
this.config.useIdle?Ke(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]:Oe()
return Pe=!0,e("readwrite",(function(e){return e.clear(),Re(e.transaction).finally((function(){return Pe=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Ge((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([]):Fe(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ge((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([]):Be(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ge((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){He((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe()
return Le(e,t,"next")}(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 He((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,a),Ie(o,a,qe(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,h,p
if(l+1>e.config.attemptLimit)return He((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),He((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),Ue({url:o,body:a,timestamp:c,statusCode:u,attemptCount:l+1},e.config,e.withStore)
t.drop=!0,null===(h=(p=e.config).onResult)||void 0===h||h.call(p,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Ge((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?Ke(t):t()}}}]),e}(),We=function(){function e(){m(this,e)}return y(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}(),Xe=function(){function e(t,n){m(this,e),b(this,"queue",void 0),b(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new ze(t,n.compress):new We}return y(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}()
b(Xe,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var Qe=[502,504],Ye=[429,503],$e=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
m(this,e),b(this,"url",void 0),b(this,"body",void 0),b(this,"config",void 0),b(this,"persistenceConfig",void 0),b(this,"compress",void 0),b(this,"timestamp",void 0),b(this,"isClearQueuePending",!1),b(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 y(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 Ie(e.url,e.body,t,e.compress)}),n,t).finally((function(){He((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(qe(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(He((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 He((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 Je(e,t,n){var r=e.get(t)
r&&r.push(n)||e.set(t,[n])}function Ze(e,t,n){var r=e.get(t)
r&&r.splice(r.indexOf(n)>>>0,1)}var et,tt,nt=(et=new Map,tt=new Map,{on:function(e,t){Je(et,e,t)},before:function(e,t){Je(tt,e,t)},off:function(e,t){Ze(et,e,t)},offBefore:function(e,t){Ze(tt,e,t)},emit:function(e,t){(tt.get(e)||[]).concat(et.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){tt.clear(),et.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var rt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||nt.emit("internal:hide",e)}
document.addEventListener("visibilitychange",rt),window.addEventListener("pagehide",rt)}var it=null
if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var ot=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(ot){var at=new Uint8Array(256),st=at.length
it={rng:function(){return st>at.length-16&&(ot.randomFillSync(at),st=0),at.slice(st,st+=16)}}}}var ct="object"===("undefined"==typeof crypto?"undefined":g(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return yt(ut())}
function ut(){return F(it,new Array(16),0)}function lt(e){return f(e).map((function(e){return String.fromCharCode(e)})).join("")}function dt(){return lt(ut())}var ft=/^[a-zA-Z0-9/+]+[=]+$/
function ht(e){return"string"==typeof e&&!!e.match(ft)}function pt(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 gt(){return pt(ut())}function mt(){return ct()}function vt(){return ct()}function yt(e){return function(e){var t=I(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!C(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}function bt(e){return R(e)}function Et(e,t){return{pageUrn:Tt(e),trackingId:t||gt()}}function _t(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Tt(e){return"urn:li:page:".concat(e)}function St(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function xt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Ct(e){return"".concat(e.pageUrn,";").concat(e.trackingId)}var At=new RegExp("[?&]lipi=([^&#]*)"),wt=new RegExp("[?&]licu=([^&#]*)")
function It(e){var t=e.match(wt)
return t?decodeURIComponent(t[1]):null}function Rt(e){var t=e.match(At)
if(t){var n=St(t[1])
if(n)return{pageInstance:n,pageKey:""}}return null}function kt(e){var t,n=null===(t=e.APP)||void 0===t?void 0:t.version
return(n="string"==typeof n?n.split("_").pop():"")||""}function Ot(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 Mt(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function Nt(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 Pt(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 h={sequenceNumber:0}
n&&Object.keys(n).forEach((function(e){h[e]=0}))
var p=u.add(h)
p.onsuccess=function(){return o(0)},p.onerror=function(){a(p.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 Dt(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!_e()||"undefined"==typeof Promise}function Ut(){return!Dt()&&(Te()||"undefined"!=typeof navigator&&"sendBeacon"in navigator)}function Lt(e,t,n){nt.emit("internal:error",{tags:["core-web-tracking:".concat(e)],reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function jt(e){var t,n={issueTime:0,browserId:""},r=d(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}var Ft=function(e){var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))},Bt=function(){function e(t){m(this,e),b(this,"heap",void 0),b(this,"comparator",void 0),this.comparator=t,this.heap=[]}return y(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=f(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 qt(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}var Ht=function(e){if(!e||0===e.length)return null
if((e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4==1)return Lt("base64url-decoder",new Error("Invalid Base64URL input")),null
for(;e.length%4!=0;)e+="="
return e}
function Gt(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&Te()&&t&&n}var Kt=function(){function e(t){m(this,e),b(this,"host",void 0),this.host=t}return y(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&&Gt()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return Nt("beacons")
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 function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:"beacons",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=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:Qe,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:Ye,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
i.headerName=i.headerName||r.headerName,e=new Xe(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,a){var s
return _e()?new $e(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Ye},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(l),f=d.beacon,h=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:h},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?h.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body)
if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return h.clearQueue()}}),(function(){return h.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Lt("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Lt("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){Lt("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment()
Te()&&"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){Lt("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)&&(Dt()?Se(e,JSON.stringify(t),{headers:n}):Ie(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&&Gt()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),Vt="undefined"!=typeof window&&"undefined"!=typeof document,zt=/JSESSIONID="?([^";]+)"?/,Wt="",Xt=0
function Qt(){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?zt:r
if(!Wt||Date.now()-Xt>n){var o=Vt&&document.cookie.match(i)
Wt=o&&o[1]||"",Xt=Date.now()}return Wt}var Yt={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"}},$t=function(){function e(t){m(this,e),b(this,"networkTransporter",void 0),b(this,"inactive",void 0),b(this,"mpName",void 0),b(this,"endpoint",void 0),b(this,"debug",void 0),this.networkTransporter=new Kt(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return Yt.prod.pattern.test(e)?t=Yt.prod.monitorEndpoint:Yt.eiValidate.pattern.test(e)?(n=!0,t=Yt.eiValidate.monitorEndpoint):Yt.ei.pattern.test(e)?t=Yt.ei.monitorEndpoint:(t=Yt.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return y(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":Qt(),"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,f(t.failures)),e}),[]);[].concat(f(o),f(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 Jt(e){return"string"==typeof e}function Zt(e){return Jt(e)?e:e.topicName||e.eventName}function en(e){return Jt(e)?e:e.eventName}var tn,nn,rn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
m(this,e),b(this,"host",void 0),b(this,"cmoTransporter",void 0),b(this,"clientMonitoringInstanceId",dt()),b(this,"currentContext",sn()),b(this,"appState",{}),b(this,"estimatedFragmentSize",0),b(this,"fragmentSizeLimit",void 0),b(this,"activeFragmentEvent",void 0),b(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new $t(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=an(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return y(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=d(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:en(t),eventTopic:Zt(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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
if(e||this.fragmentIsFull()){this.debounceTimer=void 0
var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent
i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=an(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{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=cn(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=cn(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 on(e){return tn||(tn=new rn(e)),{getCurrentInstanceId:function(){return tn.getCurrentInstanceId()},logEventGenerated:function(e){return tn.logEventGenerated(e)},logEventReadyToSend:function(e){tn.logEventReadyToSend(e)},logEventSent:function(e){tn.logEventSent(e)},logPersistedEventSent:function(e,t){tn.logEventSent(t,e)},logNetworkResponseCode:function(e){tn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=tn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){tn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){tn.logFailedEvent(t,n,r,i,e)},flush:function(){tn.flush()},destroy:function(){tn=void 0},isDestroyed:function(){return void 0===tn},setCurrentContext:function(e){tn.setCurrentContext(e)},updateAppState:function(e){tn.updateAppState(e)}}}function an(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 sn(){return{pageKey:"unknown",pageInstance:Et("unknown")}}function cn(e){return Array.isArray(e)?lt(e):16===e.length?e:ht(e)?atob(e):lt(bt(e))}function un(e){return{onResult:function(t,n){e&&!e.isDestroyed()&&(t.statusCode&&e.logNetworkResponseCode(t.statusCode),!0===t.drop&&n.forEach((function(n){var r=n.eventInfo.eventName,i=n.eventInfo.topicName||r,o="rawError"in t?t.rawError:"null",a=["type: ".concat(t.type),"statusCode: ".concat(t.statusCode||"null"),"drop: ".concat(String(t.drop)),"rawError: ".concat(o)].join(", ")
null==e||e.logFailedEvent(nn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:i},a,n.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}}!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"}(nn||(nn={}))
var ln=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],dn="PageViewEvent",fn=function(){function e(t){var n,r,i,o=this
m(this,e),b(this,"host",void 0),b(this,"queue",void 0),b(this,"preContextQueue",void 0),b(this,"debounceTimer",void 0),b(this,"unloadHandlers",void 0),b(this,"maxQueueSize",void 0),b(this,"flushDebounceTime",void 0),b(this,"trackingEventListeners",[]),b(this,"onHideHandler",(function(){o.forceFlush()})),b(this,"networkTransporter",void 0),b(this,"clientMonitoringConn",void 0),b(this,"clientGlobalSequenceNumberCounter",void 0),b(this,"clientTopicLocalSequenceNumberCountersMap",{}),b(this,"isTimerRunning",void 0),b(this,"trackingEndpoint",void 0),b(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n
this.trackingEndpoint=qt(t.endpoint,null===(r=t.api)||void 0===r||null===(i=r.location)||void 0===i?void 0:i.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,nt.on("internal:hide",this.onHideHandler),this.networkTransporter=new Kt(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=on(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return y(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(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(nn.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,nn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{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(Zt(e.id)))
var n=this.host,r=n.api.Promise,i=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t)
return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),this.queue.push(a),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,r
this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,nt.off("internal:hide",this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(n=t.api)&&void 0!==n&&n.location&&(this.host.api.location=null===(r=window)||void 0===r?void 0:r.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
this.populatePreContextQueue({pageInstance:Et("unknown"),pageKey:"unknown"}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0)}},{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
Pt("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,ln.forEach((function(n){var r
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){Lt("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Pt("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Lt("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=xt(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){return t.queue.push(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===dn:e.eventName===dn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,h=null
"string"!=typeof i&&null!==this.host.locale||(h=i)
var p={interfaceLocale:h,pageKey:f,path:a.pathname+a.search,referer:s.referrer,isFlushOnCloseBrowserTabEnabled:Ut(),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},g={pageInstance:d,time:e.meta.time,version:r,server:"",service:"",guid:dt(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(g,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var m=Zt(e.id)
if(ln.includes(m)){var v=this.clientTopicLocalSequenceNumberCountersMap[m]
"number"==typeof v&&c(g,{clientTopicLocalSequenceNumber:v})}var y={header:c(g,e.meta.header||{}),requestHeader:c(p,e.meta.requestHeader||{})},b=e.meta.clientMonitoringInstanceId,E=e.meta.clientMonitoringInstanceEventNumber
return b&&c(y.header,{clientMonitoringInstanceId:b,clientMonitoringInstanceEventNumber:E}),c(e.body,y)}},{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=[]
t.forEach((function(e){var t=n.getGenericEventBody(e),r=n.getBreadcrumbs(e),i=n.envelop(e.id,t,r)
n.trigger(i,e.meta)
var o=i.eventInfo.eventName
"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?a.push(i):s.push(i),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var c=Zt(e.id)
ln.includes(c)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[c]&&n.clientTopicLocalSequenceNumberCountersMap[c]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(a.length+s.length),o=un(this.clientMonitoringConn)),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,a,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,s,void 0,o))}}}]),e}()
function hn(){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 pn,gn=function(){function e(t,n){m(this,e),this.clientBreadcrumbType=t,this.id=n}return y(e,[{key:"builder",get:function(){return hn().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
function mn(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&&St(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}}function vn(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW"}(pn||(pn={}))
var yn=function(){function e(t,n){var r,i
if(m(this,e),b(this,"transporter",void 0),b(this,"delegate",void 0),b(this,"currentContext",void 0),b(this,"appState",void 0),b(this,"previousAppContext",void 0),b(this,"customTransporters",void 0),b(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var a=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[o]=new fn(this.transporter.host.api.assign(a,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=on(t.host))}return y(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){vn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=vn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return xt(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,mn(t))
if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t
this.currentContext=xt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(xt(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=_t(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 HTMLElement&&"body"!==n.tagName.toLowerCase();){var r=n.getAttribute("data-view-name")
r&&t.push(r),n=n.parentElement}return t}},{key:"fireInteraction",value:function(e,t,n,r,i,o,a){var s=this.getViewHierarchy(e)
return this.fireEvent("GenericActionEvent",{controlUrn:"",interactionType:n,actionType:r,contentTrackingId:i,manualFireReason:t},{header:{viewHierarchy:s}},o,a)}},{key:"fireImpression",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=arguments.length>10?arguments[10]:void 0,d=this.getViewHierarchy(e)
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:n,contentViewFraction:r,width:i,height:o,verticalPosition:a,horizontalPosition:s,contentTrackingId:c,manualFireReason:t},{header:{viewHierarchy:d}},u,l)}},{key:"fireEvent",value:function(e,t,n,r,i){if(!t){var o=Zt(e),a=void 0===t?"undefined":null===t?"null":g(t),s='Firing tracking event "'.concat(o,'" with invalid body, you fired "').concat(a,'"')
if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(o)
this.clientMonitoringConn.logFailedEvent(nn.MISSING_REQUIRED_PROPERTIES,e,s,c)}throw new Error(s)}var u=r||[]
if(u.length>0){var l=u.map((function(e){return gn.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:l})}var d=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,i):this.generateEnvelope(e,t,n,i)
return this.fireEnvelope(d)}},{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),a=r.length>0?this.addBreadcrumbsToEnvelope(o,r):o
return a}},{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(Jt(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=Zt(i.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(nn.UNKNOWN_EXECUTION_ERROR,i.id,c,u)}throw new Error(c)}return a.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Et(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()
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),nt.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return _t((t||this.currentContext||{pageKey:"unknown"}).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){var n="NavigationEvent"
this.previousAppContext=t.previousContext
var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n
return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,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=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&xt(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:r},n.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:i}}}]),e}()
function bn(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}function En(e){var t="unknown"
return 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,h=r.service,p=r.host,g=void 0===p?t:p,m=r.hash,v=void 0===m?t:m,y=r.path,b=void 0===y?t:y,E=r.query,_=void 0===E?t:E,T=r.serviceInstance,S=void 0===T?t:T,x=r.pageKey
return{eventBody:{appId:u,e:{m:o,s:c,t:a},l:d,service:h,serviceVersion:l,t:i,serviceInstance:S,o:g,h:v,p:b,q:_,pageKey:void 0===x?t:x},eventInfo:{appId:u,eventName:f,topicName:f}}}))}var _n,Tn,Sn=function(){function e(t,n){var r,i=this
m(this,e),b(this,"core",void 0),b(this,"protocol",void 0),b(this,"throttleKeySet",new Set),b(this,"config",void 0),b(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t
var o=this.core.host.api.location.protocol
this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},nt.on("internal:error",this.reportTransporterError)}return y(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=e.message,l=e.name,d=e.stack,f=void 0===d?"":d,h=e.fileName,p=void 0===h?"":h,g=e.lineNumber,m=void 0===g?0:g,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,_=b.appVersion,T=b.service,S=b.serviceInstance,x=b.treeID,C=void 0===x?"":x,A=b.api,w=A.Promise,I=A.location,R=I.host,k=I.pathname,O=I.search,M=I.hash,N=void 0===M?"":M
if(c){t={}
var P=new Map
Object.keys(c).forEach((function(e){P.set(e.toLowerCase(),c[e])})),t.callTreeId=P.get("x-li-uuid"),t.microsoftEdgeReference=P.get("x-msedge-ref"),t.pointOfPresenceId=P.get("x-li-pop"),t.fabric=P.get("x-li-fabric")}var D=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:m,m:u,s:f,t:l,u:p},h:N,l:n.protocol,o:R,p:k,pageKey:e.pageKey,q:O,service:T,serviceInstance:S,serviceVersion:_,t:r,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:a,responseTraceHeaders:t}}))}
if(this.config.throttleTime<0)return D()
var U=bn(l+u+f+r.join("")+a)
return this.throttleKeySet.has(U)?w.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),D())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),nt.off("internal:error",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"}(_n||(_n={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(Tn||(Tn={}))
var xn,Cn,An,wn,In,Rn,kn,On=(b(r={},"web-ui-framework","EMBER"),b(r,"app-id","linkedin.rum.tracking"),b(r,"app-version","unknown"),b(r,"is-single-page-app",!0),b(r,"user-timing-mark-enabled",!1),b(r,"user-timing-measure-enabled",!0),b(r,"beacon-source","apps"),b(r,"enable-rs-timing",!0),b(r,"enable-cdn-tracking",!1),b(r,"async-plugins-timeout",5e3),b(r,"beacon-timeout",3e4),b(r,"enable-memory-measurement",!1),b(r,"pageKeyPrefix",""),b(r,"enable-pem-tracking-3",!1),b(r,"enable-tracking-3",!1),r),Mn=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Nn={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"},Pn={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Dn="pageLoadId does not exist",Un="rum token passed is invalid",Ln=new RegExp(/batch-(\d+)$|enabled$/),jn=function(){function e(){m(this,e),b(this,"userTimingEntries",[]),b(this,"longTasks",[]),b(this,"resourceTimingEntries",[]),b(this,"cdnData",void 0)}return y(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(Bn),cdnData:this.cdnData}}}]),e}(),Fn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function Bn(e){return Fn.reduce((function(t,n){var r=e[n]
return void 0!==r&&(t[n]=r),t}),{})}function qn(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}
Rn=Object.assign(Object.assign({},n),t),kn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Rn.root,n)
var r=Hn(e,In.All,(function(){return Hn(e,In.Two,(function(){return Hn(e,In.One)}))}))
if(r){var i=Jn(Zn(r,e))
return i.length>0&&(r=i[0]),Kn(r)}throw new Error("Selector was not found.")}function Hn(e,t,n){for(var r=null,i=[],o=e,a=0,s=function(){var e=Qn(function(e){var t=e.getAttribute("id")
return t&&Rn.idName(t)?{name:"#"+or(t,{isIdentifier:!0}),penalty:0}:null}(o))||Qn.apply(void 0,f(function(e){return Array.from(e.attributes).filter((function(e){return Rn.attr(e.name,e.value)})).map((function(e){return{name:"["+or(e.name,{isIdentifier:!0})+'="'+or(e.value)+'"]',penalty:.5}}))}(o)))||Qn.apply(void 0,f(function(e){return Array.from(e.classList).filter(Rn.className).map((function(e){return{name:"."+or(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Qn(function(e){var t=e.tagName.toLowerCase()
return Rn.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===In.All)s&&(e=e.concat(e.filter(Xn).map((function(e){return Wn(e,s)}))))
else if(t===In.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Xn).map((function(e){return Wn(e,s)}))))
else if(t===In.One){var c=function(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)||h(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.")}()}(e=e.slice(0,1),1)[0]
s&&Xn(c)&&(e=[Wn(c,s)])}var u,l=d(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>=Rn.seedMinLength&&(r=Gn(i,n)))return"break"
o=o.parentElement,a++};o&&o!==Rn.root.parentElement&&"break"!==s(););return r||(r=Gn(i,n)),r}function Gn(e,t){var n=Jn($n(e))
if(n.length>Rn.threshold)return t?t():null
var r,i=d(n)
try{for(i.s();!(r=i.n()).done;){var o=r.value
if(zn(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function Kn(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 Vn(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function zn(e){switch(kn.querySelectorAll(Kn(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Kn(e)))
case 1:return!0
default:return!1}}function Wn(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Xn(e){return"html"!==e.name&&!e.name.startsWith("#")}function Qn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var r=t.filter(Yn)
return r.length>0?r:null}function Yn(e){return null!=e}function $n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,r=[],i=d(e[0])
try{for(i.s();!(n=i.n()).done;){var o=n.value
r=r.concat($n(e.slice(1,e.length),t.concat(o)))}}catch(e){i.e(e)}finally{i.f()}return r}return[t]}function Jn(e){return Array.from(e).sort((function(e,t){return Vn(e)-Vn(t)}))}function Zn(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>Rn.optimizedMinLength)for(var i=1;i<e.length-1;i++){if(n.counter>Rn.maxNumberOfTries)return r
n.counter+=1
var o=f(e)
o.splice(i,1)
var a=Kn(o)
if(n.visited.has(a))return r
zn(o)&&er(o,t)&&(r.push(o),n.visited.set(a,!0),r=r.concat(Zn(o,t,n)))}return r}function er(e,t){return kn.querySelector(Kn(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"}(xn||(xn={})),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"}(Cn||(Cn={})),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"}(An||(An={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(wn||(wn={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(In||(In={}))
var tr=/[ -,\.\/:-@\[-\^`\{-~]/,nr=/[ -,\.\/:-@\[\]\^`\{-~]/,rr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ir={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},ir),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?tr.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&&nr.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(rr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+a+r:a}var ar,sr=[{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 cr(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 ur(e){var t=e||performance
return Math.round(t.now())}function lr(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return qn(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=lr(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function dr(e,t,n,r){var i=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
i.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==r||r({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
i.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==r||r({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),i}function fr(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var hr,pr,gr=function(){function e(t){m(this,e),b(this,"hostApis",void 0),b(this,"hostnameProperties",void 0),b(this,"usedHostnames",void 0),b(this,"abortController",void 0),b(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 y(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return Mt(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=Ot(Mt(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,(ar=ar||r.createElement("a")).href=n,ar.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}(),mr=["DEPTH_BITS","webgl green bits","webgl max anisotropy","EXT_texture_filter_anisotropic","getExtension","WEBKIT_EXT_texture_filter_anisotropic","MAX_TEXTURE_MAX_ANISOTROPY_EXT","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture image units","webgl max texture size","MAX_TEXTURE_SIZE","webgl max varying vectors","MAX_VARYING_VECTORS","webgl max vertex attribs","MAX_VERTEX_ATTRIBS","webgl max vertex texture image units","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","webgl max viewport dims","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","SHADING_LANGUAGE_VERSION","webgl stencil bits","STENCIL_BITS","VENDOR","webgl version","webgl unmasked vendor","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","MEDIUM","precision","rangeMin","rangeMax","precision ","toLowerCase"," shader ","innerHTML","&nbsp;","className","adsbox","getElementsByClassName","languages","substr","windows phone","Windows Phone","win","Windows","android","linux","Linux","ipad","mac","Other","Android","iOS","pike","ipod","iphone","Mac","firefox","opera","opr","chrome","safari","Safari","Internet Explorer","toSource","getContext","WebGLRenderingContext","Microsoft Internet Explorer","swfobject","hasFlashPlayerVersion","9.0.0","addFlashDivNode","setAttribute","swfContainerId","___fp_swf_loaded","embedSWF","false","experimental-webgl","components","tsSeed","location","javascripts","productKey","productSub","cpuClassKey","oscpu","deviceMemory","vendor","doNotTrackKey","colorDepthKey","pixelRatioKey","screenResolution","screenOrientation","availableScreenResolution","sessionStorageKey","indexedDb","canvasKey","signals","touchSupport","networkInfo","battery","automation","mimetyps","jsFontsKey","getFeatures","Options not provided","excludes","key","alias","getData","shouldEnforceDataLimit","dataLimit","number","stringify","errors"," was found to be:","data","acq_time","latency","allFeatures","allFeaturesCollectionAt","requestIdleCallback","querySelector","nodeValue","parentNode","parse","cookie","bcookie","encode","btoa","fromCharCode","apply","importPk","atob","str2ab","importKey","SHA-256","wrap","spki","crypto","subtle","wrapKey","RSA-OAEP","wrapErrorResult","string","getRandomValues","AES-CBC","generateKey","decrypt","error","resolve","encryptWithKeyIds","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","encryptWithKey","encryptWithKeyFromDifferentSources","publicKeyVersion","publicKey","uuidv4","generateSha256HashOrDefault","digest","from","DNA","HUMAN","DFP_WEB","apfcDf","flash/compiled/FontList.swf","https://ponf.linkedin.com/pixel/tracking.png","/platform-telemetry/li/apfcDf","n/a","excluded","enabled","globalIntegration","complete","readyState","checkConfigAndInitializeThirdPartyIntegration","addEventListener","setting-headline","useRequestIdleCallBack","initialize","settings-iframe","load","checkConfigAndInitializeGlobalIntegration","initializeHumanIntegration","dfpIntegrationEnabled","apfcDfPK","triggerApfc","reentry","placePonfBeacon","reqid","pageInstance","isProd","fullFeatureCollection","apfcDfPKV","https://www.linkedin.com","https://www.linkedin-ei.com","setRequestHeader","Content-Type","application/json","send","telemetryCollectPath","intializeGlobalIntegration","intializeDfpIntegration","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","https://merchantpool1.linkedin.com/mdt.js?session_id=","script","src","dfpIframeScript","dfp","doFpt","head","Invalid session_id: ","treeId","PXdOjV695v","https://li.protechts.net/index.html?ts=","&r_id=","&app_id=","&d_id=","iframe","humanThirdPartyIframe","allow-same-origin allow-scripts","scraping","reentryGlobalIntegration",".linkedin.com","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","parseFromString","text/html","class","ponfUrl","protocol","searchParams","get","getElementById","charAt","substring","bc_context",".linkedin-ei.com","img","undefined","x64Multiply","x64LeftShift","x64Fmix","x64Xor","x64hash128","length","charCodeAt","x64Rotl","x64Add","00000000","toString","slice","each","forEach","prototype","hasOwnProperty","map","getIPs","RTCPeerConnection","mozRTCPeerConnection","msRTCPeerConnection","stun:stun.l.google.com:19302","exec","sdp","a=candidate:","indexOf","c=IN","keys","onicecandidate","candidate","iceGatheringState","createDataChannel","createOffer","setLocalDescription","automationKey","getHasLiedBrowser","undetected, fake browser","getBrowserNameAndVersion","split","Chrome","webdriver","Firefox","getAttribute","_Selenium_IDE_Recorder","Selenium","callPhantom","_phantom","NOT_AVAILABLE","webRtcKey","message","enumerateDevicesKey","mediaDevices","enumerateDevices","gid","groupId","kind","label","isEnumerateDevicesSupported","audioKey","audio","excludeIOS11","match","EXCLUDED","webkitOfflineAudioContext","createOscillator","type","triangle","frequency","setValueAtTime","currentTime","createDynamicsCompressor","threshold","knee","ratio","reduction","attack","function","connect","destination","start","startRendering","audioTimeout","timeout","oncomplete","renderedBuffer","getChannelData","reduce","disconnect","UserAgent","userAgent","languageKey","language","browserLanguage","systemLanguage","screen","colorDepth","deviceMemoryKey"," GB","pixelDepthKey","pixelDepth","screenResolutionKey","getScreenResolution","screenOrientationKey","detectScreenOrientation","Enabled","orientation","Orientation","msOrientation","mozOrientation","width","height","availableScreenResolutionKey","getAvailableScreenResolution","availWidth","availHeight","timezoneOffset","getTimezoneOffset","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","hasSessionStorage","localStorageKey","indexedDbKey","hasIndexedDB","addBehaviorKey","body","addBehavior","openDatabase","getNavigatorCpuClass","oscpuKey","appNameKey","appName","appVersionKey","appVersion","appCodeNameKey","appCodeName","seedKey","now","platformKey","getNavigatorPlatform","product","productSubKey","vendorKey","vendorSubKey","vendorSub","getDoNotTrack","incognitoKey","RequestFileSystem","webkitRequestFileSystem","TEMPORARY","storage","estimate","localStorage","test","removeItem","open","onerror","onsuccess","EDGE","indexedDB","PointerEvent","MSPointerEvent","IE ","join","replace","OPR","Opera","splice","isCanvasSupported","getCanvasFp","webglKey","isWebGlSupported","getWebglFp","javascriptsKey","scripts","locationKey","hash","host","hostname","href","origin","pathname","port","signalsKey","getSignals","getAdBlock","getHasLiedLanguages","getHasLiedResolution","getHasLiedOs","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","swfPath","loadSwfAndDetectFonts","missing options.fonts.swfPath","monospace","sans-serif","serif","Andale Mono","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 MS","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Lucida Calligraphy","Lucida Console","Lucida Fax","Lucida Handwriting","Lucida Sans Typewriter","Lucida Sans Unicode","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Sans Serif","MS Serif","Palatino","Palatino Linotype","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","concat","extendedJsFonts","userDefinedFonts","filter","getElementsByTagName","createElement","div","span","style","position","absolute","left","-9999px","fontSize","72px","fontStyle","normal","fontWeight","lineBreak","auto","lineHeight","textTransform","none","textShadow","whiteSpace","wordBreak","wordSpacing","mmmmmmmmmmlli","fontFamily","offsetWidth","offsetHeight","appendChild","push","removeChild","fontsHash","mimetypesComponent","mimeTypes","suffixes","description","pluginsComponent","isIE","plugins","excludeIE","getIEPlugins","getRegularPlugins","pluginsShouldBeSorted","sort","name","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","Skype.Detection","TDCCtl.TDCCtl","ERROR","batteryKey","getBattery","then","level","charging","chargingTime","dischargingTime","networkInfoKey","connection","downlink","downlinkMax","effectiveType","rtt","saveData","touchSupportKey","getTouchSupport","hardwareConcurrencyKey","getHardwareConcurrency","sessionStorage","hasLocalStorage","hardwareConcurrency","cpuClass","platform","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","ontouchstart","canvas","display","inline","rect","canvasWinding","isPointInPath","evenodd","alphabetic","fillStyle","dontUseFakeFontInCanvas","font","11pt Arial","fillText","rgba(102, 204, 0, 0.2)","18pt Arial","Cwm fjordbank glyphs vext quiz, 😃","globalCompositeOperation","multiply","rgb(255,0,255)","beginPath","arc","closePath","rgb(0,255,255)","fill","toDataURL","canvasHash","clearColor","enable","DEPTH_TEST","depthFunc","LEQUAL","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","getWebglCanvas","createBuffer","ARRAY_BUFFER","bufferData","itemSize","numItems","createProgram","VERTEX_SHADER","shaderSource","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","createShader","FRAGMENT_SHADER","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","compileShader","attachShader","linkProgram","vertexPosAttrib","getAttribLocation","attrVertex","offsetUniform","vertexAttribPointer","FLOAT","uniform2f","drawArrays","TRIANGLE_STRIP","webglHash","webgl","hashOnly","vendorAndRenderer","getWebglVendorAndRenderer","webgl aliased line width range","getParameter","ALIASED_LINE_WIDTH_RANGE","webgl aliased point size range","ALPHA_BITS","getContextAttributes","yes","BLUE_BITS","webgl depth bits"]
hr=mr,pr=260,function(e){for(;--e;)hr.push(hr.shift())}(++pr)
var vr=function(e,t){return mr[e-=0]}
!function(){var e=function(e,t,n,r){function i(){m(this,i)}return y(i,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:vr("0x0"),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:vr("0x1"),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:vr("0x2"),value:function(e){return e=i[vr("0x3")](e,[0,e[0]>>>1]),e=i.x64Multiply(e,[4283543511,3981806797]),e=i.x64Xor(e,[0,e[0]>>>1]),e=i[vr("0x0")](e,[3301882366,444984403]),i.x64Xor(e,[0,e[0]>>>1])}},{key:vr("0x4"),value:function(e,t){t=t||0
var n,r=(e=e||"")[vr("0x5")]%16,o=e.length-r,a=[0,t],s=[0,t],c=[0,0],u=[0,0],l=[2277735313,289559509],d=[1291169091,658871167]
for(n=0;n<o;n+=16)c=[255&e.charCodeAt(n+4)|(255&e[vr("0x6")](n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e[vr("0x6")](n+7))<<24,255&e[vr("0x6")](n)|(255&e.charCodeAt(n+1))<<8|(255&e[vr("0x6")](n+2))<<16|(255&e[vr("0x6")](n+3))<<24],u=[255&e[vr("0x6")](n+12)|(255&e[vr("0x6")](n+13))<<8|(255&e[vr("0x6")](n+14))<<16|(255&e[vr("0x6")](n+15))<<24,255&e[vr("0x6")](n+8)|(255&e.charCodeAt(n+9))<<8|(255&e[vr("0x6")](n+10))<<16|(255&e[vr("0x6")](n+11))<<24],c=i.x64Multiply(c,l),c=i[vr("0x7")](c,31),c=i[vr("0x0")](c,d),a=i[vr("0x3")](a,c),a=i[vr("0x7")](a,27),a=i[vr("0x8")](a,s),a=i.x64Add(i[vr("0x0")](a,[0,5]),[0,1390208809]),u=i[vr("0x0")](u,d),u=i.x64Rotl(u,33),u=i[vr("0x0")](u,l),s=i[vr("0x3")](s,u),s=i.x64Rotl(s,31),s=i[vr("0x8")](s,a),s=i.x64Add(i[vr("0x0")](s,[0,5]),[0,944331445])
switch(c=[0,0],u=[0,0],r){case 15:u=i[vr("0x3")](u,i[vr("0x1")]([0,e[vr("0x6")](n+14)],48))
case 14:u=i.x64Xor(u,i.x64LeftShift([0,e.charCodeAt(n+13)],40))
case 13:u=i[vr("0x3")](u,i[vr("0x1")]([0,e[vr("0x6")](n+12)],32))
case 12:u=i[vr("0x3")](u,i.x64LeftShift([0,e.charCodeAt(n+11)],24))
case 11:u=i.x64Xor(u,i[vr("0x1")]([0,e.charCodeAt(n+10)],16))
case 10:u=i[vr("0x3")](u,i[vr("0x1")]([0,e[vr("0x6")](n+9)],8))
case 9:u=i[vr("0x3")](u,[0,e.charCodeAt(n+8)]),u=i[vr("0x0")](u,d),u=i[vr("0x7")](u,33),u=i.x64Multiply(u,l),s=i[vr("0x3")](s,u)
case 8:c=i[vr("0x3")](c,i[vr("0x1")]([0,e[vr("0x6")](n+7)],56))
case 7:c=i[vr("0x3")](c,i[vr("0x1")]([0,e[vr("0x6")](n+6)],48))
case 6:c=i[vr("0x3")](c,i[vr("0x1")]([0,e[vr("0x6")](n+5)],40))
case 5:c=i.x64Xor(c,i[vr("0x1")]([0,e[vr("0x6")](n+4)],32))
case 4:c=i[vr("0x3")](c,i[vr("0x1")]([0,e[vr("0x6")](n+3)],24))
case 3:c=i.x64Xor(c,i.x64LeftShift([0,e[vr("0x6")](n+2)],16))
case 2:c=i[vr("0x3")](c,i[vr("0x1")]([0,e.charCodeAt(n+1)],8))
case 1:c=i[vr("0x3")](c,[0,e[vr("0x6")](n)]),c=i[vr("0x0")](c,l),c=i.x64Rotl(c,31),c=i[vr("0x0")](c,d),a=i[vr("0x3")](a,c)}return a=i[vr("0x3")](a,[0,e[vr("0x5")]]),s=i[vr("0x3")](s,[0,e[vr("0x5")]]),a=i.x64Add(a,s),s=i[vr("0x8")](s,a),a=i[vr("0x2")](a),s=i[vr("0x2")](s),a=i[vr("0x8")](a,s),s=i[vr("0x8")](s,a),(vr("0x9")+(a[0]>>>0)[vr("0xa")](16))[vr("0xb")](-8)+(vr("0x9")+(a[1]>>>0)[vr("0xa")](16))[vr("0xb")](-8)+("00000000"+(s[0]>>>0)[vr("0xa")](16))[vr("0xb")](-8)+(vr("0x9")+(s[1]>>>0)[vr("0xa")](16))[vr("0xb")](-8)}}]),i}(),t=function(t,n,r,i,o,a,s,c,u,l,d,f,h,p,v,b,E,_,T,S,x,C,A,w,I,R,k,O,M,N,P,D,U,L,j,F,B,q,H,G,K,V,z,W,X,Q,Y,$,J,Z,ee,te,ne,re,ie,oe,ae,se,ce,ue,le,de,fe,he,pe,ge,me,ve,ye){function be(){m(this,be),this[vr("0x1fe")]=[{key:"webrtc",getData:be[vr("0x30")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:vr("0x34"),getData:be[vr("0x32")],shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:be[vr("0x84")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x1ff"),getData:be[vr("0x8a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x87"),getData:be[vr("0x86")],shouldEnforceDataLimit:!0,dataLimit:300},{key:vr("0x89"),getData:be[vr("0x88")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x200"),getData:be.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:vr("0x201"),getData:be[vr("0xaf")],shouldEnforceDataLimit:!0,dataLimit:2200},{key:vr("0x151"),getData:be[vr("0x8c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x8e"),getData:be[vr("0x202")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x203"),getData:be[vr("0x8f")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x150"),getData:be[vr("0x204")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x205"),getData:be[vr("0x83")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x14f"),getData:be[vr("0x14b")],alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x206"),getData:be[vr("0x60")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x207"),getData:be[vr("0x90")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x92"),getData:be.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:be[vr("0x5a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x73"),getData:be.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x75"),getData:be[vr("0x75")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:be[vr("0x58")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:vr("0x28"),getData:be[vr("0x28")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x152"),getData:be[vr("0x208")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:be[vr("0x94")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x5f"),getData:be[vr("0x209")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:be[vr("0x62")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:be[vr("0x20a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x20b"),getData:be[vr("0x64")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x20c"),getData:be.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x20d"),getData:be.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x14d"),getData:be[vr("0x20e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x9a"),getData:be[vr("0x7b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x20f"),getData:be[vr("0x7c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x80"),getData:be[vr("0x7e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x81"),getData:be.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x158"),getData:be[vr("0x210")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x193"),getData:be.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:vr("0x211"),getData:be[vr("0xb9")],shouldEnforceDataLimit:!0,dataLimit:150},{key:vr("0x212"),getData:be[vr("0x149")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x213"),getData:be[vr("0x142")],shouldEnforceDataLimit:!0,dataLimit:150},{key:vr("0x214"),getData:be.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x3b"),getData:be[vr("0x3a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x215"),getData:be[vr("0x22")],shouldEnforceDataLimit:!0,dataLimit:100},{key:vr("0x123"),getData:be[vr("0x121")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:vr("0x216"),getData:be[vr("0x11d")],shouldEnforceDataLimit:!0,dataLimit:27e3},{key:vr("0xc2"),getData:be[vr("0x217")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:be[vr("0xbf")],shouldEnforceDataLimit:!0,dataLimit:100}]}return y(be,[{key:vr("0x218"),value:function(e,t){if(vr("0x4c")==g(e)){if(!t)return e({error:vr("0x219")})
var n={data:{latency:{acq_time:{}},errors:{}}},r=Date[vr("0x8b")](),i={},o=0,a=0
this.components[vr("0xd")]((function(s){if(!t[vr("0x21a")][s[vr("0x21b")]]){var c=s[vr("0x21b")]
void 0!==s[vr("0x21c")]&&null!==s.alias&&s[vr("0x21c")][vr("0x5")]>0&&(c=s[vr("0x21c")]),o++
var u=function(){i[c]=Date.now()
try{s[vr("0x21d")]((function(t){if(!1!==s[vr("0x21e")]){var u=s[vr("0xf")](vr("0x21f"))&&vr("0x220")==g(s.dataLimit)?s[vr("0x21f")]:1e3,l=JSON[vr("0x221")](t)[vr("0x5")]
l>u&&(n.data[vr("0x222")][c]="Exceeded current data limit:"+u+" Data length for:"+c+vr("0x223")+l,t={})}n[vr("0x224")][c]=t,n[vr("0x224")].latency[vr("0x225")][c]=Date.now()-i[c],++a>=o&&(n[vr("0x224")][vr("0x226")][vr("0x225")][vr("0x227")]=Date[vr("0x8b")]()-r,n[vr("0x224")][vr("0x228")]=Date[vr("0x8b")](),e(n.data,!0))}),t)}catch(e){n[vr("0x224")].errors[c]=String(e)}}
vr("0x4c")==g(window[vr("0x229")])&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(u):u()}})),n[vr("0x224")][vr("0x226")][vr("0x225")][vr("0x227")]=Date[vr("0x8b")]()-r,e(n[vr("0x224")],!1)}}}],[{key:t,value:function(e,t){if(Array.prototype[vr("0xd")]&&e.forEach===Array[vr("0xe")][vr("0xd")])e[vr("0xd")](t)
else if(e.length===+e[vr("0x5")])for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)
else for(var i in e)e[vr("0xf")](i)&&t(e[i],i,e)}},{key:n,value:function(e,t){var n=[]
return null==e?n:Array.prototype[vr("0x10")]&&e[vr("0x10")]===Array[vr("0xe")].map?e.map(t):(be[vr("0xc")](e,(function(e,r,i){n.push(t(e,r,i))})),n)}},{key:r,value:function(e,t){var n={},r=new(window[vr("0x12")]||window.webkitRTCPeerConnection||window[vr("0x13")]||window[vr("0x14")])({iceServers:[{urls:vr("0x15")}]},{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})/[vr("0x16")](e)[1]
n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0
var e=r.localDescription
null!==e&&e[vr("0x17")].split("\n")[vr("0xd")]((function(e){0!==e.indexOf(vr("0x18"))&&0!==e[vr("0x19")](vr("0x1a"))||i(e)})),t(Object[vr("0x1b")](n))}}
r[vr("0x1c")]=function(e){e[vr("0x1d")]&&i(e[vr("0x1d")].candidate)},r.onicegatheringstatechange=function(e){"complete"===r[vr("0x1e")]&&a()},r[vr("0x1f")]("bl")
try{r[vr("0x20")]().then((function(e){r.setLocalDescription(e)}))}catch(e){r[vr("0x20")]((function(e){r[vr("0x21")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:i,value:function(e,t){if(be[vr("0x23")]())e(vr("0x24"))
else{var n=be[vr("0x25")]()[vr("0x26")](" ")[0]
vr("0x27")!==n||!0!==navigator[vr("0x28")]?vr("0x29")===n&&window.document.documentElement[vr("0x2a")]("webdriver")||vr("0x2b")in window||"__webdriver_script_fn"in document?e(vr("0x2c")):window[vr("0x2d")]||window[vr("0x2e")]?e("PhantomJS"):e(t[vr("0x2f")]):e(vr("0x2c"))}}},{key:o,value:function(e,t){try{be[vr("0x11")](t,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t[vr("0x31")]}})}}},{key:a,value:function(e,t){if(!be.isEnumerateDevicesSupported())return e(t.NOT_AVAILABLE)
navigator[vr("0x33")][vr("0x34")]().then((function(t){e(t[vr("0x10")]((function(e){var t={}
return t.id=e.deviceId,t[vr("0x35")]=e[vr("0x36")],t[vr("0x37")]=e[vr("0x37")],t[vr("0x38")]=e.label,t})))})).catch((function(t){e(t)}))}},{key:s,value:function(){return navigator[vr("0x33")]&&navigator[vr("0x33")][vr("0x34")]}},{key:c,value:function(e,t){var n=t[vr("0x3b")]
if(n[vr("0x3c")]&&navigator.userAgent[vr("0x3d")](/OS 11.+Version\/11.+Safari/))return e(t[vr("0x3e")])
var r=window.OfflineAudioContext||window[vr("0x3f")]
if(null==r)return e(t.NOT_AVAILABLE)
var i=new r(1,44100,44100),o=i[vr("0x40")]()
o[vr("0x41")]=vr("0x42"),o[vr("0x43")][vr("0x44")](1e4,i[vr("0x45")])
var a=i[vr("0x46")]()
be[vr("0xc")]([[vr("0x47"),-50],[vr("0x48"),40],[vr("0x49"),12],[vr("0x4a"),-20],[vr("0x4b"),0],["release",.25]],(function(e){void 0!==a[e[0]]&&vr("0x4c")==g(a[e[0]][vr("0x44")])&&a[e[0]][vr("0x44")](e[1],i[vr("0x45")])})),o[vr("0x4d")](a),a.connect(i[vr("0x4e")]),o[vr("0x4f")](0),i[vr("0x50")]()
var s=setTimeout((function(){return i.oncomplete=function(){},i=null,e(vr("0x51"))}),n[vr("0x52")])
i[vr("0x53")]=function(t){var n
try{clearTimeout(s),n=t[vr("0x54")][vr("0x55")](0)[vr("0xb")](4500,5e3)[vr("0x56")]((function(e,t){return e+Math.abs(t)}),0)[vr("0xa")](),o.disconnect(),a[vr("0x57")]()}catch(t){return void e(t)}e(n)}}},{key:u,value:function(e){e(navigator[vr("0x59")])}},{key:l,value:function(e,t){e(void 0===navigator[vr("0x28")]||null===navigator.webdriver?t[vr("0x2f")]:navigator[vr("0x28")])}},{key:d,value:function(e,t){e(navigator[vr("0x5b")]||navigator.userLanguage||navigator[vr("0x5c")]||navigator[vr("0x5d")]||t[vr("0x2f")])}},{key:"colorDepthKey",value:function(e,t){e(window[vr("0x5e")][vr("0x5f")]||t[vr("0x2f")])}},{key:f,value:function(e,t){var n=navigator.deviceMemory||t[vr("0x2f")]
n!==t[vr("0x2f")]&&(n+=vr("0x61")),e(n)}},{key:h,value:function(e,t){e(window[vr("0x5e")][vr("0x63")]||t[vr("0x2f")])}},{key:"pixelRatioKey",value:function(e,t){e(window.devicePixelRatio||t[vr("0x2f")])}},{key:p,value:function(e,t){e(be[vr("0x65")](t))}},{key:v,value:function(e,t){if(t[vr("0x5e")][vr("0x67")]){var n={}
n[vr("0x68")]=void 0!==screen[vr("0x69")],n[vr("0x6a")]=screen[vr("0x6b")]||screen[vr("0x6c")]||(screen[vr("0x69")]||{})[vr("0x41")],e(n)}else e(t[vr("0x3e")])}},{key:b,value:function(){return{w:window.screen[vr("0x6d")],h:window.screen[vr("0x6e")]}}},{key:E,value:function(e,t){e(be[vr("0x70")](t))}},{key:_,value:function(e){return window[vr("0x5e")][vr("0x71")]&&window.screen[vr("0x72")]?{w:window[vr("0x5e")][vr("0x71")],h:window[vr("0x5e")].availHeight}:e[vr("0x2f")]}},{key:T,value:function(e){e((new Date)[vr("0x74")]()/60)}},{key:S,value:function(e,t){window[vr("0x76")]&&window[vr("0x76")][vr("0x77")]?e((new(window[vr("0x76")][vr("0x77")]))[vr("0x78")]()[vr("0x79")]):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,t){e(be[vr("0x7a")](t))}},{key:x,value:function(e,t){e(be.hasLocalStorage(t))}},{key:C,value:function(e,t){e(be[vr("0x7d")](t))}},{key:A,value:function(e){e(!(!document.body||!document[vr("0x7f")][vr("0x80")]))}},{key:"openDatabaseKey",value:function(e){e(!!window[vr("0x81")])}},{key:"cpuClassKey",value:function(e,t){e(be[vr("0x82")](t))}},{key:w,value:function(e,t){e(navigator.oscpu||t[vr("0x2f")])}},{key:I,value:function(e,t){e(navigator[vr("0x85")]||t[vr("0x2f")])}},{key:R,value:function(e,t){e(navigator[vr("0x87")]||t.NOT_AVAILABLE)}},{key:k,value:function(e,t){e(navigator[vr("0x89")]||t[vr("0x2f")])}},{key:O,value:function(e,t){e(Date[vr("0x8b")]())}},{key:M,value:function(e,t){e(be[vr("0x8d")](t))}},{key:"productKey",value:function(e,t){e(navigator[vr("0x8e")]||t[vr("0x2f")])}},{key:N,value:function(e,t){e(navigator.productSub||t[vr("0x2f")])}},{key:P,value:function(e,t){e(navigator.vendor||t[vr("0x2f")])}},{key:D,value:function(e,t){e(navigator[vr("0x92")]||t.NOT_AVAILABLE)}},{key:"doNotTrackKey",value:function(e,t){e(be[vr("0x93")](t))}},{key:U,value:function(e,t){var n=be[vr("0x25")]()[vr("0x26")](" "),r=n[0],i=n[1],o=t.NOT_AVAILABLE
if(vr("0x27")===r)if(parseInt(i)<=74){var a=window[vr("0x95")]||window[vr("0x96")]
a?a(window[vr("0x97")],100,(function(t){e(!1)}),(function(t){e(!0)})):e(o)}else vr("0x98")in navigator&&vr("0x99")in navigator[vr("0x98")]?navigator[vr("0x98")].estimate().then((function(t){var n=t.quota
e(o=n<125829120)})):e(o)
else if("Safari"===r){if(o=!1,window.safariIncognito)o=!0
else{try{window[vr("0x81")](null,null,null,null)}catch(e){o=!0}try{window[vr("0x9a")].setItem(vr("0x9b"),1)}catch(e){o=!0}}void 0===o&&(o=!1,window.localStorage[vr("0x9c")](vr("0x9b"))),e(o)}else if(vr("0x29")===r){var s=indexedDB[vr("0x9d")]("test")
s[vr("0x9e")]=function(){e(!0)},s[vr("0x9f")]=function(){e(!1)}}else e("IE"===r||vr("0xa0")===r?!window[vr("0xa1")]&&(window[vr("0xa2")]||window[vr("0xa3")]):o)}},{key:L,value:function(){var e,t=navigator[vr("0x59")],n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i[vr("0x9b")](n[1])?(e=/\brv[ :]+(\d+)/g[vr("0x16")](t)||[],vr("0xa4")+(e[1]||"")):"Chrome"===n[1]&&null!=(e=t[vr("0x3d")](/\b(OPR|Edge)\/(\d+)/))?e[vr("0xb")](1)[vr("0xa5")](" ")[vr("0xa6")](vr("0xa7"),vr("0xa8")):(n=n[2]?[n[1],n[2]]:[navigator[vr("0x85")],navigator[vr("0x87")],"-?"],null!=(e=t[vr("0x3d")](/version\/(\d+)/i))&&n[vr("0xa9")](1,1,e[1]),n[vr("0xa5")](" "))}},{key:"canvasKey",value:function(e,t){be[vr("0xaa")]()?e(be[vr("0xab")](t)):e(t[vr("0x2f")])}},{key:j,value:function(e,t){be[vr("0xad")]()?e(be[vr("0xae")](t)):e(t.NOT_AVAILABLE)}},{key:F,value:function(e,t){if(void 0===document[vr("0xb0")]||null===document.scripts)return e(t[vr("0x2f")])
e([])}},{key:B,value:function(e,t){e({hash:location[vr("0xb2")]||t[vr("0x2f")],host:location[vr("0xb3")]||t[vr("0x2f")],hostname:location[vr("0xb4")]||t[vr("0x2f")],href:location[vr("0xb5")]||t[vr("0x2f")],origin:location[vr("0xb6")]||t[vr("0x2f")],pathname:location[vr("0xb7")]||t[vr("0x2f")],port:location[vr("0xb8")]||t[vr("0x2f")],protocol:location.protocol||t.NOT_AVAILABLE})}},{key:q,value:function(e){e(be.getSignals())}},{key:H,value:function(){var e={adBlockInstalled:function(){return be[vr("0xbb")]()},liedLanguages:function(){return be[vr("0xbc")]()},liedResolution:function(){return be[vr("0xbd")]()},liedOS:function(){return be[vr("0xbe")]()},liedBrowser:function(){return be.getHasLiedBrowser()}},t={}
for(var n in e)if(e.hasOwnProperty(n)){var r=e[n]
t[n]=r(n)}return t}},{key:G,value:function(e,t){return be[vr("0xc0")]()?be[vr("0xc1")]()?t[vr("0xc2")][vr("0xc3")]?void be[vr("0xc4")]((function(t){e(t)}),t):e(vr("0xc5")):e("flash not installed"):e("swf object not loaded")}},{key:"jsFontsKey",value:function(t,n){var r=[vr("0xc6"),vr("0xc7"),vr("0xc8")],i=[vr("0xc9"),"Arial",vr("0xca"),vr("0xcb"),vr("0xcc"),vr("0xcd"),vr("0xce"),vr("0xcf"),vr("0xd0"),vr("0xd1"),vr("0xd2"),vr("0xd3"),vr("0xd4"),vr("0xd5"),vr("0xd6"),vr("0xd7"),vr("0xd8"),"Comic Sans",vr("0xd9"),"Consolas",vr("0xda"),vr("0xdb"),vr("0xdc"),vr("0xdd"),vr("0xde"),vr("0xdf"),"Impact","Lucida Bright",vr("0xe0"),vr("0xe1"),vr("0xe2"),"LUCIDA GRANDE",vr("0xe3"),"Lucida Sans",vr("0xe4"),vr("0xe5"),"Microsoft Sans Serif","Monaco",vr("0xe6"),vr("0xe7"),vr("0xe8"),vr("0xe9"),"MS Reference Sans Serif",vr("0xea"),vr("0xeb"),"MYRIAD","MYRIAD PRO",vr("0xec"),vr("0xed"),"Segoe Print",vr("0xee"),"Segoe UI",vr("0xef"),vr("0xf0"),vr("0xf1"),vr("0xf2"),vr("0xf3"),vr("0xf4"),vr("0xf5"),vr("0xf6"),vr("0xf7"),vr("0xf8"),vr("0xf9"),"Wingdings 3"]
void 0!==n[vr("0xc2")]&&void 0!==n[vr("0xc2")].extendedJsFonts&&(i=i[vr("0xfa")](n[vr("0xc2")][vr("0xfb")])),void 0!==n[vr("0xc2")]&&void 0!==n[vr("0xc2")][vr("0xfc")]&&(i=i[vr("0xfa")](n.fonts[vr("0xfc")])),i=i[vr("0xfd")]((function(e,t){return i.indexOf(e)===t}))
var o=document[vr("0xfe")]("body")[0],a=document[vr("0xff")](vr("0x100")),s=document[vr("0xff")]("div"),c={},u={},l=function(){var e=document.createElement(vr("0x101"))
return e[vr("0x102")][vr("0x103")]=vr("0x104"),e.style[vr("0x105")]=vr("0x106"),e[vr("0x102")][vr("0x107")]=vr("0x108"),e.style[vr("0x109")]=vr("0x10a"),e[vr("0x102")][vr("0x10b")]=vr("0x10a"),e[vr("0x102")].letterSpacing="normal",e[vr("0x102")][vr("0x10c")]=vr("0x10d"),e[vr("0x102")][vr("0x10e")]=vr("0x10a"),e.style[vr("0x10f")]=vr("0x110"),e[vr("0x102")].textAlign=vr("0x105"),e[vr("0x102")].textDecoration="none",e.style[vr("0x111")]=vr("0x110"),e.style[vr("0x112")]=vr("0x10a"),e[vr("0x102")][vr("0x113")]=vr("0x10a"),e.style[vr("0x114")]=vr("0x10a"),e.textContent=vr("0x115"),e},d=function(e,t){var n=l()
return n[vr("0x102")][vr("0x116")]="'"+e+"',"+t,n},f=function(e){for(var t=!1,n=0;n<r[vr("0x5")];n++)if(t=e[n][vr("0x117")]!==c[r[n]]||e[n][vr("0x118")]!==u[r[n]])return t
return t},h=function(){for(var e=[],t=0,n=r[vr("0x5")];t<n;t++){var i=l()
i[vr("0x102")][vr("0x116")]=r[t],a[vr("0x119")](i),e.push(i)}return e}()
o[vr("0x119")](a)
for(var p=0,g=r[vr("0x5")];p<g;p++)c[r[p]]=h[p][vr("0x117")],u[r[p]]=h[p].offsetHeight
var m=function(){for(var e={},t=0,n=i[vr("0x5")];t<n;t++){for(var o=[],a=0,c=r[vr("0x5")];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 v=[],y=0,b=i[vr("0x5")];y<b;y++)f(m[i[y]])&&v[vr("0x11a")](i[y])
o[vr("0x11b")](s),o[vr("0x11b")](a)
var E={}
E[vr("0x11c")]=e[vr("0x4")](v[vr("0xa5")](),23),n[vr("0xc2")].hashOnly||(E.lists=v),t(E)}},{key:K,value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator[vr("0x11e")]){for(var n=navigator[vr("0x11e")],r=[],i=0;i<n[vr("0x5")];i++){var o={}
o[vr("0x41")]=n[i][vr("0x41")],o[vr("0x11f")]=n[i][vr("0x11f")],o[vr("0x120")]=n[i][vr("0x120")],r.push(o)}e(r)}else e(t.NOT_AVAILABLE)}},{key:V,value:function(e,t){be[vr("0x122")]()?t[vr("0x123")][vr("0x124")]?e(t[vr("0x3e")]):e(be[vr("0x125")](t)):e(be[vr("0x126")](t))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator[vr("0x123")]||null===navigator[vr("0x123")])return e.NOT_AVAILABLE
for(var t=[],n=0,r=navigator[vr("0x123")][vr("0x5")];n<r;n++)navigator[vr("0x123")][n]&&t[vr("0x11a")](navigator.plugins[n])
return t[vr("0x5")]>0&&be[vr("0x127")](e)&&(t=t[vr("0x128")]((function(e,t){return e[vr("0x129")]>t[vr("0x129")]?1:e[vr("0x129")]<t[vr("0x129")]?-1:0}))),be[vr("0x10")](t,(function(e){var t=be[vr("0x10")](e,(function(e){return[e[vr("0x41")],e[vr("0x11f")]]}))
return[e.name,e[vr("0x120")],t]}))}},{key:z,value:function(e){var t=[]
if(Object[vr("0x12a")]&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||vr("0x12b")in window){var n=[vr("0x12c"),vr("0x12d"),"AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1",vr("0x12e"),vr("0x12f"),"Msxml2.XMLHTTP",vr("0x130"),vr("0x131"),vr("0x132"),vr("0x133"),vr("0x134"),"RealVideo.RealVideo(tm) ActiveX Control (32-bit)",vr("0x135"),vr("0x136"),vr("0x137"),"ShockwaveFlash.ShockwaveFlash",vr("0x138"),vr("0x139"),"WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"]
t=be[vr("0x10")](n,(function(t){try{return new(window[vr("0x12b")])(t),t}catch(t){return e[vr("0x13a")]}}))}else t[vr("0x11a")](e.NOT_AVAILABLE)
return navigator[vr("0x123")]&&(t=t[vr("0xfa")](be.getRegularPlugins(e))),t}},{key:W,value:function(e){for(var t=!1,n=0,r=e[vr("0x123")].sortPluginsFor[vr("0x5")];n<r;n++){var i=e[vr("0x123")].sortPluginsFor[n]
if(navigator[vr("0x59")][vr("0x3d")](i)){t=!0
break}}return t}},{key:X,value:function(e,t){void 0!==navigator[vr("0x13c")]?navigator[vr("0x13c")]()[vr("0x13d")]((function(t){var n={}
n[vr("0x13e")]=t[vr("0x13e")],n[vr("0x13f")]=t[vr("0x13f")],n.chargingTime=t[vr("0x140")],n[vr("0x141")]=t.dischargingTime,e(n)})):e(t[vr("0x2f")])}},{key:Q,value:function(e,t){var n=navigator[vr("0x143")]
e(void 0!==n?{downlink:n[vr("0x144")],downlinkMax:n[vr("0x145")],type:n[vr("0x41")],effectiveType:n[vr("0x146")],rtt:n[vr("0x147")],saveData:n[vr("0x148")]}:t.NOT_AVAILABLE)}},{key:Y,value:function(e){e(be[vr("0x14a")]())}},{key:$,value:function(e,t){e(be[vr("0x14c")](t))}},{key:J,value:function(e){try{return!!window[vr("0x14d")]}catch(t){return e[vr("0x13a")]}}},{key:Z,value:function(e){try{return!!window[vr("0x9a")]}catch(t){return e[vr("0x13a")]}}},{key:ee,value:function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}},{key:"getHardwareConcurrency",value:function(e){return navigator[vr("0x14f")]?navigator.hardwareConcurrency:e[vr("0x2f")]}},{key:te,value:function(e){return navigator[vr("0x150")]||e[vr("0x2f")]}},{key:ne,value:function(e){return navigator[vr("0x151")]?navigator[vr("0x151")]:e[vr("0x2f")]}},{key:re,value:function(e){return navigator[vr("0x152")]?navigator.doNotTrack:navigator[vr("0x153")]?navigator.msDoNotTrack:window[vr("0x152")]?window[vr("0x152")]:e[vr("0x2f")]}},{key:ie,value:function(){var e,t=0
void 0!==navigator[vr("0x154")]?t=navigator.maxTouchPoints:void 0!==navigator[vr("0x155")]&&(t=navigator[vr("0x155")])
try{document[vr("0x156")]("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:vr("0x157")in window}}},{key:oe,value:function(t){var n={},r=document[vr("0xff")](vr("0x158"))
r[vr("0x6d")]=2e3,r[vr("0x6e")]=200,r.style[vr("0x159")]=vr("0x15a")
var i=r.getContext("2d")
return i.rect(0,0,10,10),i[vr("0x15b")](2,2,6,6),n[vr("0x15c")]=!1===i[vr("0x15d")](5,5,vr("0x15e"))?"yes":"no",i.textBaseline=vr("0x15f"),i[vr("0x160")]="#f60",i.fillRect(125,1,62,20),i[vr("0x160")]="#069",t[vr("0x161")]?i[vr("0x162")]=vr("0x163"):i.font="11pt no-real-font-123",i[vr("0x164")]("Cwm fjordbank glyphs vext quiz, 😃",2,15),i[vr("0x160")]=vr("0x165"),i[vr("0x162")]=vr("0x166"),i.fillText(vr("0x167"),4,45),i[vr("0x168")]=vr("0x169"),i[vr("0x160")]=vr("0x16a"),i[vr("0x16b")](),i[vr("0x16c")](50,50,50,0,2*Math.PI,!0),i[vr("0x16d")](),i.fill(),i.fillStyle=vr("0x16e"),i[vr("0x16b")](),i[vr("0x16c")](100,50,50,0,2*Math.PI,!0),i[vr("0x16d")](),i[vr("0x16f")](),i.fillStyle="rgb(255,255,0)",i.beginPath(),i[vr("0x16c")](75,100,50,0,2*Math.PI,!0),i[vr("0x16d")](),i[vr("0x16f")](),i[vr("0x160")]=vr("0x16a"),i[vr("0x16c")](75,75,75,0,2*Math.PI,!0),i[vr("0x16c")](75,75,25,0,2*Math.PI,!0),i[vr("0x16f")](vr("0x15e")),r[vr("0x170")]&&(n[vr("0x171")]=e[vr("0x4")](r[vr("0x170")](),23)),n}},{key:ae,value:function(t){var n,r=function(e){return n[vr("0x172")](0,0,0,1),n[vr("0x173")](n[vr("0x174")]),n[vr("0x175")](n[vr("0x176")]),n.clear(n[vr("0x177")]|n[vr("0x178")]),"["+e[0]+", "+e[1]+"]"}
if(!(n=be[vr("0x179")]()))return null
var i={},o=n[vr("0x17a")]()
n.bindBuffer(n[vr("0x17b")],o)
var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
n[vr("0x17c")](n[vr("0x17b")],a,n.STATIC_DRAW),o[vr("0x17d")]=3,o[vr("0x17e")]=3
var s=n[vr("0x17f")](),c=n.createShader(n[vr("0x180")])
n[vr("0x181")](c,vr("0x182")),n.compileShader(c)
var u=n[vr("0x183")](n[vr("0x184")])
n[vr("0x181")](u,vr("0x185")),n[vr("0x186")](u),n[vr("0x187")](s,c),n[vr("0x187")](s,u),n[vr("0x188")](s),n.useProgram(s),s[vr("0x189")]=n[vr("0x18a")](s,vr("0x18b")),s[vr("0x18c")]=n.getUniformLocation(s,"uniformOffset"),n.enableVertexAttribArray(s.vertexPosArray),n[vr("0x18d")](s[vr("0x189")],o[vr("0x17d")],n[vr("0x18e")],!1,0,0),n[vr("0x18f")](s[vr("0x18c")],1,1),n[vr("0x190")](n[vr("0x191")],0,o.numItems)
try{i[vr("0x192")]=e[vr("0x4")](n[vr("0x158")].toDataURL(),23)}catch(e){}if(t[vr("0x193")][vr("0x194")])return i
i[vr("0x195")]=be[vr("0x196")](),i.extensions=n.getSupportedExtensions()||[],i[vr("0x197")]=r(n[vr("0x198")](n[vr("0x199")])),i[vr("0x19a")]=r(n[vr("0x198")](n.ALIASED_POINT_SIZE_RANGE)),i["webgl alpha bits"]=n.getParameter(n[vr("0x19b")]),i["webgl antialiasing"]=n[vr("0x19c")]().antialias?vr("0x19d"):"no",i["webgl blue bits"]=n[vr("0x198")](n[vr("0x19e")]),i[vr("0x19f")]=n[vr("0x198")](n[vr("0x1a0")]),i[vr("0x1a1")]=n[vr("0x198")](n.GREEN_BITS),i[vr("0x1a2")]=function(e){var t=e.getExtension(vr("0x1a3"))||e[vr("0x1a4")](vr("0x1a5"))||e.getExtension("MOZ_EXT_texture_filter_anisotropic")
if(t){var n=e[vr("0x198")](t[vr("0x1a6")])
return 0===n&&(n=2),n}return null}(n),i[vr("0x1a7")]=n[vr("0x198")](n[vr("0x1a8")]),i["webgl max cube map texture size"]=n[vr("0x198")](n[vr("0x1a9")]),i[vr("0x1aa")]=n.getParameter(n[vr("0x1ab")]),i[vr("0x1ac")]=n[vr("0x198")](n[vr("0x1ad")]),i[vr("0x1ae")]=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),i[vr("0x1af")]=n.getParameter(n[vr("0x1b0")]),i[vr("0x1b1")]=n.getParameter(n[vr("0x1b2")]),i[vr("0x1b3")]=n[vr("0x198")](n[vr("0x1b4")]),i[vr("0x1b5")]=n[vr("0x198")](n[vr("0x1b6")]),i["webgl max vertex uniform vectors"]=n.getParameter(n[vr("0x1b7")]),i[vr("0x1b8")]=r(n[vr("0x198")](n[vr("0x1b9")])),i[vr("0x1ba")]=n[vr("0x198")](n[vr("0x1bb")]),i[vr("0x1bc")]=n[vr("0x198")](n.RENDERER),i["webgl shading language version"]=n[vr("0x198")](n[vr("0x1bd")]),i[vr("0x1be")]=n.getParameter(n[vr("0x1bf")]),i["webgl vendor"]=n.getParameter(n[vr("0x1c0")]),i[vr("0x1c1")]=n.getParameter(n.VERSION)
try{var l=n[vr("0x1a4")]("WEBGL_debug_renderer_info")
l&&(i[vr("0x1c2")]=n[vr("0x198")](l[vr("0x1c3")]),i[vr("0x1c4")]=n[vr("0x198")](l[vr("0x1c5")]))}catch(e){}return n[vr("0x1c6")]?(be[vr("0xc")]([vr("0x18e"),vr("0x1c7")],(function(e){be[vr("0xc")]([vr("0x1c8"),vr("0x1c9")],(function(t){be[vr("0xc")]([vr("0x1ca"),vr("0x1cb"),"LOW"],(function(r){be.each([vr("0x1cc"),vr("0x1cd"),vr("0x1ce")],(function(o){var a=n.getShaderPrecisionFormat(n[t+"_SHADER"],n[r+"_"+e])[o]
vr("0x1cc")!==o&&(o=vr("0x1cf")+o)
var s=["webgl ",t[vr("0x1d0")](),vr("0x1d1"),r.toLowerCase()," ",e[vr("0x1d0")]()," ",o][vr("0xa5")]("")
i[s]=a}))}))}))})),i):i}},{key:se,value:function(){try{var e=be[vr("0x179")](),t=e[vr("0x1a4")]("WEBGL_debug_renderer_info")
return e[vr("0x198")](t[vr("0x1c3")])+"~"+e[vr("0x198")](t[vr("0x1c5")])}catch(e){return null}}},{key:ce,value:function(){var e=document.createElement(vr("0x100"))
e[vr("0x1d2")]=vr("0x1d3"),e[vr("0x1d4")]=vr("0x1d5")
var t=!1
try{document.body.appendChild(e),t=0===document[vr("0x1d6")](vr("0x1d5"))[0][vr("0x118")],document[vr("0x7f")][vr("0x11b")](e)}catch(e){t=!1}return t}},{key:ue,value:function(){if(void 0!==navigator[vr("0x1d7")])try{if(navigator.languages[0][vr("0x1d8")](0,2)!==navigator[vr("0x5b")].substr(0,2))return!0}catch(e){return!0}return!1}},{key:le,value:function(){return window[vr("0x5e")][vr("0x6d")]<window.screen.availWidth||window[vr("0x5e")][vr("0x6e")]<window[vr("0x5e")][vr("0x72")]}},{key:"getHasLiedOs",value:function(){var e,t=navigator[vr("0x59")].toLowerCase(),n=navigator.oscpu,r=navigator[vr("0x151")][vr("0x1d0")]()
if(e=t[vr("0x19")](vr("0x1d9"))>=0?vr("0x1da"):t.indexOf(vr("0x1db"))>=0?vr("0x1dc"):t[vr("0x19")](vr("0x1dd"))>=0?"Android":t[vr("0x19")](vr("0x1de"))>=0||t[vr("0x19")]("cros")>=0?vr("0x1df"):t[vr("0x19")]("iphone")>=0||t[vr("0x19")](vr("0x1e0"))>=0?"iOS":t[vr("0x19")](vr("0x1e1"))>=0?"Mac":vr("0x1e2"),(vr("0x157")in window||navigator[vr("0x154")]>0||navigator[vr("0x155")]>0)&&vr("0x1da")!==e&&vr("0x1e3")!==e&&vr("0x1e4")!==e&&vr("0x1e2")!==e)return!0
if(void 0!==n){if((n=n.toLowerCase()).indexOf(vr("0x1db"))>=0&&"Windows"!==e&&vr("0x1da")!==e)return!0
if(n[vr("0x19")](vr("0x1de"))>=0&&vr("0x1df")!==e&&vr("0x1e3")!==e)return!0
if(n[vr("0x19")]("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0
if((-1===n.indexOf(vr("0x1db"))&&-1===n[vr("0x19")]("linux")&&-1===n.indexOf(vr("0x1e1")))!=(vr("0x1e2")===e))return!0}return r[vr("0x19")]("win")>=0&&vr("0x1dc")!==e&&vr("0x1da")!==e||(r.indexOf("linux")>=0||r.indexOf(vr("0x1dd"))>=0||r[vr("0x19")](vr("0x1e5"))>=0)&&vr("0x1df")!==e&&vr("0x1e3")!==e||(r.indexOf(vr("0x1e1"))>=0||r[vr("0x19")](vr("0x1e0"))>=0||r[vr("0x19")](vr("0x1e6"))>=0||r[vr("0x19")](vr("0x1e7"))>=0)&&vr("0x1e8")!==e&&vr("0x1e4")!==e||(r[vr("0x19")](vr("0x1db"))<0&&r.indexOf(vr("0x1de"))<0&&r[vr("0x19")](vr("0x1e1"))<0&&r.indexOf(vr("0x1e7"))<0&&r[vr("0x19")](vr("0x1e0"))<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&vr("0x1da")!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator[vr("0x59")][vr("0x1d0")](),n=navigator.productSub
if(e=t[vr("0x19")](vr("0x1e9"))>=0?"Firefox":t.indexOf(vr("0x1ea"))>=0||t.indexOf(vr("0x1eb"))>=0?vr("0xa8"):t[vr("0x19")](vr("0x1ec"))>=0?vr("0x27"):t[vr("0x19")](vr("0x1ed"))>=0?vr("0x1ee"):t[vr("0x19")]("trident")>=0?vr("0x1ef"):vr("0x1e2"),(vr("0x27")===e||vr("0x1ee")===e||vr("0xa8")===e)&&"20030107"!==n)return!0
var r,i=eval.toString()[vr("0x5")]
if(37===i&&vr("0x1ee")!==e&&vr("0x29")!==e&&vr("0x1e2")!==e)return!0
if(39===i&&vr("0x1ef")!==e&&vr("0x1e2")!==e)return!0
if(33===i&&vr("0x27")!==e&&vr("0xa8")!==e&&"Other"!==e)return!0
try{throw"a"}catch(e){try{e[vr("0x1f0")](),r=!0}catch(e){r=!1}}return r&&vr("0x29")!==e&&vr("0x1e2")!==e}},{key:de,value:function(){var e=document[vr("0xff")](vr("0x158"))
return!(!e[vr("0x1f1")]||!e[vr("0x1f1")]("2d"))}},{key:fe,value:function(){if(!be[vr("0xaa")]())return!1
var e=be[vr("0x179")]()
return!!window[vr("0x1f2")]&&!!e}},{key:he,value:function(){return vr("0x1f3")===navigator[vr("0x85")]||!("Netscape"!==navigator.appName||!/Trident/[vr("0x9b")](navigator.userAgent))}},{key:pe,value:function(){return void 0!==window[vr("0x1f4")]}},{key:ge,value:function(){return window[vr("0x1f4")][vr("0x1f5")](vr("0x1f6"))}},{key:me,value:function(e){var t=document.createElement(vr("0x100"))
t[vr("0x1f8")]("id",e.fonts[vr("0x1f9")]),document[vr("0x7f")][vr("0x119")](t)}},{key:"loadSwfAndDetectFonts",value:function(e,t){window[vr("0x1fa")]=function(t){e(t)}
var n=t[vr("0xc2")][vr("0x1f9")]
be[vr("0x1f7")](),window[vr("0x1f4")][vr("0x1fb")](t.fonts.swfPath,n,"1","1",vr("0x1f6"),!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:vr("0x1fc")},{})}},{key:ve,value:function(){var e=document[vr("0xff")](vr("0x158")),t=null
try{t=e.getContext(vr("0x193"))||e[vr("0x1f1")](vr("0x1fd"))}catch(e){}return t||(t=null),t}}]),be}(vr("0xc"),vr("0x10"),vr("0x11"),vr("0x22"),vr("0x30"),vr("0x32"),vr("0x39"),vr("0x3a"),vr("0x58"),vr("0x28"),vr("0x5a"),vr("0x60"),vr("0x62"),vr("0x64"),vr("0x66"),vr("0x65"),vr("0x6f"),vr("0x70"),vr("0x73"),vr("0x75"),vr("0x7b"),vr("0x7c"),vr("0x7e"),vr("0x83"),vr("0x84"),vr("0x86"),vr("0x88"),vr("0x8a"),vr("0x8c"),vr("0x8f"),vr("0x90"),vr("0x91"),vr("0x94"),vr("0x25"),vr("0xac"),vr("0xaf"),vr("0xb1"),vr("0xb9"),vr("0xba"),vr("0xbf"),vr("0x11d"),vr("0x121"),vr("0x125"),vr("0x127"),vr("0x13b"),vr("0x142"),vr("0x149"),vr("0x14b"),vr("0x7a"),vr("0x14e"),vr("0x7d"),vr("0x82"),vr("0x8d"),vr("0x93"),vr("0x14a"),vr("0xab"),vr("0xae"),vr("0x196"),vr("0xbb"),vr("0xbc"),vr("0xbd"),vr("0xaa"),vr("0xad"),vr("0x122"),vr("0xc0"),vr("0xc1"),vr("0x1f7"),vr("0x179"))
function n(e){var t=arguments[vr("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=n?n[vr("0x22a")]("#"+e):document.getElementById(e)
if(r){var i=r.firstChild[vr("0x22b")]
if(t&&r[vr("0x22c")].removeChild(r),i)try{return JSON[vr("0x22d")](i)}catch(e){return}}}function r(e){var t=document.getElementsByClassName(e)
return void 0!==t&&t.length>=1}function i(){try{for(var e=document[vr("0x22e")][vr("0x26")](";"),t=0;t<e[vr("0x5")];t++){var n=e[t][vr("0x26")]("=")
if(n[vr("0x5")]>1&&vr("0x22f")===n[0]){var r=n[n[vr("0x5")]-1]
return r.substring(2,r[vr("0x5")]-1)}}}catch(e){return""}}var o=function(e,t,r,i,o,a,s,c){function u(){m(this,u)}return y(u,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e[vr("0x5")]),n=new Uint8Array(t),r=0,i=e.length;r<i;r++)n[r]=e[vr("0x6")](r)
return t}},{key:vr("0x230"),value:function(e){return window[vr("0x231")](String[vr("0x232")][vr("0x233")](null,e))}},{key:vr("0x234"),value:function(e,t,n){var r=window[vr("0x235")](t),i=u[vr("0x236")](r)
return window.crypto.subtle[vr("0x237")](e,i,{name:"RSA-OAEP",hash:vr("0x238")},!0,n)}},{key:vr("0x239"),value:function(e,t){return u.importPk(vr("0x23a"),t,["wrapKey"])[vr("0x13d")]((function(t){return window[vr("0x23b")][vr("0x23c")][vr("0x23d")]("raw",e,t,{name:vr("0x23e")})})).then((function(e){return u[vr("0x230")](new Uint8Array(e))}))}},{key:vr("0x23f"),value:function(e){var t={a:null,b:null,c:null}
return t.error=e,t}},{key:"encryptWithKey",value:function(e,t,n){var r={a:null,b:null,c:null}
try{var i=Date[vr("0x8b")]()
if(vr("0x240")!=g(t)||vr("0x220")!=g(n))throw new Error("ec1")
var o=window[vr("0x23b")][vr("0x241")](new Uint8Array(16))
r.a=u[vr("0x230")](o)
var a=(new TextEncoder)[vr("0x230")](e),s=vr("0x242")
return window.crypto[vr("0x23c")][vr("0x243")]({name:s,length:256},!0,["encrypt",vr("0x244")]).then((function(e){return window[vr("0x23b")][vr("0x23c")].encrypt({name:s,iv:o},e,a).then((function(o){return u[vr("0x239")](e,t)[vr("0x13d")]((function(e){return r.b=e,r.c=u.encode(new Uint8Array(o)),r.d=Date.now()-i,r.e=n,r}))}))})).catch((function(e){return r.error=String(e),r}))}catch(e){return r[vr("0x245")]=String(e),Promise[vr("0x246")](r)}}},{key:vr("0x247"),value:function(e,t,r,i){if(vr("0x240")!=g(t)||vr("0x240")!=g(r))return Promise[vr("0x246")](u[vr("0x23f")]("Error: ec2"))
var o=n(t),a=parseInt(n(r))
return(""===o||"string"!=typeof o||vr("0x220")!=g(a)||Number.isNaN(a))&&(o=vr(i?"0x248":"0x249"),a=i?2:1),u[vr("0x24a")](e,o,a)}},{key:vr("0x24b"),value:function(e,t,n,r,i){return null!=r&&vr("0x240")==g(r.publicKey)&&vr("0x220")==g(r[vr("0x24c")])?u[vr("0x24a")](e,r[vr("0x24d")],r[vr("0x24c")]):u[vr("0x247")](e,t,n,i)}},{key:vr("0x24e"),value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^window.crypto[vr("0x241")](new Uint8Array(1))[0]&15>>e/4)[vr("0xa")](16)}))}},{key:vr("0x24f"),value:function(e){var t=(new TextEncoder)[vr("0x230")](e)
return crypto[vr("0x23c")][vr("0x250")](vr("0x238"),t)[vr("0x13d")]((function(e){return Array[vr("0x251")](new Uint8Array(e))[vr("0x10")]((function(e){return("00"+e[vr("0xa")](16)).slice(-2)}))[vr("0xa5")]("")})).catch((function(){return""}))}}]),u}(),a=vr("0x252"),s=vr("0x253"),c=vr("0x254"),u={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:vr("0x255"),swfPath:vr("0x256"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:vr("0x257"),telemetryCollectPath:vr("0x258"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:vr("0x259"),ERROR:"err",EXCLUDED:vr("0x25a"),useRequestIdleCallBack:!0},l=function(e,l,d,f,h,p){function g(e,t,n){var i=this
if(m(this,g),void 0!==t&&void 0!==e&&vr("0x25b")===e[vr("0x25c")])vr("0x25d")===document[vr("0x25e")]?(this.checkConfigAndInitializeGlobalIntegration(t,n),this[vr("0x25f")](t,n)):window[vr("0x260")]("load",(function(){i.checkConfigAndInitializeGlobalIntegration(t,n),i[vr("0x25f")](t,n)}))
else if(void 0!==e){var o=JSON[vr("0x22d")](JSON[vr("0x221")](u))
r("settings-iframe")||r(vr("0x261"))||(o[vr("0x262")]=!1),this[vr("0x263")](o,e)}else{var a=JSON[vr("0x22d")](JSON[vr("0x221")](u))
r(vr("0x264"))||r(vr("0x261"))||(a[vr("0x262")]=!1),vr("0x25d")===document[vr("0x25e")]?this.initialize(a):window.addEventListener(vr("0x265"),(function(){i.initialize(a)}))}}return y(g,[{key:vr("0x266"),value:function(e,t){!0===t.dnaFingerprintingEnabled&&this.intializeGlobalIntegration(u,e)}},{key:vr("0x25f"),value:function(e,t){!0===t.humanIntegrationEnabled&&this[vr("0x267")](e,t),!0===t[vr("0x268")]&&this.intializeDfpIntegration(e)}},{key:vr("0x263"),value:function(e,r){if(null!=r||null!=n(vr("0x269"))){this[vr("0x26c")](e,r)
var i=this[vr("0x26d")],a=this[vr("0x26e")],s=this[vr("0x26f")]()
return(new t)[vr("0x218")]((function(t,n){t[vr("0x26d")]=i,t[vr("0x26e")]=a,t[vr("0x270")]=n,o.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK",vr("0x271"),r,s)[vr("0x13d")]((function(t){globalThis[vr("0x255")]=t,!0===n&&function(e,t,n){var r=new XMLHttpRequest,i=vr(n?"0x272":"0x273")
i+=String(t),r[vr("0x9d")]("POST",i),r[vr("0x274")](vr("0x275"),vr("0x276")),r[vr("0x277")](e)}(JSON.stringify(t),e[vr("0x278")],s)}))}),e)}globalThis[vr("0x26a")]=this[vr("0x26b")]}},{key:vr("0x279"),value:function(e,n){return(new t).getFeatures((function(e,t){!0===t&&o.encryptWithKeyIds(JSON.stringify(e),vr("0x269"),vr("0x271"))[vr("0x13d")]((function(e){n(a,JSON.stringify(e))}))}),e)}},{key:vr("0x27a"),value:function(e){var t=i(),n=this.isProd()?vr("0x27b"):vr("0x27c")
try{if(RegExp("^[\\w-]*$")[vr("0x9b")](t)){var r=vr("0x27d")+t+"&instanceId="+n,o=document[vr("0xff")](vr("0x27e"))
o[vr("0x1f8")](vr("0x27f"),r),o.setAttribute("id",vr("0x280")),o[vr("0x260")]("load",(function(){return window[vr("0x281")][vr("0x282")](document)})),document[vr("0xfe")](vr("0x283"))[0][vr("0x119")](o)
var a={sessionId:t,instanceId:n}
e(c,JSON[vr("0x221")](a))}else{var s={error:vr("0x284")+t}
e(c,JSON[vr("0x221")](s))}}catch(t){var u={error:t}
e(c,JSON.stringify(u))}}},{key:vr("0x267"),value:function(e,t){var n=t[vr("0x285")],r=Date.now(),a=this[vr("0x26f")]()?vr("0x286"):"PXgoH0hfKu",c=i(),u=vr("0x287")+r+vr("0x288")+n+vr("0x289")+a+"&uc=scraping"
o[vr("0x24f")](c)[vr("0x13d")]((function(t){""!==(c=t)&&(u+=vr("0x28a")+c)
try{var i=document[vr("0xff")](vr("0x28b"))
i[vr("0x1f8")]("id",vr("0x28c")),i[vr("0x1f8")](vr("0x27f"),u),i[vr("0x1f8")]("sandbox",vr("0x28d")),i[vr("0x102")][vr("0x159")]="none",document.body[vr("0x119")](i)
var o={app_id:a,ts:r,d_id:c,r_id:n,uc:vr("0x28e")}
e(s,JSON[vr("0x221")](o))}catch(t){var l={error:t}
e(s,JSON.stringify(l))}}))}}]),g}()
l[vr("0xe")][vr("0x26b")]=function(e){globalThis.triggerApfc=null,new l(e)},l[vr("0xe")][vr("0x28f")]=function(e,t){globalThis.triggerDnaApfcEvent=null,new l({globalIntegration:vr("0x25b")},e,t)},l[vr("0xe")][vr("0x26f")]=function(){var e=location&&location[vr("0xb3")]
return e&&e[vr("0x19")](vr("0x290"))>-1&&!e.startsWith(vr("0x291"))},l[vr("0xe")][vr("0x292")]=function(e){return e&&0===Object[vr("0x1b")](e)[vr("0x5")]},l[vr("0xe")][vr("0x293")]=function(){var e=[]
return f(document.getElementsByClassName(vr("0x294")))[vr("0xd")]((function(t){f(t[vr("0xfe")](vr("0x295")))[vr("0xd")]((function(t){var n=t[vr("0x1d2")]
if(n){var r=(new DOMParser)[vr("0x296")](n,vr("0x297"))
r&&f(r.getElementsByClassName("bc"))[vr("0xd")]((function(t){e[vr("0x11a")]({src:t[vr("0x2a")](vr("0x27f")),style:t[vr("0x2a")](vr("0x102")),class:t[vr("0x2a")](vr("0x298")),width:t[vr("0x2a")]("width"),height:t[vr("0x2a")](vr("0x6e"))})}))}}))})),0===e[vr("0x5")]?null:e[0]},l[vr("0xe")][vr("0x26c")]=function(e,t){if(null!=e){var n,r,i="bc",a="display:none;",s="1",c="1",u=e[vr("0x299")]
if(this[vr("0x26d")]=null,this[vr("0x26e")]=null,null!==(n=this.getUrlFromNoscriptBeacon())){i=n[vr("0x298")],a=n[vr("0x102")],s=n[vr("0x6d")],c=n[vr("0x6e")]
var l=new URL(n.src)
u=l[vr("0x29a")]+"//"+l[vr("0xb3")]+l[vr("0xb7")],this[vr("0x26d")]=l[vr("0x29b")][vr("0x29c")]("reqid"),this[vr("0x26e")]=l[vr("0x29b")][vr("0x29c")]("pageInstance")}else if(void 0!==(r=function(e){var t=arguments[vr("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=n?n[vr("0x22a")]("#"+e):document[vr("0x29d")](e)
if(r){var i=r.firstChild[vr("0x22b")]
if(t&&r[vr("0x22c")][vr("0x11b")](r),i)try{var o=i
return"'"!==o[vr("0x29e")](0)&&'"'!==o[vr("0x29e")](0)||(o=o[vr("0x29f")](1,o.length-1)),JSON[vr("0x22d")](o)}catch(e){return}}}(vr("0x2a0"))))this[vr("0x26d")]=void 0===r[vr("0x26d")]?null:r[vr("0x26d")],this[vr("0x26e")]=r[vr("0x26e")]
else{if(void 0===t)return
this[vr("0x26e")]=t[vr("0x26e")]}this[vr("0x26f")]()||(u=u[vr("0xa6")](/\.linkedin\.com/,vr("0x2a1"))),null===this.reqid&&(this.reqid=o[vr("0x24e")]())
var d=u+"?"+new URLSearchParams({reqid:this[vr("0x26d")],pageInstance:this.pageInstance,js:"enabled"})[vr("0xa")](),f=document[vr("0x1d6")](vr("0x294"))[0]
null==f&&((f=document[vr("0xff")]("div")).setAttribute("id",this.reqid),document.body[vr("0x119")](f))
var h=document[vr("0xff")](vr("0x2a2"))
h.src=d,h.style=a,h[vr("0x1d4")]=i,h.width=s,h[vr("0x6e")]=c,f[vr("0x119")](h)}},vr("0x2a3")!=("undefined"==typeof globalThis?"undefined":g(globalThis))&&vr("0x2a3")!=("undefined"==typeof document?"undefined":g(document))&&"undefined"!=typeof window&&(globalThis.triggerDnaApfcEvent=l[vr("0xe")].reentryGlobalIntegration,new l)}()
var yr=function(){function e(){m(this,e)}return y(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEvent&&globalThis.triggerDnaApfcEvent(t,e)}catch(e){}}}]),e}(),br=function(){function e(t,n,r,i,o,a,s,c,u,l,d,f,h){m(this,e),b(this,"hostApis",void 0),b(this,"statics",void 0),b(this,"options",void 0),b(this,"allowTimingOrigin",void 0),b(this,"fireCustomMeasureEvent",void 0),b(this,"fireResourceLoadEvent",void 0),b(this,"isTracerEnabled",void 0),b(this,"responseRleCache",void 0),b(this,"fireApfcEvent",void 0),b(this,"isDnaFingerprintingLixEnabled",void 0),b(this,"isHumanIntegrationLixEnabled",void 0),b(this,"isDfpIntegrationLixEnabled",void 0),b(this,"trackingEndpoint",void 0),b(this,"collectResourceTimings",void 0),b(this,"collectCdnData",void 0),b(this,"perfObserver",void 0),b(this,"renderTimings",new Map),b(this,"urlToTreeId",new Map),b(this,"cdnDataProvider",void 0),b(this,"observables",new jn),b(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerEnabled=s,this.responseRleCache=c,this.fireApfcEvent=u,this.isDnaFingerprintingLixEnabled=l,this.isHumanIntegrationLixEnabled=d,this.isDfpIntegrationLixEnabled=f,this.trackingEndpoint=h,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new gr(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return y(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(ar=ar||t.createElement("a")).href=e,ar.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:cr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e)
if(r&&(r.renderEnd=r.renderEnd||cr(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void Lt("ViewLoadEvent",Dn)}},{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=_r(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,Mn.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(Nn).forEach((function(t){var n
t in An&&void 0!==e[t]&&l.push({resourceProgressType:Nn[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),u.resourceProgressStates=l
var d={},f=Pn[o]
d.nextHopProtocol=null!=f?f:"UNKNOWN",d.transferSize=r,d.encodedBodySize=a,d.decodedBodySize=s,u.resourceNetworkContext=d,u.requestStart=c
try{var h,p,g=new URL(n),m=g.pathname+g.search+g.hash
return null===(h=this.responseRleCache)||void 0===h||h.offerResourceLoadEvent(m,u),null===(p=this.responseRleCache)||void 0===p?void 0:p.flushCacheByUrl(m)}catch(e){var v,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n)
return e instanceof Error?(e.message="".concat(y," ").concat(e.message),Lt("ResourceLoadEvent",e)):Lt("ResourceLoadEvent",y),null===(v=this.responseRleCache)||void 0===v?void 0:v.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=dr(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,_r(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?Ot(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e,t){var n=this
this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var r=e.entryType,i=e.name,o=e.startTime,a=e.duration
if("resource"===r)n.processSingleResourceTiming(e,t)
else if("mark"===r){n.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:i,measurementType:"MARK",measureProgressStates:[{measureProgressName:i,timestamp:o}]})
try{if("mark_meaningful_paint_end"===i&&(n.isHumanIntegrationLixEnabled||n.isDfpIntegrationLixEnabled||n.isDnaFingerprintingLixEnabled)){var s,c,u={treeId:null!==(s=null===(c=n.statics.treeId)||void 0===c?void 0:c.toString())&&void 0!==s?s:"",humanIntegrationEnabled:n.isHumanIntegrationLixEnabled,dfpIntegrationEnabled:n.isDfpIntegrationLixEnabled,dnaFingerprintingEnabled:n.isDnaFingerprintingLixEnabled}
yr.collectFeatures(u,n.fireApfcEvent)}}catch(e){}}else"measure"===r?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:i,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:i,timestamp:o,duration:a}]})):"longtask"===r&&(n.observables.longTasks.push({duration:a,name:i,startTime:o}),n.fireCustomMeasureEvent({measurementName:i,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:i,timestamp:o,duration:a}]}))}))})),this.observables.userTimingEntries=dr(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent)
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.observables.resourceTimingEntries.push(e)
var r=-1!==e.name.indexOf(this.trackingEndpointPattern)
if(this.isTracerEnabled&&!r&&!function(e){var t,n=d(sr)
try{for(n.s();!(t=n.n()).done;){var r=t.value
if(r.strToFilter&&-1!==e.indexOf(r.strToFilter))return!0
if(r.pattern&&r.pattern.test(e))return!0}}catch(e){n.e(e)}finally{n.f()}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:fr(this.renderTimings),networkInformationMetrics:Er(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function Er(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 _r(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,Mn.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var Tr=function(){function e(t,n,r){m(this,e),b(this,"featureName",void 0),b(this,"trackingCore",void 0),b(this,"rumConfig",void 0),b(this,"observing",!1),b(this,"basePageTreeId",void 0),b(this,"startPageInstance",void 0),b(this,"startMemory",void 0),b(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return y(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)||Et("unknown"),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:ur(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}()
b(Tr,"checkpoints",[1,3,10,30,90,180,300])
var Sr,xr,Cr,Ar,wr,Ir=y((function e(t,n,r){m(this,e),b(this,"webUIFramework",void 0),b(this,"timeSource",void 0),b(this,"isSinglePageApp",void 0),b(this,"appRenderMode",void 0),b(this,"isAppRenderFailed",void 0),b(this,"pageLoadMode","INITIAL"),b(this,"isSSL",void 0),b(this,"treeId",void 0),b(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})),Rr=function(){function e(t){m(this,e),b(this,"isPEMTracerEnabled",void 0),b(this,"responseContextMap",new Map),b(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return y(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 Bt((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 Bt((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=l(e,i),r=(t.requestTime,t.viewNames),a=t.requestType,s=l(t,o)
return n.targetViewNames=r||[],a&&(n.requestType=a),n.resourceNetworkContext=u(u({},n.resourceNetworkContext),s),Ft(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=d(e)
try{for(r.s();!(n=r.n()).done;){var i=n.value
t=[].concat(f(t),f(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var o=this.resourceLoadEventsMap.keys()
if(o){var s,c=d(o)
try{for(c.s();!(s=c.n()).done;){var u,h=s.value,p=null===(u=this.resourceLoadEventsMap.get(h))||void 0===u?void 0:u.heapClear()
p&&(t=[].concat(f(t),f(p.map((function(e){e.requestStart
var t=l(e,a)
return Ft(t)})))))}}catch(e){c.e(e)}finally{c.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n,r,i=[]
if(!e)return i
if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(n=t.get(e))||void 0===n||null===(r=n.heapClear())||void 0===r?void 0:r.map((function(e){e.requestStart
var t=l(e,s)
return Ft(t)})))||i
if(this.canFlush(e)){for(var o=this.responseContextMap.get(e);o&&o.heapsize()>0;){var a=this.mergeAndConsume(e)
a&&i.push(a)}this.deleteEntryByRequestUrl(e)}return i}}]),e}(),kr=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)}},Or=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){}},Mr=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)},Nr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Pr=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)))}},Dr=-1,Ur=function(){return"hidden"===document.visibilityState?0:1/0},Lr=function(){Mr((function(e){var t=e.timeStamp
Dr=t}),!0)},jr=function(){return Dr<0&&(Dr=Ur(),Lr(),Nr((function(){setTimeout((function(){Dr=Ur(),Lr()}),0)}))),{get firstHiddenTime(){return Dr}}},Fr=!1,Br=-1,qr=function(e,t){Fr||(function(e,t){var n,r=jr(),i=kr("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:Or("paint",o);(a||s)&&(n=Pr(e,i,t),a&&o(a),Nr((function(r){i=kr("FCP"),n=Pr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){Br=e.value})),Fr=!0)
var n,r=function(t){Br>-1&&e(t)},i=kr("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=Or("layout-shift",s)
c&&(n=Pr(r,i,t),Mr((function(){c.takeRecords().map(s),n(!0)})),Nr((function(){o=0,Br=-1,i=kr("CLS",0),n=Pr(r,i,t)})))},Hr={passive:!0,capture:!0},Gr=new Date,Kr=function(e,t){Sr||(Sr=t,xr=e,Cr=new Date,Wr(removeEventListener),Vr())},Vr=function(){if(xr>=0&&xr<Cr-Gr){var e={entryType:"first-input",name:Sr.type,target:Sr.target,cancelable:Sr.cancelable,startTime:Sr.timeStamp,processingStart:Sr.timeStamp+xr}
Ar.forEach((function(t){t(e)})),Ar=[]}},zr=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(){Kr(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Hr),removeEventListener("pointercancel",r,Hr)}
addEventListener("pointerup",n,Hr),addEventListener("pointercancel",r,Hr)}(t,e):Kr(t,e)}},Wr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,zr,Hr)}))},Xr=function(e,t){var n,r=jr(),i=kr("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=Or("first-input",o)
n=Pr(e,i,t),a&&Mr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Nr((function(){var r
i=kr("FID"),n=Pr(e,i,t),Ar=[],xr=-1,Sr=null,Wr(addEventListener),r=o,Ar.push(r),Vr()}))},Qr={},Yr=function(e,t){var n,r=jr(),i=kr("LCP"),o=function(e){var t=e.startTime
t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},a=Or("largest-contentful-paint",o)
if(a){n=Pr(e,i,t)
var s=function(){Qr[i.id]||(a.takeRecords().map(o),a.disconnect(),Qr[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Mr(s,!0),Nr((function(r){i=kr("LCP"),n=Pr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,Qr[i.id]=!0,n(!0)}))}))}))}},$r=["LCP","FID","CLS"],Jr={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Zr={},ei=function(){var e
if(!Vt)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}(),ti=!1,ni=new Set,ri={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function ii(){var e=!0===window.__test__resetWebVitalsState
if(!ti||e){e&&(ni=new Set),$r.forEach(oi)
var t=Symbol()
wr=t,[Yr,Xr,qr].forEach((function(e){return e(ai.bind(null,t),!0)})),[Yr,Xr,qr].forEach((function(e){return e(si.bind(null,t))})),ti=!0}}function oi(e){Zr[e]={name:e,value:-1,updateHistory:[]}
var t=ri[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Zr[e].value=-2)}function ai(e,t){if(e===wr){var n=Zr[t.name],r=ur()
n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),ni.forEach((function(e){return e(t,r,!1)}))}}function si(e,t){e===wr&&ni.forEach((function(e){return e(t,ur(),!0)}))}var ci,ui=function(){function e(t,n){var r=this
m(this,e),b(this,"basePageTreeId",void 0),b(this,"basePageKey",void 0),b(this,"observing",!1),b(this,"appContextMap",new Map),b(this,"rumConfig",void 0),b(this,"trackingCore",void 0),b(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 y(e,[{key:"startObserving",value:function(){var e,t,n=this
ii(),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",$r.forEach((function(e){var t;-2===(null===(t=Zr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,ni.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,ni.delete(e)}},{key:"reportMetric",value:function(e){var t=Zr[e],n={name:Jr[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var r=Zr[e]
if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:ei},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:lr(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:lr(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":lr(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,r,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}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}(),li={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"},di=function(){function e(t){m(this,e),b(this,"_callTreeId",void 0),b(this,"_fabric",void 0),b(this,"_msEdgeRef",void 0),b(this,"_pointOfPresenceId",void 0),b(this,"_responseMetadata",void 0),b(this,"_contentType",void 0),b(this,"_cdnCacheMetadata",void 0),b(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(li.CALL_TREE_ID)||null,this._pointOfPresenceId=n.get(li.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=n.get(li.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=n.get(li.FABRIC)||null,this._responseMetadata=n.get(li.PEM_RESPONSE_METADATA)||null,this._contentType=n.get(li.CONTENT_TYPE)||null,this._cdnCacheMetadata=n.get(li.CDN_CACHE)||null,this._downstreamAvailability=function(e){if(null==e)return null
var t,n=d(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 null}(this._responseMetadata)||1}return y(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 fi(e,t,n){if(t){if(429===t||999===t)return ci.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return ci.BLOCKED_BY_CLIENT_PROXY
if((r=t)>=400&&r<500)return ci.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return ci.SERVER_ERROR
if(e.pointOfPresenceId)return ci.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return ci.TRAFFIC_AFD_TO_LI_POP_ERROR}return ci.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return ci.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var r
if(n instanceof Error){if("AbortError"===n.name)return ci.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 ci.NETWORK_ERROR}else{if("timeout"===n.statusText)return ci.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return ci.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return ci.NETWORK_ERROR}return ci.UNCLASSIFIED}function hi(e,t,n,r,i){var o=new di(r),a=fi(o,n,i),s=null
return a&&(s={errorType:a},a===ci.UNCLASSIFIED&&i&&(s.errorMessage=i.message,function(e,t,n){var r=["tracer-unclassified-error"]
null==n||n.forEach((function(e){return r.push("target-view-name-".concat(e))})),Lt("tracer-unclassified-error",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]))}(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}}!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"}(ci||(ci={}))
var pi,gi=function(){function e(t,n,r){var i,o,a,s,c,u,l,d,f,h,p,g,v=this
m(this,e),b(this,"core",void 0),b(this,"config",void 0),b(this,"collector",void 0),b(this,"boomerangStart",-1),b(this,"webVitalsObserver",void 0),b(this,"appMemoryObserver",void 0),b(this,"pageMemoryObserver",void 0),b(this,"liveTokens",new Set),b(this,"stateWM",new WeakMap),b(this,"activeToken",void 0),b(this,"isInitial",void 0),b(this,"shouldTrackCustomMeasureEvent",void 0),b(this,"pageLoadId",void 0),b(this,"initialResourcesEvents",[]),b(this,"initialCustomMeasureEvents",[]),b(this,"responseRleCache",void 0),b(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),b(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),b(this,"isTracerEnabled",void 0),b(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({},On),n)
var y="enabled"===(null===(i=(o=r.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time")),E="enabled"===(null===(a=(s=r.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.fireApfcEvent")),_="enabled"===(null===(c=(u=r.host).__getLixTreatment)||void 0===c?void 0:c.call(u,"pemberly.tracking.human.integration")),T="enabled"===(null===(l=(d=r.host).__getLixTreatment)||void 0===l?void 0:l.call(d,"pemberly.tracking.dfp.integration")),S=null===(f=(h=r.host).__getLixTreatment)||void 0===f?void 0:f.call(h,"pemberly.tracking.generic-tracers"),x=!!S&&Ln.test(S)
this.isTracerEnabled=x||this.config["enable-tracking-3"]
var C="enabled"===(null===(p=(g=r.host).__getLixTreatment)||void 0===p?void 0:p.call(g,"pemberly.tracking.pem-tracers"))
this.isPEMTracerEnabled=C||this.config["enable-pem-tracking-3"],this.responseRleCache=new Rr(this.isPEMTracerEnabled),this.collector=new br(r.host.api,new Ir(t,this.config,r.host),this.config,y,(function(e){return v.fireCustomMeasureEvent(e)}),(function(e){return v.fireResourceLoadEvent(e,v.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,E,_,T,r.host.endpoint),this.collector.startObserving(),nt.before("internal:hide",this.beforeHideHandlerBound)}return y(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:cr(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:cr(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new Tr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Tr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new ui(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=cr(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 Lt("rum-end",Un)}},{key:"onDataResponse",value:function(e,t,n,r,i,o){var a=hi(t,n,r,i,o)
this.provisionNetworkResponse(e,a)}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0
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 Lt("PageLoadStartEvent",Un)}},{key:"destroy",value:function(){var e,t,n
nt.offBefore("internal:hide",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:Lt("PageLoadEndEvent",Dn),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=u),e.navigationTiming){var l,d=null===(l=e.navigationTiming)||void 0===l?void 0:l.navigationStart,f=this.boomerangStart=d||this.boomerangStart,h=d||i,p=c-h
e.navigationTiming.boomerangStart=f,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=h,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this
if(this.isTracerEnabled&&this.shouldTrackCustomMeasureEvent){var n,r=null!==(n=this.getPageLoadIdFromState())&&void 0!==n?n:this.pageLoadId
if(!r)return void this.initialCustomMeasureEvents.push(e)
this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=r,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{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,i=null===(n=document)||void 0===n||null===(r=n.cookie)||void 0===r?void 0:r.split(";"),o={issueTime:0,browserId:""}
try{o=jt(i)}catch(e){}var a={type:e,bsCookieInfo:o,payload:t}
this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},a)}}]),e}(),mi="undefined"!=typeof window&&"undefined"!=typeof performance,vi="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG"),yi=function(){function e(t,n){m(this,e),b(this,"trackingCore",void 0),b(this,"endPageInstance",void 0),b(this,"startPageInstance",void 0),b(this,"featureIdentifier",void 0),b(this,"marks",[]),b(this,"spans",[]),b(this,"spanStarts",new Map),b(this,"started",!1),b(this,"ended",!1),b(this,"featureKey",void 0),b(this,"productName",void 0),b(this,"flushOnEnd",void 0),b(this,"basePageTreeId",void 0),b(this,"debounceFlush",void 0),b(this,"disableAutoFlush",void 0),b(this,"isCanceled",!1),b(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 y(e,[{key:"start",value:function(e){var t
if(mi){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(mi){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){mi&&(this.marks.push({name:e,startTime:ur()}),vi&&(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){mi&&(this.spanStarts.set(e,ur()),vi&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(mi&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e
this.spans.push({name:r,startTime:n,duration:ur()-n}),vi&&(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:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return ur()}},{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||Et("unknown"),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(mi){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"}(pi||(pi={}))}}])
//# sourceMappingURL=chunk.758.039a4295acc1156fe70b.map