PageSourceSearch

https://www.na-kd.com/assets/4196.bundle.3cb9c77e449f8021d051.js

js na-kd.com collected 2026-09-24 18:58:46 UTC 273,217 bytes, 3 lines download raw bytes

1/*! For license information please see 4196.bundle.3cb9c77e449f8021d051.js.LICENSE.txt */
2(globalThis.webpackChunknakd_site=globalThis.webpackChunknakd_site||[]).push([[4196],{4003(e){"use strict";const t=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,n=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,r=p(t,n,/\(\s*min(-device)?-width/i),i=p(n,t,/\(\s*max(-device)?-width/i),o=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,a=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,s=p(o,a,/\(\s*min(-device)?-height/i),u=p(a,o,/\(\s*max(-device)?-height/i),l=/print/i,c=/^print$/i,f=Number.MAX_VALUE;function d(e){if(null===(e=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(e)))return f;let t=e[1];switch(e[2]){case"ch":t=8.8984375*parseFloat(t);break;case"em":case"rem":t=16*parseFloat(t);break;case"ex":t=8.296875*parseFloat(t);break;case"px":t=parseFloat(t)}return+t}function p(e,t,n){return function(r){return!!e.test(r)||!t.test(r)&&n.test(r)}}function v(e,t){const n=l.test(e),r=c.test(e),i=l.test(t),o=c.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}function h(e,t){const n=v(e,t);if(null!==n)return n;const o=r(e)||s(e),a=i(e)||u(e),l=r(t)||s(t),c=i(t)||u(t);if(o&&c)return-1;if(a&&l)return 1;let p=d(e),h=d(t);return p===f&&h===f?e.localeCompare(t):p===f?1:h===f?-1:p>h?a?-1:1:p<h?a?1:-1:e.localeCompare(t)}h.desktopFirst=function(e,t){const n=v(e,t);if(null!==n)return n;const o=r(e)||s(e),a=i(e)||u(e),l=r(t)||s(t),c=i(t)||u(t);if(o&&c)return 1;if(a&&l)return-1;const p=d(e),h=d(t);return p===f&&h===f?e.localeCompare(t):p===f?1:h===f?-1:p>h?a?-1:1:p<h?a?1:-1:-e.localeCompare(t)},e.exports=h},8721(e){!function(){const t=e=>(new TextEncoder).encode(e);function n(e,n){let r,i,o,a,s,u,l,c;for("string"==typeof e&&(e=t(e)),r=3&e.length,i=e.length-r,o=n,s=3432918353,u=461845907,c=0;c<i;)l=255&e[c]|(255&e[++c])<<8|(255&e[++c])<<16|(255&e[++c])<<24,++c,l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*u+(((l>>>16)*u&65535)<<16)&4294967295,o^=l,o=o<<13|o>>>19,a=5*(65535&o)+((5*(o>>>16)&65535)<<16)&4294967295,o=27492+(65535&a)+(((a>>>16)+58964&65535)<<16);switch(l=0,r){case 3:l^=(255&e[c+2])<<16;case 2:l^=(255&e[c+1])<<8;case 1:l^=255&e[c],l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*u+(((l>>>16)*u&65535)<<16)&4294967295,o^=l}return o^=e.length,o^=o>>>16,o=2246822507*(65535&o)+((2246822507*(o>>>16)&65535)<<16)&4294967295,o^=o>>>13,o=3266489909*(65535&o)+((3266489909*(o>>>16)&65535)<<16)&4294967295,o^=o>>>16,o>>>0}const r=n;r.v2=function(e,n){"string"==typeof e&&(e=t(e));let r,i=e.length,o=n^i,a=0;for(;i>=4;)r=255&e[a]|(255&e[++a])<<8|(255&e[++a])<<16|(255&e[++a])<<24,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>24,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^r,i-=4,++a;switch(i){case 3:o^=(255&e[a+2])<<16;case 2:o^=(255&e[a+1])<<8;case 1:o^=255&e[a],o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)}return o^=o>>>13,o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16),o^=o>>>15,o>>>0},r.v3=n,e.exports=r}()},12600(e,t,n){"use strict";n.d(t,{I9:()=>Qe,kn:()=>Ze,WY:()=>sr,lf:()=>Jn,Q_:()=>tr,Cj:()=>Gn,Pf:()=>Pe,ov:()=>pr,by:()=>lr,wI:()=>cr});var r=n(28796),i=(n(84011),n(8721)),o=n.n(i);const a=Math.pow(2,53);function s(e){return"number"==typeof e&&Math.abs(e)<=a}function u(e,t){if(!e)return{};const n={};return l(e,t,n),n}function l(e,t,n){e&&e.forEach(e=>{n[e[t]]=e})}function c(e){return Object.keys(e).map(t=>e[t])}function f(e,t){let n;for(const r of e)if(t(r)){n=r;break}return n}function d(e,...t){let n=0;return e.replace(/%s/g,function(){const e=t[n++],r=typeof e;return"function"===r?e():"string"===r?e:String(e)})}function p(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var v={checkArrayEquality:p,currentTimestamp:function(){return Math.round((new Date).getTime())},isSafeInteger:s,keyBy:u,uuid:function(){return(0,r.A)()},isNumber:function(e){return"number"==typeof e},getTimestamp:function(){return(new Date).getTime()},groupBy:function(e,t){const n={};
vendor: 4,262 bytes, line 2
2return e.forEach(e=>{const r=t(e);n[r]=n[r]||[],n[r].push(e)}),c(n)},objectValues:c,objectEntries:function(e){return Object.keys(e).map(t=>[t,e[t]])},find:f,sprintf:d};class h extends Error{constructor(e,...t){super(),this.resolved=!1,this.name="OptimizelyError",this.baseMessage=e,this.params=t,Object.setPrototypeOf(this,h.prototype)}setMessage(e){this.resolved||(this.message=d(e.resolve(this.baseMessage),...this.params),this.resolved=!0)}}const g="12",m="28",y="37",b="55",w="59",x="61",S="63",I=["BucketingID attribute is not a string. Defaulted to userId","CMAB decision fetch failed with status: %s","Error evaluating audience condition of type %s: %s","Datafile fetch request failed with status: %s","Error fetching datafile: %s","Event action invalid.","Event data invalid.","Event key %s is not in datafile.","Event store is full. Not saving event with id %d.","Experiment key %s is not in datafile.","Failed to dispatch events, status: %s","failed to send odp events","Feature key %s is not in datafile.","Provided attributes are in an invalid format.","Unable to generate hash for bucketing ID %s: %s","Invalid CMAB fetch response","Provided Optimizely config is in an invalid format.","Datafile is invalid - property %s: %s","Datafile is invalid because it is malformed.","This version of the JavaScript SDK does not support the given datafile version: %s","Provided event tags are in an invalid format.","Experiment ID %s is not in datafile.","Experiment key %s is not in datafile. It is either invalid, paused, or archived.","Group ID %s is not in datafile.","Provided %s is in an invalid format.","JSON object is not valid.","Invalid request URL: %s","Provided user ID is in an invalid format.","Provided user profile service instance is in an invalid format: %s.","Provided variation key is in an invalid format.",'Local holdout "%s" is missing or has empty "includedRules"; skipping.',"Integration key missing from datafile. All integrations should include a key.","Notification listener for (%s) threw exception: %s","Not tracking user %s.","No datafile specified. Cannot start optimizely.","No event processor is provided","No JSON object to validate against schema.","No project config available. Failing %s.","No status code in response","No variation key %s defined in datafile for experiment %s.","ODP config is not available.","ODP events should have at least one key-value pair in identifiers.","ODP event send failed.","ODP event manager stopped before it could start","ODP Manager is missing. %s failed.","ODP is not integrated","Only POST requests are supported",'Audience condition %s evaluated to UNKNOWN because the number value for user attribute "%s" is not in the range [-2^53, +2^53].',"Promise value is not allowed in sync operation","Request error","Request timeout","Retry cancelled","sendBeacon failed","%s not running",'unable to bind optimizely.close() to page unload event: "%s"',"Unable to cast value %s to type %s, returning null.","Unable to get VUID - VuidManager is not available","Unable to parse & skipped header item","Provided attribute: %s has an undefined value.","Audience condition %s evaluated to UNKNOWN because the condition value is not supported.","Attribute %s unexpectedly has reserved prefix %s; using attribute ID instead of reserved attribute name.",'Audience condition %s evaluated to UNKNOWN because a value of type "%s" was passed for user attribute "%s".',"Audience condition %s has an unknown condition type. You may need to upgrade to a newer release of the Optimizely SDK.","Audience condition %s uses an unknown match type. You may need to upgrade to a newer release of the Optimizely SDK.","Unrecognized attribute %s provided. Pruning before sending event to Optimizely.","Unrecognized decide option %s provided.","Unsupported protocol: %s","User %s is not in the forced variation map. Cannot remove their forced variation.",'Error while looking up user profile for user ID "%s": %s.','Error while saving user profile for user ID "%s": %s.','Variable with key "%s" associated with feature with key "%s" is not in datafile.','Requested variable type "%s", but variable is of type "%s". Use correct API to retrieve value. Returning None.',"Variation ID %s is not in the datafile."],k={dis
2patchEvent:function(e){const{params:t,url:n}=e,r=new Blob([JSON.stringify(t)],{type:"application/json"});return navigator.sendBeacon(n,r)?Promise.resolve({}):Promise.reject(new h("52"))}};var E;!function(e){e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error"}(E||(E={}));E.Debug,E.Info,E.Warn,E.Error;const C={[E.Debug]:"debug",[E.Info]:"info",[E.Warn]:"warn",[E.Error]:"error"};const T="31",P=["Adding Authorization header with Bearer Token",'Audience "%s" evaluated to %s.',"CMAB cache attributes mismatch for user %s and rule %s, fetching new decision.","Cache hit for user %s and rule %s.","Cache miss for user %s and rule %s.",'Starting to evaluate audience "%s" with conditions: %s.','Failed to parse revenue value "%s" from event tags.','Failed to parse event value "%s" from event tags.',"Feature %s is enabled for user %s.","Feature %s is not enabled for user %s.",'Feature "%s" is not enabled for user %s. Returning the default variable value "%s".',"Ignoring CMAB cache for user %s and rule %s.","Invalidating CMAB cache for user %s and rule %s.","Invalid client engine passed: %s. Defaulting to node-sdk.","Provided decide options is not an array. Using default decide options.","Provided default decide options is not an array.","Experiment key %s is not in datafile. It is either invalid, paused, or archived.","Making datafile request to url %s with headers: %s",'Audience condition %s evaluated to UNKNOWN because no value was passed for user attribute "%s".',"Not activating user %s for experiment %s.","ODP identify event is not dispatched (fewer than 2 valid identifiers).",'Parsed event value "%s" from event tags.','Parsed revenue value "%s" from event tags.',"Resetting CMAB cache for user %s and rule %s.","Response status code: %s","Saved last modified header value from response: %s",'Saved user profile for user "%s".',"User %s was previously bucketed into variation with ID %s for experiment %s, but no matching variation was found.",'Experiment %s is not in "Running" state. Not activating user.',"Skipping JSON schema validation.","Tracking event %s for user %s.",'Audience condition %s evaluated to UNKNOWN because a null value was passed for user attribute "%s".',"Updated Optimizely config to revision %s (project id %s)","User %s is not in the forced variation map.","No experiment %s mapped to user %s in the forced variation map.","Set variation %s for experiment %s and user %s in the forced variation map.",'User "%s" is not in any variation or rollout rule. Returning default value for variable "%s" of feature flag "%s".','Got variable value "%s" for variable "%s" of feature flag "%s"','BucketingId is valid: "%s"',"Datafile is valid.","Valid user profile service provided.",'Variable "%s" is not used in variation "%s". Returning default value.',"Variation mapped to experiment %s has been removed for user %s."],M={resolve(e){const t=parseInt(e);return P[t]||e}},_={resolve(e){const t=parseInt(e);return I[t]||e}},D=(E.Debug,E.Info,E.Warn,E.Error,Symbol(),Symbol());const A=Symbol(),O=["and","or","not"];function N(e,t){if(Array.isArray(e)){let n=e[0],r=e.slice(1);switch("string"==typeof n&&-1===O.indexOf(n)&&(n="or",r=e),n){case"and":return function(e,t){let n=!1;if(Array.isArray(e)){for(let r=0;r<e.length;r++){const i=N(e[r],t);if(!1===i)return!1;null===i&&(n=!0)}return!n||null}return null}(r,t);case"not":return function(e,t){if(Array.isArray(e)&&e.length>0){const n=N(e[0],t);return null===n?null:!n}return null}(r,t);default:return function(e,t){let n=!1;if(Array.isArray(e)){for(let r=0;r<e.length;r++){const i=N(e[r],t);if(!0===i)return!0;null===i&&(n=!0)}return!!n&&null}return null}(r,t)}}return t(e)}class R{constructor(e,t,n){var r,i;this.sdkKey=null!==(r=e.sdkKey)&&void 0!==r?r:"",this.environmentKey=null!==(i=e.environmentKey)&&void 0!==i?i:"",this.attributes=e.attributes,this.audiences=R.getAudiences(e),this.events=e.events,this.revision=e.revision;const o=(e.featureFlags||[]).reduce((e,t)=>(e[t.id]=t.variables,e),{}),a=R.getVariableIdMap(e),{experimentsMapById:s,experimentsMapByKey:u}=R.getExperimentsMap(e,o,a,n);this.experimentsMap=u,this.featuresMap=R.getFeaturesMap(e,o,s,a),this.datafile=t}getDatafile(){return this.datafile}static getAudiences(e){const t=[],n=[];
vendor: 18,342 bytes, line 2
2return(e.typedAudiences||[]).forEach(e=>{t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name}),n.push(e.id)}),(e.audiences||[]).forEach(e=>{-1===n.indexOf(e.id)&&"$opt_dummy_audience"!=e.id&&t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name})}),t}static getSerializedAudiences(e,t){let n="";if(e){let r="";e.forEach(e=>{let i="";if(e instanceof Array)i=R.getSerializedAudiences(e,t),i=`(${i})`;else if(O.indexOf(e)>-1)r=e.toUpperCase();else{const i=t[e]?t[e].name:e;n||"NOT"===r?(r=""===r?"OR":r,n=""===n?`${r} "${t[e].name}"`:n.concat(` ${r} "${i}"`)):n=`"${i}"`}""!==i&&(""!==n||"NOT"===r?(r=""===r?"OR":r,n=""===n?`${r} ${i}`:n.concat(` ${r} ${i}`)):n=n.concat(i))})}return n}static getExperimentAudiences(e,t){return e.audienceConditions?R.getSerializedAudiences(e.audienceConditions,t.audiencesById):""}static mergeFeatureVariables(e,t,n,r,i){const o=(e[n]||[]).reduce((e,t)=>(e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e),{});return(r||[]).forEach(e=>{const n=t[e.id],r={id:e.id,key:n.key,type:n.type,value:i?e.value:n.defaultValue};o[n.key]=r}),o}static getVariationsMap(e,t,n,r){let i={};return i=e.reduce((e,i)=>{const o=R.mergeFeatureVariables(t,n,r,i.variables,i.featureEnabled);return e[i.key]={id:i.id,key:i.key,featureEnabled:i.featureEnabled,variablesMap:o},e},{}),i}static getVariableIdMap(e){let t={};return t=(e.featureFlags||[]).reduce((e,t)=>(t.variables.forEach(t=>{e[t.id]=t}),e),{}),t}static getDeliveryRules(e,t,n,r,i){return r.map(r=>({id:r.id,key:r.key,audiences:R.getExperimentAudiences(r,e),variationsMap:R.getVariationsMap(r.variations,t,i,n)}))}static getRolloutExperimentIds(e){const t=[];return(e||[]).forEach(e=>{e.experiments.forEach(e=>{t.push(e.id)})}),t}static getExperimentsMap(e,t,n,r){const i=this.getRolloutExperimentIds(e.rollouts),o={},a={};return(e.experiments||[]).forEach(s=>{if(-1!==i.indexOf(s.id))return;const u=e.experimentFeatureMap[s.id];let l="";u&&u.length>0&&(l=u[0]);const c=R.getVariationsMap(s.variations,t,n,l.toString()),f={id:s.id,key:s.key,audiences:R.getExperimentAudiences(s,e),variationsMap:c};o[s.id]=f,a[s.key]&&r&&r.warn(`Duplicate experiment keys found in datafile: ${s.key}`),a[s.key]=f}),{experimentsMapById:o,experimentsMapByKey:a}}static getExperimentsKeyMap(e){const t={};for(const n in e){const r=e[n];t[r.key]=r}return t}static getFeaturesMap(e,t,n,r){const i={};return e.featureFlags.forEach(o=>{const a={},s=[];o.experimentIds.forEach(e=>{const t=n[e];t&&(a[t.key]=t),s.push(n[e])});const u=(o.variables||[]).reduce((e,t)=>(e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e),{});let l=[];const c=e.rolloutIdMap[o.rolloutId];c&&(l=R.getDeliveryRules(e,t,o.id,c.experiments,r)),i[o.key]={id:o.id,key:o.key,experimentRules:s,deliveryRules:l,experimentsMap:a,variablesMap:u}}),i}}const F="$opt_bot_filtering",j="$opt_bucketing_id",U="javascript-sdk",L="6.5.0",V="feature-test",B="rollout",K="experiment",z="holdout",q="experiment",H="boolean",W="double",G="integer",$="string",J="json",X="Optimizely SDK not configured properly yet.";class Q{constructor(e,t,n,r){this.apiKey=e,this.apiHost=t,this.pixelUrl=n,this.segmentsToCheck=r}equals(e){return this.apiHost===e.apiHost&&this.apiKey===e.apiKey&&this.pixelUrl===e.pixelUrl&&p(this.segmentsToCheck,e.segmentsToCheck)}}const Y="Running",Z="$opt_",ee=Object.values({V2:"2",V3:"3",V4:"4"}),te=function(e,t){if(!t.rolloutId)return null;const n=e.rolloutIdMap[t.rolloutId];if(!n||!n.experiments||0===n.experiments.length)return null;const r=n.experiments[n.experiments.length-1];return r.variations&&0!==r.variations.length?r.variations[0]:null},ne=(e,t)=>{e.holdouts=e.holdouts||[],e.localHoldouts=e.localHoldouts||[];const n={},r={},i=t=>{t.includedFlags=[],t.excludedFlags=[],t.variationKeyMap=u(t.variations,"key"),l(t.variations,"id",e.variationIdMap)};e.holdouts.forEach(e=>{i(e),delete e.includedRules,e.isGlobal=!0,r[e.id]=e}),e.localHoldouts.forEach(e=>{const o=e.includedRules;if(Array.isArray(o)&&0!==o.length){i(e),e.isGlobal=!1,r[e.id]=e;for(const t of o)n[t]||(n[t]=[]),n[t].push(e)}else null==t||t.error("30",e.key)}),e.holdoutIdMap=r,e.ruleHoldoutsMap=n},re=(e,t)=>{var n;return null!==(n=e.ruleHoldoutsMap[t])&&void 0!==n?n:[]},ie=function(e){return e.conditions?oe(e.conditions):[]},oe=e=>{const t=[];return function(e){return["and","or","not"].includes(e)}(e)?[]:(Array.isArray(e)?e.forEach(e=>t.push(...oe(e))):"qualified"===e.match&&t.push(e.value),t)},ae=function(e,t){const n=e.experimentKeyMap[t];if(!n)throw new h("22",t);return n.status},se=function(e,t){if(e.experimentKeyMap.hasOwnProperty(t)){const n=e.experimentKeyMap[t];if(n)return n}throw new h("9",t)},ue=function(e,t,n){if(!e)return null;const r=f(e.flagVariationsMap[t],e=>e.key===n);return r||null},le=function(e,t,n){if(e.featureKeyMap.hasOwnProperty(t)){const n=e.featureKeyMap[t];if(n)return n}return null==n||n.error(g,t),null},ce=function(e){return!!e.sendFlagDecisions},fe=()=>{};function de(){let e=fe,t=fe;const n=new Promise((n,r)=>{e=n,t=r});return{promise:n,resolve:e,reject:t,then:n.then.bind(n)}}const pe="%s failed to start, reason: %s",ve="%s stopped before running";var he;!function(e){e[e.New=0]="New",e[e.Starting=1]="Starting",e[e.Running=2]="Running",e[e.Stopping=3]="Stopping",e[e.Terminated=4]="Terminated",e[e.Failed=5]="Failed"}(he||(he={}));class ge{constructor(e=[]){this.disposable=!1,this.state=he.New,this.startPromise=de(),this.stopPromise=de(),this.startupLogs=e,this.startPromise.promise.catch(()=>{}),this.stopPromise.promise.catch(()=>{})}makeDisposable(){this.disposable=!0}setLogger(e){this.logger=e}printStartupLogs(){if(this.logger)for(const{level:e,message:t,params:n}of this.startupLogs){const r=C[e];this.logger[r].call(this.logger,t,...n)}}onRunning(){return this.startPromise.promise}onTerminated(){return this.stopPromise.promise}getState(){return this.state}isStarting(){return this.state===he.Starting}isRunning(){return this.state===he.Running}isNew(){return this.state===he.New}isDone(){return[he.Stopping,he.Terminated,he.Failed].includes(this.state)}start(){this.printStartupLogs()}}class me{constructor(){this.id=0,this.listeners={}}on(e,t){var n;this.listeners[e]||(this.listeners[e]=new Map);const r=this.id++;return null===(n=this.listeners[e])||void 0===n||n.set(r,t),()=>{var t;null===(t=this.listeners[e])||void 0===t||t.delete(r)}}emit(e,t){const n=this.listeners[e];n&&n.forEach(e=>{e(t)})}removeListeners(e){var t;null===(t=this.listeners[e])||void 0===t||t.clear()}removeAllListeners(){this.listeners={}}}class ye extends ge{constructor(e){super(),this.eventEmitter=new me,this.jsonSchemaValidator=e.jsonSchemaValidator,this.datafile=e.datafile,this.datafileManager=e.datafileManager,e.logger&&this.setLogger(e.logger)}setLogger(e){var t;this.logger=e,this.logger.setName("ProjectConfigManager"),null===(t=this.datafileManager)||void 0===t||t.setLogger(e.child())}start(){var e,t,n;this.isNew()&&(this.state=he.Starting,this.datafile||this.datafileManager?(this.datafile&&this.handleNewDatafile(this.datafile,!0),null===(e=this.datafileManager)||void 0===e||e.start(),null===(t=this.datafileManager)||void 0===t||t.onUpdate(this.handleNewDatafile.bind(this)),null===(n=this.datafileManager)||void 0===n||n.onRunning().catch(e=>{this.handleDatafileManagerError(e)})):this.handleInitError(new Error("sdkKey or datafile must be provided")))}makeDisposable(){var e;super.makeDisposable(),null===(e=this.datafileManager)||void 0===e||e.makeDisposable()}handleInitError(e){var t,n;null===(t=this.logger)||void 0===t||t.error(e),this.state=he.Failed,null===(n=this.datafileManager)||void 0===n||n.stop(),this.startPromise.reject(e),this.stopPromise.reject(e)}handleDatafileManagerError(e){var t;null===(t=this.logger)||void 0===t||t.error(pe,"DatafileManager",e.message),this.isStarting()&&this.handleInitError(new Error(d(pe,"DatafileManager",e.message)))}handleNewDatafile(e,t=!1){var n,r;if(!this.isDone())try{const t=function(e,t){var n,r;let i;try{i=JSON.parse(e)}catch(e){throw new h("18")}const o=i.version;if(-1===ee.indexOf(o))throw new h("19",o);return(null==t?void 0:t.jsonSchemaValidator)?(t.jsonSchemaValidator(i),null===(n=t.logger)||void 0===n||n.info("39")):null===(r=null==t?void 0:t.logger)||void 0===r||r.info("29"),i.region||(i.region="US"),i.__datafileStr=e,(e=>{(e.audiences||[]).forEach(e=>{e.conditions=JSON.parse(e.conditions)}),e.audiencesById={},l(e.audiences,"id",e.audiencesById),l(e.typedAudiences,"id",e.audiencesById)})(i),(e=>{e.attributes=e.attributes||[],e.attributeKeyMap={},e.attributeIdMap={},e.attributes.forEach(t=>{e.attributeKeyMap[t.key]=t,e.attributeIdMap[t.id]=t})})(i),i.eventKeyMap=u(i.events,"key"),(e=>{e.groupIdMap={},(e.groups||[]).forEach(t=>{e.groupIdMap[t.id]=t,(t.experiments||[]).forEach(n=>{n.groupId=t.id,e.experiments.push(n)})})})(i),(e=>{e.rolloutIdMap={},(e.rollouts||[]).forEach(t=>{e.rolloutIdMap[t.id]=t,(t.experiments||[]).forEach(t=>{t.isRollout=!0,e.experiments.push(t)})})})(i),(e=>{const t=new Set;Object.keys(e.audiencesById).forEach(n=>{ie(e.audiencesById[n]).forEach(e=>{t.add(e)})});const n=Array.from(t);let r=!1,i="",o="",a="";e.integrationKeyMap={},(e.integrations||[]).forEach(t=>{if(!("key"in t))throw new h("31");e.integrationKeyMap[t.key]=t,"odp"===t.key&&(r=!0,o=o||t.publicKey||"",i=i||t.host||"",a=a||t.pixelUrl||"")}),e.odpIntegrationConfig=r?{integrated:!0,odpConfig:new Q(o,i,a,n)}:{integrated:!1}})(i),(e=>{e.experimentKeyMap={},e.experimentIdMap={},e.variationIdMap={},e.variationVariableUsageMap={},(e.experiments||[]).forEach(t=>{e.experimentKeyMap[t.key]=t,e.experimentIdMap[t.id]=t,t.variationKeyMap={},(t.variations||[]).forEach(n=>{t.variationKeyMap[n.key]=n,e.variationIdMap[n.id]=n,n.variables&&(e.variationVariableUsageMap[n.id]=u(n.variables,"id"))})})})(i),(e=>{e.experimentFeatureMap={},e.featureKeyMap={},e.flagRulesMap={},e.flagVariationsMap={},(e.featureFlags||[]).forEach(t=>{e.featureKeyMap[t.key]=t,t.variableKeyMap={},t.variables.forEach(e=>{e.type===$&&e.subType===J&&(e.type=J,delete e.subType),t.variableKeyMap[e.key]=e});const n=[],r={},i=te(e,t);(t.experimentIds||[]).forEach(o=>{e.experimentFeatureMap[o]=e.experimentFeatureMap[o]||[],e.experimentFeatureMap[o].push(t.id);const a=e.experimentIdMap[o];n.push(a),a&&"fr"===a.type&&i&&(a.variations.push(i),a.trafficAllocation.push({entityId:i.id,endOfRange:1e4}),a.variationKeyMap[i.key]=i),(a.variations||[]).forEach(e=>{r[e.id]=e})});const o=e.rolloutIdMap[t.rolloutId];o&&(o.experiments||[]).forEach(e=>{n.push(e),(e.variations||[]).forEach(e=>{r[e.id]=e})}),e.flagRulesMap[t.key]=n,e.flagVariationsMap[t.key]=Object.values(r)})})(i),ne(i,null==t?void 0:t.logger),i}(e,{jsonSchemaValidator:this.jsonSchemaValidator,logger:this.logger});this.isStarting()&&(this.state=he.Running,this.startPromise.resolve()),(null===(n=this.projectConfig)||void 0===n?void 0:n.revision)!==t.revision&&(this.projectConfig=t,this.optimizelyConfig=void 0,this.eventEmitter.emit("update",t))}catch(e){null===(r=this.logger)||void 0===r||r.error(e),(this.isStarting()&&!this.datafileManager||this.isStarting()&&!t)&&this.handleInitError(new Error("got invalid datafile"))}}getConfig(){return this.projectConfig}getOptimizelyConfig(){var e,t,n;return!this.optimizelyConfig&&this.projectConfig&&(this.optimizelyConfig=(e=this.projectConfig,t=this.projectConfig.__datafileStr,n=this.logger,new R(e,t,n))),this.optimizelyConfig}onUpdate(e){return this.eventEmitter.on("update",e)}stop(){if(!this.isDone()){if((this.isNew()||this.isStarting())&&this.startPromise.reject(new Error(d(ve,"ProjectConfigManager"))),this.state=he.Stopping,this.eventEmitter.removeAllListeners(),!this.datafileManager)return this.state=he.Terminated,void this.stopPromise.resolve();this.datafileManager.stop(),this.datafileManager.onTerminated().then(()=>{this.state=he.Terminated,this.stopPromise.resolve()}).catch(e=>{this.state=he.Failed,this.stopPromise.reject(e)})}}}function be(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const we=e=>e>=200&&e<400;class xe extends ge{constructor(e){super(e.startupLogs);const{autoUpdate:t=!1,sdkKey:n,datafileAccessToken:r,customHeaders:i,urlTemplate:o,cache:a,initRetry:s,repeater:u,requestHandler:l,logger:c}=e;this.cache=a,this.cacheKey="opt-datafile-"+n,this.sdkKey=n,this.datafileAccessToken=r,this.customHeaders=i,this.requestHandler=l,this.emitter=new me,this.autoUpdate=t,this.initRetryRemaining=s,this.repeater=u,c&&this.setLogger(c);const f=o||(r?"https://config.optimizely.com/datafiles/auth/%s.json":"https://cdn.optimizely.com/datafiles/%s.json");this.datafileUrl=d(f,this.sdkKey)}setLogger(e){this.logger=e,this.logger.setName("PollingDatafileManager")}onUpdate(e){return this.emitter.on("update",e)}get(){return this.currentDatafile}start(){this.isNew()&&(super.start(),this.state=he.Starting,this.setDatafileFromCacheIfAvailable(),this.repeater.setTask(this.syncDatafile.bind(this)),this.repeater.start(!0))}makeDisposable(){var e;super.makeDisposable(),this.initRetryRemaining=Math.min(null!==(e=this.initRetryRemaining)&&void 0!==e?e:5,5)}stop(){var e;this.isDone()||((this.isNew()||this.isStarting())&&this.startPromise.reject(new Error(d(ve,"PollingDatafileManager"))),this.state=he.Terminated,this.repeater.stop(),null===(e=this.currentRequest)||void 0===e||e.abort(),this.emitter.removeAllListeners(),this.stopPromise.resolve())}handleInitFailure(){this.state=he.Failed,this.repeater.stop();const e=new Error("Failed to fetch datafile");this.startPromise.reject(e),this.stopPromise.reject(e)}handleError(e){var t,n;this.isDone()||(e instanceof Error?null===(t=this.logger)||void 0===t||t.error("4",e.message,e):null===(n=this.logger)||void 0===n||n.error("3",e),this.isStarting()&&void 0!==this.initRetryRemaining&&(0===this.initRetryRemaining?this.handleInitFailure():this.initRetryRemaining--))}onRequestRejected(e){return be(this,void 0,void 0,function*(){return this.handleError(e),Promise.reject(e)})}onRequestResolved(e){return be(this,void 0,void 0,function*(){if(this.isDone())return;if(this.saveLastModified(e.headers),!we(e.statusCode))return this.handleError(e.statusCode),Promise.reject(new Error);const t=this.getDatafileFromResponse(e);t&&(this.handleDatafile(t),this.autoUpdate&&!this.disposable||this.repeater.stop())})}makeDatafileRequest(){var e,t;const n=Object.assign({},this.customHeaders);return this.lastResponseLastModified&&(n["if-modified-since"]=this.lastResponseLastModified),this.datafileAccessToken&&(null===(e=this.logger)||void 0===e||e.debug("0"),n.Authorization=`Bearer ${this.datafileAccessToken}`),null===(t=this.logger)||void 0===t||t.debug("17",this.datafileUrl,()=>JSON.stringify(n)),this.requestHandler.makeRequest(this.datafileUrl,n,"GET")}syncDatafile(){return be(this,void 0,void 0,function*(){return this.currentRequest=this.makeDatafileRequest(),this.currentRequest.responsePromise.then(this.onRequestResolved.bind(this),this.onRequestRejected.bind(this)).finally(()=>this.currentRequest=void 0)})}handleDatafile(e){var t;this.isDone()||(this.currentDatafile=e,null===(t=this.cache)||void 0===t||t.set(this.cacheKey,e),this.isStarting()&&(this.startPromise.resolve(),this.state=he.Running),this.emitter.emit("update",e))}getDatafileFromResponse(e){var t;if(null===(t=this.logger)||void 0===t||t.debug("24",e.statusCode),304!==e.statusCode)return e.body}saveLastModified(e){var t;const n=e["last-modified"]||e["Last-Modified"];void 0!==n&&(this.lastResponseLastModified=n,null===(t=this.logger)||void 0===t||t.debug("25",this.lastResponseLastModified))}setDatafileFromCacheIfAvailable(){return be(this,void 0,void 0,function*(){if(this.cache)try{const e=yield this.cache.get(this.cacheKey);e&&this.isStarting()&&this.handleDatafile(e)}catch(e){}})}}class Se{constructor(e,t,n){this.base=e,this.max=t,this.maxJitter=n,this.maxJitter>this.base/2&&(this.maxJitter=this.base/2),this.maxJitter=n,this.current=e}backoff(){const e=this.current+this.maxJitter*Math.random();return this.current=Math.min(2*this.current,this.max),e}reset(){this.current=this.base}}class Ie{constructor(e){this.value=e}backoff(){return this.value}reset(){}}class ke{constructor(e,t){this.failureCount=0,this.running=!1,this.interval=e,this.backoffController=t}isRunning(){return this.running}handleSuccess(){var e;this.failureCount=0,null===(e=this.backoffController)||void 0===e||e.reset(),this.setTimer(this.interval)}handleFailure(){var e,t;this.failureCount++;const n=null!==(t=null===(e=this.backoffController)||void 0===e?void 0:e.backoff())&&void 0!==t?t:this.interval;this.setTimer(n)}setTimer(e){this.running&&(this.timeoutId=setTimeout(this.executeTask.bind(this),e))}executeTask(){this.task&&this.task(this.failureCount).then(this.handleSuccess.bind(this),this.handleFailure.bind(this))}start(e){var t;this.running=!0,e?(t=this.executeTask.bind(this),"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t)):this.setTimer(this.interval)}stop(){this.running=!1,clearInterval(this.timeoutId)}reset(){var e;this.failureCount=0,null===(e=this.backoffController)||void 0===e||e.reset(),this.stop()}setTask(e){this.task=e}}const Ee=e=>{const t=[];if(!e||"object"!=typeof e)throw new Error("Invalid store");for(const n of["set","get","remove","getKeys"])"function"!=typeof e[n]&&t.push("Invalid store method %s".replace("%s",n));if(t.length>0)throw new Error(t.join(", "))},Ce="Invalid config manager",Te=Symbol(),Pe=e=>({[Te]:new ye(e)}),Me=e=>{var t;e.cache&&Ee(e.cache);const n=null!==(t=e.updateInterval)&&void 0!==t?t:3e5,r=new Se(1e3,n,500),i=new ke(n,r),o=[];n<3e4&&o.push({level:E.Warn,message:"Polling intervals below 30 seconds are not recommended.",params:[]});const a={sdkKey:e.sdkKey,autoUpdate:e.autoUpdate,urlTemplate:e.urlTemplate,datafileAccessToken:e.datafileAccessToken,customHeaders:e.customHeaders,requestHandler:e.requestHandler,cache:e.cache,repeater:i,startupLogs:o},s=new xe(a);return new ye({datafile:e.datafile,datafileManager:s,jsonSchemaValidator:e.jsonSchemaValidator})};class _e{constructor(){this.operation="sync"}}class De{constructor(){this.operation="async"}}const Ae=(e,t)=>
2e instanceof _e?e.getBatched(t):t.map(t=>e.get(t)),Oe=(e,t)=>e instanceof De?e.getBatched(t):Promise.all(t.map(t=>e.get(t)));class Ne extends _e{constructor(e,t,n,r){super(),this.operation="sync",this.store=e,this.prefix=t,this.transformGet=n,this.transformSet=r}addPrefix(e){return`${this.prefix}${e}`}removePrefix(e){return e.substring(this.prefix.length)}set(e,t){return this.store.set(this.addPrefix(e),this.transformSet(t))}get(e){const t=this.store.get(this.addPrefix(e));return t?this.transformGet(t):void 0}remove(e){return this.store.remove(this.addPrefix(e))}getInternalKeys(){return this.store.getKeys().filter(e=>e.startsWith(this.prefix))}getKeys(){return this.getInternalKeys().map(e=>this.removePrefix(e))}getBatched(e){return Ae(this.store,e.map(e=>this.addPrefix(e))).map(e=>e?this.transformGet(e):void 0)}}class Re{constructor(e,t,n,r){this.operation="async",this.cache=e,this.prefix=t,this.transformGet=n,this.transformSet=r}addPrefix(e){return`${this.prefix}${e}`}removePrefix(e){return e.substring(this.prefix.length)}set(e,t){return this.cache.set(this.addPrefix(e),this.transformSet(t))}get(e){return be(this,void 0,void 0,function*(){const t=yield this.cache.get(this.addPrefix(e));return t?this.transformGet(t):void 0})}remove(e){return this.cache.remove(this.addPrefix(e))}getInternalKeys(){return be(this,void 0,void 0,function*(){return this.cache.getKeys().then(e=>e.filter(e=>e.startsWith(this.prefix)))})}getKeys(){return be(this,void 0,void 0,function*(){return this.getInternalKeys().then(e=>e.map(e=>this.removePrefix(e)))})}getBatched(e){return be(this,void 0,void 0,function*(){return(yield Oe(this.cache,e.map(e=>this.addPrefix(e)))).map(e=>e?this.transformGet(e):void 0)})}}const Fe={US:"https://logx.optimizely.com/v1/events",EU:"https://eu.logx.optimizely.com/v1/events"};function je(e){const t=[],n=e[0];return e.forEach(e=>{if("conversion"===e.type||"impression"===e.type){const n=function(e){const t={snapshots:[],visitor_id:e.user.id,attributes:[]};return e.user.attributes.forEach(e=>{t.attributes.push({entity_id:e.entityId,key:e.key,type:"custom",value:e.value})}),"boolean"==typeof e.context.botFiltering&&t.attributes.push({entity_id:F,key:F,type:"custom",value:e.context.botFiltering}),t}(e);"impression"===e.type?n.snapshots.push(function(e){var t;const{layer:n,experiment:r,variation:i,ruleKey:o,flagKey:a,ruleType:s,enabled:u,cmabUuid:l}=e,c=null==n?void 0:n.id,f=null!==(t=null==r?void 0:r.id)&&void 0!==t?t:"",d=c||f||null;var p;return{decisions:[{campaign_id:d,experiment_id:f,variation_id:(p=null==i?void 0:i.id)&&/^[0-9]+$/.test(p)?p:null,metadata:{flag_key:a,rule_key:o,rule_type:s,variation_key:i?i.key:"",enabled:u,cmab_uuid:l}}],events:[{entity_id:d,timestamp:e.timestamp,key:"campaign_activated",uuid:e.uuid}]}}(e)):"conversion"===e.type&&n.snapshots.push(function(e){const t=Object.assign({},e.tags);delete t.revenue,delete t.value;const n={entity_id:e.event.id,key:e.event.key,timestamp:e.timestamp,uuid:e.uuid};return e.tags&&(n.tags=e.tags),null!=e.value&&(n.value=e.value),null!=e.revenue&&(n.revenue=e.revenue),{events:[n]}}(e)),t.push(n)}}),{client_name:n.context.clientName,client_version:n.context.clientVersion,account_id:n.context.accountId,project_id:n.context.projectId,revision:n.context.revision,anonymize_ip:n.context.anonymizeIP,enrich_decisions:!0,visitors:t}}function Ue(e){var t;const n=(null===(t=e[0])||void 0===t?void 0:t.context.region)||"US";return{url:Fe[n]||Fe.US,httpVerb:"POST",params:je(e)}}const Le=(e,t,n,r,i)=>{e().then(e=>{t.resolve(e)}).catch(o=>{var a;if(0===i)return void t.reject(o);if(n.cancelled)return void t.reject(new h("51"));const s=null!==(a=null==r?void 0:r.backoff())&&void 0!==a?a:0;setTimeout(()=>{Le(e,t,n,r,i=void 0===i?void 0:i-1)},s)})},Ve=(e,t,n)=>{const r=de(),i={cancelled:!1};return Le(e,r,i,t,n),{cancelRetry:()=>{i.cancelled=!0},result:r.promise}};class Be{constructor(){this.idSuffixOffset=0}getId(){const e=1e4+this.idSuffixOffset;return this.idSuffixOffset=(this.idSuffixOffset+1)%1e4,`${Date.now()}${e}`}}function Ke(e){var t,n;return null!==(n=null===(t=e.experiment)||void 0===t?void 0:t.key)&&void 0!==n?n:""}function ze(e){var t,n;return null!==(n=null===(t=e.variation)||void 0===t?void 0:t.key)&&void 0!==n?n:""}function qe(e){var t,n;return null!==(n=null===(t=e.variation)||void 0===t?void 0:t.featureEnabled)&&void 0!==n&&n}const He="ab-test",We="feature",Ge="feature-test",$e="feature-variable",Je="all-feature-variables",Xe="flag",Qe={ACTIVATE:"ACTIVATE",DECISION:"DECISION",LOG_EVENT:"LOG_EVENT",OPTIMIZELY_CONFIG_UPDATE:"OPTIMIZELY_CONFIG_UPDATE",TRACK:"TRACK"};var Ye,Ze;!function(e){e.BOOLEAN="boolean",e.DOUBLE="double",e.INTEGER="integer",e.STRING="string",e.JSON="json"}(Ye||(Ye={})),function(e){e.DISABLE_DECISION_EVENT="DISABLE_DECISION_EVENT",e.ENABLED_FLAGS_ONLY="ENABLED_FLAGS_ONLY",e.IGNORE_USER_PROFILE_SERVICE="IGNORE_USER_PROFILE_SERVICE",e.INCLUDE_REASONS="INCLUDE_REASONS",e.EXCLUDE_VARIABLES="EXCLUDE_VARIABLES",e.IGNORE_CMAB_CACHE="IGNORE_CMAB_CACHE",e.RESET_CMAB_CACHE="RESET_CMAB_CACHE",e.INVALIDATE_USER_CMAB_CACHE="INVALIDATE_USER_CMAB_CACHE"}(Ze||(Ze={}));const et=(e,t)=>{const n=e.context,r=t.context;return(n.region||"US")===(r.region||"US")&&n.accountId===r.accountId&&n.projectId===r.projectId&&n.clientName===r.clientName&&n.clientVersion===r.clientVersion&&n.revision===r.revision&&n.anonymizeIP===r.anonymizeIP&&n.botFiltering===r.botFiltering},tt=({configObj:e,userId:t,userAttributes:n,clientEngine:r,clientVersion:i,type:o})=>({type:o,timestamp:v.currentTimestamp(),uuid:v.uuid(),context:{regi
vendor: 13,314 bytes, line 2
2on:e.region,accountId:e.accountId,projectId:e.projectId,revision:e.revision,clientName:r,clientVersion:i,anonymizeIP:e.anonymizeIP||!1,botFiltering:e.botFiltering},user:{id:t,attributes:nt(e,n)}}),nt=(e,t,n)=>{if(!t)return[];const r=[];return Object.keys(t).forEach(function(i){const o=t[i];if("object"!=typeof o&&void 0!==o&&function(e,t){return"string"==typeof e&&("string"==typeof t||"boolean"==typeof t||v.isNumber(t)&&v.isSafeInteger(t))}(i,o)){const t=function(e,t,n){const r=e.attributeKeyMap[t],i=0===t.indexOf(Z);return r?(i&&(null==n||n.warn("60",t,Z)),r.id):i?t:(null==n||n.warn("64",t),null)}(e,i,n);t&&r.push({entityId:t,key:i,value:o})}}),r};class rt extends ge{constructor(e){var t;super(e.startupLogs),this.eventQueue=[],this.idGenerator=new Be,this.runningTask=new Map,this.dispatchingEvents=new Map,this.eventEmitter=new me,this.eventDispatcher=e.eventDispatcher,this.closingEventDispatcher=e.closingEventDispatcher,this.batchSize=e.batchSize,this.eventStore=e.eventStore,this.retryConfig=e.retryConfig,this.dispatchRepeater=e.dispatchRepeater,this.dispatchRepeater.setTask(()=>this.flush()),this.failedEventRepeater=e.failedEventRepeater,null===(t=this.failedEventRepeater)||void 0===t||t.setTask(()=>this.retryFailedEvents()),e.logger&&this.setLogger(e.logger)}setLogger(e){this.logger=e,this.logger.setName("BatchEventProcessor")}onDispatch(e){return this.eventEmitter.on("dispatch",e)}retryFailedEvents(){return be(this,void 0,void 0,function*(){if(!this.eventStore)return;const e=(yield this.eventStore.getKeys()).filter(e=>!this.dispatchingEvents.has(e)&&!this.eventQueue.find(t=>t.id===e)),t=yield"sync"===this.eventStore.operation?Ae(this.eventStore,e):Oe(this.eventStore,e),n=[];if(t.forEach(e=>{e&&n.push(e)}),0==n.length)return;n.sort((e,t)=>e.id<t.id?-1:1);const r=[];let i=[];n.forEach(e=>{(i.length===this.batchSize||i.length>0&&!et(i[0].event,e.event))&&(r.push({request:Ue(i.map(e=>e.event)),events:i}),i=[]),i.push(e)}),i.length>0&&r.push({request:Ue(i.map(e=>e.event)),events:i}),r.forEach(e=>{this.dispatchBatch(e,!1)})})}createNewBatch(){if(0==this.eventQueue.length)return;const e=[],t=[];return this.eventQueue.forEach(n=>{e.push(n.event),t.push(n)}),this.eventQueue=[],{request:Ue(e),events:t}}executeDispatch(e,t=!1){return be(this,void 0,void 0,function*(){return(t&&this.closingEventDispatcher?this.closingEventDispatcher:this.eventDispatcher).dispatchEvent(e).then(e=>e.statusCode&&!we(e.statusCode)?Promise.reject(new h("10",e.statusCode)):Promise.resolve(e))})}dispatchBatch(e,t){const{request:n,events:r}=e;r.forEach(e=>{this.dispatchingEvents.set(e.id,e)});const i=this.retryConfig?Ve(()=>this.executeDispatch(n,t),this.retryConfig.backoffProvider(),this.retryConfig.maxRetries):{result:this.executeDispatch(n,t),cancelRetry:()=>{}};this.eventEmitter.emit("dispatch",n);const o=this.idGenerator.getId();this.runningTask.set(o,i),i.result.then(e=>(r.forEach(e=>{var t;null===(t=this.eventStore)||void 0===t||t.remove(e.id)}),Promise.resolve())).catch(e=>{var t;null===(t=this.logger)||void 0===t||t.error(e)}).finally(()=>{this.runningTask.delete(o),r.forEach(e=>this.dispatchingEvents.delete(e.id))})}flush(e=!1){return be(this,void 0,void 0,function*(){const t=this.createNewBatch();t&&(this.dispatchRepeater.reset(),this.dispatchBatch(t,e))})}process(e){var t;return be(this,void 0,void 0,function*(){if(!this.isRunning())return Promise.reject(new h("53","BatchEventProcessor"));const n={id:this.idGenerator.getId(),event:e};yield Promise.resolve(null===(t=this.eventStore)||void 0===t?void 0:t.set(n.id,n)).catch(e=>{var t;null===(t=this.logger)||void 0===t||t.error(e)}),this.eventQueue.length>0&&!et(this.eventQueue[0].event,e)&&this.flush(),this.eventQueue.push(n),this.eventQueue.length==this.batchSize?this.flush():this.dispatchRepeater.isRunning()||this.dispatchRepeater.start()})}start(){var e;this.isNew()&&(super.start(),this.state=he.Running,this.disposable||null===(e=this.failedEventRepeater)||void 0===e||e.start(),this.retryFailedEvents(),this.startPromise.resolve())}makeDisposable(){var e,t,n;super.makeDisposable(),this.batchSize=1,this.retryConfig={maxRetries:Math.min(null!==(t=null===(e=this.retryConfig)||void 0===e?void 0:e.maxRetries)&&void 0!==t?t:5,5),backoffProvider:(null===(n=this.retryConfig)||void 0===n?void 0:n.backoffProvider)||(()=>new Se(200,1e3,500))}}flushImmediately(){return this.isRunning()?this.flush(!0):Promise.resolve()}stop(){var e;this.isDone()||(this.isNew()&&this.startPromise.reject(new Error(d(ve,"BatchEventProcessor"))),this.state=he.Stopping,this.dispatchRepeater.stop(),null===(e=this.failedEventRepeater)||void 0===e||e.stop(),this.flush(!0),this.runningTask.forEach(e=>e.cancelRetry()),Promise.allSettled(Array.from(this.runningTask.values()).map(e=>e.result)).then(()=>{this.state=he.Terminated,this.stopPromise.resolve()}))}}class it{constructor(){this.waitPromise=Promise.resolve()}run(e){const t=this.waitPromise.then(e);return this.waitPromise=t.catch(()=>{}),t}}const ot=e=>e,at="optly_event:";class st extends De{constructor(e){super(),this.operation="async",this.serializer=new it;const{maxSize:t,ttl:n,store:r,logger:i}=e;"sync"===r.operation?this.store=new Ne(r,at,ot,ot):this.store=new Re(r,at,ot,ot),i&&(i.setName("EventStore"),this.logger=i),this.maxSize=t||500,this.ttl=n||864e6}readKeys(){return be(this,void 0,void 0,function*(){return this.serializer.run(()=>be(this,void 0,void 0,function*(){var e;if(void 0===this.keys)try{this.keys=new Set(yield this.getKeys())}catch(t){null===(e=this.logger)||void 0===e||e.error(t)}}))})}set(e,t){var n;return be(this,void 0,void 0,function*(){return yield this.readKeys(),void 0!==this.keys&&this.keys.size>=this.maxSize?Promise.reject(new h("8",t.event.uuid)):(null===(n=this.keys)||void 0===n||n.add(e),this.store.set(e,Object.assign(Object.assign({},t),{_time:{storedAt:Date.now(),ttl:this.ttl}})))})}processStoredEvent(e,t){if(t){if(void 0===t._time)return t._time={storedAt:Date.now(),ttl:this.ttl},this.set(e,t).catch(()=>{}),t;if(!(t._time.storedAt+this.ttl<=Date.now()))return t;this.remove(e).catch(()=>{})}}get(e){return be(this,void 0,void 0,function*(){const t=yield this.store.get(e);return this.processStoredEvent(e,t)})}remove(e){var t;return be(this,void 0,void 0,function*(){yield this.store.remove(e),null===(t=this.keys)||void 0===t||t.delete(e)})}getKeys(){return be(this,void 0,void 0,function*(){const e=yield this.store.getKeys();return this.keys=new Set(e),e})}getBatched(e){return be(this,void 0,void 0,function*(){return(yield this.store.getBatched(e)).map((t,n)=>this.processStoredEvent(e[n],t))})}}const ut=Symbol(),lt=e=>{if(!e||"object"!=typeof e||"function"!=typeof e.dispatchEvent)throw new Error("Invalid event dispatcher")},ct=e=>({[ut]:e});class ft{constructor(e,t){this.operation="sync",this.data=new Map,this.maxSize=e,this.ttl=t}lookup(e){const t=this.data.get(e);if(t&&(this.data.delete(e),!(t.expiresAt&&t.expiresAt<=Date.now())))return this.data.set(e,t),t.value}save(e,t){if(this.data.delete(e),this.data.size===this.maxSize){const e=this.data.keys().next().value;this.data.delete(e)}this.data.set(e,{value:t,expiresAt:this.ttl?Date.now()+this.ttl:void 0})}remove(e){this.data.delete(e)}reset(){this.data.clear()}getKeys(){return Array.from(this.data.keys())}}var dt,pt;!function(e){e.VUID="vuid",e.FS_USER_ID="fs_user_id",e.FS_USER_ID_ALIAS="fs-user-id"}(dt||(dt={})),function(e){e.IDENTIFIED="identified",e.INITIALIZED="client_initialized"}(pt||(pt={}));class vt{constructor(e,t,n,r){this.type=e,this.action=t,this.identifiers=null!=n?n:new Map,this.data=null!=r?r:new Map}}const ht="vuid_",gt=e=>e.startsWith(ht)&&e.length>5;var mt;!function(e){e.IGNORE_CACHE="IGNORE_CACHE",e.RESET_CACHE="RESET_CACHE"}(mt||(mt={}));const yt=Symbol(),bt=Symbol();class wt{constructor(e,t){this.logger=e,this.errorNotifier=t}report(e,...t){if("string"==typeof e)return e=new h(e,...t),void this.report(e);this.errorNotifier&&this.errorNotifier.notify(e),this.logger&&this.logger.error(e)}setLogger(e){this.logger=e}setErrorNotifier(e){this.errorNotifier=e}}class xt{constructor(e){this.removerId=1,this.eventEmitter=new me,this.removers=new Map,this.errorReporter=new wt(e.logger,e.errorNotifier)}addNotificationListener(e,t){if(!(c(Qe).indexOf(e)>-1))return-1;const n=this.removerId++,r=this.eventEmitter.on(e,this.wrapWithErrorReporting(e,t));return this.removers.set(n,r),n}wrapWithErrorReporting(e,t){return n=>{try{t(n)}catch(t){const n=t instanceof Error?t.message:String(t);this.errorReporter.report("32",e,n)}}}removeNotificationListener(e){const t=this.removers.get(e);return!!t&&(t(),!0)}clearAllNotificationListeners(){this.eventEmitter.removeAllListeners()}clearNotificationListeners(e){this.eventEmitter.removeListeners(e)}sendNotifications(e,t){this.eventEmitter.emit(e,t)}}function St(e,t,n){return{variationKey:null,enabled:!1,variables:{},ruleKey:null,flagKey:e,userContext:t,reasons:n}}const It="$opt_null_rule_key";class kt{constructor({optimizely:e,userId:t,attributes:n}){this._qualifiedSegments=null,this.optimizely=e,this.userId=t,this.attributes=Object.assign({},n),this.forcedDecisionsMap={}}setAttribute(e,t){this.attributes[e]=t}getUserId(){return this.userId}getAttributes(){return Object.assign({},this.attributes)}getOptimizely(){return this.optimizely}get qualifiedSegments(){return this._qualifiedSegments}set qualifiedSegments(e){this._qualifiedSegments=e}decide(e,t=[]){return this.optimizely.decide(this.cloneUserContext(),e,t)}decideAsync(e,t){return this.optimizely.decideAsync(this.cloneUserContext(),e,t)}decideForKeys(e,t=[]){return this.optimizely.decideForKeys(this.cloneUserContext(),e,t)}decideForKeysAsync(e,t){return this.optimizely.decideForKeysAsync(this.cloneUserContext(),e,t)}decideAll(e=[]){return this.optimizely.decideAll(this.cloneUserContext(),e)}decideAllAsync(e=[]){return this.optimizely.decideAllAsync(this.cloneUserContext(),e)}trackEvent(e,t){this.optimizely.track(e,this.userId,this.attributes,t)}setForcedDecision(e,t){var n;const r=e.flagKey,i=null!==(n=e.ruleKey)&&void 0!==n?n:It,o={variationKey:t.variationKey};return this.forcedDecisionsMap[r]||(this.forcedDecisionsMap[r]={}),this.forcedDecisionsMap[r][i]=o,!0}getForcedDecision(e){return this.findForcedDecision(e)}removeForcedDecision(e){var t;const n=null!==(t=e.ruleKey)&&void 0!==t?t:It,r=e.flagKey;let i=!1;return this.forcedDecisionsMap.hasOwnProperty(r)&&(this.forcedDecisionsMap[r].hasOwnProperty(n)&&(delete this.forcedDecisionsMap[r][n],i=!0),0===Object.keys(this.forcedDecisionsMap[r]).length&&delete this.forcedDecisionsMap[r]),i}removeAllForcedDecisions(){return this.forcedDecisionsMap={},!0}findForcedDecision(e){var t;let n;const r=null!==(t=e.ruleKey)&&void 0!==t?t:It,i=e.flagKey;if(this.forcedDecisionsMap.hasOwnProperty(e.flagKey)){const e=this.forcedDecisionsMap[i];if(e.hasOwnProperty(r))return n=e[r].variationKey,{variationKey:n}}return null}cloneUserContext(){const e=new kt({optimizely:this.getOptimizely(),userId:this.getUserId(),attributes:this.getAttributes()});return Object.keys(this.forcedDecisionsMap).length>0&&(e.forcedDecisionsMap=Object.assign({},this.forcedDecisionsMap)),e._qualifiedSegments=this._qualifiedSegments,e}fetchQualifiedSegments(e){return be(this,void 0,void 0,function*(){const t=yield this.optimizely.fetchQualifiedSegments(this.userId,e);return this.qualifiedSegments=t,null!==t})}isQualifiedFor(e){return!!this._qualifiedSegments&&this._qualifiedSegments.indexOf(e)>-1}}const Et=Math.pow(2,32),Ct=function(e){try{const t=o().v3(e,1)/Et;return Math.floor(1e4*t)}catch(t){throw new h("14",e,t.message)}},Tt="User %s is not in any experiment of group %s.",Pt="User %s is not in experiment %s of group %s.",Mt="User %s is in experiment %s of group %s.",_t="Assigned bucket %s to user with bucketing ID %s.",Dt="Bucketed into an invalid variation ID. Returning null.",At=function(e){var t,n,r,i,o;const a=[],s=e.experimentIdMap[e.experimentId],u=null==s?void 0:s.groupId;if(u){const i=e.groupIdMap[u];if(!i)throw new h("23",u);if("random"===i.policy){const o=Ot(i,e.bucketingId,e.userId,e.logger);if(null===o)return null===(t=e.logger)||void 0===t||t.info(Tt,e.userId,u),a.push([Tt,e.userId,u]),{result:null,reasons:a};if(o!==e.experimentId)return null===(n=e.logger)||void 0===n||n.info(Pt,e.userId,e.experimentKey,u),a.push([Pt,e.userId,e.experimentKey,u]),{result:null,reasons:a};null===(r=e.logger)||void 0===r||r.info(Mt,e.userId,e.experimentKey,u),a.push([Mt,e.userId,e.experimentKey,u])}}const l=`${e.bucketingId}${e.experimentId}`,c=Ct(l);null===(i=e.logger)||void 0===i||i.debug(_t,c,e.userId),a.push([_t,c,e.userId]);const f=Nt(c,e.trafficAllocationConfig);return e.validateEntity&&null!==f&&!e.variationIdMap[f]?(f&&(null===(o=e.logger)||void 0===o||o.warn(Dt),a.push([Dt])),{result:null,reasons:a}):{result:f,reasons:a}},Ot=function(e,t,n,r){const i=`${t}${e.id}`,o=Ct(i);null==r||r.debug(_t,o,n);const a=e.trafficAllocation;return Nt(o,a)},Nt=function(e,t){for(let n=0;n<t.length;n++)if(e<t[n].endOfRange)return t[n].entityId;return null};function Rt(e){return/^\d+$/.test(e)}function Ft(e){const t=e.indexOf("-"),n=e.indexOf("+");return!(t<0)&&(n<0||t<n)}function jt(e){const t=e.indexOf("-"),n=e.indexOf("+");return!(n<0)&&(t<0||n<t)}function Ut(e,t){let n=e,r="";if(function(e){return/\s/.test(e)}(e))return null==t||t.warn(S,e),null;
2if(Ft(e)?(n=e.substring(0,e.indexOf("-")),r=e.substring(e.indexOf("-")+1)):jt(e)&&(n=e.substring(0,e.indexOf("+")),r=e.substring(e.indexOf("+")+1)),"string"!=typeof n||"string"!=typeof r)return null;const i=n.split(".").length-1;if(i>2)return null==t||t.warn(S,e),null;const o=n.split(".");if(o.length!=i+1)return null==t||t.warn(S,e),null;for(const n of o)if(!Rt(n))return null==t||t.warn(S,e),null;return r&&o.push(r),o}const Lt="exact",Vt="exists",Bt="semver_eq",Kt="semver_ge",zt="semver_gt",qt="semver_le",Ht="semver_lt",Wt="substring",Gt=[Lt,Vt,"gt","ge","lt","le",Wt,Bt,Ht,qt,zt,Kt],$t={};$t[Lt]=Qt,$t[Vt]=function(e,t,n){return null!=t.getAttributes()[e.name]},$t.gt=function(e,t,n){const r=t.getAttributes()[e.name],i=e.value;return Yt(e,t,n)&&null!==i?r>i:null},$t.ge=function(e,t,n){const r=t.getAttributes()[e.name],i=e.value;return Yt(e,t,n)&&null!==i?r>=i:null},$t.lt=function(e,t,n){const r=t.getAttributes()[e.name],i=e.value;return Yt(e,t,n)&&null!==i?r<i:null},$t.le=function(e,t,n){const r=t.getAttributes()[e.name],i=e.value;return Yt(e,t,n)&&null!==i?r<=i:null},$t[Wt]=function(e,t,n){const r=t.getAttributes(),i=e.name,o=r[e.name],a=typeof o,s=e.value;return"string"!=typeof s?(null==n||n.warn(w,JSON.stringify(e)),null):null===o?(null==n||n.debug(T,JSON.stringify(e),i),null):"string"!=typeof o?(null==n||n.warn(x,JSON.stringify(e),a,i),null):-1!==o.indexOf(s)},$t[Bt]=function(e,t,n){const r=Zt(e,t,n);return null===r?null:0===r},$t[zt]=function(e,t,n){const r=Zt(e,t,n);return null===r?null:r>0},$t[Kt]=function(e,t,n){const r=Zt(e,t,n);return null===r?null:r>=0},$t[Ht]=function(e,t,n){const r=Zt(e,t,n);return null===r?null:r<0},$t[qt]=function(e,t,n){const r=Zt(e,t,n);return null===r?null:r<=0};const Jt=e=>({evaluate:(t,n)=>function(e,t,n){const r=t.getAttributes(),i=e.match;if(void 0!==i&&-1===Gt.indexOf(i))return null==n||n.warn(S,JSON.stringify(e)),null;const o=e.name;if(!r.hasOwnProperty(o)&&i!=Vt)return null==n||n.debug("18",JSON.stringify(e),o),null;let a;return a=i&&$t[i]||Qt,a(e,t,n)}(t,n,e)});function Xt(e){return"string"==typeof e||"boolean"==typeof e||v.isNumber(e)}function Qt(e,t,n){const r=t.getAttributes(),i=e.value,o=typeof i,a=e.name,s=r[a],u=typeof s;return!Xt(i)||v.isNumber(i)&&!v.isSafeInteger(i)?(null==n||n.warn(w,JSON.stringify(e)),null):null===s?(null==n||n.debug(T,JSON.stringify(e),a),null):Xt(s)&&o===u?v.isNumber(s)&&!v.isSafeInteger(s)?(null==n||n.warn("47",JSON.stringify(e),a),null):i===s:(null==n||n.warn(x,JSON.stringify(e),u,a),null)}function Yt(e,t,n){const r=t.getAttributes(),i=e.name,o=r[i],a=typeof o,s=e.value;return null!==s&&v.isSafeInteger(s)?null===o?(null==n||n.debug(T,JSON.stringify(e),i),!1):v.isNumber(o)?!!v.isSafeInteger(o)||(null==n||n.warn("47",JSON.stringify(e),i),!1):(null==n||n.warn(x,JSON.stringify(e),a,i),!1):(null==n||n.warn(w,JSON.stringify(e)),!1)}function Zt(e,t,n){const r=t.getAttributes(),i=e.name,o=r[i],a=typeof o,s=e.value;return"string"!=typeof s?(null==n||n.warn(w,JSON.stringify(e)),null):null===o?(null==n||n.debug(T,JSON.stringify(e),i),null):"string"!=typeof o?(null==n||n.warn(x,JSON.stringify(e),a,i),null):function(e,t,n){const r=Ut(t,n),i=Ut(e,n);if(!r||!i)return null;const o=r.length;for(let n=0;n<i.length;n++){if(o<=n)return Ft(e)||jt(e)?1:-1;if(Rt(r[n])){const e=parseInt(r[n]),t=parseInt(i[n]);if(e>t)return 1;if(e<t)return-1}else{if(r[n]<i[n])return Ft(e)&&!Ft(t)?1:-1;if(r[n]>i[n])return!Ft(e)&&Ft(t)?-1:1}}return Ft(t)&&!Ft(e)?-1:0}(s,o,n)}const en="qualified",tn=[en],nn={};nn[en]=on;const rn=e=>({evaluate:(t,n)=>function(e,t,n){const r=e.match;if(void 0!==r&&-1===tn.indexOf(r))return null==n||n.warn(S,JSON.stringify(e)),null;let i;return i=r&&nn[r]||on,i(e,t)}(t,n,e)});function on(e,t){return t.isQualifiedFor(e.value)}class an{constructor(e,t){this.logger=t,this.typeToEvaluatorMap=Object.assign(Object.assign({},e),{custom_attribute:Jt(this.logger),third_party_dimension:rn(this.logger)})}evaluate(e,t,n){return!e||0===e.length||!!N(e,e=>{var r,i;const o=t[e];if(o){null===(r=this.logger)||void 0===r||r.debug("5",e,JSON.stringify(o.conditions));const t=N(o.conditions,this.evaluateConditionWithUserAttributes.bind(this,n)),a=null===t?"UNKNOWN":t.toString().toUpperCase();return null===(i=this.logger)||void 0===i||i.debug("1",e,a),t}return null})}evaluateConditionWithUserAttributes(e,t){var n,r;const i=this.typeToEvaluatorMap[t.type];if(!i)return null===(n=this.logger)||void 0===n||n.warn("62",JSON.stringify(t)),null;try{return i.evaluate(t,e)}catch(e){null===(r=this.logger)||void 0===r||r.error("2",t.type,e.message)}return null}}function sn(e){return"string"==typeof e&&""!==e}class un{constructor(e,t){this.op=e,this.val=t}get(){return this.val}then(e){if("sync"===this.op){const t=e(this.val);return un.of(this.op,t.get())}return un.of(this.op,this.val.then(e))}static of(e,t){if("sync"===e){if((e=>e&&"function"==typeof e.then)(t))throw new h("Promise value is not allowed in sync operation");return new un(e,t)}return new un(e,Promise.resolve(t))}}un.all=(e,t)=>
vendor: 10,249 bytes, line 2
2{if("sync"===e){const n=t.map(e=>e.get());return un.of(e,n)}const n=t.map(e=>e.get());return un.of(e,Promise.all(n))};const ln="Experiment %s is not running.",cn='Returning previously activated variation "%s" of experiment "%s" for user "%s" from user profile.',fn="User %s does not meet conditions to be in experiment %s.",dn="User %s is in no variation of experiment %s.",pn="User %s is in variation %s of experiment %s.",vn="User %s is forced in variation %s.",hn="Variation key %s is not in datafile. Not activating user %s.",gn='Evaluating audiences for %s "%s": %s.',mn="Audiences for %s %s collectively evaluated to %s.",yn="User %s is in rollout of feature %s.",bn="User %s is not in rollout of feature %s.",wn="Feature %s is not attached to any experiments.",xn="User %s does not meet conditions for targeting rule %s.",Sn="User %s not bucketed into targeting rule %s due to traffic allocation. Trying everyone rule.",In="User %s bucketed into targeting rule %s.",kn="There is no rollout of feature %s.",En="Invalid rollout ID %s attached to feature %s",Cn="Rollout of feature %s has no experiments",Tn="Experiment key %s is improperly formatted.",Pn="Variation %s is mapped to experiment %s and user %s in the forced variation map.",Mn="User %s meets conditions for targeting rule %s.",_n="Variation (%s) is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",Dn="Variation (%s) is mapped to flag (%s) and user (%s) in the forced decision map.",An="Invalid variation is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",On="Invalid variation is mapped to flag (%s) and user (%s) in the forced decision map.",Nn="Failed to fetch CMAB data for experiment %s.",Rn="Holdout %s is not running.",Fn="User %s meets conditions for holdout %s.",jn="User %s does not meet conditions for holdout %s.",Un="User %s is in variation %s of holdout %s.",Ln="User %s is in no holdout variation.";class Vn{constructor(e){var t,n,r;this.logger=e.logger,null===(t=this.logger)||void 0===t||t.setName("DecisionService"),this.audienceEvaluator=(n=e.UNSTABLE_conditionEvaluators,r=this.logger,new an(n,r)),this.forcedVariationMap={},this.userProfileService=e.userProfileService,this.userProfileServiceAsync=e.userProfileServiceAsync,this.cmabService=e.cmabService}isCmab(e){return!!e.cmab}resolveVariation(e,t,n,r,i,o){var a,s,u;const l=r.getUserId(),c=n.key;if(!function(e,t){return ae(e,t)===Y}(t,c))return null===(a=this.logger)||void 0===a||a.info(ln,c),un.of(e,{result:{},reasons:[[ln,c]]});const f=[],d=this.getForcedVariation(t,c,l);f.push(...d.reasons);const p=d.result;if(p)return un.of(e,{result:{variationKey:p},reasons:f});const v=this.getWhitelistedVariation(n,l);f.push(...v.reasons);let h=v.result;if(h)return un.of(e,{result:{variationKey:h.key},reasons:f});if(o&&(h=this.getStoredVariation(t,n,l,o.userProfile),h))return null===(s=this.logger)||void 0===s||s.info(cn,h.key,c,l),f.push([cn,h.key,c,l]),un.of(e,{result:{variationKey:h.key},reasons:f});const g=this.checkIfUserIsInAudience(t,n,q,r,"");return f.push(...g.reasons),g.result?(this.isCmab(n)?this.getDecisionForCmabExperiment(e,t,n,r,i):this.getDecisionFromBucketer(e,t,n,r)).then(r=>{var i,a;if(f.push(...r.reasons),r.error)return un.of(e,{error:!0,result:{},reasons:f});const s=r.result.variationId;return h=s?t.variationIdMap[s]:null,h?(null===(a=this.logger)||void 0===a||a.info(pn,l,h.key,c),f.push([pn,l,h.key,c]),o&&!this.isCmab(n)&&this.updateUserProfile(n,h,o),un.of(e,{result:{variationKey:h.key,cmabUuid:r.result.cmabUuid},reasons:f})):(null===(i=this.logger)||void 0===i||i.debug(dn,l,c),f.push([dn,l,c]),un.of(e,{result:{},reasons:f}))}):(null===(u=this.logger)||void 0===u||u.info(fn,l,c),f.push([fn,l,c]),un.of(e,{result:{},reasons:f}))}getDecisionForCmabExperiment(e,t,n,r,i){if("sync"===e)return un.of(e,{error:!1,result:{},reasons:[["CMAB is not supported in sync mode."]]});const o=r.getUserId(),a=r.getAttributes(),s=this.getBucketingId(o,a),u=this.buildBucketerParams(t,n,s,o),l=At(u);if("$"!==l.result)return un.of(e,{error:!1,result:{},reasons:l.reasons});const c=this.cmabService.getDecision(t,r,n.id,i).then(e=>({error:!1,result:e,reasons:[]})).catch(e=>{var t;return null===(t=this.logger)||void 0===t||t.error(Nn,n.key),{error:!0,result:{},reasons:[[Nn,n.key]]}});return un.of(e,c)}getDecisionFromBucketer(e,t,n,r){const i=r.getUserId(),o=r.getAttributes(),a=this.getBucketingId(i,o),s=this.buildBucketerParams(t,n,a,i),u=At(s);return un.of(e,{result:{variationId:u.result||void 0},reasons:u.reasons})}getVariation(e,t,n,r={}){const i=r[Ze.IGNORE_USER_PROFILE_SERVICE]?void 0:{isProfileUpdated:!1,userProfile:this.resolveExperimentBucketMap("sync",n.getUserId(),n.getAttributes()).get()},o=this.resolveVariation("sync",e,t,n,r,i).get();return i&&this.saveUserProfile("sync",n.getUserId(),i),{result:o.result.variationKey||null,reasons:o.reasons}}resolveExperimentBucketMap(e,t,n={}){const r=n.$opt_experiment_bucket_map||{};return this.getUserProfile(e,t).then(t=>{const n=(null==t?void 0:t.experiment_bucket_map)||{};return un.of(e,Object.assign(Object.assign({},n),r))})}getWhitelistedVariation(e,t){var n,r;const i=[];if(e.forcedVariations&&e.forcedVariations.hasOwnProperty(t)){const o=e.forcedVariations[t];return e.variationKeyMap.hasOwnProperty(o)?(null===(n=this.logger)||void 0===n||n.info(vn,t,o),i.push([vn,t,o]),{result:e.variationKeyMap[o],reasons:i}):(null===(r=this.logger)||void 0===r||r.error(hn,o,t),i.push([hn,o,t]),{result:null,reasons:i})}return{result:null,reasons:i}}checkIfUserIsInAudience(e,t,n,r,i){var o,a;const s=[],u=t.audienceConditions||t.audienceIds,l=e.audiencesById;null===(o=this.logger)||void 0===o||o.debug(gn,n,i||t.key,JSON.stringify(u)),s.push([gn,n,i||t.key,JSON.stringify(u)]);const c=this.audienceEvaluator.evaluate(u,l,r);return null===(a=this.logger)||void 0===a||a.info(mn,n,i||t.key,c.toString().toUpperCase()),s.push([mn,n,i||t.key,c.toString().toUpperCase()]),{result:c,reasons:s}}buildBucketerParams(e,t,n,r){let i=!0,o=t.trafficAllocation;return"cmab"in t&&t.cmab&&(o=[{entityId:"$",endOfRange:t.cmab.trafficAllocation}],i=!1),{bucketingId:n,experimentId:t.id,experimentKey:t.key,experimentIdMap:e.experimentIdMap,experimentKeyMap:e.experimentKeyMap,groupIdMap:e.groupIdMap,logger:this.logger,trafficAllocationConfig:o,userId:r,variationIdMap:e.variationIdMap,validateEntity:i}}getVariationForHoldout(e,t,n){var r,i,o,a,s;const u=n.getUserId(),l=[];if("Running"!==t.status){const e=[Rn,t.key];return l.push(e),null===(r=this.logger)||void 0===r||r.info(Rn,t.key),{result:{experiment:null,variation:null,decisionSource:z},reasons:l}}const c=this.checkIfUserIsInAudience(e,t,q,n);if(l.push(...c.reasons),!c.result){const e=[jn,u,t.key];return l.push(e),null===(i=this.logger)||void 0===i||i.info(jn,u,t.key),{result:{experiment:null,variation:null,decisionSource:z},reasons:l}}const f=[Fn,u,t.key];l.push(f),null===(o=this.logger)||void 0===o||o.info(Fn,u,t.key);const d=n.getAttributes(),p=this.getBucketingId(u,d),v=this.buildBucketerParams(e,t,p,u),h=At(v);if(l.push(...h.reasons),h.result){const n=e.variationIdMap[h.result];if(n){const e=[Un,u,t.key,n.key];return l.push(e),null===(a=this.logger)||void 0===a||a.info(Un,u,t.key,n.key),{result:{experiment:t,variation:n,decisionSource:z},reasons:l}}}const g=[Ln,u];return l.push(g),null===(s=this.logger)||void 0===s||s.info(Ln,u),{result:{experiment:null,variation:null,decisionSource:z},reasons:l}}getStoredVariation(e,t,n,r){var i;if(null==r?void 0:r.hasOwnProperty(t.id)){const o=r[t.id],a=o.variation_id;if(e.variationIdMap.hasOwnProperty(a))return e.variationIdMap[o.variation_id];null===(i=this.logger)||void 0===i||i.info("27",n,a,t.key)}return null}getUserProfile(e,t){var n;const r={user_id:t,experiment_bucket_map:{}};if(this.userProfileService){try{return un.of(e,this.userProfileService.lookup(t))}catch(e){null===(n=this.logger)||void 0===n||n.error("68",t,e.message)}return un.of(e,r)}return this.userProfileServiceAsync&&"async"===e?un.of(e,this.userProfileServiceAsync.lookup(t).catch(e=>{var n;return null===(n=this.logger)||void 0===n||n.error("68",t,e.message),r})):un.of(e,r)}updateUserProfile(e,t,n){n.userProfile&&(n.userProfile[e.id]={variation_id:t.id},n.isProfileUpdated=!0)}saveUserProfile(e,t,n){var r,i;const{userProfile:o,isProfileUpdated:a}=n;if(!o||!a)return un.of(e,void 0);if("sync"===e&&!this.userProfileService)return un.of(e,void 0);if(this.userProfileService){try{this.userProfileService.save({user_id:t,experiment_bucket_map:o}),null===(r=this.logger)||void 0===r||r.info("26",t)}catch(e){null===(i=this.logger)||void 0===i||i.error("69",t,e.message)}return un.of(e,void 0)}return this.userProfileServiceAsync?un.of(e,this.userProfileServiceAsync.save({user_id:t,experiment_bucket_map:o}).catch(e=>{var n;null===(n=this.logger)||void 0===n||n.error("69",t,e.message)})):un.of(e,void 0)}getVariationsForFeatureList(e,t,n,r={}){return this.resolveVariationsForFeatureList("sync",e,t,n,r).get()}resolveVariationsForFeatureList(e,t,n,r,i){const o=r.getUserId(),a=r.getAttributes();return(i[Ze.IGNORE_USER_PROFILE_SERVICE]?un.of(e,void 0):this.resolveExperimentBucketMap(e,o,a).then(t=>un.of(e,{isProfileUpdated:!1,userProfile:t}))).then(a=>{const s=n.map(n=>this.resolveVariationForFlag(e,t,n,r,i,a)),u=un.all(e,s);return u.then(()=>(a&&this.saveUserProfile(e,o,a),u))})}resolveVariationForFlag(e,t,n,r,i,o){const a=[],s=this.findValidatedForcedDecision(t,r,n.key);if(a.push(...s.reasons),s.result)return un.of(e,{result:{variation:s.result,experiment:null,decisionSource:V},reasons:a});const u=t.holdouts;for(const n of u){const i=this.getVariationForHoldout(t,n,r);if(a.push(...i.reasons),i.result.variation)return un.of(e,{result:i.result,reasons:a})}return this.getVariationForFeatureExperiment(e,t,n,r,i,o).then(i=>{var o,s;if(i.error||null!==i.result.variation)return un.of(e,Object.assign(Object.assign({},i),{reasons:[...a,...i.reasons]}));a.push(...i.reasons);const u=this.getVariationForRollout(t,n,r);a.push(...u.reasons);const l=u.result,c=r.getUserId();return l.variation?(null===(o=this.logger)||void 0===o||o.debug(yn,c,n.key),a.push([yn,c,n.key])):(null===(s=this.logger)||void 0===s||s.debug(bn,c,n.key),a.push([bn,c,n.key])),un.of(e,{result:l,reasons:a})})}
2getVariationForFeature(e,t,n,r={}){return this.resolveVariationsForFeatureList("sync",e,[t],n,r).get()[0]}getVariationForFeatureExperiment(e,t,n,r,i,o){var a;return 0===n.experimentIds.length?(null===(a=this.logger)||void 0===a||a.debug(wn,n.key),un.of(e,{result:{experiment:null,variation:null,decisionSource:V},reasons:[[wn,n.key]]})):this.traverseFeatureExperimentList(e,t,n,0,r,[],i,o)}traverseFeatureExperimentList(e,t,n,r,i,o,a,s){const u=n.experimentIds;if(r>=u.length)return un.of(e,{result:{experiment:null,variation:null,decisionSource:V},reasons:o});const l=function(e,t,n){if(e.experimentIdMap.hasOwnProperty(t)){const n=e.experimentIdMap[t];if(n)return n}return null==n||n.error("21",t),null}(t,u[r],this.logger);return l?this.getVariationFromExperimentRule(e,t,n.key,l,i,a,s).then(u=>{if(o.push(...u.reasons),u.holdoutDecision)return un.of(e,{result:u.result,reasons:o});if(u.error)return un.of(e,{error:!0,result:{experiment:l,variation:null,decisionSource:V},reasons:o});if(!u.result.variationKey)return this.traverseFeatureExperimentList(e,t,n,r+1,i,o,a,s);const c=u.result.variationKey;let f=l.variationKeyMap[c];return f||(f=ue(t,n.key,c)),un.of(e,{result:{cmabUuid:u.result.cmabUuid,experiment:l,variation:f,decisionSource:V},reasons:o})}):this.traverseFeatureExperimentList(e,t,n,r+1,i,o,a,s)}getVariationForRollout(e,t,n){var r,i,o;const a=[];if(!t.rolloutId)return null===(r=this.logger)||void 0===r||r.debug(kn,t.key),a.push([kn,t.key]),{result:{experiment:null,variation:null,decisionSource:B},reasons:a};const s=e.rolloutIdMap[t.rolloutId];if(!s)return null===(i=this.logger)||void 0===i||i.error(En,t.rolloutId,t.key),a.push([En,t.rolloutId,t.key]),{result:{experiment:null,variation:null,decisionSource:B},reasons:a};const u=s.experiments;if(0===u.length)return null===(o=this.logger)||void 0===o||o.error(Cn,t.rolloutId),a.push([Cn,t.rolloutId]),{result:{experiment:null,variation:null,decisionSource:B},reasons:a};let l=0;for(;l<u.length;){const r=this.getVariationFromDeliveryRule(e,t.key,u,l,n);if(a.push(...r.reasons),r.holdoutDecision)return{reasons:a,result:r.result};const i=r.result,o=r.skipToEveryoneElse;if(i)return{result:{experiment:e.experimentIdMap[u[l].id],variation:i,decisionSource:B},reasons:a};l=o?u.length-1:l+1}return{result:{experiment:null,variation:null,decisionSource:B},reasons:a}}getBucketingId(e,t){var n,r;let i=e;return null!=t&&"object"==typeof t&&t.hasOwnProperty(j)&&("string"==typeof t[j]?(i=String(t[j]),null===(n=this.logger)||void 0===n||n.debug("38",i)):null===(r=this.logger)||void 0===r||r.warn("0")),i}findValidatedForcedDecision(e,t,n,r){var i,o,a,s;const u=[],l=t.getForcedDecision({flagKey:n,ruleKey:r});let c,f=null;const d=t.getUserId();return e&&l&&(c=l.variationKey,f=ue(e,n,c),f?r?(null===(i=this.logger)||void 0===i||i.info(_n,c,n,r,d),u.push([_n,c,n,r,d])):(null===(o=this.logger)||void 0===o||o.info(Dn,c,n,d),u.push([Dn,c,n,d])):r?(null===(a=this.logger)||void 0===a||a.info(An,n,r,d),u.push([An,n,r,d])):(null===(s=this.logger)||void 0===s||s.info(On,n,d),u.push([On,n,d]))),{result:f,reasons:u}}removeForcedVariation(e,t,n){var r;if(!e)throw new h("27");if(!this.forcedVariationMap.hasOwnProperty(e))throw new h("67",e);delete this.forcedVariationMap[e][t],null===(r=this.logger)||void 0===r||r.debug("42",n,e)}setInForcedVariationMap(e,t,n){var r;this.forcedVariationMap.hasOwnProperty(e)||(this.forcedVariationMap[e]={}),this.forcedVariationMap[e][t]=n,null===(r=this.logger)||void 0===r||r.debug("35",n,t,e)}getForcedVariation(e,t,n){var r,i,o,a,s,u;const l=[],c=this.forcedVariationMap[n];if(!c)return null===(r=this.logger)||void 0===r||r.debug("33",n),{result:null,reasons:l};let f;try{const n=se(e,t);if(!n.hasOwnProperty("id"))return null===(i=this.logger)||void 0===i||i.error(Tn,t),l.push([Tn,t]),{result:null,reasons:l};f=n.id}catch(e){return null===(o=this.logger)||void 0===o||o.error(e),l.push(e.message),{result:null,reasons:l}}const d=c[f];if(!d)return null===(a=this.logger)||void 0===a||a.debug("34",t,n),{result:null,reasons:l};const p=function(e,t){return e.variationIdMap.hasOwnProperty(t)?e.variationIdMap[t].key:null}(e,d);return p?(null===(s=this.logger)||void 0===s||s.debug(Pn,p,t,n),l.push([Pn,p,t,n])):null===(u=this.logger)||void 0===u||u.debug("34",t,n
vendor: 20,069 bytes, line 2
2),{result:p,reasons:l}}setForcedVariation(e,t,n,r){var i,o,a,s,u,l;if(null!=r&&!sn(r))return null===(i=this.logger)||void 0===i||i.error("29"),!1;let c;try{const n=se(e,t);if(!n.hasOwnProperty("id"))return null===(o=this.logger)||void 0===o||o.error(Tn,t),!1;c=n.id}catch(e){return null===(a=this.logger)||void 0===a||a.error(e),!1}if(null==r)try{return this.removeForcedVariation(n,c,t),!0}catch(e){return null===(s=this.logger)||void 0===s||s.error(e),!1}const f=function(e,t,n){const r=e.experimentKeyMap[t];return r.variationKeyMap.hasOwnProperty(n)?r.variationKeyMap[n].id:null}(e,t,r);if(!f)return null===(u=this.logger)||void 0===u||u.error("39",r,t),!1;try{return this.setInForcedVariationMap(n,c,f),!0}catch(e){return null===(l=this.logger)||void 0===l||l.error(e),!1}}getVariationFromExperimentRule(e,t,n,r,i,o,a){const s=[],u=this.findValidatedForcedDecision(t,i,n,r.key);s.push(...u.reasons);const l=u.result;if(l)return un.of(e,{result:{variationKey:l.key},reasons:s});const c=re(t,r.id);for(const n of c){const r=this.getVariationForHoldout(t,n,i);if(s.push(...r.reasons),r.result.variation)return un.of(e,{result:r.result,reasons:s,holdoutDecision:!0})}return this.resolveVariation(e,t,r,i,o,a).then(t=>(s.push(...t.reasons),un.of(e,{error:t.error,result:t.result,reasons:s})))}getVariationFromDeliveryRule(e,t,n,r,i){var o,a,s,u;const l=[];let c=!1;const f=n[r],d=this.findValidatedForcedDecision(e,i,t,f.key);l.push(...d.reasons);const p=d.result;if(p)return{result:p,reasons:l,skipToEveryoneElse:c};const v=re(e,f.id);for(const t of v){const n=this.getVariationForHoldout(e,t,i);if(l.push(...n.reasons),n.result.variation)return{result:n.result,reasons:l,holdoutDecision:!0}}const h=i.getUserId(),g=i.getAttributes(),m=this.getBucketingId(h,g),y=r===n.length-1,b=y?"Everyone Else":r+1;let w,x,S,I=null;const k=this.checkIfUserIsInAudience(e,f,"rule",i,b);var E,C;return l.push(...k.reasons),k.result?(null===(o=this.logger)||void 0===o||o.debug(Mn,h,b),l.push([Mn,h,b]),x=this.buildBucketerParams(e,f,m,h),S=At(x),l.push(...S.reasons),w=S.result,w&&(C=w,I=(E=e).variationIdMap.hasOwnProperty(C)?E.variationIdMap[C]:null),I?(null===(a=this.logger)||void 0===a||a.debug(In,h,b),l.push([In,h,b])):y||(null===(s=this.logger)||void 0===s||s.debug(Sn,h,b),l.push([Sn,h,b]),c=!0)):(null===(u=this.logger)||void 0===u||u.debug(xn,h,b),l.push([xn,h,b])),{result:I,reasons:l,skipToEveryoneElse:c}}}class Bn extends ge{constructor(e){var t,n,r,i,o,a,s,u,l,c,f;super(),this.cleanupTasks=new Map,this.nextCleanupTaskId=0;let d=e.clientEngine;d||(null===(t=e.logger)||void 0===t||t.info("13",d),d="node-sdk"),this.clientEngine=d,this.clientVersion=e.clientVersion||L,this.errorNotifier=e.errorNotifier,this.logger=e.logger,this.projectConfigManager=e.projectConfigManager,this.errorReporter=new wt(this.logger,this.errorNotifier),this.odpManager=e.odpManager,this.vuidManager=e.vuidManager,this.eventProcessor=e.eventProcessor,e.disposable&&(this.projectConfigManager.makeDisposable(),null===(n=this.eventProcessor)||void 0===n||n.makeDisposable(),null===(r=this.odpManager)||void 0===r||r.makeDisposable()),this.logger&&(this.projectConfigManager.setLogger(this.logger.child()),null===(i=this.eventProcessor)||void 0===i||i.setLogger(this.logger.child()),null===(o=this.odpManager)||void 0===o||o.setLogger(this.logger.child()));let p=null!==(a=e.defaultDecideOptions)&&void 0!==a?a:[];Array.isArray(p)||(null===(s=this.logger)||void 0===s||s.debug("15"),p=[]);const v={};let g;if(p.forEach(e=>{var t;Ze[e]?v[e]=!0:null===(t=this.logger)||void 0===t||t.warn("65",e)}),this.defaultDecideOptions=v,this.projectConfigManager=e.projectConfigManager,this.projectConfigManager.onUpdate(e=>{var t;null===(t=this.logger)||void 0===t||t.info("32",e.revision,e.projectId),this.notificationCenter.sendNotifications(Qe.OPTIMIZELY_CONFIG_UPDATE,void 0),this.updateOdpSettings()}),this.eventProcessor=e.eventProcessor,null===(u=this.eventProcessor)||void 0===u||u.onDispatch(e=>{this.notificationCenter.sendNotifications(Qe.LOG_EVENT,e)}),this.odpManager=e.odpManager,e.userProfileService)try{(function(e){if("object"==typeof e&&null!==e){if("function"!=typeof e.lookup)throw new h(m,"Missing function 'lookup'");if("function"!=typeof e.save)throw new h(m,"Missing function 'save'");return!0}throw new h(m,"Not an object")})(e.userProfileService)&&(g=e.userProfileService,null===(l=this.logger)||void 0===l||l.info("40"))}catch(e){null===(c=this.logger)||void 0===c||c.warn(e)}var y;this.decisionService=(y={userProfileService:g,userProfileServiceAsync:e.userProfileServiceAsync||void 0,cmabService:e.cmabService,logger:null===(f=this.logger)||void 0===f?void 0:f.child(),UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators},new Vn(y)),this.notificationCenter=function(e){return new xt(e)}({logger:this.logger,errorNotifier:this.errorNotifier}),this.start()}start(){var e,t;this.isNew()&&(super.start(),this.state=he.Starting,this.projectConfigManager.start(),null===(e=this.eventProcessor)||void 0===e||e.start(),null===(t=this.odpManager)||void 0===t||t.start(),Promise.all([this.projectConfigManager.onRunning(),this.eventProcessor?this.eventProcessor.onRunning():Promise.resolve(),this.odpManager?this.odpManager.onRunning():Promise.resolve(),this.vuidManager?this.vuidManager.initialize():Promise.resolve()]).then(()=>{var e,t;this.state=he.Running,this.startPromise.resolve();const n=null===(e=this.vuidManager)||void 0===e?void 0:e.getVuid();n&&(null===(t=this.odpManager)||void 0===t||t.setVuid(n))}).catch(e=>{this.state=he.Failed,this.errorReporter.report(e),this.startPromise.reject(e)}))}getProjectConfig(){return this.projectConfigManager.getConfig()||null}activate(e,t,n){var r,i;try{const o=this.getProjectConfig();if(!o)return this.errorReporter.report(y,"activate"),null;if(!this.validateInputs({experiment_key:e,user_id:t},n))return this.notActivatingExperiment(e,t);try{const i=this.getVariation(e,t,n);if(null===i)return this.notActivatingExperiment(e,t);if(!function(e,t){return ae(e,t)===Y}(o,e))return null===(r=this.logger)||void 0===r||r.debug("28",e),i;const a=se(o,e),s={experiment:a,variation:a.variationKeyMap[i],decisionSource:K};return this.sendImpressionEvent(s,"",t,!0,n),i}catch(n){return null===(i=this.logger)||void 0===i||i.info("19",t,e),this.errorReporter.report(n),null}}catch(e){return this.errorReporter.report(e),null}}sendImpressionEvent(e,t,n,r,i){var o;if(!this.eventProcessor)return void(null===(o=this.logger)||void 0===o||o.error("35"));const a=this.getProjectConfig();if(!a)return;const s=function({configObj:e,decisionObj:t,userId:n,flagKey:r,enabled:i,userAttributes:o,clientEngine:a,clientVersion:s}){const u=t.decisionSource,l=Ke(t),c=function(e){var t,n;return null!==(n=null===(t=e.experiment)||void 0===t?void 0:t.id)&&void 0!==n?n:null}(t),f=ze(t),d=function(e){var t,n;return null!==(n=null===(t=e.variation)||void 0===t?void 0:t.id)&&void 0!==n?n:null}(t),p=t.cmabUuid,v=null!==c?u===z?"":function(e,t){const n=e.experimentIdMap[t];if(!n)throw new h("21",t);return n.layerId}(e,c):null;return Object.assign(Object.assign({},tt({configObj:e,userId:n,userAttributes:o,clientEngine:a,clientVersion:s,type:"impression"})),{layer:{id:v},experiment:{id:c,key:l},variation:{id:d,key:f},ruleKey:l,flagKey:r,ruleType:u,enabled:i,cmabUuid:p})}({decisionObj:e,flagKey:t,enabled:r,userId:n,userAttributes:i,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:a});this.eventProcessor.process(s);const u=Ue([s]),l={experiment:null,holdout:null,userId:n,attributes:i,variation:e.variation,logEvent:u};e.experiment&&(void 0===e.experiment.layerId?l.holdout=e.experiment:l.experiment=e.experiment),this.notificationCenter.sendNotifications(Qe.ACTIVATE,l)}track(e,t,n,r){var i,o,a,s,u;try{if(!this.eventProcessor)return void(null===(i=this.logger)||void 0===i||i.error("35"));const u=this.getProjectConfig();if(!u)return void this.errorReporter.report(y,"track");if(!this.validateInputs({user_id:t,event_key:e},n,r))return;if(!function(e,t){return e.eventKeyMap.hasOwnProperty(t)}(u,e))return null===(o=this.logger)||void 0===o||o.warn("7",e),void(null===(a=this.logger)||void 0===a||a.warn("33",t));const l=function({configObj:e,userId:t,userAttributes:n,clientEngine:r,clientVersion:i,eventKey:o,eventTags:a},s){const u=function(e,t){const n=e.eventKeyMap[t];return n?n.id:null}(e,o),l=a?function(e,t){const n=e.revenue;if(null==n)return null;const r="string"==typeof n?parseInt(n):Math.trunc(n);return isFinite(r)?(null==t||t.info("22",r),r):(null==t||t.info("6",n),null)}(a,s):null,c=a?function(e,t){const n=e.value;if(null==n)return null;const r="string"==typeof n?parseFloat(n):n;return isFinite(r)?(null==t||t.info("21",r),r):(null==t||t.info("7",n),null)}(a,s):null;return Object.assign(Object.assign({},tt({configObj:e,userId:t,userAttributes:n,clientEngine:r,clientVersion:i,type:"conversion"})),{event:{id:u,key:o},revenue:l,value:c,tags:a})}({eventKey:e,eventTags:r=this.filterEmptyValues(r),userId:t,userAttributes:n,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:u},this.logger);null===(s=this.logger)||void 0===s||s.info("30",e,t),this.eventProcessor.process(l);const c=Ue([l]);this.notificationCenter.sendNotifications(Qe.TRACK,{eventKey:e,userId:t,attributes:n,eventTags:r,logEvent:c})}catch(e){this.errorReporter.report(e),null===(u=this.logger)||void 0===u||u.error("33",t)}}getVariation(e,t,n){var r,i,o;try{const a=this.getProjectConfig();if(!a)return this.errorReporter.report(y,"getVariation"),null;try{if(!this.validateInputs({experiment_key:e,user_id:t},n))return null;const s=a.experimentKeyMap[e];if(!s||s.isRollout)return null===(r=this.logger)||void 0===r||r.debug("16",e),null;const u=this.decisionService.getVariation(a,s,this.createInternalUserContext(t,n)).result,l=(i=a,o=s.id,i.experimentFeatureMap.hasOwnProperty(o)?Ge:He);return this.notificationCenter.sendNotifications(Qe.DECISION,{type:l,userId:t,attributes:n||{},decisionInfo:{experimentKey:e,variationKey:u}}),u}catch(e){return this.errorReporter.report(e),null}}catch(e){return this.errorReporter.report(e),null}}setForcedVariation(e,t,n){if(!this.validateInputs({experiment_key:e,user_id:t}))return!1;const r=this.getProjectConfig();if(!r)return!1;try{return this.decisionService.setForcedVariation(r,e,t,n)}catch(e){return this.errorReporter.report(e),!1}}getForcedVariation(e,t){if(!this.validateInputs({experiment_key:e,user_id:t}))return null;const n=this.getProjectConfig();if(!n)return null;try{return this.decisionService.getForcedVariation(n,e,t).result}catch(e){return this.errorReporter.report(e),null}}validateInputs(e,t,n){try{if(e.hasOwnProperty("user_id")){const t=e.user_id;if("string"!=typeof t||null===t||"undefined"===t)throw new h("24","user_id");delete e.user_id}return Object.keys(e).forEach(t=>{if(!sn(e[t]))throw new h("24",t)}),t&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw new h("13");Object.keys(e).forEach(function(t){if(void 0===e[t])throw new h("58",t)})}(t),n&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw new h("20")}(n),!0}catch(e){return this.errorReporter.report(e),!1}}notActivatingExperiment(e,t){var n;return null===(n=this.logger)||void 0===n||n.info("19",t,e),null}filterEmptyValues(e){for(const t in e){const n=t;!e.hasOwnProperty(n)||null!==e[n]&&void 0!==e[n]||delete e[n]}return e}isFeatureEnabled(e,t,n){var r,i;try{const o=this.getProjectConfig();if(!o)return this.errorReporter.report(y,"isFeatureEnabled"),!1;if(!this.validateInputs({feature_key:e,user_id:t},n))return!1;const a=le(o,e,this.logger);if(!a)return!1;let s={};const u=this.createInternalUserContext(t,n),l=this.decisionService.getVariationForFeature(o,a,u).result,c=l.decisionSource,f=Ke(l),d=ze(l);let p=qe(l);c!==V&&c!==z||(s={experimentKey:f,variationKey:d}),(c===V||c===z||c===B&&ce(o))&&this.sendImpressionEvent(l,a.key,t,p,n),!0===p?null===(r=this.logger)||void 0===r||r.info("8",e,t):(null===(i=this.logger)||void 0===i||i.info("9",e,t),p=!1);const v={featureKey:e,featureEnabled:p,source:l.decisionSource,sourceInfo:s};return this.notificationCenter.sendNotifications(Qe.DECISION,{type:We,userId:t,attributes:n||{},decisionInfo:v}),p}catch(e){return this.errorReporter.report(e),!1}}getEnabledFeatures(e,t){try{const n=[],r=this.getProjectConfig();return r?this.validateInputs({user_id:e})?(c(r.featureKeyMap).forEach(r=>{this.isFeatureEnabled(r.key,e,t)&&n.push(r.key)}),n):n:(this.errorReporter.report(y,"getEnabledFeatures"),n)}catch(e){return this.errorReporter.report(e),[]}}getFeatureVariable(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,null,n,r):(this.errorReporter.report(y,"getFeatureVariable"),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableForType(e,t,n,r,i){var o;if(!this.validateInputs({feature_key:e,variable_key:t,user_id:r},i))return null;const a=this.getProjectConfig();if(!a)return null;const s=le(a,e,this.logger);if(!s)return null;const u=function(e,t,n,r){const i=e.featureKeyMap[t];if(!i)return null==r||r.error(g,t),null;return i.variableKeyMap[n]||(null==r||r.error("70",n,t),null)}(a,e,t,this.logger);if(!u)return null;if(n&&u.type!==n)return null===(o=this.logger)||void 0===o||o.warn("71",n,u.type),null;const l=this.createInternalUserContext(r,i),c=this.decisionService.getVariationForFeature(a,s,l).result,f=qe(c),d=this.getFeatureVariableValueFromVariation(e,f,c.variation,u,r);let p={};return c.decisionSource===V&&null!==c.experiment&&null!==c.variation&&(p={experimentKey:c.experiment.key,variationKey:c.variation.key}),this.notificationCenter.sendNotifications(Qe.DECISION,{type:$e,userId:r,attributes:i||{},decisionInfo:{featureKey:e,featureEnabled:f,source:c.decisionSource,variableKey:t,variableValue:d,variableType:u.type,sourceInfo:p}}),d}getFeatureVariableValueFromVariation(e,t,n,r,i){var o,a,s,u;const l=this.getProjectConfig();if(!l)return null;let c=r.defaultValue;if(null!==n){const u=function(e,t,n,r){if(!t||!n)return null;if(!e.variationVariableUsageMap.hasOwnProperty(n.id))return null==r||r.error("72",n.id),null;const i=e.variationVariableUsageMap[n.id][t.id];return i?i.value:null}(l,r,n,this.logger);null!==u?t?(c=u,null===(o=this.logger)||void 0===o||o.info("37",c,r.key,e)):null===(a=this.logger)||void 0===a||a.info("10",e,i,c):null===(s=this.logger)||void 0===s||s.info("41",r.key,n.key)}else null===(u=this.logger)||void 0===u||u.info("36",i,r.key,e);return function(e,t,n){let r;switch(t){case H:"true"!==e&&"false"!==e?(null==n||n.error(b,e,t),r=null):r="true"===e;break;case G:r=parseInt(e,10),isNaN(r)&&(null==n||n.error(b,e,t),r=null);break;case W:r=parseFloat(e),isNaN(r)&&(null==n||n.error(b,e,t),r=null);break;case J:try{r=JSON.parse(e)}catch(i){null==n||n.error(b,e,t),r=null}break;default:r=e}return r}(c,r.type,this.logger)}getFeatureVariableBoolean(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,H,n,r):(this.errorReporter.report(y,"getFeatureVariableBoolean"),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableDouble(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,W,n,r):(this.errorReporter.report(y,"getFeatureVariableDouble"),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableInteger(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,G,n,r):(this.errorReporter.report(y,"getFeatureVariableInteger"),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableString(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,$,n,r):(this.errorReporter.report(y,"getFeatureVariableString"),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableJSON(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,J,n,r):(this.errorReporter.report(y,"getFeatureVariableJSON"),null)}catch(e){return this.errorReporter.report(e),null}}getAllFeatureVariables(e,t,n){try{const r=this.getProjectConfig();if(!r)return this.errorReporter.report(y,"getAllFeatureVariables"),null;if(!this.validateInputs({feature_key:e,user_id:t},n))return null;const i=le(r,e,this.logger);if(!i)return null;const o=this.createInternalUserContext(t,n),a=this.decisionService.getVariationForFeature(r,i,o).result,s=qe(a),u={};i.variables.forEach(n=>{u[n.key]=this.getFeatureVariableValueFromVariation(e,s,a.variation,n,t)});let l={};return a.decisionSource===V&&null!==a.experiment&&null!==a.variation&&(l={experimentKey:a.experiment.key,variationKey:a.variation.key}),this.notificationCenter.sendNotifications(Qe.DECISION,{type:Je,userId:t,attributes:n||{},decisionInfo:{featureKey:e,featureEnabled:s,source:a.decisionSource,variableValues:u,sourceInfo:l}}),u}catch(e){return this.errorReporter.report(e),null}}getOptimizelyConfig(){try{return this.getProjectConfig()&&this.projectConfigManager.getOptimizelyConfig()||null}catch(e){return this.errorReporter.report(e),null}}flushImmediately(){const e=[];return this.isRunning()?(this.eventProcessor&&e.push(this.eventProcessor.flushImmediately()),this.odpManager&&e.push(this.odpManager.flushImmediately()),Promise.all(e)):Promise.resolve()}close(){return this.stop(),this.onTerminated()}stop(){var e,t;this.isDone()||(this.isRunning()||this.startPromise.reject(new Error(d(ve,"Client"))),this.state=he.Stopping,this.projectConfigManager.stop(),null===(e=this.eventProcessor)||void 0===e||e.stop(),null===(t=this.odpManager)||void 0===t||t.stop(),this.notificationCenter.clearAllNotificationListeners(),this.cleanupTasks.forEach(e=>e()),Promise.all([this.projectConfigManager.onTerminated(),this.eventProcessor?this.eventProcessor.onTerminated():Promise.resolve(),this.odpManager?this.odpManager.onTerminated():Promise.resolve()]).then(()=>{this.state=he.Terminated,this.stopPromise.resolve()}).catch(e=>{this.errorReporter.report(e),this.state=he.Failed,this.stopPromise.reject(e)}))}onReady(e){let t;"object"==typeof e&&null!==e&&void 0!==e.timeout&&(t=e.timeout),s(t)||(t=3e4);const n=de(),r=this.nextCleanupTaskId++,i=setTimeout(()=>{this.cleanupTasks.delete(r),n.reject(new Error(d("onReady timeout expired after %s ms",t)))},t);return this.cleanupTasks.set(r,()=>{clearTimeout(i),n.reject(new Error("Instance closed"))}),Promise.race([this.onRunning().then(()=>{clearTimeout(i),this.cleanupTasks.delete(r)}),n])}createUserContext(e,t){var n;const r=null!=e?e:null===(n=this.vuidManager)||void 0===n?void 0:n.getVuid();if(void 0===r||!this.validateInputs({user_id:r}))throw new Error("Invalid identifier");if(!this.validateInputs({},t))throw new Error("Invalid attributes");const i=new kt({optimizely:this,userId:r,attributes:t});return this.onRunning().then(()=>{this.odpManager&&this.isOdpIntegrated()&&this.odpManager.identifyUser(r)}).catch(()=>{}),i}createInternalUserContext(e,t){return new kt({optimizely:this,userId:e,attributes:t})}decide(e,t,n=[]){return this.getProjectConfig()?this.decideForKeys(e,[t],n,!0)[t]:(this.errorReporter.report(y,"decide"),St(t,e,[X]))}decideAsync(e,t,n=[]){return be(this,void 0,void 0,function*(){return this.getProjectConfig()?(yield this.decideForKeysAsync(e,[t],n,!0))[t]:(this.errorReporter.report(y,"decide"),St(t,e,[X]))})}getAllDecideOptions(e){var t;const n=Object.assign({},this.defaultDecideOptions);return Array.isArray(e)?e.forEach(e=>{var t;Ze[e]?n[e]=!0:null===(t=this.logger)||void 0===t||t.warn("65",e)}):null===(t=this.logger)||void 0===t||t.debug("14"),n}generateDecision(e,t,n,r,i,o){var a,s,u,l,c,f,p,v,h,g;const m=e.getUserId(),y=e.getAttributes(),b=o.featureKeyMap[t],w=n.decisionSource,x=null!==(s=null===(a=n.experiment)||void 0===a?void 0:a.key)&&void 0!==s?s:null,S=null!==(l=null===(u=n.experiment)||void 0===u?void 0:u.id)&&void 0!==l?l:null,I=null!==(f=null===(c=n.variation)||void 0===c?void 0:c.key)&&void 0!==f?f:null,k=null!==(v=null===(p=n.variation)||void 0===p?void 0:p.id)&&void 0!==v?v:null,E=qe(n),C={};let T=!1;E?null===(h=this.logger)||void 0===h||h.info("8",t,m):null===(g=this.logger)||void 0===g||g.info("9",t,m),i[Ze.EXCLUDE_VARIABLES]||b.variables.forEac
2h(e=>{C[e.key]=this.getFeatureVariableValueFromVariation(t,E,n.variation,e,m)}),!i[Ze.DISABLE_DECISION_EVENT]&&(w===V||w===z||w===B&&ce(o))&&(this.sendImpressionEvent(n,t,m,E,y),T=!0);let P=[];i[Ze.INCLUDE_REASONS]&&(P=r.map(e=>d(e[0],...e.slice(1))));const M={flagKey:t,enabled:E,variationKey:I,ruleKey:x,variables:C,reasons:P,decisionEventDispatched:T,experimentId:S,variationId:k};return this.notificationCenter.sendNotifications(Qe.DECISION,{type:Xe,userId:m,attributes:y,decisionInfo:M}),{variationKey:I,enabled:E,variables:C,ruleKey:x,flagKey:t,userContext:e,reasons:P}}decideForKeys(e,t,n=[],r){return this.getDecisionForKeys("sync",e,t,n,r).get()}decideForKeysAsync(e,t,n=[],r){return this.getDecisionForKeys("async",e,t,n,r).get()}getDecisionForKeys(e,t,n,r=[],i){var o;const a={},s={},u={},l=this.getProjectConfig();if(!l)return this.errorReporter.report(y,"decideForKeys"),un.of(e,a);if(0===n.length)return un.of(e,a);const c=this.getAllDecideOptions(r);i&&delete c[Ze.ENABLED_FLAGS_ONLY];const f=[];for(const e of n){const n=l.featureKeyMap[e];n?f.push(n):(null===(o=this.logger)||void 0===o||o.error(g,e),a[e]=St(e,t,[d('No flag was found for key "%s".',e)]))}return this.decisionService.resolveVariationsForFeatureList(e,l,f,t,c).then(n=>{for(let e=0;e<f.length;e++){const r=f[e].key,i=n[e];i.error?a[r]=St(r,t,i.reasons.map(e=>d(e[0],...e.slice(1)))):(s[r]=i.result,u[r]=i.reasons)}for(const e of f){const n=e.key;if(a[n])continue;const r=this.generateDecision(t,n,s[n],u[n],c,l);c[Ze.ENABLED_FLAGS_ONLY]&&!r.enabled||(a[n]=r)}return un.of(e,a)})}decideAll(e,t=[]){const n=this.getProjectConfig();if(!n)return this.errorReporter.report(y,"decideAll"),{};const r=Object.keys(n.featureKeyMap);return this.decideForKeys(e,r,t)}decideAllAsync(e,t=[]){return be(this,void 0,void 0,function*(){const n=this.getProjectConfig();if(!n)return this.errorReporter.report(y,"decideAll"),{};const r=Object.keys(n.featureKeyMap);return this.decideForKeysAsync(e,r,t)})}updateOdpSettings(){const e=this.getProjectConfig();e&&this.odpManager&&this.odpManager.updateConfig(e.odpIntegrationConfig)}sendOdpEvent(e,t,n,r){var i,o;if(this.odpManager)try{const i=new vt(t||"",e,n,r);this.odpManager.sendEvent(i)}catch(e){null===(o=this.logger)||void 0===o||o.error("42",e)}else null===(i=this.logger)||void 0===i||i.error("44","sendOdpEvent")}isOdpIntegrated(){var e,t,n;return null!==(n=null===(t=null===(e=this.getProjectConfig())||void 0===e?void 0:e.odpIntegrationConfig)||void 0===t?void 0:t.integrated)&&void 0!==n&&n}fetchQualifiedSegments(e,t){var n;
vendor: 5,616 bytes, line 2
2return be(this,void 0,void 0,function*(){return this.odpManager?yield this.odpManager.fetchQualifiedSegments(e,t):(null===(n=this.logger)||void 0===n||n.error("44","fetchQualifiedSegments"),null)})}getVuid(){var e;if(this.vuidManager)return this.vuidManager.getVuid();null===(e=this.logger)||void 0===e||e.error("56")}}class Kn{constructor(e){this.predictionEndpointTemplate="https://prediction.cmab.optimizely.com/predict/%s",this.requestHandler=e.requestHandler,this.retryConfig=e.retryConfig,e.predictionEndpointTemplate&&(this.predictionEndpointTemplate=e.predictionEndpointTemplate)}fetchDecision(e,t,n,r){var i,o;return be(this,void 0,void 0,function*(){const a=d(this.predictionEndpointTemplate,e),s=Object.keys(n).map(e=>({id:e,value:n[e],type:"custom_attribute"})),u={instances:[{visitorId:t,experimentId:e,attributes:s,cmabUUID:r}]};return yield this.retryConfig?Ve(()=>this.doFetch(a,JSON.stringify(u)),null===(o=(i=this.retryConfig).backoffProvider)||void 0===o?void 0:o.call(i),this.retryConfig.maxRetries).result:this.doFetch(a,JSON.stringify(u))})}doFetch(e,t){return be(this,void 0,void 0,function*(){const n=yield this.requestHandler.makeRequest(e,{"Content-Type":"application/json"},"POST",t).responsePromise;if(!we(n.statusCode))return Promise.reject(new h("CMAB decision fetch failed with status: %s",n.statusCode));const r=JSON.parse(n.body);return this.validateResponse(r)?String(r.predictions[0].variation_id):Promise.reject(new h("Invalid CMAB fetch response"))})}validateResponse(e){return e.predictions&&e.predictions.length>0&&e.predictions[0].variation_id}}class zn{constructor(e){var t;this.serializers=Array.from({length:1e3},()=>new it),this.cmabCache=e.cmabCache,this.cmabClient=e.cmabClient,this.logger=e.logger,null===(t=this.logger)||void 0===t||t.setName("CmabService")}getSerializerIndex(e,t){const n=this.getCacheKey(e,t),r=o().v3(n);return Math.abs(r)%1e3}getDecision(e,t,n,r){return be(this,void 0,void 0,function*(){const i=this.getSerializerIndex(t.getUserId(),n);return this.serializers[i].run(()=>this.getDecisionInternal(e,t,n,r))})}getDecisionInternal(e,t,n,r){var i,a,s,u,l,c;return be(this,void 0,void 0,function*(){const f=t.getUserId(),d=this.filterAttributes(e,t,n);if(r[Ze.IGNORE_CMAB_CACHE])return null===(i=this.logger)||void 0===i||i.debug("11",f,n),this.fetchDecision(n,f,d);r[Ze.RESET_CMAB_CACHE]&&(null===(a=this.logger)||void 0===a||a.debug("23",f,n),this.cmabCache.reset());const p=this.getCacheKey(f,n);r[Ze.INVALIDATE_USER_CMAB_CACHE]&&(null===(s=this.logger)||void 0===s||s.debug("12",f,n),this.cmabCache.remove(p));const v=yield this.cmabCache.lookup(p),h=JSON.stringify(d,Object.keys(d).sort()),g=String(o().v3(h));if(v){if(v.attributesHash===g)return null===(u=this.logger)||void 0===u||u.debug("3",f,n),{variationId:v.variationId,cmabUuid:v.cmabUuid};null===(l=this.logger)||void 0===l||l.debug("2",f,n),this.cmabCache.remove(p)}else null===(c=this.logger)||void 0===c||c.debug("4",f,n);const m=yield this.fetchDecision(n,f,d);return this.cmabCache.save(p,{attributesHash:g,variationId:m.variationId,cmabUuid:m.cmabUuid}),m})}fetchDecision(e,t,n){return be(this,void 0,void 0,function*(){const i=(0,r.A)();return{variationId:yield this.cmabClient.fetchDecision(e,t,n,i),cmabUuid:i}})}filterAttributes(e,t,n){const r={},i=t.getAttributes(),o=e.experimentIdMap[n];return o&&o.cmab?(o.cmab.attributeIds.forEach(t=>{const n=e.attributeIdMap[t];i.hasOwnProperty(n.key)&&(r[t]=i[n.key])}),r):r}getCacheKey(e,t){return`${e.length}-${e}-${t}`}}const qn=e=>{var t,n;const{clientEngine:r,clientVersion:i,jsonSchemaValidator:o,userProfileService:a,userProfileServiceAsync:s,defaultDecideOptions:u,disposable:l,requestHandler:c}=e,f=(e=>{if(!e||"object"!=typeof e)throw new Error(Ce);if(!e[Te])throw new Error(Ce);return e[Te]})(e.projectConfigManager),d=(e=>{if(e&&"object"==typeof e)return e[ut]})(e.eventProcessor),p=(e=>{if(e&&"object"==typeof e)return e[yt]})(e.odpManager),v=(e=>{if(e&&"object"==typeof e)return e[bt]})(e.vuidManager),h=(e=>{if(e&&"object"==typeof e)return e[A]})(e.errorNotifier),g=(e=>{if(e&&"object"==typeof e)return e[D]})(e.logger),m=new Kn({requestHandler:c,retryConfig:{maxRetries:1,backoffProvider:()=>new Ie(100)},predictionEndpointTemplate:null===(t=e.cmab)||void 0===t?void 0:t.predictionEndpointTemplate}),y=(null===(n=e.cmab)||void 0===n?void 0:n.cache)?((e,t)=>{const n=(e,t)=>{if(void 0!==e)return t(e)},r={lookup:r=>"sync"===e.operation?n(e.lookup(r),t):e.lookup(r).then(e=>n(e,t)),save:(t,n)=>e.save(t,(e=>JSON.stringify(e))(n))};return Object.setPrototypeOf(r,e),r})(e.cmab.cache,e=>JSON.parse(e)):(()=>{var t,n;const r=(null===(t=e.cmab)||void 0===t?void 0:t.cacheSize)||1e4,i=(null===(n=e.cmab)||void 0===n?void 0:n.cacheTtl)||18e5;return new ft(r,i)})(),b={cmabService:new zn({cmabClient:m,cmabCache:y,logger:null==g?void 0:g.child()}),clientEngine:r||U,clientVersion:i||L,jsonSchemaValidator:o,userProfileService:a,userProfileServiceAsync:s,defaultDecideOptions:u,disposable:l,logger:g,errorNotifier:h,projectConfigManager:f,eventProcessor:d,odpManager:p,vuidManager:v,UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators};return new Bn(b)};class Hn{constructor(e={}){var t;this.logger=e.logger,this.timeout=null!==(t=e.timeout)&&void 0!==t?t:6e4}makeRequest(e,t,n,r){const i=new XMLHttpRequest,o=new Promise((o,a)=>{i.open(n,e,!0),this.setHeadersInXhr(t,i),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(0===i.status)return void a(new h("49"));const e=this.parseHeadersFromXhr(i),t={statusCode:i.status,body:i.responseText,headers:e};o(t)}},i.timeout=this.timeout,i.ontimeout=()=>{var e;
2null===(e=this.logger)||void 0===e||e.warn("50")},i.send(r)});return{responsePromise:o,abort(){i.abort()}}}setHeadersInXhr(e,t){Object.keys(e).forEach(n=>{const r=e[n];"string"==typeof r&&t.setRequestHeader(n,r)})}parseHeadersFromXhr(e){const t=e.getAllResponseHeaders();if(null===t)return{};const n=t.split("\r\n"),r={};return n.forEach(e=>{var t;try{const t=e.indexOf(": ");if(t>-1){const n=e.slice(0,t),i=e.slice(t+2);n&&i&&(r[n]=i)}}catch(n){null===(t=this.logger)||void 0===t||t.warn("57",e)}}),r}}const Wn=new class{constructor(e){this.requestHandler=e}dispatchEvent(e){return be(this,void 0,void 0,function*(){if("POST"!==e.httpVerb)return Promise.reject(new h("46"));const t=JSON.stringify(e.params);return this.requestHandler.makeRequest(e.url,{"content-type":"application/json"},"POST",t).responsePromise})}}(new Hn),Gn=e=>{const t={autoUpdate:!1,requestHandler:new Hn};return n=Object.assign(Object.assign({},t),e),{[Te]:Me(n)};var n};class $n{constructor(){this.operation="sync"}set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){const t=localStorage.getItem(e);return t?JSON.parse(t):void 0}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}getKeys(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);n&&e.push(n)}return e}getBatched(e){return e.map(e=>this.get(e))}}const Jn=(e={})=>{var t;const n=e.eventStore?"async"===(r=e.eventStore).operation?new Re(r,at,JSON.parse,JSON.stringify):new Ne(r,at,JSON.parse,JSON.stringify):new st({store:new $n,maxSize:e.batchSize?Math.max(2*e.batchSize,500):500,ttl:e.storeTtl});var r;return((e,t=rt)=>ct(((e,t=rt)=>{const{eventDispatcher:n,closingEventDispatcher:r,retryOptions:i,eventStore:o}=e;lt(n),r&&lt(r),o&&Ee(o);const a=i?{maxRetries:i.maxRetries,backoffProvider:()=>{var e,t;const n=null!==(e=null==i?void 0:i.minBackoff)&&void 0!==e?e:200,r=null!==(t=null==i?void 0:i.maxBackoff)&&void 0!==t?t:1e3;return new Se(n,r,50)}}:void 0,s=[],{defaultFlushInterval:u,defaultBatchSize:l}=e;let c=u;void 0===e.flushInterval||e.flushInterval<=0?s.push({level:E.Warn,message:"Invalid flushInterval %s, defaulting to %s",params:[e.flushInterval,u]}):c=e.flushInterval;let f=l;return void 0===e.batchSize||e.batchSize<=0?s.push({level:E.Warn,message:"Invalid batchSize %s, defaulting to %s",params:[e.batchSize,l]}):f=e.batchSize,new t({eventDispatcher:n,closingEventDispatcher:r,dispatchRepeater:new ke(c),failedEventRepeater:e.failedEventRetryInterval?new ke(e.failedEventRetryInterval):void 0,retryConfig:a,batchSize:f,eventStore:o,startupLogs:s})})(e,t)))({eventDispatcher:e.eventDispatcher||Wn,closingEventDispatcher:e.closingEventDispatcher||(e.eventDispatcher?void 0:k),flushInterval:e.flushInterval,batchSize:e.batchSize,defaultFlushInterval:1e3,defaultBatchSize:10,retryOptions:{maxRetries:null!==(t=e.maxRetries)&&void 0!==t?t:2},failedEventRetryInterval:2e4,eventStore:n,storeTtl:e.storeTtl})};new class{constructor(e,t){this.vuidCacheKey="optimizely-vuid",this.waitPromise=Promise.resolve(),this.cache=e,this.logger=t}setCache(e){this.cache=e,this.vuid=void 0}setLogger(e){this.logger=e}serialize(e){return be(this,void 0,void 0,function*(){const t=this.waitPromise.then(e,e);return this.waitPromise=t.catch(()=>{}),t})}remove(){return be(this,void 0,void 0,function*(){return this.serialize(()=>be(this,void 0,void 0,function*(){this.cache&&(this.vuid=void 0,yield this.cache.remove(this.vuidCacheKey))}))})}load(){return be(this,void 0,void 0,function*(){return this.vuid?this.vuid:this.serialize(()=>be(this,void 0,void 0,function*(){if(!this.cache)return;const e=yield this.cache.get(this.vuidCacheKey);if(e&&gt(e))return this.vuid=e,this.vuid;const t=(()=>{const e=(0,r.A)().replace(/-/g,""),t=`${ht}${e}`;return t.length<=32?t:t.substring(0,32)})();return yield this.cache.set(this.vuidCacheKey,t),this.vuid=t,t}))})}};var Xn=n(63696),Qn=n(26166),Yn=n(43676);const Zn=Symbol("react-logger");const er=Symbol("react-client-meta");function tr(e){let t;e.logger&&(t=e.logger[Zn],delete e.logger[Zn]);const n=function(e){const t=qn(Object.assign(Object.assign({},e),{requestHandler:new Hn}));if(t){const e="onpagehide"in window?"pagehide":"unload";window.addEventListener(e,()=>{t.flushImmediately()})}return t}(Object.assign(Object.assign({},e),{clientEngine:"react-sdk",clientVersion:"4.0.0"})),r=Object.create(n);return r[er]={hasOdpManager:!!e.odpManager,hasVuidManager:!!e.vuidManager,logger:t},r}const nr={userContext:null,error:null};class rr{constructor(){this.notifyScheduled=!1,this.state=Object.assign({},nr),this.listeners=new Set,this.forcedDecisionListeners=new Map,this.allForcedDecisionListeners=new Set}getState(){return this.state}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setUserContext(e){e&&this.wrapForcedDecisionMethods(e),this.state=Object.assign(Object.assign({},this.state),{userContext:e}),this.notifyListeners()}setError(e){this.state.error!==e&&(this.state=Object.assign(Object.assign({},this.state),{error:e}),this.notifyListeners())}setState(e){this.state=Object.assign(Object.assign({},this.state),e),this.notifyListeners()}refresh(){this.state=Object.assign({},this.state),this.notifyListeners()}reset(){this.state=Object.assign({},nr),this.forcedDecisionListeners.clear(),this.allForcedDecisionListeners.clear(),this.notifyListeners()}subscribeForcedDecision(e,t){this.forcedDecisionListeners.has(e)||this.forcedDecisionListeners.set(e,new Set);const n=this.forcedDecisionListeners.get(e);return n.add(t),()=>{n.delete(t),0===n.size&&this.forcedDecisionListeners.delete(e)}}subscribeAllForcedDecisions(e){return this.allForcedDecisionListeners.add(e),()=>{this.allForcedDecisionListeners.delete(e)}}notifyForcedDecision(e){this.notifyPerKeyForcedDecision(e),this.notifyAllForcedDecisionListeners()}notifyPerKeyForcedDecision(e){const t=this.forcedDecisionListeners.get(e);
2t&&t.forEach(e=>e())}notifyAllForcedDecisionListeners(){this.allForcedDecisionListeners.forEach(e=>e())}wrapForcedDecisionMethods(e){const t=new Set,n=e.setForcedDecision.bind(e),r=e.removeForcedDecision.bind(e),i=e.removeAllForcedDecisions.bind(e);e.setForcedDecision=(r,i)=>{const o=n(r,i);return o&&(t.add(r.flagKey),this.state.userContext===e&&this.notifyForcedDecision(r.flagKey)),o},e.removeForcedDecision=n=>{const i=r(n);return i&&(t.delete(n.flagKey),this.state.userContext===e&&this.notifyForcedDecision(n.flagKey)),i},e.removeAllForcedDecisions=()=>{const n=i();return n&&(this.state.userContext===e&&(t.forEach(e=>this.notifyPerKeyForcedDecision(e)),this.notifyAllForcedDecisionListeners()),t.clear()),n}}notifyListeners(){this.notifyScheduled||(this.notifyScheduled=!0,queueMicrotask(()=>{this.notifyScheduled=!1,this.listeners.forEach(e=>{e(this.state)})}))}}function ir(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>e===r[t])}class or{constructor(e){this.requestId=0,this.disposed=!1,this.initialized=!1,this.skipSegments=!1,this.client=e.client,this.onUserContextChange=e.onUserContextChange,this.onError=e.onError,this.meta=this.client[er]}resolveUserContext(e,t,n=!1){if(this.initialized&&this.skipSegments===n&&function(e,t){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.id!==t.id)return!1;const n=e.attributes||{},r=t.attributes||{},i=Object.keys(n),o=Object.keys(r);if(i.length!==o.length)return!1;for(const e of i)if(n[e]!==r[e])return!1;return!0}(this.prevUser,e)&&ir(this.prevSegments,t))return;this.initialized=!0,this.skipSegments=n,this.prevUser=e,this.prevSegments=t;const r=++this.requestId;e?this.createUserContext(r,e,t).catch(e=>{this.isStale(r)||this.onError(e instanceof Error?e:new Error(String(e)))}):this.onUserContextChange(null)}dispose(){this.disposed=!0}createUserContext(e,t,n){return(0,Qn.sH)(this,void 0,void 0,function*(){if(!(null==t?void 0:t.id)&&this.meta.hasVuidManager&&(yield this.client.onReady(),this.isStale(e)))return;const r=this.client.createUserContext(null==t?void 0:t.id,null==t?void 0:t.attributes);if(void 0===n){if(!this.skipSegments&&this.meta.hasOdpManager){if(yield this.client.onReady(),this.isStale(e))return;if(this.client.isOdpIntegrated()&&(yield r.fetchQualifiedSegments(),this.isStale(e)))return}this.onUserContextChange(r)}else{if(r.qualifiedSegments=n,this.onUserContextChange(r),this.skipSegments)return;if(this.meta.hasOdpManager){if(yield this.client.onReady(),this.isStale(e))return;if(this.client.isOdpIntegrated()){const t=[...n];if(yield r.fetchQualifiedSegments(),this.isStale(e))return;ir(t,r.qualifiedSegments)||this.onUserContextChange(r)}}}})}isStale(e){return this.disposed||e!==this.requestId}}const ar=(0,Xn.createContext)(null);function sr({client:e,user:t,timeout:n,skipSegments:r=!1,qualifiedSegments:i,children:o}){var a;const s=(0,Xn.useRef)(null),u=(0,Xn.useRef)(null),l=(0,Xn.useRef)(),c=(0,Xn.useMemo)(()=>{var t;return null===(t=null==e?void 0:e.getOptimizelyConfig())||void 0===t?void 0:t.revision},[e]);null===s.current&&(s.current=new rr);const f=s.current,d=(0,Xn.useMemo)(()=>({store:f,client:e}),[e,f]);return e&&(null!==u.current&&l.current===e||(null===(a=u.current)||void 0===a||a.dispose(),u.current=new or({client:e,onUserContextChange:e=>f.setUserContext(e),onError:e=>f.setError(e)}),l.current=e),u.current.resolveUserContext(t,i,r)),(0,Xn.useEffect)(()=>{if(!e)return void f.setError(new Error("Optimizely client is required"));let t,r=!0;return e.onReady({timeout:n}).then(()=>{var n;r&&((null===(n=e.getOptimizelyConfig())||void 0===n?void 0:n.revision)!==c&&f.refresh(),t=e.notificationCenter.addNotificationListener(Qe.OPTIMIZELY_CONFIG_UPDATE,()=>f.refresh()))}).catch(e=>{if(!r)return;const t=e instanceof Error?e:new Error(String(e));f.setError(t)}),()=>{r=!1,void 0!==t&&e.notificationCenter.removeNotificationListener(t)}},[e,n,f,c]),Xn.createElement(ar.Provider,{value:d},o)}function ur(){const e=(0,Xn.useContext)(ar);if(!e)throw new Error("Optimizely hooks must be used within an <OptimizelyProvider>");return e}function lr(){return ur().client}function cr(){const{store:e}=ur(),t=(0,Xn.useCallback)(t=>e.subscribe(t),[e]),n=(0,Xn.useCallback)(()=>
2e.getState(),[e]),r=(0,Yn.useSyncExternalStore)(t,n,n);return(0,Xn.useMemo)(()=>{const{userContext:e,error:t}=r;return t?{userContext:null,isLoading:!1,error:t}:null===e?{userContext:null,isLoading:!0,error:null}:{userContext:e,isLoading:!1,error:null}},[r])}function fr(e){const t=(0,Xn.useCallback)(t=>e.subscribe(t),[e]),n=(0,Xn.useCallback)(()=>e.getState(),[e]);return(0,Yn.useSyncExternalStore)(t,n,n)}function dr(e){const t=(0,Xn.useRef)(e);return function(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();for(let e=0;e<n.length;e++)if(n[e]!==r[e])return!1;return!0}(t.current,e)||(t.current=e),t.current}function pr(e,t){const{store:n,client:r}=ur(),i=dr(null==t?void 0:t.decideOptions),o=fr(n),[a,s]=(0,Xn.useState)(0);return(0,Xn.useEffect)(()=>n.subscribeForcedDecision(e,()=>{s(e=>e+1)}),[n,e]),(0,Xn.useMemo)(()=>{const{userContext:t,error:n}=o,a=null!==r.getOptimizelyConfig();return n?{decision:null,isLoading:!1,error:n}:a&&null!==t?{decision:t.decide(e,i),isLoading:!1,error:null}:{decision:null,isLoading:!0,error:null}},[a,o,r,e,i])}},13066(e,t,n){"use strict";n.r(t),n.d(t,{focusable:()=>I,getTabIndex:()=>d,isFocusable:()=>C,isTabbable:()=>k,tabbable:()=>S});var r=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],i=r.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},u=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):u(e.parentNode))},l=function(e,t,n){if(u(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},c=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!u(s,!1))if("SLOT"===s.tagName){var l=s.assignedElements(),f=l.length?l:s.children,d=c(f,!0,n);
vendor: 4,373 bytes, line 2
2n.flatten?r.push.apply(r,d):r.push({scopeParent:s,candidates:d})}else{a.call(s,i)&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var p=s.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(s),v=!u(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(p&&v){var h=c(!0===p?s.children:p.children,!0,n);n.flatten?r.push.apply(r,h):r.push({scopeParent:s,candidates:h})}else o.unshift.apply(o,s.children)}}return r},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!f(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},h=function(e){return function(e){return v(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},m=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof r){for(var o=e;e;){var u=e.parentElement,l=s(e);if(u&&!u.shadowRoot&&!0===r(u))return g(e);e=e.assignedSlot?e.assignedSlot:u||l===e.ownerDocument?u:l.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,u=!1;if(o&&o!==e)for(u=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!u&&a;){var l,c,f;u=!(null===(c=a=null===(l=o=s(a))||void 0===l?void 0:l.host)||void 0===c||null===(f=c.ownerDocument)||void 0===f||!f.contains(a))}return u}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||function(e){return v(e)&&"hidden"===e.type}(t)||m(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(h(t)||d(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,o=i?e.scopeParent:e,a=function(e,t){var n=d(e);return n<0&&t&&!f(e)?0:n}(o,i),s=i?x(e.candidates):o;0===a?i?t.push.apply(t,s):t.push(o):n.push({documentOrder:r,tabIndex:a,item:e,isScope:i,content:s})}),n.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},S=function(e,t){var n;return n=(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):l(e,t.includeContainer,b.bind(null,t)),x(n)},I=function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,y.bind(null,t))},k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&b(t,e)},E=r.concat("iframe:not([inert]):not([inert] *)").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,E)&&y(t,e)}},17298(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/;e.exports=t.default},27405(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(41705);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){(0,r.A)(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}},32473(e,t,n){"use strict";var r=n(63696);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})},[e,n,t]),a(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},34625(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,d=null,p=3,v=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function S(e){if(g=!1,x(e),!h)if(null!==r(l))h=!0,k||(k=!0,I());else{var t=r(c);null!==t&&A(S,t.startTime-e)}}var I,k=!1,E=-1,C=5,T=-1;function P(){return!!m||!(t.unstable_now()-T<C)}function M(){if(m=!1,k){var e=t.unstable_now();T=e;var n=!0;try{e:{h=!1,g&&(g=!1,b(E),E=-1),v=!0;var o=p;try{t:{for(x(e),d=r(l);null!==d&&!(d.expirationTime>e&&P());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){d.callback=s,x(e),n=!0;break t}d===r(l)&&i(l),x(e)}else i(l);d=r(l)}if(null!==d)n=!0;else{var u=r(c);null!==u&&A(S,u.startTime-e),n=!1}}break e}finally{d=null,p=o,v=!1}n=void 0}}finally{n?I():k=!1}}}if("function"==typeof w)I=function(){w(M)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,D=_.port2;_.port1.onmessage=M,I=function(){D.postMessage(null)}}else I=function(){y(M,0)};function A(e,n){E=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e||(C=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){m=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(g?(b(E),E=-1):g=!0,A(S,o-a))):(e.sortIndex=s,n(l,e),h||v||(h=!0,k||
2(k=!0,I()))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},37437(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:()=>b});var r=n(13066);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t){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 a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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?s(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 c(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}var f={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==f.getActiveTrap(e)&&f.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),f.unpauseTrap(e)},pauseTrap:function(e){var t=f.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=f.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},d=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},p=function(e){return d(e)&&!e.shiftKey},v=function(e){return d(e)&&e.shiftKey},h=function(e){return setTimeout(e,0)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},m=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},y=[],b=function(e,t){var n,i=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||y,s=u({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:p,isKeyBackward:v},t),c={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},w=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return c.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||i.find(function(t){return t===e})})},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,o=t.params,a=void 0===o?[]:o,u=s[e];if("function"==typeof u&&(u=u.apply(void 0,l(a))),!0===u&&(u=void 0),!u){if(void 0===u||!1===u)return u;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=u;if("string"==typeof u){try{c=i.querySelector(u)}catch(t){throw new Error("`".concat(e,'` appears to be an invali
2d selector; error="').concat(t.message,'"'))}if(!c&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},S=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.isFocusable)(e,s.tabbableOptions))if(w(i.activeElement)>=0)e=i.activeElement;else{var t=c.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}else null===e&&(e=x("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},I=function(){if(c.containerGroups=c.containers.map(function(e){var t=(0,r.tabbable)(e,s.tabbableOptions),n=(0,r.focusable)(e,s.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find(function(e){return(0,r.isTabbable)(e)}),u=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),l=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:u,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find(function(e){return(0,r.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,r.isTabbable)(e)}):t[o+(i?1:-1)]}}}),c.tabbableGroups=c.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(c.containerGroups.find(function(e){return e.posTabIndexesFound})&&c.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},k=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?k(t.shadowRoot):t},E=function(e){!1!==e&&e!==k(document)&&(e&&e.focus?(e.focus({preventScroll:!!s.preventScroll}),c.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):E(S()))},C=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},T=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||m(n),I();var a=null;if(c.tabbableGroups.length>0){var u=w(t,n),l=u>=0?c.containerGroups[u]:void 0;if(u<0)a=o?c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:c.tabbableGroups[0].firstTabbableNode;else if(o){var f=c.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(f<0&&(l.container===t||(0,r.isFocusable)(t,s.tabbableOptions)&&!(0,r.isTabbable)(t,s.tabbableOptions)&&!l.nextTabbableNode(t,!1))&&(f=u),f>=0){var p=0===f?c.tabbableGroups.length-1:f-1,v=c.tabbableGroups[p];a=(0,r.getTabIndex)(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else d(n)||(a=l.nextTabbableNode(t,!1))}else{var h=c.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(h<0&&(l.container===t||(0,r.isFocusable)(t,s.tabbableOptions)&&!(0,r.isTabbable)(t,s.tabbableOptions)&&!l.nextTabbableNode(t))&&(h=u),h>=0){var g=h===c.tabbableGroups.length-1?0:h+1,y=c.tabbableGroups[g];a=(0,r.getTabIndex)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else d(n)||(a=l.nextTabbableNode(t))}}else a=x("fallbackFocus");return a},P=function(e){var t=m(e);w(t,e)>=0||(g(s.clickOutsideDeactivates,e)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):g(s.allowOutsideClick,e)||e.preventDefault())},M=function(e){var t=m(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(c.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(c.mostRecentlyFocusedNode)if((0,r.getTabIndex)(c.mostRecentlyFocusedNode)>0){var a=w(c.mostRecentlyFocusedNode),u=c.containerGroups[a].tabbableNodes;if(u.length>0){var l=u.findIndex(function(e){return e===c.mostRecentlyFocusedNode});l>=0&&(s.isKeyForward(c.recentNavEvent)?l+1<u.length&&(i=u[l+1],o=!1):l-1>=0&&(i=u[l-1],o=!1))}}else c.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(o=!1);else o=!1;o&&(i=T({target:c.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(c.recentNavEvent)})),E(i||(c.mostRecentlyFocusedNode||S()))}c.recentNavEvent=void 0},_=function(e){(s.isKeyForward(e)||s.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c.recentNavEvent=e;var n=T({event:e,isBackward:t});n&&(d(e)&&e.preventDefault(),E(n))}(e,s.isKeyBackward(e))},D=function(e){(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)}
2)(e)&&!1!==g(s.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},A=function(e){var t=m(e);w(t,e)>=0||g(s.clickOutsideDeactivates,e)||g(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},O=function(){if(c.active)return f.activateTrap(a,n),c.delayInitialFocusTimer=s.delayInitialFocus?h(function(){E(S())}):E(S()),i.addEventListener("focusin",M,!0),i.addEventListener("mousedown",P,{capture:!0,passive:!1}),i.addEventListener("touchstart",P,{capture:!0,passive:!1}),i.addEventListener("click",A,{capture:!0,passive:!1}),i.addEventListener("keydown",_,{capture:!0,passive:!1}),i.addEventListener("keydown",D),n},N=function(){if(c.active)return i.removeEventListener("focusin",M,!0),i.removeEventListener("mousedown",P,!0),i.removeEventListener("touchstart",P,!0),i.removeEventListener("click",A,!0),i.removeEventListener("keydown",_,!0),i.removeEventListener("keydown",D),n},R="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===c.mostRecentlyFocusedNode})})&&E(S())}):void 0,F=function(){R&&(R.disconnect(),c.active&&!c.paused&&c.containers.map(function(e){R.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return c.active},get paused(){return c.paused},activate:function(e){if(c.active)return this;var t,r=b(e,"onActivate"),o=b(e,"onPostActivate"),u=b(e,"checkCanFocusTrap"),l=f.getActiveTrap(a),d=!1;l&&!l.paused&&(null===(t=l._setSubtreeIsolation)||void 0===t||t.call(l,!1),d=!0);try{u||I(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=k(i),null==r||r();var p=function(){u&&I(),O(),F(),s.isolateSubtrees&&n._setSubtreeIsolation(!0),null==o||o()};if(u)return u(c.containers.concat()).then(p,p),this;p()}catch(e){var v;if(l===f.getActiveTrap(a)&&d)null===(v=l._setSubtreeIsolation)||void 0===v||v.call(l,!0);throw e}return this},deactivate:function(e){if(!c.active)return this;var t=u({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,c.paused||n._setSubtreeIsolation(!1),c.alreadySilent.clear(),N(),c.active=!1,c.paused=!1,F(),f.deactivateTrap(a,n);var r=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),o=b(t,"checkCanReturnFocus"),l=b(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var d=function(){h(function(){l&&E(C(c.nodeFocusedBeforeActivation)),null==i||i()})};return l&&o?(o(C(c.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return c.active?(c.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return c.active?(c.manuallyPaused=!1,a[a.length-1]!==this?this:this._setPausedState(!1,e)):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return c.containers=t.map(function(e){return"string"==typeof e?i.querySelector(e):e}),s.isolateSubtrees&&function(e){c.active&&!c.paused&&n._setSubtreeIsolation(!1),c.adjacentElements.clear(),c.alreadySilent.clear();var t,r=new Set,i=new Set,a=o(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;r.add(s);for(var u="undefined"!=typeof ShadowRoot&&s.getRootNode()instanceof ShadowRoot,l=s;l;){r.add(l);var f=l.parentElement,d=[];f?d=f.children:!f&&u&&(d=l.getRootNode().children,f=l.getRootNode().host,u="undefined"!=typeof ShadowRoot&&f.getRootNode()instanceof ShadowRoot);var p,v=o(d);try{for(v.s();!(p=v.n()).done;){var h=p.value;i.add(h)}}catch(e){v.e(e)}finally{v.f()}l=f}}}catch(e){a.e(e)}finally{a.f()}r.forEach(function(e){i.delete(e)}),c.adjacentElements=i}(c.containers),c.active&&(I(),s.isolateSubtrees&&!c.paused&&n._setSubtreeIsolation(!0)),F(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return c.manuallyPaused}},_setPausedState:{value:function(e,t){if(c.paused===e)return this;if(c.paused=e,e){var r=b(t,"onPause"),i=b(t,"onPostPause");null==r||r(),N(),F(),n._setSubtreeIsolation(!1),null==i||i()}else{var o=b(t,"onUnpause"),a=b(t,"onPostUnpause");null==o||o(),n._setSubtreeIsolation(!0),I(),O(),F(),null==a||a()}return this}},_setSubtreeIsolation:{value:function(e){s.isolateSubtrees&&c.adjacentElements.forEach(function(t){var n;if(e)if("aria-hidden"===s.isolateSubtrees)"true"!==t.ariaHidden&&"true"!==(null===(n=t.getAttribute("aria-hidden"))||void 0===n?void 0:n.toLowerCase())||c.alreadySilent.add(t),t.setAttribute("aria-hidden","true");else(t.inert||t.hasAttribute("inert"))&&c.alreadySilent.add(t),t.setAttribute("inert",!0);else if(c.alreadySilent.has(t));else if("aria-hidden"===s.isolateSubtrees)t.removeAttribute("aria-hidden");else t.removeAttribute("inert")})}}}),n.updateContainerElements(e),n}},38299(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case h:case u:return e;default:return t}}case i:return t}}}function S(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},40362(e,t,n){"use strict";var r=n(56441);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},40694(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},41705(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(92162);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},43676(e,t,n){"use strict";e.exports=n(32473)},49257(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},51033(e,t,n){"use strict";var r;n.d(t,{H:()=>ev});var i="undefined",o="constructor",a="prototype",s="function",u="_dynInstFuncs",l="_isDynProxy",c="_dynClass",f="_dynInstChk",d=f,p="_dfOpts",v="_unknown_",h="__proto__",g="_dyn"+h,m="__dynProto$Gbl",y="_dynInstProto",b="useBaseInst",w="setInstFuncs",x=Object,S=x.getPrototypeOf,I=x.getOwnPropertyNames;var k,E=(typeof globalThis!==i&&(k=globalThis),k||typeof self===i||(k=self),k||typeof window===i||(k=window),k||typeof global===i||(k=global),k||{}),C=E[m]||(E[m]={o:(r={},r[w]=!0,r[b]=!0,r),n:1e3});function T(e,t){return e&&x[a].hasOwnProperty.call(e,t)}function P(e){return e&&(e===x[a]||e===Array[a])}function M(e){return P(e)||e===Function[a]}function _(e){var t;if(e){if(S)return S(e);var n=e[h]||e[a]||(e[o]?e[o][a]:null);t=e[g]||n,T(e,g)||(delete e[y],t=e[g]=e[y]||e[g],e[y]=n)}return t}function D(e,t){var n=[];if(I)n=I(e);else for(var r in e)"string"==typeof r&&T(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function A(e,t,n){return t!==o&&typeof e[t]===s&&(n||T(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function N(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function R(e,t,n,r,i){function o(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&T(n,c)){var o=e[u]||{};if((i=(o[n[c]]||{})[t])||O("Missing ["+t+"] "+s),!i[f]&&!1!==o[d]){for(var a=!T(e,t),l=_(e),p=[];a&&l&&!M(l)&&!N(p,l);){var v=l[t];if(v){a=v===r;break}p.push(l),l=_(l)}try{a&&(e[t]=i),i[f]=1}catch(e){o[d]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=_(t)[e]),typeof r!==s&&O("["+e+"] is not a "+s),r}(t,e,n);return r.apply(this,arguments)};return n[l]=1,n}if(!P(e)){var a=n[u]=n[u]||{},p=a[t]=a[t]||{};!1!==a[d]&&(a[d]=!!i),D(n,function(t){A(n,t,!1)&&n[t]!==r[t]&&(p[t]=n[t],delete n[t],(!T(e,t)||e[t]&&!e[t][l])&&(e[t]=o(e,t)))})}}function F(e,t){return T(e,a)?e.name||t||v:((e||{})[o]||{}).name||t||v}function j(e,t,n,r){T(e,a)||O("theClass is an invalid class definition.");var i=e[a];(function(e,t){if(S){for(var n=[],r=_(t);r&&!M(r)&&!N(n,r);){if(r===e)return!0;n.push(r),r=_(r)}return!1}return!0})(i,t)||O("["+F(e)+"] not in hierarchy of ["+F(t)+"]");var o=null;T(i,c)?o=i[c]:(o="_dynCls$"+F(e,"_")+"$"+C.n,C.n++,i[c]=o);var s=j[p],f=!!s[b];f&&r&&void 0!==r[b]&&(f=!!r[b]);var v=function(e){var t={};return D(e,function(n){!t[n]&&A(e,n,!1)&&(t[n]=e[n])}),t}(t),h=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[l]&&r){var o=e[u]||{};!1!==o[d]&&(i=(o[t[c]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};D(n,function(e){o[e]=i(t,n,e)});for(var a=_(e),s=[];a&&!M(a)&&!N(s,a);)D(a,function(e){!o[e]&&A(a,e,!S)&&(o[e]=i(t,a,e))}),s.push(a),a=_(a);return o}(i,t,v,f);n(t,h);var g=!!S&&!!s[w];g&&r&&(g=!!r[w]),R(i,o,t,v,!1!==g)}j[p]=C.o;var U="function",L="object",V="undefined",B="prototype",K="hasOwnProperty",z=Object,q=z[B],H=z.assign,W=z.create,G=z.defineProperty,$=q[K],J=null;function X(e){void 0===e&&(e=!0);var t=!1===e?null:J;return t||(typeof globalThis!==V&&(t=globalThis),t||typeof self===V||(t=self),t||typeof window===V||(t=window),t||typeof global===V||(t=global),J=t),t}function Q(e){throw new TypeError(e)}function Y(e){if(W)return W(e);if(null==e)return{};var t=typeof e;function n(){}return t!==L&&t!==U&&Q("Object prototype may only be an Object:"+e),n[B]=e,new n}(X()||{}).Symbol,(X()||{}).Reflect;var Z=H||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])q[K].call(t,i)&&(e[i]=t[i]);return e},ee=function(e,t){return ee=z.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[K](n)&&(e[n]=t[n])},ee(e,t)};function te(e,t){function n(){this.constructor=e}typeof t!==U&&null!==t&&Q("Class extends value "+String(t)+" is not a constructor or null"),ee(e,t),e[B]=null===t?Y(t):(n[B]=t[B],new n)}function ne(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var re="initialize",ie="name",oe="getNotifyMgr",ae="identifier",se="push",ue="isInitialized",le="config",ce="instrumentationKey",fe="logger",de="length",pe="time",ve="processNext",he="getProcessTelContext",ge="addNotificationListener",me="removeNotificationListener",ye="stopPollingInternalLogs",be="onComplete",we="getPlugin",xe="flush",Se="_extensions",Ie="splice",ke="teardown",Ee="messageId",Ce="message",Te="isAsync",Pe="_doTeardown",Me="update",_e="getNext",De="diagLog",Ae="setNextPlugin",Oe="createNew",Ne="cookieCfg",Re="indexOf",Fe="substring",je="userAgent",Ue="split",Le="setEnabled",Ve="substr",Be="nodeType",Ke="apply",ze="replace",qe="enableDebugExceptions",He="logInternalMessage",We="toLowerCase",Ge="call",$e="type",Je="handler",Xe="listeners",Qe="isChildEvt",Ye="getCtx",Ze="setCtx",et="complete",tt="traceId",nt="spanId",rt="traceFlags",it="version",ot="",at="channels",st="
2core",ut="createPerfMgr",lt="disabled",ct="extensionConfig",ft="processTelemetry",dt="priority",pt="eventsSent",vt="eventsDiscarded",ht="eventsSendRequest",gt="perfEvent",mt="errorToConsole",yt="warnToConsole",bt="getPerfMgr",wt="toISOString",xt="endsWith",St="startsWith",It="indexOf",kt="reduce",Et="trim",Ct="toString",Tt="constructor",Pt=G,Mt=z.freeze,_t=(z.seal,z.keys),Dt=String[B],At=Dt[Et],Ot=Dt[xt],Nt=(Dt[St],Date[B][wt]),Rt=Array.isArray,Ft=q[Ct],jt=$[Ct],Ut=jt[Ge](z),Lt=/-([a-z])/g,Vt=/([^\w\d_$])/g,Bt=/^(\d+[\w\d_$])/,Kt=Object.getPrototypeOf;function zt(e){if(e){if(Kt)return Kt(e);var t=e.__proto__||e[B]||e[Tt];if(t)return t}return null}function qt(e){return void 0===e||typeof e===V}function Ht(e){return null===e||qt(e)}function Wt(e){return!Ht(e)}function Gt(e,t){return!(!e||!$[Ge](e,t))}function $t(e){return!(!e||typeof e!==L)}function Jt(e){return!(!e||typeof e!==U)}function Xt(e){var t=e;return t&&nn(t)&&(t=(t=(t=t[ze](Lt,function(e,t){return t.toUpperCase()}))[ze](Vt,"_"))[ze](Bt,function(e,t){return"_"+t})),t}function Qt(e,t){if(e)for(var n in e)$[Ge](e,n)&&t[Ge](e,n,e[n])}function Yt(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=Ot?e[xt](t):function(e,t){var n=!1,r=t?t[de]:0,i=e?e[de]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,a=r-1;a>=0;a--){if(e[o]!=t[a])return!1;o--}n=!0}return n}(e,t)),n}function Zt(e,t){return!(!e||!t)&&-1!==e[Re](t)}var en=Rt||function(e){return!(!e||"[object Array]"!==Ft[Ge](e))};function tn(e){return!(!e||"[object Error]"!==Ft[Ge](e))}function nn(e){return"string"==typeof e}function rn(e){return"number"==typeof e}function on(e){return"boolean"==typeof e}function an(e){var t=!1;if(e&&"object"==typeof e){var n=Kt?Kt(e):zt(e);n?(n[Tt]&&$[Ge](n,Tt)&&(n=n[Tt]),t=typeof n===U&&jt[Ge](n)===Ut):t=!0}return t}function sn(e){if(e)return Nt?e[wt]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[de]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function un(e,t,n){var r=e[de];try{for(var i=0;i<r&&(!(i in e)||-1!==t[Ge](n||e,e[i],i,e));i++);}catch(e){}}
2function ln(e,t,n){if(e){if(e[It])return e[It](t,n);var r=e[de],i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch(e){}}return-1}function cn(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e[de],o=n||e;r=new Array(i);try{for(var a=0;a<i;a++)a in e&&(r[a]=t[Ge](o,e[a],e))}catch(e){}}return r}function fn(e,t,n){var r;if(e){if(e[kt])return e[kt](t,n);var i=e[de],o=0;if(arguments[de]>=3)r=arguments[2];else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r}function dn(e){return e&&(e=At&&e[Et]?e[Et]():e[ze]?e[ze](/^\s+|(?=\s)\s+$/g,ot):e),e}var pn=!{toString:null}.propertyIsEnumerable("toString"),vn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function hn(e){var t=typeof e;if(t===U||t===L&&null!==e||Q("objKeys called on non-object"),!pn&&_t)return _t(e);var n=[];for(var r in e)e&&$[Ge](e,r)&&n[se](r);if(pn)for(var i=vn[de],o=0;o<i;o++)e&&$[Ge](e,vn[o])&&n[se](vn[o]);return n}function gn(e,t,n,r){if(Pt)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),Pt(e,t,i),!0}catch(e){}return!1}function mn(e){return e}function yn(e){return Mt&&Qt(e,function(e,t){(en(t)||$t(t))&&Mt(t)}),bn(e)}var bn=Mt||mn;function wn(){var e=Date;return e.now?e.now():(new e).getTime()}function xn(e){return tn(e)?e[ie]:ot}function Sn(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function In(e,t,n){var r;return e?!(r=e[t])&&Ht(r)&&(r=qt(n)?{}:n,e[t]=r):r=qt(n)?{}:n,r}function kn(e,t){return Ht(e)?t:e}function En(e){return!!e}function Cn(e){throw new Error(e)}function Tn(e,t){var n=null,r=null;return Jt(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][Ke](r,e)}}function Pn(e,t,n,r,i){e&&t&&n&&(!1!==i||qt(e[t]))&&(e[t]=Tn(n,r))}function Mn(e,t,n,r){return e&&t&&$t(e)&&en(n)&&un(n,function(n){nn(n)&&Pn(e,n,t,n,r)}),e}function _n(e){return e&&H&&(e=z(H({},e))),e}function Dn(e,t,n,r,i,o){var a=arguments,s=a[0]||{},u=a[de],l=!1,c=1;for(u>0&&on(s)&&(l=s,s=a[c]||{},c++),$t(s)||(s={});c<u;c++){var f=a[c],d=en(f),p=$t(f);for(var v in f){if(d&&v in f||p&&$[Ge](f,v)){var h=f[v],g=void 0;if(l&&h&&((g=en(h))||an(h))){var m=s[v];g?en(m)||(m=[]):an(m)||(m={}),h=Dn(l,m,h)}void 0!==h&&(s[v]=h)}}}return s}var An="split",On="length",Nn="toLowerCase",Rn="ingestionendpoint",Fn="toString",jn="removeItem",Un="name",Ln="message",Vn="stringify",Bn="pathname",Kn="correlationHeaderExcludePatterns",zn="indexOf",qn="extensionConfig",Hn="exceptions",Wn="parsedStack",Gn="properties",$n="measurements",Jn="sizeInBytes",Xn="typeName",Qn="severityLevel",Yn="problemGroup",Zn="isManual",er="CreateFromInterface",tr="hasFullStack",nr="level",rr="method",ir="assembly",or="fileName",ar="line",sr="duration",ur="receivedResponse",lr="substring";function cr(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString()[Nn]()}function fr(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t[On]?"00"+t:2===t[On]?"0"+t:t,n=n[On]<2?"0"+n:n,r=r[On]<2?"0"+r:r,(o>0?o+".":"")+(i=i[On]<2?"0"+i:i)+":"+r+":"+n+"."+t}function dr(e,t,n,r,i){return!i&&nn(e)&&("Script error."===e||"Script error"===e)}var pr="window",vr="JSON",hr="msie",gr="trident/",mr="XMLHttpRequest",yr=null,br=null,wr=!1,xr=null,Sr=null;function Ir(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[B];r&&(n=t in r)}}catch(e){}if(!n)try{n=!qt((new e)[t])}catch(e){}}return n}function kr(e){var t=X();return t&&t[e]?t[e]:e===pr&&Er()?window:null}function Er(){return Boolean(typeof window===L&&window)}function Cr(){return Er()?window:kr(pr)}function Tr(){return Boolean(typeof document===L&&document)}function Pr(){return Tr()?document:kr("document")}function Mr(){return Boolean(typeof navigator===L&&navigator)}function _r(){return Mr()?navigator:kr("navigator")}function Dr(){return Boolean(typeof history===L&&history)}function Ar(e){if(e&&wr){var t=kr("__mockLocation");if(t)return t}return typeof location===L&&location?location:kr("location")}function Or(){return kr("performance")}function Nr(){return Boolean(typeof JSON===L&&JSON||null!==kr(vr))}function Rr(){return Nr()?JSON||kr(vr):null}function Fr(){var e=_r();if(e&&(e[je]!==br||null===yr)){var t=((br=e[je])||ot)[We]();yr=Zt(t,hr)||Zt(t,gr)}return yr}function jr(e){if(void 0===e&&(e=null),!e){var t=_r()||{};e=t?(t[je]||ot)[We]():ot}var n=(e||ot)[We]();if(Zt(n,hr)){var r=Pr()||{};return Math.max(parseInt(n[Ue](hr)[1]),r.documentMode||0)}if(Zt(n,gr)){var i=parseInt(n[Ue](gr)[1]);if(i)return i+4}return null}function Ur(e){var t=Object[B].toString[Ge](e),n=ot;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[ie]+"'":Nr()&&(n=Rr().str
2ingify(e)),t+n}function Lr(){return null===Sr&&(Sr=Mr()&&Boolean(_r().sendBeacon)),Sr}function Vr(e){var t=!1;try{t=!!kr("fetch");var n=kr("Request");t&&e&&n&&(t=Ir(n,"keepalive"))}catch(e){}return t}function Br(){return null===xr&&(xr=typeof XDomainRequest!==V)&&Kr()&&(xr=xr&&!Ir(kr(mr),"withCredentials")),xr}function Kr(){var e=!1;try{e=!!kr(mr)}catch(e){}return e}var zr,qr=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],Hr=null;function Wr(e,t){return function(){var n=arguments,r=Gr(t);if(r){var i=r.listener;i&&i[e]&&i[e][Ke](i,n)}}}function Gr(e){var t,n=Hr;return n||!0===e.disableDbgExt||(n=Hr||((t=kr("Microsoft"))&&(Hr=t.ApplicationInsights),Hr)),n?n.ChromeDbgExt:null}function $r(e){if(!zr){zr={};for(var t=0;t<qr[de];t++)zr[qr[t]]=Wr(qr[t],e)}return zr}function Jr(e){return e?'"'+e[ze](/\"/g,ot)+'"':ot}function Xr(e,t){var n=typeof console!==V?console:kr("console");if(n){var r="log";n[e]&&(r=e),Jt(n[r])&&n[r](t)}}var Qr=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i[Ee]=e,i[Ce]=(n?"AI: ":"AI (Internal): ")+e;var o=ot;Nr()&&(o=Rr().stringify(r));var a=(t?" message:"+Jr(t):ot)+(r?" props:"+Jr(o):ot);i[Ce]+=a}return e.dataType="MessageData",e}();function Yr(e,t){return(e||{})[fe]||new Zr(t)}var Zr=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,i,o,a=0,s={};j(e,this,function(e){function u(t,n){if(!(a>=i)){var o=!0,u="AITR_"+n[Ee];if(s[u]?o=!1:s[u]=!0,o&&(t<=r&&(e.queue[se](n),a++,l(1===t?"error":"warn",n)),a===i)){var c="Internal events throttle limit per PageView reached for this app.",f=new Qr(23,c,!1);e.queue[se](f),1===t?e[mt](c):e[yt](c)}}}function l(e,n){var r=Gr(t||{});r&&r[De]&&r[De](e,n)}!function(e){n=kn(e.loggingLevelConsole,0),r=kn(e.loggingLevelTelemetry,1),i=kn(e.maxMessageLimit,25),o=kn(e[qe],!1)}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return r},e.maxInternalMessageLimit=function(){return i},e[qe]=function(){return o},e.throwInternal=function(t,r,i,a,c){void 0===c&&(c=!1);var f=new Qr(r,i,c,a);if(o)throw Ur(f);var d=1===t?mt:yt;if(qt(f[Ce]))l("throw"+(1===t?"Critical":"Warning"),f);else{if(c){var p=+f[Ee];!s[p]&&n>=t&&(e[d](f[Ce]),s[p]=!0)}else n>=t&&e[d](f[Ce]);u(t,f)}},e[yt]=function(e){Xr("warn",e),l("warning",e)},e[mt]=function(e){Xr("error",e),l("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e[He]=u})}return e.__ieDyn=1,e}();function ei(e){return e||new Zr}function ti(e,t,n,r,i,o){void 0===o&&(o=!1),ei(e).throwInternal(t,n,r,i,o)}function ni(e,t){ei(e)[yt](t)}function ri(e){var t={};return Qt(e,function(e,n){t[e]=n,t[n]=e}),yn(t)}var ii=ri({LocalStorage:0,SessionStorage:1}),oi=(ri({AI:0,AI_AND_W3C:1,W3C:2}),void 0),ai=void 0;function si(){return fi()?ui(ii.LocalStorage):null}function ui(e){try{if(Ht(X()))return null;var t=(new Date)[Fn](),n=kr(e===ii.LocalStorage?"localStorage":"sessionStorage");n.setItem(t,t);var r=n.getItem(t)!==t;if(n[jn](t),!r)return n}catch(e){}return null}function li(){return hi()?ui(ii.SessionStorage):null}function ci(){oi=!1,ai=!1}function fi(e){return(e||void 0===oi)&&(oi=!!ui(ii.LocalStorage)),oi}function di(e,t){var n=si();if(null!==n)try{return n.getItem(t)}catch(t){oi=!1,ti(e,2,1,"Browser failed read of local storage. "+xn(t),{exception:Ur(t)})}return null}function pi(e,t,n){var r=si();if(null!==r)try{return r.setItem(t,n),!0}catch(t){oi=!1,ti(e,2,3,"Browser failed write to local storage. "+xn(t),{exception:Ur(t)})}return!1}function vi(e,t){var n=si();if(null!==n)try{return n[jn](t),!0}catch(t){oi=!1,ti(e,2,5,"Browser failed removal of local storage item. "+xn(t),{exception:Ur(t)})}return!1}function hi(e){return(e||void 0===ai)&&(ai=!!ui(ii.SessionStorage)),ai}function gi(e,t){var n=li();if(null!==n)try{return n.getItem(t)}catch(t){ai=!1,ti(e,2,2,"Browser failed read of session storage. "+xn(t),{exception:Ur(t)})}return null}function mi(e,t,n){var r=li();if(null!==r)try{return r.setItem(t,n),!0}catch(t){ai=!1,ti(e,2,4,"Browser failed write to session storage. "+xn(t),{exception:Ur(t)})}return!1}function yi(e,t){var n=li();if(null!==n)try{return n[jn](t),!0}catch(t){ai=!1,ti(e,2,6,"Browser failed removal of session storage item. "+xn(t),{exception:Ur(t)})}return!1}var bi,wi="AppInsightsPropertiesPlugin",xi="AppInsightsChannelPlugin",Si="ApplicationInsightsAnalytics",Ii="Microsoft_Ap
2plicationInsights_BypassAjaxInstrumentation",ki="sampleRate",Ei="ProcessLegacy",Ci="http.method",Ti="https://dc.services.visualstudio.com",Pi="/v2/track",Mi="not_specified",_i="iKey";function Di(e,t,n){var r=t[On],i=Ai(e,t);if(i[On]!==r){for(var o=0,a=i;void 0!==n[a];)o++,a=i[lr](0,147)+Bi(o);i=a}return i}function Ai(e,t){var n;return t&&(t=dn(t[Fn]()))[On]>150&&(n=t[lr](0,150),ti(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function Oi(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=dn(t)).toString()[On]>n&&(r=t[Fn]()[lr](0,n),ti(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Ni(e,t){return Vi(e,t,2048,66)}function Ri(e,t){var n;return t&&t[On]>32768&&(n=t[lr](0,32768),ti(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function Fi(e,t){var n;if(t){var r=""+t;r[On]>32768&&(n=r[lr](0,32768),ti(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function ji(e,t){if(t){var n={};Qt(t,function(t,r){if($t(r)&&Nr())try{r=Rr()[Vn](r)}catch(t){ti(e,2,49,"custom property is not valid",{exception:t},!0)}r=Oi(e,r,8192),t=Di(e,t,n),n[t]=r}),t=n}return t}function Ui(e,t){if(t){var n={};Qt(t,function(t,r){t=Di(e,t,n),n[t]=r}),t=n}return t}function Li(e,t){return t?Vi(e,t,128,69)[Fn]():t}function Vi(e,t,n,r){var i;return t&&(t=dn(t))[On]>n&&(i=t[lr](0,n),ti(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function Bi(e){var t="00"+e;return t.substr(t[On]-3)}(bi={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768}).sanitizeKeyAndAddUniqueness=Di,bi.sanitizeKey=Ai,bi.sanitizeString=Oi,bi.sanitizeUrl=Ni,bi.sanitizeMessage=Ri,bi.sanitizeException=Fi,bi.sanitizeProperties=ji,bi.sanitizeMeasurements=Ui,bi.sanitizeId=Li,bi.sanitizeInput=Vi,bi.padNumber=Bi,bi.trim=dn;function Ki(e,t,n,r,i,o){var a;n=Oi(r,n)||Mi,(Ht(e)||Ht(t)||Ht(n))&&Cn("Input doesn't contain all required fields");var s="";e[_i]&&(s=e[_i],delete e[_i]);var u=((a={})[Un]=n,a.time=sn(new Date),a.iKey=s,a.ext=o||{},a.tags=[],a.data={},a.baseType=t,a.baseData=e,a);return Ht(i)||Qt(i,function(e,t){u.data[e]=t}),u}!function(){function e(){}e.create=Ki}();var zi=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var i=this;i.ver=2,i[Un]=Oi(e,t)||Mi,i[Gn]=ji(e,n),i[$n]=Ui(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),qi=function(){function e(e,t,n,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,t=t||Mi,o[Ln]=Ri(e,t),o[Gn]=ji(e,r),o[$n]=Ui(e,i),n&&(o[Qn]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Hi=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Wi=function(){function e(e,t,n,r,i,o,a,s,u){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var c=new Hi;c.count=r>0?r:void 0,c.max=isNaN(o)||null===o?void 0:o,c.min=isNaN(i)||null===i?void 0:i,c[Un]=Oi(e,t)||Mi,c.value=n,c.stdDev=isNaN(a)||null===a?void 0:a,l.metrics=[c],l[Gn]=ji(e,s),l[$n]=Ui(e,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),Gi=function(){function e(e,t,n,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=Li(e,a),s.url=Ni(e,n),s[Un]=Oi(e,t)||Mi,isNaN(r)||(s[sr]=fr(r)),s[Gn]=ji(e,i),s[$n]=Ui(e,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),$i=function(){function e(e,t,n,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=Ni(e,n),s[Un]=Oi(e,t)||Mi,s[Gn]=ji(e,i),s[$n]=Ui(e,o),a&&(s.domProcessing=a.domProcessing,s[sr]=a[sr],s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s[ur]=a[ur],s.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}
2(),Ji="error",Xi="stack",Qi="stackDetails",Yi="errorSrc",Zi="message",eo="description";function to(e,t){var n=e;return n&&!nn(n)&&(JSON&&JSON[Vn]?(n=JSON[Vn](e),!t||n&&"{}"!==n||(n=Jt(e[Fn])?e[Fn]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function no(e,t){var n=e;return e&&(n&&!nn(n)&&(n=e[Zi]||e[eo]||n),n&&!nn(n)&&(n=to(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"")[zn](t)&&(n=t+": "+n),n||""}function ro(e){return e&&e.src&&nn(e.src)&&e.obj&&en(e.obj)}function io(e){var t=e||"";nn(t)||(t=nn(t[Xi])?t[Xi]:""+t);var n=t[An]("\n");return{src:t,obj:n}}function oo(e){var t=null;if(e)try{if(e[Xi])t=io(e[Xi]);else if(e[Ji]&&e[Ji][Xi])t=io(e[Ji][Xi]);else if(e.exception&&e.exception[Xi])t=io(e.exception[Xi]);else if(ro(e))t=e;else if(ro(e[Qi]))t=e[Qi];else if(window&&window.opera&&e[Zi])t=function(e){for(var t=[],n=e[An]("\n"),r=0;r<n[On];r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e[Ln]);else if(e.reason&&e.reason[Xi])t=io(e.reason[Xi]);else if(nn(e))t=io(e);else{var n=e[Zi]||e[eo]||"";nn(e[Yi])&&(n&&(n+="\n"),n+=" from "+e[Yi]),n&&(t=io(n))}}catch(e){t=io(e)}return t||{src:"",obj:null}}function ao(e){var t="";if(e&&!(t=e.typeName||e[Un]||""))try{var n=/function (.{1,200})\(/.exec(e.constructor[Fn]());t=n&&n[On]>1?n[1]:""}catch(e){}return t}function so(e){if(e)try{if(!nn(e)){var t=ao(e),n=to(e,!1);return n&&"{}"!==n||(e[Ji]&&(t=ao(e=e[Ji])),n=to(e,!0)),0!==n[zn](t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var uo=function(){function e(e,t,n,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,!function(e){try{if($t(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(n||(n={}),a[Hn]=[new lo(e,t,n)],a[Gn]=ji(e,n),a[$n]=Ui(e,r),i&&(a[Qn]=i),o&&(a.id=o)):(a[Hn]=t[Hn]||[],a[Gn]=t[Gn],a[$n]=t[$n],t[Qn]&&(a[Qn]=t[Qn]),t.id&&(a.id=t.id),t[Yn]&&(a[Yn]=t[Yn]),Ht(t[Zn])||(a[Zn]=t[Zn]))}return e.CreateAutoException=function(e,t,n,r,i,o,a,s){var u,l=ao(i||o||e);return(u={})[Ln]=no(e,l),u.url=t,u.lineNumber=n,u.columnNumber=r,u.error=so(i||o||e),u.evt=so(o||e),u[Xn]=l,u.stackDetails=oo(a||i||o),u.errorSrc=s,u},e.CreateFromInterface=function(t,n,r,i){var o=n[Hn]&&cn(n[Hn],function(e){return lo[er](t,e)});return new e(t,Z(Z({},n),{exceptions:o}),r,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,o=t.severityLevel,a=t.problemGroup,s=t.id,u=t.isManual,l=n instanceof Array&&cn(n,function(e){return e.toInterface()})||void 0;return(e={ver:"4.0"})[Hn]=l,e.severityLevel=o,e.properties=r,e.measurements=i,e.problemGroup=a,e.id=s,e.isManual=u,e},e.CreateSimpleException=function(e,t,n,r,i,o){var a;return{exceptions:[(a={},a[tr]=!0,a.message=e,a.stack=i,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=so,e}(),lo=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if($t(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))r[Xn]=t[Xn],r[Ln]=t[Ln],r[Xi]=t[Xi],r[Wn]=t[Wn]||[],r[tr]=t[tr];else{var i=t,o=i&&i.evt;tn(i)||(i=i[Ji]||o||i),r[Xn]=Oi(e,ao(i))||Mi,r[Ln]=Ri(e,no(t||i,r[Xn]))||Mi;var a=t[Qi]||oo(t);r[Wn]=function(e){var t,n=e.obj;if(n&&n[On]>0){t=[];var r=0,i=0;if(un(n,function(e){var n=e[Fn]();if(co.regex.test(n)){var o=new co(n,r++);i+=o[Jn],t.push(o)}}),i>32768)for(var o=0,a=t[On]-1,s=0,u=o,l=a;o<a;){if((s+=t[o][Jn]+t[a][Jn])>32768){var c=l-u+1;t.splice(u,c);break}u=o,l=a,o++,a--}}return t}(a),r[Xi]=Fi(e,function(e){var t="";return e&&(e.obj?un(e.obj,function(e){t+=e+"\n"}):t=e.src||""),t}(a)),r.hasFullStack=en(r.parsedStack)&&r.parsedStack[On]>0,n&&(n[Xn]=n[Xn]||r[Xn])}}return e.prototype.toInterface=function(){var e,t=this,n=t[Wn]instanceof Array&&cn(t[Wn],function(e){return e.toInterface()});return(e={id:t.id,outerId:t.outerId,typeName:t[Xn],message:t[Ln],hasFullStack:t[tr],stack:t[Xi]})[Wn]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[Wn]instanceof Array&&cn(n[Wn],function(e){return co[er](e)})||n[Wn];return new e(t,Z(Z({},n),{parsedStack:r}))},e}(),co=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[Jn]=0,"string"==typeof t){var i=t;r[nr]=n,r[rr]="<no_method>",r[ir]=dn(i),r[or]="",r[ar]=0;var o=i.match(e.regex);o&&o[On]>=5&&(r[rr]=dn(o[2])||r[rr],r[or]=dn(o[4]),r[ar]=parseInt(o[5])||0)}else r[nr]=t[nr],r[rr]=t[rr],r[ir]=t[ir],r[or]=t[or],r[ar]=t[ar],r[Jn]=0;r.sizeInBytes+=r.method[On],r.sizeInBytes+=r.fileName[On],r.sizeInBytes+=r.assembly[On],r[Jn]+=e.baseSize,r.sizeInBytes+=r.level.toString()[On],r.sizeInBytes+=r.line.toString()[On]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[nr],method:e[rr],assembly:e[ir],fileName:e[or],line:e[ar]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),fo="toGMTString",po="toUTCString",vo="cookie",ho="expires",go="enabled",mo="isCookieUseDisabled",yo="disableCookiesUsage",bo="_ckMgr",wo=null,xo=null,So=null,Io=Pr(),ko={},Eo={};function Co(e,t){var n=_o[bo]||Eo[bo];return n||(n=_o[bo]=_o(e,t),Eo[bo]=n),n}function To(e){return!e||e.isEnabled()}function Po(e,t){return!!(t&&e&&en(e.ignoreCookies))&&-1!==e.ignoreCookies[Re](t)}function Mo(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t[Ne];n=r[bo]?r[bo]:_o(t)}return n||(n=Co(t,(e||{})[fe])),n}function _o(e,t){var n,r=function(e){var t=e[Ne]=e[Ne]||{};if(Sn(t,"domain",e.cookieDomain,Wt,Ht),Sn(t,"path",e.cookiePath||"/",null,Ht),Ht(t[go])){var n=void 0;qt(e[mo])||(n=!e[mo]),qt(e[yo])||(n=!e[yo]),t[go]=n}return t}(e||Eo),i=r.path||"/",o=r.domain,a=!1!==r[go],s=((n={isEnabled:function(){var e=a&&Do(t),n=Eo[bo];return e&&n&&s!==n&&(e=To(n)),e}})[Le]=function(e){a=!1!==e},n.set=function(e,t,n,a,u){var l=!1;if(To(s)&&!function(e,t){return!!(t&&e&&en(e.blockedCookies)&&-1!==e.blockedCookies[Re](t))||Po(e,t)}(r,e)){var c={},f=dn(t||ot),d=f[Re](";");if(-1!==d&&(f=dn(t[Fe](0,d)),c=Ao(t[Fe](d+1))),Sn(c,"domain",a||o,En,qt),!Ht(n)){var p=Fr();if(qt(c[ho])){var v=wn()+1e3*n;
2if(v>0){var h=new Date;h.setTime(v),Sn(c,ho,Oo(h,p?fo:po)||Oo(h,p?fo:po)||ot,En)}}p||Sn(c,"max-age",ot+n,null,qt)}var g=Ar();g&&"https:"===g.protocol&&(Sn(c,"secure",null,null,qt),null===xo&&(xo=!jo((_r()||{})[je])),xo&&Sn(c,"SameSite","None",null,qt)),Sn(c,"path",u||i,null,qt),(r.setCookie||Fo)(e,No(f,c)),l=!0}return l},n.get=function(e){var t=ot;return To(s)&&!Po(r,e)&&(t=(r.getCookie||Ro)(e)),t},n.del=function(e,t){var n=!1;return To(s)&&(n=s.purge(e,t)),n},n.purge=function(e,n){var i,o=!1;if(Do(t)){var a=((i={}).path=n||"/",i[ho]="Thu, 01 Jan 1970 00:00:01 GMT",i);Fr()||(a["max-age"]="0"),(r.delCookie||Fo)(e,No(ot,a)),o=!0}return o},n);return s[bo]=s,s}function Do(e){if(null===wo){wo=!1;try{wo=void 0!==(Io||{})[vo]}catch(t){ti(e,2,68,"Cannot access document.cookie - "+xn(t),{exception:Ur(t)})}}return wo}function Ao(e){var t={};e&&e[de]&&un(dn(e)[Ue](";"),function(e){if(e=dn(e||ot)){var n=e[Re]("=");-1===n?t[e]=null:t[dn(e[Fe](0,n))]=dn(e[Fe](n+1))}});return t}function Oo(e,t){return Jt(e[t])?e[t]():null}function No(e,t){var n=e||ot;return Qt(t,function(e,t){n+="; "+e+(Ht(t)?ot:"="+t)}),n}function Ro(e){var t=ot;if(Io){var n=Io[vo]||ot;So!==n&&(ko=Ao(n),So=n),t=dn(ko[e]||ot)}return t}function Fo(e,t){Io&&(Io[vo]=e+"="+t)}function jo(e){return!!nn(e)&&(!(!Zt(e,"CPU iPhone OS 12")&&!Zt(e,"iPad; CPU OS 12"))||(!!(Zt(e,"Macintosh; Intel Mac OS X 10_14")&&Zt(e,"Version/")&&Zt(e,"Safari"))||(!(!Zt(e,"Macintosh; Intel Mac OS X 10_14")||!Yt(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!Zt(e,"Chrome/5")&&!Zt(e,"Chrome/6"))||(!(!Zt(e,"UnrealEngine")||Zt(e,"Chrome"))||!(!Zt(e,"UCBrowser/12")&&!Zt(e,"UCBrowser/11")))))))}var Uo=4294967296,Lo=4294967295,Vo=!1,Bo=123456789,Ko=987654321;function zo(e){e<0&&(e>>>=0),Bo=123456789+e&Lo,Ko=987654321-e&Lo,Vo=!0}function qo(){try{var e=2147483647&wn();zo((Math.random()*Uo^e)+e)}catch(e){}}function Ho(e){var t=0,n=kr("crypto")||kr("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Lo),0===t&&Fr()&&(Vo||qo(),t=Wo()&Lo),0===t&&(t=Math.floor(Uo*Math.random()|0)),e||(t>>>=0),t}function Wo(e){var t=((Ko=36969*(65535&Ko)+(Ko>>16)&Lo)<<16)+(65535&(Bo=18e3*(65535&Bo)+(Bo>>16)&Lo))>>>0&Lo;return e||(t>>>=0),t}function Go(e){void 0===e&&(e=22);for(var t=Ho()>>>0,n=0,r=ot;r[de]<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Ho()<<2&4294967295|3&t)>>>0,n=0);return r}var $o=G,Jo="2.8.10",Xo="."+Go(6),Qo=0;function Yo(e){return 1===e[Be]||9===e[Be]||!+e[Be]}function Zo(e,t){var n=t[e.id];if(!n){n={};try{Yo(t)&&(function(e,t,n){if($o)try{return $o(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(e){}}return n}function ea(e,t){return void 0===t&&(t=!1),Xt(e+Qo+++(t?"."+Jo:ot)+Xo)}function ta(e){var t={id:ea("_aiData-"+(e||ot)+"."+Jo),accept:function(e){return Yo(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[Xt(n)]:(i&&((o=Zo(t,e))[Xt(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}var na="attachEvent",ra="addEventListener",ia="detachEvent",oa="removeEventListener",aa="events",sa="visibilitychange",ua="pagehide",la="unload",ca="beforeunload",fa=ea("aiEvtPageHide"),da=(ea("aiEvtPageShow"),/\.[\.]+/g),pa=/[\.]+$/,va=1,ha=ta("events"),ga=/^([^.]*)(?:\.(.+)|)/;function ma(e){return e&&e[ze]?e[ze](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,ot):e}function ya(e,t){var n;if(t){var r=ot;en(t)?(r=ot,un(t,function(e){(e=ma(e))&&("."!==e[0]&&(e="."+e),r+=e)})):r=ma(t),r&&("."!==r[0]&&(r="."+r),e=(e||ot)+r)}var i=ga.exec(e||ot)||[];return(n={})[$e]=i[1],n.ns=(i[2]||ot).replace(da,".").replace(pa,ot)[Ue](".").sort().join("."),n}function ba(e,t,n){void 0===n&&(n=!0);var r=ha.get(e,aa,{},n),i=r[t];return i||(i=r[t]=[]),i}function wa(e,t,n,r){e&&t&&t[$e]&&(e[oa]?e[oa](t[$e],n,r):e[ia]&&e[ia]("on"+t[$e],n))}function xa(e,t,n,r){for(var i=t[de];i--;){var o=t[i];o&&(n.ns&&n.ns!==o.evtName.ns||r&&!r(o)||(wa(e,o.evtName,o[Je],o.capture),t[Ie](i,1)))}}function Sa(e,t){return t?ya("xx",en(t)?[e].concat(t):[e,t]).ns[Ue]("."):e}function Ia(e,t,n,r,i){var o;void 0===i&&(i=!1);var a=!1;if(e)try{var s=ya(t,r);if(a=function(e,t,n,r){var i=!1;return e&&t&&t[$e]&&n&&(e[ra]?(e[ra](t[$e],n,r),i=!0):e[na]&&(e[na]("on"+t[$e],n),i=!0)),i}(e,s,n,i),a&&ha.accept(e)){var u=((o={guid:va++,evtName:s})[Je]=n,o.capture=i,o);ba(e,s.type)[se](u)}}catch(e){}return a}function ka(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var o=ya(t,r),a=!1;!function(e,t,n){if(t[$e])xa(e,ba(e,t[$e]),t,n);else{var r=ha.get(e,aa,{});Qt(r,function(r,i){xa(e,i,t,n)}),0===hn(r)[de]&&ha.kill(e,aa)}}(e,o,function(e){return!((!o.ns||n)&&e[Je]!==n)&&(a=!0,!0)}),a||wa(e,o,n,i)}catch(e){}}function Ea(e,t,n){var r=!1,i=Cr();i&&(r=Ia(i,e,t,n),r=Ia(i.body,e,t,n)||r);var o=Pr();return o&&(r=Ia(o,e,t,n)||r),r}function Ca(e,t,n,r){var i=!1;return t&&e&&e[de]>0&&un(e,function(e){e&&(n&&-1!==ln(n,e)||(i=Ea(e,t,r)||i))}),i}function Ta(e,t,n){e&&en(e)&&un(e,function(e){e&&function(e,t,n){var r=Cr();r&&(ka(r,e,t,n),ka(r.body,e,t,n));var i=Pr();i&&ka(i,e,t,n)}
2(e,t,n)})}function Pa(e,t,n){return function(e,t,n,r){var i=!1;return t&&e&&en(e)&&!(i=Ca(e,t,n,r))&&n&&n[de]>0&&(i=Ca(e,t,null,r)),i}([ca,la,ua],e,t,n)}function Ma(e,t,n){var r=Sa(fa,n),i=Ca([ua],e,t,r);return t&&-1!==ln(t,sa)||(i=Ca([sa],function(t){var n=Pr();e&&n&&"hidden"===n.visibilityState&&e(t)},t,r)||i),!i&&t&&(i=Ma(e,null,n)),i}function _a(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=ot,r=0;r<4;r++)n+=t[15&(e=Ho())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Ho())|0];return n[Ve](0,8)+n[Ve](9,4)+"4"+n[Ve](13,3)+i+n[Ve](16,3)+n[Ve](19,12)}var Da="00",Aa="ff",Oa="00000000000000000000000000000000",Na="0000000000000000";function Ra(e,t,n){return!(!e||e[de]!==t||e===n)&&!!e.match(/^[\da-f]*$/)}function Fa(e,t,n){return Ra(e,t)?e:n}function ja(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[de]<2;)t="0"+t;return t}function Ua(e,t,n,r){var i;return(i={})[it]=Ra(r,2,Aa)?r:Da,i[tt]=La(e)?e:_a(),i.spanId=Va(t)?t:_a()[Ve](0,16),i.traceFlags=n>=0&&n<=255?n:1,i}function La(e){return Ra(e,32,Oa)}function Va(e){return Ra(e,16,Na)}function Ba(e){if(e){var t=ja(e[rt]);Ra(t,2)||(t="01");var n=e[it]||Da;return"00"!==n&&"ff"!==n&&(n=Da),"".concat(n,"-").concat(Fa(e.traceId,32,Oa),"-").concat(Fa(e.spanId,16,Na),"-").concat(t)}return""}function Ka(e){var t=null;if(Jt(Event))t=new Event(e);else{var n=Pr();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var za,qa=(za={},Qt({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]},function(e,t){za[e]=t[1],za[t[0]]=t[1]}),yn(za)),Ha=Pr()||{},Wa=0,Ga=[null,null,null,null,null];function $a(e){var t=Wa,n=Ga,r=n[t];return Ha.createElement?n[t]||(r=n[t]=Ha.createElement("a")):r={host:Qa(e,!0)},r.href=e,++t>=n[On]&&(t=0),Wa=t,r}function Ja(e){var t,n=$a(e);return n&&(t=n.href),t}function Xa(e,t){return e?e.toUpperCase()+" "+t:t}function Qa(e,t){var n=Ya(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[On]>3&&nn(r[2])&&r[2][On]>0)return r[2]+(r[3]||"")}return n}function Ya(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[On]>2&&nn(r[2])&&r[2][On]>0&&(n=r[2]||"",t&&r[On]>2)){var i=(r[1]||"")[Nn](),o=r[3]||"";("http"===i&&":80"===o||"https"===i&&":443"===o)&&(o=""),n+=o}}return n}var Za=[Ti+Pi,"https://breeze.aimon.applicationinsights.io"+Pi,"https://dc-int.services.visualstudio.com"+Pi];function es(e){return-1!==ln(Za,e[Nn]())}var ts={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[Kn])for(var r=0;r<e.correlationHeaderExcludePatterns[On];r++)if(e[Kn][r].test(t))return!1;var i=$a(t).host[Nn]();if(!i||-1===i[zn](":443")&&-1===i[zn](":80")||(i=(Ya(t,!0)||"")[Nn]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var o,a=e&&e.correlationHeaderDomains;if(a&&(un(a,function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||t.test(i)}),!o))return!1;var s=e&&e.correlationHeaderExcludedDomains;if(!s||0===s[On])return!0;for(r=0;r<s[On];r++){if(new RegExp(s[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1}return i&&i[On]>0},getCorrelationContext:function(e){if(e){var t=ts.getCorrelationContextValue(e,qa[1]);if(t&&t!==ts.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[An](","),r=0;r<n[On];++r){var i=n[r][An]("=");if(2===i[On]&&i[0]===t)return i[1]}}};function ns(){var e=Or();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return wn()}function rs(e,t){var n=null;return 0===e||0===t||Ht(e)||Ht(t)||(n=t-e),n}function is(e,t){var n=e||{};return{getName:function(){return n[Un]},setName:function(e){t&&t.setName(e),n[Un]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),La(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),Va(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var os=function(){function e(e,t,n,r,i,o,a,s,u,l,c,f){void 0===u&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var d=this;d.ver=2,d.id=t,d[sr]=fr(i),d.success=o,d.resultCode=a+"",d.type=Oi(e,u);var p=function(e,t,n,r){var i,o=r,a=r;if(t&&t[On]>0){var s=$a(t);if(i=s.host,!o)if(null!=s[Bn]){var u=0===s.pathname[On]?"/":s[Bn];"/"!==u.charAt(0)&&(u="/"+u),a=s[Bn],o=Oi(e,n?n+" "+u:u)}else o=Oi(e,t)}else i=r,o=r;return{target:i,name:o,data:a}}(e,n,s,r);d.data=Ni(e,r)||p.data,d.target=Oi(e,p.target),l&&(d.target="".concat(d.target," | ").concat(l)),d[Un]=Oi(e,p[Un]),d[Gn]=ji(e,c),d[$n]=Ui(e,f)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),as="ctx",ss="ParentContextKey",us="ChildrenContextKey",ls=null,cs=function(){function e(t,n,r){var i,o=this,a=!1;(o.start=wn(),o[ie]=t,o[Te]=r,o[Qe]=function(){return!1},Jt(n))&&(a=gn(o,"payload",function(){return!i&&Jt(n)&&(i=n(),n=null),i}));o[Ye]=function(t){return t?t===e[ss]||t===e[us]?o[t]:(o[as]||{})[t]:null},o[Ze]=function(t,n){if(t)if(t===e[ss])o[t]||(o[Qe]=function(){return!0}),o[t]=n;else if(t===e[us])o[t]=n;else{(o[as]=o[as]||{})[t]=n}},o[et]=function(){var t=0,r=o[Ye](e[us]);if(en(r))for(var i=0;i<r[de];i++){var s=r[i];s&&(t+=s[pe])}o[pe]=wn()-o.start,o.exTime=o[pe]-t,o[et]=function(){},!a&&Jt(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),fs=function(){function e(t){this.ctx={},j(e,this,function(e){e.create=function(e,t,n){return new cs(e,t,n)},e.fire=function(e){e&&(e[et](),t&&Jt(t[gt])&&t[gt](e))},e[Ze]=function(t,n){t&&((e[as]=e[as]||{})[t]=n)},e[Ye]=function(t){return(e[as]||{})[t]}})}return e.__ieDyn=1,e}(),ds="CoreUtils.doPerf";function ps(e,t,n,r,i){if(e){var o=e;if(o[bt]&&(o=o[bt]()),o){var a=void 0,s=o[Ye](ds);try{if(a=o.create(t(),r,i)){if(s&&a[Ze]&&(a[Ze](cs[ss],s),s[Ye]&&s[Ze])){var u=s[Ye](cs[us]);u||(u=[],s[Ze](cs[us],u)),u[se](a)}return o[Ze](ds,a),n(a)}}catch(e){a&&a[Ze]&&a[Ze]("exception",e)}finally{a&&o.fire(a),o[Ze](ds,s)}}}return n()}var vs=ta("plugin");function hs(e){return vs.get(e,"state",{},!0)}function gs(e,t){for(var n,r=[],i=null,o=e[_e]();o;){var a=o[we]();if(a){i&&Jt(i[Ae])&&Jt(a[ft])&&i[Ae](a);(Jt(a[ue])?a[ue]():(n=hs(a))[ue])||r[se](a),i=a,o=o[_e]()}}un(r,function(r){var i=e[st]();r[re](e.getCfg(),i,t,e[_e]()),n=hs(r),r[st]||n[st]||(n[st]=i),n[ue]=!0,delete n[ke]})}function ms(e){return e.sort(function(e,t){var n=0;if(t){var r=Jt(t[ft]);Jt(e[ft])?n=r?e[dt]-t[dt]:1:r&&(n=-1)}else n=e?1:-1;return n})}var ys="TelemetryPluginChain",bs="_hasRun",ws="_getTelCtx",xs=0;function Ss(e,t,n,r){var i=null,o=[];null!==r&&(i=r?function(e,t,n){for(;e;){if(e[we]()===n)return e;e=e[_e]()}return Cs([n],t[le]||{},t)}(e,n,r):e);var a={_next:function(){var e=i;if(i=e?e[_e]():null,!e){var t=o;t&&t[de]>0&&(un(t,function(e){try{e.func[Ge](e.self,e.args)}catch(e){ti(n[fe],2,73,"Unexpected Exception during onComplete - "+Ur(e))}}),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return Yr(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=s(e,null);o&&!Ht(o[n])?i=o[n]:t&&!Ht(t[n])&&(i=t[n]);return Ht(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){var t;for(;t=a._next();){var n=t[we]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&o[se]({func:e,self:qt(t)?a.ctx:t,args:n})}}};function s(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t[ct];o&&e&&(i=o[e])}if(i){if($t(n)&&0!==r){var a=Dn(!0,n,i);t&&2===r&&Qt(n,function(e){if(Ht(a[e])){var n=t[e];Ht(n)||(a[e]=n)}}),i=a}}else i=n;return i}return a}function Is(e,t,n,r){var i=Ss(e,t,n,r),o=i.ctx;return o[ve]=function(e){var t=i._next();return t&&t[ft](e,o),!t},o[Oe]=function(e,r){return void 0===e&&(e=null),en(e)&&(e=Cs(e,t,n,r)),Is(e||o[_e](),t,n,r)},o}function ks(e,t,n){var r=t[le]||{},i=Ss(e,r,t,n),o=i.ctx;return o[ve]=function(e){var t=i._next();return t&&t.unload(o,e),!t},o[Oe]=function(e,n){return void 0===e&&(e=null),en(e)&&(e=Cs(e,r,t,n)),ks(e||o[_e](),t,n)},o}function Es(e,t,n){var r=t[le]||{},i=Ss(e,r,t,n).ctx;return i[ve]=function(e){return i.iterate(function(t){Jt(t[Me])&&t[Me](i,e)})},i[Oe]=function(e,n){return void 0===e&&(e=null),en(e)&&(e=Cs(e,r,t,n)),Es(e||i[_e](),t,n)},i}function Cs(e,t,n,r){var i=null,o=!r;if(en(e)&&e[de]>0){var a=null;un(e,function(e){if(o||r!==e||(o=!0),o&&e&&Jt(e[ft])){var s=function(e,t,n){var r,i=null,o=Jt(e[ft]),a=Jt(e[Ae]);r=e?e[ae]+"-"+e[dt]+"-"+xs++:"Unknown-0-"+xs++;var s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:c,unload:f,update:d,_id:r,_setNext:function(e){i=e}};function u(){var r;return e&&Jt(e[ws])&&(r=e[ws]()),r||(r=Is(s,t,n)),r}function l(t,n,o,a,s){var u=!1,l=e?e[ae]:ys,c=t[bs];return c||(c=t[bs]={}),t.setNext(i),e&&ps(t[st](),function(){return l+":"+o},function(){c[r]=!0;try{var e=i?i._id:ot;e&&(c[e]=!1),u=n(t)}catch(e){var a=!i||c[i._id];a&&(u=!0),i&&a||ti(t[De](),1,73,"Plugin ["+l+"] failed during "+o+" - "+Ur(e)+", run flags: "+Ur(c))}},a,s),u}function c(t,n){function r(n){if(!e||!o)return!1;var r=hs(e);return!r[ke]&&!r[lt]&&(a&&e[Ae](i),e[ft](t,n),!0)}l(n=n||u(),r,"processTelemetry",function(){return{item:t}},!t.sync)||n[ve](t)}function f(t,n){function r(){var r=!1;if(e){var i=hs(e),o=e[st]||i[st];!e||o&&o!==t.core()||i[ke]||(i[st]=null,i[ke]=!0,i[ue]=!1,e[ke]&&!0===e[ke](t,n)&&(r=!0))}return r}l(t,r,"unload",function(){},n[Te])||t[ve](n)}function d(t,n){function r(){var r=!1;if(e){var i=hs(e),o=e[st]||i[st];!e||o&&o!==t.core()||i[ke]||e[Me]&&!0===e[Me](t,n)&&(r=!0)}return r}l(t,r,"update",function(){},!1)||t[ve](n)}return bn(s)}
2(e,t,n);i||(i=s),a&&a._setNext(s),a=s}})}return r&&!i?Cs([r],t,n):i}var Ts="_aiHooks",Ps=["req","rsp","hkErr","fnErr"];function Ms(e,t){if(e)for(var n=0;n<e[de]&&!t(e[n],n);n++);}function _s(e,t,n,r,i){i>=0&&i<=2&&Ms(e,function(e,o){var a=e.cbks,s=a[Ps[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s[Ke](t.inst,n)}catch(e){var u=t.err;try{var l=a[Ps[2]];l&&(t.err=e,l[Ke](t.inst,n))}catch(e){}finally{t.err=u}}}})}function Ds(e,t,n){var r=null;return e&&(Gt(e,t)?r=e:n&&(r=Ds(zt(e),t,!1))),r}function As(e,t,n,r){var i=n&&n[Ts];if(!i){var o=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[ie]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,a=s([i],n)},t),o=[],a=s([i],n);function s(e,t){return Ms(t,function(t){e[se](t)}),e}i.evt=kr("event"),_s(r,i,a,o,0);var u=e.f;if(u)try{i.rslt=u[Ke](this,n)}catch(e){throw i.err=e,_s(r,i,a,o,3),e}return _s(r,i,a,o,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});o[Ts]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;Ms(i.h,function(t,n){if(t.id===e)return i.h[Ie](n,1),1})}};return i.i++,i.h[se](a),a}function Os(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){var i=Ds(e,t,r);if(i){var o=i[t];if(typeof o===U)return As(i,t,o,n)}}return null}function Ns(e,t,n,r){if(e&&t&&n){var i=Ds(e,t,r)||e;if(i)return As(i,t,i[t],n)}return null}function Rs(){var e=[];return{add:function(t){t&&e[se](t)},run:function(t,n){un(e,function(e){try{e(t,n)}catch(e){ti(t[De](),2,73,"Unexpected error calling unload handler - "+Ur(e))}}),e=[]}}}var Fs="getPlugin",js=function(){function e(){var t,n,r,i,o,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||Is(null,{},a[st]);t=r&&r[Fs]?i[Oe](null,r[Fs]):i[Oe](null,r)}return t}function u(e,t,i){e&&Sn(e,ct,[],null,Ht),!i&&t&&(i=t[he]()[_e]());var o=r;r&&r[Fs]&&(o=r[Fs]()),a[st]=t,n=Is(i,e,t,o)}function l(){t=!1,a[st]=null,n=null,r=null,o=[],i=Rs()}l(),j(e,a,function(e){e[re]=function(e,n,r,i){u(e,n,i),t=!0},e[ke]=function(t,n){var a,s=e[st];if(s&&(!t||s===t[st]())){var u,c=!1,f=t||ks(null,s,r&&r[Fs]?r[Fs]():r),d=n||((a={reason:0})[Te]=!1,a);return e[Pe]&&!0===e[Pe](f,d,p)?u=!0:p(),u}function p(){if(!c){c=!0,i.run(f,n);var e=o;o=[],un(e,function(e){e.rm()}),!0===u&&f[ve](d),l()}}},e[Me]=function(t,n){var i=e[st];if(i&&(!t||i===t[st]())){var o,a=!1,s=t||Es(null,i,r&&r[Fs]?r[Fs]():r),l=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,l,c)?o=!0:c(),o}function c(){a||(a=!0,u(s.getCfg(),s.core(),s[_e]()))}},e._addHook=function(e){e&&(en(e)?o=o.concat(e):o[se](e))},Pn(e,"_addUnloadCb",function(){return i},"add")}),a[De]=function(e){return s(e)[De]()},a[ue]=function(){return t},a.setInitialized=function(e){t=e},a[Ae]=function(e){r=e},a[ve]=function(e,t){t?t[ve](e):r&&Jt(r[ft])&&r[ft](e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),Us="toString",Ls="disableExceptionTracking",Vs="autoTrackPageVisitTime",Bs="overridePageViewDuration",Ks="enableUnhandledPromiseRejectionTracking",zs="samplingPercentage",qs="isStorageUseDisabled",Hs="isBrowserLinkTrackingEnabled",Ws="enableAutoRouteTracking",Gs="namePrefix",$s="disableFlushOnBeforeUnload",Js="core",Xs="dataType",Qs="envelopeType",Ys="diagLog",Zs="track",eu="trackPageView",tu="trackPreviousPageVisit",nu="sendPageViewInternal",ru="sendPageViewPerformanceInternal",iu="populatePageViewPerformanceEvent",ou="href",au="sendExceptionInternal",su="exception",uu="error",lu="_onerror",cu="errorSrc",fu="lineNumber",du="columnNumber",pu="message",vu="CreateAutoException",hu="addTelemetryInitializer",gu="duration",mu="length",yu="isPerformanceTimingSupported",bu="getPerformanceTiming",wu="navigationStart",xu="shouldCollectDuration",Su="isPerformanceTimingDataReady",Iu="responseStart",ku="loadEventEnd",Eu="responseEnd",Cu="connectEnd",Tu="pageVisitStartTime",Pu=function(){function e(t,n,r,i){j(e,this,function(e){var o,a=null,s=[],u=!1;function l(e){r&&r.flush(e)}r&&(o=r.logger),e[eu]=function(e,r){var c=e.name;if(Ht(c)||"string"!=typeof c){var f=Pr();c=e.name=f&&f.title||""}var d=e.uri;if(Ht(d)||"string"!=typeof d){var p=Ar();d=e.uri=p&&p[ou]||""}if(!i[yu]())return t[nu](e,r),l(!0),void ti(o,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var v,h,g=!1,m=i[bu]()[wu];m>0&&(v=rs(m,+new Date),i[xu](v)||(v=void 0)),Ht(r)||Ht(r[gu])||(h=r[gu]),!n&&isNaN(h)||(isNaN(h)&&(r||(r={}),r[gu]=v),t[nu](e,r),l(!0),g=!0);var y;r||(r={}),y=function(){var n=!1;try{if(i[Su]()){n=!0;var a={name:c,uri:d};i[iu](a),a.isValid||g?(g||(r[gu]=a.durationMs,t[nu](e,r)),u||(t[ru](a,r),u=!0)):(r[gu]=v,t[nu](e,r))}else m>0&&rs(m,+new Date)>6e4&&(n=!0,g||(r[gu]=6e4,t[nu](e,r)))}catch(e){ti(o,1,38,"trackPageView failed on page load calculation: "+xn(e),{exception:Ur(e)})}return n},s.push(y),a||(a=setInterval(function(){var e=s.slice(0),t=!1;s=[],un(e,function(e){e()?t=!0:s.push(e)}),0===s[mu]&&(clearInterval(a),a=null),t&&l(!0)},100))},e.teardown=function(e,t){if(a){clearInterval(a),a=null;var n=s.slice(0);s=[],un(n,function(e){e()&&!0})}}})}return e.__ieDyn=1,e}(),Mu=["googlebot","adsbot-google","apis-google","mediapartners-google"];function _u(){var e=Or();return e&&!!e.timing}function Du(){var e=Or(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[wu]>0&&t[Iu]>0&&t.requestStart>0&&t[ku]>0&&t[Eu]>0&&t[Cu]>0&&t.domLoading>0}function Au(){return _u()?Or().timing:null}function Ou(){return(e=Or())&&e.getEntriesByType&&e.getEntriesByType("navigation")[mu]>0?Or().getEntriesByType("navigation")[0]:null;var e}function Nu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(_r()||{}).userAgent,r=!1;
2if(n)for(var i=0;i<Mu[mu];i++)r=r||-1!==n.toLowerCase().indexOf(Mu[i]);if(r)return!1;for(i=0;i<e[mu];i++)if(e[i]<0||e[i]>=36e5)return!1;return!0}var Ru=function(){function e(t){var n=this,r=Yr(t);j(e,this,function(e){e[iu]=function(e){e.isValid=!1;var t=Ou(),i=Au(),o=0,a=0,s=0,u=0,l=0;(t||i)&&(t?(o=t[gu],a=0===t.startTime?t[Cu]:rs(t.startTime,t[Cu]),s=rs(t.requestStart,t[Iu]),u=rs(t[Iu],t[Eu]),l=rs(t.responseEnd,t[ku])):(o=rs(i[wu],i[ku]),a=rs(i[wu],i[Cu]),s=rs(i.requestStart,i[Iu]),u=rs(i[Iu],i[Eu]),l=rs(i.responseEnd,i[ku])),0===o?ti(r,2,10,"error calculating page view performance.",{total:o,network:a,request:s,response:u,dom:l}):n[xu](o,a,s,u,l)?o<Math.floor(a)+Math.floor(s)+Math.floor(u)+Math.floor(l)?ti(r,2,8,"client performance math error.",{total:o,network:a,request:s,response:u,dom:l}):(e.durationMs=o,e.perfTotal=e[gu]=fr(o),e.networkConnect=fr(a),e.sentRequest=fr(s),e.receivedResponse=fr(u),e.domProcessing=fr(l),e.isValid=!0):ti(r,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:o,network:a,request:s,response:u,dom:l}))},e[bu]=Au,e[yu]=_u,e[Su]=Du,e[xu]=Nu})}return e.__ieDyn=1,e}(),Fu=function(){function e(t,n){var r="prevPageVisitData";j(e,this,function(e){e[tu]=function(e,i){try{var o=function(e,n){var i=null;try{i=function(){var e=null;try{if(hi()){var n=wn(),i=gi(t,r);
2i&&Nr()&&((e=Rr().parse(i)).pageVisitTime=n-e[Tu],yi(t,r))}}catch(n){ni(t,"Stop page visit timer failed: "+Ur(n)),e=null}return e}(),function(e,n){try{if(hi()){null!=gi(t,r)&&Cn("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=new ju(e,n),o=Rr().stringify(i);mi(t,r,o)}}catch(e){ni(t,"Call to start failed: "+Ur(e))}}(e,n)}catch(e){ni(t,"Call to restart failed: "+Ur(e)),i=null}return i}(e,i);o&&n(o.pageName,o.pageUrl,o.pageVisitTime)}catch(e){ni(t,"Auto track page visit time failed, metric will not be collected: "+Ur(e))}},gn(e,"_logger",function(){return t}),gn(e,"pageVisitTimeTrackingHandler",function(){return n})})}return e.__ieDyn=1,e}(),ju=function(e,t){this[Tu]=wn(),this.pageName=e,this.pageUrl=t},Uu=function(e,t){var n=this,r={};n.start=function(t){void 0!==r[t]&&ti(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},n.stop=function(t,i,o,a){var s=r[t];if(isNaN(s))ti(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var u=rs(s,+new Date);n.action(t,i,u,o,a)}delete r[t],r[t]=void 0}};function Lu(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Vu(e,t){return(e=e||t)<6e4&&(e=6e4),e}function Bu(e){return e||(e={}),e.sessionRenewalMs=Vu(e.sessionRenewalMs,18e5),e.sessionExpirationMs=Vu(e.sessionExpirationMs,864e5),e[Ls]=cr(e[Ls]),e[Vs]=cr(e[Vs]),e[Bs]=cr(e[Bs]),e[Ks]=cr(e[Ks]),(isNaN(e[zs])||e[zs]<=0||e[zs]>
2=100)&&(e[zs]=100),e[qs]=cr(e[qs]),e[Hs]=cr(e[Hs]),e[Ws]=cr(e[Ws]),e[Gs]=e[Gs]||"",e.enableDebug=cr(e.enableDebug),e[$s]=cr(e[$s]),e.disableFlushOnUnload=cr(e.disableFlushOnUnload,e[$s]),e}function Ku(e){qt(e[qs])||(e[qs]?ci():(oi=fi(!0),ai=hi(!0)))}var zu=function(e){function t(){var n,r,i,o,a,s,u,l,c,f,d,p,v,h,g=e.call(this)||this;g.identifier=Si,g.priority=180,g.autoRoutePVDelay=500;var m,y,b;return j(t,g,function(e,t){var w=t._addHook;function x(t,n,r,i,o){e[Ys]().throwInternal(t,n,r,i,o)}function S(){n=null,r=null,i=null,o=null,a=null,s=null,u=!1,l=!1,c=!1,f=!1,d=!1,p=!1,v=!1,h=!1;var e=Ar(!0);m=e&&e[ou]||"",y=null,b=null}S(),e.getCookieMgr=function(){return Mo(e[Js])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=Ki(t,zi[Xs],zi[Qs],e[Ys](),n);e[Js][Zs](r)}catch(e){x(2,39,"trackTrace failed, trace will not be collected: "+xn(e),{exception:Ur(e)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(e){x(1,29,"startTrackEvent failed, event will not be collected: "+xn(e),{exception:Ur(e)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(e){x(1,30,"stopTrackEvent failed, event will not be collected: "+xn(e),{exception:Ur(e)})}},e.trackTrace=function(t,n){try{var r=Ki(t,qi[Xs],qi[Qs],e[Ys](),n);e[Js][Zs](r)}catch(e){x(2,39,"trackTrace failed, trace will not be collected: "+xn(e),{exception:Ur(e)})}},e.trackMetric=function(t,n){try{var r=Ki(t,Wi[Xs],Wi[Qs],e[Ys](),n);e[Js][Zs](r)}catch(e){x(1,36,"trackMetric failed, metric will not be collected: "+xn(e),{exception:Ur(e)})}},e[eu]=function(t,n){try{var r=t||{};i[eu](r,Z(Z(Z({},r.properties),r.measurements),n)),e.config[Vs]&&a[tu](r.name,r.uri)}catch(e){x(1,37,"trackPageView failed, page view will not be collected: "+xn(e),{exception:Ur(e)})}},e[nu]=function(t,n,r){var i=Pr();i&&(t.refUri=void 0===t.refUri?i.referrer:t.refUri);var o=Ki(t,Gi[Xs],Gi[Qs],e[Ys](),n,r);e[Js][Zs](o)},e[ru]=function(t,n,r){var i=Ki(t,$i[Xs],$i[Qs],e[Ys](),n,r);e[Js][Zs](i)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{o[iu](r),e[ru](r,n)}catch(e){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+xn(e),{exception:Ur(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=Pr();e=t&&t.title||""}r.start(e)}catch(e){x(1,31,"startTrackPage failed, page view may not be collected: "+xn(e),{exception:Ur(e)})}},e.stopTrackPage=function(t,n,i,o){try{if("string"!=typeof t){var s=Pr();t=s&&s.title||""}if("string"!=typeof n){var u=Ar();n=u&&u[ou]||""}r.stop(t,n,i,o),e.config[Vs]&&a[tu](t,n)}catch(e){x(1,32,"stopTrackPage failed, page view will not be collected: "+xn(e),{exception:Ur(e)})}},e[au]=function(t,n,r){var i=t&&(t[su]||t[uu])||tn(t)&&t||{name:t&&typeof t,message:t||Mi};t=t||{};var o=Ki(new uo(e[Ys](),i,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),uo[Xs],uo[Qs],e[Ys](),n,r);e[Js][Zs](o)},e.trackException=function(t,n){t&&!t[su]&&t[uu]&&(t[su]=t[uu]);try{e[au](t,n)}catch(e){x(1,35,"trackException failed, exception will not be collected: "+xn(e),{exception:Ur(e)})}},e[lu]=function(t){var n=t&&t[uu],r=t&&t.evt;try{if(!r){var i=Cr();i&&(r=i.event)}var o=t&&t.url||(Pr()||{}).URL,a=t[cu]||"window.onerror@"+o+":"+(t[fu]||0)+":"+(t[du]||0),s={errorSrc:a,url:o,lineNumber:t[fu]||0,columnNumber:t[du]||0,message:t[pu]};dr(t.message,t.url,t.lineNumber,t.columnNumber,t[uu])?function(t,n){var r=Ki(t,uo[Xs],uo[Qs],e[Ys](),n);e[Js][Zs](r)}(uo[vu]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,t[fu]||0,t[du]||0,n,r,null,a),s):(t[cu]||(t[cu]=a),e.trackException({exception:t,severityLevel:3},s))}catch(e){var u=n?n.name+", "+n[pu]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+xn(e),{exception:Ur(e),errorString:u})}},e[hu]=function(t){if(e[Js])return e[Js][hu](t);s||(s=[]),s.push(t)},e.initialize=function(x,S,I,k){if(!e.isInitialized()){Ht(S)&&Cn("Error initializing"),t.initialize(x,S,I,k);try{b=Sa(ea(e.identifier),S.evtNamespace&&S.evtNamespace()),s&&(un(s,function(e){
2S[hu](e)}),s=null);var E=function(t){var n=Is(null,t,e[Js]),r=e.identifier,i=Bu(t),o=e.config=n.getExtCfg(r);void 0!==i&&Qt(i,function(e,t){o[e]=n.getConfig(r,e,t),void 0===o[e]&&(o=t)});return o}(x);Ku(E),o=new Ru(e[Js]),i=new Pu(g,E[Bs],e[Js],o),a=new Fu(e[Ys](),function(t,n,r){return function(t,n,r){var i={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},i)}(t,n,r)}),function(t,n){u=t[Hs]||n[Hs],function(){if(!l&&u){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(u&&e.baseType===os[Xs]){var n=e.baseData;if(n)for(var r=0;r<t[mu];r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}return!0};e[hu](n),l=!0}}()}(E,x),(n=new Uu(e[Ys](),"trackEvent")).action=function(t,n,r,i,o){i||(i={}),o||(o={}),i.duration=r[Us](),e.trackEvent({name:t,properties:i,measurements:o})},(r=new Uu(e[Ys](),"trackPageView")).action=function(t,n,r,i,o){Ht(i)&&(i={}),i.duration=r[Us]();var a={name:t,uri:n,properties:i,measurements:o};e[nu](a,i)},Er()&&(function(t){var n=Cr(),r=Ar(!0);d=t[Ls],d||p||t.autoExceptionInstrumented||(w(Ns(n,"onerror",{ns:b,rsp:function(t,n,r,i,o,a){d||!0===t.rslt||e[lu](uo[vu](n,r,i,o,a,t.evt))}},!1)),p=!0);!function(t,n,r){v=!0===t[Ks],v&&!h&&(w(Ns(n,"onunhandledrejection",{ns:b,rsp:function(t,n){v&&!0!==t.rslt&&e[lu](uo[vu](function(e){if(e&&e.reason){var t=e.reason;return!nn(t)&&Jt(t[Us])?t[Us]():Ur(t)}return e||""}(n),r?r[ou]:"",0,0,n,t.evt))}},!1)),h=!0,t.autoUnhandledPromiseInstrumented=h)}(t,n,r)}(E),function(t){var n=Cr(),r=Ar(!0);if(c=!0===t[Ws],n&&c&&Dr()){var i=Dr()?history:kr("history");Jt(i.pushState)&&Jt(i.replaceState)&&typeof Event!==V&&function(t,n,r,i){var o=t[Gs]||"";function a(){c&&Lu(n,Ka(o+"locationchange"))}function s(){if(y?(m=y,y=i&&i[ou]||""):y=i&&i[ou]||"",c){var t=function(){var t=null;e[Js]&&e[Js].getTraceCtx&&(t=e[Js].getTraceCtx(!1));if(!t){var n=e[Js].getPlugin(wi);if(n){var r=n.plugin.context;r&&(t=is(r.telemetryTrace))}}return t}();if(t){t.setTraceId(_a());var n="_unknown_";i&&i.pathname&&(n=i.pathname+(i.hash||"")),t.setName(Oi(e[Ys](),n))}setTimeout(function(t){e[eu]({refUri:t,properties:{duration:0}})}.bind(this,m),e.autoRoutePVDelay)}}f||(w(Ns(r,"pushState",{ns:b,rsp:function(){c&&(Lu(n,Ka(o+"pushState")),Lu(n,Ka(o+"locationchange")))}},!0)),w(Ns(r,"replaceState",{ns:b,rsp:function(){c&&(Lu(n,Ka(o+"replaceState")),Lu(n,Ka(o+"locationchange")))}},!0)),Ia(n,o+"popstate",a,b),Ia(n,o+"locationchange",s,b),f=!0)}(t,n,i,r)}}(E))}catch(t){throw e.setInitialized(!1),t}}},e._doTeardown=function(e,t){i&&i.teardown(e,t),ka(window,null,null,b),S()},gn(e,"_pageViewManager",function(){return i}),gn(e,"_pageViewPerformanceManager",function(){return o}),gn(e,"_pageVisitTimeManager",function(){return a}),gn(e,"_evtNamespace",function(){return"."+b})}),g}return te(t,e),t.Version="2.8.10",t.getDefaultConfig=Bu,t}(js);function qu(e){var t="ai."+e+".";return function(e){return t+e}}var Hu,Wu=qu("application"),Gu=qu("device"),$u=qu("location"),Ju=qu("operation"),Xu=qu("session"),Qu=qu("user"),Yu=qu("cloud"),Zu=qu("internal"),el=function(e){function t(){return e.call(this)||this}return te(t,e),t}((Hu={applicationVersion:Wu("ver"),applicationBuild:Wu("build"),applicationTypeId:Wu("typeId"),applicationId:Wu("applicationId"),applicationLayer:Wu("layer"),deviceId:Gu("id"),deviceIp:Gu("ip"),deviceLanguage:Gu("language"),deviceLocale:Gu("locale"),deviceModel:Gu("model"),deviceFriendlyName:Gu("friendlyName"),deviceNetwork:Gu("network"),deviceNetworkName:Gu("networkName"),deviceOEMName:Gu("oemName"),deviceOS:Gu("os"),deviceOSVersion:Gu("osVersion"),deviceRoleInstance:Gu("roleInstance"),deviceRoleName:Gu("roleName"),deviceScreenResolution:Gu("screenResolution"),deviceType:Gu("type"),deviceMachineName:Gu("machineName"),deviceVMName:Gu("vmName"),deviceBrowser:Gu("browser"),deviceBrowserVersion:Gu("browserVersion"),locationIp:$u("ip"),locationCountry:$u("country"),locationProvince:$u("province"),locationCity:$u("city"),operationId:Ju("id"),operationName:Ju("name"),operationParentId:Ju("parentId"),operationRootId:Ju("rootId"),operationSyntheticSource:Ju("syntheticSource"),operationCorrelationVector:Ju("correlationVector"),sessionId:Xu("id"),sessionIsFirst:Xu("isFirst"),sessionIsNew:Xu("isNew"),userAccountAcquisitionDate:Qu("accountAcquisitionDate"),userAccountId:Qu("accountId"),userAgent:Qu("userAgent"),userId:Qu("id"),userStoreRegion:Qu("storeRegion"),userAuthUserId:Qu("authUserId"),userAnonymousUserAcquisitionDate:Qu("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Qu("authUserAcquisitionDate"),cloudName:Yu("name"),cloudRole:Yu("role"),cloudRoleVer:Yu("roleVer"),cloudRoleInstance:Yu("roleInstance"),cloudEnvironment:Yu("environment"),cloudLocation:Yu("location"),cloudDeploymentUnit:Yu("deploymentUnit"),internalNodeName:Zu("nodeName"),internalSdkVersion:Zu("sdkVersion"),internalAgentVersion:Zu("agentVersion"),internalSnippet:Zu("snippet"),internalSdkSrc:Zu("sdkSrc")},function(){var e=this;Hu&&Qt(Hu,function(t,n){e[t]=n})})),tl={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},nl=new el,rl=function(e,t,n){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Un]=Oi(e,n)||Mi,i.data=t,i.time=sn(new Date),i.aiDataContract={t
2ime:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},il=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},ol="duration",al="tags",sl="deviceType",ul="data",ll="name",cl="traceID",fl="length",dl="stringify",pl="measurements",vl="dataType",hl="envelopeType",gl="toString",ml="onLine",yl="enqueue",bl="count",wl="push",xl="emitLineDelimitedJson",Sl="clear",Il="batchPayloads",kl="markAsSent",El="clearSent",Cl="BUFFER_KEY",Tl="SENT_BUFFER_KEY",Pl="MAX_BUFFER_SIZE",Ml="namePrefix",_l="maxBatchSizeInBytes",Dl="triggerSend",Al="diagLog",Ol="onunloadDisableBeacon",Nl="isBeaconApiDisabled",Rl="_sender",Fl="_senderConfig",jl="_buffer",Ul="enableSessionStorageBuffer",Ll="samplingPercentage",Vl="instrumentationKey",Bl="endpointUrl",Kl="customHeaders",zl="disableXhr",ql="onunloadDisableFetch",Hl="disableTelemetry",Wl="baseType",Gl="sampleRate",$l="convertUndefined",Jl="_onError",Xl="_onPartialSuccess",Ql="_onSuccess",Yl="itemsAccepted",Zl="isRetryDisabled",ec="setRequestHeader",tc="maxBatchInterval",nc="eventsSendRequest",rc="disableInstrumentationKeyValidation",ic="getSamplingScore",oc="baseType",ac="baseData",sc="properties",uc="true";function lc(e,t,n){return Sn(e,t,n,En)}function cc(e,t,n){Ht(e)||Qt(e,function(e,r){rn(r)?n[e]=r:nn(r)?t[e]=r:Nr()&&(t[e]=Rr()[dl](r))})}function fc(e,t){Ht(e)||Qt(e,function(n,r){e[n]=r||t})}function dc(e,t,n,r){var i=new rl(e,r,t);lc(i,"sampleRate",n[ki]),(n[ac]||{}).startTime&&(i.time=sn(n[ac].startTime)),i.iKey=n.iKey;var o=n.iKey.replace(/-/g,"");return i[ll]=i[ll].replace("{0}",o),function(e,t,n){var r=n[al]=n[al]||{},i=t.ext=t.ext||{},o=t[al]=t[al]||[],a=i.user;a&&(lc(r,nl.userAuthUserId,a.authId),lc(r,nl.userId,a.id||a.localId));var s=i.app;s&&lc(r,nl.sessionId,s.sesId);var u=i.device;u&&(lc(r,nl.deviceId,u.id||u.localId),lc(r,nl[sl],u.deviceClass),lc(r,nl.deviceIp,u.ip),lc(r,nl.deviceModel,u.model),lc(r,nl[sl],u[sl]));var l=t.ext.web;if(l){lc(r,nl.deviceLanguage,l.browserLang),lc(r,nl.deviceBrowserVersion,l.browserVer),lc(r,nl.deviceBrowser,l.browser);var c=n[ul]=n[ul]||{},f=c[ac]=c[ac]||{},d=f[sc]=f[sc]||{};lc(d,"domain",l.domain),lc(d,"isManual",l.isManual?uc:null),lc(d,"screenRes",l.screenRes),lc(d,"userConsent",l.userConsent?uc:null)}var p=i.os;p&&lc(r,nl.deviceOS,p[ll]);var v=i.trace;v&&(lc(r,nl.operationParentId,v.parentID),lc(r,nl.operationName,Oi(e,v[ll])),lc(r,nl.operationId,v[cl]));for(var h={},g=o[fl]-1;g>=0;g--)Qt(o[g],function(e,t){h[e]=t}),o.splice(g,1);Qt(o,function(e,t){h[e]=t});var m=Z(Z({},r),h);m[nl.internalSdkVersion]||(m[nl.internalSdkVersion]="javascript:".concat(vc.Version)),n[al]=_n(m)}(e,n,i),n[al]=n[al]||[],_n(i)}function pc(e,t){Ht(t[ac])&&ti(e,1,46,"telemetryItem.baseData cannot be null.")}var vc={Version:"2.8.10"};function hc(e,t,n){pc(e,t);var r={},i={};t[oc]!==zi[vl]&&(r.baseTypeSource=t[oc]),t[oc]===zi[vl]?(r=t[ac][sc]||{},i=t[ac][pl]||{}):t[ac]&&cc(t[ac],r,i),cc(t[ul],r,i),Ht(n)||fc(r,n);var o=t[ac][ll],a=new zi(e,o,r,i),s=new il(zi[vl],a);return dc(e,zi[hl],t,s)}function gc(e,t){ka(e,null,null,t)}var mc,yc=function(){function e(t,n){var r=[],i=!1;this._get=function(){return r},this._set=function(e){return r=e},j(e,this,function(e){e[yl]=function(o){e[bl]()>=n.eventsLimitInMem()?i||(ti(t,2,105,"Maximum in-memory buffer size reached: "+e[bl](),!0),i=!0):r[wl](o)},e[bl]=function(){return r[fl]},e.size=function(){for(var e=r[fl],t=0;t<r[fl];t++)e+=r[t][fl];return n[xl]()||(e+=2),e},e[Sl]=function(){r=[],i=!1},e.getItems=function(){return r.slice(0)},e[Il]=function(e){return e&&e[fl]>0?n[xl]()?e.join("\n"):"["+e.join(",")+"]":null}})}return e.__ieDyn=1,e}(),bc=function(e){function t(n,r){var i=e.call(this,n,r)||this;return j(t,i,function(e,t){e[kl]=function(e){t[Sl]()},e[El]=function(e){}}),i}return te(t,e),t.__ieDyn=1,t}(yc),wc=function(e){function t(n,r){var i=e.call(this,n,r)||this,o=!1;return j(t,i,function(e,i){var a=c(t[Cl]),s=c(t[Tl]),u=e._set(a.concat(s));function l(e,t){var n=[];return un(t,function(t){Jt(t)||-1!==ln(e,t)||n[wl](t)}),n}function c(e){var t=e;try{t=r[Ml]&&r[Ml]()?r[Ml]()+"_"+t:t;var i=gi(n,t);if(i){var o=Rr().parse(i);if(nn(o)&&(o=Rr().parse(o)),o&&en(o))return o}}catch(e){ti(n,1,42," storage key: "+t+", "+xn(e),{exception:Ur(e)})}return[]}function f(e,t){var i=e;try{i=r[Ml]&&r[Ml]()?r[Ml]()+"_"+i:i;var o=JSON[dl](t);mi(n,i,o)}catch(e){mi(n,i,JSON[dl]([])),ti(n,2,41," storage key: "+i+", "+xn(e)+". Buffer cleared",{exception:Ur(e)})}}u[fl]>t[Pl]&&(u[fl]=t[Pl]),f(t[Tl],[]),f(t[Cl],u),e[yl]=function(r){e[bl]()>=t[Pl]?o||(ti(n,2,67,"Maximum buffer size reached: "+e[bl](),!0),o=!0):(i[yl](r),f(t[Cl],e._get()))},e[Sl]=function(){i[Sl](),f(t[Cl],e._get()),f(t[Tl],[]),o=!1},e[kl]=function(r){f(t[Cl],e._set(l(r,e._get())));var i=c(t[Tl]);i instanceof Array&&r instanceof Array&&((i=i.concat(r))[fl]>t[Pl]&&(ti(n,1,67,"Sent buffer reached its maximum size: "+i[fl],!0),i[fl]=t[Pl]),f(t[Tl],i))},e[El]=function(e){var n=c(t[Tl]);n=l(e,n),f(t[Tl],n)}}),i}return te(t,e),t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(yc),xc=function(){function e(t){j(e,this,function(e){function n(e,o){var a="__aiCircularRefCheck",s={};if(!e)return ti(t,1,48,"cannot serialize object because it is null or undefined",{name:o},!0),s;if(e[a])return ti(t,2,50,"Circular reference detected while serializing object",{name:o},!0),s;if(!e.aiDataContract){if("measurements"===o)s=i(e,"number",o);else if("properties"===o)s=i(e,"string",o);else if("tags"===o)s=i(e,"string",o);else if(en(e))s=r(e,o);else{ti(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{Rr()[dl](e),s=e}catch(e){ti(t,1,48,e&&Jt(e[gl])?e[gl]():"Error serializing object",null,!0)}}return s}return e[a]=!0,Qt(e.aiDataContract,function(i,a){var u=Jt(a)?1&a():1&a,l=Jt(a)?4&a():4&a,c=2&a,f=void 0!==e[i],d=$t(e[i])&&null!==e[i];if(!u||f||c){if(!l){var p=void 0;void 0!==(p=d?c?r(e[i],i):n(e[i],i):e[i])&&(s[i]=p)}}else ti(t,1,24,"Missing required field specification. The field is required but not present on source",{field:i,name:o})}),delete e[a],s}function r(e,r){var i;if(e)if(en(e)){i=[];for(var o=0;o<e[fl];o++){var a=n(e[o],r+"["+o+"]");i[wl](a)}}else ti(t,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},!0);return i}function i(e,n,r){var i;return e&&(i={},Qt(e,function(e,o){if("string"===n)void 0===o?i[e]="undefined":null===o?i[e]="null":o[gl]?i[e]=o[gl]():i[e]="invalid field: toString() is not defined.";else if("number"===n)if(void 0===o)i[e]="undefined";else if(null===o)i[e]="null";else{var a=parseFloat(o);isNaN(a)?i[e]="NaN":i[e]=a}else i[e]="invalid field: "+r+" is of unknown type.",ti(t,1,i[e],null,!0)})),i}e.serialize=function(e){var r=n(e,"root");try{return Rr()[dl](r)}
2catch(e){ti(t,1,48,e&&Jt(e[gl])?e[gl]():"Error serializing object",null,!0)}}})}return e.__ieDyn=1,e}(),Sc=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return 100*(this.getHashCode(t)/e.INT_MAX_VALUE)},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[fl]<8;)e=e.concat(e);for(var t=5381,n=0;n<e[fl];++n)t=(t<<5)+t+e.charCodeAt(n),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),Ic=function(){var e=new Sc,t=new el;this[ic]=function(n){return n[al]&&n[al][t.userId]?e.getHashCodeScore(n[al][t.userId]):n.ext&&n.ext.user&&n.ext.user.id?e.getHashCodeScore(n.ext.user.id):n[al]&&n[al][t.operationId]?e.getHashCodeScore(n[al][t.operationId]):n.ext&&n.ext.telemetryTrace&&n.ext.telemetryTrace[cl]?e.getHashCodeScore(n.ext.telemetryTrace[cl]):100*Math.random()}},kc=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Yr(null);(e>100||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[Gl]=e,this.samplingScoreGenerator=new Ic}return e.prototype.isSampledIn=function(e){var t=this[Gl];return null==t||t>=100||(e.baseType===Wi[vl]||this.samplingScoreGenerator[ic](e)<t)},e}();function Ec(e){try{return e.responseText}catch(e){}return null}function Cc(){var e,t;return(e={endpointUrl:function(){return Ti+Pi}})[xl]=function(){return!1},e[tc]=function(){return 15e3},e[_l]=function(){return 102400},e[Hl]=function(){return!1},e[Ul]=function(){return!0},e[Zl]=function(){return!1},e[Nl]=function(){return!0},e[zl]=function(){return!1},e[ql]=function(){return!1},e[Ol]=function(){return!1},e[Vl]=function(){return t},e[Ml]=function(){return t},e[Ll]=function(){return 100},e[Kl]=function(){},e[$l]=function(){return t},e.eventsLimitInMem=function(){return 1e4},e}var Tc=((mc={})[zi.dataType]=hc,mc[qi.dataType]=function(e,t,n){pc(e,t);var r=t[ac].message,i=t[ac].severityLevel,o=t[ac][sc]||{},a=t[ac][pl]||{};cc(t[ul],o,a),Ht(n)||fc(o,n);var s=new qi(e,r,i,o,a),u=new il(qi[vl],s);return dc(e,qi[hl],t,u)},mc[Gi.dataType]=function(e,t,n){var r;pc(e,t);var i=t[ac];Ht(i)||Ht(i[sc])||Ht(i[sc][ol])?Ht(t[ul])||Ht(t[ul][ol])||(r=t[ul][ol],delete t[ul][ol]):(r=i[sc][ol],delete i[sc][ol]);var o,a=t[ac];((t.ext||{}).trace||{})[cl]&&(o=t.ext.trace[cl]);var s=a.id||o,u=a[ll],l=a.uri,c=a[sc]||{},f=a[pl]||{};Ht(a.refUri)||(c.refUri=a.refUri),Ht(a.pageType)||(c.pageType=a.pageType),Ht(a.isLoggedIn)||(c.isLoggedIn=a.isLoggedIn[gl]()),Ht(a[sc])||Qt(a[sc],function(e,t){c[e]=t}),cc(t[ul],c,f),Ht(n)||fc(c,n);var d=new Gi(e,u,l,r,c,f,s),p=new il(Gi[vl],d);return dc(e,Gi[hl],t,p)},mc[$i.dataType]=function(e,t,n){pc(e,t);var r=t[ac],i=r[ll],o=r.uri||r.url,a=r[sc]||{},s=r[pl]||{};cc(t[ul],a,s),Ht(n)||fc(a,n);var u=new $i(e,i,o,void 0,a,s,r),l=new il($i[vl],u);return dc(e,$i[hl],t,l)},mc[uo.dataType]=function(e,t,n){pc(e,t);var r=t[ac][pl]||{},i=t[ac][sc]||{};cc(t[ul],i,r),Ht(n)||fc(i,n);var o=t[ac],a=uo.CreateFromInterface(e,o,i,r),s=new il(uo[vl],a);return dc(e,uo[hl],t,s)},mc[Wi.dataType]=function(e,t,n){pc(e,t);var r=t[ac],i=r[sc]||{},o=r[pl]||{};cc(t[ul],i,o),Ht(n)||fc(i,n);var a=new Wi(e,r[ll],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o),s=new il(Wi[vl],a);return dc(e,Wi[hl],t,s)},mc[os.dataType]=function(e,t,n){pc(e,t);var r=t[ac][pl]||{},i=t[ac][sc]||{};cc(t[ul],i,r),Ht(n)||fc(i,n);var o=t[ac];if(Ht(o))return ni(e,"Invalid input for dependency data"),null;var a=o[sc]&&o[sc][Ci]?o[sc][Ci]:"GET",s=new os(e,o.id,o.target,o[ll],o[ol],o.success,o.responseCode,a,o.type,o.correlationContext,i,r),u=new il(os[vl],s);return dc(e,os[hl],t,u)},mc),Pc=function(e){function t(){var n,r,i,o,a,s,u,l=e.call(this)||this;l.priority=1001,l.identifier=xi,l._senderConfig=Cc();var c,f,d,p,v=0;return j(t,l,function(e,h){function g(t,r,i,o,a,s){var u=null;if(e._appId||(u=E(s))&&u.appId&&(e._appId=u.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!m(i))return void e[Jl](r,a);!e[Fl][Zl]()&&M(t)?(C(r),ti(e[Al](),2,40,". Response code "+t+". Will retry to send "+r[fl]+" items.")):e[Jl](r,a)}else if(d&&!d.isOnline()){if(!e[Fl][Zl]()){C(r,10),ti(e[Al](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(r.length," items."))}}else m(i),206===t?(u||(u=E(s)),u&&!e[Fl][Zl]()?e[Xl](r,u):e[Jl](r,a)):(n=0,e[Ql](r,o))}function m(t){return!(s>=10)&&(!Ht(t)&&""!==t&&t!==e[Fl][Bl]()&&(e[Fl][Bl]=function(){return t},++s,!0))}function y(e,t){f?f(e,!1):w(e,t)}function b(t){var n=_r(),r=e[jl],i=e[Fl][Bl](),o=e._buffer[Il](t),a=new Blob([o],{type:"text/plain;charset=UTF-8"}),s=n.sendBeacon(i,a);return s&&(r[kl](t),e._onSuccess(t,t[fl])),s}function w(t,n){if(en(t)&&t[fl]>0&&!b(t)){for(var r=[],i=0;i<t[fl];i++){var o=t[i];b([o])||r[wl](o)}r[fl]>0&&(c&&c(r,!0),ti(e[Al](),2,40,". Failed to send telemetry with Beacon API, retried with 
2normal sender."))}}function x(t,n){var r=new XMLHttpRequest,i=e[Fl][Bl]();try{r[Ii]=!0}catch(e){}r.open("POST",i,n),r[ec]("Content-type","application/json"),es(i)&&r[ec](qa[6],qa[7]),un(hn(u),function(e){r[ec](e,u[e])}),r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t[fl])},r.onerror=function(n){return e[Jl](t,_(r),n)};var o=e._buffer[Il](t);r.send(o),e._buffer[kl](t)}function S(t,n){if(en(t)){for(var r=t[fl],i=0;i<t[fl];i++)r+=t[i][fl];v+r<=65e3?k(t,!1):Lr()?w(t):(c&&c(t,!0),ti(e[Al](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function I(e,t){k(e,!0)}function k(t,n){var r,i=e[Fl][Bl](),o=e._buffer[Il](t),a=new Blob([o],{type:"application/json"}),s=new Headers,l=o[fl],c=!1,f=!1;es(i)&&s.append(qa[6],qa[7]),un(hn(u),function(e){s.append(e,u[e])});var d=((r={method:"POST",headers:s,body:a})[Ii]=!0,r);n||(d.keepalive=!0,c=!0,v+=l);var p=new Request(i,d);try{p[Ii]=!0}catch(e){}e._buffer[kl](t);try{fetch(p).then(function(r){n||(v-=l,l=0),f||(f=!0,r.ok?r.text().then(function(e){g(r.status,t,r.url,t[fl],r.statusText,e)}):e[Jl](t,r.statusText))}).catch(function(r){n||(v-=l,l=0),f||(f=!0,e[Jl](t,r.message))})}catch(n){f||e[Jl](t,Ur(n))}c&&!f&&(f=!0,e._onSuccess(t,t[fl]))}function E(t){try{if(t&&""!==t){var n=Rr().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n[Yl]&&n.itemsReceived-n.itemsAccepted===n.errors[fl])return n}}catch(n){ti(e[Al](),1,43,"Cannot parse the response. "+xn(n),{response:t})}return null}function C(t,i){if(void 0===i&&(i=1),t&&0!==t[fl]){var o=e[jl];o[El](t),n++;for(var a=0,s=t;a<s.length;a++){var u=s[a];o[yl](u)}!function(e){var t,i=10;if(n<=1)t=i;else{var o=(Math.pow(2,n)-1)/2,a=Math.floor(Math.random()*o*i)+1;a*=e,t=Math.max(Math.min(a,3600),i)}var s=wn()+1e3*t;r=s}(i),T()}}function T(){if(!o&&!i){var t=r?Math.max(0,r-wn()):0,n=Math.max(e[Fl][tc](),t);o=setTimeout(function(){o=null,e[Dl](!0,null,1)},n)}}function P(){clearTimeout(o),o=null,r=null}function M(e){return 401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e}function _(e,t){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Ec(e)||0:t}function D(t,n){var r=e[jl],i=Cr(),o=new XDomainRequest;o.onload=function(){return e._xdrOnLoad(o,t)},o.onerror=function(n){return e[Jl](t,A(o),n)};var a=i&&i.location&&i.location.protocol||"";if(0!==e[Fl][Bl]().lastIndexOf(a,0))return ti(e[Al](),2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void r[Sl]();var s=e[Fl][Bl]().replace(/^(https?:)/,"");o.open("POST",s);var u=r[Il](t);o.send(u),r[kl](t)}function A(e,t){return e?"XDomainRequest,Response:"+Ec(e)||0:t}function O(){e[Rl]=null,e[jl]=null,e._appId=null,e._sample=null,u={},d=null,n=0,r=null,i=!1,o=null,a=null,s=0,v=0,c=null,f=null,p=null}O(),e.pause=function(){P(),i=!0},e.resume=function(){i&&(i=!1,r=null,e._buffer.size()>e._senderConfig[_l]()&&e[Dl](!0,null,10),T())},e.flush=function(t,n,r){if(void 0===t&&(t=!0),!i){P();try{e[Dl](t,null,r||1)}catch(t){ti(e[Al](),1,22,"flush failed, telemetry will not be collected: "+xn(t),{exception:Ur(t)})}}},e.onunloadFlush=function(){if(!i)if(!1!==e._senderConfig[Ol]()&&!1!==e[Fl][Nl]()||!Lr())e.flush();else try{e[Dl](!0,y,2)}catch(t){ti(e[Al](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+xn(t),{exception:Ur(t)})}},e.addHeader=function(e,t){u[e]=t},e.initialize=function(t,i,o,u){e.isInitialized()&&ti(e[Al](),1,28,"Sender is already initialized"),h.initialize(t,i,o,u);var v=e._getTelCtx(),g=e.identifier;a=new xc(i.logger),n=0,r=null,e[Rl]=null,s=0;var m=e[Al]();p=Sa(ea("Sender"),i.evtNamespace&&i.evtNamespace()),d=function(e){var t=Pr(),n=_r(),r=!1,i=!0,o=Sa(ea("OfflineListener"),e);try{if(s(Cr())&&(r=!0),t){var a=t.body||t;a.ononline&&s(a)&&(r=!0)}r&&n&&!Ht(n[ml])&&(i=n[ml])}catch(e){r=!1}function s(e){var t=!1;return e&&(t=Ia(e,"online",u,o))&&Ia(e,"offline",l,o),t}function u(){i=!0}function l(){i=!1}return{isOnline:function(){var e=!0;return r?e=i:n&&!Ht(n[ml])&&(e=n[ml]),e},isListening:function(){return r},unload:function(){var e=Cr();if(e&&r){if(gc(e,o),t){var n=t.body||t;qt(n.ononline)||gc(n,o)}r=!1}}}}(p),Qt(Cc(),function(t,n){e[Fl][t]=function(){var e=v.getConfig(g,t,n());return e||"endpointUrl"!==t||(e=n()),e}}),e._buffer=e[Fl][Ul]()&&hi()?new wc(m,e[Fl]):new bc(m,e[Fl]),e._sample=ne
2w kc(e[Fl][Ll](),m),function(e){var t=!Ht(e[rc])&&e[rc];if(t)return!0;return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e[Vl])}(t)||ti(m,1,100,"Invalid Instrumentation key "+t[Vl]),!es(e._senderConfig.endpointUrl())&&e._senderConfig.customHeaders()&&e._senderConfig.customHeaders()[fl]>0&&un(e[Fl][Kl](),function(e){l.addHeader(e.header,e.value)});var y=e[Fl],b=null;!y[zl]()&&Br()?b=D:!y[zl]()&&Kr()&&(b=x),!b&&Vr()&&(b=I),c=b||x,!y[Nl]()&&Lr()&&(b=w),e[Rl]=b||x,f=!y[ql]()&&Vr(!0)?S:Lr()?w:!y[zl]()&&Br()?D:!y[zl]()&&Kr()?x:c},e.processTelemetry=function(n,r){var i,o=(r=e._getTelCtx(r))[Al]();try{if(e[Fl][Hl]())return;if(!n)return void ti(o,1,7,"Cannot send empty telemetry");if(n.baseData&&!n[Wl])return void ti(o,1,70,"Cannot send telemetry without baseData and baseType");if(n[Wl]||(n[Wl]="EventData"),!e[Rl])return void ti(o,1,28,"Sender was not initialized");if(i=n,!e._sample.isSampledIn(i))return void ti(o,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[Gl]});n[ki]=e._sample[Gl];var s=e[Fl][$l]()||void 0,u=n.iKey||e[Fl][Vl](),l=t.constructEnvelope(n,u,o,s);if(!l)return void ti(o,1,47,"Unable to create an AppInsights envelope");var c=!1;if(n[al]&&n[al][Ei]&&(un(n[al][Ei],function(e){try{e&&!1===e(l)&&(c=!0,ni(o,"Telemetry processor check returns false"))}catch(e){ti(o,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+xn(e),{exception:Ur(e)},!0)}}),delete n[al][Ei]),c)return;var f=a.serialize(l),d=e[jl];d.size()+f[fl]>e[Fl][_l]()&&e[Dl](!0,null,10),d[yl](f),T()}catch(e){ti(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+xn(e),{exception:Ur(e)})}e.processNext(n,r)},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&g(e.status,t,e.responseURL,n,_(e),Ec(e)||e.response)},e[Dl]=function(t,n,r){if(void 0===t&&(t=!0),!i)try{var o=e[jl];if(e[Fl][Hl]())o[Sl]();else{if(o[bl]()>0){var a=o.getItems();!function(t,n){var r=function(){var t="getNotifyMgr";if(e.core[t])return e.core[t]();return e.core._notificationManager}();if(r&&r[nc])try{r[nc](t,n)}catch(t){ti(e[Al](),1,74,"send request notification failed: "+xn(t),{exception:Ur(t)})}}(r||0,t),n?n.call(l,a,t):e[Rl](a,t)}+new Date}P()}catch(t){var s=jr();(!s||s>9)&&ti(e[Al](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+xn(t),{exception:Ur(t)})}},e._doTeardown=function(t,n){e.onunloadFlush(),d.unload(),O()},e[Jl]=function(t,n,r){ti(e[Al](),2,26,"Failed to send telemetry.",{message:n}),e._buffer[El](t)},e[Xl]=function(t,n){for(var r=[],i=[],o=0,a=n.errors.reverse();o<a.length;o++){var s=a[o],u=t.splice(s.index,1)[0];M(s.statusCode)?i[wl](u):r[wl](u)}t[fl]>0&&e[Ql](t,n[Yl]),r[fl]>0&&e[Jl](r,_(null,["partial success",n[Yl],"of",n.itemsReceived].join(" "))),i[fl]>0&&(C(i),ti(e[Al](),2,40,"Partial success. Delivered: "+t[fl]+", Failed: "+r[fl]+". Will retry to send "+i[fl]+" our of "+n.itemsReceived+" items"))},e[Ql]=function(t,n){e._buffer[El](t)},e._xdrOnLoad=function(t,r){var i=Ec(t);if(!t||i+""!="200"&&""!==i){var o=E(i);o&&o.itemsReceived&&o.itemsReceived>o[Yl]&&!e[Fl][Zl]()?e[Xl](r,o):e[Jl](r,A(t))}else n=0,e[Ql](r,0)}}),l}return te(t,e),t.constructEnvelope=function(e,t,n,r){var i;return i=t===e.iKey||Ht(t)?e:Z(Z({},e),{iKey:t}),(Tc[i.baseType]||hc)(n,i,r)},t}(js);function Mc(e){if(!e)return{};var t=fn(e[An](";"),function(e,t){var n=t[An]("=");if(2===n[On]){var r=n[0][Nn](),i=n[1];e[r]=i}return e},{});if(hn(t)[On]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[Rn]=t[Rn]||"https://"+n+"dc."+t.endpointsuffix}t[Rn]=t[Rn]||Ti}return t}ri({Verbose:0,Information:1,Warning:2,Error:3,Critical:4}),function(){function e(){}e.getConfig=function(e,t,n,r){var i;return void 0===r&&(r=!1),i=n&&e[qn]&&e[qn][n]&&!Ht(e[qn][n][t])?e[qn][n][t]:e[t],Ht(i)?r:i}}();var _c=500;function Dc(e,t,n){t&&en(t)&&t[de]>0&&(un(t=t.sort(function(e,t){return e[dt]-t[dt]}),function(e){e[dt]<_c&&Cn("Channel has invalid priority - "+e[ae])}),e[se]({queue:bn(t),chain:Cs(t,n[le],n)}))}var Ac=function(e){function t(){var n,r,i=e.call(this)||this;function o(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,o(),j(t,i,function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[se](t),{remove:function(){un(r,function(e,n){if(e.id===t.id)return r[Ie](n,1),-1})}}},e[ft]=function(t,n){for(var i=!1,o=r[de],a=0;a<o;++a){var s=r[a];if(s)try{if(!1===s.fn[Ke](null,[t])){i=!0;break}}
2catch(e){ti(n[De](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+xn(e),{exception:Ur(e)},!0)}}i||e[ve](t,n)},e[Pe]=function(){o()}}),i}return te(t,e),t.__ieDyn=1,t}(js),Oc="Plugins must provide initialize method",Nc="_notificationManager",Rc="SDK is still unloading...",Fc={loggingLevelConsole:1};function jc(e,t){return new fs(t)}function Uc(e,t){var n=!1;return un(t,function(t){if(t===e)return n=!0,-1}),n}var Lc=function(){function e(){var t,n,r,i,o,a,s,u,l,c,f,d,p,v,h,g,m,y,b,w,x=0;j(e,this,function(e){function S(){n=!1,t=Dn(!0,{},Fc),e[le]=t,e[fe]=new Zr(t),e[Se]=[],h=new Ac,r=[],i=null,o=null,a=null,s=null,u=null,c=null,l=[],f=null,d=null,p=null,v=!1,g=null,m=ea("AIBaseCore",!0),y=Rs(),w=null}function I(){return Is(C(),t,e)}function k(n){var r=function(e,t,n){var r,i=[],o={};return un(n,function(n){(Ht(n)||Ht(n[re]))&&Cn(Oc);var r=n[dt],a=n[ae];n&&r&&(Ht(o[r])?o[r]=a:ni(e,"Two extensions have same priority #"+r+" - "+o[r]+", "+a)),(!r||r<t)&&i[se](n)}),(r={all:n})[st]=i,r}(e[fe],_c,l);c=r[st],u=null;var i=r.all;if(p=bn(function(e,t,n){var r=[];if(e&&un(e,function(e){return Dc(r,e,n)}),t){var i=[];un(t,function(e){e[dt]>_c&&i[se](e)}),Dc(r,i,n)}return r}(d,i,e)),f){var o=ln(i,f);-1!==o&&i[Ie](o,1),-1!==(o=ln(c,f))&&c[Ie](o,1),f._setQueue(p)}else f=function(e,t){function n(){return Is(null,t[le],t,null)}function r(e,t,n,r){var i=e?e[de]+1:1;function o(){0===--i&&(r&&r(),r=null)}i>0&&un(e,function(e){if(e&&e.queue[de]>0){var r=e.chain,a=t[Oe](r);a[be](o),n(a)}else i--}),o()}var i=!1,o={identifier:"ChannelControllerPlugin",priority:_c,initialize:function(t,n,r,o){i=!0,un(e,function(e){e&&e.queue[de]>0&&gs(Is(e.chain,t,n),r)})},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),function(e){e[ve](t)},function(){i[ve](t)})},update:function(t,n){var i=n||{reason:0};return r(e,t,function(e){e[ve](i)},function(){t[ve](i)}),!0},pause:function(){r(e,n(),function(e){e.iterate(function(e){e.pause&&e.pause()})},null)},resume:function(){r(e,n(),function(e){e.iterate(function(e){e.resume&&e.resume()})},null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,function(e){e[ve](o)},function(){t[ve](o),i=!1}),!0},getChannel:function(t){var n=null;return e&&e[de]>0&&un(e,function(e){if(e&&e.queue[de]>0&&(un(e.queue,function(e){if(e[ae]===t)return n=e,-1}),n))return-1}),n},flush:function(t,i,o,a){var s=1,u=!1,l=null;function c(){s--,u&&0===s&&(l&&(clearTimeout(l),l=null),i&&i(u),i=null)}return a=a||5e3,r(e,n(),function(e){e.iterate(function(e){if(e[xe]){s++;var n=!1;e[xe](t,function(){n=!0,c()},o)||n||(t&&null==l?l=setTimeout(function(){l=null,c()},a):c())}})},function(){u=!0,c()}),!0},_setQueue:function(t){e=t}};return o}(p,e);i[se](f),c[se](f),e[Se]=ms(i),f[re](t,e,i),gs(I(),i),e[Se]=bn(ms(c||[])).slice(),n&&function(t){var n=Es(C(),e);e._updateHook&&!0===e._updateHook(n,t)||n[ve](t)}(n)}function E(t){var n,r=null,i=null;return un(e[Se],function(e){if(e[ae]===t&&e!==f&&e!==h)return i=e,-1}),!i&&f&&(i=f.getChannel(t)),i&&((n={plugin:i})[Le]=function(e){hs(i)[lt]=!e},n.isEnabled=function(){var e=hs(i);return!e[ke]&&!e[lt]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[Te]=e,n);T(r,o,function(e){e&&k({reason:32,removed:r}),t&&t(e)})},r=n),r}function C(){if(!u){var n=(c||[]).slice();-1===ln(n,h)&&n[se](h),u=Cs(ms(n),t,e)}return u}function T(n,r,i){if(n&&n[de]>0){var o=ks(Cs(n,t,e),e);o[be](function(){var e=!1,t=[];un(l,function(r,i){Uc(r,n)?e=!0:t[se](r)}),l=t;var r=[];d&&(un(d,function(t,i){var o=[];un(t,function(t){Uc(t,n)?e=!0:o[se](t)}),r[se](o)}),d=r),i&&i(e)}),o[ve](r)}else i(!1)}function P(){var n=e[fe]?e[fe].queue:[];n&&(un(n,function(n){var r,i=((r={})[ie]=g||"InternalMessageId: "+n[Ee],r.iKey=kn(t[ce]),r.time=sn(new Date),r.baseType=Qr.dataType,r.baseData={message:n[Ce]},r);e.track(i)}),n[de]=0)}function M(e,t,n,r){return f?f[xe](e,t,n||6,r):(t&&t(!1),!0)}function _(t){var n=e[fe];n?ti(n,2,73,t):Cn(t)}S(),e[ue]=function(){return n},e[re]=function(r,o,s,u){v&&Cn(Rc),e[ue]()&&Cn("Core should not be initialized more than once"),t=r||{},e[le]=t,Ht(r[ce])&&Cn("Please provide instrumentation key"),i=u,e[Nc]=u,function(){var e=kn(t.disableDbgExt);!0===e&&b&&(i[me](b),b=null);i&&!b&&!0!==e&&(b=$r(t),i[ge](b))}(),function(){var e=kn(t.enablePerfMgr);!e&&a&&(a=null);e&&In(t,ut,jc)}(),In(t,ct,{}).NotificationManager=i,s&&(e[fe]=s);var c=In(t,"extensions",[]);(l=[])[se].apply(l,ne(ne([],o),c)),d=In(t,at,[]),k(null),p&&0!==p[de]||Cn("No "+at+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return p&&un(p,function(t){e[se](t.queue)}),bn(e)},e.track=function(n){n.iKey=n.iKey||t[ce],n[pe]=n[pe]||sn(new Date),n.ver=n.ver||"4.0",!v&&e[ue]()?I()[ve](n):r[se](n)}
2,e[he]=I,e[oe]=function(){return i||(i=function(){var e;return Y(((e={})[ge]=function(e){},e[me]=function(e){},e[pt]=function(e){},e[vt]=function(e,t){},e[ht]=function(e,t){},e))}(),e[Nc]=i),i},e[ge]=function(e){i&&i[ge](e)},e[me]=function(e){i&&i[me](e)},e.getCookieMgr=function(){return s||(s=_o(t,e[fe])),s},e.setCookieMgr=function(e){s=e},e[bt]=function(){if(!o&&!a&&kn(t.enablePerfMgr)){var n=kn(t[ut]);Jt(n)&&(a=n(e,e[oe]()))}return o||a||ls},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return r[de]},e.releaseQueue=function(){if(n&&r[de]>0){var e=r;r=[],un(e,function(e){I()[ve](e)})}},e.pollInternalLogs=function(e){g=e||null;var n=kn(t.diagnosticLogInterval);return n&&n>0||(n=1e4),x&&clearInterval(x),x=setInterval(function(){P()},n)},e[ye]=function(){x&&(clearInterval(x),x=0,P())},Mn(e,function(){return h},["addTelemetryInitializer"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||Cn("SDK is not initialized"),v&&Cn(Rc);var a=((o={reason:50})[Te]=t,o.flushComplete=!1,o),s=ks(C(),e);function u(t){a.flushComplete=t,v=!0,y.run(s,a),e[ye](),s[ve](a)}s[be](function(){S(),r&&r(a)},e),M(t,u,6,i)||u(!1)},e[we]=E,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void _(Oc);var i=E(e[ae]);if(i&&!t)return r&&r(!1),void _("Plugin ["+e[ae]+"] is already loaded!");var o={reason:16};function a(t){l[se](e),o.added=[e],k(o),r&&r(!0)}if(i){var s=[i.plugin];T(s,{reason:2,isAsync:!!n},function(e){e?(o.removed=s,o.reason|=32,a()):r&&r(!1)})}else a()},e.evtNamespace=function(){return m},e[xe]=M,e.getTraceCtx=function(e){var t,n;return w||(n={},w={getName:function(){return n[ie]},setName:function(e){t&&t.setName(e),n[ie]=e},getTraceId:function(){return n[tt]},setTraceId:function(e){t&&t.setTraceId(e),La(e)&&(n[tt]=e)},getSpanId:function(){return n[nt]},setSpanId:function(e){t&&t.setSpanId(e),Va(e)&&(n[nt]=e)},getTraceFlags:function(){return n[rt]},setTraceFlags:function(e){t&&t.setTraceFlags(e),n[rt]=e}}),w},e.setTraceCtx=function(e){w=e||null},Pn(e,"addUnloadCb",function(){return y},"add")})}return e.__ieDyn=1,e}();function Vc(e,t,n,r){un(e,function(e){if(e&&e[t])if(n)setTimeout(function(){return r(e)},0);else try{r(e)}catch(e){}})}var Bc=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;j(e,this,function(e){e[ge]=function(t){e.listeners[se](t)},e[me]=function(t){for(var n=ln(e[Xe],t);n>-1;)e.listeners[Ie](n,1),n=ln(e[Xe],t)},e[pt]=function(t){Vc(e[Xe],pt,!0,function(e){e[pt](t)})},e[vt]=function(t,n){Vc(e[Xe],vt,!0,function(e){e[vt](t,n)})},e[ht]=function(t,n){Vc(e[Xe],ht,n,function(e){e[ht](t,n)})},e[gt]=function(t){t&&(!n&&t[Qe]()||Vc(e[Xe],gt,!1,function(e){t[Te]?setTimeout(function(){return e[gt](t)},0):e[gt](t)}))}})}return e.__ieDyn=1,e}(),Kc=function(e){function t(){var n=e.call(this)||this;return j(t,n,function(e,t){function n(t){var n=e[oe]();n&&n[vt]([t],2)}e[re]=function(e,n,r,i){t[re](e,n,r||new Zr(e),i||new Bc(e))},e.track=function(r){ps(e[bt](),function(){return"AppInsightsCore:track"},function(){null===r&&(n(r),Cn("Invalid telemetry item")),function(e){Ht(e[ie])&&(n(e),Cn("telemetry name required"))}(r),t.track(r)},function(){return{item:r}},!r.sync)}}),n}return te(t,e),t.__ieDyn=1,t}(Lc),zc="duration",qc="properties",Hc="requestUrl",Wc="inst",Gc="length",$c="traceID",Jc="spanID",Xc="traceFlags",Qc="context",Yc="aborted",Zc="traceId",ef="spanId",tf="core",nf="includeCorrelationHeaders",rf="canIncludeCorrelationHeader",of="getAbsoluteUrl",af="headers",sf="requestHeaders",uf="appId",lf="setRequestHeader",cf="trackDependencyDataInternal",ff="distributedTracingMode",df="startTime",pf="toLowerCase",vf="enableRequestHeaderTracking",hf="enableAjaxErrorStatusText",gf="enableAjaxPerfTracking",mf="maxAjaxCallsPerView",yf="enableResponseHeaderTracking",bf="excludeRequestFromAutoTrackingPatterns",wf="addRequestContext",xf="disableAjaxTracking",Sf="disableFetchTracking",If="status",kf="statusText",Ef="headerMap",Cf="openDone",Tf="sendDone",Pf="requestSentTime",Mf="abortDone",_f="getTraceId",Df="getTraceFlags",Af="method",Of="errorStatusText",Nf="stateChangeAttached",Rf="responseText",Ff="responseFinishedTime",jf="CreateTrackItem",Uf="response",Lf="getAllResponseHeaders",Vf="getPartAProps",Bf="getCorrelationContext",Kf="perfMark",zf="ajaxPerfLookupDelay",qf="name",Hf="perfTiming",Wf="ajaxDiagnosticsMessage",Gf="correlationContext",$f="ajaxTotalDuration",Jf="eventTraceCtx";function Xf(e,t,n){var r=0,i=e[t],o=e[n];return i&&o&&(r=rs(i,o)),r}function Qf(e,t,n,r,i){var o=0,a=Xf(n,r,i);return a&&(o=Yf(e,t,fr(a))),o}function Yf(e,t,n){var r="ajaxPerf",i=0;e&&t&&n&&((e[r]=e[r]||{})[t]=n,i=1);return i}var Zf=function(){var e=this;e[Cf]=!1,e.setRequestHeaderDone=!1,e[Tf]=!1,e[Mf]=!1,e[Nf]=!1},ed=function(){function e(t,n,r,i){var o,a=this,s=r;a[Kf]=null,a.completed=!1,a.requestHeadersSize=null,a[sf]=null,a.responseReceivingDuration=null,a.callbackDuration=null,a[$f]=null,a[Yc]=0,a.pageUrl=null,a[Hc]=null,a.requestSize=0,a[Af]=null,a[If]=null,a[Pf]=null,a.responseStartedTime=null,a[Ff]=null,a.callbackFinishedTime=null,a.endTime=null,a.xhrMonitoringState=new Zf,a.clientFailure=0,a[$c]=t,a[Jc]=n,a[Xc]=null==i?void 0:i.getTraceFlags(),a[Jf]=i?((o={})[Zc]=i[_f](),o[ef]=i.getSpanId(),o[Xc]=i[Df](),o):null,j(e,a,function(e){e.getAbsoluteUrl=function(){return e[Hc]?Ja(e[Hc]):null},e.getPathName=function(){return e[Hc]?Ni(s,Xa(e[Af],e[Hc])):null},e[jf]=function(t,n,r){var i;if(e.ajaxTotalDuration=Math.round(1e3*rs(e.requestSentTime,e.responseFinishedTime))/1e3,e[$f]<0)return null;var o=((i={id:"|"+e[$c]+"."+e[Jc],target:e[of]()})[qf]=e.getPathName(),i.type=t,i[df]=null,i.duration=e[$f],i.success=+e[If]>=200&&+e[If]<400,i.responseCode=+e[If],i.method=e[Af],i[qc]={HttpMethod:e[Af]},i),a=o[qc];if(e[Yc]&&(a[Yc]=!0),e[Pf]&&(o[df]=new Date,o[df].setTime(e[Pf])),function(e,t){var n=e[Hf],r=t[qc]||{},i=0,o="name",a="Start",s="End",u="domainLookup",l="connect",c="redirect",f="request",d="response",p="startTime",v=u+a,h=u+s,g=l+a,m=l+s,y=f+a,b=f+s,w=d+a,x=d+s,S=c+a,I=c=s,k="transferSize",E="encodedBodySize",C="decodedBodySize",T="serverTiming";if(n){i|=Qf(r,c,n,S,I),i|=Qf(r,u,n,v,h),i|=Qf(r,l,n,g,m),i|=Qf(r,f,n,y,b),i|=Qf(r,d,n,w,x),i|=Qf(r,"networkConnect",n,p,m),i|=Qf(r,"sentRequest",n,y,x);var P=n[zc];P||(P=Xf(n,p,x)||0),i|=Yf(r,zc,P),i|=Yf(r,"perfTotal",P);var M=n[T];if(M){var _={};un(M,function(e,t){var n=Xt(e[o]||""+t),r=_[n]||{};Qt(e,function(e,t){(e!==o&&nn(t)||rn(t))&&(r[e]&&(t=r[e]+";"+t),!t&&nn(t)||(r[e]=t))}),_[n]=r}),i|=Yf(r,T,_)}i|=Yf(r,k,n[k]),i|=Yf(r,E,n[E]),i|=Yf(r,C,n[C])}else e[Kf]&&(i|=Yf(r,"missing",e.perfAttempts));i&&(t[qc]=r)}(e,o),n&&hn(e.requestHeaders)[Gc]>0&&(a[sf]=e[sf]),r){var s=r();if(s){var u=s[Gf];if(u&&(o.correlationContext=u),s[Ef]&&hn(s.headerMap)[Gc]>0&&(a.responseHeaders=s[Ef]),e[Of])if(e[If]>=400){var l=s.type;""!==l&&"text"!==l||(a.responseText=s.responseText?s[kf]+" - "+s.responseText:s[kf]),"json"===l&&(a.responseText=s.response?s[kf]+" - "+JSON.stringify(s[Uf]):s[kf])}else 0===e[If]&&(a.responseText=s[kf]||"")}}return o},e[Vf]=function(){var t,n=null,r=e[Jf];if(r&&(r[Zc]||r[ef])){var i=(n={})[tl.TraceExt]=((t={})[$c]=r[Zc],t.parentID=r[ef],t);Ht(r[Xc])||(i[Xc]=r[Xc])}return n}})}return e.__ieDyn=1,e}(),td="ai.ajxmn.",nd="diagLog",rd="ajaxData",id="fetch",od="Failed to monitor XMLHttpRequest",ad=", monitoring data for this ajax call ",sd=ad+"may be incorrect.",ud=ad+"won't be sent.",ld="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",cd="Failed to add custom defined request context as configured call back may missing a null check.",fd="Failed to calculate the duration of the ",dd=0;function pd(e){var t="";try{e&&e[rd]&&e[rd][Hc]&&(t+="(url: '"+e[rd][Hc]+"')")}catch(e){}return t}function vd(e,t,n,r,i){ti(e[nd](),1,t,n,r,i)}function hd(e,t,n,r,i){ti(e[nd](),2,t,n,r,i)}function gd(e,t,n){return function(r){vd(e,t,n,{ajaxDiagnosticsMessage:pd(r[Wc]),exception:Ur(r.err)})}}function md(e,t){return e&&t?e.indexOf(t):-1}function yd(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){un(e,function(t,n){if(t.id===r.id)return e.splice(n,1),-1})}}}function bd(e,t,n,r){var i=!0;
2return un(t,function(t,o){try{!1===t.fn.call(null,n)&&(i=!1)}catch(t){ti(e&&e.logger,1,64,"Dependency "+r+" [#"+o+"] failed: "+xn(t),{exception:Ur(t)},!0)}}),i}var wd="*.blob.core.",xd=yn([wd+"windows.net",wd+"chinacloudapi.cn",wd+"cloudapi.de",wd+"usgovcloudapi.net"]),Sd=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function Id(){var e;return(e={})[mf]=500,e[xf]=!1,e[Sf]=!1,e[bf]=void 0,e.disableCorrelationHeaders=!1,e.distributedTracingMode=1,e.correlationHeaderExcludedDomains=xd,e.correlationHeaderDomains=void 0,e.correlationHeaderExcludePatterns=void 0,e[uf]=void 0,e.enableCorsCorrelation=!1,e[vf]=!1,e[yf]=!1,e[hf]=!1,e[gf]=!1,e.maxAjaxPerfLookupAttempts=3,e[zf]=25,e.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],e[wf]=void 0,e.addIntEndpoints=!0,e}function kd(){var e=Id();return Qt(e,function(t){e[t]=void 0}),e}var Ed=function(e){function t(){var n,r,i,o,a,s,u,l,c,f,d,p,v,h,g,m,y,b,w,x,S,I,k,E=e.call(this)||this;return E.identifier=t.identifier,E.priority=120,j(t,E,function(e,E){var C=E._addHook;function T(){var e=Ar();n=!1,r=!1,i=e&&e.host&&e.host[pf](),o=t.getEmptyConfig(),a=!1,s=!1,u=0,l=null,c=!1,f=!1,d=null,p=!1,v=0,h=!1,g={},m=!1,y=!1,b=null,w=null,x=null,S=0,I=[],k=[]}function P(e){var t=!0;return(e||o.ignoreHeaders)&&un(o.ignoreHeaders,function(n){if(n[pf]()===e[pf]())return t=!1,-1}),t}function M(e,t,n){C(function(e,t,n){return e?Os(e[B],t,n,!1):null}(e,t,n))}function _(e,t,n){var r=!1,i=((nn(t)?t:(t||{}).url||"")||"")[pf]();if(un(b,function(e){var t=e;nn(e)&&(t=new RegExp(e)),r||(r=t.test(i))}),r)return r;var o=md(i,"?"),a=md(i,"#");return(-1===o||-1!==a&&a<o)&&(o=a),-1!==o&&(i=i.substring(0,o)),Ht(e)?Ht(t)||(r="object"==typeof t&&!0===t[Ii]||!!n&&!0===n[Ii
2]):r=!0===e[Ii]||!0===i[Ii],!r&&i&&es(i)&&(r=!0),r?g[i]||(g[i]=1):g[i]&&(r=!0),r}function D(e,t){var n=!0,i=r;return Ht(e)||(n=!0===t||!Ht(e[rd])),i&&n}function A(){var t=null;return e[tf]&&e[tf].getTraceCtx&&(t=e[tf].getTraceCtx(!1)),!t&&l&&l.telemetryTrace&&(t=is(l.telemetryTrace)),t}function O(e,t){if(t[Hc]&&d&&p){var n=Or();if(n&&Jt(n.mark)){dd++;var r=d+e+"#"+dd;n.mark(r);var i=n.getEntriesByName(r);i&&1===i[Gc]&&(t[Kf]=i[0])}}}function N(e,t,n,r){var i=t[Kf],a=Or(),s=o.maxAjaxPerfLookupAttempts,u=o[zf],l=t[Hc],c=0;!function o(){try{if(a&&i){c++;for(var f=null,d=a.getEntries(),p=d[Gc]-1;p>=0;p--){var v=d[p];if(v){if("resource"===v.entryType)v.initiatorType!==e||-1===md(v[qf],l)&&-1===md(l,v[qf])||(f=v);else if("mark"===v.entryType&&v[qf]===i[qf]){t[Hf]=f;break}if(v[df]<i[df]-1e3)break}}}!i||t[Hf]||c>=s||!1===t.async?(i&&Jt(a.clearMarks)&&a.clearMarks(i[qf]),t.perfAttempts=c,n()):setTimeout(o,u)}catch(e){r(e)}}()}function R(t){var n="";try{Ht(t)||(n+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(t){vd(e,15,"Failed to grab failed fetch diagnostics message",{exception:Ur(t)})}return n}function F(t,n,r,i,o,s,u){function l(t,n,i){var o=i||{};o.fetchDiagnosticsMessage=R(r),n&&(o.exception=Ur(n)),hd(e,t,fd+"fetch call"+ud,o)}o&&(o[Ff]=ns(),o[If]=n,N(id,o,function(){var t,u=o[jf]("Fetch",a,s);try{w&&(t=w({status:n,request:r,response:i}))}catch(t){hd(e,104,cd)}if(u){void 0!==t&&(u[qc]=Z(Z({},u.properties),t));var c=o[Vf]();j(k,e[tf],o,u,null,c)}else l(14,null,{requestSentTime:o[Pf],responseFinishedTime:o[Ff]})},function(e){l(18,e,null)}))}function j(t,n,r,i,o,a){var s,u=!0;t[Gc]>0&&(u=bd(n,t,((s={item:i}
2)[qc]=o,s.sysProperties=a,s.context=r?r[Qc]:null,s.aborted=!!r&&!!r[Yc],s),"initializer"));u&&e[cf](i,o,a)}T(),e.initialize=function(i,u,g,S){var I;e.isInitialized()||(E.initialize(i,u,g,S),x=Sa(ea("ajax"),u&&u.evtNamespace&&u.evtNamespace()),function(n){var r=Is(null,n,e[tf]);o=kd(),Qt(Id(),function(e,n){o[e]=r.getConfig(t.identifier,e,n)});var i=o[ff];if(a=o[vf],s=o[hf],p=o[gf],v=o[mf],h=o[yf],b=[].concat(o[bf]||[],!1!==o.addIntEndpoints?Sd:[]),w=o[wf],f=0===i||1===i,c=1===i||2===i,p){var u=n.instrumentationKey||"unkwn";d=u[Gc]>5?td+u.substring(u[Gc]-5)+".":td+u+"."}m=!!o[xf],y=!!o[Sf]}(i),!function(e){var t=!1;if(Kr()){var n=XMLHttpRequest[B];t=!(Ht(n)||Ht(n.open)||Ht(n.send)||Ht(n.abort))}var r=jr();if(r&&r<9&&(t=!1),t)try{(new XMLHttpRequest)[rd]={};var i=XMLHttpRequest[B].open;XMLHttpRequest[B].open=i}catch(n){t=!1,vd(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Ur(n)})}return t}(e)||m||r||(M(XMLHttpRequest,"open",{ns:x,req:function(t,n,r,i){if(!m){var o=t[Wc],u=o[rd];!_(o,r)&&D(o,!0)&&(u&&u.xhrMonitoringState[Cf]||function(t,n,r,i){var o,a=A(),u=a&&a[_f]()||_a(),l=_a().substr(0,16),c=new ed(u,l,e[nd](),null===(o=e.core)||void 0===o?void 0:o.getTraceCtx());c[Xc]=a&&a[Df](),c[Af]=n,c[Hc]=r,c.xhrMonitoringState[Cf]=!0,c[sf]={},c.async=i,c[Of]=s,t[rd]=c}(o,n,r,i),function(t){t[rd].xhrMonitoringState[Nf]=Ia(t,"readystatechange",function(){var n;try{t&&4===t.readyState&&D(t)&&function(t){var n=t[rd];function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=pd(t),n&&(i.exception=Ur(n)),hd(e,14,fd+"ajax call"+ud,i)}n[Ff]=ns(),n[If]=t[If],N("xmlhttprequest",n,function(){try{var i=n[jf]("Ajax",a,function(){var n,r=((n={statusText:t[kf]})[Ef]=null,n[Gf]=function(t){var n;try{var r=t[Lf]();if(null!==r&&-1!==md(r[pf](),qa[8])){var i=t.getResponseHeader(qa[0]);return ts[Bf](i)}}catch(r){hd(e,18,ld,((n={})[Wf]=pd(t),n.exception=Ur(r),n))}}(t),n.type=t.responseType,n[Rf]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[Rf]}catch(e){}return null}(t),n.response=t[Uf],n);if(h){var i=t[Lf]();if(i){var o=dn(i).split(/[\r\n]+/),a={};un(o,function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");P(n)&&(a[n]=r)}),r[Ef]=a}}return r}),o=void 0;try{w&&(o=w({status:t[If],xhr:t}))}catch(t){hd(e,104,cd)}if(i){void 0!==o&&(i[qc]=Z(Z({},i.properties),o));var s=n[Vf]();j(k,e[tf],n,i,null,s)}else r(null,{requestSentTime:n[Pf],responseFinishedTime:n[Ff]})}finally{try{t[rd]=null}catch(e){}}},function(e){r(e,null)})}(t)}catch(i){var r=Ur(i);r&&-1!==md(r[pf](),"c00c023f")||vd(e,16,od+" 'readystatechange' event handler"+sd,((n={})[Wf]=pd(t),n.exception=r,n))}},x)}(o))}},hkErr:gd(e,15,od+".open"+sd)}),M(XMLHttpRequest,"send",{ns:x,req:function(t,n){if(!m){var r=t[Wc],i=r[rd];D(r)&&!i.xhrMonitoringState[Tf]&&(O("xhr",i),i[Pf]=ns(),e[nf](i,void 0,void 0,r),i.xhrMonitoringState[Tf]=!0)}},hkErr:gd(e,17,od+sd)}),M(XMLHttpRequest,"abort",{ns:x,req:function(e){if(!m){var t=e[Wc],n=t[rd];D(t)&&!n.xhrMonitoringState[Mf]&&(n[Yc]=1,n.xhrMonitoringState[Mf]=!0)}},hkErr:gd(e,13,od+".abort"+sd)}),M(XMLHttpRequest,"setRequestHeader",{ns:x,req:function(e,t,n){if(!m&&a){var r=e[Wc];D(r)&&P(t)&&(r[rd][sf][t]=n)}},hkErr:gd(e,71,od+".setRequestHeader"+sd)}),r=!0),function(){var t=(i=X(),!i||Ht(i.Request)||Ht(i.Request[B])||Ht(i[id])?null:i[id]);var i;if(!t)return;var o=X(),u=t.polyfill;y||n?u&&C(Os(o,id,{ns:x,req:function(e,t,n){_(null,t,n)}})):(C(Os(o,id,{ns:x,req:function(t,i,o){var l;if(!y&&n&&!_(null,i,o)&&(!u||!r)){var c=t.ctx();l=function(t,n){var r,i=A(),o=i&&i[_f]()||_a(),u=_a().substr(0,16),l=new ed(o,u,e[nd](),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());l[Xc]=i&&i[Df](),l[Pf]=ns(),l[Of]=s,t instanceof Request?l[Hc]=t?t.url:"":l[Hc]=t;var c="GET";n&&n[Af]?c=n[Af]:t&&t instanceof Request&&(c=t[Af]);l[Af]=c;var f={};if(a){new Headers((n?n[af]:0)||t instanceof Request&&t[af]||{}).forEach(function(e,t){P(t)&&(f[t]=e)})}return l[sf]=f,O(id,l),l}(i,o);var f=e[nf](l,i,o);f!==o&&t.set(1,f),c.data=l}},rsp:function(t,n){if(!y){var r=t.ctx().data;r&&(t.rslt=t.rslt.then(function(i){return F(t,(i||{})[If],n,i,r,function(){var t,n=((t={statusText:(i||{})[kf]})[Ef]=null,t[Gf]=function(t){if(t&&t[af])try{var n=t[af].get(qa[0]);return ts[Bf](n)}catch(n){hd(e,18,ld,{fetchDiagnosticsMessage:R(t),exception:Ur(n)})}}(i),t);
2if(h&&i){var r={};i.headers.forEach(function(e,t){P(t)&&(r[t]=e)}),n[Ef]=r}return n}),i}).catch(function(e){throw F(t,0,n,null,r,null,{error:e.message||Ur(e)}),e}))}},hkErr:gd(e,15,"Failed to monitor Window.fetch"+sd)})),n=!0);u&&(o[id].polyfill=u)}(),(I=e[tf].getPlugin(wi))&&(l=I.plugin[Qc]))},e._doTeardown=function(){T()},e.trackDependencyData=function(t,n){j(k,e[tf],null,t,n)},e[nf]=function(t,n,r,s){var u=e._currentWindowHost||i;if(function(e,t,n,r,i,o){var a;if(e[Gc]>0){var s=((a={})[tf]=t,a.xhr=r,a.input=i,a.init=o,a.traceId=n[$c],a.spanId=n[Jc],a.traceFlags=n[Xc],a.context=n[Qc]||{},a.aborted=!!n[Yc],a);bd(t,e,s,"listener"),n[$c]=s[Zc],n[Jc]=s[ef],n[Xc]=s[Xc],n[Qc]=s[Qc]}}(I,e[tf],t,s,n,r),n){if(ts[rf](o,t[of](),u)){r||(r={});var d=new Headers(r[af]||n instanceof Request&&n[af]||{});if(f){var p="|"+t[$c]+"."+t[Jc];d.set(qa[3],p),a&&(t[sf][qa[3]]=p)}if((h=o[uf]||l&&l[uf]())&&(d.set(qa[0],qa[2]+h),a&&(t[sf][qa[0]]=qa[2]+h)),c){Ht(g=t[Xc])&&(g=1);var v=Ba(Ua(t[$c],t[Jc],g));d.set(qa[4],v),a&&(t[sf][qa[4]]=v)}r[af]=d}return r}if(s){if(ts[rf](o,t[of](),u)){if(f){p="|"+t[$c]+"."+t[Jc];s[lf](qa[3],p),a&&(t[sf][qa[3]]=p)}var h;if((h=o[uf]||l&&l[uf]())&&(s[lf](qa[0],qa[2]+h),a&&(t[sf][qa[0]]=qa[2]+h)),c){var g;Ht(g=t[Xc])&&(g=1);v=Ba(Ua(t[$c],t[Jc],g));s[lf](qa[4],v),a&&(t[sf][qa[4]]=v)}}return s}},e[cf]=function(t,n,r){if(-1===v||u<v){2!==o[ff]&&1!==o[ff]||"string"!=typeof t.id||"."===t.id[t.id[Gc]-1]||(t.id+="."),Ht(t[df])&&(t[df]=new Date);var i=Ki(t,os.dataType,os.envelopeType,e[nd](),n,r);e[tf].track(i)}else u===v&&vd(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++u},e.addDependencyListener=function(e){return yd(I,S++,e)},e.addDependencyInitializer=function(e){return yd(k,S++,e)}}),E}return te(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=Id,t.getEmptyConfig=kd,t}(js),Cd=function(){},Td=function(){this.id="browser",this.deviceClass="Browser"},Pd="sessionManager",Md="update",_d="isUserCookieSet",Dd="isNewUser",Ad="getTraceCtx",Od="telemetryTrace",Nd="applySessionContext",Rd="applyApplicationContext",Fd="applyDeviceContext",jd="applyOperationContext",Ud="applyUserContext",Ld="applyOperatingSystemContxt",Vd="applyLocationContext",Bd="applyInternalContext",Kd="accountId",zd="sdkExtension",qd="getSessionId",Hd="namePrefix",Wd="sessionCookiePostfix",Gd="userCookiePostfix",$d="idLength",Jd="getNewId",Xd="length",Qd="automaticSession",Yd="authenticatedId",Zd="sessionExpirationMs",ep="sessionRenewalMs",tp="config",np="acquisitionDate",rp="renewalDate",ip="cookieDomain",op="join",ap="cookieSeparator",sp="authUserCookieName",up=function(e){this.sdkVersion=(e[zd]&&e[zd]()?e[zd]()+"_":"")+"javascript:2.8.10"},lp=function(){},cp=function(){},fp=function(){function e(t,n){var r,i,o=Yr(n),a=Mo(n);j(e,this,function(n){t||(t={}),Jt(t[Zd])||(t[Zd]=function(){return e.acquisitionSpan}),Jt(t[ep])||(t[ep]=function(){return e.renewalSpan}),n[tp]=t;var s=n.config[Wd]&&n[tp][Wd]()?n.config[Wd]():n.config[Hd]&&n[tp][Hd]()?n[tp][Hd]():"";function u(e,t){var n=!1,r=", session will be reset",i=t.split("|");if(i[Xd]>=2)try{var a=+i[1]||0,s=+i[2]||0;isNaN(a)||a<=0?ti(o,2,27,"AI session acquisition date is 0"+r):isNaN(s)||s<=0?ti(o,2,27,"AI session renewal date is 0"+r):i[0]&&(e.id=i[0],e[np]=a,e[rp]=s,n=!0)}catch(e){ti(o,1,9,"Error parsing ai_session value ["+(t||"")+"]"+r+" - "+xn(e),{exception:Ur(e)})}return n}function l(e,t){var o=e[np];e[rp]=t;var s=n[tp],u=s[ep](),l=o+s[Zd]()-t,c=[e.id,o,t],f=0;f=l<u?l/1e3:u/1e3;var d=s[ip]?s[ip]():null;a.set(r(),c.join("|"),s[Zd]()>0?f:null,d),i=t}r=function(){return"ai_session"+s},n[Qd]=new cp,n[Md]=function(){var t=wn(),s=!1,c=n[Qd];c.id||(s=!function(e){var t=!1,n=a.get(r());if(n&&Jt(n.split))t=u(e,n);else{var i=di(o,r());i&&(t=u(e,i))}return t||!!e.id}(c));var f=n.config[Zd]();if(!s&&f>0){var d=n.config[ep](),p=t-c[np],v=t-c[rp];s=(s=(s=p<0||v<0)||p>f)||v>d}s?function(e){var t=n[tp]||{},r=(t[Jd]?t[Jd]():null)||Go;n.automaticSession.id=r(t[$d]?t[$d]():22),n[Qd][np]=e,l(n[Qd],e),fi()||ti(o,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(t):(!i||t-i>e.cookieUpdateInterval)&&l(c,t)},n.backup=function(){var e,t,i,a=n[Qd];e=a.id,t=a[np],i=a[rp],pi(o,r(),[e,t,i][op]("|"))}})}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),dp=function(e,t,n,r){var i=this;i.traceID=e||_a(),i.parentID=t;var o=Ar();!n&&o&&o.pathname&&(n=o.pathname),i.name=Oi(r,n)};function pp(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var vp=function(){function e(t,n){this.isNewUser=!1,this.isUserCookieSet=!1;var r,i=Yr(n),o=Mo(n);j(e,this,function(n){n[tp]=t;var a=n.config[Gd]&&n[tp][Gd]()?n[tp][Gd]():"";r=function(){return e.userCookieName+a};var s=o.get(r());if(s){n[Dd]=!1;var u=s.split(e[ap]);u[Xd]>0&&(n.id=u[0],n[_d]=!!n.id)}function l(){var e=t||{};return((e[Jd]?e[Jd]():null)||Go)(e[$d]?t[$d]():22)}function c(e){var t=sn(new Date);return n.accountAcquisitionDate=t,n[Dd]=!0,[e,t]}function f(e){n[_d]=o.set(r(),e,31536e3)}if(!n.id){n.id=l(),f(c(n.id)[op](e[ap]));var d=t[Hd]&&t[Hd]()?t[Hd]()+"ai_session":"ai_session";vi(i,d)}n[Kd]=t[Kd]?t[Kd]():void 0;var p=o.get(e[sp]);if(p){var v=(p=decodeURI(p)).split(e[ap]);v[0]&&(n[Yd]=v[0]),v[Xd]>1&&v[1]&&(n[Kd]=v[1])}n.setAuthenticatedUserContext=function(t,r,a){if(void 0===a&&(a=!1),!pp(t)||r&&!pp(r))ti(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{n[Yd]=t;var s=n[Yd];r&&(n[Kd]=r,s=[n[Yd],n.accountId][op](e[ap])),a&&o.set(e[sp],encodeURI(s))}},n.clearAuthenticatedUserContext=function(){n[Yd]=null,n[Kd]=null,o.del(e[sp])},n[Md]=function(t){n.id===t&&n[_d]||f(c(t||l())[op](e[ap]))}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}
2(),hp="ext",gp="tags";function mp(e,t){e&&e[t]&&0===hn(e[t])[Xd]&&delete e[t]}var yp=function(){function e(t,n,r){var i=this,o=t.logger;this.appId=function(){return null},this[qd]=function(){return null},j(e,this,function(e){if(e.application=new Cd,e.internal=new up(n),Er()){e[Pd]=new fp(n,t),e.device=new Td,e.location=new lp,e.user=new vp(n,t);var a,s=void 0,u=void 0;r&&(s=r.getTraceId(),u=r.getSpanId(),a=r.getName()),e[Od]=new dp(s,u,a,o),e.session=new cp}e[qd]=function(){var t=e.session,n=null;if(t&&nn(t.id))n=t.id;else{var r=(e[Pd]||{})[Qd];n=r&&nn(r.id)?r.id:null}return n},e[Nd]=function(t,n){Sn(In(t.ext,tl.AppExt),"sesId",e[qd](),nn)},e[Ld]=function(t,n){Sn(t.ext,tl.OSExt,e.os)},e[Rd]=function(t,n){var r=e.application;if(r){var i=In(t,gp);Sn(i,nl.applicationVersion,r.ver,nn),Sn(i,nl.applicationBuild,r.build,nn)}},e[Fd]=function(t,n){var r=e.device;if(r){var i=In(In(t,hp),tl.DeviceExt);Sn(i,"localId",r.id,nn),Sn(i,"ip",r.ip,nn),Sn(i,"model",r.model,nn),Sn(i,"deviceClass",r.deviceClass,nn)}},e[Bd]=function(t,n){var r=e.internal;if(r){var i=In(t,gp);Sn(i,nl.internalAgentVersion,r.agentVersion,nn),Sn(i,nl.internalSdkVersion,r.sdkVersion,nn),t.baseType!==Qr.dataType&&t.baseType!==Gi.dataType||(Sn(i,nl.internalSnippet,r.snippetVer,nn),Sn(i,nl.internalSdkSrc,r.sdkSrc,nn))}},e[Vd]=function(e,t){var n=i.location;n&&Sn(In(e,gp,[]),nl.locationIp,n.ip,nn)},e[jd]=function(t,n){var r=e[Od];if(r){var i=In(In(t,hp),tl.TraceExt,{traceID:void 0,parentID:void 0});Sn(i,"traceID",r.traceID,nn,Ht),Sn(i,"name",r.name,nn,Ht),Sn(i,"parentID",r.parentID,nn,Ht)}},e.applyWebContext=function(e,t){var n=i.web;n&&Sn(In(e,hp),tl.WebExt,n)},e[Ud]=function(t,n){var r=e.user;if(r){Sn(In(t,gp,[]),nl.userAccountId,r[Kd],nn);var i=In(In(t,hp),tl.UserExt);Sn(i,"id",r.id,nn),Sn(i,"authId",r[Yd],nn)}},e.cleanUp=function(e,t){var n=e.ext;n&&(mp(n,tl.DeviceExt),mp(n,tl.UserExt),mp(n,tl.WebExt),mp(n,tl.OSExt),mp(n,tl.AppExt),mp(n,tl.TraceExt))}})}return e.__ieDyn=1,e}(),bp=function(e){function t(){var n,r,i,o=e.call(this)||this;return o.priority=110,o.identifier=wi,j(t,o,function(e,o){function a(){n=null,r=null,i=null}a(),e.initialize=function(a,s,u,l){o.initialize(a,s,u,l),function(o){var a=e.identifier,s=e.core,u=Is(null,o,s),l=t.getDefaultConfig();n=n||{},Qt(l,function(e,t){n[e]=function(){return u.getConfig(a,e,t())}}),i=s[Ad](!1),e.context=new yp(s,n,i),r=is(e.context[Od],i),s.setTraceCtx(r),e.context.appId=function(){var e=s.getPlugin(xi);return e?e.plugin._appId:null},e._extConfig=n}(a)},e.processTelemetry=function(t,n){if(Ht(t));else{n=e._getTelCtx(n),t.name===Gi.envelopeType&&n.diagLog().resetInternalMessageCount();var r=e.context||{};r.session&&"string"!=typeof e.context.session.id&&r[Pd]&&r[Pd][Md]();var i=r.user;if(i&&!i[_d]&&i[Md](r.user.id),function(t,n){In(t,"tags",[]),In(t,"ext",{});var r=e.context;r[Nd](t,n),r[Rd](t,n),r[Fd](t,n),r[jd](t,n),r[Ud](t,n),r[Ld](t,n),r.applyWebContext(t,n),r[Vd](t,n),r[Bd](t,n),r.cleanUp(t,n)}(t,n),i&&i[Dd]){i[Dd]=!1;var o=new Qr(72,(_r()||{}).userAgent||"");!function(e,t,n){ei(e)[He](t,n)}(n.diagLog(),1,o)}e.processNext(t,n)}},e._doTeardown=function(e,t){var n=(e||{}).core();n&&n[Ad]&&(n[Ad](!1)===r&&n.setTraceCtx(i));a()}}),o}return te(t,e),t.getDefaultConfig=function(){var e,t,n=null;return(e={instrumentationKey:function(){return t}})[Kd]=function(){return n},e.sessionRenewalMs=function(){return 18e5},e.samplingPercentage=function(){return 100},e.sessionExpirationMs=function(){return 864e5},e[ip]=function(){return n},e[zd]=function(){return n},e.isBrowserLinkTrackingEnabled=function(){return!1},e.appId=function(){return n},e[qd]=function(){return n},e[Hd]=function(){return t},e[Wd]=function(){return t},e[Gd]=function(){return t},e[$d]=function(){return 22},e[Jd]=function(){return n},e},t}(js);const wp=bp;var xp,Sp="AuthenticatedUserContext",Ip="track",kp="snippet",Ep="flush",Cp="addTelemetryInitializer",Tp="pollInternalLogs",Pp="getPlugin",Mp="evtNamespace",_p=Ip+"Event",Dp=Ip+"Trace",Ap=Ip+"Metric",Op=Ip+"PageView",Np=Ip+"Exception",Rp=Ip+"DependencyData",Fp="set"+Sp,jp="clear"+Sp,Up="endpointUrl",Lp="diagnosticLogInterval",Vp="config",Bp="context",Kp="push",zp="version",qp="queue",Hp="connectionString",Wp="instrumentationKey",Gp="appInsights",$p="disableIkeyDeprecationMessage",Jp="getTransmissionControls",Xp="onunloadFlush",Qp="addHousekeepingBeforeUnload",Yp="indexOf",Zp=[kp,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],ev=function(){function e(t){var n,r,i,o,a,s,u,l=this;j(e,this,function(e){a=ea("AISKU"),s=null,n=null,r=null,i=null,o=null,o=""+(t.sv||t[zp]||""),t[qp]=t[qp]||[],t[zp]=t[zp]||2;var c=t[Vp]||{};
2if(c[Hp]){var f=Mc(c[Hp]),d=f.ingestionendpoint;c[Up]=d?d+Pi:c[Up],c[Wp]=f.instrumentationkey||c[Wp]}e[Gp]=new zu,r=new wp,n=new Ed,i=new Pc,u=new Kc,e.core=u;var p=!!Ht(c[$p])||c[$p];c[Hp]||p||ti(u.logger,1,106,"Instrumentation key support will end soon, see aka.ms/IkeyMigrate"),e[kp]=t,e[Vp]=c,e.config[Lp]=e.config[Lp]&&e[Vp][Lp]>0?e[Vp][Lp]:1e4,e[Ep]=function(e){void 0===e&&(e=!0),ps(u,function(){return"AISKU.flush"},function(){un(u[Jp](),function(t){un(t,function(t){t[Ep](e)})})},null,e)},e[Xp]=function(e){void 0===e&&(e=!0),un(u[Jp](),function(t){un(t,function(t){t[Xp]?t[Xp]():t[Ep](e)})})},e.loadAppInsights=function(t,a,s){return void 0===t&&(t=!1),t&&e[Vp].extensions&&e[Vp].extensions.length>0&&Cn("Extensions not allowed in legacy mode"),ps(e.core,function(){return"AISKU.loadAppInsights"},function(){var c=[];c[Kp](i),c[Kp](r),c[Kp](n),c[Kp](e[Gp]),u.initialize(e[Vp],c,a,s),e[Bp]=r[Bp],xp&&e[Bp]&&(e[Bp].internal.sdkSrc=xp),function(n){if(n){var r="";Ht(o)||(r+=o),t&&(r+=".lg"),e[Bp]&&e[Bp].internal&&(e[Bp].internal.snippetVer=r||"-"),Qt(e,function(e,t){nn(e)&&!Jt(t)&&e&&"_"!==e[0]&&-1===ln(Zp,e)&&(n[e]=t)})}}(e[kp]),e.emptyQueue(),e[Tp](),e[Qp](l)}),e},e.updateSnippetDefinitions=function(t){!function(e,t,n){if(e&&t&&$t(e)&&$t(t)){var r=function(r){if(nn(r)){var i=t[r];Jt(i)?n&&!n(r,!0,t,e)||(e[r]=Tn(t,r)):n&&!n(r,!1,t,e)||(Gt(e,r)&&delete e[r],gn(e,r,function(){return t[r]},function(e){t[r]=e})||(e[r]=i))}};for(var i in t)r(i)}}(t,e,function(e){return e&&-1===ln(Zp,e)})},e.emptyQueue=function(){try{if(en(e.snippet[qp])){for(var t=e.snippet[qp].length,n=0;n<t;n++){(0,e.snippet[qp][n])()}e.snippet[qp]=void 0,delete e.snippet[qp]}}catch(e){e&&Jt(e.toString)&&e.toString()}},e[Qp]=function(e){if(Er()||Tr()){var t=function(){if(e[Xp](!1),Jt(l.core[Pp])){var t=l.core[Pp](wi);if(t){var n=t.plugin;n&&n[Bp]&&n[Bp]._sessionManager&&n[Bp]._sessionManager.backup()}}},n=!1,r=e.appInsights[Vp].disablePageUnloadEvents;s||(s=Sa(a,u[Mp]&&u[Mp]())),e.appInsights.config.disableFlushOnBeforeUnload||(Pa(t,r,s)&&(n=!0),Ma(t,r,s)&&(n=!0),n||(i=_r())&&i.product&&"ReactNative"===i.product||ti(e[Gp].core.logger,1,19,"Could not add handler for beforeunload and pagehide")),n||e.appInsights.config.disableFlushOnUnload||Ma(t,r,s)}var i},e.getSender=function(){return i},e.unload=function(t,n,r){e[Xp](t),s&&(Ta([ca,la,ua],null,s),function(e,t){var n=Sa(fa,t);Ta([ua],e,n),Ta([sa],null,n)}(null,s)),u.unload&&u.unload(t,n,r)},Mn(e,e[Gp],["getCookieMgr",_p,Op,"trackPageViewPerformance",Np,"_onerror",Dp,Ap,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),Mn(e,function(){return n},[Rp,"addDependencyListener","addDependencyInitializer"]),Mn(e,u,[Cp,Tp,"stopPollingInternalLogs",Pp,"addPlugin",Mp,"addUnloadCb","getTraceCtx"]),Mn(e,function(){var e=r[Bp];return e?e.user:null},[Fp,jp])})}return e.prototype.addDependencyInitializer=function(e){return null},e}();!function(){var e=null,t=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;n&&(e=n.src)}catch(e){}if(e)try{var r=e.toLowerCase();if(r)for(var i="",o=0;o<t.length;o++)if(-1!==r[Yp](t[o])){i="cdn"+(o+1),-1===r[Yp]("/scripts/")&&(-1!==r[Yp]("/next/")?i+="-next":-1!==r[Yp]("/beta/")&&(i+="-beta")),xp=i+"";break}}catch(e){}}()},51449(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(91576);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},54826(e){(function(){var t,n,r,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},n=process.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},56182(e,t,n){for(var r=n(54826),i="undefined"==typeof window?global:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],u=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!u){var c=0,f=0,d=[],p=1e3/60;s=function(e){if(0===d.length){var t=r(),n=Math.max(0,p-(t-c));c=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58486(e,t,n){"use strict";var r=n(84271),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(v){var i=p(n);i&&i!==v&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),h=u(n),g=0;g<a.length;++g){var m=a[g];if(!(o[m]||r&&r[m]||h&&h[m]||s&&s[m])){var y=d(n,m);try{l(t,m,y)}catch(e){}}}}return t}},62688(e,t,n){e.exports=n(40362)()},68102(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})}
2,72367(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},74237(e){!function(t,n){e.exports=n()}(self,()=>(()=>{"use strict";var e={807(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiEvent=t.AppearMethod=void 0,function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="exitIntent",e.scroll="onScroll"}(n||(t.AppearMethod=n={})),function(e){e.questionAnswered="question_answered",e.surveyDisplayed="survey_displayed",e.surveyCompleted="survey_completed",e.surveyClosed="survey_closed"}(r||(t.ApiEvent=r={}))},870(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.Survicate=void 0,t.Survicate=class{constructor(e){this.initialized=this.initScript(e).catch(e=>{})}initScript(e){return new Promise((t,n)=>{window.addEventListener("SurvicateReady",()=>{t()});try{this.loadScript(e,n)}catch(e){n(e)}})}loadScript({workspaceKey:e,traits:t,responseTraits:n,disableTargeting:r,nonce:i,disableSensitiveDataPersistence:o,forcedLanguage:a,themeMode:s,hiddenSurveys:u},l){var c,f;if(!document.head)return void l(new Error("Unable to append the Survicate script because the document head is not available"));window._sva=null!==(c=window._sva)&&void 0!==c?c:{},window._svx=null!==(f=window._svx)&&void 0!==f?f:{},window._svx.installation="survicateWrapper",t&&(window._sva.traits=t),n&&(window._sva.responseTraits=n),u&&(window._sva.hiddenSurveys=u),r&&(window._sva.disableTargeting=!0),o&&(window._sva.disableSensitiveDataPersistence=!0),a&&(window._sva.forcedLanguage=a),s&&(window._sva.themeMode=s);const d=document.createElement("script");i&&(window._sva.nonce=i,d.setAttribute("nonce",i)),d.type="text/javascript",d.defer=!0,d.src=`https://survey.survicate.com/workspaces/${e}/web_surveys.js`,document.head.appendChild(d)}ready(){return n(this,void 0,void 0,function*(){return this.initialized})}showSurvey(e,t){return window._sva.showSurvey(e,t)}retarget(){window._sva.retarget()}getVisitorId(){return window._sva.getVisitorId()}setResponseTraits(e){window._sva.setResponseTraits(e)}getResponseUuid(e,t){return window._sva.getResponseUuid(e,t)}setVisitorTraits(e){window._sva.setVisitorTraits(e)}setSurveyLanguage(e){window._sva.setSurveyLanguage(e)}setThemeMode(e){window._sva.setThemeMode(e)}destroyVisitor(e){window._sva.destroyVisitor(e)}addEventListener(e,t){return window._sva.addEventListener(e,t)}removeEventListener(e){window._sva.removeEventListener(e)}invokeEvent(e,t){window._sva.invokeEvent(e,t)}submitAnswer(e,t){window._sva.submitAnswer(e,t)}getSurveyPointsMetadata(e){return window._sva.getSurveyPointsMetadata(e)}}},734(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AppearMethod=t.ApiEvent=t.getSurvicateInstance=t.initSurvicate=void 0;const i=n(807);Object.defineProperty(t,"ApiEvent",{enumerable:!0,get:function(){return i.ApiEvent}}),Object.defineProperty(t,"AppearMethod",{enumerable:!0,get:function(){return i.AppearMethod}});const o=n(870);let a=null;t.initSurvicate=e=>r(void 0,void 0,void 0,function*(){if(!a){const t=new o.Survicate(e);yield t.ready(),a=t}}),t.getSurvicateInstance=()=>a}},t={};return 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}(734)})())},78145(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},84011(e,t){var n;n=function(){return function(){var e=n;e.Integer={type:"integer"};var t={String,Boolean,Number,Object,Array,Date};function n(e,t){return n(e,t,{changing:!1})}e.validate=n,e.checkPropertyChange=function(e,t,r){return n(e,t,{changing:r||"property"})};var n=e._validate=function(e,n,r){r||(r={});var i=r.changing;function o(e){return e.type||t[e.name]==e&&e.name.toLowerCase()}var a=[];function s(e,t,n,l){var c;function f(e){a.push({property:n,message:e})}if(n+=n?"number"==typeof l?"["+l+"]":void 0===l?"":"."+l:l,("object"!=typeof t||t instanceof Array)&&(n||"function"!=typeof t)&&(!t||!o(t)))return"function"==typeof t?e instanceof t||f("is not an instance of the class/constructor "+t.name):t&&f("Invalid schema/property definition "+t),null;function d(e,t){if(e){if(!("string"!=typeof e||"any"==e||("null"==e?null===t:typeof t==e)||t instanceof Array&&"array"==e||t instanceof Date&&"date"==e||"integer"==e&&t%1==0))return[{property:n,message:t+" - "+typeof t+" value found, but a "+e+" is required"}];if(e instanceof Array){for(var r=[],i=0;i<e.length&&(r=d(e[i],t)).length;i++);if(r.length)return r}else if("object"==typeof e){var o=a;a=[],s(t,e,n);var u=a;return a=o,u}}return[]}if(i&&t.readonly&&f("is a readonly field, it can not be changed"),t.extends&&s(e,t.extends,n,l),void 0===e)t.required&&f("is missing and it is required");else if(a=a.concat(d(o(t),e)),t.disallow&&!d(t.disallow,e).length&&f(" disallowed value was matched"),null!==e){if(e instanceof Array){if(t.items){var p=t.items instanceof Array,v=t.items;for(l=0,c=e.length;l<c;l+=1)p&&(v=t.items[l]),r.coerce&&(e[l]=r.coerce(e[l],v)),a.concat(s(e[l],v,n,l))}t.minItems&&e.length<t.minItems&&f("There must be a minimum of "+t.minItems+" in the array"),t.maxItems&&e.length>t.maxItems&&f("There must be a maximum of "+t.maxItems+" in the array")}else(t.properties||t.additionalProperties)&&a.concat(u(e,t.properties,n,t.additionalProperties));if(t.pattern&&"string"==typeof e&&!e.match(t.pattern)&&f("does not match the regex pattern "+t.pattern),t.maxLength&&"string"==typeof e&&e.length>t.maxLength&&f("may only be "+t.maxLength+" characters long"),t.minLength&&"string"==typeof e&&e.length<t.minLength&&f("must be at least "+t.minLength+" characters long"),void 0!==t.minimum&&typeof e==typeof t.minimum&&t.minimum>e&&f("must have a minimum value of "+t.minimum),void 0!==t.maximum&&typeof e==typeof t.maximum&&t.maximum<e&&f("must have a maximum value of "+t.maximum),t.enum){var h,g=t.enum;c=g.length;for(var m=0;m<c;m++)if(g[m]===e){h=1;break}h||f("does not have a value in the enumeration "+g.join(", "))}"number"==typeof t.maxDecimal&&e.toString().match(new RegExp("\\.[0-9]{"+(t.maxDecimal+1)+",}"))&&f("may only have "+t.maxDecimal+" digits of decimal places")}return null}function u(e,t,n,o){if("object"==typeof t)for(var u in("object"!=typeof e||e instanceof Array)&&a.push({property:n,message:"an object is required"}),t)if(t.hasOwnProperty(u)&&"__proto__"!=u&&"constructor"!=u){var l=e.hasOwnProperty(u)?e[u]:void 0;if(void 0===l&&r.existingOnly)continue;var c=t[u];void 0===l&&c.default&&(l=e[u]=c.default),r.coerce&&u in e&&(l=e[u]=r.coerce(l,c)),s(l,c,n,u)}for(u in e){if(e.hasOwnProperty(u)&&("_"!=u.charAt(0)||"_"!=u.charAt(1))&&t&&!t[u]&&!1===o){if(r.filter){delete e[u];continue}a.push({property:n,message:"The property "+u+" is not defined in the schema and the schema does not allow additional properties"})}var f=t&&t[u]&&t[u].requires;f&&!(f in e)&&a.push({property:n,message:"the presence of the property "+u+" requires that "+f+" also be present"}),l=e[u],!o||t&&"object"==typeof t&&u in t||(r.coerce&&(l=e[u]=r.coerce(l,o)),s(l,o,n,u)),!i&&l&&l.$schema&&(a=a.concat(s(l,l.$schema,n,u)))}return a}return n&&s(e,n,"",i||""),!i&&e&&e.$schema&&s(e,e.$schema,"",""),{valid:!a.length,errors:a}};return e.mustBeValid=function(e){if(!e.valid)throw new TypeError(e.errors.map(function(e){return"for property "+e.property+": "+e.message}).join(", \n"))},e}()}.apply(t,[]),void 0===n||(e.exports=n)},84271(e,t,n){"use strict";e.exports=n(38299)},91434(e,t,n){"use strict";e.exports=n(34625)},91576(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},92162(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(40694);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},95989(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)};var r,i=n(78145),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},96248(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e,t,n){if(e.hasOwnProperty(t)){for(var i={},o=e[t],a=r(t),s=Object.keys(n),u=0;u<s.length;u++){var l=s[u];if(l===t)for(var c=0;c<o.length;c++)i[o[c]+a]=n[t];i[l]=n[l]}return i}return n}function o(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}function a(e,t){-1===e.indexOf(t)&&e.push(t)}function s(e,t){if(Array.isArray(t))for(var n=0,r=t.length;n<r;++n)a(e,t[n]);else a(e,t)}function u(e){return e instanceof Object&&!Array.isArray(e)}n.d(t,{P:()=>V});var l=["Webkit"],c=["ms"],f=["Webkit","ms"];const d={plugins:[],prefixMap:{appearance:["Webkit","Moz"],textEmphasisPosition:l,textEmphasis:l,textEmphasisStyle:l,textEmphasisColor:l,boxDecorationBreak:l,maskImage:l,maskMode:l,maskRepeat:l,maskPosition:l,maskClip:l,maskOrigin:l,maskSize:l,maskComposite:l,mask:l,maskBorderSource:l,maskBorderMode:l,maskBorderSlice:l,maskBorderWidth:l,maskBorderOutset:l,maskBorderRepeat:l,maskBorder:l,maskType:l,textDecorationStyle:l,textDecorationSkip:l,textDecorationLine:l,textDecorationColor:l,userSelect:["Webkit","Moz","ms"],backdropFilter:l,fontKerning:l,scrollSnapType:f,scrollSnapPointsX:f,scrollSnapPointsY:f,scrollSnapDestination:f,scrollSnapCoordinate:f,clipPath:l,shapeImageThreshold:l,shapeImageMargin:l,shapeImageOutside:l,filter:l,hyphens:f,flowInto:f,flowFrom:f,breakBefore:f,breakAfter:f,breakInside:f,regionFragment:f,writingMode:l,textOrientation:l,tabSize:["Moz"],fontFeatureSettings:l,columnCount:l,columnFill:l,columnGap:l,columnRule:l,columnRuleColor:l,columnRuleStyle:l,columnRuleWidth:l,columns:l,columnSpan:l,columnWidth:l,wrapFlow:c,wrapThrough:c,wrapMargin:c,textSizeAdjust:l}};var p=["-webkit-","-moz-",""],v={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};var h=n(17298),g=n.n(h),m=["-webkit-",""];var y=["-webkit-",""];var b={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};var w={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},x={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};var S=["-webkit-","-moz-",""],I=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;var k=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){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),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function E(e){return"number"==typeof e&&!isNaN(e)}function C(e){return"string"==typeof e&&e.includes("/")}var T=["center","end","start","stretch"],P={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},M={alignSelf:function(e,t){T.indexOf(e)>-1&&(t.msGridRowAlign=e)},gridColumn:function(e,t){if(E(e))t.msGridColumn=e;else if(C(e)){var n=e.split("/"),r=k(n,2),i=r[0],o=r[1];M.gridColumnStart(+i,t);var a=o.split(/ ?span /),s=k(a,2),u=s[0],l=s[1];""===u?M.gridColumnEnd(+i+ +l,t):M.gridColumnEnd(+o,t)}else M.gridColumnStart(e,t)},gridColumnEnd:function(e,t){var n=t.msGridColumn;E(e)&&E(n)&&(t.msGridColumnSpan=e-n)},gridColumnStart:function(e,t){E(e)&&(t.msGridColumn=e)},gridRow:function(e,t){if(E(e))t.msGridRow=e;else if(C(e)){var n=e.split("/"),r=k(n,2),i=r[0],o=r[1];M.gridRowStart(+i,t);var a=o.split(/ ?span /),s=k(a,2),u=s[0],l=s[1];""===u?M.gridRowEnd(+i+ +l,t):M.gridRowEnd(+o,t)}else M.gridRowStart(e,t)},gridRowEnd:function(e,t){var n=t.msGridRow;E(e)&&E(n)&&(t.msGridRowSpan=e-n)},gridRowStart:function(e,t){E(e)&&(t.msGridRow=e)},gridTemplateColumns:function(e,t){t.msGridColumns=e},gridTemplateRows:function(e,t){t.msGridRows=e},justifySelf:function(e,t){T.indexOf(e)>-1&&(t.msGridColumnAlign=e)}};var _=["-webkit-",""];var D={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};var A=["-webkit-","-moz-",""],O={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},N={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};var R=n(95989),F=n.n(R),j={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},U={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};var L=[function(e,t){if("string"==typeof t&&"text"===t)return["-webkit-text","text"]},function(e,t){if("string"==typeof t&&!g()(t)&&t.indexOf("cross-fade(")>-1)return m.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})},function(e,t){if("cursor"===e&&v.hasOwnProperty(t))return p.map(function(e){return e+t})},function(e,t){if("string"==typeof t&&!g()(t)&&t.indexOf("filter(")>-1)return y.map(function(e){return t.replace(/filter\(/g,e+"filter(")})},function(e,t,n){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),x.hasOwnProperty(e)&&(n[x[e]]=w[t]||t)},function(e,t){if("string"==typeof t&&!g()(t)&&I.test(t))return S.map(function(e){return t.replace(I,function(t){return e+t})})},function(e,t,n){if("display"===e&&t in P)return P[t];e in M&&(0,M[e])(t,n)},function(e,t){if("string"==typeof t&&!g()(t)&&t.indexOf("image-set(")>-1)return _.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})},function(e,t,n){if(Object.prototype.hasOwnProperty.call(D,e))for(var r=D[e],i=0,o=r.length;i<o;++i)n[r[i]]=t},function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},function(e,t){if(O.hasOwnProperty(e)&&N.hasOwnProperty(t))return A.map(function(e){return e+t})},function(e,t,n,i){if("string"==typeof t&&j.hasOwnProperty(e)){var o=function(e,t){if(g()(e))return e;
2for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),r=0,i=n.length;r<i;++r){var o=n[r],a=[o];for(var s in t){var u=F()(s);if(o.indexOf(u)>-1&&"order"!==u)for(var l=t[s],c=0,f=l.length;c<f;++c)a.unshift(o.replace(u,U[l[c]]+u))}n[r]=a.join(",")}return n.join(",")}(t,i),a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return a;var s=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?s:(n["Webkit"+r(e)]=a,n["Moz"+r(e)]=s,o)}},function(e,t){if("display"===e&&b.hasOwnProperty(t))return b[t]}],V=function(e){var t=e.prefixMap,n=e.plugins;return function e(r){for(var a in r){var l=r[a];if(u(l))r[a]=e(l);else if(Array.isArray(l)){for(var c=[],f=0,d=l.length;f<d;++f){s(c,o(n,a,l[f],r,t)||l[f])}c.length>0&&(r[a]=c)}else{var p=o(n,a,l,r,t);p&&(r[a]=p),r=i(t,a,r)}}return r}}({prefixMap:d.prefixMap,plugins:L})},96495(e){(function(){var t,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-r)/1e6},n=process.hrtime,r=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}}]);
3//# sourceMappingURL=4196.bundle.3cb9c77e449f8021d051.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.