????
Your IP : 216.73.216.217
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e={1616:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(7571),i=n(9695),a=["redmond.corp.microsoft.com","northamerica.corp.microsoft.com","fareast.corp.microsoft.com","ntdev.corp.microsoft.com","wingroup.corp.microsoft.com","southpacific.corp.microsoft.com","wingroup.windeploy.ntdev.microsoft.com","ddnet.microsoft.com","europe.corp.microsoft.com"],s={"common.msftInternal":function(){const e=process.env.USERDNSDOMAIN;if(!e)return!1;const t=e.toLowerCase();return a.some((e=>t===e))}()?1:0},c={};try{const e=n(235);c["common.adsversion"]=null==e?void 0:e.version}catch(e){}class u{constructor(e,t,n,r){this.reporter=e,this.eventName=t,this.properties=n,this.measurements=r,this.properties=n||{},Object.assign(this.properties,c),this.measurements=r||{},Object.assign(this.measurements,s)}send(){var e;try{null===(e=this.reporter)||void 0===e||e.sendTelemetryEvent(this.eventName,this.properties,this.measurements)}catch(e){const t=e instanceof Error?e.message:e;console.error(`Error sending ${this.eventName} event ${t}`)}}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasurements(e){return Object.assign(this.measurements,e),this}withConnectionInfo(e){return"object"==typeof e?Object.assign(this.properties,{authenticationType:e.authenticationType,providerName:e.providerName}):console.error("AdsTelemetryReporter received invalid ConnectionInfo object of type "+typeof e),this}withServerInfo(e){var t,n,r;return"object"==typeof e?Object.assign(this.properties,{connectionType:void 0!==e.isCloud?e.isCloud?"Azure":"Standalone":"",serverVersion:null!==(t=e.serverVersion)&&void 0!==t?t:"",serverEdition:null!==(n=e.serverEdition)&&void 0!==n?n:"",serverEngineEdition:null!==(r=e.engineEditionId)&&void 0!==r?r:""}):console.error("AdsTelemetryReporter received invalid ServerInfo object of type "+typeof e),this}}t.default=class{constructor(e,t,n){var r,i;this._telemetryReporter=void 0;try{this._telemetryReporter=new o.default(e,t,n)}catch(t){console.error(`Error initializing TelemetryReporter for '${e}'. ${null!==(i=null===(r=t)||void 0===r?void 0:r.message)&&void 0!==i?i:t}`)}}createViewEvent(e){return new u(this._telemetryReporter,"view",{view:e})}sendViewEvent(e){this.createViewEvent(e).send()}createActionEvent(e,t,n="",r="",o){const i=o?{durationInMs:o}:{};return new u(this._telemetryReporter,"action",{view:e,action:t,target:n,source:r},i)}sendActionEvent(e,t,n="",r="",o){this.createActionEvent(e,t,n,r,o).send()}createTimedAction(e,t,n,r){return new i.TimedAction(this,e,t,n,r)}createMetricsEvent(e,t=""){return new u(this._telemetryReporter,"metrics",{groupName:t},e)}sendMetricsEvent(e,t=""){this.createMetricsEvent(e,t).send()}createErrorEvent(e,t,n="",r=""){return new u(this._telemetryReporter,"error",{view:e,name:t,errorCode:n,errorType:r})}sendErrorEvent(e,t,n="",r=""){this.createErrorEvent(e,t,n,r).send()}createErrorEvent2(e,t,n=void 0,r=!1,o="",i=""){const a={view:e,name:t,errorCode:o,errorType:i};if(n instanceof Error){a.message=!0===r?n.message:"";let e=n.stack||"";if(!0!==r&&n.message){const t=new RegExp(n.message,"g");e=e.replace(t,"<REDACTED: error-message>")}a.stack=e}else a.message=!0===r?null==n?void 0:n.toString():"",a.stack="";return new u(this._telemetryReporter,"error",a)}sendErrorEvent2(e,t,n=void 0,r=!1,o="",i=""){this.createErrorEvent2(e,t,n,r,o,i).send()}createTelemetryEvent(e,t,n){return new u(this._telemetryReporter,e,t,n)}sendTelemetryEvent(e,t,n){this.createTelemetryEvent(e,t,n).send()}dispose(){var e;return r(this,void 0,void 0,(function*(){yield null===(e=this._telemetryReporter)||void 0===e?void 0:e.dispose()}))}}},9695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimedAction=void 0,t.TimedAction=class{constructor(e,t,n,r="",o=""){this.reporter=e,this.view=t,this.action=n,this.target=r,this.source=o,this.properties={},this.measures={},this.start=Date.now()}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasures(e){return Object.assign(this.measures,e),this}send(){this.reporter.createActionEvent(this.view,this.action,this.source,this.target,Date.now()-this.start).withAdditionalProperties(this.properties).withAdditionalMeasurements(this.measures).send()}}},867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const r=n(9896);t.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync},t.createFileSystemAdapter=function(e){return void 0===e?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}},4584:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const n=process.versions.node.split(".");if(void 0===n[0]||void 0===n[1])throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const r=Number.parseInt(n[0],10),o=Number.parseInt(n[1],10),i=r>10,a=10===r&&o>=10;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=i||a},5857:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;const r=n(3160),o=n(7753),i=n(1212);function a(e={}){return e instanceof i.default?e:new i.default(e)}t.Settings=i.default,t.scandir=function(e,t,n){"function"!=typeof t?r.read(e,a(t),n):r.read(e,a(),t)},t.scandirSync=function(e,t){const n=a(t);return o.read(e,n)}},3160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;const r=n(8631),o=n(8190),i=n(4584),a=n(8947),s=n(951);function c(e,t,n){t.fs.readdir(e,{withFileTypes:!0},((r,i)=>{if(null!==r)return void l(n,r);const c=i.map((n=>({dirent:n,name:n.name,path:s.joinPathSegments(e,n.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks)return void p(n,c);const u=c.map((e=>function(e,t){return n=>{e.dirent.isSymbolicLink()?t.fs.stat(e.path,((r,o)=>{if(null!==r)return t.throwErrorOnBrokenSymbolicLink?void n(r):void n(null,e);e.dirent=a.fs.createDirentFromStats(e.name,o),n(null,e)})):n(null,e)}}(e,t)));o(u,((e,t)=>{null===e?p(n,t):l(n,e)}))}))}function u(e,t,n){t.fs.readdir(e,((i,c)=>{if(null!==i)return void l(n,i);const u=c.map((n=>{const o=s.joinPathSegments(e,n,t.pathSegmentSeparator);return e=>{r.stat(o,t.fsStatSettings,((r,i)=>{if(null!==r)return void e(r);const s={name:n,path:o,dirent:a.fs.createDirentFromStats(n,i)};t.stats&&(s.stats=i),e(null,s)}))}}));o(u,((e,t)=>{null===e?p(n,t):l(n,e)}))}))}function l(e,t){e(t)}function p(e,t){e(null,t)}t.read=function(e,t,n){t.stats||!i.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(e,t,n):c(e,t,n)},t.readdirWithFileTypes=c,t.readdir=u},951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0,t.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t}},7753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;const r=n(8631),o=n(4584),i=n(8947),a=n(951);function s(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n=>{const r={dirent:n,name:n.name,path:a.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(r.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{const e=t.fs.statSync(r.path);r.dirent=i.fs.createDirentFromStats(r.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return r}))}function c(e,t){return t.fs.readdirSync(e).map((n=>{const o=a.joinPathSegments(e,n,t.pathSegmentSeparator),s=r.statSync(o,t.fsStatSettings),c={name:n,path:o,dirent:i.fs.createDirentFromStats(n,s)};return t.stats&&(c.stats=s),c}))}t.read=function(e,t){return!t.stats&&o.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(e,t):c(e,t)},t.readdirWithFileTypes=s,t.readdir=c},1212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6928),o=n(8631),i=n(867);t.default=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new o.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}}},8352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;class n{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}t.createDirentFromStats=function(e,t){return new n(e,t)}},8947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;const r=n(8352);t.fs=r},7105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const r=n(9896);t.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync},t.createFileSystemAdapter=function(e){return void 0===e?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}},8631:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;const r=n(5422),o=n(7675),i=n(1682);function a(e={}){return e instanceof i.default?e:new i.default(e)}t.Settings=i.default,t.stat=function(e,t,n){"function"!=typeof t?r.read(e,a(t),n):r.read(e,a(),t)},t.statSync=function(e,t){const n=a(t);return o.read(e,n)}},5422:(e,t)=>{"use strict";function n(e,t){e(t)}function r(e,t){e(null,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0,t.read=function(e,t,o){t.fs.lstat(e,((i,a)=>{null===i?a.isSymbolicLink()&&t.followSymbolicLink?t.fs.stat(e,((e,i)=>{if(null!==e)return t.throwErrorOnBrokenSymbolicLink?void n(o,e):void r(o,a);t.markSymbolicLink&&(i.isSymbolicLink=()=>!0),r(o,i)})):r(o,a):n(o,i)}))}},7675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0,t.read=function(e,t){const n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{const n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw e}}},1682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7105);t.default=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return null!=e?e:t}}},764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const r=n(6105),o=n(5981),i=n(6354),a=n(611);function s(e={}){return e instanceof a.default?e:new a.default(e)}t.Settings=a.default,t.walk=function(e,t,n){"function"!=typeof t?new r.default(e,s(t)).read(n):new r.default(e,s()).read(t)},t.walkSync=function(e,t){const n=s(t);return new i.default(e,n).read()},t.walkStream=function(e,t){const n=s(t);return new o.default(e,n).read()}},6105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2695);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t=>{!function(e,t){e(t)}(e,t)})),this._reader.onEntry((e=>{this._storage.push(e)})),this._reader.onEnd((()=>{!function(e,t){e(null,t)}(e,this._storage)})),this._reader.read()}}},5981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2203),o=n(2695);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new o.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError((e=>{this._stream.emit("error",e)})),this._reader.onEntry((e=>{this._stream.push(e)})),this._reader.onEnd((()=>{this._stream.push(null)})),this._reader.read(),this._stream}}},6354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7660);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}}},2695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4434),o=n(5857),i=n(6697),a=n(9966),s=n(5700);class c extends s.default{constructor(e,t){super(e,t),this._settings=t,this._scandir=o.scandir,this._emitter=new r.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)})),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const n={directory:e,base:t};this._queue.push(n,(e=>{null!==e&&this._handleError(e)}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((n,r)=>{if(null===n){for(const t of r)this._handleEntry(t,e.base);t(null,void 0)}else t(n,void 0)}))}_handleError(e){!this._isDestroyed&&a.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;const n=e.path;void 0!==t&&(e.path=a.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),a.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}t.default=c},9966:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0,t.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},t.isAppliedFilter=function(e,t){return null===e||e(t)},t.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},t.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t}},5700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9966);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._root=r.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}},7660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5857),o=n(9966),i=n(5700);class a extends i.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{const n=this._scandir(e,this._settings.fsScandirSettings);for(const e of n)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(o.isFatalError(this._settings,e))throw e}_handleEntry(e,t){const n=e.path;void 0!==t&&(e.path=o.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),o.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}t.default=a},611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6928),o=n(5857);t.default=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new o.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}}},7571:(e,t,n)=>{var r,o,i,a,s=Object.create,c=Object.defineProperty,u=Object.defineProperties,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&m(e,n,t[n]);if(f)for(var n of f(t))g.call(t,n)&&m(e,n,t[n]);return e},_=(e,t)=>u(e,p(t)),E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of d(t))!v.call(e,o)&&o!==n&&c(e,o,{get:()=>t[o],enumerable:!(r=l(t,o))||r.enumerable});return e},S=(e,t,n)=>(n=null!=e?s(h(e)):{},b(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)),T=E(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",o="prototype",i="hasOwnProperty",a="default",s=Object,c=s[o],u=s.assign,l=s.create,p=s.defineProperty,d=c[i],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function v(e){throw new TypeError(e)}function g(e){if(l)return l(e);if(null==e)return{};var r=typeof e;function i(){}return r!==n&&r!==t&&v("Object prototype may only be an Object:"+e),i[o]=e,new i}var m=(h()||{}).Symbol,y=(h()||{}).Reflect,_=!!y,E="decorate",b="metadata",S="getOwnPropertySymbols",T="iterator",P=u||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])c[i].call(t,o)&&(e[o]=t[o]);return e},w=function(e,t){return(w=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[i](n)&&(e[n]=t[n])})(e,t)};function C(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&v("Class extends value "+String(n)+" is not a constructor or null"),w(e,n),e[o]=null===n?g(n):(r[o]=n[o],new r)}function A(e,t,n,r){void 0===r&&(r=n),l?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=u,e.ObjClass=s,e.ObjCreate=l,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=P,e.__createBindingFn=A,e.__decorateFn=function(e,n,r,o){var i,a=arguments.length,c=a<3?n:null===o?o=s.getOwnPropertyDescriptor(n,r):o;if(_&&typeof y[E]===t)c=y[E](e,n,r,o);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(c=(a<3?i(c):a>3?i(n,r,c):i(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&A(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,o=h()||{};t=P,n=C,r=A,(e=o).__assign||(e.__assign=u||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=o.__assign),__extends||(__extends=o.__extends),__createBinding||(__createBinding=o.__createBinding)},e.__extendsFn=C,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&A(t,e,n);return l?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(_&&y[b]===t)return y[b](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof m===t&&e[m[T]];if(!r)return e;var o,i,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(o=a.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s},e.__restFn=function(e,n){var r={};for(var o in e)d.call(e,o)&&n.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&typeof s[S]===t)for(var i=0,a=s[S](e);i<a.length;i++)n.indexOf(a[i])<0&&c.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var o=Array(t),i=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,i++)o[i]=a[s];return o},e.__valuesFn=function(e){var n=typeof m===t&&m[T],r=n&&e[n],o=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}}:void v(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=g,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=i,e.strShimObject=n,e.strShimPrototype=o,e.strShimUndefined=r,e.throwTypeError=v,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(o=[t],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i))})),P=E(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",o="prototype",i="hasOwnProperty",a=Object,s=a[o],c=a.assign,u=a.create,l=a.defineProperty,p=s[i],d=null;function f(e){return void 0===e&&(e=!0),(!d||!e)&&(typeof globalThis!==r&&globalThis&&(d=globalThis),typeof self!==r&&self&&(d=self),typeof window!==r&&window&&(d=window),typeof global!==r&&global&&(d=global)),d}function h(e){throw new TypeError(e)}function v(e){if(u)return u(e);if(null==e)return{};var r=typeof e;function i(){}return r!==n&&r!==t&&h("Object prototype may only be an Object:"+e),i[o]=e,new i}(f()||{}).Symbol,(f()||{}).Reflect;var g=function(e,t){return(g=a.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[i](n)&&(e[n]=t[n])})(e,t)};function m(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&h("Class extends value "+String(n)+" is not a constructor or null"),g(e,n),e[o]=null===n?v(n):(r[o]=n[o],new r)}function y(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var _="",E="processTelemetry",b="priority",S="setNextPlugin",T="isInitialized",P="teardown",w="core",C="update",A="disabled",I="_doTeardown",O="processNext",x="resume",R="pause",N="NotificationListener",D="add"+N,k="remove"+N,M="eventsSent",j="eventsDiscarded",L="eventsSendRequest",F="perfEvent",H="toISOString",B="endsWith",U="startsWith",V="indexOf",$="reduce",G="trim",q="toString",z="__proto__",W="constructor",K=l,X=a.freeze,Q=a.seal,Y=a.keys,J=String[o],Z=J[G],ee=J[B],te=J[U],ne=Date[o][H],re=Array.isArray,oe=s[q],ie=p[q],ae=ie.call(a),se=/-([a-z])/g,ce=/([^\w\d_$])/g,ue=/^(\d+[\w\d_$])/,le=Object.getPrototypeOf;function pe(e){if(e){if(le)return le(e);var t=e[z]||e[o]||e[W];if(t)return t}return null}function de(e,t){return typeof e===t}function fe(e){return void 0===e||typeof e===r}function he(e){return null===e||fe(e)}function ve(e){return!he(e)}function ge(e,t){return!(!e||!p.call(e,t))}function me(e){return!(!e||typeof e!==n)}function ye(e){return!(!e||typeof e!==t)}function _e(e){var t=e;return t&&Ce(t)&&(t=(t=(t=t.replace(se,(function(e,t){return t.toUpperCase()}))).replace(ce,"_")).replace(ue,(function(e,t){return"_"+t}))),t}function Ee(e,t){if(e)for(var n in e)p.call(e,n)&&t.call(e,n,e[n])}function be(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=ee?e[B](t):function(e,t){var n=!1,r=t?t.length:0,o=e?e.length:0;if(r&&o&&o>=r&&!(n=e===t)){for(var i=o-1,a=r-1;a>=0;a--){if(e[i]!=t[a])return!1;i--}n=!0}return n}(e,t)),n}function Se(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Te(e){return!(!e||"[object Date]"!==oe.call(e))}var Pe=re||function(e){return!(!e||"[object Array]"!==oe.call(e))};function we(e){return!(!e||"[object Error]"!==oe.call(e))}function Ce(e){return"string"==typeof e}function Ae(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function Oe(e){var n=!1;if(e&&"object"==typeof e){var r=le?le(e):pe(e);r?(r[W]&&p.call(r,W)&&(r=r[W]),n=typeof r===t&&ie.call(r)===ae):n=!0}return n}function xe(e){if(e)return ne?e[H]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(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 Re(e,t,n){var r=e.length;try{for(var o=0;o<r&&(!(o in e)||-1!==t.call(n||e,e[o],o,e));o++);}catch{}}function Ne(e,t,n){if(e){if(e[V])return e[V](t,n);var r=e.length,o=n||0;try{for(var i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;i++)if(i in e&&e[i]===t)return i}catch{}}return-1}function De(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var o=e.length,i=n||e;r=new Array(o);try{for(var a=0;a<o;a++)a in e&&(r[a]=t.call(i,e[a],e))}catch{}}return r}function ke(e,t,n){var r;if(e){if(e[$])return e[$](t,n);var o=e.length,i=0;if(arguments.length>=3)r=arguments[2];else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=t(r,e[i],i,e)),i++}return r}function Me(e){return e&&(e=Z&&e[G]?e[G]():e.replace?e.replace(/^\s+|\s+$/g,""):e),e}var je=!{toString:null}.propertyIsEnumerable("toString"),Le=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Fe(e){var r=typeof e;if(r!==t&&(r!==n||null===e)&&h("objKeys called on non-object"),!je&&Y)return Y(e);var o=[];for(var i in e)e&&p.call(e,i)&&o.push(i);if(je)for(var a=Le.length,s=0;s<a;s++)e&&p.call(e,Le[s])&&o.push(Le[s]);return o}function He(e,t,n,r){if(K)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),K(e,t,o),!0}catch{}return!1}function Be(e){return e}function Ue(e){return X&&Ee(e,(function(e,t){(Pe(t)||me(t))&&X(t)})),Ve(e)}var Ve=X||Be,$e=Q||Be;function Ge(){var e=Date;return e.now?e.now():(new e).getTime()}function qe(e){return we(e)?e.name:_}function ze(e,t,n,r,o){var i=n;return e&&(i=e[t])!==n&&(!o||o(i))&&(!r||r(n))&&(i=n,e[t]=i),i}function We(e,t,n){var r;return e?!(r=e[t])&&he(r)&&(r=fe(n)?{}:n,e[t]=r):r=fe(n)?{}:n,r}function Ke(e){return!e}function Xe(e){return!!e}function Qe(e){throw new Error(e)}function Ye(e,t){var n=null,r=null;return ye(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function Je(e,t,n,r,o){e&&t&&n&&(!1!==o||fe(e[t]))&&(e[t]=Ye(n,r))}function Ze(e,t,n,r){return e&&t&&me(e)&&Pe(n)&&Re(n,(function(n){Ce(n)&&Je(e,n,t,n,r)})),e}function et(e,t,n,r,o,i){var a=arguments,s=a[0]||{},c=a.length,u=!1,l=1;for(c>0&&Ie(s)&&(u=s,s=a[l]||{},l++),me(s)||(s={});l<c;l++){var d=a[l],f=Pe(d),h=me(d);for(var v in d)if(f&&v in d||h&&p.call(d,v)){var g=d[v],m=void 0;if(u&&g&&((m=Pe(g))||Oe(g))){var y=s[v];m?Pe(y)||(y=[]):Oe(y)||(y={}),g=et(u,y,g)}void 0!==g&&(s[v]=g)}}return s}function tt(e){var t={};return Ee(e,(function(e,n){t[e]=n,t[n]=e})),Ue(t)}var nt=tt({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),rt="constructor",ot="prototype",it="function",at="_dynInstFuncs",st="_isDynProxy",ct="_dynClass",ut="_dynInstChk",lt=ut,pt="_dfOpts",dt="_unknown_",ft="__proto__",ht="_dyn"+ft,vt="_dynInstProto",gt="useBaseInst",mt="setInstFuncs",yt=Object,_t=yt.getPrototypeOf,Et=yt.getOwnPropertyNames,bt=0;function St(e,t){return e&&yt[ot].hasOwnProperty.call(e,t)}function Tt(e){return e&&(e===yt[ot]||e===Array[ot])}function Pt(e){return Tt(e)||e===Function[ot]}function wt(e){var t;if(e){if(_t)return _t(e);var n=e[ft]||e[ot]||(e[rt]?e[rt][ot]:null);t=e[ht]||n,St(e,ht)||(delete e[vt],t=e[ht]=e[vt]||e[ht],e[vt]=n)}return t}function Ct(e,t){var n=[];if(Et)n=Et(e);else for(var r in e)"string"==typeof r&&St(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function At(e,t,n){return t!==rt&&typeof e[t]===it&&(n||St(e,t))}function It(e){throw new TypeError("DynamicProto: "+e)}function Ot(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function xt(e,t,n,r,o){if(!Tt(e)){var i=n[at]=n[at]||{},a=i[t]=i[t]||{};!1!==i[lt]&&(i[lt]=!!o),Ct(n,(function(t){At(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!St(e,t)||e[t]&&!e[t][st])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var o=null;if(e&&St(n,ct)){var i=e[at]||{};if((o=(i[n[ct]]||{})[t])||It("Missing ["+t+"] "+it),!o[ut]&&!1!==i[lt]){for(var a=!St(e,t),s=wt(e),c=[];a&&s&&!Pt(s)&&!Ot(c,s);){var u=s[t];if(u){a=u===r;break}c.push(s),s=wt(s)}try{a&&(e[t]=o),o[ut]=1}catch{i[lt]=!1}}}return o}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=wt(t)[e]),typeof r!==it&&It("["+e+"] is not a "+it),r}(t,e,n);return r.apply(this,arguments)};return n[st]=1,n}(e,t)))}))}}function Rt(e,t){return St(e,ot)?e.name||t||dt:((e||{})[rt]||{}).name||t||dt}function Nt(e,t,n,r){St(e,ot)||It("theClass is an invalid class definition.");var o=e[ot];(function(e,t){if(_t){for(var n=[],r=wt(t);r&&!Pt(r)&&!Ot(n,r);){if(r===e)return!0;n.push(r),r=wt(r)}return!1}return!0})(o,t)||It("["+Rt(e)+"] is not in class hierarchy of ["+Rt(t)+"]");var i=null;St(o,ct)?i=o[ct]:(i="_dynCls$"+Rt(e,"_")+"$"+bt,bt++,o[ct]=i);var a=Nt[pt],s=!!a[gt];s&&r&&void 0!==r[gt]&&(s=!!r[gt]);var c=function(e){var t={};return Ct(e,(function(n){!t[n]&&At(e,n,!1)&&(t[n]=e[n])})),t}(t),u=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o[st]&&r){var i=e[at]||{};!1!==i[lt]&&(o=(i[t[ct]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i={};Ct(n,(function(e){i[e]=o(t,n,e)}));for(var a=wt(e),s=[];a&&!Pt(a)&&!Ot(s,a);)Ct(a,(function(e){!i[e]&&At(a,e,!_t)&&(i[e]=o(t,a,e))})),s.push(a),a=wt(a);return i}(o,t,c,s);n(t,u);var l=!!_t&&!!a[mt];l&&r&&(l=!!r[mt]),xt(o,i,t,c,!1!==l)}Nt[pt]={setInstFuncs:!0,useBaseInst:!0};var Dt="window",kt="document",Mt="navigator",jt="location",Lt="console",Ft="performance",Ht="JSON",Bt="crypto",Ut="msCrypto",Vt="msie",$t="trident/",Gt="XMLHttpRequest",qt=null,zt=null,Wt=!1,Kt=null,Xt=null;function Qt(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[o];r&&(n=t in r)}}catch{}if(!n)try{n=!fe((new e)[t])}catch{}}return n}function Yt(e){var t=f();return t&&t[e]?t[e]:e===Dt&&Jt()?window:null}function Jt(){return Boolean(typeof window===n&&window)}function Zt(){return Jt()?window:Yt(Dt)}function en(){return Boolean(typeof document===n&&document)}function tn(){return en()?document:Yt(kt)}function nn(){return Boolean(typeof navigator===n&&navigator)}function rn(){return nn()?navigator:Yt(Mt)}function on(){return Boolean(typeof history===n&&history)}function an(e){if(e&&Wt){var t=Yt("__mockLocation");if(t)return t}return typeof location===n&&location?location:Yt(jt)}function sn(){return typeof console!==r?console:Yt(Lt)}function cn(){return Yt(Ft)}function un(){return Boolean(typeof JSON===n&&JSON||null!==Yt(Ht))}function ln(){return un()?JSON||Yt(Ht):null}function pn(){return Yt(Bt)}function dn(){return Yt(Ut)}function fn(){var e=rn();if(e&&(e.userAgent!==zt||null===qt)){var t=((zt=e.userAgent)||_).toLowerCase();qt=Se(t,Vt)||Se(t,$t)}return qt}function hn(e){var t=Object[o].toString.call(e),n=_;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(n=ln().stringify(e)),t+n}function vn(){var e=!1;try{e=!!Yt(Gt)}catch{}return e}function gn(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(r.name&&r.name===t)return r}return{}}function mn(e){var t=tn();return t&&e?gn(t.querySelectorAll("meta"),e).content:null}function yn(e){var t,n=cn();if(n){var r=n.getEntriesByType("navigation")||[];t=gn((r.length>0?r[0]:{}).serverTiming,e).description}return t}var _n,En=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],bn=null;function Sn(e,t){return function(){var n=arguments,r=Tn(t);if(r){var o=r.listener;o&&o[e]&&o[e].apply(o,n)}}}function Tn(e){var t=bn;return!t&&!0!==e.disableDbgExt&&(t=bn||function(){var e=Yt("Microsoft");return e&&(bn=e.ApplicationInsights),bn}()),t?t.ChromeDbgExt:null}function Pn(e){if(!_n){_n={};for(var t=0;t<En.length;t++)_n[En[t]]=Sn(En[t],e)}return _n}function wn(e){return e?'"'+e.replace(/\"/g,_)+'"':_}function Cn(e,t){var n=sn();if(n){var r="log";n[e]&&(r=e),ye(n[r])&&n[r](t)}}var An=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o.messageId=e,o.message=(n?"AI: ":"AI (Internal): ")+e;var i=_;un()&&(i=ln().stringify(r));var a=(t?" message:"+wn(t):_)+(r?" props:"+wn(i):_);o.message+=a}return e.dataType="MessageData",e}();function In(e,t){return(e||{}).logger||new On(t)}var On=function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};Nt(e,this,(function(e){function o(e,n){var r=t[e];return he(r)?n:r}function i(e,n){var r=Tn(t);r&&r.diagLog&&r.diagLog(e,n)}he(t)&&(t={}),e.consoleLoggingLevel=function(){return o("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return o("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return o("maxMessageLimit",25)},e.enableDebugExceptions=function(){return o("enableDebugExceptions",!1)},e.throwInternal=function(t,n,o,a,s){void 0===s&&(s=!1);var c=new An(n,o,s,a);if(e.enableDebugExceptions())throw hn(c);var u=1===t?"errorToConsole":"warnToConsole";if(fe(c.message))i("throw"+(1===t?"Critical":"Warning"),c);else{var l=e.consoleLoggingLevel();if(s){var p=+c.messageId;!r[p]&&l>=t&&(e[u](c.message),r[p]=!0)}else l>=t&&e[u](c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){Cn("warn",e),i("warning",e)},e.errorToConsole=function(e){Cn("error",e),i("error",e)},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,o){if(!(n>=e.maxInternalMessageLimit())){var a=!0,s="AITR_"+o.messageId;if(r[s]?a=!1:r[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(o),n++,i(1===t?"error":"warn",o)),n===e.maxInternalMessageLimit())){var c="Internal events throttle limit per PageView reached for this app.",u=new An(23,c,!1);e.queue.push(u),1===t?e.errorToConsole(c):e.warnToConsole(c)}}}}))};function xn(e){return e||new On}function Rn(e,t,n,r,o,i){void 0===i&&(i=!1),(e||new On).throwInternal(t,n,r,o,i)}function Nn(e,t){xn(e).warnToConsole(t)}var Dn="ctx",kn=null,Mn=function(){function e(t,n,r){var o,i=this,a=!1;i.start=Ge(),i.name=t,i.isAsync=r,i.isChildEvt=function(){return!1},ye(n)&&(a=He(i,"payload",(function(){return!o&&ye(n)&&(o=n(),n=null),o}))),i.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?i[t]:(i[Dn]||{})[t]:null},i.setCtx=function(t,n){t&&(t===e.ParentContextKey?(i[t]||(i.isChildEvt=function(){return!0}),i[t]=n):t===e.ChildrenContextKey?i[t]=n:(i[Dn]=i[Dn]||{})[t]=n)},i.complete=function(){var t=0,r=i.getCtx(e.ChildrenContextKey);if(Pe(r))for(var o=0;o<r.length;o++){var s=r[o];s&&(t+=s.time)}i.time=Ge()-i.start,i.exTime=i.time-t,i.complete=function(){},!a&&ye(n)&&(i.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),jn=function e(t){this.ctx={},Nt(e,this,(function(e){e.create=function(e,t,n){return new Mn(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&ye(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e[Dn]=e[Dn]||{})[t]=n)},e.getCtx=function(t){return(e[Dn]||{})[t]}}))},Ln="CoreUtils.doPerf";function Fn(e,t,n,r,o){if(e){var i=e;if(ye(i.getPerfMgr)&&(i=i.getPerfMgr()),i){var a=void 0,s=i.getCtx(Ln);try{if(a=i.create(t(),r,o)){if(s&&a.setCtx&&(a.setCtx(Mn.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Mn.ChildrenContextKey);c||(c=[],s.setCtx(Mn.ChildrenContextKey,c)),c.push(a)}return i.setCtx(Ln,a),n(a)}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&i.fire(a),i.setCtx(Ln,s)}}}return n()}function Hn(){return kn}var Bn=4294967296,Un=4294967295,Vn=!1,$n=123456789,Gn=987654321;function qn(e){e<0&&(e>>>=0),$n=123456789+e&Un,Gn=987654321-e&Un,Vn=!0}function zn(){try{var e=2147483647&Ge();qn((Math.random()*Bn^e)+e)}catch{}}function Wn(e){return e>0?Math.floor(Kn()/Un*(e+1))>>>0:0}function Kn(e){var t=0,n=pn()||dn();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Un),0===t&&fn()&&(Vn||zn(),t=Qn()&Un),0===t&&(t=Math.floor(Bn*Math.random()|0)),e||(t>>>=0),t}function Xn(e){e?qn(e):zn()}function Qn(e){var t=((Gn=36969*(65535&Gn)+(Gn>>16)&Un)<<16)+(65535&($n=18e3*(65535&$n)+($n>>16)&Un))>>>0&Un;return e||(t>>>=0),t}function Yn(e){void 0===e&&(e=22);for(var t=Kn()>>>0,n=0,r=_;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Kn()<<2&4294967295|3&t)>>>0,n=0);return r}var Jn=l,Zn="2.8.4",er="."+Yn(6),tr=0;function nr(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function rr(e,t){return void 0===t&&(t=!1),_e(e+tr+++(t?"."+Zn:"")+er)}function or(e){var t={id:rr("_aiData-"+(e||"")+"."+Zn),accept:function(e){return nr(e)},get:function(e,n,r,o){var i=e[t.id];return i?i[_e(n)]:(o&&((i=function(e,t){var n=t[e.id];if(!n){n={};try{nr(t)&&(function(e,t,n){if(Jn)try{return Jn(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch{}return!1}(t,e.id,n)||(t[e.id]=n))}catch{}}return n}(t,e))[_e(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch{}}};return t}var ir="toGMTString",ar="toUTCString",sr="cookie",cr="expires",ur="enabled",lr="isCookieUseDisabled",pr="disableCookiesUsage",dr="_ckMgr",fr=null,hr=null,vr=null,gr=tn(),mr={},yr={};function _r(e,t){var n=br[dr]||yr[dr];return n||(n=br[dr]=br(e,t),yr[dr]=n),n}function Er(e){return!e||e.isEnabled()}function br(e,t){var n=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(ze(t,"domain",e.cookieDomain,ve,he),ze(t,"path",e.cookiePath||"/",null,he),he(t[ur])){var n=void 0;fe(e[lr])||(n=!e[lr]),fe(e[pr])||(n=!e[pr]),t[ur]=n}return t}(e||yr),r=n.path||"/",o=n.domain,i=!1!==n[ur],a={isEnabled:function(){var e=i&&Sr(t),n=yr[dr];return e&&n&&a!==n&&(e=Er(n)),e},setEnabled:function(e){i=!1!==e},set:function(e,t,i,s,c){var u=!1;if(Er(a)){var l={},p=Me(t||_),d=p.indexOf(";");if(-1!==d&&(p=Me(t.substring(0,d)),l=Tr(t.substring(d+1))),ze(l,"domain",s||o,Xe,fe),!he(i)){var f=fn();if(fe(l[cr])){var h=Ge()+1e3*i;if(h>0){var v=new Date;v.setTime(h),ze(l,cr,Pr(v,f?ir:ar)||Pr(v,f?ir:ar)||_,Xe)}}f||ze(l,"max-age",_+i,null,fe)}var g=an();g&&"https:"===g.protocol&&(ze(l,"secure",null,null,fe),null===hr&&(hr=!Ir((rn()||{}).userAgent)),hr&&ze(l,"SameSite","None",null,fe)),ze(l,"path",c||r,null,fe),(n.setCookie||Ar)(e,wr(p,l)),u=!0}return u},get:function(e){var t=_;return Er(a)&&(t=(n.getCookie||Cr)(e)),t},del:function(e,t){var n=!1;return Er(a)&&(n=a.purge(e,t)),n},purge:function(e,r){var o,i=!1;if(Sr(t)){var a=((o={}).path=r||"/",o[cr]="Thu, 01 Jan 1970 00:00:01 GMT",o);fn()||(a["max-age"]="0"),(n.delCookie||Ar)(e,wr(_,a)),i=!0}return i}};return a[dr]=a,a}function Sr(e){if(null===fr){fr=!1;try{fr=void 0!==(gr||{})[sr]}catch(t){Rn(e,2,68,"Cannot access document.cookie - "+qe(t),{exception:hn(t)})}}return fr}function Tr(e){var t={};return e&&e.length&&Re(Me(e).split(";"),(function(e){if(e=Me(e||_)){var n=e.indexOf("=");-1===n?t[e]=null:t[Me(e.substring(0,n))]=Me(e.substring(n+1))}})),t}function Pr(e,t){return ye(e[t])?e[t]():null}function wr(e,t){var n=e||_;return Ee(t,(function(e,t){n+="; "+e+(he(t)?_:"="+t)})),n}function Cr(e){var t=_;if(gr){var n=gr[sr]||_;vr!==n&&(mr=Tr(n),vr=n),t=Me(mr[e]||_)}return t}function Ar(e,t){gr&&(gr[sr]=e+"="+t)}function Ir(e){return!!Ce(e)&&!!(Se(e,"CPU iPhone OS 12")||Se(e,"iPad; CPU OS 12")||Se(e,"Macintosh; Intel Mac OS X 10_14")&&Se(e,"Version/")&&Se(e,"Safari")||Se(e,"Macintosh; Intel Mac OS X 10_14")&&be(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Se(e,"Chrome/5")||Se(e,"Chrome/6")||Se(e,"UnrealEngine")&&!Se(e,"Chrome")||Se(e,"UCBrowser/12")||Se(e,"UCBrowser/11"))}var Or="on",xr="attachEvent",Rr="addEventListener",Nr="detachEvent",Dr="removeEventListener",kr="events",Mr="visibilitychange",jr="pagehide",Lr="pageshow",Fr="unload",Hr="beforeunload",Br=rr("aiEvtPageHide"),Ur=rr("aiEvtPageShow"),Vr=/\.[\.]+/g,$r=/[\.]+$/,Gr=1,qr=or("events"),zr=/^([^.]*)(?:\.(.+)|)/;function Wr(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Kr(e,t){if(t){var n="";Pe(t)?(n="",Re(t,(function(e){(e=Wr(e))&&("."!==e[0]&&(e="."+e),n+=e)}))):n=Wr(t),n&&("."!==n[0]&&(n="."+n),e=(e||"")+n)}var r=zr.exec(e||"")||[];return{type:r[1],ns:(r[2]||"").replace(Vr,".").replace($r,"").split(".").sort().join(".")}}function Xr(e,t,n){void 0===n&&(n=!0);var r=qr.get(e,kr,{},n),o=r[t];return o||(o=r[t]=[]),o}function Qr(e,t,n,r){e&&t&&t.type&&(e[Dr]?e[Dr](t.type,n,r):e[Nr]&&e[Nr](Or+t.type,n))}function Yr(e,t,n,r){for(var o=t.length;o--;){var i=t[o];i&&(!n.ns||n.ns===i.evtName.ns)&&(!r||r(i))&&(Qr(e,i.evtName,i.handler,i.capture),t.splice(o,1))}}function Jr(e,t){return t?Kr("xx",Pe(t)?[e].concat(t):[e,t]).ns.split("."):e}function Zr(e,t,n,r,o){void 0===o&&(o=!1);var i=!1;if(e)try{var a=Kr(t,r);if(i=function(e,t,n,r){var o=!1;return e&&t&&t.type&&n&&(e[Rr]?(e[Rr](t.type,n,r),o=!0):e[xr]&&(e[xr](Or+t.type,n),o=!0)),o}(e,a,n,o),i&&qr.accept(e)){var s={guid:Gr++,evtName:a,handler:n,capture:o};Xr(e,a.type).push(s)}}catch{}return i}function eo(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var i=Kr(t,r),a=!1;(function(e,t,n){if(t.type)Yr(e,Xr(e,t.type),t,n);else{var r=qr.get(e,kr,{});Ee(r,(function(r,o){Yr(e,o,t,n)})),0===Fe(r).length&&qr.kill(e,kr)}})(e,i,(function(e){return!((!i.ns||n)&&e.handler!==n||(a=!0,0))})),a||Qr(e,i,n,o)}catch{}}function to(e,t,n,r){return void 0===r&&(r=!1),Zr(e,t,n,null,r)}function no(e,t,n,r){void 0===r&&(r=!1),eo(e,t,n,null,r)}function ro(e,t,n){var r=!1,o=Zt();o&&(r=Zr(o,e,t,n),r=Zr(o.body,e,t,n)||r);var i=tn();return i&&(r=Zr(i,e,t,n)||r),r}function oo(e,t,n){var r=Zt();r&&(eo(r,e,t,n),eo(r.body,e,t,n));var o=tn();o&&eo(o,e,t,n)}function io(e,t,n,r){var o=!1;return t&&e&&e.length>0&&Re(e,(function(e){e&&(!n||-1===Ne(n,e))&&(o=ro(e,t,r)||o)})),o}function ao(e,t,n,r){var o=!1;return t&&e&&Pe(e)&&!(o=io(e,t,n,r))&&n&&n.length>0&&(o=io(e,t,null,r)),o}function so(e,t,n){e&&Pe(e)&&Re(e,(function(e){e&&oo(e,t,n)}))}var co,uo=null,lo=r;function po(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(go,(function(e){var t=0|Wn(15);return("x"===e?t:3&t|8).toString(16)}))}function fo(){var e=cn();return e&&e.now?e.now():Ge()}function ho(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=_,r=0;r<4;r++)n+=t[15&(e=Kn())]+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 o=t[8+(3&Kn())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var vo={_canUseCookies:void 0,isTypeof:de,isUndefined:fe,isNullOrUndefined:he,hasOwnProperty:ge,isFunction:ye,isObject:me,isDate:Te,isArray:Pe,isError:we,isString:Ce,isNumber:Ae,isBoolean:Ie,toISOString:xe,arrForEach:Re,arrIndexOf:Ne,arrMap:De,arrReduce:ke,strTrim:Me,objCreate:v,objKeys:Fe,objDefineAccessors:He,addEventHandler:ro,dateNow:Ge,isIE:fn,disableCookies:_o,newGuid:po,perfNow:fo,newId:Yn,randomValue:Wn,random32:Kn,mwcRandomSeed:Xn,mwcRandom32:Qn,generateW3CId:ho},go=/[xy]/g,mo={Attach:to,AttachEvent:to,Detach:no,DetachEvent:no};function yo(e,t){var n=_r(e,t),r=vo._canUseCookies;return null===uo&&(uo=[],co=r,He(vo,"_canUseCookies",(function(){return co}),(function(e){co=e,Re(uo,(function(t){t.setEnabled(e)}))}))),-1===Ne(uo,n)&&uo.push(n),Ie(r)&&n.setEnabled(r),Ie(co)&&n.setEnabled(co),n}function _o(){yo().setEnabled(!1)}var Eo=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,bo="00",So="ff",To="00000000000000000000000000000000",Po="0000000000000000";function wo(e,t,n){return!(!e||e.length!==t||e===n||!e.match(/^[\da-f]*$/))}function Co(e,t,n){return wo(e,t)?e:n}function Ao(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Io(e){if(!e||(Pe(e)&&(e=e[0]||""),!e||!Ce(e)||e.length>8192))return null;var t=Eo.exec(Me(e));return t&&t[1]!==So&&t[2]!==To&&t[3]!==Po?{version:t[1],traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}function Oo(e){return wo(e,32,To)}function xo(e){return wo(e,16,Po)}function Ro(e){return!!(e&&wo(e.version,2,So)&&wo(e.traceId,32,To)&&wo(e.spanId,16,Po)&&wo(Ao(e.traceFlags),2))}var No=or("plugin");function Do(e){return No.get(e,"state",{},!0)}function ko(e,t){for(var n,r=[],o=null,i=e.getNext();i;){var a=i.getPlugin();a&&(o&&ye(o[S])&&ye(a[E])&&o[S](a),(ye(a[T])?a[T]():(n=Do(a))[T])||r.push(a),o=a,i=i.getNext())}Re(r,(function(r){var o=e.core();r.initialize(e.getCfg(),o,t,e.getNext()),n=Do(r),!r[w]&&!n[w]&&(n[w]=o),n[T]=!0,delete n[P]}))}function Mo(e){return e.sort((function(e,t){var n=0;if(t){var r=ye(t[E]);ye(e[E])?n=r?e[b]-t[b]:1:r&&(n=-1)}else n=e?1:-1;return n}))}var jo="TelemetryPluginChain",Lo="_hasRun",Fo="_getTelCtx",Ho=0;function Bo(e,t,n,r){var o=null,i=[];null!==r&&(o=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return Go([n],t.config||{},t)}(e,n,r):e);var a={_next:function(){var e=o;if(o=e?e.getNext():null,!e){var t=i;t&&t.length>0&&(Re(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Rn(n.logger,2,73,"Unexpected Exception during onComplete - "+hn(e))}})),i=[])}return e},ctx:{core:function(){return n},diagLog:function(){return In(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var o,i=s(e,null);return i&&!he(i[n])?o=i[n]:t&&!he(t[n])&&(o=t[n]),he(o)?r:o},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){for(var t;t=a._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&i.push({func:e,self:fe(t)?a.ctx:t,args:n})}}};function s(e,n,r){var o;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var i=t.extensionConfig;i&&e&&(o=i[e])}if(o){if(me(n)&&0!==r){var a=et(!0,n,o);t&&2===r&&Ee(n,(function(e){if(he(a[e])){var n=t[e];he(n)||(a[e]=n)}})),o=a}}else o=n;return o}return a}function Uo(e,t,n,r){var o=Bo(e,t,n,r),i=o.ctx;return i.processNext=function(e){var t=o._next();return t&&t.processTelemetry(e,i),!t},i.createNew=function(e,r){return void 0===e&&(e=null),Pe(e)&&(e=Go(e,t,n,r)),Uo(e||i.getNext(),t,n,r)},i}function Vo(e,t,n){var r=t.config||{},o=Bo(e,r,t,n),i=o.ctx;return i.processNext=function(e){var t=o._next();return t&&t.unload(i,e),!t},i.createNew=function(e,n){return void 0===e&&(e=null),Pe(e)&&(e=Go(e,r,t,n)),Vo(e||i.getNext(),t,n)},i}function $o(e,t,n){var r=t.config||{},o=Bo(e,r,t,n).ctx;return o.processNext=function(e){return o.iterate((function(t){ye(t.update)&&t.update(o,e)}))},o.createNew=function(e,n){return void 0===e&&(e=null),Pe(e)&&(e=Go(e,r,t,n)),$o(e||o.getNext(),t,n)},o}function Go(e,t,n,r){var o=null,i=!r;if(Pe(e)&&e.length>0){var a=null;Re(e,(function(e){if(!i&&r===e&&(i=!0),i&&e&&ye(e.processTelemetry)){var s=function(e,t,n){var r,o=null,i=ye(e.processTelemetry),a=ye(e.setNextPlugin),s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:function(r,u){c(u=u||function(){var r;return e&&ye(e[Fo])&&(r=e[Fo]()),r||(r=Uo(s,t,n)),r}(),(function(t){if(!e||!i)return!1;var n=Do(e);return!n.teardown&&!n[A]&&(a&&e.setNextPlugin(o),e.processTelemetry(r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||u.processNext(r)},unload:function(t,n){c(t,(function(){var r=!1;if(e){var o=Do(e),i=e[w]||o.core;e&&(!i||i===t[w]())&&!o[P]&&(o[w]=null,o[P]=!0,o[T]=!1,e[P]&&!0===e[P](t,n)&&(r=!0))}return r}),"unload",(function(){}),n.isAsync)||t.processNext(n)},update:function(t,n){c(t,(function(){var r=!1;if(e){var o=Do(e),i=e[w]||o.core;e&&(!i||i===t[w]())&&!o[P]&&e[C]&&!0===e[C](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t.processNext(n)},_id:r=e?e.identifier+"-"+e.priority+"-"+Ho++:"Unknown-0-"+Ho++,_setNext:function(e){o=e}};function c(t,n,i,a,s){var c=!1,u=e?e.identifier:jo,l=t[Lo];return l||(l=t[Lo]={}),t.setNext(o),e&&Fn(t[w](),(function(){return u+":"+i}),(function(){l[r]=!0;try{var e=o?o._id:_;e&&(l[e]=!1),c=n(t)}catch(e){var a=!o||l[o._id];a&&(c=!0),(!o||!a)&&Rn(t.diagLog(),1,73,"Plugin ["+u+"] failed during "+i+" - "+hn(e)+", run flags: "+hn(l))}}),a,s),c}return Ve(s)}(e,t,n);o||(o=s),a&&a._setNext(s),a=s}}))}return r&&!o?Go([r],t,n):o}var qo="extensionConfig",zo=500;function Wo(e,t,n,r){t&&Pe(t)&&t.length>0&&(Re(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<zo&&Qe("Channel has invalid priority - "+e.identifier)})),e.push({queue:Ve(t),chain:Go(t,n,r)}))}function Ko(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){Re(e,(function(e){try{e(t,n)}catch(e){Rn(t.diagLog(),2,73,"Unexpected error calling unload handler - "+hn(e))}})),e=[]}}}var Xo="getPlugin",Qo=function e(){var t,n,r,o,i,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var o=n||Uo(null,{},a.core);t=r&&r[Xo]?o.createNew(null,r[Xo]):o.createNew(null,r)}return t}function c(e,t,o){e&&ze(e,qo,[],null,he),!o&&t&&(o=t.getProcessTelContext().getNext());var i=r;r&&r[Xo]&&(i=r[Xo]()),a.core=t,n=Uo(o,e,t,i)}function u(){t=!1,a.core=null,n=null,r=null,i=[],o=Ko()}u(),Nt(e,a,(function(e){e.initialize=function(e,n,r,o){c(e,n,o),t=!0},e.teardown=function(t,n){var a=e.core;if(a&&(!t||a===t.core())){var s,c=!1,l=t||Vo(null,a,r&&r[Xo]?r[Xo]():r),p=n||{reason:0,isAsync:!1};return e[I]&&!0===e[I](l,p,d)?s=!0:d(),s}function d(){c||(c=!0,o.run(l,n),Re(i,(function(e){e.rm()})),i=[],!0===s&&l.processNext(p),u())}},e.update=function(t,n){var o=e.core;if(o&&(!t||o===t.core())){var i,a=!1,s=t||$o(null,o,r&&r[Xo]?r[Xo]():r),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,u,l)?i=!0:l(),i}function l(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(Pe(e)?i=i.concat(e):i.push(e))},Je(e,"_addUnloadCb",(function(){return o}),"add")})),a.diagLog=function(e){return s(e).diagLog()},a[T]=function(){return t},a.setInitialized=function(e){t=e},a[S]=function(e){r=e},a.processNext=function(e,t){t?t.processNext(e):r&&ye(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s},Yo=function(e){function t(){var n,r,o=e.call(this)||this;function i(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,i(),Nt(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){Re(r,(function(e,n){if(e.id===t.id)return r.splice(n,1),-1}))}}},e.processTelemetry=function(t,n){for(var o=!1,i=r.length,a=0;a<i;++a){var s=r[a];if(s)try{if(!1===s.fn.apply(null,[t])){o=!0;break}}catch(e){Rn(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+qe(e),{exception:hn(e)},!0)}}o||e.processNext(t,n)},e[I]=function(){i()}})),o}return m(t,e),t}(Qo),Jo="Plugins must provide initialize method",Zo="_notificationManager",ei="SDK is still unloading...",ti={loggingLevelConsole:1};function ni(e,t){return new jn(t)}function ri(e,t){var n=!1;return Re(t,(function(t){if(t===e)return n=!0,-1})),n}var oi=function e(){var t,n,r,o,i,a,s,c,u,l,p,d,f,h,g,m,_,E,b,S=0;Nt(e,this,(function(e){function T(){t=!1,e.config=et(!0,{},ti),e.logger=new On(e.config),e._extensions=[],h=new Yo,n=[],r=null,o=null,i=null,a=null,s=null,u=null,c=[],l=null,p=null,d=null,f=!1,g=null,m=rr("AIBaseCore",!0),_=Ko(),b=null}function w(){return Uo(N(),e.config,e)}function C(t,n){var r=function(e,t,n){var r=[],o={};return Re(n,(function(t){(he(t)||he(t.initialize))&&Qe(Jo);var n=t.priority,i=t.identifier;t&&n&&(he(o[n])?o[n]=i:Nn(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+i)),(!n||n<500)&&r.push(t)})),{all:n,core:r}}(e.logger,0,c);u=r.core,s=null;var o=r.all;if(d=Ve(function(e,t,n,r){var o=[];if(e&&Re(e,(function(e){return Wo(o,e,n,r)})),t){var i=[];Re(t,(function(e){e.priority>zo&&i.push(e)})),Wo(o,i,n,r)}return o}(p,o,t,e)),l){var i=Ne(o,l);-1!==i&&o.splice(i,1),-1!==(i=Ne(u,l))&&u.splice(i,1),l._setQueue(d)}else l=function(e,t){var n;function r(){return Uo(null,t.config,t,null)}function o(e,t,n,r){var o=e?e.length+1:1;function i(){0==--o&&(r&&r(),r=null)}o>0&&Re(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,a=t.createNew(r);a.onComplete(i),n(a)}else o--})),i()}var i=!1;return(n={identifier:"ChannelControllerPlugin",priority:zo,initialize:function(t,n,r,o){i=!0,Re(e,(function(e){e&&e.queue.length>0&&ko(Uo(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,n){o(e,n||r(),(function(e){e[O](t)}),(function(){n[O](t)}))},update:function(t,n){var r=n||{reason:0};return o(e,t,(function(e){e[O](r)}),(function(){t[O](r)})),!0}})[R]=function(){o(e,r(),(function(e){e.iterate((function(e){e[R]&&e[R]()}))}),null)},n[x]=function(){o(e,r(),(function(e){e.iterate((function(e){e[x]&&e[x]()}))}),null)},n[P]=function(t,n){var r=n||{reason:0,isAsync:!1};return o(e,t,(function(e){e[O](r)}),(function(){t[O](r),i=!1})),!0},n.getChannel=function(t){var n=null;return e&&e.length>0&&Re(e,(function(e){if(e&&e.queue.length>0&&(Re(e.queue,(function(e){if(e.identifier===t)return n=e,-1})),n))return-1})),n},n.flush=function(t,n,i,a){var s=1,c=!1,u=null;function l(){s--,c&&0===s&&(u&&(clearTimeout(u),u=null),n&&n(c),n=null)}return a=a||5e3,o(e,r(),(function(e){e.iterate((function(e){if(e.flush){s++;var n=!1;e.flush(t,(function(){n=!0,l()}),i)||n||(t&&null==u?u=setTimeout((function(){u=null,l()}),a):l())}}))}),(function(){c=!0,l()})),!0},n._setQueue=function(t){e=t},n}(d,e);o.push(l),u.push(l),e._extensions=Mo(o),l.initialize(t,e,o),ko(w(),o),e._extensions=Ve(Mo(u||[])).slice(),n&&function(t){var n=$o(N(),e);(!e._updateHook||!0!==e._updateHook(n,t))&&n.processNext(t)}(n)}function I(t){var n=null,r=null;return Re(e._extensions,(function(e){if(e.identifier===t&&e!==l&&e!==h)return r=e,-1})),!r&&l&&(r=l.getChannel(t)),r&&(n={plugin:r,setEnabled:function(e){Do(r)[A]=!e},isEnabled:function(){var e=Do(r);return!e[P]&&!e[A]},remove:function(t,n){void 0===t&&(t=!0);var o=[r];F(o,{reason:1,isAsync:t},(function(t){t&&C(e.config,{reason:32,removed:o}),n&&n(t)}))}}),n}function N(){if(!s){var t=(u||[]).slice();-1===Ne(t,h)&&t.push(h),s=Go(Mo(t),e.config,e)}return s}function F(t,n,r){if(t&&t.length>0){var o=Vo(Go(t,e.config,e),e);o.onComplete((function(){var e=!1,n=[];Re(c,(function(r,o){ri(r,t)?e=!0:n.push(r)})),c=n;var o=[];p&&(Re(p,(function(n,r){var i=[];Re(n,(function(n){ri(n,t)?e=!0:i.push(n)})),o.push(i)})),p=o),r&&r(e)})),o.processNext(n)}else r(!1)}function H(){var t=e.logger?e.logger.queue:[];t&&(Re(t,(function(t){var n={name:g||"InternalMessageId: "+t.messageId,iKey:e.config.instrumentationKey,time:xe(new Date),baseType:An.dataType,baseData:{message:t.message}};e.track(n)})),t.length=0)}function B(e,t,n,r){return l?l.flush(e,t,n||6,r):(t&&t(!1),!0)}function U(t){var n=e.logger;n?Rn(n,2,73,t):Qe(t)}T(),e.isInitialized=function(){return t},e.initialize=function(n,o,a,s){f&&Qe(ei),e.isInitialized()&&Qe("Core should not be initialized more than once"),(!n||he(n.instrumentationKey))&&Qe("Please provide instrumentation key"),r=s,e[Zo]=s,e.config=n||{},function(e){!0===e.disableDbgExt&&E&&(r[k](E),E=null),r&&!E&&!0!==e.disableDbgExt&&(E=Pn(e),r[D](E))}(n),function(t){!t.enablePerfMgr&&i&&(i=null),t.enablePerfMgr&&ze(e.config,"createPerfMgr",ni)}(n),n.extensions=he(n.extensions)?[]:n.extensions,function(e){We(e,qo).NotificationManager=r}(n),a&&(e.logger=a),(c=[]).push.apply(c,y(y([],o),n.extensions)),p=(n||{}).channels,C(n,null),(!d||0===d.length)&&Qe("No channels available"),t=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return d&&Re(d,(function(t){e.push(t.queue)})),Ve(e)},e.track=function(t){ze(t,"iKey",e.config.instrumentationKey,null,Ke),ze(t,"time",xe(new Date),null,Ke),ze(t,"ver","4.0",null,he),!f&&e.isInitialized()?w().processNext(t):n.push(t)},e.getProcessTelContext=w,e.getNotifyMgr=function(){return r||(r=function(){var e;return v(((e={})[D]=function(e){},e[k]=function(e){},e[M]=function(e){},e[j]=function(e,t){},e[L]=function(e,t){},e))}(),e[Zo]=r),r},e[D]=function(e){r&&r[D](e)},e[k]=function(e){r&&r[k](e)},e.getCookieMgr=function(){return a||(a=br(e.config,e.logger)),a},e.setCookieMgr=function(e){a=e},e.getPerfMgr=function(){return!o&&!i&&e.config&&e.config.enablePerfMgr&&ye(e.config.createPerfMgr)&&(i=e.config.createPerfMgr(e,e.getNotifyMgr())),o||i||Hn()},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return n.length},e.releaseQueue=function(){if(t&&n.length>0){var e=n;n=[],Re(e,(function(e){w().processNext(e)}))}},e.pollInternalLogs=function(t){g=t||null;var n=e.config.diagnosticLogInterval;return(!n||!(n>0))&&(n=1e4),S&&clearInterval(S),S=setInterval((function(){H()}),n)},e.stopPollingInternalLogs=function(){S&&(clearInterval(S),S=0,H())},Ze(e,(function(){return h}),["addTelemetryInitializer"]),e.unload=function(n,r,o){void 0===n&&(n=!0),t||Qe("SDK is not initialized"),f&&Qe(ei);var i={reason:50,isAsync:n,flushComplete:!1},a=Vo(N(),e);function s(t){i.flushComplete=t,f=!0,_.run(a,i),e.stopPollingInternalLogs(),a.processNext(i)}a.onComplete((function(){T(),r&&r(i)}),e),B(n,s,6,o)||s(!1)},e.getPlugin=I,e.addPlugin=function(t,n,r,o){if(!t)return o&&o(!1),void U(Jo);var i=I(t.identifier);if(i&&!n)return o&&o(!1),void U("Plugin ["+t.identifier+"] is already loaded!");var a={reason:16};function s(n){c.push(t),a.added=[t],C(e.config,a),o&&o(!0)}if(i){var u=[i.plugin];F(u,{reason:2,isAsync:!!r},(function(e){e?(a.removed=u,a.reason|=32,s()):o&&o(!1)}))}else s()},e.evtNamespace=function(){return m},e.flush=B,e.getTraceCtx=function(e){return b||(b=function(){var e={};return{getName:function(){return e.name},setName:function(t){e.name=t},getTraceId:function(){return e.traceId},setTraceId:function(t){Oo(t)&&(e.traceId=t)},getSpanId:function(){return e.spanId},setSpanId:function(t){xo(t)&&(e.spanId=t)},getTraceFlags:function(){return e.traceFlags},setTraceFlags:function(t){e.traceFlags=t}}}()),b},e.setTraceCtx=function(e){b=e||null},Je(e,"addUnloadCb",(function(){return _}),"add")}))};function ii(e,t,n,r){Re(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch{}}))}var ai=function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;Nt(e,this,(function(e){e[D]=function(t){e.listeners.push(t)},e[k]=function(t){for(var n=Ne(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Ne(e.listeners,t)},e[M]=function(t){ii(e.listeners,M,!0,(function(e){e[M](t)}))},e[j]=function(t,n){ii(e.listeners,j,!0,(function(e){e[j](t,n)}))},e[L]=function(t,n){ii(e.listeners,L,n,(function(e){e[L](t,n)}))},e[F]=function(t){t&&(n||!t.isChildEvt())&&ii(e.listeners,F,!1,(function(e){t.isAsync?setTimeout((function(){return e[F](t)}),0):e[F](t)}))}}))},si=function(e){function t(){var n=e.call(this)||this;return Nt(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}e.initialize=function(e,n,r,o){t.initialize(e,n,r||new On(e),o||new ai(e))},e.track=function(r){Fn(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Qe("Invalid telemetry item")),function(e){he(e.name)&&(n(e),Qe("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return m(t,e),t}(oi),ci=tt({CRITICAL:1,WARNING:2}),ui=tt({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105,InstrumentationKeyDeprecation:106}),li="_aiHooks",pi=["req","rsp","hkErr","fnErr"];function di(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function fi(e,t,n,r,o){o>=0&&o<=2&&di(e,(function(e,i){var a=e.cbks,s=a[pi[o]];if(s){t.ctx=function(){return r[i]=r[i]||{}};try{s.apply(t.inst,n)}catch(e){var c=t.err;try{var u=a[pi[2]];u&&(t.err=e,u.apply(t.inst,n))}catch{}finally{t.err=c}}}}))}function hi(e,t,n){var r=null;return e&&(ge(e,t)?r=e:n&&(r=hi(pe(e),t,!1))),r}function vi(e,t,n,r){var o=n&&n[li];if(!o){var i=function(e){return function(){var t=arguments,n=e.h,r={name:e.n,inst:this,ctx:null,set:function(e,n){(t=a([],t))[e]=n,i=a([r],t)}},o=[],i=a([r],t);function a(e,t){return di(t,(function(t){e.push(t)})),e}r.evt=Yt("event"),fi(n,r,i,o,0);var s=e.f;if(s)try{r.rslt=s.apply(this,t)}catch(e){throw r.err=e,fi(n,r,i,o,3),e}return fi(n,r,i,o,1),r.rslt}}(o={i:0,n:t,f:n,h:[]});i[li]=o,e[t]=i}var a={id:o.i,cbks:r,rm:function(){var e=this.id;di(o.h,(function(t,n){if(t.id===e)return o.h.splice(n,1),1}))}};return o.i++,o.h.push(a),a}function gi(e,n,r,o){if(void 0===o&&(o=!0),e&&n&&r){var i=hi(e,n,o);if(i){var a=i[n];if(typeof a===t)return vi(i,n,a,r)}}return null}function mi(e,t,n,r){void 0===r&&(r=!0);var o=null;return di(t,(function(t){var i=gi(e,t,n,r);i&&(o||(o=[]),o.push(i))})),o}e.AppInsightsCore=si,e.BaseCore=oi,e.BaseTelemetryPlugin=Qo,e.CoreUtils=vo,e.DiagnosticLogger=On,e.EventHelper=mo,e.EventsDiscardedReason=nt,e.InstrumentEvent=function(e,t,n,r){if(e&&t&&n){var o=hi(e,t,r)||e;if(o)return vi(o,t,o[t],n)}return null},e.InstrumentFunc=gi,e.InstrumentFuncs=mi,e.InstrumentProto=function(e,t,n){return e?gi(e[o],t,n,!1):null},e.InstrumentProtos=function(e,t,n){return e?mi(e[o],t,n,!1):null},e.LoggingSeverity=ci,e.MinChannelPriorty=100,e.NotificationManager=ai,e.PerfEvent=Mn,e.PerfManager=jn,e.ProcessTelemetryContext=function(e,t,n,r){var o=Uo(e,t,n,r);Ze(this,o,Fe(o))},e.Undefined=lo,e._InternalLogMessage=An,e._InternalMessageId=ui,e.__getRegisteredEvents=function(e,t,n){var r=[],o=qr.get(e,kr,{},!1),i=Kr(t,n);return Ee(o,(function(e,t){Re(t,(function(e){(!i.type||i.type===e.evtName.type)&&(!i.ns||i.ns==i.ns)&&r.push({name:e.evtName.type+(e.evtName.ns?"."+e.evtName.ns:""),handler:e.handler})}))})),r},e._legacyCookieMgr=yo,e._logInternalMessage=function(e,t,n){xn(e).logInternalMessage(t,n)},e._throwInternal=Rn,e._warnToConsole=Nn,e.addEventHandler=ro,e.addEventListeners=ao,e.addPageHideEventListener=function e(t,n,r){var o=Jr(Br,r),i=io([jr],t,n,o);return(!n||-1===Ne(n,Mr))&&(i=io([Mr],(function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)}),n,o)||i),!i&&n&&(i=e(t,null,r)),i},e.addPageShowEventListener=function e(t,n,r){var o=Jr(Ur,r),i=io([Lr],t,n,o);return!(i=io([Mr],(function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)}),n,o)||i)&&n&&(i=e(t,null,r)),i},e.addPageUnloadEventListener=function(e,t,n){return ao([Hr,Fr,jr],e,t,n)},e.areCookiesSupported=Sr,e.arrForEach=Re,e.arrIndexOf=Ne,e.arrMap=De,e.arrReduce=ke,e.attachEvent=to,e.canUseCookies=function(e){return yo(null,e).isEnabled()},e.createClassFromInterface=function(e){return function(){var t=this;e&&Ee(e,(function(e,n){t[e]=n}))}},e.createCookieMgr=br,e.createEnumMap=function(e){var t={};return Ee(e,(function(e,n){t[e]=e,t[n]=e})),Ue(t)},e.createEnumStyle=tt,e.createProcessTelemetryContext=Uo,e.createTraceParent=function(e,t,n,r){return{version:wo(r,2,So)?r:bo,traceId:Oo(e)?e:ho(),spanId:xo(t)?t:ho().substr(0,16),traceFlags:n>=0&&n<=255?n:1}},e.createUniqueNamespace=rr,e.createUnloadHandlerContainer=Ko,e.createValueMap=function(e){var t={};return Ee(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),Ue(t)},e.dateNow=Ge,e.deepFreeze=Ue,e.deleteCookie=function(e,t){return yo(null,e).del(t)},e.detachEvent=no,e.disableCookies=_o,e.doPerf=Fn,e.dumpObj=hn,e.eventOff=eo,e.eventOn=Zr,e.findMetaTag=mn,e.findNamedServerTiming=yn,e.findW3cTraceParent=function(){var e="traceparent",t=Io(mn(e));return t||(t=Io(yn(e))),t},e.formatTraceParent=function(e){if(e){var t=Ao(e.traceFlags);wo(t,2)||(t="01");var n=e.version||bo;return"00"!==n&&"ff"!==n&&(n=bo),"".concat(n,"-").concat(Co(e.traceId,32,To),"-").concat(Co(e.spanId,16,Po),"-").concat(t)}return""},e.generateW3CId=ho,e.getConsole=sn,e.getCookie=function(e,t){return yo(null,e).get(t)},e.getCrypto=pn,e.getDebugExt=Tn,e.getDebugListener=Pn,e.getDocument=tn,e.getExceptionName=qe,e.getGblPerfMgr=Hn,e.getGlobal=f,e.getGlobalInst=Yt,e.getHistory=function(){return on()?history:Yt("history")},e.getIEVersion=function(e){if(void 0===e&&(e=null),!e){var t=rn()||{};e=t?(t.userAgent||_).toLowerCase():_}var n=(e||_).toLowerCase();if(Se(n,Vt)){var r=tn()||{};return Math.max(parseInt(n.split(Vt)[1]),r.documentMode||0)}if(Se(n,$t)){var o=parseInt(n.split($t)[1]);if(o)return o+4}return null},e.getJSON=ln,e.getLocation=an,e.getMsCrypto=dn,e.getNavigator=rn,e.getPerformance=cn,e.getSetValue=We,e.getWindow=Zt,e.hasDocument=en,e.hasHistory=on,e.hasJSON=un,e.hasNavigator=nn,e.hasOwnProperty=ge,e.hasWindow=Jt,e.initializePlugins=ko,e.isArray=Pe,e.isBeaconsSupported=function(){return null===Xt&&(Xt=nn()&&Boolean(rn().sendBeacon)),Xt},e.isBoolean=Ie,e.isDate=Te,e.isError=we,e.isFetchSupported=function(e){var t=!1;try{t=!!Yt("fetch");var n=Yt("Request");t&&e&&n&&(t=Qt(n,"keepalive"))}catch{}return t},e.isFunction=ye,e.isIE=fn,e.isNotNullOrUndefined=ve,e.isNotTruthy=Ke,e.isNotUndefined=function(e){return!fe(e)},e.isNullOrUndefined=he,e.isNumber=Ae,e.isObject=me,e.isReactNative=function(){var e=rn();return!(!e||!e.product)&&"ReactNative"===e.product},e.isSafari=function(e){if(!e||!Ce(e)){var t=rn()||{};e=t?(t.userAgent||_).toLowerCase():_}return(e||_).toLowerCase().indexOf("safari")>=0},e.isSampledFlag=function(e){return!(!Ro(e)||1&~e.traceFlags)},e.isString=Ce,e.isSymbol=function(e){return"symbol"==typeof e},e.isTruthy=Xe,e.isTypeof=de,e.isUndefined=fe,e.isValidSpanId=xo,e.isValidTraceId=Oo,e.isValidTraceParent=Ro,e.isXhrSupported=vn,e.mergeEvtNamespace=Jr,e.mwcRandom32=Qn,e.mwcRandomSeed=Xn,e.newGuid=po,e.newId=Yn,e.normalizeJsName=_e,e.objCreate=v,e.objDefineAccessors=He,e.objExtend=et,e.objForEachKey=Ee,e.objFreeze=Ve,e.objKeys=Fe,e.objSeal=$e,e.objToString=function(e){return oe.call(e)},e.optimizeObject=function(e){return e&&c&&(e=a(c({},e))),e},e.parseTraceParent=Io,e.perfNow=fo,e.proxyAssign=function(e,t,n){if(e&&t&&me(e)&&me(t)){var r=function(r){if(Ce(r)){var o=t[r];ye(o)?(!n||n(r,!0,t,e))&&(e[r]=Ye(t,r)):(!n||n(r,!1,t,e))&&(ge(e,r)&&delete e[r],He(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=o))}};for(var o in t)r(o)}return e},e.proxyFunctionAs=Je,e.proxyFunctions=Ze,e.random32=Kn,e.randomValue=Wn,e.removeEventHandler=oo,e.removeEventListeners=so,e.removePageHideEventListener=function(e,t){var n=Jr(Br,t);so([jr],e,n),so([Mr],null,n)},e.removePageShowEventListener=function(e,t){var n=Jr(Ur,t);so([Lr],e,n),so([Mr],null,n)},e.removePageUnloadEventListener=function(e,t){so([Hr,Fr,jr],e,t)},e.safeGetCookieMgr=function(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r[dr]?r[dr]:br(t)}return n||(n=_r(t,(e||{}).logger)),n},e.safeGetLogger=In,e.setCookie=function(e,t,n,r){yo(null,e).set(t,n,null,r)},e.setEnableEnvMocks=function(e){Wt=e},e.setGblPerfMgr=function(e){kn=e},e.setValue=ze,e.sortPlugins=Mo,e.strContains=Se,e.strEndsWith=be,e.strFunction=t,e.strObject=n,e.strPrototype=o,e.strStartsWith=function(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=te?e[U](t):function(e,t){var n=!1,r=t?t.length:0;if(e&&r&&e.length>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}(e,t)),n},e.strTrim=Me,e.strUndefined=r,e.throwError=Qe,e.toISOString=xe,e.uaDisallowsSameSiteNone=Ir,e.unloadComponents=function(e,t,n,r){var o=0;return function r(){for(;o<e.length;){var i=e[o++];if(i){var a=i._doUnload||i[I];if(ye(a)&&!0===a.call(i,t,n,r))return!0}}}()},e.useXDomainRequest=function(){return null===Kt&&(Kt=typeof XDomainRequest!==r)&&vn()&&(Kt=Kt&&!Qt(Yt(Gt),"withCredentials")),Kt},function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(o=[t],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i))})),w=E(((o,a)=>{var s;s=function(){"use strict";var e="constructor",t="prototype",n="function",r="_dynInstFuncs",o="_isDynProxy",i="_dynClass",a="_dynInstChk",s=a,c="_dfOpts",u="_unknown_",l="__proto__",p="_dyn"+l,d="_dynInstProto",f="useBaseInst",h="setInstFuncs",v=Object,g=v.getPrototypeOf,m=v.getOwnPropertyNames,y=0;function _(e,n){return e&&v[t].hasOwnProperty.call(e,n)}function E(e){return e&&(e===v[t]||e===Array[t])}function b(e){return E(e)||e===Function[t]}function S(n){var r;if(n){if(g)return g(n);var o=n[l]||n[t]||(n[e]?n[e][t]:null);r=n[p]||o,_(n,p)||(delete n[d],r=n[p]=n[d]||n[p],n[d]=o)}return r}function T(e,t){var n=[];if(m)n=m(e);else for(var r in e)"string"==typeof r&&_(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function P(t,r,o){return r!==e&&typeof t[r]===n&&(o||_(t,r))}function w(e){throw new TypeError("DynamicProto: "+e)}function C(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function A(e,t,c,u,l){if(!E(e)){var p=c[r]=c[r]||{},d=p[t]=p[t]||{};!1!==p[s]&&(p[s]=!!l),T(c,(function(t){P(c,t,!1)&&c[t]!==u[t]&&(d[t]=c[t],delete c[t],(!_(e,t)||e[t]&&!e[t][o])&&(e[t]=function(e,t){var c=function(){var o=function(e,t,o,c){var u=null;if(e&&_(o,i)){var l=e[r]||{};if((u=(l[o[i]]||{})[t])||w("Missing ["+t+"] "+n),!u[a]&&!1!==l[s]){for(var p=!_(e,t),d=S(e),f=[];p&&d&&!b(d)&&!C(f,d);){var h=d[t];if(h){p=h===c;break}f.push(d),d=S(d)}try{p&&(e[t]=u),u[a]=1}catch{l[s]=!1}}}return u}(this,t,e,c)||function(e,t,r){var o=t[e];return o===r&&(o=S(t)[e]),typeof o!==n&&w("["+e+"] is not a "+n),o}(t,e,c);return o.apply(this,arguments)};return c[o]=1,c}(e,t)))}))}}function I(n,r){return _(n,t)?n.name||r||u:((n||{})[e]||{}).name||r||u}function O(e,n,a,u){_(e,t)||w("theClass is an invalid class definition.");var l=e[t];(function(e,t){if(g){for(var n=[],r=S(t);r&&!b(r)&&!C(n,r);){if(r===e)return!0;n.push(r),r=S(r)}return!1}return!0})(l,n)||w("["+I(e)+"] is not in class hierarchy of ["+I(n)+"]");var p=null;_(l,i)?p=l[i]:(p="_dynCls$"+I(e,"_")+"$"+y,y++,l[i]=p);var d=O[c],v=!!d[f];v&&u&&void 0!==u[f]&&(v=!!u[f]);var m=function(e){var t={};return T(e,(function(n){!t[n]&&P(e,n,!1)&&(t[n]=e[n])})),t}(n),E=function(e,t,n,a){function c(e,t,n){var c=t[n];if(c[o]&&a){var u=e[r]||{};!1!==u[s]&&(c=(u[t[i]]||{})[n]||c)}return function(){return c.apply(e,arguments)}}var u={};T(n,(function(e){u[e]=c(t,n,e)}));for(var l=S(e),p=[];l&&!b(l)&&!C(p,l);)T(l,(function(e){!u[e]&&P(l,e,!g)&&(u[e]=c(t,l,e))})),p.push(l),l=S(l);return u}(l,n,m,v);a(n,E);var x=!!g&&!!d[h];x&&u&&(x=!!u[h]),A(l,p,n,m,!1!==x)}return O[c]={setInstFuncs:!0,useBaseInst:!0},O},"object"==typeof o&&typeof a<"u"?a.exports=s():void 0===(i="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=i)})),C=E(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var o,i,a=(i=r)&&"object"==typeof i&&"default"in i?i.default:i,s=n.createEnumStyle({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),c=n.createEnumStyle({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),u=n.createEnumStyle({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),l=n.createEnumStyle({Normal:1,Critical:2}),p=n.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),d=n.objFreeze(t.__assignFn(t.__assignFn({},n._InternalMessageId),n.createEnumStyle({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),f="3.2.3",h="1DS-Web-JS-"+f,v="withCredentials",g=((o={})[0]=0,o[2]=6,o[1]=1,o[3]=7,o[4098]=6,o[4097]=1,o[4099]=7,o),m=null,y=Boolean(n.getDocument()),_=Boolean(n.getWindow());function E(e){return!(""===e||n.isNullOrUndefined(e))}function b(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function S(){return null===m&&(m=!n.isUndefined(Uint8Array)&&!function(){var e=n.getNavigator();if(!n.isUndefined(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!n.isReactNative()),m}function T(e){return!!(e&&n.isNumber(e)&&e>=1&&e<=4)}function P(e,t,r){if(!t&&!E(t)||"string"!=typeof e)return null;var o=typeof t;if("string"===o||"number"===o||"boolean"===o||n.isArray(t))t={value:t};else if("object"!==o||t.hasOwnProperty("value")){if(n.isNullOrUndefined(t.value)||""===t.value||!n.isString(t.value)&&!n.isNumber(t.value)&&!n.isBoolean(t.value)&&!n.isArray(t.value))return null}else t={value:r?JSON.stringify(t):t};if(n.isArray(t.value)&&!M(t.value))return null;if(!n.isNullOrUndefined(t.kind)){if(n.isArray(t.value)||!k(t.kind))return null;t.value=t.value.toString()}return t}function w(e,t,r){var o=-1;if(!n.isUndefined(e))if(t>0&&(32===t?o=8192:t<=13&&(o=t<<5)),function(e){return e>=0&&e<=9}(r))-1===o&&(o=0),o|=r;else{var i=g[L(e)]||-1;-1!==o&&-1!==i?o|=i:6===i&&(o=i)}return o}function C(){n.safeGetCookieMgr(null).setEnabled(!1)}function A(e,t,r){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).set(e,t,86400*r,null,"/")}function I(e){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).del(e)}function O(e){return n.areCookiesSupported(null)?x(n.safeGetCookieMgr(null),e):""}function x(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function R(e){void 0===e&&(e="D");var t=n.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function N(e,t,r,o,i){var a={},s=!1,c=0,u=arguments.length,l=arguments;for("[object Boolean]"===Object[n.strPrototype].toString.call(l[0])&&(s=l[0],c++);c<u;c++)e=l[c],n.objForEachKey(e,(function(e,t){s&&t&&n.isObject(t)?n.isArray(t)?(a[e]=a[e]||[],n.arrForEach(t,(function(t,r){t&&n.isObject(t)?a[e][r]=N(!0,a[e][r],t):a[e][r]=t}))):a[e]=N(!0,a[e],t):a[e]=t}));return a}var D=n.perfNow;function k(e){return 0===e||e>0&&e<=13||32===e}function M(e){return e.length>0}function j(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=D()}function L(e){var r=0;if(null!=e){var o=typeof e;"string"===o?r=1:"number"===o?r=2:"boolean"===o?r=3:o===t.strShimObject&&(r=4,n.isArray(e)?(r=4096,e.length>0&&(r|=L(e[0]))):n.hasOwnProperty(e,"value")&&(r=8192|L(e.value)))}return r}var F={Version:f,FullVersionString:h,strUndefined:n.strUndefined,strObject:n.strObject,Undefined:n.strUndefined,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,objKeys:n.objKeys,toISOString:n.toISOString,isReactNative:n.isReactNative,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,isFunction:n.isFunction,isArray:n.isArray,isObject:n.isObject,strTrim:n.strTrim,isDocumentObjectAvailable:y,isWindowObjectAvailable:_,isValueAssigned:E,getTenantId:b,isBeaconsSupported:n.isBeaconsSupported,isUint8ArrayAvailable:S,isLatency:T,sanitizeProperty:P,getISOString:n.toISOString,useXDomainRequest:n.useXDomainRequest,getCommonSchemaMetaData:w,cookieAvailable:n.areCookiesSupported,disallowsSameSiteNone:n.uaDisallowsSameSiteNone,setCookie:A,deleteCookie:I,getCookie:O,createGuid:R,extend:N,getTime:D,isValueKind:k,isArrayValid:M,objDefineAccessors:n.objDefineAccessors,addPageUnloadEventListener:n.addPageUnloadEventListener,setProcessTelemetryTimings:j,addEventHandler:n.addEventHandler,getFieldValueType:L,strEndsWith:n.strEndsWith,objForEachKey:n.objForEachKey},H={_canUseCookies:void 0,isTypeof:n.isTypeof,isUndefined:n.isUndefined,isNullOrUndefined:n.isNullOrUndefined,hasOwnProperty:n.hasOwnProperty,isFunction:n.isFunction,isObject:n.isObject,isDate:n.isDate,isArray:n.isArray,isError:n.isError,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,toISOString:n.toISOString,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,strTrim:n.strTrim,objCreate:t.objCreateFn,objKeys:n.objKeys,objDefineAccessors:n.objDefineAccessors,addEventHandler:n.addEventHandler,dateNow:n.dateNow,isIE:n.isIE,disableCookies:C,newGuid:n.newGuid,perfNow:n.perfNow,newId:n.newId,randomValue:n.randomValue,random32:n.random32,mwcRandomSeed:n.mwcRandomSeed,mwcRandom32:n.mwcRandom32,generateW3CId:n.generateW3CId},B="version",U="properties",V=function(e){function r(){var t=e.call(this)||this;return t.pluginVersionStringArr=[],t.pluginVersionString="",a(r,t,(function(e,t){(!e.logger||!e.logger.queue)&&(e.logger=new n.DiagnosticLogger({loggingLevelConsole:1})),e.initialize=function(r,o,i,a){n.doPerf(e,(function(){return"AppInsightsCore.initialize"}),(function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var s=r.propertyStorageOverride;if(s&&(!s.getProperty||!s.setProperty))throw new Error("Invalid property storage override passed.");r.channels&&n.arrForEach(r.channels,(function(t){t&&n.arrForEach(t,(function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}))}))}e.getWParam=function(){return typeof document<"u"?0:-1},o&&n.arrForEach(o,(function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(r,o,i,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,u=n.dumpObj(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),c.throwInternal(1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}}),(function(){return{config:r,extensions:o,logger:i,notificationManager:a}}))},e.track=function(r){n.doPerf(e,(function(){return"AppInsightsCore.track"}),(function(){var n=r;if(n){n.timings=n.timings||{},n.timings.trackStart=D(),T(n.latency)||(n.latency=1);var o=n.ext=n.ext||{};o.sdk=o.sdk||{},o.sdk.ver=h;var i=n.baseData=n.baseData||{};i[U]||(i[U]={});var a=i[U];a[B]||(a[B]=""),""!==e.pluginVersionString&&(a[B]=e.pluginVersionString)}t.track(n)}),(function(){return{item:r}}),!r.sync)}})),t}return t.__extendsFn(r,e),r}(n.AppInsightsCore),$=function(e){function r(){var t=e.call(this)||this;return a(r,t,(function(e,t){e.initialize=function(r,o,i,a){r&&!r.endpointUrl&&(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),e.getWParam=function(){return y?0:-1};try{t.initialize(r,o,i,a)}catch(t){n._throwInternal(e.logger,1,514,"Initialization Failed: "+n.dumpObj(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=h}t.track(n)}})),t}return t.__extendsFn(r,e),r}(n.BaseCore),G=n.isFunction;function q(e,t,n){return function(r){e[t]=r,n()}}var z=function(){function e(t){var n=0,r=null,o=[];function i(){if(o.length>0){var e=o.slice();o=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch{}}),0)}}function s(e){0===n&&(r=e,n=1,i())}function c(e){0===n&&(r=e,n=2,i())}a(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){o.push((function(){var o;try{(o=1===n?G(t)?t(r):r:G(a)?a(r):r)instanceof e?o.then(s,c):2!==n||G(a)?s(o):c(o)}catch(e){return void c(e)}})),0!==n&&i()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!G(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(s,c)}catch(e){c(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&G(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],o=0,i=0;i<t.length;i++){var a=t[i];a&&G(a.then)?(o++,a.then(q(r,i,(function(){0==--o&&e(r)})),n)):r[i]=a}0===o&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var o=t[r];o&&G(o.then)?o.then(e,n):setTimeout((function(){e(o)}),0)},o=0;o<t.length;o++)r(o)}catch(e){n(e)}}))},e}(),W=0,K=[],X=[],Q=[];function Y(){return(new Date).getTime()}var J=function(){function e(t,r){var o=0,i=(t||"<unnamed>")+"."+W;function s(e){var t=n.getGlobal();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+i+"] "+e)}function c(e){r&&r.warnToConsole("ESPromiseScheduler["+i+"] "+e)}W++,a(e,this,(function(e){var t=null,n=0;function r(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,a,u){var l=i+"."+n;n++,a&&(l+="-("+a+")");var p=l+"{"+o+"}";o++;var d,f,h,v={evt:null,tm:Y(),id:p,isRunning:!1,isAborted:!1};return v.evt=t?(d=v,f=t,h=new z((function(e,t){var n=Y()-f.tm,o=f.id;s("["+l+"] is waiting for ["+o+":"+n+" ms] to complete before starting -- ["+X.length+"] waiting and ["+K.length+"] running"),d.abort=function(e){d.abort=null,r(X,l),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){r(X,l),b(d).then(e,t)}),(function(n){r(X,l),b(d).then(e,t)}))})),X.push(d),h):b(v),(t=v).evt._schId=p,v.evt;function g(e){for(var t=Y(),n=t-6e5,r=e.length,o=0;o<r;){var i=e[o];if(i&&i.tm<n){var a=null;i.abort?(a="Aborting ["+i.id+"] due to Excessive runtime ("+(t-i.tm)+" ms)",i.abort(a)):a="Removing ["+i.id+"] due to Excessive runtime ("+(t-i.tm)+" ms)",c(a),e.splice(o,1),r--}else o++}}function m(e,n){var o=!1,i=r(K,e);if(i||(i=r(Q,e),o=!0),i){i.to&&(clearTimeout(i.to),i.to=null);var a=Y()-i.tm;n?o?c("Timed out event ["+e+"] finally complete -- "+a+" ms"):s("Promise ["+e+"] Complete -- "+a+" ms"):(Q.push(i),c("Event ["+e+"] Timed out and removed -- "+a+" ms"))}else s("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),g(K),g(X),g(Q)}function y(e,t){return function(n){return m(e,!0),t&&t(n),n}}function _(e,t,n,r){t.then((function(t){return t instanceof z?(s("Event ["+e+"] returned a promise -- waiting"),_(e,t,n,r),t):y(e,n)(t)}),y(e,r))}function E(e,t){var n=e.id;return new z((function(r,o){s("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,m(n,!1),o(new Error(t))};var i=t(n);i instanceof z?(u&&(e.to=setTimeout((function(){m(n,!1),o(new Error("Timed out after ["+u+"] ms"))}),u)),_(n,i,(function(t){s("Event ["+n+"] Resolving after "+(Y()-e.tm)+" ms"),r(t)}),o)):(s("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function b(t){var n=Y();return t.wTm=n-t.tm,t.tm=n,t.isAborted?z.reject(new Error("["+l+"] was aborted")):(K.push(t),E(t,e))}}}))}return e.incomplete=function(){return K},e.waitingToStart=function(){return X},e}(),Z=function(){function e(e){var t=this,r={},o=[],i=[];function a(e,t){var a,s=r[e];if(s&&(a=s[t]),!a&&null!==a){if(n.isString(e)&&n.isString(t))if(i.length>0){for(var c=0;c<i.length;c++)if(i[c].handleField(e,t)){a={canHandle:!0,fieldHandler:i[c]};break}}else 0===o.length&&(a={canHandle:!0});if(!a&&null!==a)for(a=null,c=0;c<o.length;c++)if(o[c].handleField(e,t)){a={canHandle:!0,handler:o[c],fieldHandler:null};break}s||(s=r[e]={}),s[t]=a}return a}function s(e,t,r,o,i,a){if(e.handler)return e.handler.property(t,r,i,a);if(!n.isNullOrUndefined(i.kind)){if(!(4096&~o&&k(i.kind)))return null;i.value=i.value.toString()}return u(e.fieldHandler,t,r,o,i)}function c(e,t,n){return E(n)?{value:n}:null}function u(e,r,o,i,a){if(a&&e){var s=e.getSanitizer(r,o,i,a.kind,a.propertyType);if(s)if(4===i){var l={},p=a.value;n.objForEachKey(p,(function(t,n){var i=r+"."+o;if(E(n)){var a=c(0,0,n);(a=u(e,i,t,L(n),a))&&(l[t]=a.value)}})),a.value=l}else{var d={path:r,name:o,type:i,prop:a,sanitizer:t};a=s.call(t,d)}}return a}e&&i.push(e),t.addSanitizer=function(e){e&&(o.push(e),r={})},t.addFieldSanitizer=function(e){e&&(i.push(e),r={})},t.handleField=function(e,t){var n=a(e,t);return!!n&&n.canHandle},t.value=function(e,t,r,o){var i=a(e,t);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,t,r,o);if(!n.isString(t)||n.isNullOrUndefined(r)||""===r)return null;var u=null,l=L(r);if(8192&~l)1!==l&&2!==l&&3!==l&&4096&~l?4===l&&(u=c(0,0,o?JSON.stringify(r):r)):u=c(0,0,r);else{var p=-8193&l;if(!E((u=r).value)||1!==p&&2!==p&&3!==p&&4096&~p)return null}if(u)return s(i,e,t,l,u,o)}return null},t.property=function(e,t,r,o){var i=a(e,t);if(!i||!i.canHandle||!n.isString(t)||n.isNullOrUndefined(r)||!E(r.value))return null;var c=L(r.value);return 0===c?null:s(i,e,t,c,r,o)}}return e.getFieldType=L,e}();e.BaseTelemetryPlugin=n.BaseTelemetryPlugin,e.DiagnosticLogger=n.DiagnosticLogger,e.EventHelper=n.EventHelper,e.EventsDiscardedReason=n.EventsDiscardedReason,e.InternalAppInsightsCore=n.AppInsightsCore,e.InternalBaseCore=n.BaseCore,e.LoggingSeverity=n.LoggingSeverity,e.MinChannelPriorty=n.MinChannelPriorty,e.NotificationManager=n.NotificationManager,e.PerfEvent=n.PerfEvent,e.PerfManager=n.PerfManager,e.ProcessTelemetryContext=n.ProcessTelemetryContext,e.Undefined=n.strUndefined,e._InternalLogMessage=n._InternalLogMessage,e._InternalMessageId=n._InternalMessageId,e.__getRegisteredEvents=n.__getRegisteredEvents,e._throwInternal=n._throwInternal,e.addEventHandler=n.addEventHandler,e.addEventListeners=n.addEventListeners,e.addPageHideEventListener=n.addPageHideEventListener,e.addPageShowEventListener=n.addPageShowEventListener,e.addPageUnloadEventListener=n.addPageUnloadEventListener,e.areCookiesSupported=n.areCookiesSupported,e.arrForEach=n.arrForEach,e.arrIndexOf=n.arrIndexOf,e.arrMap=n.arrMap,e.arrReduce=n.arrReduce,e.attachEvent=n.attachEvent,e.cookieAvailable=n.areCookiesSupported,e.createCookieMgr=n.createCookieMgr,e.createEnumStyle=n.createEnumStyle,e.createProcessTelemetryContext=n.createProcessTelemetryContext,e.createTraceParent=n.createTraceParent,e.createUniqueNamespace=n.createUniqueNamespace,e.createUnloadHandlerContainer=n.createUnloadHandlerContainer,e.dateNow=n.dateNow,e.detachEvent=n.detachEvent,e.disallowsSameSiteNone=n.uaDisallowsSameSiteNone,e.doPerf=n.doPerf,e.dumpObj=n.dumpObj,e.eventOff=n.eventOff,e.eventOn=n.eventOn,e.findW3cTraceParent=n.findW3cTraceParent,e.formatTraceParent=n.formatTraceParent,e.generateW3CId=n.generateW3CId,e.getConsole=n.getConsole,e.getCrypto=n.getCrypto,e.getDocument=n.getDocument,e.getExceptionName=n.getExceptionName,e.getGlobal=n.getGlobal,e.getGlobalInst=n.getGlobalInst,e.getHistory=n.getHistory,e.getIEVersion=n.getIEVersion,e.getISOString=n.toISOString,e.getJSON=n.getJSON,e.getLocation=n.getLocation,e.getMsCrypto=n.getMsCrypto,e.getNavigator=n.getNavigator,e.getPerformance=n.getPerformance,e.getSetValue=n.getSetValue,e.getWindow=n.getWindow,e.hasDocument=n.hasDocument,e.hasHistory=n.hasHistory,e.hasJSON=n.hasJSON,e.hasNavigator=n.hasNavigator,e.hasOwnProperty=n.hasOwnProperty,e.hasWindow=n.hasWindow,e.isArray=n.isArray,e.isBeaconsSupported=n.isBeaconsSupported,e.isBoolean=n.isBoolean,e.isDate=n.isDate,e.isError=n.isError,e.isFetchSupported=n.isFetchSupported,e.isFunction=n.isFunction,e.isIE=n.isIE,e.isNotTruthy=n.isNotTruthy,e.isNullOrUndefined=n.isNullOrUndefined,e.isNumber=n.isNumber,e.isObject=n.isObject,e.isReactNative=n.isReactNative,e.isSampledFlag=n.isSampledFlag,e.isString=n.isString,e.isTruthy=n.isTruthy,e.isTypeof=n.isTypeof,e.isUndefined=n.isUndefined,e.isValidSpanId=n.isValidSpanId,e.isValidTraceId=n.isValidTraceId,e.isValidTraceParent=n.isValidTraceParent,e.isXhrSupported=n.isXhrSupported,e.mergeEvtNamespace=n.mergeEvtNamespace,e.newGuid=n.newGuid,e.newId=n.newId,e.normalizeJsName=n.normalizeJsName,e.objCreate=n.objCreate,e.objDefineAccessors=n.objDefineAccessors,e.objForEachKey=n.objForEachKey,e.objFreeze=n.objFreeze,e.objKeys=n.objKeys,e.objSeal=n.objSeal,e.optimizeObject=n.optimizeObject,e.parseTraceParent=n.parseTraceParent,e.perfNow=n.perfNow,e.proxyAssign=n.proxyAssign,e.proxyFunctionAs=n.proxyFunctionAs,e.proxyFunctions=n.proxyFunctions,e.random32=n.random32,e.randomValue=n.randomValue,e.removeEventHandler=n.removeEventHandler,e.removeEventListeners=n.removeEventListeners,e.removePageHideEventListener=n.removePageHideEventListener,e.removePageShowEventListener=n.removePageShowEventListener,e.removePageUnloadEventListener=n.removePageUnloadEventListener,e.safeGetCookieMgr=n.safeGetCookieMgr,e.safeGetLogger=n.safeGetLogger,e.setEnableEnvMocks=n.setEnableEnvMocks,e.setValue=n.setValue,e.strContains=n.strContains,e.strEndsWith=n.strEndsWith,e.strFunction=n.strFunction,e.strObject=n.strObject,e.strPrototype=n.strPrototype,e.strStartsWith=n.strStartsWith,e.strTrim=n.strTrim,e.strUndefined=n.strUndefined,e.throwError=n.throwError,e.toISOString=n.toISOString,e.useXDomainRequest=n.useXDomainRequest,e.AppInsightsCore=V,e.BaseCore=$,e.CoreUtils=H,e.ESPromise=z,e.ESPromiseScheduler=J,e.EventLatency=c,e.EventPersistence=l,e.EventPropertyType=u,e.FullVersionString=h,e.TraceLevel=p,e.Utils=F,e.ValueKind=s,e.ValueSanitizer=Z,e.Version=f,e._ExtendedInternalMessageId=d,e.createGuid=R,e.deleteCookie=I,e.disableCookies=C,e.extend=N,e.getCommonSchemaMetaData=w,e.getCookie=O,e.getCookieValue=x,e.getFieldValueType=L,e.getTenantId=b,e.getTime=D,e.isArrayValid=M,e.isChromium=function(){return!!n.getGlobalInst("chrome")},e.isDocumentObjectAvailable=y,e.isLatency=T,e.isUint8ArrayAvailable=S,e.isValueAssigned=E,e.isValueKind=k,e.isWindowObjectAvailable=_,e.openXhr=function(e,t,n,r,o,i){function a(e,t,n){try{e[t]=n}catch{}}void 0===r&&(r=!1),void 0===o&&(o=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,v,n),s.open(e,t,!o),n&&a(s,v,n),!o&&i&&a(s,"timeout",i),s},e.sanitizeProperty=P,e.setCookie=A,e.setProcessTelemetryTimings=j,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,T(),P(),w()):(o=[t,n(2284),n(3695),n(1356)],void 0===(i="function"==typeof(r=c)?r.apply(t,o):r)||(e.exports=i))})),A=E(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",o="prototype",i="hasOwnProperty",a="default",s=Object,c=s[o],u=s.assign,l=s.create,p=s.defineProperty,d=c[i],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function v(e){throw new TypeError(e)}function g(e){if(l)return l(e);if(null==e)return{};var r=typeof e;function i(){}return r!==n&&r!==t&&v("Object prototype may only be an Object:"+e),i[o]=e,new i}var m=(h()||{}).Symbol,y=(h()||{}).Reflect,_=!!y,E="decorate",b="metadata",S="getOwnPropertySymbols",T="iterator",P=u||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])c[i].call(t,o)&&(e[o]=t[o]);return e},w=function(e,t){return(w=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[i](n)&&(e[n]=t[n])})(e,t)};function C(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&v("Class extends value "+String(n)+" is not a constructor or null"),w(e,n),e[o]=null===n?g(n):(r[o]=n[o],new r)}function A(e,t,n,r){void 0===r&&(r=n),l?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=u,e.ObjClass=s,e.ObjCreate=l,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=P,e.__createBindingFn=A,e.__decorateFn=function(e,n,r,o){var i,a=arguments.length,c=a<3?n:null===o?o=s.getOwnPropertyDescriptor(n,r):o;if(_&&typeof y[E]===t)c=y[E](e,n,r,o);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(c=(a<3?i(c):a>3?i(n,r,c):i(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&A(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,o=h()||{};t=P,n=C,r=A,(e=o).__assign||(e.__assign=u||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=o.__assign),__extends||(__extends=o.__extends),__createBinding||(__createBinding=o.__createBinding)},e.__extendsFn=C,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&A(t,e,n);return l?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(_&&y[b]===t)return y[b](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof m===t&&e[m[T]];if(!r)return e;var o,i,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(o=a.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s},e.__restFn=function(e,n){var r={};for(var o in e)d.call(e,o)&&n.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&typeof s[S]===t)for(var i=0,a=s[S](e);i<a.length;i++)n.indexOf(a[i])<0&&c.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var o=Array(t),i=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,i++)o[i]=a[s];return o},e.__valuesFn=function(e){var n=typeof m===t&&m[T],r=n&&e[n],o=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}}:void v(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=g,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=i,e.strShimObject=n,e.strShimPrototype=o,e.strShimUndefined=r,e.throwTypeError=v,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(o=[t],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i))})),I=E(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var o,i=(o=n)&&"object"==typeof o&&"default"in o?o.default:o,a="REAL_TIME",s="NEAR_REAL_TIME",c="BEST_EFFORT",u="POST",l="drop",p="requeue",d="application/x-json-stream",f="cache-control",h="content-type",v="kill-duration",g="time-delta-millis",m="client-version",y="client-id",_="time-delta-to-apply-millis",E="upload-time",b="apikey",S="AuthMsaDeviceTicket",T="AuthXToken",P="msfpc";function w(e){var t=(e.ext||{}).intweb;return t&&r.isValueAssigned(t[P])?t[P]:null}function C(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=w(e[n]);return t}var A=function(){function e(t,n){var o=n?[].concat(n):[],i=this,a=C(o);i.iKey=function(){return t},i.Msfpc=function(){return a||""},i.count=function(){return o.length},i.events=function(){return o},i.addEvent=function(e){return!!e&&(o.push(e),a||(a=w(e)),!0)},i.split=function(n,i){var s;if(n<o.length){var c=o.length-n;r.isNullOrUndefined(i)||(c=i<c?i:c),s=o.splice(n,c),a=C(o)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}(),I=2e6,O=Math.min(I,65e3),x="metadata",R="f",N=/\./,D=function e(t,n,o,a){var s="data",c="baseData",u=!!a,l=!0,p=n,d={};i(e,this,(function(e){function n(e,t,i,a,s,c,l){r.objForEachKey(e,(function(e,f){var h=null;if(f||r.isValueAssigned(f)){var v=i,g=e,m=s,y=t;if(u&&!a&&N.test(e)){var _=e.split("."),E=_.length;if(E>1){m&&(m=m.slice());for(var b=0;b<E-1;b++){var S=_[b];y=y[S]=y[S]||{},v+="."+S,m&&m.push(S)}g=_[E-1]}}var T=a&&function(e){var t=d[e];return void 0===t&&(e.length>=7&&(t=r.strStartsWith(e,"ext.metadata")||r.strStartsWith(e,"ext.web")),d[e]=t),t}(v);if(h=!T&&p&&p.handleField(v,g)?p.value(v,g,f,o):r.sanitizeProperty(g,f,o)){var P=h.value;if(y[g]=P,c&&c(m,g,h),l&&"object"==typeof P&&!r.isArray(P)){var w=m;w&&(w=w.slice()).push(g),n(f,P,v+"."+g,a,w,c,l)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:i,sendReason:o}},e.appendPayload=function(n,o,i){var a=n&&o&&!n.overflow;return a&&r.doPerf(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=o.events(),a=n.payloadBlob,s=n.numEvents,c=!1,u=[],l=[],p=n.isBeacon,d=p?65e3:3984588,f=p?O:I,h=0,v=0;h<t.length;){var g=t[h];if(g){if(s>=i){n.overflow=o.split(h);break}var m=e.getEventBlob(g);if(m&&m.length<=f){var y=m.length;if(a.length+y>d){n.overflow=o.split(h);break}a&&(a+="\n"),a+=m,++v>20&&(a.substr(0,1),v=0),c=!0,s++}else m?u.push(g):l.push(g),t.splice(h,1),h--}h++}if(u&&u.length>0&&n.sizeExceed.push(A.create(o.iKey(),u)),l&&l.length>0&&n.failedEvts.push(A.create(o.iKey(),l)),c){n.batches.push(o),n.payloadBlob=a,n.numEvents=s;var _=o.iKey();-1===r.arrIndexOf(n.apiKeys,_)&&n.apiKeys.push(_)}}),(function(){return{payload:n,theBatch:{iKey:o.iKey(),evts:o.events()},max:i}})),a},e.getEventBlob=function(e){try{return r.doPerf(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+r.getTenantId(e.iKey);var o={},i=e.ext;i&&(t.ext=o,r.objForEachKey(i,(function(e,t){n(t,o[e]={},"ext."+e,!0,null,null,!0)})));var a=t[s]={};a.baseType=e.baseType;var u=a[c]={};return n(e.baseData,u,c,!1,[c],(function(e,t,n){k(o,e,t,n)}),l),n(e.data,a,s,!1,[],(function(e,t,n){k(o,e,t,n)}),l),JSON.stringify(t)}),(function(){return{item:e}}))}catch{return null}}}))};function k(e,t,n,o){if(o&&e){var i=r.getCommonSchemaMetaData(o.value,o.kind,o.propertyType);if(i>-1){var a=e[x];a||(a=e[x]={f:{}});var s=a[R];if(s||(s=a[R]={}),t)for(var c=0;c<t.length;c++){var u=t[c];s[u]||(s[u]={f:{}});var l=s[u][R];l||(l=s[u][R]={}),s=l}s=s[n]={},r.isArray(o.value)?s.a={t:i}:s.t=i}}}function M(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var j,L=function e(){var t={};i(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var o=function(e){var t=[];return e&&r.arrForEach(e,(function(e){t.push(r.strTrim(e))})),t}(e.split(","));if("this-request-only"===n)return o;for(var i=1e3*parseInt(n,10),a=0;a<o.length;++a)t[o[a]]=r.dateNow()+i}catch{return[]}return[]},e.isTenantKilled=function(e){var n=t,o=r.strTrim(e);return void 0!==n[o]&&n[o]>r.dateNow()||(delete n[o],!1)}}))},F=function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",a=!1;i(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){a||(e?(o=e,n=!0,a=!0):n=!1,t=!0)}}))},H="sendAttempt",B="&NoResponseBody=true",U=((j={})[1]=p,j[100]=p,j[200]="sent",j[8004]=l,j[8003]=l,j),V={},$={};function G(e,t,n){V[e]=t,!1!==n&&($[t]=e)}function q(e){try{return e.responseText}catch{}return""}function z(e,t){var n=!1;if(e&&t){var o=r.objKeys(e);if(o&&o.length>0)for(var i=t.toLowerCase(),a=0;a<o.length;a++){var s=o[a];if(s&&r.hasOwnProperty(t,s)&&s.toLowerCase()===i){n=!0;break}}}return n}function W(e,t,n,r){t&&n&&n.length>0&&(r&&V[t]?(e.hdrs[V[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}G(S,S,!1),G(m,m),G(y,"Client-Id"),G(b,b),G(_,_),G(E,E),G(T,T);var K=function e(t,n,o,a,s){this._responseHandlers=[];var c,p,S,T,w,C,A="?cors=true&"+h.toLowerCase()+"="+d,I=new L,O=!1,x=new F,R=!1,N=0,k=!0,j=[],V={},G=[],K=null,X=!1,Q=!1,Y=!1;i(e,this,(function(e){var i=!0;function L(e,t){for(var n=0,o=null,i=0;null==o&&i<e.length;)1===(n=e[i])?r.useXDomainRequest()?o=F:r.isXhrSupported()&&(o=Z):2===n&&r.isFetchSupported(t)?o=J:R&&3===n&&r.isBeaconsSupported()&&(o=te),i++;return o?{_transport:n,_isSync:t,sendPOST:o}:null}function F(e,t,n){var r=new XDomainRequest;r.open(u,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=q(r);ee(t,200,{},e),de(e)},r.onerror=function(){ee(t,400,{})},r.ontimeout=function(){ee(t,500,{})},r.onprogress=function(){},n?r.send(e.data):s.set((function(){r.send(e.data)}),0)}function J(e,t,n){var o,a=e.urlString,c=!1,l=!1,p=((o={body:e.data,method:u}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,o);n&&(p.keepalive=!0,2===e._sendReason&&(c=!0,a+=B)),i&&(p.credentials="include"),e.headers&&r.objKeys(e.headers).length>0&&(p.headers=e.headers),fetch(a,p).then((function(e){var n={},r="";e.headers&&e.headers.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),l||(l=!0,ee(t,e.status,n,r),de(r))})).catch((function(e){l||(l=!0,ee(t,0,{}))})),c&&!l&&(l=!0,ee(t,200,{})),!l&&e.timeout>0&&s.set((function(){l||(l=!0,ee(t,500,{}))}),e.timeout)}function Z(e,t,n){var o=e.urlString;function a(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var o=t.getResponseHeader(n);o&&(e[n]=r.strTrim(o))}return e}function s(e,n){ee(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(r.isString(e)){var n=r.strTrim(e).split(/[\r\n]+/);r.arrForEach(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var o=r.strTrim(e.substring(0,n)).toLowerCase(),i=r.strTrim(e.substring(n+1));t[o]=i}else t[r.strTrim(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=a(t,e,g),t=a(t,e,v),t=a(t,e,"kill-duration-seconds")),t}(e),n)}n&&e.disableXhrSync&&(n=!1);var c=r.openXhr(u,o,i,!0,n,e.timeout);r.objForEachKey(e.headers,(function(e,t){c.setRequestHeader(e,t)})),c.onload=function(){var e=q(c);s(c,e),de(e)},c.onerror=function(){s(c)},c.ontimeout=function(){s(c)},c.send(e.data)}function ee(e,t,n,o){try{e(t,n,o)}catch(e){r._throwInternal(c.diagLog(),2,518,r.dumpObj(e))}}function te(e,t,n){var o=200,i=e._thePayload,a=e.urlString+B;try{var s=r.getNavigator();if(!s.sendBeacon(a,e.data))if(i){var u=[];r.arrForEach(i.batches,(function(e){if(u&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(a,K.getEventBlob(t[n]))){u.push(e.split(n));break}}else u.push(e.split(0))})),fe(u,8003,i.sendType,!0)}else o=0}catch(e){c.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+r.dumpObj(e)),o=0}finally{ee(t,o,{},"")}}function ne(e){return 2===e||3===e}function re(e){return Q&&ne(e)&&(e=2),e}function oe(){return!O&&N<n}function ie(){var e=G;return G=[],e}function ae(e,t,n){var r=!1;return e&&e.length>0&&!O&&p[t]&&K&&(r=0!==t||oe()&&(n>0||x.allowRequestSending())),r}function se(e){var t={};return e&&r.arrForEach(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function ce(e,n,o,i,a){if(e&&0!==e.length){if(O)return void fe(e,1,i);i=re(i);try{var s=e,u=0!==i;r.doPerf(S,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var c=[],l=null,d=r.getTime(),f=p[i]||(u?p[1]:p[0]),h=(Q||ne(i)||f&&3===f._transport)&&!k&&R&&r.isBeaconsSupported();ae(e,i,n);){var v=e.shift();v&&v.count()>0&&(I.isTenantKilled(v.iKey())?c.push(v):(l=l||K.createPayload(n,o,u,h,a,i),K.appendPayload(l,v,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,le(l,d,r.getTime(),a),d=r.getTime(),l=null):(le(l,d,r.getTime(),a),d=r.getTime(),e=[v].concat(e),l=null)))}l&&le(l,d,r.getTime(),a),e.length>0&&(G=e.concat(G)),fe(c,8004,i)}),(function(){return{batches:se(s),retryCount:n,isTeardown:o,isSynchronous:u,sendReason:a,useSendBeacon:ne(i),sendType:i}}),!u)}catch(e){r._throwInternal(c.diagLog(),2,48,"Unexpected Exception sending batch: "+r.dumpObj(e))}}}function ue(e,t,n){e[t]=e[t]||{},e[t][c.identifier]=n}function le(t,n,i,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var s=!!e.sendHook,u=p[t.sendType];!ne(t.sendType)&&t.isBeacon&&2===t.sendReason&&(u=p[2]||p[3]||u);var l=Y;(t.isBeacon||3===u._transport)&&(l=!1);var T=function(e,t){var n={url:A,hdrs:{},useHdrs:!1};t?(n.hdrs=r.extend(n.hdrs,V),n.useHdrs=r.objKeys(n.hdrs).length>0):r.objForEachKey(V,(function(e,t){$[e]?W(n,$[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),W(n,y,"NO_AUTH",t),W(n,m,r.FullVersionString,t);var o="";r.arrForEach(e.apiKeys,(function(e){o.length>0&&(o+=","),o+=e})),W(n,b,o,t),W(n,E,r.dateNow().toString(),t);var i=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return""}(e);if(r.isValueAssigned(i)&&(n.url+="&ext.intweb.msfpc="+i),x.shouldAddClockSkewHeaders()&&W(n,_,x.getClockSkewHeaderValue(),t),S.getWParam){var a=S.getWParam();a>=0&&(n.url+="&w="+a)}for(var s=0;s<j.length;s++)n.url+="&"+j[s].name+"="+j[s].value;return n}(t,l);l=l||T.useHdrs;var P=r.getTime();r.doPerf(S,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var p=0;p<t.batches.length;p++)for(var m=t.batches[p].events(),y=0;y<m.length;y++){var _=m[y];if(X){var E=_.timings=_.timings||{};ue(E,"sendEventStart",P),ue(E,"serializationStart",n),ue(E,"serializationCompleted",i)}_[H]>0?_[H]++:_[H]=1}fe(t.batches,1e3+(a||0),t.sendType,!0);var b={data:t.payloadBlob,urlString:T.url,headers:T.hdrs,_thePayload:t,_sendReason:a,timeout:w};r.isUndefined(C)||(b.disableXhrSync=!!C),l&&(z(b.headers,f)||(b.headers[f]="no-cache, no-store"),z(b.headers,h)||(b.headers[h]=d));var A=null;u&&(A=function(n){x.firstRequestSent();var i=function(n,i){!function(t,n,i,a){var s=9e3,u=null,l=!1,p=!1;try{var d=!0;if(typeof t!==r.strUndefined){if(n){x.setClockSkew(n[g]);var f=n[v]||n["kill-duration-seconds"];r.arrForEach(I.setKillSwitchTenants(n["kill-tokens"],f),(function(e){r.arrForEach(i.batches,(function(t){if(t.iKey()===e){u=u||[];var n=t.split(0);i.numEvents-=n.count(),u.push(n)}}))}))}if(200==t||204==t)return void(s=200);(!function(e){return!(e>=300&&e<500&&408!=e&&429!=e||501==e||505==e)}(t)||i.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=i.retryCnt;0===i.sendType&&(h<o?(l=!0,pe((function(){0===i.sendType&&N--,ce(i.batches,h+1,i.isTeardown,Q?2:i.sendType,5)}),Q,M(h))):(p=!0,Q&&(s=8001)))}}finally{l||(x.setClockSkew(),function(t,n,o,i){try{i&&c._backOffTransmission(),200===n&&(!i&&!t.isSync&&c._clearBackOff(),function(e){if(X){var t=r.getTime();r.arrForEach(e,(function(e){e&&e.count()>0&&function(e,t){X&&r.arrForEach(e,(function(e){ue(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),fe(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(N--,5!==o&&e.sendQueuedRequests(t.sendType,o))}}(i,s,a,p)),fe(u,8004,i.sendType)}}(n,i,t,a)},s=t.isTeardown||t.isSync;try{u.sendPOST(n,i,s),e.sendListener&&e.sendListener(b,n,s,t.isBeacon)}catch(e){c.diagLog().warnToConsole("Unexpected exception sending payload. Ex:"+r.dumpObj(e)),ee(i,0,{})}}),r.doPerf(S,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(A)if(0===t.sendType&&N++,s&&!t.isBeacon&&3!==u._transport){var n={data:b.data,urlString:b.urlString,headers:r.extend({},b.headers),timeout:b.timeout,disableXhrSync:b.disableXhrSync},o=!1;r.doPerf(S,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){o=!0,!k&&!e._thePayload&&(e._thePayload=e._thePayload||b._thePayload,e._sendReason=e._sendReason||b._sendReason),A(e)}),t.isSync||t.isTeardown)}catch{o||A(b)}}))}else A(b)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:i,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&fe(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&fe(t.failedEvts,8002,t.sendType)}function pe(e,t,n){t?e():s.set(e,n)}function de(t){var n=e._responseHandlers;try{for(var o=0;o<n.length;o++)try{n[o](t)}catch(e){r._throwInternal(c.diagLog(),1,519,"Response handler failed: "+e)}if(t){var i=JSON.parse(t);r.isValueAssigned(i.webResult)&&r.isValueAssigned(i.webResult[P])&&T.set("MSFPC",i.webResult[P],31536e3)}}catch{}}function fe(e,t,n,o){if(e&&e.length>0&&a){var i=a[function(e){var t=U[e];return r.isValueAssigned(t)||(t="oth",e>=9e3&&e<=9999?t="rspFail":e>=8e3&&e<=8999?t=l:e>=1e3&&e<=1999&&(t="send")),t}(t)];if(i){var s=0!==n;r.doPerf(S,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){pe((function(){try{i.call(a,e,t,s,n)}catch(e){r._throwInternal(c.diagLog(),1,74,"send request notification failed: "+e)}}),o||s,0)}),(function(){return{batches:se(e),reason:t,isSync:s,sendSync:o,sendType:n}}),!s)}}}e.initialize=function(e,t,n,o,a){var s;a||(a={}),A=e+A,Y=!!r.isUndefined(a.avoidOptions)||!a.avoidOptions,S=t,T=t.getCookieMgr(),X=!S.config.disableEventTimings;var u=!!S.config.enableCompoundKey;c=n;var l=a.valueSanitizer,d=a.stringifyObjects;r.isUndefined(a.enableCompoundKey)||(u=!!a.enableCompoundKey),w=a.xhrTimeout,C=a.disableXhrSync,R=!r.isReactNative(),K=new D(S,l,d,u);var f=o,h=a.alwaysUseXhrOverride?o:null,v=a.alwaysUseXhrOverride?o:null;if(!o){k=!1;var g=r.getLocation();g&&g.protocol&&"file:"===g.protocol.toLowerCase()&&(i=!1);var m=[];m=r.isReactNative()?[2,1]:[1,2,3];var y=a.transports;y&&(r.isNumber(y)?m=[y].concat(m):r.isArray(y)&&(m=y.concat(m))),o=L(m,!1),f=L(m,!0),o||c.diagLog().warnToConsole("No available transport to send events")}(s={})[0]=o,s[1]=f||L([1,2,3],!0),s[2]=h||L([3,2],!0)||f||L([1],!0),s[3]=v||L([2,3],!0)||f||L([1],!0),p=s},e._getDbgPlgTargets=function(){return[p[0],I,K,p]},e.addQueryStringParameter=function(e,t){for(var n=0;n<j.length;n++)if(j[n].name===e)return void(j[n].value=t);j.push({name:e,value:t})},e.addHeader=function(e,t){V[e]=t},e.canSendRequest=function(){return oe()&&x.allowRequestSending()},e.sendQueuedRequests=function(e,t){r.isUndefined(e)&&(e=0),Q&&(e=re(e),t=2),ae(G,e,0)&&ce(ie(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!O&&0===N&&0===G.length},e.setUnloading=function(e){Q=e},e.addBatch=function(e){if(e&&e.count()>0){if(I.isTenantKilled(e.iKey()))return!1;G.push(e)}return!0},e.teardown=function(){G.length>0&&ce(ie(),0,!0,2,2)},e.pause=function(){O=!0},e.resume=function(){O=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&(r.isNullOrUndefined(t)&&(t=1),Q&&(t=re(t),n=2),ce([e],0,!1,t,n||0))}}))};function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Q(e){clearTimeout(e)}function Y(e,t){return{set:e||X,clear:t||Q}}var J="eventsDiscarded",Z="overrideInstrumentationKey",ee="maxEventRetryAttempts",te="maxUnloadEventRetryAttempts",ne=function(e){function n(){var t=e.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="3.2.3";var o,u,l,p,d,f,h,v,g=!1,m=[],y=null,_=!1,E=0,b=500,T=0,P=1e4,w={},C=a,I=null,O=null,x=0,R=0,N={},D=-1,k=!0,j=!1,L=6,F=2;return i(n,t,(function(e,t){function n(e){"beforeunload"!==(e||r.getWindow().event).type&&(j=!0,l.setUnloading(j)),z(2,2)}function i(e){j=!1,l.setUnloading(j)}function H(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,k&&(e.ext=r.optimizeObject(e.ext),e.baseData&&(e.baseData=r.optimizeObject(e.baseData)),e.data&&(e.data=r.optimizeObject(e.data))),e.sync)if(x||_)e.latency=3,e.sync=!1;else if(l)return k&&(e=r.optimizeObject(e)),void l.sendSynchronousBatch(A.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,o=T,i=P;4===n&&(o=E,i=b);var a=!1;if(o<i)a=!Q(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),a=!0,function(e,t,n,o){for(;n<=t;){var i=W(e,t,!0);if(i&&i.count()>0){var a=i.split(0,o),s=a.count();if(s>0)return 4===n?E-=s:T-=s,le(J,[a],r.EventsDiscardedReason.QueueFull),!0}n++}return ne(),!1}(e.iKey,e.latency,s,c)&&(a=!Q(e,t))}a&&ue(J,[e],r.EventsDiscardedReason.QueueFull)}function B(e,t,n){var r=re(e,t,n);return l.sendQueuedRequests(t,n),r}function U(){return T>0}function V(){if(D>=0&&re(D,0,f)&&l.sendQueuedRequests(0,f),E>0&&!O&&!_){var e=w[C][2];e>=0&&(O=G((function(){O=null,B(4,0,1),V()}),e))}var t=w[C][1];!I&&!y&&t>=0&&!_&&(U()?I=G((function(){I=null,B(0===R?3:1,0,1),R++,R%=2,V()}),t):R=0)}function $(){o=null,g=!1,m=[],y=null,_=!1,E=0,b=500,T=0,P=1e4,w={},C=a,I=null,O=null,x=0,R=0,u=null,N={},p=void 0,d=0,D=-1,f=null,k=!0,j=!1,L=6,F=2,h=null,v=Y(),l=new K(500,2,1,{requeue:se,send:pe,sent:de,drop:fe,rspFail:he,oth:ve},v),ae(),N[4]={batches:[],iKeyMap:{}},N[3]={batches:[],iKeyMap:{}},N[2]={batches:[],iKeyMap:{}},N[1]={batches:[],iKeyMap:{}},ge()}function G(e,t){0===t&&x&&(t=1);var n=1e3;return x&&(n=M(x-1)),v.set(e,t*n)}function q(){return null!==I&&(v.clear(I),I=null,R=0,!0)}function z(e,t){q(),y&&(v.clear(y),y=null),_||B(1,e,t)}function W(e,t,n){var r=N[t];r||(r=N[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=A.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function X(t,n){l.canSendRequest()&&!x&&(p>0&&T>p&&(n=!0),n&&null==y&&e.flush(t,null,20))}function Q(e,t){k&&(e=r.optimizeObject(e));var n=e.latency,o=W(e.iKey,n,!0);return!!o.addEvent(e)&&(4!==n?(T++,t&&0===e.sendAttempt&&X(!e.sync,d>0&&o.count()>=d)):E++,!0)}function ne(){for(var e=0,t=0,n=function(n){var o=N[n];o&&o.batches&&r.arrForEach(o.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},o=1;o<=4;o++)n(o);T=t,E=e}function re(t,n,o){var i=!1,a=0===n;return!a||l.canSendRequest()?r.doPerf(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var o=N[n];o&&o.batches&&o.batches.length>0&&(r.arrForEach(o.batches,(function(t){l.addBatch(t)?i=i||t&&t.count()>0:e=e.concat(t.events()),4===n?E-=t.count():T-=t.count()})),o.batches=[],o.iKeyMap={}),n--}e.length>0&&ue(J,e,r.EventsDiscardedReason.KillSwitch),i&&D>=t&&(D=-1,f=0)}),(function(){return{latency:t,sendType:n,sendReason:o}}),!a):(D=D>=0?Math.min(D,t):t,f=Math.max(f,o)),i}function oe(e,t){B(1,0,t),ne(),ie((function(){e&&e(),m.length>0?y=G((function(){y=null,oe(m.shift(),t)}),0):(y=null,V())}))}function ie(e){l.isCompletelyIdle()?e():y=G((function(){y=null,ie(e)}),.25)}function ae(){(w={})[a]=[2,1,0],w[s]=[6,3,0],w[c]=[18,9,0]}function se(t,n){var o=[],i=L;j&&(i=F),r.arrForEach(t,(function(t){t&&t.count()>0&&r.arrForEach(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<i?(r.setProcessTelemetryTimings(t,e.identifier),H(t,!1)):o.push(t))}))})),o.length>0&&ue(J,o,r.EventsDiscardedReason.NonRetryableStatus),j&&z(2,2)}function ce(t,n){var o=e._notificationManager||{},i=o[t];if(i)try{i.apply(o,n)}catch(n){r._throwInternal(e.diagLog(),1,74,t+" notification failed: "+n)}}function ue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&ce(e,[t].concat(n))}function le(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];t&&t.length>0&&r.arrForEach(t,(function(t){t&&t.count()>0&&ce(e,[t.events()].concat(n))}))}function pe(e,t,n){e&&e.length>0&&ce("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function de(e,t){le("eventsSent",e,t),V()}function fe(e,t){le(J,e,t>=8e3&&t<=8999?t-8e3:r.EventsDiscardedReason.Unknown)}function he(e){le(J,e,r.EventsDiscardedReason.NonRetryableStatus),V()}function ve(e,t){le(J,e,r.EventsDiscardedReason.Unknown),V()}function ge(){d=o&&o.disableAutoBatchFlushLimit?0:Math.max(1500,P/6)}$(),e._getDbgPlgTargets=function(){return[l]},e.initialize=function(a,s,c){r.doPerf(s,(function(){return"PostChannel:initialize"}),(function(){var d=s;t.initialize(a,s,c);try{s.addUnloadCb,h=r.mergeEvtNamespace(r.createUniqueNamespace(e.identifier),s.evtNamespace&&s.evtNamespace());var f=e._getTelCtx();a.extensionConfig[e.identifier]=a.extensionConfig[e.identifier]||{},o=f.getExtCfg(e.identifier),v=Y(o.setTimeoutOverride,o.clearTimeoutOverride),k=!o.disableOptimizeObj&&r.isChromium(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return o.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(d),o.eventsLimitInMem>0&&(P=o.eventsLimitInMem),o.immediateEventLimit>0&&(b=o.immediateEventLimit),o.autoFlushEventsLimit>0&&(p=o.autoFlushEventsLimit),r.isNumber(o[ee])&&(L=o[ee]),r.isNumber(o[te])&&(F=o[te]),ge(),o.httpXHROverride&&o.httpXHROverride.sendPOST&&(u=o.httpXHROverride),r.isValueAssigned(a.anonCookieName)&&l.addQueryStringParameter("anoncknm",a.anonCookieName),l.sendHook=o.payloadPreprocessor,l.sendListener=o.payloadListener;var g=o.overrideEndpointUrl?o.overrideEndpointUrl:a.endpointUrl;e._notificationManager=a.extensionConfig.NotificationManager,l.initialize(g,e.core,e,u,o);var m=a.disablePageUnloadEvents||[];r.addPageUnloadEventListener(n,m,h),r.addPageHideEventListener(n,m,h),r.addPageShowEventListener(i,a.disablePageShowEvents,h)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{coreConfig:a,core:s,extensions:c}}))},e.processTelemetry=function(t,n){r.setProcessTelemetryTimings(t,e.identifier);var i=(n=e._getTelCtx(n)).getExtCfg(e.identifier),a=!!o.disableTelemetry;i&&(a=a||!!i.disableTelemetry);var s=t;!a&&!g&&(o[Z]&&(s.iKey=o[Z]),i&&i[Z]&&(s.iKey=i[Z]),H(s,!0),j?z(2,2):V()),e.processNext(s,n)},e._doTeardown=function(e,t){z(2,2),g=!0,l.teardown(),r.removePageUnloadEventListener(null,h),r.removePageHideEventListener(null,h),r.removePageShowEventListener(null,h),$()},e.setEventQueueLimits=function(e,t){P=e>0?e:1e4,p=t>0?t:0,ge();var n=T>e;if(!n&&d>0)for(var o=1;!n&&o<=3;o++){var i=N[o];i&&i.batches&&r.arrForEach(i.batches,(function(e){e&&e.count()>=d&&(n=!0)}))}X(!0,n)},e.pause=function(){q(),_=!0,l.pause()},e.resume=function(){_=!1,l.resume(),V()},e.addResponseHandler=function(e){l._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){q(),ae(),C=a,V(),r.objForEachKey(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var o=t[0]/t[1];t[0]=Math.ceil(o)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),w[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!_)if(n=n||1,e)null==y?(q(),re(1,0,n),y=G((function(){y=null,oe(t,n)}),0)):m.push(t);else{var r=q();B(1,1,n),null!=t&&t(),r&&V()}},e.setMsaAuthTicket=function(e){l.addHeader(S,e)},e.hasEvents=U,e._setTransmitProfile=function(e){C!==e&&void 0!==w[e]&&(q(),C=e,V())},e._backOffTransmission=function(){x<4&&(x++,q(),V())},e._clearBackOff=function(){x&&(x=0,q(),V())},r.objDefineAccessors(e,"_setTimeoutOverride",(function(){return v.set}),(function(e){v=Y(e,v.clear)})),r.objDefineAccessors(e,"_clearTimeoutOverride",(function(){return v.clear}),(function(e){v=Y(v.set,e)}))})),t}return t.__extendsFn(n,e),n}(r.BaseTelemetryPlugin);e.BE_PROFILE=c,e.NRT_PROFILE=s,e.PostChannel=ne,e.RT_PROFILE=a,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,A(),w(),C()):(o=[t,n(2284),n(1356),n(1318)],void 0===(i="function"==typeof(r=c)?r.apply(t,o):r)||(e.exports=i))})),O=E(((e,t)=>{"use strict";var n=function(){function e(){}return e.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.enableDebug&&console.info(e.TAG+t,n)},e.warn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.disableWarnings||console.warn(e.TAG+t,n)},e.enableDebug=!1,e.disableWarnings=!1,e.disableErrors=!1,e.TAG="ApplicationInsights:",e}();t.exports=n})),x=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncScopeManager=e.OpenTelemetryScopeManagerWrapper=void 0;var r=Cr(),o=n(4434),i=function(){function e(){}return e.prototype.active=function(){var e=this,n=r.CorrelationContextManager.getCurrentContext();return t(t({},n),{getValue:function(t){return e._activeSymbol?t===e._activeSymbol&&n:(e._activeSymbol=t,n)},setValue:function(){}})},e.prototype.with=function(t,n){var o=t.parentSpanId,i=t.name,a=e._spanToContext(t,o,i);return r.CorrelationContextManager.runWithContext(a,n)()},e.prototype.bind=function(e){return"function"==typeof e?r.CorrelationContextManager.wrapCallback(e):(e instanceof o.EventEmitter&&r.CorrelationContextManager.wrapEmitter(e),e)},e.prototype.enable=function(){return r.CorrelationContextManager.enable(),this},e.prototype.disable=function(){return r.CorrelationContextManager.disable(),this},e._spanToContext=function(e,n,o){var i=n?"|"+e.spanContext().traceId+"."+n+".":e.spanContext().traceId,a=t(t({},e.spanContext()),{traceFlags:e.spanContext().traceFlags});return r.CorrelationContextManager.spanToContextObject(a,i,o)},e}();e.OpenTelemetryScopeManagerWrapper=i,e.AsyncScopeManager=new i})),R=E(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var v=s++;a[v]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var g=s++;a[g]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var y=s++;a[y]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var _=s++,E="v?"+a[p]+a[v]+"?"+a[y]+"?";a[_]="^"+E+"$";var b="[v=\\s]*"+a[d]+a[g]+"?"+a[y]+"?",S=s++;a[S]="^"+b+"$";var T=s++;a[T]="((?:<|>)?=?)";var P=s++;a[P]=a[u]+"|x|X|\\*";var w=s++;a[w]=a[c]+"|x|X|\\*";var C=s++;a[C]="[v=\\s]*("+a[w]+")(?:\\.("+a[w]+")(?:\\.("+a[w]+")(?:"+a[v]+")?"+a[y]+"?)?)?";var A=s++;a[A]="[v=\\s]*("+a[P]+")(?:\\.("+a[P]+")(?:\\.("+a[P]+")(?:"+a[g]+")?"+a[y]+"?)?)?";var I=s++;a[I]="^"+a[T]+"\\s*"+a[C]+"$";var O=s++;a[O]="^"+a[T]+"\\s*"+a[A]+"$";var x=s++;a[x]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=s++;a[R]="(?:~>?)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",i[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[C]+"$";var k=s++;a[k]="^"+a[R]+a[A]+"$";var M=s++;a[M]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[M]+"\\s+",i[j]=new RegExp(a[j],"g");var L=s++;a[L]="^"+a[M]+a[C]+"$";var F=s++;a[F]="^"+a[M]+a[A]+"$";var H=s++;a[H]="^"+a[T]+"\\s*("+b+")$|^$";var B=s++;a[B]="^"+a[T]+"\\s*("+E+")$|^$";var U=s++;a[U]="(\\s*)"+a[T]+"\\s*("+b+"|"+a[C]+")",i[U]=new RegExp(a[U],"g");var V=s++;a[V]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var $=s++;a[$]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var G,q=s++;for(a[q]="(<|>)?=?\\s*\\*",G=0;G<35;G++)n(G,a[G]),i[G]||(i[G]=new RegExp(a[G]));function z(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?i[S]:i[_]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[S]:i[_]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=z,e.valid=function(e,t){var n=z(e,t);return n?n.version:null},e.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),X(this.major,e.major)||X(this.minor,e.minor)||X(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return X(r,o)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=z(e),r=z(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},e.compareIdentifiers=X;var K=/^[0-9]+$/;function X(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return Q(e,t,n)>0}function J(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return X(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=Q,e.compareLoose=function(e,t){return Q(e,t,!0)},e.rcompare=function(e,t,n){return Q(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=oe;var ie={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof oe)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,o,i,a,s,c,u,l,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(o)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ue(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==ie&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var o,i,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":o=Y,i=ne,a=J,s=">",c=">=";break;case"<":o=J,i=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],p=null,d=null;if(l.forEach((function(e){e.semver===ie&&(e=new oe(">=0.0.0")),p=p||e,d=d||e,o(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?i[H]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[$]:i[V];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[N],"$1~")).replace(i[j],"$1^")).split(/\s+/).join(" ");var o=t?i[H]:i[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[F]:i[L];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),se(r)?s="":se(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[k]:i[D];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),se(r)?s="":se(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[I];return e.replace(r,(function(t,r,o,i,a,s){n("xRange",e,t,r,o,i,a,s);var c=se(o),u=c||se(i),l=u||se(a);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(i=0),a=0,">"===r?(r=">=",u?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),t=r+o+"."+i+"."+a):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[q],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a.map((function(e){return new oe(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},e.satisfies=le,e.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new ae(t,n)}catch{return null}return e.forEach((function(e){i.test(e)&&(!r||-1===o.compare(e))&&(o=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new ae(t,n)}catch{return null}return e.forEach((function(e){i.test(e)&&(!r||1===o.compare(e))&&(o=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[x]);return null==t?null:z(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),N=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makePatchingRequire=void 0;var t=n(6928),r=R(),o=n(3339),i=Object.keys(process.binding("natives")),a=o.prototype.require;e.makePatchingRequire=function(e){var n={};return function(s){var c=a.apply(this,arguments);if(e[s]){var u=o._resolveFilename(s,this);if(n.hasOwnProperty(u))return n[u];var l=void 0;if(i.indexOf(s)<0)try{l=a.call(this,t.join(s,"package.json")).version}catch{return c}else l=process.version.substring(1);var p=l.indexOf("-");p>=0&&(l=l.substring(0,p));for(var d=c,f=0,h=e[s];f<h.length;f++){var v=h[f];r.satisfies(l,v.versionSpecifier)&&(d=v.patch(d,u))}return n[u]=d}return c}}})),D=E(((e,t)=>{t.exports={name:"diagnostic-channel",version:"1.0.0",main:"./dist/src/channel.js",types:"./dist/src/channel.d.ts",scripts:{build:"tsc",lint:"tslint -c tslint.json -p tsconfig.json",clean:"rimraf ./dist",test:"mocha ./dist/tests/**/*.js"},homepage:"https://github.com/Microsoft/node-diagnostic-channel",bugs:{url:"https://github.com/Microsoft/node-diagnostic-channel/issues"},repository:{type:"git",url:"https://github.com/Microsoft/node-diagnostic-channel.git"},description:"Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers",dependencies:{semver:"^5.3.0"},devDependencies:{"@types/mocha":"^2.2.40","@types/node":"~8.0.0",mocha:"^3.2.0",rimraf:"^2.6.1",tslint:"^5.0.0",typescript:"4.1.2"},files:["dist/src/**/*.d.ts","dist/src/**/*.js","LICENSE","README.md","package.json"],license:"MIT"}})),k=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.channel=e.makePatchingRequire=void 0;var t=N(),r=N();Object.defineProperty(e,"makePatchingRequire",{enumerable:!0,get:function(){return r.makePatchingRequire}});var o=function(e){return!0},i=function(){function e(){this.version=D().version,this.subscribers={},this.contextPreservationFunction=function(e){return e},this.knownPatches={},this.currentlyPublishing=!1}return e.prototype.shouldPublish=function(e){var t=this.subscribers[e];return!!t&&t.some((function(e){var t=e.filter;return!t||t(!1)}))},e.prototype.publish=function(e,t){if(!this.currentlyPublishing){var n=this.subscribers[e];if(n){var r={timestamp:Date.now(),data:t};this.currentlyPublishing=!0,n.forEach((function(e){var t=e.listener,n=e.filter;try{n&&n(!0)&&t(r)}catch{}})),this.currentlyPublishing=!1}}},e.prototype.subscribe=function(e,t,n){void 0===n&&(n=o),this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push({listener:t,filter:n})},e.prototype.unsubscribe=function(e,t,n){void 0===n&&(n=o);var r=this.subscribers[e];if(r)for(var i=0;i<r.length;++i)if(r[i].listener===t&&r[i].filter===n)return r.splice(i,1),!0;return!1},e.prototype.reset=function(){var e=this;this.subscribers={},this.contextPreservationFunction=function(e){return e},Object.getOwnPropertyNames(this.knownPatches).forEach((function(t){return delete e.knownPatches[t]}))},e.prototype.bindToContext=function(e){return this.contextPreservationFunction(e)},e.prototype.addContextPreservation=function(e){var t=this.contextPreservationFunction;this.contextPreservationFunction=function(n){return e(t(n))}},e.prototype.registerMonkeyPatch=function(e,t){this.knownPatches[e]||(this.knownPatches[e]=[]),this.knownPatches[e].push(t)},e.prototype.getPatchesObject=function(){return this.knownPatches},e}();global.diagnosticsSource||(global.diagnosticsSource=new i,n(3339).prototype.require=t.makePatchingRequire(global.diagnosticsSource.getPatchesObject())),e.channel=global.diagnosticsSource})),M=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),j=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._globalThis=void 0,e._globalThis="object"==typeof globalThis?globalThis:global})),L=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(j(),e)})),F=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(L(),e)})),H=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="1.0.3"})),B=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isCompatible=e._makeCompatibilityCheck=void 0;var t=H(),n=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function r(e){var t=new Set([e]),r=new Set,o=e.match(n);if(!o)return function(){return!1};var i=+o[1],a=+o[2],s=+o[3];if(null!=o[4])return function(t){return t===e};function c(e){return r.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var o=e.match(n);if(!o)return c(e);var l=+o[1],p=+o[2],d=+o[3];return null!=o[4]||i!==l?c(e):0===i?a===p&&s<=d?u(e):c(e):a<=p?u(e):c(e)}}e._makeCompatibilityCheck=r,e.isCompatible=r(t.VERSION)})),U=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterGlobal=e.getGlobal=e.registerGlobal=void 0;var t=F(),n=H(),r=B(),o=n.VERSION.split(".")[0],i=Symbol.for("opentelemetry.js.api."+o),a=t._globalThis;e.registerGlobal=function(e,t,r,o){var s;void 0===o&&(o=!1);var c=a[i]=null!==(s=a[i])&&void 0!==s?s:{version:n.VERSION};if(!o&&c[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}return c.version!==n.VERSION?(u=new Error("@opentelemetry/api: All API registration versions must match"),r.error(u.stack||u.message),!1):(c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+n.VERSION+"."),!0)},e.getGlobal=function(e){var t,n,o=null===(t=a[i])||void 0===t?void 0:t.version;if(o&&r.isCompatible(o))return null===(n=a[i])||void 0===n?void 0:n[e]},e.unregisterGlobal=function(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+n.VERSION+".");var r=a[i];r&&delete r[e]}})),V=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagComponentLogger=void 0;var t=U(),n=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("verbose",this._namespace,e)},e}();function r(e,n,r){var o=t.getGlobal("diag");if(o)return r.unshift(n),o[e].apply(o,r)}e.DiagComponentLogger=n})),$=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiagLogLevel=void 0,(t=e.DiagLogLevel||(e.DiagLogLevel={}))[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})),G=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createLogLevelDiagLogger=void 0;var t=$();e.createLogLevelDiagLogger=function(e,n){function r(t,r){var o=n[t];return"function"==typeof o&&e>=r?o.bind(n):function(){}}return e<t.DiagLogLevel.NONE?e=t.DiagLogLevel.NONE:e>t.DiagLogLevel.ALL&&(e=t.DiagLogLevel.ALL),n=n||{},{error:r("error",t.DiagLogLevel.ERROR),warn:r("warn",t.DiagLogLevel.WARN),info:r("info",t.DiagLogLevel.INFO),debug:r("debug",t.DiagLogLevel.DEBUG),verbose:r("verbose",t.DiagLogLevel.VERBOSE)}}})),q=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagAPI=void 0;var t=V(),n=G(),r=$(),o=U(),i=function(){function e(){function e(e){return function(){var t=o.getGlobal("diag");if(t)return t[e].apply(t,arguments)}}var i=this;i.setLogger=function(e,t){var a,s;if(void 0===t&&(t=r.DiagLogLevel.INFO),e===i){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return i.error(null!==(a=c.stack)&&void 0!==a?a:c.message),!1}var u=o.getGlobal("diag"),l=n.createLogLevelDiagLogger(t,e);if(u){var p=null!==(s=(new Error).stack)&&void 0!==s?s:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),l.warn("Current logger will overwrite one already registered from "+p)}return o.registerGlobal("diag",l,i,!0)},i.disable=function(){o.unregisterGlobal("diag",i)},i.createComponentLogger=function(e){return new t.DiagComponentLogger(e)},i.verbose=e("verbose"),i.debug=e("debug"),i.info=e("info"),i.warn=e("warn"),i.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();e.DiagAPI=i})),z=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaggageImpl=void 0;var t=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){return[e[0],e[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=new e(this._entries),o=0,i=t;o<i.length;o++){var a=i[o];r._entries.delete(a)}return r},e.prototype.clear=function(){return new e},e}();e.BaggageImpl=t})),W=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataSymbol=void 0,e.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")})),K=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataFromString=e.createBaggage=void 0;var t=q(),n=z(),r=W(),o=t.DiagAPI.instance();e.createBaggage=function(e){return void 0===e&&(e={}),new n.BaggageImpl(new Map(Object.entries(e)))},e.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(o.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:r.baggageEntryMetadataSymbol,toString:function(){return e}}}})),X=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Q=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Y=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagConsoleLogger=void 0;var t=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];e.DiagConsoleLogger=function(){function e(e){return function(){var t=arguments;if(console){var n=console[e];if("function"!=typeof n&&(n=console.log),"function"==typeof n)return n.apply(console,t)}}}for(var n=0;n<t.length;n++)this[t[n].n]=e(t[n].c)}})),J=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Y(),e),n($(),e)})),Z=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultTextMapSetter=e.defaultTextMapGetter=void 0,e.defaultTextMapGetter={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},e.defaultTextMapSetter={set:function(e,t,n){null!=e&&(e[t]=n)}}})),ee=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),te=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ne=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT_CONTEXT=e.createContextKey=void 0,e.createContextKey=function(e){return Symbol.for(e)};e.ROOT_CONTEXT=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var o=new e(n._currentContext);return o._currentContext.set(t,r),o},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}})),re=E((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.NoopContextManager=void 0;var n=ne(),r=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return n.call.apply(n,t([r],o))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();e.NoopContextManager=r})),oe=E((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextAPI=void 0;var n=re(),r=U(),o=q(),i="context",a=new n.NoopContextManager,s=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return r.registerGlobal(i,e,o.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,n,r){for(var o,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(o=this._getContextManager()).with.apply(o,t([e,n,r],i))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return r.getGlobal(i)||a},e.prototype.disable=function(){this._getContextManager().disable(),r.unregisterGlobal(i,o.DiagAPI.instance())},e}();e.ContextAPI=s})),ie=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TraceFlags=void 0,(t=e.TraceFlags||(e.TraceFlags={}))[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})),ae=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=void 0;var t=ie();e.INVALID_SPANID="0000000000000000",e.INVALID_TRACEID="00000000000000000000000000000000",e.INVALID_SPAN_CONTEXT={traceId:e.INVALID_TRACEID,spanId:e.INVALID_SPANID,traceFlags:t.TraceFlags.NONE}})),se=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NonRecordingSpan=void 0;var t=ae(),n=function(){function e(e){void 0===e&&(e=t.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}();e.NonRecordingSpan=n})),ce=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSpanContext=e.setSpanContext=e.deleteSpan=e.setSpan=e.getSpan=void 0;var t=ne(),n=se(),r=t.createContextKey("OpenTelemetry Context Key SPAN");function o(e){return e.getValue(r)||void 0}function i(e,t){return e.setValue(r,t)}e.getSpan=o,e.setSpan=i,e.deleteSpan=function(e){return e.deleteValue(r)},e.setSpanContext=function(e,t){return i(e,new n.NonRecordingSpan(t))},e.getSpanContext=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.spanContext()}})),ue=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapSpanContext=e.isSpanContextValid=e.isValidSpanId=e.isValidTraceId=void 0;var t=ae(),n=se(),r=/^([0-9a-f]{32})$/i,o=/^[0-9a-f]{16}$/i;function i(e){return r.test(e)&&e!==t.INVALID_TRACEID}function a(e){return o.test(e)&&e!==t.INVALID_SPANID}e.isValidTraceId=i,e.isValidSpanId=a,e.isSpanContextValid=function(e){return i(e.traceId)&&a(e.spanId)},e.wrapSpanContext=function(e){return new n.NonRecordingSpan(e)}})),le=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracer=void 0;var t=oe(),n=ce(),r=se(),o=ue(),i=t.ContextAPI.getInstance(),a=function(){function e(){}return e.prototype.startSpan=function(e,t,i){if(Boolean(null==t?void 0:t.root))return new r.NonRecordingSpan;var a=i&&n.getSpanContext(i);return function(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags}(a)&&o.isSpanContextValid(a)?new r.NonRecordingSpan(a):new r.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,o){var a,s,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(a=t,c=r):(a=t,s=r,c=o);var u=s??i.active(),l=this.startSpan(e,a,u),p=n.setSpan(u,l);return i.with(p,c,void 0,l)}},e}();e.NoopTracer=a})),pe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracer=void 0;var t=new(le().NoopTracer),n=function(){function e(e,t,n){this._provider=e,this.name=t,this.version=n}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version);return e?(this._delegate=e,this._delegate):t},e}();e.ProxyTracer=n})),de=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracerProvider=void 0;var t=le(),n=function(){function e(){}return e.prototype.getTracer=function(e,n){return new t.NoopTracer},e}();e.NoopTracerProvider=n})),fe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracerProvider=void 0;var t=pe(),n=new(de().NoopTracerProvider),r=function(){function e(){}return e.prototype.getTracer=function(e,n){var r;return null!==(r=this.getDelegateTracer(e,n))&&void 0!==r?r:new t.ProxyTracer(this,e,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:n},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t)},e}();e.ProxyTracerProvider=r})),he=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ve=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SamplingDecision=void 0,(t=e.SamplingDecision||(e.SamplingDecision={}))[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})),ge=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),me=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanKind=void 0,(t=e.SpanKind||(e.SpanKind={}))[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})),ye=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),_e=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ee=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanStatusCode=void 0,(t=e.SpanStatusCode||(e.SpanStatusCode={}))[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})),be=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Se=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Te=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Pe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),we=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceAPI=void 0;var t=U(),n=fe(),r=ue(),o=ce(),i=q(),a="trace",s=function(){function e(){this._proxyTracerProvider=new n.ProxyTracerProvider,this.wrapSpanContext=r.wrapSpanContext,this.isSpanContextValid=r.isSpanContextValid,this.deleteSpan=o.deleteSpan,this.getSpan=o.getSpan,this.getSpanContext=o.getSpanContext,this.setSpan=o.setSpan,this.setSpanContext=o.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var n=t.registerGlobal(a,this._proxyTracerProvider,i.DiagAPI.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},e.prototype.getTracerProvider=function(){return t.getGlobal(a)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){t.unregisterGlobal(a,i.DiagAPI.instance()),this._proxyTracerProvider=new n.ProxyTracerProvider},e}();e.TraceAPI=s})),Ce=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTextMapPropagator=void 0;var t=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}();e.NoopTextMapPropagator=t})),Ae=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deleteBaggage=e.setBaggage=e.getBaggage=void 0;var t=ne().createContextKey("OpenTelemetry Baggage Key");e.getBaggage=function(e){return e.getValue(t)||void 0},e.setBaggage=function(e,n){return e.setValue(t,n)},e.deleteBaggage=function(e){return e.deleteValue(t)}})),Ie=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PropagationAPI=void 0;var t=U(),n=Ce(),r=Z(),o=Ae(),i=K(),a=q(),s="propagation",c=new n.NoopTextMapPropagator,u=function(){function e(){this.createBaggage=i.createBaggage,this.getBaggage=o.getBaggage,this.setBaggage=o.setBaggage,this.deleteBaggage=o.deleteBaggage}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return t.registerGlobal(s,e,a.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=r.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=r.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){t.unregisterGlobal(s,a.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return t.getGlobal(s)||c},e}();e.PropagationAPI=u})),Oe=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.diag=e.propagation=e.trace=e.context=e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=e.isValidSpanId=e.isValidTraceId=e.isSpanContextValid=e.baggageEntryMetadataFromString=void 0,n(M(),e);var r=K();Object.defineProperty(e,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return r.baggageEntryMetadataFromString}}),n(X(),e),n(Q(),e),n(J(),e),n(Z(),e),n(ee(),e),n(te(),e),n(pe(),e),n(fe(),e),n(he(),e),n(ve(),e),n(ge(),e),n(me(),e),n(ye(),e),n(_e(),e),n(Ee(),e),n(ie(),e),n(be(),e),n(Se(),e),n(Te(),e);var o=ue();Object.defineProperty(e,"isSpanContextValid",{enumerable:!0,get:function(){return o.isSpanContextValid}}),Object.defineProperty(e,"isValidTraceId",{enumerable:!0,get:function(){return o.isValidTraceId}}),Object.defineProperty(e,"isValidSpanId",{enumerable:!0,get:function(){return o.isValidSpanId}});var i=ae();Object.defineProperty(e,"INVALID_SPANID",{enumerable:!0,get:function(){return i.INVALID_SPANID}}),Object.defineProperty(e,"INVALID_TRACEID",{enumerable:!0,get:function(){return i.INVALID_TRACEID}}),Object.defineProperty(e,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return i.INVALID_SPAN_CONTEXT}}),n(ne(),e),n(Pe(),e);var a=oe();e.context=a.ContextAPI.getInstance();var s=we();e.trace=s.TraceAPI.getInstance();var c=Ie();e.propagation=c.PropagationAPI.getInstance();var u=q();e.diag=u.DiagAPI.instance(),e.default={trace:e.trace,context:e.context,propagation:e.propagation,diag:e.diag}})),xe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTracingSuppressed=e.unsuppressTracing=e.suppressTracing=void 0;var t=Oe().createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");e.suppressTracing=function(e){return e.setValue(t,!0)},e.unsuppressTracing=function(e){return e.deleteValue(t)},e.isTracingSuppressed=function(e){return!0===e.getValue(t)}})),Re=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR="=",e.BAGGAGE_PROPERTIES_SEPARATOR=";",e.BAGGAGE_ITEMS_SEPARATOR=",",e.BAGGAGE_HEADER="baggage",e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),Ne=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseKeyPairsIntoRecord=e.parsePairKeyValue=e.getKeyPairs=e.serializeKeyPairs=void 0;var t=Oe(),n=Re();e.serializeKeyPairs=e=>e.reduce(((e,t)=>{let r=`${e}${""!==e?n.BAGGAGE_ITEMS_SEPARATOR:""}${t}`;return r.length>n.BAGGAGE_MAX_TOTAL_LENGTH?e:r}),""),e.getKeyPairs=e=>e.getAllEntries().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`)),e.parsePairKeyValue=e=>{let r=e.split(n.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let o=r.shift();if(!o)return;let i=o.split(n.BAGGAGE_KEY_PAIR_SEPARATOR);if(2!==i.length)return;let a,s=decodeURIComponent(i[0].trim()),c=decodeURIComponent(i[1].trim());return r.length>0&&(a=t.baggageEntryMetadataFromString(r.join(n.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:c,metadata:a}},e.parseKeyPairsIntoRecord=t=>"string"!=typeof t||0===t.length?{}:t.split(n.BAGGAGE_ITEMS_SEPARATOR).map((t=>e.parsePairKeyValue(t))).filter((e=>void 0!==e&&e.value.length>0)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})})),De=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpBaggagePropagator=void 0;var t=Oe(),n=xe(),r=Re(),o=Ne();e.HttpBaggagePropagator=class{inject(e,i,a){let s=t.propagation.getBaggage(e);if(!s||n.isTracingSuppressed(e))return;let c=o.getKeyPairs(s).filter((e=>e.length<=r.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS)).slice(0,r.BAGGAGE_MAX_NAME_VALUE_PAIRS),u=o.serializeKeyPairs(c);u.length>0&&a.set(i,r.BAGGAGE_HEADER,u)}extract(e,n,i){let a=i.get(n,r.BAGGAGE_HEADER);if(!a)return e;let s={};return 0===a.length||(a.split(r.BAGGAGE_ITEMS_SEPARATOR).forEach((e=>{let t=o.parsePairKeyValue(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),s[t.key]=e}})),0===Object.entries(s).length)?e:t.propagation.setBaggage(e,t.propagation.createBaggage(s))}fields(){return[r.BAGGAGE_HEADER]}}})),ke=E((e=>{"use strict";function t(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e)if(null!=r){if(!t){if(n(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}(e):n(e))}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.isAttributeValue=e.sanitizeAttributes=void 0,e.sanitizeAttributes=function(e){let n={};if(null==e||"object"!=typeof e)return n;for(let[r,o]of Object.entries(e))t(o)&&(Array.isArray(o)?n[r]=o.slice():n[r]=o);return n},e.isAttributeValue=t})),Me=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loggingErrorHandler=void 0;var t=Oe();e.loggingErrorHandler=function(){return e=>{t.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){let t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach((e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))})),n=Object.getPrototypeOf(n);return t}(e))}(e))}}})),je=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;var t=Me().loggingErrorHandler();e.setGlobalErrorHandler=function(e){t=e},e.globalErrorHandler=e=>{try{t(e)}catch{}}})),Le=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TracesSamplerValues=void 0,(t=e.TracesSamplerValues||(e.TracesSamplerValues={})).AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})),Fe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEnvironment=e.DEFAULT_ENVIRONMENT=void 0;var t=Oe(),n=Le(),r=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function o(e){return r.indexOf(e)>-1}var i=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function a(e){return i.indexOf(e)>-1}function s(e,t,n,r=-1/0,o=1/0){if(typeof n[e]<"u"){let i=Number(n[e]);isNaN(i)||(t[e]=i<r?r:i>o?o:i)}}function c(e,t,n,r=","){let o=n[e];"string"==typeof o&&(t[e]=o.split(r).map((e=>e.trim())))}e.DEFAULT_ENVIRONMENT={CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:t.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:n.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};var u={ALL:t.DiagLogLevel.ALL,VERBOSE:t.DiagLogLevel.VERBOSE,DEBUG:t.DiagLogLevel.DEBUG,INFO:t.DiagLogLevel.INFO,WARN:t.DiagLogLevel.WARN,ERROR:t.DiagLogLevel.ERROR,NONE:t.DiagLogLevel.NONE};function l(e,t,n){let r=n[e];if("string"==typeof r){let n=u[r.toUpperCase()];null!=n&&(t[e]=n)}}e.parseEnvironment=function(t){let n={};for(let r in e.DEFAULT_ENVIRONMENT){let e=r;if("OTEL_LOG_LEVEL"===e)l(e,n,t);else if(o(e))s(e,n,t);else if(a(e))c(e,n,t);else{let r=t[e];typeof r<"u"&&null!==r&&(n[e]=String(r))}}return n}})),He=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=void 0;var t=n(857),r=Fe();e.getEnv=function(){let e=r.parseEnvironment(process.env);return Object.assign({HOSTNAME:t.hostname()},r.DEFAULT_ENVIRONMENT,e)}})),Be=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBase64=void 0,e.hexToBase64=function(e){let t=e.length,n="";for(let r=0;r<t;r+=2){let t=e.substring(r,r+2),o=parseInt(t,16);n+=String.fromCharCode(o)}return Buffer.from(n,"ascii").toString("base64")}})),Ue=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};var t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,4*n);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString("hex",0,e)}}})),Ve=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.otperformance=void 0;var t=n(2987);e.otperformance=t.performance})),$e=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="0.23.0"})),Ge=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RpcGrpcStatusCodeValues=e.MessagingOperationValues=e.MessagingDestinationKindValues=e.HttpFlavorValues=e.NetTransportValues=e.FaasInvokedProviderValues=e.FaasDocumentOperationValues=e.FaasTriggerValues=e.DbCassandraConsistencyLevelValues=e.DbSystemValues=e.SemanticAttributes=void 0,e.SemanticAttributes={DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_METHOD:"rpc.jsonrpc.method",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message"},(t=e.DbSystemValues||(e.DbSystemValues={})).OTHER_SQL="other_sql",t.MSSQL="mssql",t.MYSQL="mysql",t.ORACLE="oracle",t.DB2="db2",t.POSTGRESQL="postgresql",t.REDSHIFT="redshift",t.HIVE="hive",t.CLOUDSCAPE="cloudscape",t.HSQLDB="hsqldb",t.PROGRESS="progress",t.MAXDB="maxdb",t.HANADB="hanadb",t.INGRES="ingres",t.FIRSTSQL="firstsql",t.EDB="edb",t.CACHE="cache",t.ADABAS="adabas",t.FIREBIRD="firebird",t.DERBY="derby",t.FILEMAKER="filemaker",t.INFORMIX="informix",t.INSTANTDB="instantdb",t.INTERBASE="interbase",t.MARIADB="mariadb",t.NETEZZA="netezza",t.PERVASIVE="pervasive",t.POINTBASE="pointbase",t.SQLITE="sqlite",t.SYBASE="sybase",t.TERADATA="teradata",t.VERTICA="vertica",t.H2="h2",t.COLDFUSION="coldfusion",t.CASSANDRA="cassandra",t.HBASE="hbase",t.MONGODB="mongodb",t.REDIS="redis",t.COUCHBASE="couchbase",t.COUCHDB="couchdb",t.COSMOSDB="cosmosdb",t.DYNAMODB="dynamodb",t.NEO4J="neo4j",t.GEODE="geode",t.ELASTICSEARCH="elasticsearch",t.MEMCACHED="memcached",t.COCKROACHDB="cockroachdb",function(e){e.ALL="all",e.EACH_QUORUM="each_quorum",e.QUORUM="quorum",e.LOCAL_QUORUM="local_quorum",e.ONE="one",e.TWO="two",e.THREE="three",e.LOCAL_ONE="local_one",e.ANY="any",e.SERIAL="serial",e.LOCAL_SERIAL="local_serial"}(e.DbCassandraConsistencyLevelValues||(e.DbCassandraConsistencyLevelValues={})),function(e){e.DATASOURCE="datasource",e.HTTP="http",e.PUBSUB="pubsub",e.TIMER="timer",e.OTHER="other"}(e.FaasTriggerValues||(e.FaasTriggerValues={})),function(e){e.INSERT="insert",e.EDIT="edit",e.DELETE="delete"}(e.FaasDocumentOperationValues||(e.FaasDocumentOperationValues={})),function(e){e.AWS="aws",e.AZURE="azure",e.GCP="gcp"}(e.FaasInvokedProviderValues||(e.FaasInvokedProviderValues={})),function(e){e.IP_TCP="ip_tcp",e.IP_UDP="ip_udp",e.IP="ip",e.UNIX="unix",e.PIPE="pipe",e.INPROC="inproc",e.OTHER="other"}(e.NetTransportValues||(e.NetTransportValues={})),function(e){e.HTTP_1_0="1.0",e.HTTP_1_1="1.1",e.HTTP_2_0="2.0",e.SPDY="SPDY",e.QUIC="QUIC"}(e.HttpFlavorValues||(e.HttpFlavorValues={})),function(e){e.QUEUE="queue",e.TOPIC="topic"}(e.MessagingDestinationKindValues||(e.MessagingDestinationKindValues={})),function(e){e.RECEIVE="receive",e.PROCESS="process"}(e.MessagingOperationValues||(e.MessagingOperationValues={})),function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(e.RpcGrpcStatusCodeValues||(e.RpcGrpcStatusCodeValues={}))})),qe=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ge(),e)})),ze=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetrySdkLanguageValues=e.OsTypeValues=e.HostArchValues=e.AwsEcsLaunchtypeValues=e.CloudPlatformValues=e.CloudProviderValues=e.ResourceAttributes=void 0,e.ResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},(t=e.CloudProviderValues||(e.CloudProviderValues={})).AWS="aws",t.AZURE="azure",t.GCP="gcp",function(e){e.AWS_EC2="aws_ec2",e.AWS_ECS="aws_ecs",e.AWS_EKS="aws_eks",e.AWS_LAMBDA="aws_lambda",e.AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",e.AZURE_VM="azure_vm",e.AZURE_CONTAINER_INSTANCES="azure_container_instances",e.AZURE_AKS="azure_aks",e.AZURE_FUNCTIONS="azure_functions",e.AZURE_APP_SERVICE="azure_app_service",e.GCP_COMPUTE_ENGINE="gcp_compute_engine",e.GCP_CLOUD_RUN="gcp_cloud_run",e.GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",e.GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",e.GCP_APP_ENGINE="gcp_app_engine"}(e.CloudPlatformValues||(e.CloudPlatformValues={})),function(e){e.EC2="ec2",e.FARGATE="fargate"}(e.AwsEcsLaunchtypeValues||(e.AwsEcsLaunchtypeValues={})),function(e){e.AMD64="amd64",e.ARM32="arm32",e.ARM64="arm64",e.IA64="ia64",e.PPC32="ppc32",e.PPC64="ppc64",e.X86="x86"}(e.HostArchValues||(e.HostArchValues={})),function(e){e.WINDOWS="windows",e.LINUX="linux",e.DARWIN="darwin",e.FREEBSD="freebsd",e.NETBSD="netbsd",e.OPENBSD="openbsd",e.DRAGONFLYBSD="dragonflybsd",e.HPUX="hpux",e.AIX="aix",e.SOLARIS="solaris",e.Z_OS="z_os"}(e.OsTypeValues||(e.OsTypeValues={})),function(e){e.CPP="cpp",e.DOTNET="dotnet",e.ERLANG="erlang",e.GO="go",e.JAVA="java",e.NODEJS="nodejs",e.PHP="php",e.PYTHON="python",e.RUBY="ruby",e.WEBJS="webjs"}(e.TelemetrySdkLanguageValues||(e.TelemetrySdkLanguageValues={}))})),We=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ze(),e)})),Ke=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(qe(),e),n(We(),e)})),Xe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDK_INFO=void 0;var t=$e(),n=Ke();e.SDK_INFO={[n.ResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[n.ResourceAttributes.PROCESS_RUNTIME_NAME]:"node",[n.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.TelemetrySdkLanguageValues.NODEJS,[n.ResourceAttributes.TELEMETRY_SDK_VERSION]:t.VERSION}})),Qe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unrefTimer=void 0,e.unrefTimer=function(e){e.unref()}})),Ye=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(He(),e),n(Be(),e),n(Ue(),e),n(Ve(),e),n(Xe(),e),n(Qe(),e)})),Je=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ye(),e)})),Ze=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=void 0;var t=Je(),n=9,r=Math.pow(10,n);function o(e){let t=e/1e3,o=Math.trunc(t);return[o,Number((t-o).toFixed(n))*r]}function i(){let e=t.otperformance.timeOrigin;if("number"!=typeof e){let n=t.otperformance;e=n.timing&&n.timing.fetchStart}return e}function a(e){let n=o(i()),a=o("number"==typeof e?e:t.otperformance.now()),s=n[0]+a[0],c=n[1]+a[1];return c>r&&(c-=r,s+=1),[s,c]}function s(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}e.hrTime=a,e.timeInputToHrTime=function(e){if(s(e))return e;if("number"==typeof e)return e<i()?a(e):o(e);if(e instanceof Date)return o(e.getTime());throw TypeError("Invalid input type")},e.hrTimeDuration=function(e,t){let n=t[0]-e[0],o=t[1]-e[1];return o<0&&(n-=1,o+=r),[n,o]},e.hrTimeToTimeStamp=function(e){let t=n,r=`${"0".repeat(t)}${e[1]}Z`,o=r.substr(r.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",o)},e.hrTimeToNanoseconds=function(e){return e[0]*r+e[1]},e.hrTimeToMilliseconds=function(e){return Math.round(1e3*e[0]+e[1]/1e6)},e.hrTimeToMicroseconds=function(e){return Math.round(1e6*e[0]+e[1]/1e3)},e.isTimeInputHrTime=s,e.isTimeInput=function(e){return s(e)||"number"==typeof e||e instanceof Date}})),et=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tt=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.ExportResultCode=void 0,(t=e.ExportResultCode||(e.ExportResultCode={}))[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})),nt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositePropagator=void 0;var t=Oe();e.CompositePropagator=class{constructor(e={}){var t;this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((e=>"function"==typeof e.fields?e.fields():[])).reduce(((e,t)=>e.concat(t)),[])))}inject(e,n,r){for(let o of this._propagators)try{o.inject(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${e.message}`)}}extract(e,n,r){return this._propagators.reduce(((e,o)=>{try{return o.extract(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${e.message}`)}return e}),e)}fields(){return this._fields.slice()}}})),rt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateValue=e.validateKey=void 0;var t="[_0-9a-z-*/]",n=new RegExp(`^(?:[a-z]${t}{0,255}|[a-z0-9]${t}{0,240}@[a-z]${t}{0,13})$`),r=/^[ -~]{0,255}[!-~]$/,o=/,|=/;e.validateKey=function(e){return n.test(e)},e.validateValue=function(e){return r.test(e)&&!o.test(e)}})),ot=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceState=void 0;var t=rt(),n=class{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce(((e,t)=>(e.push(t+"="+this.get(t)),e)),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(((e,n)=>{let r=n.trim(),o=r.indexOf("=");if(-1!==o){let i=r.slice(0,o),a=r.slice(o+1,n.length);t.validateKey(i)&&t.validateValue(a)&&e.set(i,a)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new n;return e._internalState=new Map(this._internalState),e}};e.TraceState=n})),it=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpTraceContextPropagator=e.parseTraceParent=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=void 0;var t=Oe(),n=xe(),r=ot();e.TRACE_PARENT_HEADER="traceparent",e.TRACE_STATE_HEADER="tracestate";var o=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function i(e){let t=o.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}e.parseTraceParent=i,e.HttpTraceContextPropagator=class{inject(r,o,i){let a=t.trace.getSpanContext(r);if(!a||n.isTracingSuppressed(r)||!t.isSpanContextValid(a))return;let s=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||t.TraceFlags.NONE).toString(16)}`;i.set(o,e.TRACE_PARENT_HEADER,s),a.traceState&&i.set(o,e.TRACE_STATE_HEADER,a.traceState.serialize())}extract(n,o,a){let s=a.get(o,e.TRACE_PARENT_HEADER);if(!s)return n;let c=Array.isArray(s)?s[0]:s;if("string"!=typeof c)return n;let u=i(c);if(!u)return n;u.isRemote=!0;let l=a.get(o,e.TRACE_STATE_HEADER);if(l){let e=Array.isArray(l)?l.join(","):l;u.traceState=new r.TraceState("string"==typeof e?e:void 0)}return t.trace.setSpanContext(n,u)}fields(){return[e.TRACE_PARENT_HEADER,e.TRACE_STATE_HEADER]}}})),at=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),st=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRPCMetadata=e.deleteRPCMetadata=e.setRPCMetadata=e.RPCType=void 0;var t=Oe().createContextKey("OpenTelemetry SDK Context Key RPC_METADATA");(e.RPCType||(e.RPCType={})).HTTP="http",e.setRPCMetadata=function(e,n){return e.setValue(t,n)},e.deleteRPCMetadata=function(e){return e.deleteValue(t)},e.getRPCMetadata=function(e){return e.getValue(t)}})),ct=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOffSampler=void 0;var t=Oe();e.AlwaysOffSampler=class{shouldSample(){return{decision:t.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}})),ut=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOnSampler=void 0;var t=Oe();e.AlwaysOnSampler=class{shouldSample(){return{decision:t.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}})),lt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParentBasedSampler=void 0;var t=Oe(),n=je(),r=ct(),o=ut();e.ParentBasedSampler=class{constructor(e){var t,i,a,s;this._root=e.root,this._root||(n.globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new o.AlwaysOnSampler),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new o.AlwaysOnSampler,this._remoteParentNotSampled=null!==(i=e.remoteParentNotSampled)&&void 0!==i?i:new r.AlwaysOffSampler,this._localParentSampled=null!==(a=e.localParentSampled)&&void 0!==a?a:new o.AlwaysOnSampler,this._localParentNotSampled=null!==(s=e.localParentNotSampled)&&void 0!==s?s:new r.AlwaysOffSampler}shouldSample(e,n,r,o,i,a){let s=t.trace.getSpanContext(e);return s&&t.isSpanContextValid(s)?s.isRemote?s.traceFlags&t.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,o,i,a):this._remoteParentNotSampled.shouldSample(e,n,r,o,i,a):s.traceFlags&t.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,r,o,i,a):this._localParentNotSampled.shouldSample(e,n,r,o,i,a):this._root.shouldSample(e,n,r,o,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),pt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceIdRatioBasedSampler=void 0;var t=Oe();e.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,n){return{decision:t.isValidTraceId(n)&&this._accumulate(n)<this._upperBound?t.SamplingDecision.RECORD_AND_SAMPLED:t.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t}}})),dt=E((e=>{"use strict";function t(e,t){return"string"==typeof t?e===t:t.test(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.isUrlIgnored=e.urlMatches=void 0,e.urlMatches=t,e.isUrlIgnored=function(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}})),ft=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWrapped=void 0,e.isWrapped=function(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}})),ht=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.baggageUtils=void 0,n(De(),e),n(ke(),e),n(je(),e),n(Me(),e),n(Ze(),e),n(et(),e),n(tt(),e),n($e(),e),e.baggageUtils=Ne(),n(Je(),e),n(nt(),e),n(it(),e),n(at(),e),n(st(),e),n(ct(),e),n(ut(),e),n(lt(),e),n(pt(),e),n(xe(),e),n(ot(),e),n(Fe(),e),n(Le(),e),n(dt(),e),n(ft(),e),n($e(),e)})),vt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExceptionEventName=void 0,e.ExceptionEventName="exception"})),gt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0;var t=Oe(),n=ht(),r=Ke(),o=vt();e.Span=class{constructor(e,r,o,i,a,s,c=[],u=n.hrTime()){this.attributes={},this.links=[],this.events=[],this.status={code:t.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=o,this._spanContext=i,this.parentSpanId=s,this.kind=a,this.links=c,this.startTime=n.timeInputToHrTime(u),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return null==r||this._isSpanEnded()?this:0===e.length?(t.diag.warn(`Invalid attribute key: ${e}`),this):n.isAttributeValue(r)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)||(this.attributes[e]=r),this):(t.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,r,o){return this._isSpanEnded()||(this.events.length>=this._spanLimits.eventCountLimit&&(t.diag.warn("Dropping extra events."),this.events.shift()),n.isTimeInput(r)&&(typeof o>"u"&&(o=r),r=void 0),typeof o>"u"&&(o=n.hrTime()),this.events.push({name:e,attributes:r,time:n.timeInputToHrTime(o)})),this}setStatus(e){return this._isSpanEnded()||(this.status=e),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e=n.hrTime()){this._isSpanEnded()?t.diag.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=n.timeInputToHrTime(e),this._duration=n.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&t.diag.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))}isRecording(){return!1===this._ended}recordException(e,i=n.hrTime()){let a={};"string"==typeof e?a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?a[r.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(a[r.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(a[r.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),a[r.SemanticAttributes.EXCEPTION_TYPE]||a[r.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(o.ExceptionEventName,a,i):t.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}_isSpanEnded(){return this._ended&&t.diag.warn("Can not execute the operation on ended Span {traceId: %s, spanId: %s}",this._spanContext.traceId,this._spanContext.spanId),this._ended}}})),mt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildSamplerFromEnv=e.DEFAULT_CONFIG=void 0;var t=Oe(),n=ht(),r=n.getEnv(),o=n.TracesSamplerValues.AlwaysOn;function i(e=n.getEnv()){switch(e.OTEL_TRACES_SAMPLER){case n.TracesSamplerValues.AlwaysOn:return new n.AlwaysOnSampler;case n.TracesSamplerValues.AlwaysOff:return new n.AlwaysOffSampler;case n.TracesSamplerValues.ParentBasedAlwaysOn:return new n.ParentBasedSampler({root:new n.AlwaysOnSampler});case n.TracesSamplerValues.ParentBasedAlwaysOff:return new n.ParentBasedSampler({root:new n.AlwaysOffSampler});case n.TracesSamplerValues.TraceIdRatio:return new n.TraceIdRatioBasedSampler(s(e));case n.TracesSamplerValues.ParentBasedTraceIdRatio:return new n.ParentBasedSampler({root:new n.TraceIdRatioBasedSampler(s(e))});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${o}".`),new n.AlwaysOnSampler}}e.DEFAULT_CONFIG={sampler:i(r),forceFlushTimeoutMillis:3e4,spanLimits:{attributeCountLimit:n.getEnv().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:n.getEnv().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:n.getEnv().OTEL_SPAN_EVENT_COUNT_LIMIT}},e.buildSamplerFromEnv=i;var a=1;function s(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${a}.`),a;let n=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(n)?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${a}.`),a):n<0||n>1?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${a}.`),a):n}})),yt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeConfig=void 0;var t=mt();e.mergeConfig=function(e){let n={sampler:t.buildSamplerFromEnv()},r=Object.assign({},t.DEFAULT_CONFIG,n,e);return r.spanLimits=Object.assign({},t.DEFAULT_CONFIG.spanLimits,e.spanLimits||{}),r}})),_t=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tracer=void 0;var t=Oe(),n=ht(),r=gt(),o=yt();e.Tracer=class{constructor(e,t,r){this._tracerProvider=r;let i=o.mergeConfig(t);this._sampler=i.sampler,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new n.RandomIdGenerator,this.resource=r.resource,this.instrumentationLibrary=e}startSpan(e,o={},i=t.context.active()){var a,s;if(n.isTracingSuppressed(i))return t.diag.debug("Instrumentation suppressed, returning Noop Span"),t.trace.wrapSpanContext(t.INVALID_SPAN_CONTEXT);let c,u,l,p=function(e,n){if(!e.root)return t.trace.getSpanContext(n)}(o,i),d=this._idGenerator.generateSpanId();p&&t.trace.isSpanContextValid(p)?(c=p.traceId,u=p.traceState,l=p.spanId):c=this._idGenerator.generateTraceId();let f=null!==(a=o.kind)&&void 0!==a?a:t.SpanKind.INTERNAL,h=null!==(s=o.links)&&void 0!==s?s:[],v=n.sanitizeAttributes(o.attributes),g=this._sampler.shouldSample(o.root?t.trace.setSpanContext(i,t.INVALID_SPAN_CONTEXT):i,c,e,f,v,h),m={traceId:c,spanId:d,traceFlags:g.decision===t.SamplingDecision.RECORD_AND_SAMPLED?t.TraceFlags.SAMPLED:t.TraceFlags.NONE,traceState:u};if(g.decision===t.SamplingDecision.NOT_RECORD)return t.diag.debug("Recording is off, propagating context in a non-recording span"),t.trace.wrapSpanContext(m);let y=new r.Span(this,i,e,m,f,l,h,o.startTime);return y.setAttributes(Object.assign(v,g.attributes)),y}startActiveSpan(e,n,r,o){let i,a,s;if(arguments.length<2)return;2===arguments.length?s=n:3===arguments.length?(i=n,s=r):(i=n,a=r,s=o);let c=a??t.context.active(),u=this.startSpan(e,i,c),l=t.trace.setSpan(c,u);return t.context.with(l,s,void 0,u)}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}}})),Et=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultServiceName=void 0,e.defaultServiceName=function(){return`unknown_service:${process.argv0}`}})),bt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detectResources=void 0;var t=At(),r=Oe(),o=n(9023);e.detectResources=async(e={})=>{let n=Object.assign(e),o=await Promise.all((n.detectors||[]).map((async e=>{try{let t=await e.detect(n);return r.diag.debug(`${e.constructor.name} found resource.`,t),t}catch(n){return r.diag.debug(`${e.constructor.name} failed: ${n.message}`),t.Resource.empty()}})));return i(o),o.reduce(((e,t)=>e.merge(t)),t.Resource.empty())};var i=e=>{e.forEach((e=>{if(Object.keys(e.attributes).length>0){let t=o.inspect(e.attributes,{depth:2,breakLength:1/0,sorted:!0,compact:!1});r.diag.verbose(t)}}))}})),St=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.envDetector=void 0;var t=Oe(),n=ht(),r=Ke(),o=xt();e.envDetector=new class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}async detect(e){let i={},a=n.getEnv(),s=a.OTEL_RESOURCE_ATTRIBUTES,c=a.OTEL_SERVICE_NAME;if(s)try{let e=this._parseResourceAttributes(s);Object.assign(i,e)}catch(e){t.diag.debug(`EnvDetector failed: ${e.message}`)}return c&&(i[r.ResourceAttributes.SERVICE_NAME]=c),new o.Resource(i)}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR,-1);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2!==n.length)continue;let[r,o]=n;if(r=r.trim(),o=o.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(r))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(o))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);t[r]=o}return t}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isPrintableString(e)}_isPrintableString(e){for(let t=0;t<e.length;t++){let n=e.charAt(t);if(n<=" "||n>="~")return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}}})),Tt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processDetector=void 0;var t=Oe(),n=Ke(),r=xt();e.processDetector=new class{async detect(e){let t={[n.ResourceAttributes.PROCESS_PID]:process.pid,[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]:process.title||"",[n.ResourceAttributes.PROCESS_COMMAND]:process.argv[1]||"",[n.ResourceAttributes.PROCESS_COMMAND_LINE]:process.argv.join(" ")||""};return this._getResourceAttributes(t,e)}_getResourceAttributes(e,o){return""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]||""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_PATH]||""===e[n.ResourceAttributes.PROCESS_COMMAND]||""===e[n.ResourceAttributes.PROCESS_COMMAND_LINE]?(t.diag.debug("ProcessDetector failed: Unable to find required process resources. "),r.Resource.empty()):new r.Resource(Object.assign({},e))}}})),Pt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(St(),e),n(Tt(),e)})),wt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Et(),e),n(bt(),e),n(Pt(),e)})),Ct=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(wt(),e)})),At=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Resource=void 0;var t=Ke(),n=ht(),r=Ct(),o=class{constructor(e){this.attributes=e}static empty(){return o.EMPTY}static default(){return new o({[t.ResourceAttributes.SERVICE_NAME]:r.defaultServiceName(),[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE],[t.ResourceAttributes.TELEMETRY_SDK_NAME]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_NAME],[t.ResourceAttributes.TELEMETRY_SDK_VERSION]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_VERSION]})}merge(e){if(!e||!Object.keys(e.attributes).length)return this;let t=Object.assign({},this.attributes,e.attributes);return new o(t)}};e.Resource=o,o.EMPTY=new o({})})),It=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ot=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),xt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(At(),e),n(Ct(),e),n(It(),e),n(Ot(),e)})),Rt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSpanProcessor=void 0;var t=ht();e.MultiSpanProcessor=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise((n=>{Promise.all(e).then((()=>{n()})).catch((e=>{t.globalErrorHandler(e||new Error("MultiSpanProcessor: forceFlush failed")),n()}))}))}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise(((t,n)=>{Promise.all(e).then((()=>{t()}),n)}))}}})),Nt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopSpanProcessor=void 0,e.NoopSpanProcessor=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),Dt=E(((e,t)=>{var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Null]",u="[object Object]",l="[object Proxy]",p="[object Undefined]",d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[o]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[a]=h["[object Map]"]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var v,g="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),_="object"==typeof e&&e&&!e.nodeType&&e,E=_&&"object"==typeof t&&t&&!t.nodeType&&t,b=E&&E.exports===_,S=b&&g.process,T=function(){try{return E&&E.require&&E.require("util").types||S&&S.binding&&S.binding("util")}catch{}}(),P=T&&T.isTypedArray,w=Array.prototype,C=Function.prototype,A=Object.prototype,I=y["__core-js_shared__"],O=C.toString,x=A.hasOwnProperty,R=(v=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",N=A.toString,D=O.call(Object),k=RegExp("^"+O.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=b?y.Buffer:void 0,j=y.Symbol,L=y.Uint8Array,F=(M&&M.allocUnsafe,function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object)),H=Object.create,B=A.propertyIsEnumerable,U=w.splice,V=j?j.toStringTag:void 0,$=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch{}}(),G=M?M.isBuffer:void 0,q=Math.max,z=Date.now,W=le(y,"Map"),K=le(Object,"create"),X=function(){function e(){}return function(t){if(!Se(t))return{};if(H)return H(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new Y(e);this.size=t.size}function ee(e,t,n){(void 0!==n&&!ve(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];(!x.call(e,t)||!ve(r,n)||void 0===n&&!(t in e))&&re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(ve(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&$?$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Q.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},Q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Q.prototype.get=function(e){var t=this.__data__;if(K){var r=t[e];return r===n?void 0:r}return x.call(t,e)?t[e]:void 0},Q.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:x.call(t,e)},Q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return ne(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(W||Y),string:new Q}},J.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return ue(this,e).get(e)},J.prototype.has=function(e){return ue(this,e).has(e)},J.prototype.set=function(e,t){var n=ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new Y,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};var oe=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}return e};function ie(e){return null==e?void 0===e?p:c:V&&V in Object(e)?function(e){var t=x.call(e,V),n=e[V];try{e[V]=void 0;var r=!0}catch{}var o=N.call(e);return r&&(t?e[V]=n:delete e[V]),o}(e):function(e){return N.call(e)}(e)}function ae(e){return Te(e)&&ie(e)==o}function se(e,t,n,r,o){e!==t&&oe(t,(function(i,a){if(o||(o=new Z),Se(i))!function(e,t,n,r,o,i,a){var s=fe(e,n),c=fe(t,n),l=a.get(c);if(l)ee(e,n,l);else{var p=i?i(s,c,n+"",e,t,a):void 0,d=void 0===p;if(d){var f=me(c),h=!f&&_e(c),v=!f&&!h&&Pe(c);p=c,f||h||v?me(s)?p=s:function(e){return Te(e)&&ye(e)}(s)?p=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):h?(d=!1,p=function(e){return e.slice()}(c)):v?(d=!1,p=function(e){var t=function(e){var t=new e.constructor(e.byteLength);return new L(t).set(new L(e)),t}(e.buffer);return new e.constructor(t,e.byteOffset,e.length)}(c)):p=[]:function(e){if(!Te(e)||ie(e)!=u)return!1;var t=F(e);if(null===t)return!0;var n=x.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==D}(c)||ge(c)?(p=s,ge(s)?p=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),r?re(n,a,s):te(n,a,s)}return n}(e,we(e))}(s):(!Se(s)||Ee(s))&&(p=function(e){return"function"!=typeof e.constructor||de(e)?{}:X(F(e))}(c))):d=!1}d&&(a.set(c,p),o(p,c,r,i,a),a.delete(c)),ee(e,n,p)}}(e,t,a,n,se,r,o);else{var s=r?r(fe(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),ee(e,a,s)}}),we)}var ce=$?function(e,t){return $(e,"toString",{configurable:!0,enumerable:!1,value:Ae(t),writable:!0})}:Ie;function ue(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Se(e)||function(e){return!!R&&R in e}(e))&&(Ee(e)?k:d).test(function(e){if(null!=e){try{return O.call(e)}catch{}try{return e+""}catch{}}return""}(e))}(n)?n:void 0}function pe(e,t){var n=typeof e;return!!(t=t??r)&&("number"==n||"symbol"!=n&&f.test(e))&&e>-1&&e%1==0&&e<t}function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var he=function(e){var t=0,n=0;return function(){var r=z(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function ve(e,t){return e===t||e!=e&&t!=t}var ge=ae(function(){return arguments}())?ae:function(e){return Te(e)&&x.call(e,"callee")&&!B.call(e,"callee")},me=Array.isArray;function ye(e){return null!=e&&be(e.length)&&!Ee(e)}var _e=G||function(){return!1};function Ee(e){if(!Se(e))return!1;var t=ie(e);return t==a||t==s||t==i||t==l}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Se(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Pe=P?function(e){return function(t){return e(t)}}(P):function(e){return Te(e)&&be(e.length)&&!!h[ie(e)]};function we(e){return ye(e)?function(e,t){var n=me(e),r=!n&&ge(e),o=!n&&!r&&_e(e),i=!n&&!r&&!o&&Pe(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var u in e)(t||x.call(e,u))&&(!a||!("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||pe(u,c)))&&s.push(u);return s}(e,!0):function(e){if(!Se(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var r in e)"constructor"==r&&(t||!x.call(e,r))||n.push(r);return n}(e)}var Ce=function(e){return function(e,t){return he(function(e,t,n){return t=q(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=q(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ie),e+"")}((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&function(e,t,n){if(!Se(n))return!1;var r=typeof t;return!!("number"==r?ye(n)&&pe(t,n.length):"string"==r&&t in n)&&ve(n[t],e)}(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r)}return t}))}((function(e,t,n){se(e,t,n)}));function Ae(e){return function(){return e}}function Ie(e){return e}t.exports=Ce})),kt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessorBase=void 0;var t=Oe(),n=ht();e.BatchSpanProcessorBase=class{constructor(e,t){this._exporter=e,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();let r=n.getEnv();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT}forceFlush(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()}onStart(e){}onEnd(e){this._isShutdown||this._addToBuffer(e)}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this.onShutdown())).then((()=>this._flushAll())).then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}_addToBuffer(e){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(e),this._maybeStartTimer())}_flushAll(){return new Promise(((e,t)=>{let n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then((()=>{e()})).catch(t)}))}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(((e,r)=>{let o=setTimeout((()=>{r(new Error("Timeout"))}),this._exportTimeoutMillis);t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export(this._finishedSpans.splice(0,this._maxExportBatchSize),(t=>{var i;clearTimeout(o),t.code===n.ExportResultCode.SUCCESS?e():r(null!==(i=t.error)&&void 0!==i?i:new Error("BatchSpanProcessor: span export failed"))}))}))}))}_maybeStartTimer(){void 0===this._timer&&(this._timer=setTimeout((()=>{this._flushOneBatch().then((()=>{this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())})).catch((e=>{n.globalErrorHandler(e)}))}),this._scheduledDelayMillis),n.unrefTimer(this._timer))}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}})),Mt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessor=void 0;var t=kt(),n=class extends t.BatchSpanProcessorBase{onShutdown(){}};e.BatchSpanProcessor=n})),jt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Mt(),e)})),Lt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(jt(),e)})),Ft=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTracerProvider=e.ForceFlushState=void 0;var t,n,r=Oe(),o=ht(),i=xt(),a=Wt(),s=mt(),c=Rt(),u=Nt(),l=Dt(),p=Lt();(n=t=e.ForceFlushState||(e.ForceFlushState={}))[n.resolved=0]="resolved",n[n.timeout=1]="timeout",n[n.error=2]="error",n[n.unresolved=3]="unresolved";var d=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=l({},s.DEFAULT_CONFIG,e);this.resource=null!==(t=n.resource)&&void 0!==t?t:i.Resource.empty(),this.resource=i.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let r=this._buildExporterFromEnv();if(void 0!==r){let e=new p.BatchSpanProcessor(r);this.activeSpanProcessor=e}else this.activeSpanProcessor=new u.NoopSpanProcessor}getTracer(e,t){let n=`${e}@${t||""}`;return this._tracers.has(n)||this._tracers.set(n,new a.Tracer({name:e,version:t},this._config,this)),this._tracers.get(n)}addSpanProcessor(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((e=>r.diag.error("Error while trying to shutdown current span processor",e))),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new c.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){r.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&r.context.setGlobalContextManager(e.contextManager),e.propagator&&r.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map((n=>new Promise((r=>{let o,i=setTimeout((()=>{r(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=t.timeout}),e);n.forceFlush().then((()=>{clearTimeout(i),o!==t.timeout&&(o=t.resolved,r(o))})).catch((e=>{clearTimeout(i),o=t.error,r(e)}))}))));return new Promise(((e,r)=>{Promise.all(n).then((n=>{let o=n.filter((e=>e!==t.resolved));o.length>0?r(o):e()})).catch((e=>r([e])))}))}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return null===(t=d._registeredPropagators.get(e))||void 0===t?void 0:t()}_getSpanExporter(e){var t;return null===(t=d._registeredExporters.get(e))||void 0===t?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set(o.getEnv().OTEL_PROPAGATORS)),t=e.map((e=>{let t=this._getPropagator(e);return t||r.diag.warn(`Propagator "${e}" requested through environment variable is unavailable.`),t})).reduce(((e,t)=>(t&&e.push(t),e)),[]);if(0!==t.length)return 1===e.length?t[0]:new o.CompositePropagator({propagators:t})}_buildExporterFromEnv(){let e=o.getEnv().OTEL_TRACES_EXPORTER;if("none"===e)return;let t=this._getSpanExporter(e);return t||r.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};e.BasicTracerProvider=d,d._registeredPropagators=new Map([["tracecontext",()=>new o.HttpTraceContextPropagator],["baggage",()=>new o.HttpBaggagePropagator]]),d._registeredExporters=new Map})),Ht=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleSpanExporter=void 0;var t=ht();e.ConsoleSpanExporter=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),Promise.resolve()}_exportInfo(e){return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:t.hrTimeToMicroseconds(e.startTime),duration:t.hrTimeToMicroseconds(e.duration),attributes:e.attributes,status:e.status,events:e.events}}_sendSpans(e,n){for(let t of e)console.log(this._exportInfo(t));if(n)return n({code:t.ExportResultCode.SUCCESS})}}})),Bt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemorySpanExporter=void 0;var t=ht();e.InMemorySpanExporter=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,n){if(this._stopped)return n({code:t.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout((()=>n({code:t.ExportResultCode.SUCCESS})),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),Ut=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Vt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleSpanProcessor=void 0;var t=Oe(),n=ht();e.SimpleSpanProcessor=class{constructor(e){this._exporter=e,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}forceFlush(){return Promise.resolve()}onStart(e){}onEnd(e){this._isShutdown||t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export([e],(e=>{var t;e.code!==n.ExportResultCode.SUCCESS&&n.globalErrorHandler(null!==(t=e.error)&&void 0!==t?t:new Error(`SimpleSpanProcessor: span export failed (status ${e})`))}))}))}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}}})),$t=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),qt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),zt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Wt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(_t(),e),n(Ft(),e),n(Lt(),e),n(Ht(),e),n(Bt(),e),n(Ut(),e),n(Vt(),e),n($t(),e),n(Nt(),e),n(gt(),e),n(Gt(),e),n(qt(),e),n(zt(),e)})),Kt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.azureCoreTracing=e.AzureMonitorSymbol=void 0;var t=k();e.AzureMonitorSymbol="Azure_Monitor_Tracer";var n=!1;e.azureCoreTracing={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(r){if(n)return r;try{var o=Wt(),i=Oe(),a=(new o.BasicTracerProvider).getTracer("applicationinsights tracer"),s=r.setTracer;r.setTracer=function(n){var r=n.startSpan;n.startSpan=function(e,n,o){var i=r.call(this,e,n,o),a=i.end;return i.end=function(){var e=a.apply(this,arguments);return t.channel.publish("azure-coretracing",i),e},i},n[e.AzureMonitorSymbol]=!0,s.call(this,n)},i.trace.getSpan(i.context.active()),r.setTracer(a),n=!0}catch{}return r}},e.enable=function(){t.channel.registerMonkeyPatch("@azure/core-tracing",e.azureCoreTracing)}})),Xt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.bunyan=void 0;var t=k();e.bunyan={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(e){var n=e.prototype._emit;return e.prototype._emit=function(e,r){var o=n.apply(this,arguments);if(!r){var i=o;i||(i=n.call(this,e,!0)),t.channel.publish("bunyan",{level:e.level,result:i})}return o},e}},e.enable=function(){t.channel.registerMonkeyPatch("bunyan",e.bunyan)}})),Qt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.console=void 0;var t=k(),r=n(2203);e.console={versionSpecifier:">= 4.0.0",patch:function(e){var n=new r.Writable,o=new r.Writable;n.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n}),!0},o.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n,stderr:!0}),!0};for(var i=new e.Console(n,o),a=function(t){var n=e[t];n&&(e[t]=function(){if(i[t])try{i[t].apply(i,arguments)}catch{}return n.apply(e,arguments)})},s=0,c=["log","info","warn","error","dir","time","timeEnd","trace","assert"];s<c.length;s++)a(c[s]);return e}},e.enable=function(){t.channel.registerMonkeyPatch("console",e.console),n(4236)}})),Yt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongoCore=void 0;var t=k();e.mongoCore={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.Server.prototype.connect;return e.Server.prototype.connect=function(){var e=n.apply(this,arguments),r=this.s.pool.write;this.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=t.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var o=this.s.pool.logout;return this.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=t.channel.bindToContext(arguments[1])),o.apply(this,arguments)},e},e}},e.enable=function(){t.channel.registerMonkeyPatch("mongodb-core",e.mongoCore)}})),Jt=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongo330=e.mongo3=e.mongo2=void 0;var n=k();e.mongo2={versionSpecifier:">= 2.0.0 <= 3.0.5",patch:function(e){var r=e.instrument({operationIdGenerator:{next:function(){return n.channel.bindToContext((function(e){return e()}))}}}),o={};return r.on("started",(function(e){o[e.requestId]||(o[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=o[e.requestId];t&&delete o[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),r.on("failed",(function(e){var t=o[e.requestId];t&&delete o[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),e}},e.mongo3={versionSpecifier:"> 3.0.5 < 3.3.0",patch:function(e){var r=e.instrument(),o={},i={};return r.on("started",(function(e){o[e.requestId]||(i[e.requestId]=n.channel.bindToContext((function(e){return e()})),o[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=o[e.requestId];t&&delete o[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete i[e.requestId])})),r.on("failed",(function(e){var t=o[e.requestId];t&&delete o[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete i[e.requestId])})),e}},e.mongo330={versionSpecifier:">= 3.3.0 < 4.0.0",patch:function(e){!function(e){var t=e.Server.prototype.connect;e.Server.prototype.connect=function(){var e=t.apply(this,arguments),r=this.s.coreTopology.s.pool.write;this.s.coreTopology.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=n.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var o=this.s.coreTopology.s.pool.logout;return this.s.coreTopology.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=n.channel.bindToContext(arguments[1])),o.apply(this,arguments)},e}}(e);var t=e.instrument(),r={},o={};return t.on("started",(function(e){r[e.requestId]||(o[e.requestId]=n.channel.bindToContext((function(e){return e()})),r[e.requestId]=e)})),t.on("succeeded",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete o[e.requestId])})),t.on("failed",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete o[e.requestId])})),e}},e.enable=function(){n.channel.registerMonkeyPatch("mongodb",e.mongo2),n.channel.registerMonkeyPatch("mongodb",e.mongo3),n.channel.registerMonkeyPatch("mongodb",e.mongo330)}})),Zt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mysql=void 0;var t=k(),r=n(6928);e.mysql={versionSpecifier:">= 2.0.0 < 3.0.0",patch:function(e,o){var i=function(e,n){return function(n,r){var o=e[n];o&&(e[n]=function(){for(var e=arguments.length-1,n=arguments.length-1;n>=0;--n){if("function"==typeof arguments[n]){e=n;break}if(typeof arguments[n]<"u")break}var i=arguments[e],a={result:null,startTime:null,startDate:null};"function"==typeof i&&(r?(a.startTime=process.hrtime(),a.startDate=new Date,arguments[e]=t.channel.bindToContext(r(a,i))):arguments[e]=t.channel.bindToContext(i));var s=o.apply(this,arguments);return a.result=s,s})}},a=function(e,t){return i(e.prototype)},s=n(889)(r.dirname(o)+"/lib/Connection");["connect","changeUser","ping","statistics","end"].forEach((function(e){return a(s)(e)})),i(s)("createQuery",(function(e,n){return function(r){var o=process.hrtime(e.startTime),i=1e3*o[0]+o[1]/1e6|0;t.channel.publish("mysql",{query:e.result,callbackArgs:arguments,err:r,duration:i,time:e.startDate}),n.apply(this,arguments)}}));var c=n(8371)(r.dirname(o)+"/lib/Pool");return["_enqueueCallback"].forEach((function(e){return a(c)(e)})),e}},e.enable=function(){t.channel.registerMonkeyPatch("mysql",e.mysql)}})),en=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgresPool1=void 0;var t=k();e.postgresPool1={versionSpecifier:">= 1.0.0 < 3.0.0",patch:function(e){var n=e.prototype.connect;return e.prototype.connect=function(e){return e&&(arguments[0]=t.channel.bindToContext(e)),n.apply(this,arguments)},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg-pool",e.postgresPool1)}})),tn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgres7=e.postgres6=void 0;var t=k(),r=n(4434);e.postgres6={versionSpecifier:"6.*",patch:function(e,n){var o=e.Client.prototype.query,i="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},u=process.hrtime();function l(e){e&&e[i]&&(e=e[i]);var n=t.channel.bindToContext((function(n,o){var i=process.hrtime(u);if(c.result=o&&{rowCount:o.rowCount,command:o.command},c.error=n,c.duration=Math.ceil(1e3*i[0]+i[1]/1e6),t.channel.publish("postgres",c),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,i,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(c.query.preparable={text:e,args:n},a=l(a)):(c.query.text=e,a?a=l(a):n=l(n)):("string"==typeof e.name?c.query.plan=e.name:e.values instanceof Array?c.query.preparable={text:e.text,args:e.values}:c.query.text=e.text,a?a=l(a):n?n=l(n):e.callback=l(e.callback))}catch{return o.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=o.apply(this,arguments)},e}},e.postgres7={versionSpecifier:">=7.* <=8.*",patch:function(e,n){var o=e.Client.prototype.query,i="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c=this,u=!!a,l={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},p=process.hrtime();function d(e){e&&e[i]&&(e=e[i]);var n=t.channel.bindToContext((function(n,o){var i=process.hrtime(p);if(l.result=o&&{rowCount:o.rowCount,command:o.command},l.error=n,l.duration=Math.ceil(1e3*i[0]+i[1]/1e6),t.channel.publish("postgres",l),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,i,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(l.query.preparable={text:e,args:n},a=(u="function"==typeof a)?d(a):a):(l.query.text=e,a?a=(u="function"==typeof a)?d(a):a:n=(u="function"==typeof n)?d(n):n):("string"==typeof e.name?l.query.plan=e.name:e.values instanceof Array?l.query.preparable={text:e.text,args:e.values}:l.query.text=e.text,a?(u="function"==typeof a,a=d(a)):n?n=(u="function"==typeof n)?d(n):n:(u="function"==typeof e.callback,e.callback=u?d(e.callback):e.callback))}catch{return o.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=o.apply(this,arguments),u?s:s.then((function(e){return d()(void 0,e),new c._Promise((function(t,n){t(e)}))})).catch((function(e){return d()(e,void 0),new c._Promise((function(t,n){n(e)}))}))},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg",e.postgres6),t.channel.registerMonkeyPatch("pg",e.postgres7)}})),nn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.redis=void 0;var t=k();e.redis={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.RedisClient.prototype.internal_send_command;return e.RedisClient.prototype.internal_send_command=function(e){if(e){var r=e.callback;if(!r||!r.pubsubBound){var o=this.address,i=process.hrtime(),a=new Date;e.callback=t.channel.bindToContext((function(n,s){var c=process.hrtime(i),u=1e3*c[0]+c[1]/1e6|0;t.channel.publish("redis",{duration:u,address:o,commandObj:e,err:n,result:s,time:a}),"function"==typeof r&&r.apply(this,arguments)})),e.callback.pubsubBound=!0}}return n.call(this,e)},e}},e.enable=function(){t.channel.registerMonkeyPatch("redis",e.redis)}})),rn=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=void 0;var n=k();e.tedious={versionSpecifier:">= 6.0.0 < 9.0.0",patch:function(e){var r=e.Connection.prototype.makeRequest;return e.Connection.prototype.makeRequest=function(){var e,o,i,a=arguments[0];arguments[0].callback=(e=a.callback,o=process.hrtime(),i={query:{},database:{host:null,port:null},result:null,error:null,duration:0},n.channel.bindToContext((function(r,a,s){var c=process.hrtime(o);i=t(t({},i),{database:{host:this.connection.config.server,port:this.connection.config.options.port},result:!r&&{rowCount:a,rows:s},query:{text:this.parametersByName.statement.value},error:r,duration:Math.ceil(1e3*c[0]+c[1]/1e6)}),n.channel.publish("tedious",i),e.call(this,r,a,s)}))),r.apply(this,arguments)},e}},e.enable=function(){n.channel.registerMonkeyPatch("tedious",e.tedious)}})),on=E((e=>{"use strict";var t,n=e&&e.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),r=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.winston2=e.winston3=void 0;var o=k();e.winston3={versionSpecifier:"3.x",patch:function(e){var t=function(e){function t(t,n){var r=e.call(this,n)||this;return r.winston=t,r}return n(t,e),t.prototype.log=function(e,t){var n=e.message,i=e.level,a=e.meta,s=r(e,["message","level","meta"]);i="function"==typeof Symbol.for?e[Symbol.for("level")]:i,n=e instanceof Error?e:n;var c=function(e,t){return null!=e.config.npm.levels[t]?"npm":null!=e.config.syslog.levels[t]?"syslog":"unknown"}(this.winston,i);for(var u in a=a||{},s)s.hasOwnProperty(u)&&(a[u]=s[u]);o.channel.publish("winston",{message:n,level:i,levelKind:c,meta:a}),t()},t}(e.Transport);function i(){var n,r=arguments[0].levels||e.config.npm.levels;for(var o in r)r.hasOwnProperty(o)&&(n=void 0===n||r[o]>r[n]?o:n);this.add(new t(e,{level:n}))}var a=e.createLogger;e.createLogger=function(){var n,r=arguments[0].levels||e.config.npm.levels;for(var o in r)r.hasOwnProperty(o)&&(n=void 0===n||r[o]>r[n]?o:n);var s=a.apply(this,arguments);s.add(new t(e,{level:n}));var c=s.configure;return s.configure=function(){c.apply(this,arguments),i.apply(this,arguments)},s};var s=e.configure;return e.configure=function(){s.apply(this,arguments),i.apply(this,arguments)},e.add(new t(e)),e}},e.winston2={versionSpecifier:"2.x",patch:function(e){var t,n=e.Logger.prototype.log,r=function(n,r,i){var a;return a=t===e.config.npm.levels?"npm":t===e.config.syslog.levels?"syslog":"unknown",o.channel.publish("winston",{level:n,message:r,meta:i,levelKind:a}),r};return e.Logger.prototype.log=function(){return t=this.levels,this.filters&&0!==this.filters.length?this.filters[this.filters.length-1]!==r&&(this.filters=this.filters.filter((function(e){return e!==r})),this.filters.push(r)):this.filters=[r],n.apply(this,arguments)},e}},e.enable=function(){o.channel.registerMonkeyPatch("winston",e.winston2),o.channel.registerMonkeyPatch("winston",e.winston3)}})),an=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=e.pgPool=e.pg=e.winston=e.redis=e.mysql=e.mongodb=e.mongodbCore=e.console=e.bunyan=e.azuresdk=void 0;var t=Kt();e.azuresdk=t;var n=Xt();e.bunyan=n;var r=Qt();e.console=r;var o=Yt();e.mongodbCore=o;var i=Jt();e.mongodb=i;var a=Zt();e.mysql=a;var s=en();e.pgPool=s;var c=tn();e.pg=c;var u=nn();e.redis=u;var l=rn();e.tedious=l;var p=on();e.winston=p,e.enable=function(){n.enable(),r.enable(),o.enable(),i.enable(),a.enable(),c.enable(),s.enable(),u.enable(),p.enable(),t.enable(),l.enable()}})),sn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerContextPreservation=e.IsInitialized=void 0;var t=x(),n=O();e.IsInitialized=!process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL;var r,o,i,a,s="DiagnosticChannel";if(e.IsInitialized){for(a in r=an(),o=(process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES||"").split(","),i={bunyan:r.bunyan,console:r.console,mongodb:r.mongodb,mongodbCore:r.mongodbCore,mysql:r.mysql,redis:r.redis,pg:r.pg,pgPool:r.pgPool,winston:r.winston,azuresdk:r.azuresdk})-1===o.indexOf(a)&&(i[a].enable(),n.info(s,"Subscribed to "+a+" events"));o.length>0&&n.info(s,"Some modules will not be patched",o)}else n.info(s,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");e.registerContextPreservation=function(n){if(e.IsInitialized){var r=k();r.channel.addContextPreservation(n),r.channel.spanContextPropagator=t.AsyncScopeManager}}})),cn=E(((e,t)=>{"use strict";t.exports={requestContextHeader:"request-context",requestContextSourceKey:"appId",requestContextTargetKey:"appId",requestIdHeader:"request-id",parentIdHeader:"x-ms-request-id",rootIdHeader:"x-ms-request-root-id",correlationContextHeader:"correlation-context",traceparentHeader:"traceparent",traceStateHeader:"tracestate"}})),un=E(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=n(8611),i=n(5692),a=n(7016),s=n(9140),c=O(),u=cn(),l=function(){function e(){}return e.getCookie=function(t,n){var r="";if(t&&t.length&&"string"==typeof n)for(var o=t+"=",i=n.split(";"),a=0;a<i.length;a++)if(n=i[a],(n=e.trim(n))&&0===n.indexOf(o)){r=n.substring(o.length,i[a].length);break}return r},e.trim=function(e){return"string"==typeof e?e.replace(/^\s+|\s+$/g,""):""},e.int32ArrayToBase64=function(e){var t=function(e,t){return String.fromCharCode(e>>t&255)},n=e.map((function(e){return t(e,24)+t(e,16)+t(e,8)+t(e,0)})).join(""),r=(Buffer.from?Buffer.from(n,"binary"):new Buffer(n,"binary")).toString("base64");return r.substr(0,r.indexOf("="))},e.random32=function(){return 4294967296*Math.random()|0},e.randomu32=function(){return e.random32()+2147483648},e.w3cTraceId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",o=0;o<4;o++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var i=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+i+r.substr(16,3)+r.substr(19,12)},e.w3cSpanId=function(){return e.w3cTraceId().substring(16)},e.isValidW3CId=function(e){return 32===e.length&&"00000000000000000000000000000000"!==e},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return e instanceof Error},e.isPrimitive=function(e){var t=typeof e;return"string"===t||"number"===t||"boolean"===t},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=(e/1e3%60).toFixed(7).replace(/0{0,4}$/,""),n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=t.indexOf(".")<2?"0"+t:t,n=n.length<2?"0"+n:n,(o>0?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t},e.extractError=function(e){var t=e;return{message:e.message,code:t.code||t.id||""}},e.extractObject=function(t){return t instanceof Error?e.extractError(t):"function"==typeof t.toJSON?t.toJSON():t},e.validateStringMap=function(t){if("object"==typeof t){var n={};for(var r in t){var o="",i=t[r],a=typeof i;if(e.isPrimitive(i))o=i.toString();else if(null===i||"undefined"===a)o="";else{if("function"===a){c.info("key: "+r+" was function; will not serialize");continue}var s=e.isArray(i)?i:e.extractObject(i);try{o=e.isPrimitive(s)?s:JSON.stringify(s)}catch(e){o=i.constructor.name.toString()+" (Error: "+e.message+")",c.info("key: "+r+", could not be serialized")}}n[r]=o.substring(0,e.MAX_PROPERTY_LENGTH)}return n}c.info("Invalid properties dropped from payload")},e.canIncludeCorrelationHeader=function(e,t){var n=e&&e.config&&e.config.correlationHeaderExcludedDomains;if(!n||0==n.length||!t)return!0;for(var r=0;r<n.length;r++)if(new RegExp(n[r].replace(/\./g,".").replace(/\*/g,".*")).test(a.parse(t).hostname))return!1;return!0},e.getCorrelationContextTarget=function(e,t){var n=e.headers&&e.headers[u.requestContextHeader];if(n)for(var r=n.split(","),o=0;o<r.length;++o){var i=r[o].split("=");if(2==i.length&&i[0]==t)return i[1]}},e.makeRequest=function(t,n,s,u){n&&0===n.indexOf("//")&&(n="https:"+n);var l=a.parse(n),p=r(r({},s),{host:l.hostname,port:l.port,path:l.pathname}),d=void 0;if("https:"===l.protocol&&(d=t.proxyHttpsUrl||void 0),"http:"===l.protocol&&(d=t.proxyHttpUrl||void 0),d){0===d.indexOf("//")&&(d="http:"+d);var f=a.parse(d);"https:"===f.protocol?(c.info("Proxies that use HTTPS are not supported"),d=void 0):p=r(r({},p),{host:f.hostname,port:f.port||"80",path:n,headers:r(r({},p.headers),{Host:l.hostname})})}var h="https:"===l.protocol&&!d;return h&&void 0!==t.httpsAgent?p.agent=t.httpsAgent:h||void 0===t.httpAgent?h&&(p.agent=e.tlsRestrictedAgent):p.agent=t.httpAgent,h?i.request(p,u):o.request(p,u)},e.safeIncludeCorrelationHeader=function(t,n,r){var o;if("string"==typeof r)o=r;else if(r instanceof Array)o=r.join(",");else if(r&&"function"==typeof r.toString)try{o=r.toString()}catch(e){c.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.",e,r)}o?e.addCorrelationIdHeaderFromString(t,n,o):n.setHeader(u.requestContextHeader,u.requestContextSourceKey+"="+t.config.correlationId)},e.dumpObj=function(e){var t=Object.prototype.toString.call(e);return t+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":JSON.stringify(e))},e.addCorrelationIdHeaderFromString=function(e,t,n){var r=n.split(","),o=u.requestContextSourceKey+"=";r.some((function(e){return e.substring(0,o.length)===o}))||t.setHeader(u.requestContextHeader,n+","+u.requestContextSourceKey+"="+e.config.correlationId)},e.MAX_PROPERTY_LENGTH=8192,e.tlsRestrictedAgent=new i.Agent({keepAlive:!0,maxSockets:25,secureOptions:s.SSL_OP_NO_SSLv2|s.SSL_OP_NO_SSLv3|s.SSL_OP_NO_TLSv1|s.SSL_OP_NO_TLSv1_1}),e}();t.exports=l})),ln=E(((e,t)=>{"use strict";var n=un(),r=O(),o=function(){function e(){}return e.queryCorrelationId=function(t,o){var i=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId";if(e.completedLookups.hasOwnProperty(i))o(e.completedLookups[i]);else if(e.pendingLookups[i])e.pendingLookups[i].push(o);else{e.pendingLookups[i]=[o];var a=function(){if(e.pendingLookups[i]){var o={method:"GET",disableAppInsightsAutoCollection:!0};r.info(e.TAG,o);var s=n.makeRequest(t,i,o,(function(n){if(200===n.statusCode){var o="";n.setEncoding("utf-8"),n.on("data",(function(e){o+=e})),n.on("end",(function(){r.info(e.TAG,o);var t=e.correlationIdPrefix+o;e.completedLookups[i]=t,e.pendingLookups[i]&&e.pendingLookups[i].forEach((function(e){return e(t)})),delete e.pendingLookups[i]}))}else n.statusCode>=400&&n.statusCode<500?(e.completedLookups[i]=void 0,delete e.pendingLookups[i]):setTimeout(a,t.correlationIdRetryIntervalMs)}));s&&(s.on("error",(function(t){r.warn(e.TAG,t)})),s.end())}};setTimeout(a,0)}},e.cancelCorrelationIdQuery=function(t,n){var r=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId",o=e.pendingLookups[r];o&&(e.pendingLookups[r]=o.filter((function(e){return e!=n})),0==e.pendingLookups[r].length&&delete e.pendingLookups[r])},e.generateRequestId=function(t){if(t){"."!==(t="|"==t[0]?t:"|"+t)[t.length-1]&&(t+=".");var n=(e.currentRootId++).toString(16);return e.appendSuffix(t,n,"_")}return e.generateRootId()},e.getRootId=function(e){var t=e.indexOf(".");t<0&&(t=e.length);var n="|"===e[0]?1:0;return e.substring(n,t)},e.generateRootId=function(){return"|"+n.w3cTraceId()+"."},e.appendSuffix=function(t,r,o){if(t.length+r.length<e.requestIdMaxLength)return t+r+o;var i=e.requestIdMaxLength-9;if(t.length>i)for(;i>1;--i){var a=t[i-1];if("."===a||"_"===a)break}if(i<=1)return e.generateRootId();for(r=n.randomu32().toString(16);r.length<8;)r="0"+r;return t.substring(0,i)+r+"#"},e.TAG="CorrelationIdManager",e.correlationIdPrefix="cid-v1:",e.w3cEnabled=!0,e.pendingLookups={},e.completedLookups={},e.requestIdMaxLength=1024,e.currentRootId=n.randomu32(),e}();t.exports=o})),pn=E(((e,t)=>{"use strict";var n=un(),r=ln(),o=function(){function e(t,o){if(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,t&&"string"==typeof t)if(t.split(",").length>1)this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16);else{var i=t.trim().split("-"),a=i.length;a>=4?(this.version=i[0],this.traceId=i[1],this.spanId=i[2],this.traceFlag=i[3]):(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^[0-9a-f]{2}$/g)||(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId()),"00"===this.version&&4!==a&&(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),"ff"===this.version&&(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^0[0-9a-f]$/g)||(this.version=e.DEFAULT_VERSION),this.traceFlag.match(/^[0-9a-f]{2}$/g)||(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.traceId=n.w3cTraceId()),e.isValidTraceId(this.traceId)||(this.traceId=n.w3cTraceId()),e.isValidSpanId(this.spanId)||(this.spanId=n.w3cTraceId().substr(0,16),this.traceId=n.w3cTraceId()),this.parentId=this.getBackCompatRequestId()}else if(o){this.parentId=o.slice();var s=r.getRootId(o);e.isValidTraceId(s)||(this.legacyRootId=s,s=n.w3cTraceId()),-1!==o.indexOf("|")&&(o=o.substring(1+o.substring(0,o.length-1).lastIndexOf("."),o.length-1)),this.traceId=s,this.spanId=o}else this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.formatOpenTelemetryTraceFlags=function(e){var t="0"+e.toString(16);return t.substring(t.length-2)},e.prototype.getBackCompatRequestId=function(){return"|"+this.traceId+"."+this.spanId+"."},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.prototype.updateSpanId=function(){this.spanId=n.w3cTraceId().substr(0,16)},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}();t.exports=o})),dn=E(((e,t)=>{"use strict";var n=function(){function e(e){this.fieldmap=[],e&&(this.fieldmap=this.parseHeader(e))}return e.prototype.toString=function(){var e=this.fieldmap;return e&&0!=e.length?e.join(", "):null},e.validateKeyChars=function(e){var t=e.split("@");if(2==t.length){var n=t[0].trim(),r=t[1].trim(),o=Boolean(n.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/)),i=Boolean(r.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/));return o&&i}return 1==t.length&&Boolean(e.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/))},e.prototype.parseHeader=function(t){var n=[],r={},o=t.split(",");if(o.length>32)return null;for(var i=0,a=o;i<a.length;i++){var s=a[i].trim();if(0!==s.length){var c=s.split("=");if(2!==c.length||!e.validateKeyChars(c[0])||r[c[0]])return null;r[c[0]]=!0,n.push(s)}}return n},e.strict=!0,e}();t.exports=n})),fn=E(((e,t)=>{"use strict";t.exports=function(){}})),hn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=o})),vn=E(((e,t)=>{"use strict";t.exports=function(){}})),gn=E(((e,t)=>{"use strict";t.exports=function(){this.applicationVersion="ai.application.ver",this.deviceId="ai.device.id",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceOEMName="ai.device.oemName",this.deviceOSVersion="ai.device.osVersion",this.deviceType="ai.device.type",this.locationIp="ai.location.ip",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.userAccountId="ai.user.accountId",this.userId="ai.user.id",this.userAuthUserId="ai.user.authUserId",this.cloudRole="ai.cloud.role",this.cloudRoleInstance="ai.cloud.roleInstance",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalNodeName="ai.internal.nodeName"}})),mn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){return e.call(this)||this}return r(t,e),t}(vn());t.exports=o})),yn=E(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Measurement=0]="Measurement",r[r.Aggregation=1]="Aggregation",t.exports=n})),_n=E(((e,t)=>{"use strict";var n=yn();t.exports=function(){this.kind=n.Measurement}})),En=E(((e,t)=>{"use strict";t.exports=function(){this.ver=1,this.sampleRate=100,this.tags={}}})),bn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=o})),Sn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=o})),Tn=E(((e,t)=>{"use strict";t.exports=function(){this.hasFullStack=!0,this.parsedStack=[]}})),Pn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t}return r(t,e),t}(fn());t.exports=o})),wn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t}return r(t,e),t}(fn());t.exports=o})),Cn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(bn());t.exports=o})),An=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=o})),In=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=o})),On=E(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Verbose=0]="Verbose",r[r.Information=1]="Information",r[r.Warning=2]="Warning",r[r.Error=3]="Error",r[r.Critical=4]="Critical",t.exports=n})),xn=E(((e,t)=>{"use strict";t.exports=function(){}})),Rn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AvailabilityData=hn(),e.Base=vn(),e.ContextTagKeys=gn(),e.Data=mn(),e.DataPoint=_n(),e.DataPointType=yn(),e.Domain=fn(),e.Envelope=En(),e.EventData=bn(),e.ExceptionData=Sn(),e.ExceptionDetails=Tn(),e.MessageData=Pn(),e.MetricData=wn(),e.PageViewData=Cn(),e.RemoteDependencyData=An(),e.RequestData=In(),e.SeverityLevel=On(),e.StackFrame=xn()})),Nn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.domainSupportsProperties=e.RemoteDependencyDataConstants=void 0;var t=Rn(),n=function(){function e(){}return e.TYPE_HTTP="Http",e.TYPE_AI="Http (tracked component)",e}();e.RemoteDependencyDataConstants=n,e.domainSupportsProperties=function(e){return"properties"in e||e instanceof t.EventData||e instanceof t.ExceptionData||e instanceof t.MessageData||e instanceof t.MetricData||e instanceof t.PageViewData||e instanceof t.RemoteDependencyData||e instanceof t.RequestData}})),Dn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),kn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Mn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),jn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ln=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Fn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Hn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Bn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Un=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Vn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),$n=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),qn=E((e=>{"use strict";var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryType=e.TelemetryTypeString=e.baseTypeToTelemetryType=e.telemetryTypeToBaseType=void 0,e.telemetryTypeToBaseType=function(e){switch(e){case t.Event:return"EventData";case t.Exception:return"ExceptionData";case t.Trace:return"MessageData";case t.Metric:return"MetricData";case t.Request:return"RequestData";case t.Dependency:return"RemoteDependencyData";case t.Availability:return"AvailabilityData";case t.PageView:return"PageViewData"}},e.baseTypeToTelemetryType=function(e){switch(e){case"EventData":return t.Event;case"ExceptionData":return t.Exception;case"MessageData":return t.Trace;case"MetricData":return t.Metric;case"RequestData":return t.Request;case"RemoteDependencyData":return t.Dependency;case"AvailabilityData":return t.Availability;case"PageViewData":return t.PageView}},e.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"},(n=t=e.TelemetryType||(e.TelemetryType={}))[n.Event=0]="Event",n[n.Exception=1]="Exception",n[n.Trace=2]="Trace",n[n.Metric=3]="Metric",n[n.Request=4]="Request",n[n.Dependency=5]="Dependency",n[n.Availability=6]="Availability",n[n.PageView=7]="PageView"})),zn=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Dn(),e),n(kn(),e),n(Mn(),e),n(jn(),e),n(Ln(),e),n(Fn(),e),n(Hn(),e),n(Bn(),e),n(Un(),e),n(Vn(),e),n($n(),e),n(Gn(),e),n(qn(),e)})),Wn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Kn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Xn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Qn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Yn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Jn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Zn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),er=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tr=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Wn(),e),n(Kn(),e),n(Xn(),e),n(Qn(),e),n(Yn(),e),n(Jn(),e),n(Zn(),e),n(er(),e)})),nr=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Nn(),e),n(Rn(),e),n(zn(),e),n(tr(),e)})),rr=E(((e,t)=>{"use strict";var n=function(){function e(){}return e.prototype.getUrl=function(){return this.url},e.prototype.RequestParser=function(){this.startTime=+new Date},e.prototype._setStatus=function(e,t){var n=+new Date;this.duration=n-this.startTime,this.statusCode=e;var r=this.properties||{};if(t)if("string"==typeof t)r.error=t;else if(t instanceof Error)r.error=t.message;else if("object"==typeof t)for(var o in t)r[o]=t[o]&&t[o].toString&&t[o].toString();this.properties=r},e.prototype._isSuccess=function(){return 0<this.statusCode&&this.statusCode<400},e}();t.exports=n})),or=E(((e,t)=>{"use strict";var r,o=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=n(7016),a=nr(),s=un(),c=cn(),u=rr(),l=ln(),p=dn(),d=pn(),f=function(e){function t(t,n){var r=e.call(this)||this;return t&&(r.method=t.method,r.url=r._getAbsoluteUrl(t),r.startTime=+new Date,r.socketRemoteAddress=t.socket&&t.socket.remoteAddress,r.parseHeaders(t,n),t.connection&&(r.connectionRemoteAddress=t.connection.remoteAddress,r.legacySocketRemoteAddress=t.connection.socket&&t.connection.socket.remoteAddress)),r}return o(t,e),t.prototype.onError=function(e,t){this._setStatus(void 0,e),t&&(this.duration=t)},t.prototype.onResponse=function(e,t){this._setStatus(e.statusCode,void 0),t&&(this.duration=t)},t.prototype.getRequestTelemetry=function(e){var t={id:this.requestId,name:this.method+" "+i.parse(this.url).pathname,url:this.url,source:this.sourceCorrelationId,duration:this.duration,resultCode:this.statusCode?this.statusCode.toString():null,success:this._isSuccess(),properties:this.properties};if(e&&e.time?t.time=e.time:this.startTime&&(t.time=new Date(this.startTime)),e){for(var n in e)t[n]||(t[n]=e[n]);if(e.properties)for(var n in e.properties)t.properties[n]=e.properties[n]}return t},t.prototype.getRequestTags=function(e){var n={};for(var r in e)n[r]=e[r];return n[t.keys.locationIp]=e[t.keys.locationIp]||this._getIp(),n[t.keys.sessionId]=e[t.keys.sessionId]||this._getId("ai_session"),n[t.keys.userId]=e[t.keys.userId]||this._getId("ai_user"),n[t.keys.userAuthUserId]=e[t.keys.userAuthUserId]||this._getId("ai_authUser"),n[t.keys.operationName]=this.getOperationName(e),n[t.keys.operationParentId]=this.getOperationParentId(e),n[t.keys.operationId]=this.getOperationId(e),n},t.prototype.getOperationId=function(e){return e[t.keys.operationId]||this.operationId},t.prototype.getOperationParentId=function(e){return e[t.keys.operationParentId]||this.parentId||this.getOperationId(e)},t.prototype.getOperationName=function(e){return e[t.keys.operationName]||this.method+" "+i.parse(this.url).pathname},t.prototype.getRequestId=function(){return this.requestId},t.prototype.getCorrelationContextHeader=function(){return this.correlationContextHeader},t.prototype.getTraceparent=function(){return this.traceparent},t.prototype.getTracestate=function(){return this.tracestate},t.prototype.getLegacyRootId=function(){return this.legacyRootId},t.prototype._getAbsoluteUrl=function(e){if(!e.headers)return e.url;var t=e.connection?e.connection.encrypted:null,n=i.parse(e.url),r=n.pathname,o=n.search,a=t||"https"==e.headers["x-forwarded-proto"]?"https":"http";return i.format({protocol:a,host:e.headers.host,pathname:r,search:o})},t.prototype._getIp=function(){var e=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/,t=function(t){var n=e.exec(t);if(n)return n[0]},n=t(this.rawHeaders["x-forwarded-for"])||t(this.rawHeaders["x-client-ip"])||t(this.rawHeaders["x-real-ip"])||t(this.connectionRemoteAddress)||t(this.socketRemoteAddress)||t(this.legacySocketRemoteAddress);return!n&&this.connectionRemoteAddress&&this.connectionRemoteAddress.substr&&"::"===this.connectionRemoteAddress.substr(0,2)&&(n="127.0.0.1"),n},t.prototype._getId=function(e){var n=this.rawHeaders&&this.rawHeaders.cookie&&"string"==typeof this.rawHeaders.cookie&&this.rawHeaders.cookie||"";return t.parseId(s.getCookie(e,n))},t.prototype.setBackCompatFromThisTraceContext=function(){this.operationId=this.traceparent.traceId,this.traceparent.legacyRootId&&(this.legacyRootId=this.traceparent.legacyRootId),this.parentId=this.traceparent.parentId,this.traceparent.updateSpanId(),this.requestId=this.traceparent.getBackCompatRequestId()},t.prototype.parseHeaders=function(e,t){if(this.rawHeaders=e.headers||e.rawHeaders,this.userAgent=e.headers&&e.headers["user-agent"],this.sourceCorrelationId=s.getCorrelationContextTarget(e,c.requestContextSourceKey),e.headers){var n=e.headers[c.traceStateHeader]?e.headers[c.traceStateHeader].toString():null,r=e.headers[c.traceparentHeader]?e.headers[c.traceparentHeader].toString():null,o=e.headers[c.requestIdHeader]?e.headers[c.requestIdHeader].toString():null,i=e.headers[c.parentIdHeader]?e.headers[c.parentIdHeader].toString():null,a=e.headers[c.rootIdHeader]?e.headers[c.rootIdHeader].toString():null;this.correlationContextHeader=e.headers[c.correlationContextHeader]?e.headers[c.correlationContextHeader].toString():null,l.w3cEnabled&&(r||n)?(this.traceparent=new d(r?r.toString():null),this.tracestate=r&&n&&new p(n?n.toString():null),this.setBackCompatFromThisTraceContext()):o?l.w3cEnabled?(this.traceparent=new d(null,o),this.setBackCompatFromThisTraceContext()):(this.parentId=o,this.requestId=l.generateRequestId(this.parentId),this.operationId=l.getRootId(this.requestId)):l.w3cEnabled?(this.traceparent=new d,this.traceparent.parentId=i,this.traceparent.legacyRootId=a||i,this.setBackCompatFromThisTraceContext()):(this.parentId=i,this.requestId=l.generateRequestId(a||this.parentId),this.correlationContextHeader=null,this.operationId=l.getRootId(this.requestId)),t&&(this.requestId=t,this.operationId=l.getRootId(this.requestId))}},t.parseId=function(e){var t=e.split("|");return t.length>0?t[0]:""},t.keys=new a.ContextTagKeys,t}(u);t.exports=f})),ir=E(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var v=s++;a[v]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var g=s++;a[g]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var y=s++;a[y]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var _=s++,E="v?"+a[p]+a[v]+"?"+a[y]+"?";a[_]="^"+E+"$";var b="[v=\\s]*"+a[d]+a[g]+"?"+a[y]+"?",S=s++;a[S]="^"+b+"$";var T=s++;a[T]="((?:<|>)?=?)";var P=s++;a[P]=a[u]+"|x|X|\\*";var w=s++;a[w]=a[c]+"|x|X|\\*";var C=s++;a[C]="[v=\\s]*("+a[w]+")(?:\\.("+a[w]+")(?:\\.("+a[w]+")(?:"+a[v]+")?"+a[y]+"?)?)?";var A=s++;a[A]="[v=\\s]*("+a[P]+")(?:\\.("+a[P]+")(?:\\.("+a[P]+")(?:"+a[g]+")?"+a[y]+"?)?)?";var I=s++;a[I]="^"+a[T]+"\\s*"+a[C]+"$";var O=s++;a[O]="^"+a[T]+"\\s*"+a[A]+"$";var x=s++;a[x]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=s++;a[R]="(?:~>?)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",i[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[C]+"$";var k=s++;a[k]="^"+a[R]+a[A]+"$";var M=s++;a[M]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[M]+"\\s+",i[j]=new RegExp(a[j],"g");var L=s++;a[L]="^"+a[M]+a[C]+"$";var F=s++;a[F]="^"+a[M]+a[A]+"$";var H=s++;a[H]="^"+a[T]+"\\s*("+b+")$|^$";var B=s++;a[B]="^"+a[T]+"\\s*("+E+")$|^$";var U=s++;a[U]="(\\s*)"+a[T]+"\\s*("+b+"|"+a[C]+")",i[U]=new RegExp(a[U],"g");var V=s++;a[V]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var $=s++;a[$]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var G,q=s++;for(a[q]="(<|>)?=?\\s*\\*",G=0;G<35;G++)n(G,a[G]),i[G]||(i[G]=new RegExp(a[G]));function z(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?i[S]:i[_]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[S]:i[_]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=z,e.valid=function(e,t){var n=z(e,t);return n?n.version:null},e.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),X(this.major,e.major)||X(this.minor,e.minor)||X(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return X(r,o)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=z(e),r=z(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},e.compareIdentifiers=X;var K=/^[0-9]+$/;function X(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return Q(e,t,n)>0}function J(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return X(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=Q,e.compareLoose=function(e,t){return Q(e,t,!0)},e.rcompare=function(e,t,n){return Q(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=oe;var ie={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof oe)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,o,i,a,s,c,u,l,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(o)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ue(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==ie&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var o,i,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":o=Y,i=ne,a=J,s=">",c=">=";break;case"<":o=J,i=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],p=null,d=null;if(l.forEach((function(e){e.semver===ie&&(e=new oe(">=0.0.0")),p=p||e,d=d||e,o(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?i[H]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[$]:i[V];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[N],"$1~")).replace(i[j],"$1^")).split(/\s+/).join(" ");var o=t?i[H]:i[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[F]:i[L];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),se(r)?s="":se(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[k]:i[D];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),se(r)?s="":se(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[I];return e.replace(r,(function(t,r,o,i,a,s){n("xRange",e,t,r,o,i,a,s);var c=se(o),u=c||se(i),l=u||se(a);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(i=0),a=0,">"===r?(r=">=",u?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),t=r+o+"."+i+"."+a):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[q],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a.map((function(e){return new oe(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},e.satisfies=le,e.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new ae(t,n)}catch{return null}return e.forEach((function(e){i.test(e)&&(!r||-1===o.compare(e))&&(o=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new ae(t,n)}catch{return null}return e.forEach((function(e){i.test(e)&&(!r||1===o.compare(e))&&(o=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[x]);return null==t?null:z(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),ar=E(((e,t)=>{"use strict";function n(e){return"function"==typeof e}var r=console.error.bind(console);function o(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function i(e){e&&e.logger&&(n(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function a(e,t,i){if(e&&e[t]){if(!i)return r("no wrapper function"),void r((new Error).stack);if(n(e[t])&&n(i)){var a=e[t],s=i(a,t);return o(s,"__original",a),o(s,"__unwrap",(function(){e[t]===s&&o(e,t,a)})),o(s,"__wrapped",!0),o(e,t,s),s}r("original object and wrapper must be functions")}else r("no original function "+t+" to wrap")}function s(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void r("no original to unwrap to -- has "+t+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}i.wrap=a,i.massWrap=function(e,t,n){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){a(e,t,n)}))})):r("must provide one or more functions to wrap on modules")},i.unwrap=s,i.massUnwrap=function(e,t){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){s(e,t)}))})):r("must provide one or more functions to unwrap on modules")},t.exports=i})),sr=E(((e,t)=>{"use strict";var n=ar(),r=n.wrap,o=n.unwrap,i="wrap@before";function a(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function s(e,t){var n;return n=e._events&&e._events[t],Array.isArray(n)||(n=n?[n]:[]),n}function c(e,t){if(e){var n=e;if("function"==typeof e)n=t(e);else if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n[r]=t(e[r])}return n}}t.exports=function(e,t,n){if(!(e&&e.on&&e.addListener&&e.removeListener&&e.emit))throw new Error("can only wrap real EEs");if(!t)throw new Error("must have function to run on listener addition");if(!n)throw new Error("must have function to wrap listeners when emitting");function u(e){return function(t,n){var o=s(this,t).slice();try{var a=e.call(this,t,n);return function(e,t,n){var r=s(e,t).filter((function(e){return-1===n.indexOf(e)}));r.length>0&&function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r],a=e[i];if("function"==typeof a)a(o);else if(Array.isArray(a))for(var s=a.length,c=0;c<s;c++)a[c](o)}}(e,r)}(this,t,o),a}finally{this.on.__wrapped||r(this,"on",u),this.addListener.__wrapped||r(this,"addListener",u)}}}e[i]?"function"==typeof e[i]?a(e,i,[e[i],t]):Array.isArray(e[i])&&e[i].push(t):a(e,i,t),e.__wrapped||(r(e,"addListener",u),r(e,"on",u),r(e,"emit",(function(e){return function(t){if(!this._events||!this._events[t])return e.apply(this,arguments);var i=this._events[t];r(this,"removeListener",(function(e){return function(){this._events[t]=i;try{return e.apply(this,arguments)}finally{i=this._events[t],this._events[t]=c(i,n)}}}));try{return this._events[t]=c(i,n),e.apply(this,arguments)}finally{o(this,"removeListener"),this._events[t]=i}}})),a(e,"__unwrap",(function(){o(e,"addListener"),o(e,"on"),o(e,"emit"),delete e[i],delete e.__wrapped})),a(e,"__wrapped",!0))}})),cr=E(((e,t)=>{"use strict";var r=n(9023),o=n(2613),i=sr(),a=n(290),s="cls@contexts",c="error@context",u=process.env.DEBUG_CLS_HOOKED,l=-1;function p(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map,this._indent=0}function d(e){return process.namespaces[e]}function f(e){let t=d(e);o.ok(t,"can't delete nonexistent namespace! \""+e+'"'),o.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function h(...e){u&&process._rawDebug(`${r.format(...e)}`)}t.exports={getNamespace:d,createNamespace:function(e){o.ok(e,"namespace must be given a name."),u&&h(`NS-CREATING NAMESPACE (${e})`);let t=new p(e);return t.id=l,a.createHook({init(n,o,i,s){if(l=a.executionAsyncId(),t.active)t._contexts.set(n,t.active),u&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT [${o}] (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`);else if(0===l){let i=a.triggerAsyncId(),c=t._contexts.get(i);c?(t._contexts.set(n,c),u&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT USING CONTEXT FROM TRIGGERID [${o}] (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)):u&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT MISSING CONTEXT [${o}] (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}if(u&&"PROMISE"===o){h(r.inspect(s,{showHidden:!0}));let a=s.parentId;h(`${" ".repeat(t._indent<0?0:t._indent)}INIT RESOURCE-PROMISE [${o}] (${e}) parentId:${a} asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}},before(n){let o;if(l=a.executionAsyncId(),o=t._contexts.get(n)||t._contexts.get(l),o){if(u){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(o)}`),t._indent+=2}t.enter(o)}else if(u){let o=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE MISSING CONTEXT (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${r.inspect(t._contexts,{showHidden:!0,depth:2,colors:!0})}`),t._indent+=2}},after(n){let o;if(l=a.executionAsyncId(),o=t._contexts.get(n)||t._contexts.get(l),o){if(u){let i=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(o)}`)}t.exit(o)}else if(u){let i=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER MISSING CONTEXT (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(o)}`)}},destroy(n){if(l=a.executionAsyncId(),u){let o=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}DESTROY (${e}) currentUid:${l} asyncId:${n} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(t._contexts.get(l))}`)}t._contexts.delete(n)}}).enable(),process.namespaces[e]=t,t},destroyNamespace:f,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){f(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},p.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,u&&h(" ".repeat(this._indent<0?0:this._indent)+"CONTEXT-SET KEY:"+e+"="+t+" in ns:"+this.name+" currentUid:"+l+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),t},p.prototype.get=function(e){if(this.active){if(u){let t=a.executionAsyncId(),n=a.triggerAsyncId(),o=" ".repeat(this._indent<0?0:this._indent);h(o+"CONTEXT-GETTING KEY:"+e+"="+this.active[e]+" ("+this.name+") currentUid:"+l+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),h(`${o}CONTEXT-GETTING KEY: (${this.name}) ${e}=${this.active[e]} currentUid:${l} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} active:${r.inspect(this.active)}`)}return this.active[e]}if(u){let t=a.currentId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${e}=undefined currentUid:${l} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length}`)}},p.prototype.createContext=function(){let e=Object.create(this.active?this.active:Object.prototype);if(e._ns_name=this.name,e.id=l,u){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-CREATED Context: (${this.name}) currentUid:${l} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} context:${r.inspect(e,{showHidden:!0,depth:2,colors:!0})}`)}return e},p.prototype.run=function(e){let t=this.createContext();this.enter(t);try{if(u){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${l} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} context:${r.inspect(t)}`)}return e(t),t}catch(e){throw e&&(e[c]=t),e}finally{if(u){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN END: (${this.name}) currentUid:${l} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} ${r.inspect(t)}`)}this.exit(t)}},p.prototype.runAndReturn=function(e){let t;return this.run((function(n){t=e(n)})),t},p.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return u&&h("CONTEXT-runPromise BEFORE: ("+this.name+") currentUid:"+l+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(u&&h("CONTEXT-runPromise AFTER then: ("+this.name+") currentUid:"+l+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,u&&h("CONTEXT-runPromise AFTER catch: ("+this.name+") currentUid:"+l+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},p.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},p.prototype.enter=function(e){if(o.ok(e,"context must be provided for entering"),u){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-ENTER: (${this.name}) currentUid:${l} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}this._set.push(this.active),this.active=e},p.prototype.exit=function(e){if(o.ok(e,"context must be provided for exiting"),u){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-EXIT: (${this.name}) currentUid:${l} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}if(this.active===e)return o.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(u&&h("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),o.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(o.ok(t,"can't remove top context"),this._set.splice(t,1))},p.prototype.bindEmitter=function(e){o.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;i(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},p.prototype.fromException=function(e){return e[c]},process.namespaces={}})),ur=E(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=process.nextTick;process.nextTick=function(){if(!t.enabled)return r.apply(process,arguments);let o=new Array(arguments.length);for(let e=0;e<arguments.length;e++)o[e]=arguments[e];let i=o[0];if("function"!=typeof i)throw new TypeError("callback is not a function");let a=new n,s=--t.counter;return e.init.call(a,s,0,null,null),o[0]=function(){e.pre.call(a,s);let t=!0;try{i.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(a,s,!0),e.destroy.call(null,s)}))}e.post.call(a,s,!1),e.destroy.call(null,s)},r.apply(process,o)}}})),lr=E(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=global.Promise,o=r.prototype.then;function i(t,n,r,o){return"function"!=typeof t?o?function(t){return function(n){return e.destroy.call(null,t),n}}(r):function(t){return function(n){throw e.destroy.call(null,t),n}}(r):function(){e.pre.call(n,r);try{return t.apply(this,arguments)}finally{e.post.call(n,r,!1),e.destroy.call(null,r)}}}r.prototype.then=function(r,a){if(!t.enabled)return o.call(this,r,a);let s=new n,c=--t.counter;return e.init.call(s,c,0,null,null),o.call(this,i(r,s,c,!0),i(a,s,c,!1))}}})),pr=E(((e,t)=>{"use strict";var r=n(3557);function o(){}function i(){}function a(){}var s=new Map,c=new Map,u=new Map,l=null,p=!1;function d(e,t,n,o,i,a,s){let c=r[n],u=r[o];r[n]=function(){if(!t.enabled)return c.apply(r,arguments);let n=new Array(arguments.length);for(let e=0;e<arguments.length;e++)n[e]=arguments[e];let o=n[0];if("function"!=typeof o)throw new TypeError('"callback" argument must be a function');let u,d=new i,f=--t.counter;return e.init.call(d,f,0,null,null),n[0]=function(){l=u,e.pre.call(d,f);let t=!0;try{o.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(d,f,!0),a.delete(u),e.destroy.call(null,f)}))}e.post.call(d,f,!1),l=null,(s||p)&&(p=!1,a.delete(u),e.destroy.call(null,f))},u=c.apply(r,n),a.set(u,f),u},r[o]=function(t){if(l===t&&null!==t)p=!0;else if(a.has(t)){let n=a.get(t);a.delete(t),e.destroy.call(null,n)}u.apply(r,arguments)}}t.exports=function(){d(this._hooks,this._state,"setTimeout","clearTimeout",o,s,!0),d(this._hooks,this._state,"setInterval","clearInterval",i,c,!1),d(this._hooks,this._state,"setImmediate","clearImmediate",a,u,!0),global.setTimeout=r.setTimeout,global.setInterval=r.setInterval,global.setImmediate=r.setImmediate,global.clearTimeout=r.clearTimeout,global.clearInterval=r.clearInterval,global.clearImmediate=r.clearImmediate}})),dr=E(((e,t)=>{t.exports={name:"async-hook-jl",description:"Inspect the life of handle objects in node",version:"1.7.6",author:"Andreas Madsen <amwebdk@gmail.com>",main:"./index.js",scripts:{test:"node ./test/runner.js && eslint ."},repository:{type:"git",url:"git://github.com/jeff-lewis/async-hook-jl.git"},keywords:["async","async hooks","inspect","async wrap"],license:"MIT",dependencies:{"stack-chain":"^1.3.7"},devDependencies:{async:"1.5.x","cli-color":"1.1.x",eslint:"^3.4.0",endpoint:"0.4.x"},engines:{node:"^4.7 || >=6.9 || >=7.3"}}})),fr=E(((e,t)=>{"use strict";var n=process.binding("async_wrap"),r=n.Providers.TIMERWRAP,o={nextTick:ur(),promise:lr(),timers:pr()},i=new Set;function a(){this.enabled=!1,this.counter=0}function s(){let e=this.initFns=[],t=this.preFns=[],n=this.postFns=[],o=this.destroyFns=[];this.init=function(t,n,o,a){if(n!==r)for(let r of e)r(t,this,n,o,a);else i.add(t)},this.pre=function(e){if(!i.has(e))for(let n of t)n(e,this)},this.post=function(e,t){if(!i.has(e))for(let r of n)r(e,this,t)},this.destroy=function(e){if(i.has(e))i.delete(e);else for(let t of o)t(e)}}function c(e,t){let n=e.indexOf(t);-1!==n&&e.splice(n,1)}function u(){this._state=new a,this._hooks=new s,this.version=dr().version,this.providers=n.Providers;for(let e of Object.keys(o))o[e].call(this);process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING")&&console.warn("warning: you are using async-hook-jl which is unstable."),n.setupHooks({init:this._hooks.init,pre:this._hooks.pre,post:this._hooks.post,destroy:this._hooks.destroy})}s.prototype.add=function(e){e.init&&this.initFns.push(e.init),e.pre&&this.preFns.push(e.pre),e.post&&this.postFns.push(e.post),e.destroy&&this.destroyFns.push(e.destroy)},s.prototype.remove=function(e){e.init&&c(this.initFns,e.init),e.pre&&c(this.preFns,e.pre),e.post&&c(this.postFns,e.post),e.destroy&&c(this.destroyFns,e.destroy)},t.exports=u,u.prototype.addHooks=function(e){this._hooks.add(e)},u.prototype.removeHooks=function(e){this._hooks.remove(e)},u.prototype.enable=function(){this._state.enabled=!0,n.enable()},u.prototype.disable=function(){this._state.enabled=!1,n.disable()}})),hr=E(((e,t)=>{t.exports={name:"stack-chain",description:"API for combining call site modifiers",version:"1.3.7",author:"Andreas Madsen <amwebdk@gmail.com>",scripts:{test:"tap ./test/simple"},repository:{type:"git",url:"git://github.com/AndreasMadsen/stack-chain.git"},keywords:["stack","chain","trace","call site","concat","format"],devDependencies:{tap:"2.x.x","uglify-js":"2.5.x"},license:"MIT"}})),vr=E(((e,t)=>{t.exports=function(e,t){var n=[];n.push(function(e){try{return Error.prototype.toString.call(e)}catch(e){try{return"<error: "+e+">"}catch{return"<error>"}}}(e));for(var r=0;r<t.length;r++){var o,i=t[r];try{o=i.toString()}catch(e){try{o="<error: "+e+">"}catch{o="<error>"}}n.push(" at "+o)}return n.join("\n")}})),gr=E(((e,t)=>{var n=vr();function r(){this.extend=new a,this.filter=new a,this.format=new s,this.version=hr().version}var o=!1;r.prototype.callSite=function e(t){t||(t={}),o=!0;var n={};Error.captureStackTrace(n,e);var r=n.stack;return o=!1,r=r.slice(t.slice||0),t.extend&&(r=this.extend._modify(n,r)),t.filter&&(r=this.filter._modify(n,r)),r};var i=new r;function a(){this._modifiers=[]}function s(){this._formater=n,this._previous=void 0}a.prototype._modify=function(e,t){for(var n=0,r=this._modifiers.length;n<r;n++)t=this._modifiers[n](e,t);return t},a.prototype.attach=function(e){this._modifiers.push(e)},a.prototype.deattach=function(e){var t=this._modifiers.indexOf(e);return-1!==t&&(this._modifiers.splice(t,1),!0)},s.prototype.replace=function(e){e?this._formater=e:this.restore()},s.prototype.restore=function(){this._formater=n,this._previous=void 0},s.prototype._backup=function(){this._previous=this._formater},s.prototype._roolback=function(){this._previous===n?this.replace(void 0):this.replace(this._previous),this._previous=void 0},Error.prepareStackTrace&&i.format.replace(Error.prepareStackTrace);var c=!1;function u(e,t){if(o)return t;if(c)return n(e,t);var r=t.concat();r=i.extend._modify(e,r),r=(r=i.filter._modify(e,r)).slice(0,Error.stackTraceLimit),Object.isExtensible(e)&&void 0===Object.getOwnPropertyDescriptor(e,"callSite")&&(e.callSite={original:t,mutated:r}),c=!0;var a=i.format._formater(e,r);return c=!1,a}Object.defineProperty(Error,"prepareStackTrace",{get:function(){return u},set:function(e){e===u?i.format._roolback():(i.format._backup(),i.format.replace(e))}}),Object.defineProperty(Error.prototype,"callSite",{get:function(){return this.stack,this.callSite},set:function(e){Object.defineProperty(this,"callSite",{value:e,writable:!0,configurable:!0})},configurable:!0}),t.exports=i})),mr=E(((e,t)=>{if(global._stackChain){if(global._stackChain.version!==hr().version)throw new Error("Conflicting version of stack-chain found");t.exports=global._stackChain}else t.exports=global._stackChain=gr()})),yr=E(((e,t)=>{"use strict";var n=fr();if(global._asyncHook){if(global._asyncHook.version!==dr().version)throw new Error("Conflicting version of async-hook-jl found");t.exports=global._asyncHook}else mr().filter.attach((function(e,t){return t.filter((function(e){let t=e.getFileName();return!(t&&t.slice(0,__dirname.length)===__dirname)}))})),t.exports=global._asyncHook=new n})),_r=E(((e,t)=>{"use strict";var r=n(9023),o=n(2613),i=sr(),a=yr(),s="cls@contexts",c="error@context",u=[];for(let e in a.providers)u[a.providers[e]]=e;var l,p,d=process.env.DEBUG_CLS_HOOKED,f=-1;function h(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map}function v(e){return process.namespaces[e]}function g(e){let t=v(e);o.ok(t,"can't delete nonexistent namespace! \""+e+'"'),o.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function m(e){process.env.DEBUG&&process._rawDebug(e)}function y(e){return e?"function"==typeof e?e.name?e.name:(e.toString().trim().match(/^function\s*([^\s(]+)/)||[])[1]:e.constructor&&e.constructor.name?e.constructor.name:void 0:e}if(t.exports={getNamespace:v,createNamespace:function(e){o.ok(e,"namespace must be given a name."),d&&m("CREATING NAMESPACE "+e);let t=new h(e);return t.id=f,a.addHooks({init(n,o,i,a,s){f=n,a?(t._contexts.set(n,t._contexts.get(a)),d&&m("PARENTID: "+e+" uid:"+n+" parent:"+a+" provider:"+i)):t._contexts.set(f,t.active),d&&m("INIT "+e+" uid:"+n+" parent:"+a+" provider:"+u[i]+" active:"+r.inspect(t.active,!0))},pre(n,o){f=n;let i=t._contexts.get(n);i?(d&&m(" PRE "+e+" uid:"+n+" handle:"+y(o)+" context:"+r.inspect(i)),t.enter(i)):d&&m(" PRE MISSING CONTEXT "+e+" uid:"+n+" handle:"+y(o))},post(n,o){f=n;let i=t._contexts.get(n);i?(d&&m(" POST "+e+" uid:"+n+" handle:"+y(o)+" context:"+r.inspect(i)),t.exit(i)):d&&m(" POST MISSING CONTEXT "+e+" uid:"+n+" handle:"+y(o))},destroy(n){f=n,d&&m("DESTROY "+e+" uid:"+n+" context:"+r.inspect(t._contexts.get(f))+" active:"+r.inspect(t.active,!0)),t._contexts.delete(n)}}),process.namespaces[e]=t,t},destroyNamespace:g,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){g(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},h.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return d&&m(" SETTING KEY:"+e+"="+t+" in ns:"+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e]=t,t},h.prototype.get=function(e){if(this.active)return d&&m(" GETTING KEY:"+e+"="+this.active[e]+" "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e];d&&m(" GETTING KEY:"+e+"=undefined "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0))},h.prototype.createContext=function(){d&&m(" CREATING Context: "+this.name+" uid:"+f+" len:"+this._set.length+" active:"+r.inspect(this.active,!0,2,!0));let e=Object.create(this.active?this.active:Object.prototype);return e._ns_name=this.name,e.id=f,d&&m(" CREATED Context: "+this.name+" uid:"+f+" len:"+this._set.length+" context:"+r.inspect(e,!0,2,!0)),e},h.prototype.run=function(e){let t=this.createContext();this.enter(t);try{return d&&m(" BEFORE RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),e(t),t}catch(e){throw e&&(e[c]=t),e}finally{d&&m(" AFTER RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t)}},h.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},h.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return d&&m(" BEFORE runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(d&&m(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,d&&m(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},h.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},h.prototype.enter=function(e){o.ok(e,"context must be provided for entering"),d&&m(" ENTER "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this._set.push(this.active),this.active=e},h.prototype.exit=function(e){if(o.ok(e,"context must be provided for exiting"),d&&m(" EXIT "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this.active===e)return o.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(d&&m("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),o.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(o.ok(t,"can't remove top context"),this._set.splice(t,1))},h.prototype.bindEmitter=function(e){o.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;i(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},h.prototype.fromException=function(e){return e[c]},process.namespaces={},a._state&&!a._state.enabled&&a.enable(),d)for(p in(l=mr()).filter._modifiers)l.filter.deattach(p)})),Er=E(((e,t)=>{"use strict";var n=ir();process&&n.gte(process.versions.node,"8.0.0")?t.exports=cr():t.exports=_r()})),br=E(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var v=s++;a[v]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var g=s++;a[g]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var y=s++;a[y]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var _=s++,E="v?"+a[p]+a[v]+"?"+a[y]+"?";a[_]="^"+E+"$";var b="[v=\\s]*"+a[d]+a[g]+"?"+a[y]+"?",S=s++;a[S]="^"+b+"$";var T=s++;a[T]="((?:<|>)?=?)";var P=s++;a[P]=a[u]+"|x|X|\\*";var w=s++;a[w]=a[c]+"|x|X|\\*";var C=s++;a[C]="[v=\\s]*("+a[w]+")(?:\\.("+a[w]+")(?:\\.("+a[w]+")(?:"+a[v]+")?"+a[y]+"?)?)?";var A=s++;a[A]="[v=\\s]*("+a[P]+")(?:\\.("+a[P]+")(?:\\.("+a[P]+")(?:"+a[g]+")?"+a[y]+"?)?)?";var I=s++;a[I]="^"+a[T]+"\\s*"+a[C]+"$";var O=s++;a[O]="^"+a[T]+"\\s*"+a[A]+"$";var x=s++;a[x]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=s++;a[R]="(?:~>?)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",i[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[C]+"$";var k=s++;a[k]="^"+a[R]+a[A]+"$";var M=s++;a[M]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[M]+"\\s+",i[j]=new RegExp(a[j],"g");var L=s++;a[L]="^"+a[M]+a[C]+"$";var F=s++;a[F]="^"+a[M]+a[A]+"$";var H=s++;a[H]="^"+a[T]+"\\s*("+b+")$|^$";var B=s++;a[B]="^"+a[T]+"\\s*("+E+")$|^$";var U=s++;a[U]="(\\s*)"+a[T]+"\\s*("+b+"|"+a[C]+")",i[U]=new RegExp(a[U],"g");var V=s++;a[V]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var $=s++;a[$]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var G,q=s++;for(a[q]="(<|>)?=?\\s*\\*",G=0;G<35;G++)n(G,a[G]),i[G]||(i[G]=new RegExp(a[G]));function z(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?i[S]:i[_]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[S]:i[_]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=z,e.valid=function(e,t){var n=z(e,t);return n?n.version:null},e.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),X(this.major,e.major)||X(this.minor,e.minor)||X(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return X(r,o)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=z(e),r=z(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},e.compareIdentifiers=X;var K=/^[0-9]+$/;function X(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return Q(e,t,n)>0}function J(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return X(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=Q,e.compareLoose=function(e,t){return Q(e,t,!0)},e.rcompare=function(e,t,n){return Q(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=oe;var ie={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof oe)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,o,i,a,s,c,u,l,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(o)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ue(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==ie&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var o,i,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":o=Y,i=ne,a=J,s=">",c=">=";break;case"<":o=J,i=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],p=null,d=null;if(l.forEach((function(e){e.semver===ie&&(e=new oe(">=0.0.0")),p=p||e,d=d||e,o(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?i[H]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[$]:i[V];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[N],"$1~")).replace(i[j],"$1^")).split(/\s+/).join(" ");var o=t?i[H]:i[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[F]:i[L];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),se(r)?s="":se(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[k]:i[D];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),se(r)?s="":se(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[I];return e.replace(r,(function(t,r,o,i,a,s){n("xRange",e,t,r,o,i,a,s);var c=se(o),u=c||se(i),l=u||se(a);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(i=0),a=0,">"===r?(r=">=",u?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),t=r+o+"."+i+"."+a):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[q],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a.map((function(e){return new oe(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},e.satisfies=le,e.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new ae(t,n)}catch{return null}return e.forEach((function(e){i.test(e)&&(!r||-1===o.compare(e))&&(o=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new ae(t,n)}catch{return null}return e.forEach((function(e){i.test(e)&&(!r||1===o.compare(e))&&(o=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[x]);return null==t?null:z(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),Sr=E(((e,t)=>{var n,r,o,i,a,s=ar().wrap,c=1,u=2,l=4,p=8,d=[],f=0,h=!1,v=[];function g(e,t){var n=e.length,r=t.length,o=[];if(0===n&&0===r)return o;for(var i=0;i<n;i++)o[i]=e[i];if(0===r)return o;for(var a=0;a<r;a++){var s=!0;for(i=0;i<n;i++)if(e[i].uid===t[a].uid){s=!1;break}s&&o.push(t[a])}return o}function m(e,t){"function"==typeof e.create&&(this.create=e.create,this.flags|=c),"function"==typeof e.before&&(this.before=e.before,this.flags|=u),"function"==typeof e.after&&(this.after=e.after,this.flags|=l),"function"==typeof e.error&&(this.error=e.error,this.flags|=p),this.uid=++f,this.data=void 0===t?null:t}function y(e,t){if("object"!=typeof e||!e)throw new TypeError("callbacks argument must be an object");return e instanceof m?e:new m(e,t)}process._fatalException?(o=!1,n=function(e){var t=d.length;if(o||0===t)return!1;var n=!1;o=!0;for(var r=0;r<t;++r){var a=d[r];if(a.flags&p){var s=i&&i[a.uid];n=a.error(s,e)||n}}return o=!1,v.length>0&&(d=v.pop()),i=void 0,n&&!h},r=function(e,t,n){var r=[];h=!0;for(var o=0;o<n;++o){var a=t[o];if(r[a.uid]=a.data,a.flags&c){var s=a.create(a.data);void 0!==s&&(r[a.uid]=s)}}return h=!1,function(){i=r,v.push(d),d=g(t,d),h=!0;for(var o=0;o<n;++o)(t[o].flags&u)>0&&t[o].before(this,r[t[o].uid]);h=!1;var a=e.apply(this,arguments);for(h=!0,o=0;o<n;++o)(t[o].flags&l)>0&&t[o].after(this,r[t[o].uid]);return h=!1,d=v.pop(),i=void 0,a}},s(process,"_fatalException",(function(e){return function(t){return n(t)||e(t)}}))):(a=!1,n=function(e){if(a)throw e;for(var t=!1,n=d.length,r=0;r<n;++r){var o=d[r];o.flags&p&&(t=o.error(null,e)||t)}if(!t&&h)throw e},r=function(e,t,r){var o=[];h=!0;for(var i=0;i<r;++i){var s=t[i];if(o[s.uid]=s.data,s.flags&c){var f=s.create(s.data);void 0!==f&&(o[s.uid]=f)}}return h=!1,function(){var i,s=!1,c=!1;v.push(d),d=g(t,d),h=!0;for(var f=0;f<r;++f)(t[f].flags&u)>0&&t[f].before(this,o[t[f].uid]);h=!1;try{i=e.apply(this,arguments)}catch(e){for(s=!0,f=0;f<r;++f)if(d[f].flags&p)try{c=d[f].error(o[t[f].uid],e)||c}catch(e){throw a=!0,e}if(!c)throw process.removeListener("uncaughtException",n),process._originalNextTick((function(){process.addListener("uncaughtException",n)})),e}finally{if(!s||c){for(h=!0,f=0;f<r;++f)(t[f].flags&l)>0&&t[f].after(this,o[t[f].uid]);h=!1}d=v.pop()}return i}},process.addListener("uncaughtException",n)),m.prototype.create=void 0,m.prototype.before=void 0,m.prototype.after=void 0,m.prototype.error=void 0,m.prototype.data=void 0,m.prototype.uid=0,m.prototype.flags=0,process.createAsyncListener=y,process.addAsyncListener=function(e,t){var n;n=e instanceof m?e:y(e,t);for(var r=!1,o=0;o<d.length;o++)if(n===d[o]){r=!0;break}return r||d.push(n),n},process.removeAsyncListener=function(e){for(var t=0;t<d.length;t++)if(e===d[t]){d.splice(t,1);break}},t.exports=function(e){var t=d.length;if(0===t)return e;for(var n=d.slice(),o=0;o<t;++o)if(n[o].flags>0)return r(e,n,t);return function(e,t,n){h=!0;for(var r=0;r<n;++r){var o=t[r];o.create&&o.create(o.data)}return h=!1,function(){v.push(d),d=g(t,d);var n=e.apply(this,arguments);return d=v.pop(),n}}(e,n,t)}})),Tr=E(((e,t)=>{"use strict";t.exports=(e,t)=>class extends e{constructor(e){var n,r;super((function(e,i){n=this,r=[function(n){return t(o,!1),e(n)},function(e){return t(o,!1),i(e)}]}));var o=this;try{e.apply(n,r)}catch(e){r[1](e)}return o}}})),Pr=E((()=>{"use strict";if(process.addAsyncListener)throw new Error("Don't require polyfill unless needed");var e=ar(),t=br(),r=e.wrap,o=e.massWrap,i=Sr(),a=n(9023),s=t.gte(process.version,"6.0.0"),c=t.gte(process.version,"7.0.0"),u=t.gte(process.version,"8.0.0"),l=t.gte(process.version,"11.0.0"),p=n(9278);function d(e){return function(){this.on("connection",(function(e){e._handle&&(e._handle.onread=i(e._handle.onread))}));try{return e.apply(this,arguments)}finally{this._handle&&this._handle.onconnection&&(this._handle.onconnection=i(this._handle.onconnection))}}}function f(e){if(e&&e._handle){var t=e._handle;t._originalOnread||(t._originalOnread=t.onread),t.onread=i(t._originalOnread)}}c&&!p._normalizeArgs?p._normalizeArgs=function(e){if(0===e.length)return[{},null];var t=e[0],n={};"object"==typeof t&&null!==t?n=t:function(e){return"string"==typeof e&&!1===function(e){return(e=Number(e))>=0&&e}(e)}(t)?n.path=t:(n.port=t,e.length>1&&"string"==typeof e[1]&&(n.host=e[1]));var r=e[e.length-1];return"function"!=typeof r?[n,null]:[n,r]}:!c&&!p._normalizeConnectArgs&&(p._normalizeConnectArgs=function(e){var t={};"object"==typeof e[0]&&null!==e[0]?t=e[0]:"string"==typeof e[0]&&!1===function(e){return(e=Number(e))>=0&&e}(e[0])?t.path=e[0]:(t.port=e[0],"string"==typeof e[1]&&(t.host=e[1]));var n=e[e.length-1];return"function"==typeof n?[t,n]:[t]}),"_setUpListenHandle"in p.Server.prototype?r(p.Server.prototype,"_setUpListenHandle",d):r(p.Server.prototype,"_listen2",d),r(p.Socket.prototype,"connect",(function(e){return function(){var t;(t=u&&Array.isArray(arguments[0])&&Object.getOwnPropertySymbols(arguments[0]).length>0?arguments[0]:c?p._normalizeArgs(arguments):p._normalizeConnectArgs(arguments))[1]&&(t[1]=i(t[1]));var n=e.apply(this,t);return f(this),n}}));var h=n(8611);r(h.Agent.prototype,"addRequest",(function(e){return function(t){var n=t.onSocket;return t.onSocket=i((function(e){return f(e),n.apply(this,arguments)})),e.apply(this,arguments)}}));var v=n(5317);function g(e){Array.isArray(e.stdio)&&e.stdio.forEach((function(e){e&&e._handle&&(e._handle.onread=i(e._handle.onread),r(e._handle,"close",x))})),e._handle&&(e._handle.onexit=i(e._handle.onexit))}v.ChildProcess?r(v.ChildProcess.prototype,"spawn",(function(e){return function(){var t=e.apply(this,arguments);return g(this),t}})):o(v,["execFile","fork","spawn"],(function(e){return function(){var t=e.apply(this,arguments);return g(t),t}})),process._fatalException||(process._originalNextTick=process.nextTick);var m=[];process._nextDomainTick&&m.push("_nextDomainTick"),process._tickDomainCallback&&m.push("_tickDomainCallback"),o(process,m,O),r(process,"nextTick",x);var y=["setTimeout","setInterval"];global.setImmediate&&y.push("setImmediate");var _=n(3557),E=global.setTimeout===_.setTimeout;o(_,y,x),E&&o(global,y,x);var b=n(2250);o(b,["lookup","resolve","resolve4","resolve6","resolveCname","resolveMx","resolveNs","resolveTxt","resolveSrv","reverse"],O),b.resolveNaptr&&r(b,"resolveNaptr",O);var S,T,P,w=n(9896);o(w,["watch","rename","truncate","chown","fchown","chmod","fchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","watchFile","unwatchFile","exists"],O),w.lchown&&r(w,"lchown",O),w.lchmod&&r(w,"lchmod",O),w.ftruncate&&r(w,"ftruncate",O);try{S=n(3106)}catch{}S&&S.Deflate&&S.Deflate.prototype&&((T=Object.getPrototypeOf(S.Deflate.prototype))._transform?r(T,"_transform",O):T.write&&T.flush&&T.end&&o(T,["write","flush","end"],O));try{P=n(6982)}catch{}P&&(C=["pbkdf2","randomBytes"],l||C.push("pseudoRandomBytes"),o(P,C,O));var C,A,I=!!global.Promise&&"function Promise() { [native code] }"===Promise.toString()&&"function toString() { [native code] }"===Promise.toString.toString();function O(e){var t=function(){var t,n=arguments.length-1;if("function"==typeof arguments[n]){t=Array(arguments.length);for(var r=0;r<arguments.length-1;r++)t[r]=arguments[r];t[n]=i(arguments[n])}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof r&&(r=i(r)),e.call(this,n,r))};case 3:return function(n,r,o){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof o&&(o=i(o)),e.call(this,n,r,o))};case 4:return function(n,r,o,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof a&&(a=i(a)),e.call(this,n,r,o,a))};case 5:return function(n,r,o,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof s&&(s=i(s)),e.call(this,n,r,o,a,s))};case 6:return function(n,r,o,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof c&&(c=i(c)),e.call(this,n,r,o,a,s,c))};default:return t}}function x(e){var t=function(){var t;if("function"==typeof arguments[0]){(t=Array(arguments.length))[0]=i(arguments[0]);for(var n=1;n<arguments.length;n++)t[n]=arguments[n]}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n,r))};case 3:return function(n,r,o){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n,r,o))};case 4:return function(n,r,o,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n,r,o,a))};case 5:return function(n,r,o,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n,r,o,a,s))};case 6:return function(n,r,o,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=i(n)),e.call(this,n,r,o,a,s,c))};default:return t}}I&&(A=process.addAsyncListener({create:function(){I=!1}}),global.Promise.resolve(!0).then((function(){I=!1})),process.removeAsyncListener(A)),I&&function(){var e=global.Promise;function t(r){if(!(this instanceof t))return e(r);if("function"!=typeof r)return new e(r);var o,i,a=new e((function(e,t){o=this,i=[function(t){return n(a,!1),e(t)},function(e){return n(a,!1),t(e)}]}));a.__proto__=t.prototype;try{r.apply(o,i)}catch(e){i[1](e)}return a}function n(e,t){(!e.__asl_wrapper||t)&&(e.__asl_wrapper=i(o))}function o(t,r,i,a){var s;try{return{returnVal:s=r.call(t,i),error:!1}}catch(e){return{errorVal:e,error:!0}}finally{s instanceof e?a.__asl_wrapper=function(){return(s.__asl_wrapper||o).apply(this,arguments)}:n(a,!0)}}function c(e){return function(){var t=this,n=e.apply(t,Array.prototype.map.call(arguments,(function(e){return"function"!=typeof e?e:i((function(r){var i=(t.__asl_wrapper||o)(this,e,r,n);if(i.error)throw i.errorVal;return i.returnVal}))})));return n.__asl_wrapper=function(e,r,i,a){return t.__asl_wrapper?(t.__asl_wrapper(e,(function(){}),null,n),n.__asl_wrapper(e,r,i,a)):o(e,r,i,a)},n}}a.inherits(t,e),r(e.prototype,"then",c),e.prototype.chain&&r(e.prototype,"chain",c),s?global.Promise=Tr()(e,n):(["all","race","reject","resolve","accept","defer"].forEach((function(n){"function"==typeof e[n]&&(t[n]=e[n])})),global.Promise=t)}()})),wr=E(((e,t)=>{"use strict";var r=n(2613),o=sr(),i="cls@contexts",a="error@context";function s(e){this.name=e,this.active=null,this._set=[],this.id=null}function c(e){return process.namespaces[e]}function u(e){var t=c(e);r.ok(t,"can't delete nonexistent namespace!"),r.ok(t.id,"don't assign to process.namespaces directly!"),process.removeAsyncListener(t.id),process.namespaces[e]=null}function l(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){u(e)})),process.namespaces=Object.create(null)}process.addAsyncListener||Pr(),s.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,t},s.prototype.get=function(e){if(this.active)return this.active[e]},s.prototype.createContext=function(){return Object.create(this.active)},s.prototype.run=function(e){var t=this.createContext();this.enter(t);try{return e(t),t}catch(e){throw e&&(e[a]=t),e}finally{this.exit(t)}},s.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},s.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());var n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[a]=t),e}finally{n.exit(t)}}},s.prototype.enter=function(e){r.ok(e,"context must be provided for entering"),this._set.push(this.active),this.active=e},s.prototype.exit=function(e){if(r.ok(e,"context must be provided for exiting"),this.active===e)return r.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());var t=this._set.lastIndexOf(e);r.ok(t>=0,"context not currently entered; can't exit"),r.ok(t,"can't remove top context"),this._set.splice(t,1)},s.prototype.bindEmitter=function(e){r.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");var t=this,n="context@"+this.name;o(e,(function(e){!e||(e[i]||(e[i]=Object.create(null)),e[i][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[i])return e;var t=e,n=e[i];return Object.keys(n).forEach((function(e){var r=n[e];t=r.namespace.bind(t,r.context)})),t}))},s.prototype.fromException=function(e){return e[a]},process.namespaces||l(),t.exports={getNamespace:c,createNamespace:function(e){r.ok(e,"namespace must be given a name!");var t=new s(e);return t.id=process.addAsyncListener({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e){e&&t.exit(e)}}),process.namespaces[e]=t,t},destroyNamespace:u,reset:l}})),Cr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CorrelationContextManager=void 0;var t=O(),n=sn(),r=pn(),o=dn(),i=or(),a=function(){function e(){}return e.getCurrentContext=function(){if(!e.enabled)return null;var t=e.session.get(e.CONTEXT_NAME);return void 0===t?null:t},e.generateContextObject=function(e,t,n,r,o,i){return t=t||e,this.enabled?{operation:{name:n,id:e,parentId:t,traceparent:o,tracestate:i},customProperties:new s(r)}:null},e.spanToContextObject=function(t,n,o){var i=new r;return i.traceId=t.traceId,i.spanId=t.spanId,i.traceFlag=r.formatOpenTelemetryTraceFlags(t.traceFlags)||r.DEFAULT_TRACE_FLAG,i.parentId=n,e.generateContextObject(i.traceId,i.parentId,o,null,i)},e.runWithContext=function(t,n){var r;return e.enabled?e.session.bind(n,((r={})[e.CONTEXT_NAME]=t,r))():n()},e.wrapEmitter=function(t){e.enabled&&e.session.bindEmitter(t)},e.wrapCallback=function(t,n){var r;return e.enabled?e.session.bind(t,n?((r={})[e.CONTEXT_NAME]=n,r):void 0):t},e.enable=function(t){if(!this.enabled){if(!this.isNodeVersionCompatible())return void(this.enabled=!1);e.hasEverEnabled||(this.forceClsHooked=t,this.hasEverEnabled=!0,typeof this.cls>"u"&&(!0===e.forceClsHooked||void 0===e.forceClsHooked&&e.shouldUseClsHooked()?this.cls=Er():this.cls=wr()),e.session=this.cls.createNamespace("AI-CLS-Session"),n.registerContextPreservation((function(t){return e.session.bind(t)}))),this.enabled=!0}},e.startOperation=function(n,a){var s=n&&n.traceContext||null,c=n&&n.traceId?n:null,u=n&&n.headers;if(c){var l=new r("00-"+c.traceId+"-"+c.spanId+"-01"),p=new o(c.traceState?c.traceState.serialize():null);return e.generateContextObject(c.traceId,"|"+c.traceId+"."+c.spanId+".","string"==typeof a?a:"",void 0,l,p)}if(s){l=new r(s.traceparent),p=new o(s.tracestate);var d="object"==typeof a?new i(a):null;return e.generateContextObject(l.traceId,l.parentId,"string"==typeof a?a:d.getOperationName({}),d&&d.getCorrelationContextHeader()||void 0,l,p)}return u?(l=new r(u.traceparent?u.traceparent.toString():null),p=new o(u.tracestate?u.tracestate.toString():null),d=new i(n),e.generateContextObject(l.traceId,l.parentId,d.getOperationName({}),d.getCorrelationContextHeader(),l,p)):(t.warn("startOperation was called with invalid arguments",arguments),null)},e.disable=function(){this.enabled=!1},e.reset=function(){e.hasEverEnabled&&(e.session=null,e.session=this.cls.createNamespace("AI-CLS-Session"))},e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>3||parseInt(e[0])>2&&parseInt(e[1])>2},e.shouldUseClsHooked=function(){var e=process.versions.node.split(".");return parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=2},e.canUseClsHooked=function(){var e=process.versions.node.split("."),t=parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=0,n=parseInt(e[0])<8||parseInt(e[0])<=8&&parseInt(e[1])<2,r=parseInt(e[0])>4||parseInt(e[0])>=4&&parseInt(e[1])>=7;return!(t&&n)&&r},e.enabled=!1,e.hasEverEnabled=!1,e.forceClsHooked=void 0,e.CONTEXT_NAME="ApplicationInsights-Context",e}();e.CorrelationContextManager=a;var s=function(){function e(e){this.props=[],this.addHeaderData(e)}return e.prototype.addHeaderData=function(e){var t=e?e.split(", "):[];this.props=t.map((function(e){var t=e.split("=");return{key:t[0],value:t[1]}})).concat(this.props)},e.prototype.serializeToHeader=function(){return this.props.map((function(e){return e.key+"="+e.value})).join(", ")},e.prototype.getProperty=function(e){for(var t=0;t<this.props.length;++t){var n=this.props[t];if(n.key===e)return n.value}},e.prototype.setProperty=function(n,r){if(e.bannedCharacters.test(n)||e.bannedCharacters.test(r))t.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: "+n+" and value: "+r);else{for(var o=0;o<this.props.length;++o){var i=this.props[o];if(i.key===n)return void(i.value=r)}this.props.push({key:n,value:r})}},e.bannedCharacters=/[,=]/,e}()})),Ar=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],o=function(e){var n=e.data.message;r.forEach((function(r){n instanceof Error?r.trackException({exception:n}):(n.lastIndexOf("\n")==n.length-1&&(n=n.substring(0,n.length-1)),r.trackTrace({message:n,severity:e.data.stderr?t.SeverityLevel.Warning:t.SeverityLevel.Information}))}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("console",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("console",o)},e.dispose=function(){n.channel.unsubscribe("console",o),r=[]}})),Ir=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],o={10:t.SeverityLevel.Verbose,20:t.SeverityLevel.Verbose,30:t.SeverityLevel.Information,40:t.SeverityLevel.Warning,50:t.SeverityLevel.Error,60:t.SeverityLevel.Critical},i=function(e){var t=e.data.result;r.forEach((function(n){var r=o[e.data.level];t instanceof Error?n.trackException({exception:t}):n.trackTrace({message:t,severity:r})}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("bunyan",i),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("bunyan",i)},e.dispose=function(){n.channel.unsubscribe("bunyan",i),r=[]}})),Or=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],o={syslog:function(e){var n={emerg:t.SeverityLevel.Critical,alert:t.SeverityLevel.Critical,crit:t.SeverityLevel.Critical,error:t.SeverityLevel.Error,warning:t.SeverityLevel.Warning,notice:t.SeverityLevel.Information,info:t.SeverityLevel.Information,debug:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},npm:function(e){var n={error:t.SeverityLevel.Error,warn:t.SeverityLevel.Warning,info:t.SeverityLevel.Information,verbose:t.SeverityLevel.Verbose,debug:t.SeverityLevel.Verbose,silly:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},unknown:function(e){return t.SeverityLevel.Information}},i=function(e){var t=e.data.message;r.forEach((function(n){if(t instanceof Error)n.trackException({exception:t,properties:e.data.meta});else{var r=o[e.data.levelKind](e.data.level);n.trackTrace({message:t,severity:r,properties:e.data.meta})}}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("winston",i),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("winston",i)},e.dispose=function(){n.channel.unsubscribe("winston",i),r=[]}})),xr=E(((e,t)=>{"use strict";var n=sn(),r=function(){function e(t){if(e.INSTANCE)throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");this._client=t,e.INSTANCE=this}return e.prototype.enable=function(e,t){n.IsInitialized&&(Ar().enable(e&&t,this._client),Ir().enable(e,this._client),Or().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1,!1)},e._methodNames=["debug","info","log","warn","error"],e}();t.exports=r})),Rr=E(((e,t)=>{"use strict";var n=function(){function e(t){if(e.INSTANCE)throw new Error("Exception tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t;var n=process.versions.node.split(".");e._canUseUncaughtExceptionMonitor=parseInt(n[0])>13||13===parseInt(n[0])&&parseInt(n[1])>=7}return e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.enable=function(t){var n=this;if(t){if(this._isInitialized=!0,!this._exceptionListenerHandle){var r=function(t,r,o){void 0===o&&(o=new Error(e._FALLBACK_ERROR_MESSAGE)),n._client.trackException({exception:o}),n._client.flush({isAppCrashing:!0}),t&&r&&1===process.listeners(r).length&&(console.error(o),process.exit(1))};e._canUseUncaughtExceptionMonitor?(this._exceptionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle)):(this._exceptionListenerHandle=r.bind(this,!0,e.UNCAUGHT_EXCEPTION_HANDLER_NAME),this._rejectionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.on(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle))}}else this._exceptionListenerHandle&&(e._canUseUncaughtExceptionMonitor?process.removeListener(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle):(process.removeListener(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.removeListener(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle)),this._exceptionListenerHandle=void 0,this._rejectionListenerHandle=void 0,delete this._exceptionListenerHandle,delete this._rejectionListenerHandle)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.INSTANCE=null,e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME="uncaughtExceptionMonitor",e.UNCAUGHT_EXCEPTION_HANDLER_NAME="uncaughtException",e.UNHANDLED_REJECTION_HANDLER_NAME="unhandledRejection",e._RETHROW_EXIT_MESSAGE="Application Insights Rethrow Exception Handler",e._FALLBACK_ERROR_MESSAGE="A promise was rejected without providing an error. Application Insights generated this error stack for you.",e._canUseUncaughtExceptionMonitor=!1,e}();t.exports=n})),Nr=E((e=>{"use strict";var t,n,r,o;Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeatMetricName=e.DependencyTypeName=e.SpanAttribute=e.TelemetryTypeStringToQuickPulseDocumentType=e.TelemetryTypeStringToQuickPulseType=e.QuickPulseType=e.QuickPulseDocumentType=e.PerformanceToQuickPulseCounter=e.MetricId=e.PerformanceCounter=e.QuickPulseCounter=e.DEFAULT_LIVEMETRICS_HOST=e.DEFAULT_LIVEMETRICS_ENDPOINT=e.DEFAULT_BREEZE_ENDPOINT=void 0,e.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com",(r=n=e.QuickPulseCounter||(e.QuickPulseCounter={})).COMMITTED_BYTES="\\Memory\\Committed Bytes",r.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",r.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",r.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",r.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",r.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",r.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",r.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",r.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec",function(e){e.PRIVATE_BYTES="\\Process(??APP_WIN32_PROC??)\\Private Bytes",e.AVAILABLE_BYTES="\\Memory\\Available Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.PROCESS_TIME="\\Process(??APP_WIN32_PROC??)\\% Processor Time",e.REQUEST_RATE="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",e.REQUEST_DURATION="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time"}(o=e.PerformanceCounter||(e.PerformanceCounter={})),function(e){e.REQUESTS_DURATION="requests/duration",e.DEPENDENCIES_DURATION="dependencies/duration",e.EXCEPTIONS_COUNT="exceptions/count",e.TRACES_COUNT="traces/count"}(e.MetricId||(e.MetricId={})),e.PerformanceToQuickPulseCounter=((t={})[o.PROCESSOR_TIME]=n.PROCESSOR_TIME,t[o.REQUEST_RATE]=n.REQUEST_RATE,t[o.REQUEST_DURATION]=n.REQUEST_DURATION,t[n.COMMITTED_BYTES]=n.COMMITTED_BYTES,t[n.REQUEST_FAILURE_RATE]=n.REQUEST_FAILURE_RATE,t[n.DEPENDENCY_RATE]=n.DEPENDENCY_RATE,t[n.DEPENDENCY_FAILURE_RATE]=n.DEPENDENCY_FAILURE_RATE,t[n.DEPENDENCY_DURATION]=n.DEPENDENCY_DURATION,t[n.EXCEPTION_RATE]=n.EXCEPTION_RATE,t),e.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"},e.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"},e.TelemetryTypeStringToQuickPulseType={EventData:e.QuickPulseType.Event,ExceptionData:e.QuickPulseType.Exception,MessageData:e.QuickPulseType.Trace,MetricData:e.QuickPulseType.Metric,RequestData:e.QuickPulseType.Request,RemoteDependencyData:e.QuickPulseType.Dependency,AvailabilityData:e.QuickPulseType.Availability,PageViewData:e.QuickPulseType.PageView},e.TelemetryTypeStringToQuickPulseDocumentType={EventData:e.QuickPulseDocumentType.Event,ExceptionData:e.QuickPulseDocumentType.Exception,MessageData:e.QuickPulseDocumentType.Trace,MetricData:e.QuickPulseDocumentType.Metric,RequestData:e.QuickPulseDocumentType.Request,RemoteDependencyData:e.QuickPulseDocumentType.Dependency,AvailabilityData:e.QuickPulseDocumentType.Availability,PageViewData:e.QuickPulseDocumentType.PageView},e.SpanAttribute={HttpHost:"http.host",HttpMethod:"http.method",HttpPort:"http.port",HttpStatusCode:"http.status_code",HttpUrl:"http.url",HttpUserAgent:"http.user_agent",GrpcMethod:"grpc.method",GrpcService:"rpc.service"},e.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc"},e.HeartBeatMetricName="HeartBeat"})),Dr=E(((e,t)=>{"use strict";var r=n(857),o=Nr(),i=function(){function e(t,n,r){void 0===n&&(n=6e4),void 0===r&&(r=!1),this._lastIntervalRequestExecutionTime=0,this._lastIntervalDependencyExecutionTime=0,e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t,this._collectionInterval=n,this._enableLiveMetricsCounters=r}return e.prototype.enable=function(t,n){var o=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._lastCpus=r.cpus(),this._lastRequests={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},this._lastDependencies={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},this._lastExceptions={totalExceptionCount:e._totalExceptionCount,time:+new Date},"function"==typeof process.cpuUsage&&(this._lastAppCpuUsage=process.cpuUsage()),this._lastHrtime=process.hrtime(),this._collectionInterval=n||this._collectionInterval,this._handle=setInterval((function(){return o.trackPerformance()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countRequest=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalRequestExecutionTime+=r,!1===n&&e._totalFailedRequestCount++,e._totalRequestCount++}},e.countException=function(){e._totalExceptionCount++},e.countDependency=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalDependencyExecutionTime+=r,!1===n&&e._totalFailedDependencyCount++,e._totalDependencyCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPerformance=function(){this._trackCpu(),this._trackMemory(),this._trackNetwork(),this._trackDependencyRate(),this._trackExceptionRate()},e.prototype._trackCpu=function(){var e=r.cpus();if(e&&e.length&&this._lastCpus&&e.length===this._lastCpus.length){for(var t=0,n=0,i=0,a=0,s=0,c=0;e&&c<e.length;c++){var u=e[c],l=this._lastCpus[c],p=(u.model,u.speed,u.times),d=l.times;t+=p.user-d.user||0,n+=p.sys-d.sys||0,i+=p.nice-d.nice||0,a+=p.idle-d.idle||0,s+=p.irq-d.irq||0}var f=void 0;if("function"==typeof process.cpuUsage){var h=process.cpuUsage(),v=process.hrtime(),g=h.user-this._lastAppCpuUsage.user+(h.system-this._lastAppCpuUsage.system)||0;typeof this._lastHrtime<"u"&&2===this._lastHrtime.length&&(f=100*g/((1e6*(v[0]-this._lastHrtime[0])+(v[1]-this._lastHrtime[1])/1e3||0)*e.length)),this._lastAppCpuUsage=h,this._lastHrtime=v}var m=t+n+i+a+s||1;this._client.trackMetric({name:o.PerformanceCounter.PROCESSOR_TIME,value:(m-a)/m*100}),this._client.trackMetric({name:o.PerformanceCounter.PROCESS_TIME,value:f||t/m*100})}this._lastCpus=e},e.prototype._trackMemory=function(){var e=r.freemem(),t=process.memoryUsage().rss,n=r.totalmem()-e;this._client.trackMetric({name:o.PerformanceCounter.PRIVATE_BYTES,value:t}),this._client.trackMetric({name:o.PerformanceCounter.AVAILABLE_BYTES,value:e}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:o.QuickPulseCounter.COMMITTED_BYTES,value:n})},e.prototype._trackNetwork=function(){var t=this._lastRequests,n={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},r=n.totalRequestCount-t.totalRequestCount||0,i=n.totalFailedRequestCount-t.totalFailedRequestCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalRequestExecutionTime-this._lastIntervalRequestExecutionTime)/r||0;if(this._lastIntervalRequestExecutionTime=e._intervalRequestExecutionTime,a>0){var u=r/s,l=i/s;this._client.trackMetric({name:o.PerformanceCounter.REQUEST_RATE,value:u}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:o.PerformanceCounter.REQUEST_DURATION,value:c}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:o.QuickPulseCounter.REQUEST_FAILURE_RATE,value:l})}this._lastRequests=n},e.prototype._trackDependencyRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastDependencies,n={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},r=n.totalDependencyCount-t.totalDependencyCount||0,i=n.totalFailedDependencyCount-t.totalFailedDependencyCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalDependencyExecutionTime-this._lastIntervalDependencyExecutionTime)/r||0;if(this._lastIntervalDependencyExecutionTime=e._intervalDependencyExecutionTime,a>0){var u=r/s,l=i/s;this._client.trackMetric({name:o.QuickPulseCounter.DEPENDENCY_RATE,value:u}),this._client.trackMetric({name:o.QuickPulseCounter.DEPENDENCY_FAILURE_RATE,value:l}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:o.QuickPulseCounter.DEPENDENCY_DURATION,value:c})}this._lastDependencies=n}},e.prototype._trackExceptionRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastExceptions,n={totalExceptionCount:e._totalExceptionCount,time:+new Date},r=n.totalExceptionCount-t.totalExceptionCount||0,i=n.time-t.time;if(i>0){var a=r/(i/1e3);this._client.trackMetric({name:o.QuickPulseCounter.EXCEPTION_RATE,value:a})}this._lastExceptions=n}},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e._totalRequestCount=0,e._totalFailedRequestCount=0,e._totalDependencyCount=0,e._totalFailedDependencyCount=0,e._totalExceptionCount=0,e._intervalDependencyExecutionTime=0,e._intervalRequestExecutionTime=0,e}();t.exports=i})),kr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AggregatedMetricCounter=void 0;e.AggregatedMetricCounter=function(e){this.dimensions=e,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}})),Mr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreaggregatedMetricPropertyNames=void 0,e.PreaggregatedMetricPropertyNames={cloudRoleInstance:"cloud/roleInstance",cloudRoleName:"cloud/roleName",operationSynthetic:"operation/synthetic",requestSuccess:"Request.Success",requestResultCode:"request/resultCode",dependencyType:"Dependency.Type",dependencyTarget:"dependency/target",dependencySuccess:"Dependency.Success",dependencyResultCode:"dependency/resultCode",traceSeverityLevel:"trace/severityLevel"}})),jr=E(((e,t)=>{"use strict";var n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},r=Nr(),o=kr(),i=Mr(),a=function(){function e(t,n){void 0===n&&(n=6e4),e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,e._dependencyCountersCollection=[],e._requestCountersCollection=[],e._exceptionCountersCollection=[],e._traceCountersCollection=[],this._client=t,this._collectionInterval=n}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._collectionInterval=t||this._collectionInterval,this._handle=setInterval((function(){return n.trackPreAggregatedMetrics()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countException=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._exceptionCountersCollection).totalCount++},e.countTrace=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._traceCountersCollection).totalCount++},e.countRequest=function(t,n){if(e.isEnabled()){var r,o=e._getAggregatedCounter(n,this._requestCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}o.intervalExecutionTime+=r,o.totalCount++}},e.countDependency=function(t,n){if(e.isEnabled()){var r,o=e._getAggregatedCounter(n,this._dependencyCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}o.intervalExecutionTime+=r,o.totalCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPreAggregatedMetrics=function(){this._trackRequestMetrics(),this._trackDependencyMetrics(),this._trackExceptionMetrics(),this._trackTraceMetrics()},e._getAggregatedCounter=function(e,t){for(var n=!1,r=0;r<t.length;r++){if(e===t[r].dimensions)return t[r];if(Object.keys(e).length===Object.keys(t[r].dimensions).length){for(var i in e)if(e[i]!=t[r].dimensions[i]){n=!0;break}if(!n)return t[r];n=!1}}var a=new o.AggregatedMetricCounter(e);return t.push(a),a},e.prototype._trackRequestMetrics=function(){for(var t=0;t<e._requestCountersCollection.length;t++){var n=e._requestCountersCollection[t];n.time=+new Date;var o=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/o||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,i>0&&o>0&&this._trackPreAggregatedMetric({name:"Server response time",dimensions:n.dimensions,value:a,count:o,aggregationInterval:i,metricType:r.MetricId.REQUESTS_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackDependencyMetrics=function(){for(var t=0;t<e._dependencyCountersCollection.length;t++){var n=e._dependencyCountersCollection[t];n.time=+new Date;var o=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/o||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,i>0&&o>0&&this._trackPreAggregatedMetric({name:"Dependency duration",dimensions:n.dimensions,value:a,count:o,aggregationInterval:i,metricType:r.MetricId.DEPENDENCIES_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackExceptionMetrics=function(){for(var t=0;t<e._exceptionCountersCollection.length;t++){var n=e._exceptionCountersCollection[t],o=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Exceptions",dimensions:n.dimensions,value:o,count:o,aggregationInterval:i,metricType:r.MetricId.EXCEPTIONS_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackTraceMetrics=function(){for(var t=0;t<e._traceCountersCollection.length;t++){var n=e._traceCountersCollection[t],o=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Traces",dimensions:n.dimensions,value:o,count:o,aggregationInterval:i,metricType:r.MetricId.TRACES_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackPreAggregatedMetric=function(e){var t={};for(var r in e.dimensions)t[i.PreaggregatedMetricPropertyNames[r]]=e.dimensions[r];t=n(n({},t),{"_MS.MetricId":e.metricType,"_MS.AggregationIntervalMs":String(e.aggregationInterval),"_MS.IsAutocollected":"True"});var o={name:e.name,value:e.value,count:e.count,properties:t,kind:"Aggregation"};this._client.trackMetric(o)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();t.exports=a})),Lr=E(((e,t)=>{"use strict";var r=n(857),o=n(9896),i=n(6928),a=nr(),s=O(),c=function(){function e(e){this.keys=new a.ContextTagKeys,this.tags={},this._loadApplicationContext(e),this._loadDeviceContext(),this._loadInternalContext()}return e.prototype._loadApplicationContext=function(t){if(t=t||i.resolve(__dirname,"../../../../package.json"),!e.appVersion[t]){e.appVersion[t]="unknown";try{var n=JSON.parse(o.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.appVersion[t]=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.applicationVersion]=e.appVersion[t]},e.prototype._loadDeviceContext=function(){this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=r&&r.hostname(),this.tags[this.keys.deviceOSVersion]=r&&r.type()+" "+r.release(),this.tags[this.keys.cloudRole]=e.DefaultRoleName,this.tags["ai.device.osArchitecture"]=r&&r.arch(),this.tags["ai.device.osPlatform"]=r&&r.platform()},e.prototype._loadInternalContext=function(){var t=i.resolve(__dirname,"../../package.json");if(!e.sdkVersion){e.sdkVersion="unknown";try{var n=JSON.parse(o.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.sdkVersion=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.internalSdkVersion]="node:"+e.sdkVersion},e.DefaultRoleName="Web",e.appVersion={},e.sdkVersion=null,e}();t.exports=c})),Fr=E(((e,t)=>{"use strict";var r,o=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=n(7016),a=nr(),s=un(),c=cn(),u=rr(),l=ln(),p=function(e){function t(n,r){var o=e.call(this)||this;return r&&r.method&&n&&(o.method=r.method,o.url=t._getUrlFromRequestOptions(n,r),o.startTime=+new Date),o}return o(t,e),t.prototype.onError=function(e){this._setStatus(void 0,e)},t.prototype.onResponse=function(e){this._setStatus(e.statusCode,void 0),this.correlationId=s.getCorrelationContextTarget(e,c.requestContextTargetKey)},t.prototype.getDependencyTelemetry=function(e,t){var n=i.parse(this.url);n.search=void 0,n.hash=void 0;var r=this.method.toUpperCase()+" "+n.pathname,o=a.RemoteDependencyDataConstants.TYPE_HTTP,s=n.hostname;n.port&&(s+=":"+n.port),this.correlationId?(o=a.RemoteDependencyDataConstants.TYPE_AI,this.correlationId!==l.correlationIdPrefix&&(s+=" | "+this.correlationId)):o=a.RemoteDependencyDataConstants.TYPE_HTTP;var c={id:t,name:r,data:this.url,duration:this.duration,success:this._isSuccess(),resultCode:this.statusCode?this.statusCode.toString():null,properties:this.properties||{},dependencyTypeName:o,target:s};if(e&&e.time?c.time=e.time:this.startTime&&(c.time=new Date(this.startTime)),e){for(var u in e)c[u]||(c[u]=e[u]);if(e.properties)for(var u in e.properties)c.properties[u]=e.properties[u]}return c},t._getUrlFromRequestOptions=function(e,t){if("string"==typeof e)if(0===e.indexOf("http://")||0===e.indexOf("https://"))e=i.parse(e);else{var n=i.parse(e);e="443"===n.host?i.parse("https://"+e):i.parse("http://"+e)}else{if(e&&"function"==typeof i.URL&&e instanceof i.URL)return i.format(e);var r=e;e={},r&&Object.keys(r).forEach((function(t){e[t]=r[t]}))}if(e.path){var o=i.parse(e.path);e.pathname=o.pathname,e.search=o.search}return e.host&&e.port&&!i.parse("http://"+e.host).port&&e.port&&(e.hostname=e.host,delete e.host),e.protocol=e.protocol||t.agent&&t.agent.protocol||t.protocol||void 0,e.hostname=e.hostname||"localhost",i.format(e)},t}(u);t.exports=p})),Hr=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.spanToTelemetryContract=void 0;var n=Oe(),r=Nr();function o(e){var n=t({},e);return Object.keys(r.SpanAttribute).forEach((function(e){delete n[e]})),n}e.spanToTelemetryContract=function(e){var i="|"+e.spanContext().traceId+"."+e.spanContext().spanId+".",a=Math.round(1e3*e._duration[0]+e._duration[1]/1e6),s=e.attributes["peer.address"]?e.attributes["peer.address"].toString():"",c=e.attributes.component?e.attributes.component.toString():"",u=c.toUpperCase()===r.DependencyTypeName.Http||!!e.attributes[r.SpanAttribute.HttpUrl],l=c.toLowerCase()===r.DependencyTypeName.Grpc;if(u){var p=e.attributes[r.SpanAttribute.HttpMethod]||"GET",d=new URL(e.attributes[r.SpanAttribute.HttpUrl].toString()),f=e.attributes[r.SpanAttribute.HttpHost]||d.host,h=e.attributes[r.SpanAttribute.HttpPort]||d.port||null,v=p+" "+(d.pathname||"/"),g=r.DependencyTypeName.Http,m=h?(f+":"+h).toString():f.toString(),y=d.toString(),_=e.attributes[r.SpanAttribute.HttpStatusCode]||e.status.code||0;return{id:i,name:v,dependencyTypeName:g,target:m,data:y,success:_<400,duration:a,url:y,resultCode:String(_),properties:o(e.attributes)}}if(l){p=e.attributes[r.SpanAttribute.GrpcMethod]||"rpc";var E=e.attributes[r.SpanAttribute.GrpcService],b=E?p+" "+E:e.name;return{id:i,duration:a,name:b,target:E.toString(),data:E.toString()||b,url:E.toString()||b,dependencyTypeName:r.DependencyTypeName.Grpc,resultCode:String(e.status.code||0),success:0===e.status.code,properties:o(e.attributes)}}var S=e.name,T=e.links&&e.links.map((function(e){return{operation_Id:e.context.traceId,id:e.context.spanId}}));return{id:i,duration:a,name:S,target:s,data:s||S,url:s||S,dependencyTypeName:e.kind===n.SpanKind.INTERNAL?r.DependencyTypeName.InProc:c||e.name,resultCode:String(e.status.code||0),success:0===e.status.code,properties:t(t({},o(e.attributes)),{"_MS.links":T||void 0})}}})),Br=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=Oe(),n=k(),r=pn(),o=Hr(),i=x(),a=[];e.subscriber=function(e){var n=e.data,s=o.spanToTelemetryContract(n),c=n.spanContext(),u=new r;u.traceId=c.traceId,u.spanId=c.spanId,u.traceFlag=r.formatOpenTelemetryTraceFlags(c.traceFlags),u.parentId=n.parentSpanId?"|"+c.traceId+"."+n.parentSpanId+".":null,i.AsyncScopeManager.with(n,(function(){a.forEach((function(e){n.kind===t.SpanKind.SERVER?e.trackRequest(s):(n.kind===t.SpanKind.CLIENT||n.kind===t.SpanKind.INTERNAL)&&e.trackDependency(s)}))}))},e.enable=function(t,r){t?(0===a.length&&n.channel.subscribe("azure-coretracing",e.subscriber),a.push(r)):0===(a=a.filter((function(e){return e!=r}))).length&&n.channel.unsubscribe("azure-coretracing",e.subscriber)}})),Ur=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){"ismaster"!==e.data.event.commandName&&n.forEach((function(t){var n=e.data.startedData&&e.data.startedData.databaseName||"Unknown database";t.trackDependency({target:n,data:e.data.event.commandName,name:e.data.event.commandName,duration:e.data.event.duration,success:e.data.succeeded,resultCode:e.data.succeeded?"0":"1",time:e.data.startedData.time,dependencyTypeName:"mongodb"})}))},e.enable=function(r,o){r?(0===n.length&&t.channel.subscribe("mongodb",e.subscriber),n.push(o)):0===(n=n.filter((function(e){return e!=o}))).length&&t.channel.unsubscribe("mongodb",e.subscriber)}})),Vr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query||{},r=n.sql||"Unknown query",o=!e.data.err,i=(n._connection||{}).config||{},a=i.socketPath?i.socketPath:(i.host||"localhost")+":"+i.port;t.trackDependency({target:a,data:r,name:r,duration:e.data.duration,success:o,resultCode:o?"0":"1",time:e.data.time,dependencyTypeName:"mysql"})}))},e.enable=function(r,o){r?(0===n.length&&t.channel.subscribe("mysql",e.subscriber),n.push(o)):0===(n=n.filter((function(e){return e!=o}))).length&&t.channel.unsubscribe("mysql",e.subscriber)}})),$r=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){"info"!==e.data.commandObj.command&&t.trackDependency({target:e.data.address,name:e.data.commandObj.command,data:e.data.commandObj.command,duration:e.data.duration,success:!e.data.err,resultCode:e.data.err?"1":"0",time:e.data.time,dependencyTypeName:"redis"})}))},e.enable=function(r,o){r?(0===n.length&&t.channel.subscribe("redis",e.subscriber),n.push(o)):0===(n=n.filter((function(e){return e!=o}))).length&&t.channel.unsubscribe("redis",e.subscriber)}})),Gr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query,r=n.preparable&&n.preparable.text||n.plan||n.text||"unknown query",o=!e.data.error,i=e.data.database.host+":"+e.data.database.port;t.trackDependency({target:i,data:r,name:r,duration:e.data.duration,success:o,resultCode:o?"0":"1",time:e.data.time,dependencyTypeName:"postgres"})}))},e.enable=function(r,o){r?(0===n.length&&t.channel.subscribe("postgres",e.subscriber),n.push(o)):0===(n=n.filter((function(e){return e!=o}))).length&&t.channel.unsubscribe("postgres",e.subscriber)}})),qr=E(((e,t)=>{"use strict";var r=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},o=n(8611),i=n(5692),a=O(),s=un(),c=cn(),u=Fr(),l=Cr(),p=ln(),d=pn(),f=sn(),h=function(){function e(t){if(e.INSTANCE)throw new Error("Client request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,this._isEnabled&&!this._isInitialized&&this._initialize(),f.IsInitialized&&(Br().enable(!0,this._client),Ur().enable(e,this._client),Vr().enable(e,this._client),$r().enable(e,this._client),Gr().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=o.request,a=i.request,s=function(n,r){var o=!r[e.disableCollectionRequestOption]&&!n[e.alreadyAutoCollectedFlag];r.headers&&r.headers["user-agent"]&&-1!==r.headers["user-agent"].toString().indexOf("azsdk-js")&&(o=!1),n[e.alreadyAutoCollectedFlag]=!0,n&&r&&o&&(l.CorrelationContextManager.wrapEmitter(n),e.trackRequest(t._client,{options:r,request:n}))};o.request=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var a=n.call.apply(n,r([o,e],t));return s(a,e),a},i.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=a.call.apply(a,r([i,e],t));return s(o,e),o},o.get=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=(t=o.request).call.apply(t,r([o,e],n));return a.end(),a},i.get=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var a=(t=i.request).call.apply(t,r([i,e],n));return a.end(),a}},e.trackRequest=function(t,n){if(n.options&&n.request&&t){var r,o,i=new u(n.options,n.request),f=l.CorrelationContextManager.getCurrentContext();if(f&&f.operation&&f.operation.traceparent&&d.isValidTraceId(f.operation.traceparent.traceId)?(f.operation.traceparent.updateSpanId(),r=f.operation.traceparent.getBackCompatRequestId()):p.w3cEnabled?(o=(v=new d).toString(),r=v.getBackCompatRequestId()):r=f&&f.operation&&f.operation.parentId+e.requestNumber+++".",s.canIncludeCorrelationHeader(t,i.getUrl())&&n.request.getHeader&&n.request.setHeader&&t.config&&t.config.correlationId){var h=n.request.getHeader(c.requestContextHeader);try{s.safeIncludeCorrelationHeader(t,n.request,h)}catch(e){a.warn("Request-Context header could not be set. Correlation of requests may be lost",e)}if(f&&f.operation)try{if(n.request.setHeader(c.requestIdHeader,r),t.config.ignoreLegacyHeaders||(n.request.setHeader(c.parentIdHeader,f.operation.id),n.request.setHeader(c.rootIdHeader,r)),o||f.operation.traceparent)n.request.setHeader(c.traceparentHeader,o||f.operation.traceparent.toString());else if(p.w3cEnabled){var v=(new d).toString();n.request.setHeader(c.traceparentHeader,v)}if(f.operation.tracestate){var g=f.operation.tracestate.toString();g&&n.request.setHeader(c.traceStateHeader,g)}var m=f.customProperties.serializeToHeader();m&&n.request.setHeader(c.correlationContextHeader,m)}catch(e){a.warn("Correlation headers could not be set. Correlation of requests may be lost.",e)}}n.request.on&&(n.request.on("response",(function(e){i.onResponse(e);var o=i.getDependencyTelemetry(n,r);o.contextObjects=o.contextObjects||{},o.contextObjects["http.RequestOptions"]=n.options,o.contextObjects["http.ClientRequest"]=n.request,o.contextObjects["http.ClientResponse"]=e,t.trackDependency(o)})),n.request.on("error",(function(e){i.onError(e);var o=i.getDependencyTelemetry(n,r);o.contextObjects=o.contextObjects||{},o.contextObjects["http.RequestOptions"]=n.options,o.contextObjects["http.ClientRequest"]=n.request,o.contextObjects.Error=e,t.trackDependency(o)})),n.request.on("abort",(function(){i.onError(new Error);var e=i.getDependencyTelemetry(n,r);e.contextObjects=e.contextObjects||{},e.contextObjects["http.RequestOptions"]=n.options,e.contextObjects["http.ClientRequest"]=n.request,t.trackDependency(e)})))}else a.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ",!n.options,!n.request,!t)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.disableCollectionRequestOption="disableAppInsightsAutoCollection",e.requestNumber=1,e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=h})),zr=E(((e,t)=>{"use strict";var r=n(857),o=Nr(),i=un(),a=Lr(),s=qr(),c=function(){function e(t){this._collectionInterval=9e5,this._vmData={},this._azInst_vmId="",this._azInst_subscriptionId="",this._azInst_osType="",e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._handle=setInterval((function(){return n.trackHeartBeat(t,(function(){}))}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=null)},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackHeartBeat=function(e,t){var n=this,i=!1,s={},c=a.sdkVersion;s.sdk=c,s.osType=r.type(),process.env.WEBSITE_SITE_NAME?(s.appSrv_SiteName=process.env.WEBSITE_SITE_NAME||"",s.appSrv_wsStamp=process.env.WEBSITE_HOME_STAMPNAME||"",s.appSrv_wsHost=process.env.WEBSITE_HOSTNAME||""):process.env.FUNCTIONS_WORKER_RUNTIME?s.azfunction_appId=process.env.WEBSITE_HOSTNAME:e&&(void 0===this._isVM?(i=!0,this._getAzureComputeMetadata(e,(function(){n._isVM&&Object.keys(n._vmData).length>0&&(s.azInst_vmId=n._vmData.vmId||"",s.azInst_subscriptionId=n._vmData.subscriptionId||"",s.azInst_osType=n._vmData.osType||"",n._azInst_vmId=n._vmData.vmId||"",n._azInst_subscriptionId=n._vmData.subscriptionId||"",n._azInst_osType=n._vmData.osType||""),n._client.trackMetric({name:o.HeartBeatMetricName,value:0,properties:s}),t()}))):this._isVM&&(s.azInst_vmId=this._azInst_vmId,s.azInst_subscriptionId=this._azInst_subscriptionId,s.azInst_osType=this._azInst_osType)),i||(this._client.trackMetric({name:o.HeartBeatMetricName,value:0,properties:s}),t())},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.prototype._getAzureComputeMetadata=function(e,t){var n,r=this,o=((n={method:"GET"})[s.disableCollectionRequestOption]=!0,n.headers={Metadata:"True"},n),a=i.makeRequest(e,"http://169.254.169.254/metadata/instance/compute?api-version=2017-12-01&format=json",o,(function(e){if(200===e.statusCode){r._isVM=!0;var n="";e.on("data",(function(e){n+=e})),e.on("end",(function(){r._vmData=r._isJSON(n)?JSON.parse(n):{},t()}))}else t()}));a&&(a.on("error",(function(e){e&&e.message&&e.message.indexOf("ENETUNREACH")>-1&&(r._isVM=!1),t()})),a.end())},e.prototype._isJSON=function(e){try{return JSON.parse(e)&&!!e}catch{return!1}},e}();t.exports=c})),Wr=E(((e,t)=>{"use strict";var r=n(8611),o=n(5692),i=O(),a=un(),s=cn(),c=or(),u=Cr(),l=Dr(),p=function(){function e(t){if(e.INSTANCE)throw new Error("Server request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,(this._isAutoCorrelating||this._isEnabled||l.isEnabled())&&!this._isInitialized&&(this.useAutoCorrelation(this._isAutoCorrelating),this._initialize())},e.prototype.useAutoCorrelation=function(e,t){e&&!this._isAutoCorrelating?u.CorrelationContextManager.enable(t):!e&&this._isAutoCorrelating&&u.CorrelationContextManager.disable(),this._isAutoCorrelating=e},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.isAutoCorrelating=function(){return this._isAutoCorrelating},e.prototype._generateCorrelationContext=function(e){if(this._isAutoCorrelating)return u.CorrelationContextManager.generateContextObject(e.getOperationId(this._client.context.tags),e.getRequestId(),e.getOperationName(this._client.context.tags),e.getCorrelationContextHeader(),e.getTraceparent(),e.getTracestate())},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=function(n){if(n){if("function"!=typeof n)throw new Error("onRequest handler must be a function");return function(r,o){u.CorrelationContextManager.wrapEmitter(r),u.CorrelationContextManager.wrapEmitter(o);var i=r&&!r[e.alreadyAutoCollectedFlag];if(r&&i){var a=new c(r),s=t._generateCorrelationContext(a);u.CorrelationContextManager.runWithContext(s,(function(){t._isEnabled&&(r[e.alreadyAutoCollectedFlag]=!0,e.trackRequest(t._client,{request:r,response:o},a)),"function"==typeof n&&n(r,o)}))}else"function"==typeof n&&n(r,o)}}},i=function(e){var t=e.addListener.bind(e);e.addListener=function(e,r){switch(e){case"request":case"checkContinue":return t(e,n(r));default:return t(e,r)}},e.on=e.addListener},a=r.createServer;r.createServer=function(e,t){if(t&&"function"==typeof t){var r=a(e,n(t));return i(r),r}return r=a(n(e)),i(r),r};var s=o.createServer;o.createServer=function(e,t){var r=s(e,n(t));return i(r),r}},e.trackRequestSync=function(t,n){if(n.request&&n.response&&t){e.addResponseCorrelationIdHeader(t,n.response);var r=u.CorrelationContextManager.getCurrentContext(),o=new c(n.request,r&&r.operation.parentId);r&&(r.operation.id=o.getOperationId(t.context.tags)||r.operation.id,r.operation.name=o.getOperationName(t.context.tags)||r.operation.name,r.operation.parentId=o.getRequestId()||r.operation.parentId,r.customProperties.addHeaderData(o.getCorrelationContextHeader())),e.endRequest(t,o,n,n.duration,n.error)}else i.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ",!n.request,!n.response,!t)},e.trackRequest=function(t,n,r){if(n.request&&n.response&&t){var o=u.CorrelationContextManager.getCurrentContext(),s=r||new c(n.request,o&&o.operation.parentId);a.canIncludeCorrelationHeader(t,s.getUrl())&&e.addResponseCorrelationIdHeader(t,n.response),o&&!r&&(o.operation.id=s.getOperationId(t.context.tags)||o.operation.id,o.operation.name=s.getOperationName(t.context.tags)||o.operation.name,o.operation.parentId=s.getOperationParentId(t.context.tags)||o.operation.parentId,o.customProperties.addHeaderData(s.getCorrelationContextHeader())),n.response.once&&n.response.once("finish",(function(){e.endRequest(t,s,n,null,null)})),n.request.on&&n.request.on("error",(function(r){e.endRequest(t,s,n,null,r)})),n.request.on&&n.request.on("aborted",(function(){e.endRequest(t,s,n,null,"The request has been aborted and the network socket has closed.")}))}else i.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ",!n.request,!n.response,!t)},e.addResponseCorrelationIdHeader=function(e,t){if(e.config&&e.config.correlationId&&t.getHeader&&t.setHeader&&!t.headersSent){var n=t.getHeader(s.requestContextHeader);a.safeIncludeCorrelationHeader(e,t,n)}},e.endRequest=function(e,t,n,r,o){o?t.onError(o,r):t.onResponse(n.response,r);var i=t.getRequestTelemetry(n);if(i.tagOverrides=t.getRequestTags(e.context.tags),n.tagOverrides)for(var a in n.tagOverrides)i.tagOverrides[a]=n.tagOverrides[a];var s=t.getLegacyRootId();s&&(i.properties.ai_legacyRootId=s),i.contextObjects=i.contextObjects||{},i.contextObjects["http.ServerRequest"]=n.request,i.contextObjects["http.ServerResponse"]=n.response,e.trackRequest(i)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1,u.CorrelationContextManager.disable(),this._isAutoCorrelating=!1},e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=p})),Kr=E(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=n(857),i=nr(),a=Nr(),s=un(),c=O(),u=s.w3cTraceId(),l=function(){function e(){}return e.createQuickPulseEnvelope=function(e,t,n,r){var i=o&&"function"==typeof o.hostname&&o.hostname()||"Unknown",a=r.tags&&r.keys&&r.keys.cloudRoleInstance&&r.tags[r.keys.cloudRoleInstance]||i,s=r.tags&&r.keys&&r.keys.cloudRole&&r.tags[r.keys.cloudRole]||null;return{Documents:t.length>0?t:null,InstrumentationKey:n.instrumentationKey||"",Metrics:e.length>0?e:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:r.tags[r.keys.internalSdkVersion],StreamId:u,MachineName:i,Instance:a,RoleName:s}},e.createQuickPulseMetric=function(e){return{Name:e.name,Value:e.value,Weight:e.count||1}},e.telemetryEnvelopeToQuickPulseDocument=function(t){switch(t.data.baseType){case i.TelemetryTypeString.Event:return e.createQuickPulseEventDocument(t);case i.TelemetryTypeString.Exception:return e.createQuickPulseExceptionDocument(t);case i.TelemetryTypeString.Trace:return e.createQuickPulseTraceDocument(t);case i.TelemetryTypeString.Dependency:return e.createQuickPulseDependencyDocument(t);case i.TelemetryTypeString.Request:return e.createQuickPulseRequestDocument(t)}return null},e.createQuickPulseEventDocument=function(t){var n=e.createQuickPulseDocument(t),o=t.data.baseData.name;return r(r({},n),{Name:o})},e.createQuickPulseTraceDocument=function(t){var n=e.createQuickPulseDocument(t),o=t.data.baseData.severityLevel||0;return r(r({},n),{Message:t.data.baseData.message,SeverityLevel:i.SeverityLevel[o]})},e.createQuickPulseExceptionDocument=function(t){var n=e.createQuickPulseDocument(t),o=t.data.baseData.exceptions,i="",a="",s="";return o&&o.length>0&&(o[0].parsedStack&&o[0].parsedStack.length>0?o[0].parsedStack.forEach((function(e){i+=e.assembly+"\n"})):o[0].stack&&o[0].stack.length>0&&(i=o[0].stack),a=o[0].message,s=o[0].typeName),r(r({},n),{Exception:i,ExceptionMessage:a,ExceptionType:s})},e.createQuickPulseRequestDocument=function(t){var n=e.createQuickPulseDocument(t),o=t.data.baseData;return r(r({},n),{Name:o.name,Success:o.success,Duration:o.duration,ResponseCode:o.responseCode,OperationName:o.name})},e.createQuickPulseDependencyDocument=function(t){var n=e.createQuickPulseDocument(t),o=t.data.baseData;return r(r({},n),{Name:o.name,Target:o.target,Success:o.success,Duration:o.duration,ResultCode:o.resultCode,CommandName:o.data,OperationName:n.OperationId,DependencyTypeName:o.type})},e.createQuickPulseDocument=function(t){var n,r;return t.data.baseType?(r=a.TelemetryTypeStringToQuickPulseType[t.data.baseType],n=a.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]):c.warn("Document type invalid; not sending live metric document",t.data.baseType),{DocumentType:n,__type:r,OperationId:t.tags[e.keys.operationId],Version:"1.0",Properties:e.aggregateProperties(t)}},e.aggregateProperties=function(e){var t=[],n=e.data.baseData.measurements||{};for(var r in n)if(n.hasOwnProperty(r)){var o={key:r,value:n[r]};t.push(o)}var i=e.data.baseData.properties||{};for(var r in i)i.hasOwnProperty(r)&&(o={key:r,value:i[r]},t.push(o));return t},e.keys=new i.ContextTagKeys,e}();t.exports=l})),Xr=E(((e,t)=>{"use strict";t.exports={getTransmissionTime:function(){return 1e4*(Date.now()+621355968e5)}}})),Qr=E(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=n(5692),a=qr(),s=O(),c=Xr(),u=un(),l="x-ms-qps-service-polling-interval-hint",p="x-ms-qps-service-endpoint-redirect",d=function(){function e(e){this._config=e,this._consecutiveErrors=0}return e.prototype.ping=function(e,t,n){var r=[{name:"x-ms-qps-stream-id",value:e.StreamId},{name:"x-ms-qps-machine-name",value:e.MachineName},{name:"x-ms-qps-role-name",value:e.RoleName},{name:"x-ms-qps-instance-name",value:e.Instance},{name:"x-ms-qps-invariant-version",value:e.InvariantVersion.toString()}];this._submitData(e,t,n,"ping",r)},e.prototype.post=function(e,t,n){return r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return[4,this._submitData([e],t,n,"post")];case 1:return r.sent(),[2]}}))}))},e.prototype._submitData=function(e,t,n,s,d){return r(this,void 0,void 0,(function(){var r,f,h,v,g,m=this;return o(this,(function(o){return r=JSON.stringify(e),(v={})[a.disableCollectionRequestOption]=!0,v.host=t&&t.length>0?t:this._config.quickPulseHost,v.method="POST",v.path="/QuickPulseService.svc/"+s+"?ikey="+this._config.instrumentationKey,v.headers=((g={Expect:"100-continue"})["x-ms-qps-transmission-time"]=c.getTransmissionTime(),g["Content-Type"]="application/json",g["Content-Length"]=Buffer.byteLength(r),g),f=v,d&&d.length>0&&d.forEach((function(e){return f.headers[e.name]=e.value})),this._config.httpsAgent?f.agent=this._config.httpsAgent:f.agent=u.tlsRestrictedAgent,(h=i.request(f,(function(e){if(200==e.statusCode){var t="true"===e.headers["x-ms-qps-subscribed"],r=e.headers[p]?e.headers[p].toString():null,o=e.headers[l]?parseInt(e.headers[l].toString()):null;m._consecutiveErrors=0,n(t,e,r,o)}else m._onError("StatusCode:"+e.statusCode+" StatusMessage:"+e.statusMessage),n()}))).on("error",(function(e){m._onError(e),n()})),h.write(r),h.end(),[2]}))}))},e.prototype._onError=function(t){this._consecutiveErrors++;var n="Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:";this._consecutiveErrors%e.MAX_QPS_FAILURES_BEFORE_WARN==0?(n="Live Metrics endpoint could not be reached "+this._consecutiveErrors+" consecutive times. Most recent error:",s.warn(e.TAG,n,t)):s.info(e.TAG,n,t)},e.TAG="QuickPulseSender",e.MAX_QPS_FAILURES_BEFORE_WARN=25,e}();t.exports=d})),Yr=E(((e,t)=>{"use strict";var n=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},r=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=O(),i=Kr(),a=Qr(),s=Nr(),c=Lr(),u=function(){function e(e,t){this._isCollectingData=!1,this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0,this._metrics={},this._documents=[],this._collectors=[],this._redirectedHost=null,this._pollingIntervalHint=-1,this.config=e,this.context=t||new c,this._sender=new a(this.config),this._isEnabled=!1}return e.prototype.addCollector=function(e){this._collectors.push(e)},e.prototype.trackMetric=function(e){this._addMetric(e)},e.prototype.addDocument=function(e){var t=i.telemetryEnvelopeToQuickPulseDocument(e);t&&this._documents.push(t)},e.prototype.enable=function(e){e&&!this._isEnabled?(this._isEnabled=!0,this._goQuickPulse()):!e&&this._isEnabled&&(this._isEnabled=!1,clearTimeout(this._handle),this._handle=void 0)},e.prototype.enableCollectors=function(e){this._collectors.forEach((function(t){t.enable(e)}))},e.prototype._addMetric=function(e){var t=e.value,n=e.count||1,r=s.PerformanceToQuickPulseCounter[e.name];r&&(this._metrics[r]?(this._metrics[r].Value=(this._metrics[r].Value*this._metrics[r].Weight+t*n)/(this._metrics[r].Weight+n),this._metrics[r].Weight+=n):(this._metrics[r]=i.createQuickPulseMetric(e),this._metrics[r].Name=r,this._metrics[r].Weight=1))},e.prototype._resetQuickPulseBuffer=function(){delete this._metrics,this._metrics={},this._documents.length=0},e.prototype._goQuickPulse=function(){return n(this,void 0,void 0,(function(){var t,n,o,a,s=this;return r(this,(function(r){switch(r.label){case 0:return t=Object.keys(this._metrics).map((function(e){return s._metrics[e]})),n=i.createQuickPulseEnvelope(t,this._documents.slice(),this.config,this.context),this._resetQuickPulseBuffer(),this._isCollectingData?[4,this._post(n)]:[3,2];case 1:return r.sent(),[3,3];case 2:this._ping(n),r.label=3;case 3:return o=this._pollingIntervalHint>0?this._pollingIntervalHint:e.PING_INTERVAL,a=this._isCollectingData?e.POST_INTERVAL:o,this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,a=e.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(a=e.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),a),this._handle.unref(),[2]}}))}))},e.prototype._ping=function(e){this._sender.ping(e,this._redirectedHost,this._quickPulseDone.bind(this))},e.prototype._post=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this._sender.post(e,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return t.sent(),[2]}}))}))},e.prototype._quickPulseDone=function(e,t,n,r){null!=e?(this._isCollectingData!==e&&(o.info("Live Metrics sending data",e),this.enableCollectors(e)),this._isCollectingData=e,n&&n.length>0&&(this._redirectedHost=n,o.info("Redirecting endpoint to: ",n)),r&&r>0&&(this._pollingIntervalHint=r),t&&t.statusCode<300&&t.statusCode>=200?(this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0):this._lastSendSucceeded=!1):this._lastSendSucceeded=!1},e.MAX_POST_WAIT_TIME=2e4,e.MAX_PING_WAIT_TIME=6e4,e.FALLBACK_INTERVAL=6e4,e.PING_INTERVAL=5e3,e.POST_INTERVAL=1e3,e}();t.exports=u})),Jr=E(((e,t)=>{"use strict";var n=Nr(),r=function(){function e(){}return e.parse=function(t){if(!t)return{};var r=t.split(e._FIELDS_SEPARATOR).reduce((function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var o=r[0].toLowerCase(),i=r[1];t[o]=i}return t}),{});if(Object.keys(r).length>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+o+"dc."+r.endpointsuffix,r.liveendpoint=r.liveendpoint||"https://"+o+"live."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||n.DEFAULT_BREEZE_ENDPOINT,r.liveendpoint=r.liveendpoint||n.DEFAULT_LIVEMETRICS_ENDPOINT}return r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}();t.exports=r})),Zr=E(((e,t)=>{"use strict";var r=ln(),o=Jr(),i=(O(),Nr()),a=n(7016),s=function(){function e(t){var n=this;this.endpointBase=i.DEFAULT_BREEZE_ENDPOINT;var r=process.env[e.ENV_connectionString],s=o.parse(t),c=o.parse(r),u=!s.instrumentationkey&&Object.keys(s).length>0?null:t;this.instrumentationKey=s.instrumentationkey||u||c.instrumentationkey||e._getInstrumentationKey(),e._validateInstrumentationKey(this.instrumentationKey),this.endpointUrl=(s.ingestionendpoint||c.ingestionendpoint||this.endpointBase)+"/v2.1/track",this.maxBatchSize=250,this.maxBatchIntervalMs=15e3,this.disableAppInsights=!1,this.samplingPercentage=100,this.correlationIdRetryIntervalMs=3e4,this.correlationHeaderExcludedDomains=["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.setCorrelationId=function(e){return n.correlationId=e},this.proxyHttpUrl=process.env[e.ENV_http_proxy]||void 0,this.proxyHttpsUrl=process.env[e.ENV_https_proxy]||void 0,this.httpAgent=void 0,this.httpsAgent=void 0,this.profileQueryEndpoint=s.ingestionendpoint||c.ingestionendpoint||process.env[e.ENV_profileQueryEndpoint]||this.endpointBase,this._quickPulseHost=s.liveendpoint||c.liveendpoint||process.env[e.ENV_quickPulseHost]||i.DEFAULT_LIVEMETRICS_HOST,this._quickPulseHost.match(/^https?:\/\//)&&(this._quickPulseHost=a.parse(this._quickPulseHost).host)}return Object.defineProperty(e.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(e){r.cancelCorrelationIdQuery(this,this.setCorrelationId),this._profileQueryEndpoint=e,this.correlationId=r.correlationIdPrefix,r.queryCorrelationId(this,this.setCorrelationId)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickPulseHost",{get:function(){return this._quickPulseHost},set:function(e){this._quickPulseHost=e},enumerable:!1,configurable:!0}),e._getInstrumentationKey=function(){var t=process.env[e.ENV_iKey]||process.env[e.ENV_azurePrefix+e.ENV_iKey]||process.env[e.legacy_ENV_iKey]||process.env[e.ENV_azurePrefix+e.legacy_ENV_iKey];if(!t||""==t)throw new Error("Instrumentation key not found, pass the key in the config to this method or set the key in the environment variable APPINSIGHTS_INSTRUMENTATIONKEY before starting the server");return t},e._validateInstrumentationKey=function(e){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)},e.ENV_azurePrefix="APPSETTING_",e.ENV_iKey="APPINSIGHTS_INSTRUMENTATIONKEY",e.legacy_ENV_iKey="APPINSIGHTS_INSTRUMENTATION_KEY",e.ENV_profileQueryEndpoint="APPINSIGHTS_PROFILE_QUERY_ENDPOINT",e.ENV_quickPulseHost="APPINSIGHTS_QUICKPULSE_HOST",e.ENV_connectionString="APPLICATIONINSIGHTS_CONNECTION_STRING",e.ENV_nativeMetricsDisablers="APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC",e.ENV_nativeMetricsDisableAll="APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS",e.ENV_http_proxy="http_proxy",e.ENV_https_proxy="https_proxy",e}();t.exports=s})),eo=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AutoCollectNativePerformance=void 0;var r=Zr(),o=Lr(),i=O(),a=function(){function e(t){this._disabledMetrics={},e.INSTANCE&&e.INSTANCE.dispose(),e.INSTANCE=this,this._client=t}return e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>=6},e.prototype.enable=function(t,r,o){var a=this;if(void 0===r&&(r={}),void 0===o&&(o=6e4),e.isNodeVersionCompatible()){if(null==e._metricsAvailable&&t&&!this._isInitialized)try{var s=n(4597);e._emitter=new s,e._metricsAvailable=!0,i.info("Native metrics module successfully loaded!")}catch{return void(e._metricsAvailable=!1)}this._isEnabled=t,this._disabledMetrics=r,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),this._isEnabled&&e._emitter?(e._emitter.enable(!0,o),this._handle||(this._handle=setInterval((function(){return a._trackNativeMetrics()}),o),this._handle.unref())):e._emitter&&(e._emitter.enable(!1),this._handle&&(clearInterval(this._handle),this._handle=void 0))}},e.prototype.dispose=function(){this.enable(!1)},e.parseEnabled=function(e){var n=process.env[r.ENV_nativeMetricsDisableAll],o=process.env[r.ENV_nativeMetricsDisablers];if(n)return{isEnabled:!1,disabledMetrics:{}};if(o){var i=o.split(","),a={};if(i.length>0)for(var s=0,c=i;s<c.length;s++)a[c[s]]=!0;return"object"==typeof e?{isEnabled:!0,disabledMetrics:t(t({},e),a)}:{isEnabled:e,disabledMetrics:a}}return"boolean"==typeof e?{isEnabled:e,disabledMetrics:{}}:{isEnabled:!0,disabledMetrics:e}},e.prototype._trackNativeMetrics=function(){var e=!0;"object"!=typeof this._isEnabled&&(e=this._isEnabled),e&&(this._trackGarbageCollection(),this._trackEventLoop(),this._trackHeapUsage())},e.prototype._trackGarbageCollection=function(){var t;if(!this._disabledMetrics.gc){var n=e._emitter.getGCData();for(var r in n){var i=n[r].metrics,a=r+" Garbage Collection Duration",s=Math.sqrt(i.sumSquares/i.count-Math.pow(i.total/i.count,2))||0;this._client.trackMetric({name:a,value:i.total,count:i.count,max:i.max,min:i.min,stdDev:s,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+o.sdkVersion,t)})}}},e.prototype._trackEventLoop=function(){var t;if(!this._disabledMetrics.loop){var n=e._emitter.getLoopData().loopUsage;if(0!=n.count){var r=Math.sqrt(n.sumSquares/n.count-Math.pow(n.total/n.count,2))||0;this._client.trackMetric({name:"Event Loop CPU Time",value:n.total,count:n.count,min:n.min,max:n.max,stdDev:r,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+o.sdkVersion,t)})}}},e.prototype._trackHeapUsage=function(){var e,t,n;if(!this._disabledMetrics.heap){var r=process.memoryUsage(),i=r.heapUsed,a=r.heapTotal,s=r.rss;this._client.trackMetric({name:"Memory Usage (Heap)",value:i,count:1,tagOverrides:(e={},e[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+o.sdkVersion,e)}),this._client.trackMetric({name:"Memory Total (Heap)",value:a,count:1,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+o.sdkVersion,t)}),this._client.trackMetric({name:"Memory Usage (Non-Heap)",value:s-a,count:1,tagOverrides:(n={},n[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+o.sdkVersion,n)})}},e}();e.AutoCollectNativePerformance=a})),to=E(((e,t)=>{"use strict";var n=O(),r=function(){function e(e,t,n,r){this._buffer=[],this._lastSend=0,this._isDisabled=e,this._getBatchSize=t,this._getBatchIntervalMs=n,this._sender=r}return e.prototype.setUseDiskRetryCaching=function(e,t,n){this._sender.setDiskRetryMode(e,t,n)},e.prototype.send=function(e){var t=this;if(!this._isDisabled()){if(!e)return void n.warn("Cannot send null/undefined telemetry");if(this._buffer.push(e),this._buffer.length>=this._getBatchSize())return void this.triggerSend(!1);!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout((function(){t._timeoutHandle=null,t.triggerSend(!1)}),this._getBatchIntervalMs()))}},e.prototype.triggerSend=function(e,t){var n=this._buffer.length<1;n||(e?(this._sender.saveOnCrash(this._buffer),"function"==typeof t&&t("data saved on crash")):this._sender.send(this._buffer,t)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,n&&"function"==typeof t&&t("no data to send")},e}();t.exports=r})),no=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.azureRoleEnvironmentTelemetryProcessor=void 0,e.azureRoleEnvironmentTelemetryProcessor=function(e,t){process.env.WEBSITE_SITE_NAME&&(e.tags[t.keys.cloudRole]=process.env.WEBSITE_SITE_NAME)}})),ro=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSamplingHashCode=e.samplingTelemetryProcessor=void 0;var t=nr();function n(e){var t=2147483647,n=5381;if(!e)return 0;for(;e.length<8;)e+=e;for(var r=0;r<e.length;r++)n=((n<<5)+n|0)+e.charCodeAt(r)|0;return(n=n<=-2147483648?t:Math.abs(n))/t*100}e.samplingTelemetryProcessor=function(e,r){var o=e.sampleRate;return!!(null==o||o>=100||e.data&&t.TelemetryType.Metric===t.baseTypeToTelemetryType(e.data.baseType))||(r.correlationContext&&r.correlationContext.operation?n(r.correlationContext.operation.id)<o:100*Math.random()<o)},e.getSamplingHashCode=n})),oo=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performanceMetricsTelemetryProcessor=void 0;var t=Dr(),n=nr();e.performanceMetricsTelemetryProcessor=function(e,r){switch(r&&r.addDocument(e),e.data.baseType){case n.TelemetryTypeString.Exception:t.countException();break;case n.TelemetryTypeString.Request:var o=e.data.baseData;t.countRequest(o.duration,o.success);break;case n.TelemetryTypeString.Dependency:var i=e.data.baseData;t.countDependency(i.duration,i.success)}return!0}})),io=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.preAggregatedMetricsTelemetryProcessor=void 0;var n=nr(),r=jr(),o=nr();e.preAggregatedMetricsTelemetryProcessor=function(e,i){if(r.isEnabled())switch(e.data.baseType){case o.TelemetryTypeString.Exception:var a=e.data.baseData;a.properties=t(t({},a.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')"});var s={cloudRoleInstance:e.tags[i.keys.cloudRoleInstance],cloudRoleName:e.tags[i.keys.cloudRole]};r.countException(s);break;case o.TelemetryTypeString.Trace:var c=e.data.baseData;c.properties=t(t({},c.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Traces', Ver:'1.1')"});var u={cloudRoleInstance:e.tags[i.keys.cloudRoleInstance],cloudRoleName:e.tags[i.keys.cloudRole],traceSeverityLevel:n.SeverityLevel[c.severity]};r.countTrace(u);break;case o.TelemetryTypeString.Request:var l=e.data.baseData;l.properties=t(t({},l.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')"});var p={cloudRoleInstance:e.tags[i.keys.cloudRoleInstance],cloudRoleName:e.tags[i.keys.cloudRole],operationSynthetic:e.tags[i.keys.operationSyntheticSource],requestSuccess:l.success,requestResultCode:l.responseCode};r.countRequest(l.duration,p);break;case o.TelemetryTypeString.Dependency:var d=e.data.baseData;d.properties=t(t({},d.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"});var f={cloudRoleInstance:e.tags[i.keys.cloudRoleInstance],cloudRoleName:e.tags[i.keys.cloudRole],operationSynthetic:e.tags[i.keys.operationSyntheticSource],dependencySuccess:d.success,dependencyType:d.type,dependencyTarget:d.target,dependencyResultCode:d.resultCode};r.countDependency(d.duration,f)}return!0}})),ao=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(no(),e),n(ro(),e),n(oo(),e),n(io(),e)})),so=E(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=n(9896),a=n(857),s=n(6928),c=n(3106),u=n(5317),l=O(),p=qr(),d=un(),f=function(){function e(t,n,r){if(this._redirectedHost=null,this._config=t,this._onSuccess=n,this._onError=r,this._enableDiskRetryMode=!1,this._resendInterval=e.WAIT_BETWEEN_RESEND,this._maxBytesOnDisk=e.MAX_BYTES_ON_DISK,this._numConsecutiveFailures=0,this._numConsecutiveRedirects=0,this._resendTimer=null,this._fileCleanupTimer=null,this._tempDir=s.join(a.tmpdir(),e.TEMPDIR_PREFIX+this._config.instrumentationKey),!e.OS_PROVIDES_FILE_PROTECTION)if(e.USE_ICACLS){try{e.OS_PROVIDES_FILE_PROTECTION=i.existsSync(e.ICACLS_PATH)}catch{}e.OS_PROVIDES_FILE_PROTECTION||l.warn(e.TAG,"Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.")}else e.OS_PROVIDES_FILE_PROTECTION=!0}return e.prototype.setDiskRetryMode=function(t,n,r){var o=this;this._enableDiskRetryMode=e.OS_PROVIDES_FILE_PROTECTION&&t,"number"==typeof n&&n>=0&&(this._resendInterval=Math.floor(n)),"number"==typeof r&&r>=0&&(this._maxBytesOnDisk=Math.floor(r)),t&&!e.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,l.warn(e.TAG,"Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout((function(){o._fileCleanupTask()}),e.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref()):this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer)},e.prototype.send=function(t,n){return r(this,void 0,void 0,(function(){var r,i,a,s,u=this;return o(this,(function(o){return t&&(r=this._redirectedHost||this._config.endpointUrl,i={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},a="",t.forEach((function(e){var t=u._stringify(e);"string"==typeof t&&(a+=t+"\n")})),a.length>0&&(a=a.substring(0,a.length-1)),s=Buffer.from?Buffer.from(a):new Buffer(a),c.gzip(s,(function(o,a){var c=a;o?(l.warn(o),c=s,i.headers["Content-Length"]=s.length.toString()):(i.headers["Content-Encoding"]="gzip",i.headers["Content-Length"]=a.length.toString()),l.info(e.TAG,i),i[p.disableCollectionRequestOption]=!0;var f=d.makeRequest(u._config,r,i,(function(r){r.setEncoding("utf-8");var o="";r.on("data",(function(e){o+=e})),r.on("end",(function(){if(u._numConsecutiveFailures=0,u._enableDiskRetryMode)if(200===r.statusCode)u._resendTimer||(u._resendTimer=setTimeout((function(){u._resendTimer=null,u._sendFirstFileOnDisk()}),u._resendInterval),u._resendTimer.unref());else if(u._isRetriable(r.statusCode))try{var i=JSON.parse(o),a=[];i.errors.forEach((function(e){u._isRetriable(e.statusCode)&&a.push(t[e.index])})),a.length>0&&u._storeToDisk(a)}catch{u._storeToDisk(t)}if(307===r.statusCode||308===r.statusCode)if(u._numConsecutiveRedirects++,u._numConsecutiveRedirects<10){var s=r.headers.location?r.headers.location.toString():null;s&&(u._redirectedHost=s,u.send(t,n))}else"function"==typeof n&&n("Error sending telemetry because of circular redirects.");else u._numConsecutiveRedirects=0,"function"==typeof n&&n(o),l.info(e.TAG,o),"function"==typeof u._onSuccess&&u._onSuccess(o)}))}));f.on("error",(function(r){if(u._numConsecutiveFailures++,!u._enableDiskRetryMode||u._numConsecutiveFailures>0&&u._numConsecutiveFailures%e.MAX_CONNECTION_FAILURES_BEFORE_WARN==0){var o="Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:";u._enableDiskRetryMode&&(o="Ingestion endpoint could not be reached "+u._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),l.warn(e.TAG,o,d.dumpObj(r))}else o="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:",l.info(e.TAG,o,d.dumpObj(r));u._onErrorHelper(r),"function"==typeof n&&(r&&n(d.dumpObj(r)),n("Error sending telemetry")),u._enableDiskRetryMode&&u._storeToDisk(t)})),f.write(c),f.end()}))),[2]}))}))},e.prototype.saveOnCrash=function(e){this._enableDiskRetryMode&&this._storeToDiskSync(this._stringify(e))},e.prototype._isRetriable=function(e){return 206===e||408===e||429===e||439===e||500===e||503===e},e.prototype._runICACLS=function(t,n){var r=u.spawn(e.ICACLS_PATH,t,{windowsHide:!0});r.on("error",(function(e){return n(e)})),r.on("close",(function(e,t){return n(0===e?null:new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+e+")"))}))},e.prototype._runICACLSSync=function(t){if(!u.spawnSync)throw new Error("Could not synchronously call ICACLS under current version of Node.js");var n=u.spawnSync(e.ICACLS_PATH,t,{windowsHide:!0});if(n.error)throw n.error;if(0!==n.status)throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+n.status+")")},e.prototype._getACLIdentity=function(t){if(e.ACL_IDENTITY)return t(null,e.ACL_IDENTITY);var n=u.spawn(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]}),r="";n.stdout.on("data",(function(e){return r+=e})),n.on("error",(function(e){return t(e,null)})),n.on("close",(function(n,o){return e.ACL_IDENTITY=r&&r.trim(),t(0===n?null:new Error("Getting ACL identity did not succeed (PS returned code "+n+")"),e.ACL_IDENTITY)}))},e.prototype._getACLIdentitySync=function(){if(e.ACL_IDENTITY)return e.ACL_IDENTITY;if(u.spawnSync){var t=u.spawnSync(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]});if(t.error)throw t.error;if(0!==t.status)throw new Error("Getting ACL identity did not succeed (PS returned code "+t.status+")");return e.ACL_IDENTITY=t.stdout&&t.stdout.toString().trim(),e.ACL_IDENTITY}throw new Error("Could not synchronously get ACL identity under current version of Node.js")},e.prototype._getACLArguments=function(e,t){return[e,"/grant","*S-1-5-32-544:(OI)(CI)F","/grant",t+":(OI)(CI)F","/inheritance:r"]},e.prototype._applyACLRules=function(t,n){var r=this;return e.USE_ICACLS?void 0!==e.ACLED_DIRECTORIES[t]?n(e.ACLED_DIRECTORIES[t]?null:new Error("Setting ACL restrictions did not succeed (cached result)")):(e.ACLED_DIRECTORIES[t]=!1,void this._getACLIdentity((function(o,i){if(o)return e.ACLED_DIRECTORIES[t]=!1,n(o);r._runICACLS(r._getACLArguments(t,i),(function(r){return e.ACLED_DIRECTORIES[t]=!r,n(r)}))}))):n(null)},e.prototype._applyACLRulesSync=function(t){if(e.USE_ICACLS){if(void 0===e.ACLED_DIRECTORIES[t])return this._runICACLSSync(this._getACLArguments(t,this._getACLIdentitySync())),void(e.ACLED_DIRECTORIES[t]=!0);if(!e.ACLED_DIRECTORIES[t])throw new Error("Setting ACL restrictions did not succeed (cached result)")}},e.prototype._confirmDirExists=function(e,t){var n=this;i.lstat(e,(function(r,o){r&&"ENOENT"===r.code?i.mkdir(e,(function(r){r&&"EEXIST"!==r.code?t(r):n._applyACLRules(e,t)})):!r&&o.isDirectory()?n._applyACLRules(e,t):t(r||new Error("Path existed but was not a directory"))}))},e.prototype._getShallowDirectorySize=function(e,t){i.readdir(e,(function(n,r){if(n)return t(n,-1);var o=null,a=0,c=0;if(0!==r.length)for(var u=0;u<r.length;u++)i.stat(s.join(e,r[u]),(function(e,n){c++,e?o=e:n.isFile()&&(a+=n.size),c===r.length&&t(o,o?-1:a)}));else t(null,0)}))},e.prototype._getShallowDirectorySizeSync=function(e){for(var t=i.readdirSync(e),n=0,r=0;r<t.length;r++)n+=i.statSync(s.join(e,t[r])).size;return n},e.prototype._storeToDisk=function(t){var n=this;l.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),this._confirmDirExists(this._tempDir,(function(r){if(r)return l.warn(e.TAG,"Error while checking/creating directory: "+(r&&r.message)),void n._onErrorHelper(r);n._getShallowDirectorySize(n._tempDir,(function(r,o){if(r||o<0)return l.warn(e.TAG,"Error while checking directory size: "+(r&&r.message)),void n._onErrorHelper(r);if(o>n._maxBytesOnDisk)l.warn(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+o);else{var a=(new Date).getTime()+".ai.json",c=s.join(n._tempDir,a);l.info(e.TAG,"saving data to disk at: "+c),i.writeFile(c,n._stringify(t),{mode:384},(function(e){return n._onErrorHelper(e)}))}}))}))},e.prototype._storeToDiskSync=function(t){try{l.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),i.existsSync(this._tempDir)||i.mkdirSync(this._tempDir),this._applyACLRulesSync(this._tempDir);var n=this._getShallowDirectorySizeSync(this._tempDir);if(n>this._maxBytesOnDisk)return void l.info(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+n);var r=(new Date).getTime()+".ai.json",o=s.join(this._tempDir,r);l.info(e.TAG,"saving data before crash to disk at: "+o),i.writeFileSync(o,t,{mode:384})}catch(t){l.warn(e.TAG,"Error while saving data to disk: "+(t&&t.message)),this._onErrorHelper(t)}},e.prototype._sendFirstFileOnDisk=function(){var e=this;i.exists(this._tempDir,(function(t){t&&i.readdir(e._tempDir,(function(t,n){if(t)e._onErrorHelper(t);else if((n=n.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0){var r=n[0],o=s.join(e._tempDir,r);i.readFile(o,(function(t,n){t?e._onErrorHelper(t):i.unlink(o,(function(t){if(t)e._onErrorHelper(t);else try{var r=JSON.parse(n.toString());e.send(r)}catch(e){l.warn("Failed to read persisted file",e)}}))}))}}))}))},e.prototype._onErrorHelper=function(e){"function"==typeof this._onError&&this._onError(e)},e.prototype._stringify=function(e){try{return JSON.stringify(e)}catch(t){l.warn("Failed to serialize payload",t,e)}},e.prototype._fileCleanupTask=function(){var t=this;i.exists(this._tempDir,(function(n){n&&i.readdir(t._tempDir,(function(n,r){n?t._onErrorHelper(n):(r=r.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0&&r.forEach((function(n){var r=new Date(parseInt(n.split(".ai.json")[0]));if(new Date(+new Date-e.FILE_RETEMPTION_PERIOD)>r){var o=s.join(t._tempDir,n);i.unlink(o,(function(e){e&&t._onErrorHelper(e)}))}}))}))}))},e.TAG="Sender",e.ICACLS_PATH=process.env.systemdrive+"/windows/system32/icacls.exe",e.POWERSHELL_PATH=process.env.systemdrive+"/windows/system32/windowspowershell/v1.0/powershell.exe",e.ACLED_DIRECTORIES={},e.ACL_IDENTITY=null,e.WAIT_BETWEEN_RESEND=6e4,e.MAX_BYTES_ON_DISK=52428800,e.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,e.CLEANUP_TIMEOUT=36e5,e.FILE_RETEMPTION_PERIOD=6048e5,e.TEMPDIR_PREFIX="appInsights-node",e.OS_PROVIDES_FILE_PROTECTION=!1,e.USE_ICACLS="Windows_NT"===a.type(),e}();t.exports=f})),co=E(((e,t)=>{"use strict";var n=nr(),r=un(),o=Cr(),i=function(){function e(){}return e.createEnvelope=function(t,o,i,a,s){var c=null;switch(o){case n.TelemetryType.Trace:c=e.createTraceData(t);break;case n.TelemetryType.Dependency:c=e.createDependencyData(t);break;case n.TelemetryType.Event:c=e.createEventData(t);break;case n.TelemetryType.Exception:c=e.createExceptionData(t);break;case n.TelemetryType.Request:c=e.createRequestData(t);break;case n.TelemetryType.Metric:c=e.createMetricData(t);break;case n.TelemetryType.Availability:c=e.createAvailabilityData(t);break;case n.TelemetryType.PageView:c=e.createPageViewData(t)}if(i&&n.domainSupportsProperties(c.baseData)){if(c&&c.baseData)if(c.baseData.properties)for(var u in i)c.baseData.properties[u]||(c.baseData.properties[u]=i[u]);else c.baseData.properties=i;c.baseData.properties=r.validateStringMap(c.baseData.properties)}var l=s&&s.instrumentationKey||"",p=new n.Envelope;return p.data=c,p.iKey=l,p.name="Microsoft.ApplicationInsights."+l.replace(/-/g,"")+"."+c.baseType.substr(0,c.baseType.length-4),p.tags=this.getTags(a,t.tagOverrides),p.time=(new Date).toISOString(),p.ver=1,p.sampleRate=s?s.samplingPercentage:100,o===n.TelemetryType.Metric&&(p.sampleRate=100),p},e.createTraceData=function(e){var t=new n.MessageData;t.message=e.message,t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Information:t.severityLevel=e.severity;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Trace),r.baseData=t,r},e.createDependencyData=function(e){var t=new n.RemoteDependencyData;"string"==typeof e.name&&(t.name=e.name.length>1024?e.name.slice(0,1021)+"...":e.name),t.data=e.data,t.target=e.target,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.type=e.dependencyTypeName,t.properties=e.properties,t.resultCode=e.resultCode?e.resultCode+"":"",e.id?t.id=e.id:t.id=r.w3cTraceId();var o=new n.Data;return o.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Dependency),o.baseData=t,o},e.createEventData=function(e){var t=new n.EventData;t.name=e.name,t.properties=e.properties,t.measurements=e.measurements;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Event),r.baseData=t,r},e.createExceptionData=function(e){var t=new n.ExceptionData;t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Error:t.severityLevel=e.severity,t.measurements=e.measurements,t.exceptions=[];var o=e.exception.stack,i=new n.ExceptionDetails;i.message=e.exception.message,i.typeName=e.exception.name,i.parsedStack=this.parseStack(o),i.hasFullStack=r.isArray(i.parsedStack)&&i.parsedStack.length>0,t.exceptions.push(i);var a=new n.Data;return a.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Exception),a.baseData=t,a},e.createRequestData=function(e){var t=new n.RequestData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.url=e.url,t.source=e.source,t.duration=r.msToTimeSpan(e.duration),t.responseCode=e.resultCode?e.resultCode+"":"",t.success=e.success,t.properties=e.properties;var o=new n.Data;return o.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Request),o.baseData=t,o},e.createMetricData=function(e){var t=new n.MetricData;t.metrics=[];var r=new n.DataPoint;r.count=isNaN(e.count)?1:e.count,r.kind=n.DataPointType.Aggregation,r.max=isNaN(e.max)?e.value:e.max,r.min=isNaN(e.min)?e.value:e.min,r.name=e.name,r.stdDev=isNaN(e.stdDev)?0:e.stdDev,r.value=e.value,t.metrics.push(r),t.properties=e.properties;var o=new n.Data;return o.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Metric),o.baseData=t,o},e.createAvailabilityData=function(e){var t=new n.AvailabilityData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.runLocation=e.runLocation,t.message=e.message,t.measurements=e.measurements,t.properties=e.properties;var o=new n.Data;return o.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Availability),o.baseData=t,o},e.createPageViewData=function(e){var t=new n.PageViewData;t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.url=e.url,t.measurements=e.measurements,t.properties=e.properties;var o=new n.Data;return o.baseType=n.telemetryTypeToBaseType(n.TelemetryType.PageView),o.baseData=t,o},e.getTags=function(e,t){var n=o.CorrelationContextManager.getCurrentContext(),r={};if(e&&e.tags)for(var i in e.tags)r[i]=e.tags[i];if(t)for(var i in t)r[i]=t[i];return n&&(r[e.keys.operationId]=r[e.keys.operationId]||n.operation.id,r[e.keys.operationName]=r[e.keys.operationName]||n.operation.name,r[e.keys.operationParentId]=r[e.keys.operationParentId]||n.operation.parentId),r},e.parseStack=function(e){var t=void 0;if("string"==typeof e){var n=e.split("\n");t=[];for(var r=0,o=0,i=0;i<=n.length;i++){var s=n[i];if(a.regex.test(s)){var c=new a(n[i],r++);o+=c.sizeInBytes,t.push(c)}}if(o>32768)for(var u=0,l=t.length-1,p=0,d=u,f=l;u<l;){if((p+=t[u].sizeInBytes+t[l].sizeInBytes)>32768){var h=f-d+1;t.splice(d,h);break}d=u,f=l,u++,l--}}return t},e}(),a=function(){function e(t,n){this.sizeInBytes=0,this.level=n,this.method="<no_method>",this.assembly=r.trim(t);var o=t.match(e.regex);o&&o.length>=5&&(this.method=r.trim(o[2])||this.method,this.fileName=r.trim(o[4])||"<no_filename>",this.line=parseInt(o[5])||0),this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=e.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return e.regex=/^(\s+at)?(.*?)(\@|\s\(|\s)([^\(\n]+):(\d+):(\d+)(\)?)$/,e.baseSize=58,e}();t.exports=i})),uo=E(((e,t)=>{"use strict";var r=n(7016),o=Zr(),i=Lr(),a=nr(),s=to(),c=ao(),u=Cr(),l=so(),p=un(),d=O(),f=co(),h=function(){function e(e){this._telemetryProcessors=[],this._enableAzureProperties=!1;var t=new o(e);this.config=t,this.context=new i,this.commonProperties={};var n=new l(this.config);this.channel=new s((function(){return t.disableAppInsights}),(function(){return t.maxBatchSize}),(function(){return t.maxBatchIntervalMs}),n)}return e.prototype.trackAvailability=function(e){this.track(e,a.TelemetryType.Availability)},e.prototype.trackPageView=function(e){this.track(e,a.TelemetryType.PageView)},e.prototype.trackTrace=function(e){this.track(e,a.TelemetryType.Trace)},e.prototype.trackMetric=function(e){this.track(e,a.TelemetryType.Metric)},e.prototype.trackException=function(e){e&&e.exception&&!p.isError(e.exception)&&(e.exception=new Error(e.exception.toString())),this.track(e,a.TelemetryType.Exception)},e.prototype.trackEvent=function(e){this.track(e,a.TelemetryType.Event)},e.prototype.trackRequest=function(e){this.track(e,a.TelemetryType.Request)},e.prototype.trackDependency=function(e){e&&!e.target&&e.data&&(e.target=r.parse(e.data).host),this.track(e,a.TelemetryType.Dependency)},e.prototype.flush=function(e){this.channel.triggerSend(!!e&&!!e.isAppCrashing,e?e.callback:void 0)},e.prototype.track=function(e,t){if(e&&a.telemetryTypeToBaseType(t)){var n=f.createEnvelope(e,t,this.commonProperties,this.context,this.config);e.time&&(n.time=e.time.toISOString()),this._enableAzureProperties&&c.azureRoleEnvironmentTelemetryProcessor(n,this.context);var r=this.runTelemetryProcessors(n,e.contextObjects);r=r&&c.samplingTelemetryProcessor(n,{correlationContext:u.CorrelationContextManager.getCurrentContext()}),c.preAggregatedMetricsTelemetryProcessor(n,this.context),r&&(c.performanceMetricsTelemetryProcessor(n,this.quickPulseClient),this.channel.send(n))}else d.warn("track() requires telemetry object and telemetryType to be specified.")},e.prototype.setAutoPopulateAzureProperties=function(e){this._enableAzureProperties=e},e.prototype.addTelemetryProcessor=function(e){this._telemetryProcessors.push(e)},e.prototype.clearTelemetryProcessors=function(){this._telemetryProcessors=[]},e.prototype.runTelemetryProcessors=function(e,t){var n=!0,r=this._telemetryProcessors.length;if(0===r)return n;(t=t||{}).correlationContext=u.CorrelationContextManager.getCurrentContext();for(var o=0;o<r;++o)try{var i=this._telemetryProcessors[o];if(i&&!1===i.apply(null,[e,t])){n=!1;break}}catch(t){n=!0,d.warn("One of telemetry processors failed, telemetry item will be sent.",t,e)}return n&&(e&&e.tags&&(e.tags=p.validateStringMap(e.tags)),e&&e.data&&e.data.baseData&&e.data.baseData.properties&&(e.data.baseData.properties=p.validateStringMap(e.data.baseData.properties))),n},e}();t.exports=h})),lo=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=uo(),i=Wr(),a=qr(),s=O(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.trackNodeHttpRequestSync=function(e){e&&e.request&&e.response&&e.duration?i.trackRequestSync(this,e):s.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.")},t.prototype.trackNodeHttpRequest=function(e){(e.duration||e.error)&&s.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."),e&&e.request&&e.response?i.trackRequest(this,e):s.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.")},t.prototype.trackNodeHttpDependency=function(e){e&&e.request?a.trackRequest(this,e):s.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.")},t}(o);t.exports=c})),po=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),fo=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.Configuration=e.wrapWithCorrelationContext=e.startOperation=e.getCorrelationContext=e.start=e.setup=e.liveMetricsClient=e.defaultClient=e.DistributedTracingModes=void 0;var t,n,r=Cr(),o=xr(),i=Rr(),a=Dr(),s=jr(),c=zr(),u=qr(),l=Wr(),p=ln(),d=O(),f=Yr(),h=eo();e.TelemetryClient=lo(),e.Contracts=nr(),e.azureFunctionsTypes=po(),(n=t=e.DistributedTracingModes||(e.DistributedTracingModes={}))[n.AI=0]="AI",n[n.AI_AND_W3C=1]="AI_AND_W3C";var v,g,m,y,_,E,b,S,T,P,w,C=!0,A=!1,I=!0,x=!0,R=!0,N=!1,D=!0,k=!0,M=!0,j=!0,L=!1,F=!0,H=void 0,B=void 0,U=!1;function V(){return e.defaultClient?(U=!0,m.enable(C,A),y.enable(I),_.enable(x),E.enable(R),b.enable(N,e.defaultClient.config),S.enable(F,g),T.useAutoCorrelation(j,v),T.enable(D),P.enable(k),e.liveMetricsClient&&L&&e.liveMetricsClient.enable(L)):d.warn("Start cannot be called before setup"),$}e.setup=function(t){return e.defaultClient?d.info("The default client is already setup"):(e.defaultClient=new e.TelemetryClient(t),m=new o(e.defaultClient),y=new i(e.defaultClient),_=new a(e.defaultClient),E=new s(e.defaultClient),b=new c(e.defaultClient),T=new l(e.defaultClient),P=new u(e.defaultClient),S||(S=new h.AutoCollectNativePerformance(e.defaultClient))),e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(M,H,B),$},e.start=V,e.getCorrelationContext=function(){return j?r.CorrelationContextManager.getCurrentContext():null},e.startOperation=function(e,t){return r.CorrelationContextManager.startOperation(e,t)},e.wrapWithCorrelationContext=function(e,t){return r.CorrelationContextManager.wrapCallback(e,t)};var $=function(){function n(){}return n.setDistributedTracingMode=function(e){return p.w3cEnabled=e===t.AI_AND_W3C,n},n.setAutoCollectConsole=function(e,t){return void 0===t&&(t=!1),C=e,A=t,U&&m.enable(e,t),n},n.setAutoCollectExceptions=function(e){return I=e,U&&y.enable(e),n},n.setAutoCollectPerformance=function(e,t){void 0===t&&(t=!0),x=e;var r=h.AutoCollectNativePerformance.parseEnabled(t);return F=r.isEnabled,g=r.disabledMetrics,U&&(_.enable(e),S.enable(r.isEnabled,r.disabledMetrics)),n},n.setAutoCollectPreAggregatedMetrics=function(e){return R=e,U&&E.enable(e),n},n.setAutoCollectHeartbeat=function(t){return N=t,U&&b.enable(t,e.defaultClient.config),n},n.setAutoCollectRequests=function(e){return D=e,U&&T.enable(e),n},n.setAutoCollectDependencies=function(e){return k=e,U&&P.enable(e),n},n.setAutoDependencyCorrelation=function(e,t){return j=e,v=t,U&&T.useAutoCorrelation(e,t),n},n.setUseDiskRetryCaching=function(t,r,o){return M=t,H=r,B=o,e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(t,r,o),n},n.setInternalLogging=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!0),d.enableDebug=e,d.disableWarnings=!t,n},n.setSendLiveMetrics=function(t){return void 0===t&&(t=!1),e.defaultClient?(!e.liveMetricsClient&&t?(e.liveMetricsClient=new f(e.defaultClient.config,null),w=new a(e.liveMetricsClient,1e3,!0),e.liveMetricsClient.addCollector(w),e.defaultClient.quickPulseClient=e.liveMetricsClient):e.liveMetricsClient&&e.liveMetricsClient.enable(t),L=t,n):(d.warn("Live metrics client cannot be setup without the default client"),n)},n.start=V,n}();e.Configuration=$,e.dispose=function(){p.w3cEnabled=!0,e.defaultClient=null,U=!1,m&&m.dispose(),y&&y.dispose(),_&&_.dispose(),E&&E.dispose(),b&&b.dispose(),S&&S.dispose(),T&&T.dispose(),P&&P.dispose(),e.liveMetricsClient&&(e.liveMetricsClient.enable(!1),L=!1,e.liveMetricsClient=void 0)}})),ho={};((e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(ho,{default:()=>bo}),e.exports=(a=ho,b(c({},"__esModule",{value:!0}),a));var vo=S(n(857)),go=S(n(1398)),mo=S(n(5692)),yo=class{constructor(e){this.vscodeAPI=e}getTelemetryLevel(){try{let e=this.vscodeAPI.env.telemetryConfiguration;return e.isUsageEnabled&&e.isErrorsEnabled&&e.isCrashEnabled?"on":e.isErrorsEnabled&&e.isCrashEnabled?"error":"off"}catch{return void 0!==this.vscodeAPI.env.isTelemetryEnabled?this.vscodeAPI.env.isTelemetryEnabled?"on":"off":this.vscodeAPI.workspace.getConfiguration("telemetry").get("enableTelemetry")?"on":"off"}}static applyReplacements(e,t){for(let n of Object.keys(e))for(let r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===e[32]&&"-"===e[41]&&"-"===e[46]&&"-"===e[51]&&"-"===e[56]&&"-"===e[69]}static getInstance(e){return yo._instance||(yo._instance=new yo(e)),yo._instance}},_o=class{constructor(e,t,n,r,o,i){this.extensionId=e,this.extensionVersion=t,this.telemetryAppender=n,this.osShim=r,this.vscodeAPI=o,this.firstParty=!1,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this.firstParty=!!i,this.updateUserOptStatus(),void 0!==o.env.onDidChangeTelemetryEnabled?(this.disposables.push(o.env.onDidChangeTelemetryEnabled((()=>this.updateUserOptStatus()))),this.disposables.push(o.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))):this.disposables.push(o.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))}updateUserOptStatus(){let e=yo.getInstance(this.vscodeAPI).getTelemetryLevel();this.userOptIn="on"===e,this.errorOptIn="error"===e||this.userOptIn,(this.userOptIn||this.errorOptIn)&&this.telemetryAppender.instantiateAppender()}cleanRemoteName(e){if(!e)return"none";let t="other";return["ssh-remote","dev-container","attached-container","wsl","codespaces"].forEach((n=>{0===e.indexOf(`${n}`)&&(t=n)})),t}get extension(){return void 0===this._extension&&(this._extension=this.vscodeAPI.extensions.getExtension(this.extensionId)),this._extension}cloneAndChange(e,t){if(null===e||"object"!=typeof e||"function"!=typeof t)return e;let n={};for(let r in e)n[r]=t(r,e[r]);return n}shouldSendErrorTelemetry(){return!(!1===this.errorOptIn||this.firstParty&&this.vscodeAPI.env.remoteName&&"other"===this.cleanRemoteName(this.vscodeAPI.env.remoteName))}getCommonProperties(){let e={};if(e["common.os"]=this.osShim.platform,e["common.nodeArch"]=this.osShim.architecture,e["common.platformversion"]=(this.osShim.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),e["common.extname"]=this.extensionId,e["common.extversion"]=this.extensionVersion,this.vscodeAPI&&this.vscodeAPI.env){switch(e["common.vscodemachineid"]=this.vscodeAPI.env.machineId,e["common.vscodesessionid"]=this.vscodeAPI.env.sessionId,e["common.vscodeversion"]=this.vscodeAPI.version,e["common.isnewappinstall"]=this.vscodeAPI.env.isNewAppInstall?this.vscodeAPI.env.isNewAppInstall.toString():"false",e["common.product"]=this.vscodeAPI.env.appHost,this.vscodeAPI.env.uiKind){case this.vscodeAPI.UIKind.Web:e["common.uikind"]="web";break;case this.vscodeAPI.UIKind.Desktop:e["common.uikind"]="desktop";break;default:e["common.uikind"]="unknown"}e["common.remotename"]=this.cleanRemoteName(this.vscodeAPI.env.remoteName)}return e}anonymizeFilePaths(e,t){let n;if(null==e)return"";let r=[];""!==this.vscodeAPI.env.appRoot&&r.push(new RegExp(this.vscodeAPI.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")),this.extension&&r.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"));let o=e;if(t){let t=[];for(let o of r)for(;(n=o.exec(e))&&n;)t.push([n.index,o.lastIndex]);let i=/^[\\/]?(node_modules|node_modules\.asar)[\\/]/,a=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-._]+(\\\\|\\|\/))+[\w-._]*/g,s=0;for(o="";(n=a.exec(e))&&n;)n[0]&&!i.test(n[0])&&t.every((([e,t])=>n.index<e||n.index>=t))&&(o+=e.substring(s,n.index)+"<REDACTED: user-file-path>",s=a.lastIndex);s<e.length&&(o+=e.substr(s))}for(let e of r)o=o.replace(e,"");return o}removePropertiesWithPossibleUserInfo(e){if("object"!=typeof e)return;let t={};for(let n of Object.keys(e)){let r=e[n];if(!r)continue;let o=/@[a-zA-Z0-9-.]+/,i=/xox[pbaors]-[a-zA-Z0-9]+-[a-zA-Z0-9-]+?/;/(key|token|sig|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/.test(r.toLowerCase())?t[n]="<REDACTED: secret>":o.test(r)?t[n]="<REDACTED: email>":i.test(r)?t[n]="<REDACTED: token>":t[n]=r}return t}get telemetryLevel(){switch(yo.getInstance(this.vscodeAPI).getTelemetryLevel()){case"on":return"all";case"error":return"error";case"off":return"off"}}internalSendTelemetryEvent(e,t,n,r,o){if((this.userOptIn||o)&&""!==e){if(t=y(y({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!0,!1)}sendRawTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1,!1)}sendDangerousTelemetryEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryEvent(e,t,n,r,!0)}internalSendTelemetryErrorEvent(e,t,n,r,o){if((this.shouldSendErrorTelemetry()||o)&&""!==e){if(t=y(y({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!0,!1)}sendDangerousTelemetryErrorEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryErrorEvent(e,t,n,r,!0)}internalSendTelemetryException(e,t,n,r,o){if((this.shouldSendErrorTelemetry()||o)&&e){if(t=y(y({},t),this.getCommonProperties()),r){let n=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));e.stack&&(e.stack=this.anonymizeFilePaths(e.stack,this.firstParty)),t=this.removePropertiesWithPossibleUserInfo(n)}t=t??{},n=n??{},this.telemetryAppender.logException(e,{properties:t,measurements:n})}}sendTelemetryException(e,t,n){this.internalSendTelemetryException(e,t,n,!0,!1)}sendDangerousTelemetryException(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryException(e,t,n,r,!0)}dispose(){return this.telemetryAppender.flush(),Promise.all(this.disposables.map((e=>e.dispose())))}},Eo=class{constructor(e,t){this._instantiationStatus=0,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}logEvent(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):2!==this._instantiationStatus&&this._eventQueue.push({eventName:e,data:t})}logException(e,t){this._telemetryClient?this._telemetryClient.logException(e,t):2!==this._instantiationStatus&&this._exceptionQueue.push({exception:e,data:t})}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.logEvent(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.logException(e,t))),this._exceptionQueue=[]}instantiateAppender(){0===this._instantiationStatus&&(this._instantiationStatus=1,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=2,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=2})))}},bo=class extends _o{constructor(e,t,n,r,o){let i=e=>(async(e,t)=>{let n;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";let t=await Promise.resolve().then((()=>S(fo())));t.defaultClient?(n=new t.TelemetryClient(e),n.channel.setUseDiskRetryCaching(!0)):(t.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setUseDiskRetryCaching(!0).start(),n=t.defaultClient),go&&go.env&&(n.context.tags[n.context.keys.userId]=go.env.machineId,n.context.tags[n.context.keys.sessionId]=go.env.sessionId,n.context.tags[n.context.keys.cloudRole]=go.env.appName,n.context.tags[n.context.keys.cloudRoleInstance]=go.env.appName),e&&0===e.indexOf("AIF-")&&(n.config.endpointUrl="https://mobile.events.data.microsoft.com/collect/v1")}catch(e){return Promise.reject("Failed to initialize app insights!\n"+e.message)}return null!=t&&t.length&&function(e,t){e.addTelemetryProcessor((e=>(Array.isArray(e.tags)?e.tags.forEach((e=>yo.applyReplacements(e,t))):e.tags&&yo.applyReplacements(e.tags,t),e.data.baseData&&yo.applyReplacements(e.data.baseData,t),!0)))}(n,t),{logEvent:(e,t)=>{try{null==n||n.trackEvent({name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{try{null==n||n.trackException({exception:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log exception to app insights!\n"+e.message)}},flush:async()=>{try{null==n||n.flush()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,o);yo.shouldUseOneDataSystemSDK(n)&&(i=e=>(async(e,t,n)=>{let r=await(async(e,t,n)=>{let r=await Promise.resolve().then((()=>S(C()))),o=await Promise.resolve().then((()=>S(I()))),i=new r.AppInsightsCore,a=new o.PostChannel,s={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(n){s.extensionConfig={};let e={alwaysUseXhrOverride:!0,httpXHROverride:n};s.extensionConfig[a.identifier]=e}let c=t.workspace.getConfiguration("telemetry").get("internalTesting");return i.initialize(s,[]),i.addTelemetryInitializer((e=>{!c||(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),i})(e,t,n);return{logEvent:(e,t)=>{try{null==r||r.track({name:e,baseData:{name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{throw new Error("1DS SDK does not support logging exceptions, please use logEvent for exception tracking")},flush:async()=>{try{null==r||r.unload()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,go,{sendPOST:(e,t)=>{let n={method:"POST",headers:_(y({},e.headers),{"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)})};try{let r=mo.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));r.write(e.data),r.end()}catch{t(0,{})}}}));let a=new Eo(n,i);n&&(0===n.indexOf("AIF-")||yo.shouldUseOneDataSystemSDK(n))&&(r=!0),super(e,t,a,{release:vo.release(),platform:vo.platform(),architecture:vo.arch()},go,r)}}},889:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=889,e.exports=t},8371:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8371,e.exports=t},4537:(e,t,n)=>{"use strict";const r=n(3720),o=n(8712),i=n(8697),a=n(2598),s=(e,t={})=>{let n=[];if(Array.isArray(e))for(const r of e){const e=s.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(s.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};s.parse=(e,t={})=>a(e,t),s.stringify=(e,t={})=>r("string"==typeof e?s.parse(e,t):e,t),s.compile=(e,t={})=>("string"==typeof e&&(e=s.parse(e,t)),o(e,t)),s.expand=(e,t={})=>{"string"==typeof e&&(e=s.parse(e,t));let n=i(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},s.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?s.compile(e,t):s.expand(e,t),e.exports=s},8712:(e,t,n)=>{"use strict";const r=n(7028),o=n(7612);e.exports=(e,t={})=>{const n=(e,i={})=>{const a=o.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,c=!0===a||!0===s,u=!0===t.escapeInvalid?"\\":"";let l="";if(!0===e.isOpen)return u+e.value;if(!0===e.isClose)return console.log("node.isClose",u,e.value),u+e.value;if("open"===e.type)return c?u+e.value:"(";if("close"===e.type)return c?u+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":c?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const n=o.reduce(e.nodes),i=r(...n,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(e.nodes)for(const t of e.nodes)l+=n(t,e);return l};return n(e)}},8776:e=>{"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},8697:(e,t,n)=>{"use strict";const r=n(7028),o=n(3720),i=n(7612),a=(e="",t="",n=!1)=>{const r=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?i.flatten(t).map((e=>`{${e}}`)):t;for(const o of e)if(Array.isArray(o))for(const e of o)r.push(a(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),r.push(Array.isArray(e)?a(o,e,n):o+e);return i.flatten(r)};e.exports=(e,t={})=>{const n=void 0===t.rangeLimit?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let u=c,l=c.queue;for(;"brace"!==u.type&&"root"!==u.type&&u.parent;)u=u.parent,l=u.queue;if(e.invalid||e.dollar)return void l.push(a(l.pop(),o(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void l.push(a(l.pop(),["{}"]));if(e.nodes&&e.ranges>0){const s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=r(...s,t);return 0===c.length&&(c=o(e,t)),l.push(a(l.pop(),c)),void(e.nodes=[])}const p=i.encloseBrace(e);let d=e.queue,f=e;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)f=f.parent,d=f.queue;for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?d.push(a(d.pop(),n.value)):n.nodes&&s(n,e):l.push(a(l.pop(),d,p)):(1===t&&d.push(""),d.push(""))}return d};return i.flatten(s(e))}},2598:(e,t,n)=>{"use strict";const r=n(3720),{MAX_LENGTH:o,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:s,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=n(8776);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const n=t||{},_="number"==typeof n.maxLength?Math.min(o,n.maxLength):o;if(e.length>_)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${_})`);const E={type:"root",input:e,nodes:[]},b=[E];let S=E,T=E,P=0;const w=e.length;let C,A=0,I=0;const O=()=>e[A++],x=e=>{if("text"===e.type&&"dot"===T.type&&(T.type="text"),!T||"text"!==T.type||"text"!==e.type)return S.nodes.push(e),e.parent=S,e.prev=T,T=e,e;T.value+=e.value};for(x({type:"bos"});A<w;)if(S=b[b.length-1],C=O(),C!==y&&C!==m)if(C!==i)if(C!==h)if(C!==f)if(C!==u)if(C!==l)if(C!==v&&C!==g&&C!==a)if(C!==p)if(C!==d)if(C===s&&I>0){if(S.ranges>0){S.ranges=0;const e=S.nodes.shift();S.nodes=[e,{type:"text",value:r(S)}]}x({type:"comma",value:C}),S.commas++}else if(C===c&&I>0&&0===S.commas){const e=S.nodes;if(0===I||0===e.length){x({type:"text",value:C});continue}if("dot"===T.type){if(S.range=[],T.value+=C,T.type="range",3!==S.nodes.length&&5!==S.nodes.length){S.invalid=!0,S.ranges=0,T.type="text";continue}S.ranges++,S.args=[];continue}if("range"===T.type){e.pop();const t=e[e.length-1];t.value+=T.value+C,T=t,S.ranges--;continue}x({type:"dot",value:C})}else x({type:"text",value:C});else{if("brace"!==S.type){x({type:"text",value:C});continue}const e="close";S=b.pop(),S.close=!0,x({type:e,value:C}),I--,S=b[b.length-1]}else{I++;const e=T.value&&"$"===T.value.slice(-1)||!0===S.dollar;S=x({type:"brace",open:!0,close:!1,dollar:e,depth:I,commas:0,ranges:0,nodes:[]}),b.push(S),x({type:"open",value:C})}else{const e=C;let n;for(!0!==t.keepQuotes&&(C="");A<w&&(n=O());)if(n!==i){if(n===e){!0===t.keepQuotes&&(C+=n);break}C+=n}else C+=n+O();x({type:"text",value:C})}else{if("paren"!==S.type){x({type:"text",value:C});continue}S=b.pop(),x({type:"text",value:C}),S=b[b.length-1]}else S=x({type:"paren",nodes:[]}),b.push(S),x({type:"text",value:C});else{let e;for(P++;A<w&&(e=O());)if(C+=e,e!==f)if(e!==i){if(e===h&&(P--,0===P))break}else C+=O();else P++;x({type:"text",value:C})}else x({type:"text",value:"\\"+C});else x({type:"text",value:(t.keepEscaping?C:"")+O()});do{if(S=b.pop(),"root"!==S.type){S.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));const e=b[b.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}}while(b.length>0);return x({type:"eos"}),E}},3720:(e,t,n)=>{"use strict";const r=n(7612);e.exports=(e,t={})=>{const n=(e,o={})=>{const i=t.escapeInvalid&&r.isInvalidBrace(o),a=!0===e.invalid&&!0===t.escapeInvalid;let s="";if(e.value)return(i||a)&&r.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(const t of e.nodes)s+=n(t);return s};return n(e)}},7612:(e,t)=>{"use strict";t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,n,r=1,o)=>!1!==o&&!(!t.isInteger(e)||!t.isInteger(n))&&(Number(n)-Number(e))/Number(r)>=o,t.escapeNode=(e,t=0,n)=>{const r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},t.encloseBrace=e=>!("brace"!==e.type||e.commas>>0+e.ranges||(e.invalid=!0,0)),t.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],n=e=>{for(let r=0;r<e.length;r++){const o=e[r];Array.isArray(o)?n(o):void 0!==o&&t.push(o)}return t};return n(e),t}},4447:(e,t,n)=>{"use strict";const r=n(9806),o=n(1814),i=n(7e3),a=n(2947),s=n(8509),c=n(7705);async function u(e,t){p(e);const n=l(e,o.default,t),r=await Promise.all(n);return c.array.flatten(r)}function l(e,t,n){const o=[].concat(e),i=new s.default(n),a=r.generate(o,i),c=new t(i);return a.map(c.read,c)}function p(e){if(![].concat(e).every((e=>c.string.isString(e)&&!c.string.isEmpty(e))))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}!function(e){function t(e,t){p(e);const n=l(e,a.default,t);return c.array.flatten(n)}function n(e,t){p(e);const n=l(e,i.default,t);return c.stream.merge(n)}let o,u;e.glob=e,e.globSync=t,e.globStream=n,e.async=e,e.sync=t,e.stream=n,e.generateTasks=function(e,t){p(e);const n=[].concat(e),o=new s.default(t);return r.generate(n,o)},e.isDynamicPattern=function(e,t){p(e);const n=new s.default(t);return c.pattern.isDynamicPattern(e,n)},e.escapePath=function(e){return p(e),c.path.escape(e)},e.convertPathToPattern=function(e){return p(e),c.path.convertPathToPattern(e)},function(e){e.escapePath=function(e){return p(e),c.path.escapePosixPath(e)},e.convertPathToPattern=function(e){return p(e),c.path.convertPosixPathToPattern(e)}}(o=e.posix||(e.posix={})),function(e){e.escapePath=function(e){return p(e),c.path.escapeWindowsPath(e)},e.convertPathToPattern=function(e){return p(e),c.path.convertWindowsPathToPattern(e)}}(u=e.win32||(e.win32={}))}(u||(u={})),e.exports=u},9806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const r=n(7705);function o(e,t){let n=e;return t.braceExpansion&&(n=r.pattern.expandPatternsWithBraceExpansion(n)),t.baseNameMatch&&(n=n.map((e=>e.includes("/")?e:`**/${e}`))),n.map((e=>r.pattern.removeDuplicateSlashes(e)))}function i(e,t,n){const o=[],i=r.pattern.getPatternsOutsideCurrentDirectory(e),a=r.pattern.getPatternsInsideCurrentDirectory(e),s=c(i),p=c(a);return o.push(...u(s,t,n)),"."in p?o.push(l(".",a,t,n)):o.push(...u(p,t,n)),o}function a(e){return r.pattern.getPositivePatterns(e)}function s(e,t){return r.pattern.getNegativePatterns(e).concat(t).map(r.pattern.convertToPositivePattern)}function c(e){return e.reduce(((e,t)=>{const n=r.pattern.getBaseDirectory(t);return n in e?e[n].push(t):e[n]=[t],e}),{})}function u(e,t,n){return Object.keys(e).map((r=>l(r,e[r],t,n)))}function l(e,t,n,o){return{dynamic:o,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(r.pattern.convertToNegativePattern))}}t.generate=function(e,t){const n=o(e,t),c=o(t.ignore,t),u=a(n),l=s(n,c),p=u.filter((e=>r.pattern.isStaticPattern(e,t))),d=u.filter((e=>r.pattern.isDynamicPattern(e,t))),f=i(p,l,!1),h=i(d,l,!0);return f.concat(h)},t.convertPatternsToTasks=i,t.getPositivePatterns=a,t.getNegativePatternsAsPositive=s,t.groupPatternsByBaseDirectory=c,t.convertPatternGroupsToTasks=u,t.convertPatternGroupToTask=l},1814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3936),o=n(6101);class i extends o.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map((e=>n.transform(e)))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}t.default=i},602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7705),o=n(7669);t.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){const r=this._getMatcher(t),o=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,o)}_getMatcher(e){return new o.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,n,o){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;const i=r.path.removeLeadingDotSegment(t.path);return!this._isSkippedByPositivePatterns(i,n)&&this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const n=t.split("/").length;return""===e?n:n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!r.pattern.matchAny(e,t)}}},2042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7705);t.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){const n=r.pattern.convertPatternsToRe(e,this._micromatchOptions),o=r.pattern.convertPatternsToRe(t,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return e=>this._filter(e,n,o)}_filter(e,t,n){const o=r.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(o))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;if(this._isSkippedByAbsoluteNegativePatterns(o,n))return!1;const i=e.dirent.isDirectory(),a=this._isMatchToPatterns(o,t,i)&&!this._isMatchToPatterns(o,n,i);return this._settings.unique&&a&&this._createIndexRecord(o),a}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return!1;const n=r.path.makeAbsolute(this._settings.cwd,e);return r.pattern.matchAny(n,t)}_isMatchToPatterns(e,t,n){const o=r.pattern.matchAny(e,t);return!o&&n?r.pattern.matchAny(e+"/",t):o}}},4284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7705);t.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return r.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}},330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7705);t.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(e){return r.pattern.getPatternParts(e,this._micromatchOptions).map((e=>r.pattern.isDynamicPattern(e,this._settings)?{dynamic:!0,pattern:e,patternRe:r.pattern.makeRe(e,this._micromatchOptions)}:{dynamic:!1,pattern:e}))}_splitSegmentsIntoSections(e){return r.array.splitWhen(e,(e=>e.dynamic&&r.pattern.hasGlobStar(e.pattern)))}}},7669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(330);class o extends r.default{match(e){const t=e.split("/"),n=t.length,r=this._storage.filter((e=>!e.complete||e.segments.length>n));for(const e of r){const r=e.sections[0];if(!e.complete&&n>r.length)return!0;if(t.every(((t,n)=>{const r=e.segments[n];return!(!r.dynamic||!r.patternRe.test(t))||!r.dynamic&&r.pattern===t})))return!0}return!1}}t.default=o},6101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6928),o=n(602),i=n(2042),a=n(4284),s=n(7403);t.default=class{constructor(e){this._settings=e,this.errorFilter=new a.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new o.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(e){return r.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}},7e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2203),o=n(890),i=n(6101);class a extends i.default{constructor(){super(...arguments),this._reader=new o.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e),o=this.api(t,e,n),i=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",(e=>i.emit("error",e))).on("data",(e=>i.emit("data",n.transform(e)))).once("end",(()=>i.emit("end"))),i.once("close",(()=>o.destroy())),i}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}t.default=a},2947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8497),o=n(6101);class i extends o.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}t.default=i},7403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7705);t.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;return this._settings.absolute&&(t=r.path.makeAbsolute(this._settings.cwd,t),t=r.path.unixify(t)),this._settings.markDirectories&&e.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:t}):t}}},3936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(764),o=n(149),i=n(890);class a extends o.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new i.default(this._settings)}dynamic(e,t){return new Promise(((n,r)=>{this._walkAsync(e,t,((e,t)=>{null===e?n(t):r(e)}))}))}async static(e,t){const n=[],r=this._readerStream.static(e,t);return new Promise(((e,t)=>{r.once("error",t),r.on("data",(e=>n.push(e))),r.once("end",(()=>e(n)))}))}}t.default=a},149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6928),o=n(8631),i=n(7705);t.default=class{constructor(e){this._settings=e,this._fsStatSettings=new o.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return r.resolve(this._settings.cwd,e)}_makeEntry(e,t){const n={name:t,path:t,dirent:i.fs.createDirentFromStats(t,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!i.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}},890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2203),o=n(8631),i=n(764),a=n(149);class s extends a.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=o.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const n=e.map(this._getFullEntryPath,this),o=new r.PassThrough({objectMode:!0});o._write=(r,i,a)=>this._getEntry(n[r],e[r],t).then((e=>{null!==e&&t.entryFilter(e)&&o.push(e),r===n.length-1&&o.end(),a()})).catch(a);for(let e=0;e<n.length;e++)o.write(e);return o}_getEntry(e,t,n){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(n.errorFilter(e))return null;throw e}))}_getStat(e){return new Promise(((t,n)=>{this._stat(e,this._fsStatSettings,((e,r)=>null===e?t(r):n(e)))}))}}t.default=s},8497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8631),o=n(764),i=n(149);class a extends i.default{constructor(){super(...arguments),this._walkSync=o.walkSync,this._statSync=r.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const n=[];for(const r of e){const e=this._getFullEntryPath(r),o=this._getEntry(e,r,t);null!==o&&t.entryFilter(o)&&n.push(o)}return n}_getEntry(e,t,n){try{const n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t.default=a},8509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const r=n(9896),o=n(857),i=Math.max(o.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync},t.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}},4392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0,t.flatten=function(e){return e.reduce(((e,t)=>[].concat(e,t)),[])},t.splitWhen=function(e,t){const n=[[]];let r=0;for(const o of e)t(o)?(r++,n[r]=[]):n[r].push(o);return n}},2741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0,t.isEnoentCodeError=function(e){return"ENOENT"===e.code}},2014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;class n{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}t.createDirentFromStats=function(e,t){return new n(e,t)}},7705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const r=n(4392);t.array=r;const o=n(2741);t.errno=o;const i=n(2014);t.fs=i;const a=n(4522);t.path=a;const s=n(9287);t.pattern=s;const c=n(9997);t.stream=c;const u=n(4848);t.string=u},4522:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertPosixPathToPattern=t.convertWindowsPathToPattern=t.convertPathToPattern=t.escapePosixPath=t.escapeWindowsPath=t.escape=t.removeLeadingDotSegment=t.makeAbsolute=t.unixify=void 0;const r=n(857),o=n(6928),i="win32"===r.platform(),a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,s=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,c=/^\\\\([.?])/,u=/\\(?![!()+@[\]{}])/g;function l(e){return e.replace(s,"\\$2")}function p(e){return e.replace(a,"\\$2")}function d(e){return l(e).replace(c,"//$1").replace(u,"/")}function f(e){return p(e)}t.unixify=function(e){return e.replace(/\\/g,"/")},t.makeAbsolute=function(e,t){return o.resolve(e,t)},t.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){const t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(2)}return e},t.escape=i?l:p,t.escapeWindowsPath=l,t.escapePosixPath=p,t.convertPathToPattern=i?d:f,t.convertWindowsPathToPattern=d,t.convertPosixPathToPattern=f},9287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const r=n(6928),o=n(5014),i=n(628),a="\\",s=/[*?]|^!/,c=/\[[^[]*]/,u=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,p=/,|\.\./,d=/(?!^)\/{2,}/g;function f(e,t={}){return!h(e,t)}function h(e,t={}){return!!(""!==e&&(!1===t.caseSensitiveMatch||e.includes(a)||s.test(e)||c.test(e)||u.test(e)||!1!==t.extglob&&l.test(e)||!1!==t.braceExpansion&&function(e){const t=e.indexOf("{");if(-1===t)return!1;const n=e.indexOf("}",t+1);if(-1===n)return!1;const r=e.slice(t,n);return p.test(r)}(e)))}function v(e){return e.startsWith("!")&&"("!==e[1]}function g(e){return!v(e)}function m(e){return e.startsWith("..")||e.startsWith("./..")}function y(e){return e.endsWith("/**")}function _(e){const t=i.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort(((e,t)=>e.length-t.length)),t.filter((e=>""!==e))}function E(e,t){return i.makeRe(e,t)}t.isStaticPattern=f,t.isDynamicPattern=h,t.convertToPositivePattern=function(e){return v(e)?e.slice(1):e},t.convertToNegativePattern=function(e){return"!"+e},t.isNegativePattern=v,t.isPositivePattern=g,t.getNegativePatterns=function(e){return e.filter(v)},t.getPositivePatterns=function(e){return e.filter(g)},t.getPatternsInsideCurrentDirectory=function(e){return e.filter((e=>!m(e)))},t.getPatternsOutsideCurrentDirectory=function(e){return e.filter(m)},t.isPatternRelatedToParentDirectory=m,t.getBaseDirectory=function(e){return o(e,{flipBackslashes:!1})},t.hasGlobStar=function(e){return e.includes("**")},t.endsWithSlashGlobStar=y,t.isAffectDepthOfReadingPattern=function(e){const t=r.basename(e);return y(e)||f(t)},t.expandPatternsWithBraceExpansion=function(e){return e.reduce(((e,t)=>e.concat(_(t))),[])},t.expandBraceExpansion=_,t.getPatternParts=function(e,t){let{parts:n}=i.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return 0===n.length&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n},t.makeRe=E,t.convertPatternsToRe=function(e,t){return e.map((e=>E(e,t)))},t.matchAny=function(e,t){return t.some((t=>t.test(e)))},t.removeDuplicateSlashes=function(e){return e.replace(d,"/")}},9997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;const r=n(4971);function o(e){e.forEach((e=>e.emit("close")))}t.merge=function(e){const t=r(e);return e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))})),t.once("close",(()=>o(e))),t.once("end",(()=>o(e))),t}},4848:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0,t.isString=function(e){return"string"==typeof e},t.isEmpty=function(e){return""===e}},6697:(e,t,n)=>{"use strict";var r=n(9027);function o(e,t,n){if("function"==typeof e&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var o=r(a),s=null,c=null,u=0,l=null,p={push:function(n,r){var a=o.get();a.context=e,a.release=d,a.value=n,a.callback=r||i,a.errorHandler=l,u===p.concurrency||p.paused?c?(c.next=a,c=a):(s=a,c=a,p.saturated()):(u++,t.call(e,a.value,a.worked))},drain:i,saturated:i,pause:function(){p.paused=!0},paused:!1,concurrency:n,running:function(){return u},resume:function(){if(p.paused){p.paused=!1;for(var e=0;e<p.concurrency;e++)u++,d()}},idle:function(){return 0===u&&0===p.length()},length:function(){for(var e=s,t=0;e;)e=e.next,t++;return t},getQueue:function(){for(var e=s,t=[];e;)t.push(e.value),e=e.next;return t},unshift:function(n,r){var a=o.get();a.context=e,a.release=d,a.value=n,a.callback=r||i,u===p.concurrency||p.paused?s?(a.next=s,s=a):(s=a,c=a,p.saturated()):(u++,t.call(e,a.value,a.worked))},empty:i,kill:function(){s=null,c=null,p.drain=i},killAndDrain:function(){s=null,c=null,p.drain(),p.drain=i},error:function(e){l=e}};return p;function d(n){n&&o.release(n);var r=s;r?p.paused?u--:(c===s&&(c=null),s=r.next,r.next=null,t.call(e,r.value,r.worked),null===c&&p.empty()):0==--u&&p.drain()}}function i(){}function a(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var r=e.callback,o=e.errorHandler,a=e.value;e.value=null,e.callback=i,e.errorHandler&&o(t,a),r.call(e.context,t,n),e.release(e)}}e.exports=o,e.exports.promise=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null);var r=o(e,(function(e,n){t.call(this,e).then((function(e){n(null,e)}),n)}),n),a=r.push,s=r.unshift;return r.push=function(e){var t=new Promise((function(t,n){a(e,(function(e,r){e?n(e):t(r)}))}));return t.catch(i),t},r.unshift=function(e){var t=new Promise((function(t,n){s(e,(function(e,r){e?n(e):t(r)}))}));return t.catch(i),t},r.drained=function(){if(r.idle())return new Promise((function(e){e()}));var e=r.drain;return new Promise((function(t){r.drain=function(){e(),t()}}))},r}},7028:(e,t,n)=>{"use strict";const r=n(9023),o=n(54),i=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),a=e=>"number"==typeof e||"string"==typeof e&&""!==e,s=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},u=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},l=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},p=(e,t,n,r)=>{if(n)return o(e,t,{wrap:!1,...r});let i=String.fromCharCode(e);return e===t?i:`[${i}-${String.fromCharCode(t)}]`},d=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return o(e,t,n)},f=(...e)=>new RangeError("Invalid range arguments: "+r.inspect(...e)),h=(e,t,n)=>{if(!0===n.strictRanges)throw f([e,t]);return[]},v=(e,t,n,r={})=>{if(null==t&&a(e))return[e];if(!a(e)||!a(t))return h(e,t,r);if("function"==typeof n)return v(e,t,1,{transform:n});if(i(n))return v(e,t,0,n);let o={...r};return!0===o.capture&&(o.wrap=!0),n=n||o.step||1,s(n)?s(e)&&s(t)?((e,t,n=1,r={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(!0===r.strictRanges)throw f([e,t]);return[]}0===o&&(o=0),0===i&&(i=0);let a=o>i,s=String(e),h=String(t),v=String(n);n=Math.max(Math.abs(n),1);let g=c(s)||c(h)||c(v),m=g?Math.max(s.length,h.length,v.length):0,y=!1===g&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,r),_=r.transform||(e=>t=>!0===e?Number(t):String(t))(y);if(r.toRegex&&1===n)return p(l(e,m),l(t,m),!0,r);let E={negatives:[],positives:[]},b=[],S=0;for(;a?o>=i:o<=i;)!0===r.toRegex&&n>1?E[(T=o)<0?"negatives":"positives"].push(Math.abs(T)):b.push(u(_(o,S),m,y)),o=a?o-n:o+n,S++;var T;return!0===r.toRegex?n>1?((e,t,n)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let r,o=t.capture?"":"?:",i="",a="";return e.positives.length&&(i=e.positives.map((e=>l(String(e),n))).join("|")),e.negatives.length&&(a=`-(${o}${e.negatives.map((e=>l(String(e),n))).join("|")})`),r=i&&a?`${i}|${a}`:i||a,t.wrap?`(${o}${r})`:r})(E,r,m):d(b,null,{wrap:!1,...r}):b})(e,t,n,o):((e,t,n=1,r={})=>{if(!s(e)&&e.length>1||!s(t)&&t.length>1)return h(e,t,r);let o=r.transform||(e=>String.fromCharCode(e)),i=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),c=i>a,u=Math.min(i,a),l=Math.max(i,a);if(r.toRegex&&1===n)return p(u,l,!1,r);let f=[],v=0;for(;c?i>=a:i<=a;)f.push(o(i,v)),i=c?i-n:i+n,v++;return!0===r.toRegex?d(f,null,{wrap:!1,options:r}):f})(e,t,Math.max(Math.abs(n),1),o):null==n||i(n)?v(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,o)};e.exports=v},5014:(e,t,n)=>{"use strict";var r=n(2382),o=n(6928).posix.dirname,i="win32"===n(857).platform(),a=/\\/g,s=/[\{\[].*[\}\]]$/,c=/(^|[^\\])([\{\[]|\([^\)]+$)/,u=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&i&&e.indexOf("/")<0&&(e=e.replace(a,"/")),s.test(e)&&(e+="/"),e+="a";do{e=o(e)}while(r(e)||c.test(e));return e.replace(u,"$1")}},1341:e=>{e.exports=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},2382:(e,t,n)=>{var r=n(1341),o={"{":"}","(":")","[":"]"},i=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,r=-2,i=-2,a=-2,s=-2;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==r&&"["===e[t]&&"]"!==e[t+1]&&(r<t&&(r=e.indexOf("]",t)),r>t)){if(-1===s||s>r)return!0;if(-1===(s=e.indexOf("\\",t))||s>r)return!0}if(-1!==i&&"{"===e[t]&&"}"!==e[t+1]&&(i=e.indexOf("}",t))>t&&(-1===(s=e.indexOf("\\",t))||s>i))return!0;if(-1!==a&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(a=e.indexOf(")",t))>t&&(-1===(s=e.indexOf("\\",t))||s>a))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(a=e.indexOf(")",n))>n&&(-1===(s=e.indexOf("\\",n))||s>a)))return!0;if("\\"===e[t]){var c=e[t+1];t+=2;var u=o[c];if(u){var l=e.indexOf(u,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},a=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var n=e[t+1];t+=2;var r=o[n];if(r){var i=e.indexOf(r,t);-1!==i&&(t=i+1)}if("!"===e[t])return!0}else t++}return!1};e.exports=function(e,t){if("string"!=typeof e||""===e)return!1;if(r(e))return!0;var n=i;return t&&!1===t.strict&&(n=a),n(e)}},1929:e=>{"use strict";e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},4971:(e,t,n)=>{"use strict";const r=n(2203).PassThrough,o=Array.prototype.slice;function i(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=i(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(r(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}e.exports=function(){const e=[],t=o.call(arguments);let n=!1,a=t[t.length-1];a&&!Array.isArray(a)&&null==a.pipe?t.pop():a={};const s=!1!==a.end,c=!0===a.pipeError;null==a.objectMode&&(a.objectMode=!0),null==a.highWaterMark&&(a.highWaterMark=65536);const u=r(a);function l(){for(let t=0,n=arguments.length;t<n;t++)e.push(i(arguments[t],a));return p(),this}function p(){if(n)return;n=!0;let t=e.shift();if(!t)return void process.nextTick(d);Array.isArray(t)||(t=[t]);let r=t.length+1;function o(){--r>0||(n=!1,p())}function i(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),c&&e.removeListener("error",n),o()}function n(e){u.emit("error",e)}if(e._readableState.endEmitted)return o();e.on("merge2UnpipeEnd",t),e.on("end",t),c&&e.on("error",n),e.pipe(u,{end:!1}),e.resume()}for(let e=0;e<t.length;e++)i(t[e]);o()}function d(){n=!1,u.emit("queueDrain"),s&&u.end()}return u.setMaxListeners(0),u.add=l,u.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")})),t.length&&l.apply(null,t),u}},628:(e,t,n)=>{"use strict";const r=n(9023),o=n(4537),i=n(5157),a=n(280),s=e=>""===e||"./"===e,c=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,o=new Set,a=new Set,s=0,c=e=>{a.add(e.output),n&&n.onResult&&n.onResult(e)};for(let a=0;a<t.length;a++){let u=i(String(t[a]),{...n,onResult:c},!0),l=u.state.negated||u.state.negatedExtglob;l&&s++;for(let t of e){let e=u(t,!0);(l?!e.isMatch:e.isMatch)&&(l?r.add(e.output):(r.delete(e.output),o.add(e.output)))}}let u=(s===t.length?[...a]:[...o]).filter((e=>!r.has(e)));if(n&&0===u.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return u};c.match=c,c.matcher=(e,t)=>i(e,t),c.any=c.isMatch=(e,t,n)=>i(t,n)(e),c.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,o=[],i=new Set(c(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),o.push(e.output)}}));for(let e of o)i.has(e)||r.add(e);return[...r]},c.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${r.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>c.contains(e,t,n)));if("string"==typeof t){if(s(e)||s(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...n,contains:!0})},c.matchKeys=(e,t,n)=>{if(!a.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=c(Object.keys(e),t,n),o={};for(let t of r)o[t]=e[t];return o},c.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),n);if(r.some((e=>t(e))))return!0}return!1},c.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),n);if(!r.every((e=>t(e))))return!1}return!0},c.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${r.inspect(e)}"`);return[].concat(t).every((t=>i(t,n)(e)))},c.capture=(e,t,n)=>{let r=a.isWindows(n),o=i.makeRe(String(e),{...n,capture:!0}).exec(r?a.toPosixSlashes(t):t);if(o)return o.slice(1).map((e=>void 0===e?"":e))},c.makeRe=(...e)=>i.makeRe(...e),c.scan=(...e)=>i.scan(...e),c.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of o(String(r),t))n.push(i.parse(e,t));return n},c.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:o(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},e.exports=c},5157:(e,t,n)=>{"use strict";e.exports=n(6675)},3940:(e,t,n)=>{"use strict";const r=n(6928),o="\\\\/",i=`[^${o}]`,a="\\.",s="\\/",c="[^/]",u=`(?:${s}|$)`,l=`(?:^|${s})`,p=`${a}{1,2}${u}`,d={DOT_LITERAL:a,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:c,END_ANCHOR:u,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${l}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${u})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${c}*?`,START_ANCHOR:l},f={...d,SLASH_LITERAL:`[${o}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${a}{1,2}(?:[${o}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${o}])${a}{1,2}(?:[${o}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${o}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${o}]|$))`,QMARK_NO_DOT:`[^.${o}]`,START_ANCHOR:`(?:^|[${o}])`,END_ANCHOR:`(?:[${o}]|$)`};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?f:d}},1154:(e,t,n)=>{"use strict";const r=n(3940),o=n(280),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=r,l=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>o.escapeRegex(e))).join("..")}return n},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=u[e]||e;const n={...t},f="number"==typeof n.maxLength?Math.min(i,n.maxLength):i;let h=e.length;if(h>f)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${f}`);const v={type:"bos",value:"",output:n.prepend||""},g=[v],m=n.capture?"":"?:",y=o.isWindows(t),_=r.globChars(y),E=r.extglobChars(_),{DOT_LITERAL:b,PLUS_LITERAL:S,SLASH_LITERAL:T,ONE_CHAR:P,DOTS_SLASH:w,NO_DOT:C,NO_DOT_SLASH:A,NO_DOTS_SLASH:I,QMARK:O,QMARK_NO_DOT:x,STAR:R,START_ANCHOR:N}=_,D=e=>`(${m}(?:(?!${N}${e.dot?w:b}).)*?)`,k=n.dot?"":C,M=n.dot?O:x;let j=!0===n.bash?D(n):R;n.capture&&(j=`(${j})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const L={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=o.removePrefix(e,L),h=e.length;const F=[],H=[],B=[];let U,V=v;const $=()=>L.index===h-1,G=L.peek=(t=1)=>e[L.index+t],q=L.advance=()=>e[++L.index]||"",z=()=>e.slice(L.index+1),W=(e="",t=0)=>{L.consumed+=e,L.index+=t},K=e=>{L.output+=null!=e.output?e.output:e.value,W(e.value)},X=()=>{let e=1;for(;"!"===G()&&("("!==G(2)||"?"===G(3));)q(),L.start++,e++;return e%2!=0&&(L.negated=!0,L.start++,!0)},Q=e=>{L[e]++,B.push(e)},Y=e=>{L[e]--,B.pop()},J=e=>{if("globstar"===V.type){const t=L.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||F.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(L.output=L.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=j,L.output+=V.output)}if(F.length&&"paren"!==e.type&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&K(e),V&&"text"===V.type&&"text"===e.type)return V.value+=e.value,void(V.output=(V.output||"")+e.value);e.prev=V,g.push(e),V=e},Z=(e,t)=>{const r={...E[t],conditions:1,inner:""};r.prev=V,r.parens=L.parens,r.output=L.output;const o=(n.capture?"(":"")+r.open;Q("parens"),J({type:e,value:t,output:L.output?"":P}),J({type:"paren",extglob:!0,value:q(),output:o}),F.push(r)},ee=e=>{let r,o=e.close+(n.capture?")":"");if("negate"===e.type){let i=j;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=D(n)),(i!==j||$()||/^\)+$/.test(z()))&&(o=e.close=`)$))${i}`),e.inner.includes("*")&&(r=z())&&/^\.[^\\/.]+$/.test(r)){const n=d(r,{...t,fastpaths:!1}).output;o=e.close=`)${n})${i})`}"bos"===e.prev.type&&(L.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:U,output:o}),Y("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,i=e.replace(c,((e,t,n,o,i,a)=>"\\"===o?(r=!0,e):"?"===o?t?t+o+(i?O.repeat(i.length):""):0===a?M+(i?O.repeat(i.length):""):O.repeat(n.length):"."===o?b.repeat(n.length):"*"===o?t?t+o+(i?j:""):j:t?e:`\\${e}`));return!0===r&&(i=!0===n.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===n.contains?(L.output=e,L):(L.output=o.wrapOutput(i,L,t),L)}for(;!$();){if(U=q(),"\0"===U)continue;if("\\"===U){const e=G();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){U+="\\",J({type:"text",value:U});continue}const t=/^\\+/.exec(z());let r=0;if(t&&t[0].length>2&&(r=t[0].length,L.index+=r,r%2!=0&&(U+="\\")),!0===n.unescape?U=q():U+=q(),0===L.brackets){J({type:"text",value:U});continue}}if(L.brackets>0&&("]"!==U||"["===V.value||"[^"===V.value)){if(!1!==n.posix&&":"===U){const e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){const e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=V.value.slice(e+2),r=a[n];if(r){V.value=t+r,L.backtrack=!0,q(),v.output||1!==g.indexOf(V)||(v.output=P);continue}}}("["===U&&":"!==G()||"-"===U&&"]"===G())&&(U=`\\${U}`),"]"!==U||"["!==V.value&&"[^"!==V.value||(U=`\\${U}`),!0===n.posix&&"!"===U&&"["===V.value&&(U="^"),V.value+=U,K({value:U});continue}if(1===L.quotes&&'"'!==U){U=o.escapeRegex(U),V.value+=U,K({value:U});continue}if('"'===U){L.quotes=1===L.quotes?0:1,!0===n.keepQuotes&&J({type:"text",value:U});continue}if("("===U){Q("parens"),J({type:"paren",value:U});continue}if(")"===U){if(0===L.parens&&!0===n.strictBrackets)throw new SyntaxError(p("opening","("));const e=F[F.length-1];if(e&&L.parens===e.parens+1){ee(F.pop());continue}J({type:"paren",value:U,output:L.parens?")":"\\)"}),Y("parens");continue}if("["===U){if(!0!==n.nobracket&&z().includes("]"))Q("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));U=`\\${U}`}J({type:"bracket",value:U});continue}if("]"===U){if(!0===n.nobracket||V&&"bracket"===V.type&&1===V.value.length){J({type:"text",value:U,output:`\\${U}`});continue}if(0===L.brackets){if(!0===n.strictBrackets)throw new SyntaxError(p("opening","["));J({type:"text",value:U,output:`\\${U}`});continue}Y("brackets");const e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(U=`/${U}`),V.value+=U,K({value:U}),!1===n.literalBrackets||o.hasRegexChars(e))continue;const t=o.escapeRegex(V.value);if(L.output=L.output.slice(0,-V.value.length),!0===n.literalBrackets){L.output+=t,V.value=t;continue}V.value=`(${m}${t}|${V.value})`,L.output+=V.value;continue}if("{"===U&&!0!==n.nobrace){Q("braces");const e={type:"brace",value:U,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};H.push(e),J(e);continue}if("}"===U){const e=H[H.length-1];if(!0===n.nobrace||!e){J({type:"text",value:U,output:U});continue}let t=")";if(!0===e.dots){const e=g.slice(),r=[];for(let t=e.length-1;t>=0&&(g.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=l(r,n),L.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=L.output.slice(0,e.outputIndex),r=L.tokens.slice(e.tokensIndex);e.value=e.output="\\{",U=t="\\}",L.output=n;for(const e of r)L.output+=e.output||e.value}J({type:"brace",value:U,output:t}),Y("braces"),H.pop();continue}if("|"===U){F.length>0&&F[F.length-1].conditions++,J({type:"text",value:U});continue}if(","===U){let e=U;const t=H[H.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),J({type:"comma",value:U,output:e});continue}if("/"===U){if("dot"===V.type&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",g.pop(),V=v;continue}J({type:"slash",value:U,output:T});continue}if("."===U){if(L.braces>0&&"dot"===V.type){"."===V.value&&(V.output=b);const e=H[H.length-1];V.type="dots",V.output+=U,V.value+=U,e.dots=!0;continue}if(L.braces+L.parens===0&&"bos"!==V.type&&"slash"!==V.type){J({type:"text",value:U,output:b});continue}J({type:"dot",value:U,output:b});continue}if("?"===U){if((!V||"("!==V.value)&&!0!==n.noextglob&&"("===G()&&"?"!==G(2)){Z("qmark",U);continue}if(V&&"paren"===V.type){const e=G();let t=U;if("<"===e&&!o.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===V.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(z()))&&(t=`\\${U}`),J({type:"text",value:U,output:t});continue}if(!0!==n.dot&&("slash"===V.type||"bos"===V.type)){J({type:"qmark",value:U,output:x});continue}J({type:"qmark",value:U,output:O});continue}if("!"===U){if(!0!==n.noextglob&&"("===G()&&("?"!==G(2)||!/[!=<:]/.test(G(3)))){Z("negate",U);continue}if(!0!==n.nonegate&&0===L.index){X();continue}}if("+"===U){if(!0!==n.noextglob&&"("===G()&&"?"!==G(2)){Z("plus",U);continue}if(V&&"("===V.value||!1===n.regex){J({type:"plus",value:U,output:S});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||L.parens>0){J({type:"plus",value:U});continue}J({type:"plus",value:S});continue}if("@"===U){if(!0!==n.noextglob&&"("===G()&&"?"!==G(2)){J({type:"at",extglob:!0,value:U,output:""});continue}J({type:"text",value:U});continue}if("*"!==U){"$"!==U&&"^"!==U||(U=`\\${U}`);const e=s.exec(z());e&&(U+=e[0],L.index+=e[0].length),J({type:"text",value:U});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=U,V.output=j,L.backtrack=!0,L.globstar=!0,W(U);continue}let t=z();if(!0!==n.noextglob&&/^\([^?]/.test(t)){Z("star",U);continue}if("star"===V.type){if(!0===n.noglobstar){W(U);continue}const r=V.prev,o=r.prev,i="slash"===r.type||"bos"===r.type,a=o&&("star"===o.type||"globstar"===o.type);if(!0===n.bash&&(!i||t[0]&&"/"!==t[0])){J({type:"star",value:U,output:""});continue}const s=L.braces>0&&("comma"===r.type||"brace"===r.type),c=F.length&&("pipe"===r.type||"paren"===r.type);if(!i&&"paren"!==r.type&&!s&&!c){J({type:"star",value:U,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[L.index+4];if(n&&"/"!==n)break;t=t.slice(3),W("/**",3)}if("bos"===r.type&&$()){V.type="globstar",V.value+=U,V.output=D(n),L.output=V.output,L.globstar=!0,W(U);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!a&&$()){L.output=L.output.slice(0,-(r.output+V.output).length),r.output=`(?:${r.output}`,V.type="globstar",V.output=D(n)+(n.strictSlashes?")":"|$)"),V.value+=U,L.globstar=!0,L.output+=r.output+V.output,W(U);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";L.output=L.output.slice(0,-(r.output+V.output).length),r.output=`(?:${r.output}`,V.type="globstar",V.output=`${D(n)}${T}|${T}${e})`,V.value+=U,L.output+=r.output+V.output,L.globstar=!0,W(U+q()),J({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){V.type="globstar",V.value+=U,V.output=`(?:^|${T}|${D(n)}${T})`,L.output=V.output,L.globstar=!0,W(U+q()),J({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-V.output.length),V.type="globstar",V.output=D(n),V.value+=U,L.output+=V.output,L.globstar=!0,W(U);continue}const r={type:"star",value:U,output:j};!0!==n.bash?!V||"bracket"!==V.type&&"paren"!==V.type||!0!==n.regex?(L.index!==L.start&&"slash"!==V.type&&"dot"!==V.type||("dot"===V.type?(L.output+=A,V.output+=A):!0===n.dot?(L.output+=I,V.output+=I):(L.output+=k,V.output+=k),"*"!==G()&&(L.output+=P,V.output+=P)),J(r)):(r.output=U,J(r)):(r.output=".*?","bos"!==V.type&&"slash"!==V.type||(r.output=k+r.output),J(r))}for(;L.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));L.output=o.escapeLast(L.output,"["),Y("brackets")}for(;L.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing",")"));L.output=o.escapeLast(L.output,"("),Y("parens")}for(;L.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","}"));L.output=o.escapeLast(L.output,"{"),Y("braces")}if(!0===n.strictSlashes||"star"!==V.type&&"bracket"!==V.type||J({type:"maybe_slash",value:"",output:`${T}?`}),!0===L.backtrack){L.output="";for(const e of L.tokens)L.output+=null!=e.output?e.output:e.value,e.suffix&&(L.output+=e.suffix)}return L};d.fastpaths=(e,t)=>{const n={...t},a="number"==typeof n.maxLength?Math.min(i,n.maxLength):i,s=e.length;if(s>a)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${a}`);e=u[e]||e;const c=o.isWindows(t),{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:v,NO_DOTS_SLASH:g,STAR:m,START_ANCHOR:y}=r.globChars(c),_=n.dot?v:h,E=n.dot?g:h,b=n.capture?"":"?:";let S=!0===n.bash?".*?":m;n.capture&&(S=`(${S})`);const T=e=>!0===e.noglobstar?S:`(${b}(?:(?!${y}${e.dot?f:l}).)*?)`,P=e=>{switch(e){case"*":return`${_}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${_}${S}${l}${d}${S}`;case"*/*":return`${_}${S}${p}${d}${E}${S}`;case"**":return _+T(n);case"**/*":return`(?:${_}${T(n)}${p})?${E}${d}${S}`;case"**/*.*":return`(?:${_}${T(n)}${p})?${E}${S}${l}${d}${S}`;case"**/.*":return`(?:${_}${T(n)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=P(t[1]);if(!n)return;return n+l+t[2]}}},w=o.removePrefix(e,{negated:!1,prefix:""});let C=P(w);return C&&!0!==n.strictSlashes&&(C+=`${p}?`),C},e.exports=d},6675:(e,t,n)=>{"use strict";const r=n(6928),o=n(2608),i=n(1154),a=n(280),s=n(3940),c=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map((e=>c(e,t,n))),o=e=>{for(const t of r){const n=t(e);if(n)return n}return!1};return o}const r=(o=e)&&"object"==typeof o&&!Array.isArray(o)&&e.tokens&&e.input;var o;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const i=t||{},s=a.isWindows(t),u=r?c.compileRe(e,t):c.makeRe(e,t,!1,!0),l=u.state;delete u.state;let p=()=>!1;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};p=c(i.ignore,e,n)}const d=(n,r=!1)=>{const{isMatch:o,match:a,output:d}=c.test(n,u,t,{glob:e,posix:s}),f={glob:e,state:l,regex:u,posix:s,input:n,output:d,match:a,isMatch:o};return"function"==typeof i.onResult&&i.onResult(f),!1===o?(f.isMatch=!1,!!r&&f):p(n)?("function"==typeof i.onIgnore&&i.onIgnore(f),f.isMatch=!1,!!r&&f):("function"==typeof i.onMatch&&i.onMatch(f),!r||f)};return n&&(d.state=l),d};c.test=(e,t,n,{glob:r,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const i=n||{},s=i.format||(o?a.toPosixSlashes:null);let u=e===r,l=u&&s?s(e):e;return!1===u&&(l=s?s(e):e,u=l===r),!1!==u&&!0!==i.capture||(u=!0===i.matchBase||!0===i.basename?c.matchBase(e,t,n,o):t.exec(l)),{isMatch:Boolean(u),match:u,output:l}},c.matchBase=(e,t,n,o=a.isWindows(n))=>(t instanceof RegExp?t:c.makeRe(t,n)).test(r.basename(e)),c.isMatch=(e,t,n)=>c(t,n)(e),c.parse=(e,t)=>Array.isArray(e)?e.map((e=>c.parse(e,t))):i(e,{...t,fastpaths:!1}),c.scan=(e,t)=>o(e,t),c.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const o=t||{},i=o.contains?"":"^",a=o.contains?"":"$";let s=`${i}(?:${e.output})${a}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const u=c.toRegex(s,t);return!0===r&&(u.state=e),u},c.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=i.fastpaths(e,t)),o.output||(o=i(e,t)),c.compileRe(o,t,n,r)},c.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},c.constants=s,e.exports=c},2608:(e,t,n)=>{"use strict";const r=n(280),{CHAR_ASTERISK:o,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:y}=n(3940),_=e=>e===l||e===a,E=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},b=e.length-1,S=!0===n.parts||!0===n.scanToEnd,T=[],P=[],w=[];let C,A,I=e,O=-1,x=0,R=0,N=!1,D=!1,k=!1,M=!1,j=!1,L=!1,F=!1,H=!1,B=!1,U=!1,V=0,$={value:"",depth:0,isGlob:!1};const G=()=>O>=b,q=()=>(C=A,I.charCodeAt(++O));for(;O<b;){let e;if(A=q(),A!==a){if(!0===L||A===p){for(V++;!0!==G()&&(A=q());)if(A!==a)if(A!==p){if(!0!==L&&A===c&&(A=q())===c){if(N=$.isBrace=!0,k=$.isGlob=!0,U=!0,!0===S)continue;break}if(!0!==L&&A===s){if(N=$.isBrace=!0,k=$.isGlob=!0,U=!0,!0===S)continue;break}if(A===g&&(V--,0===V)){L=!1,N=$.isBrace=!0,U=!0;break}}else V++;else F=$.backslashes=!0,q();if(!0===S)continue;break}if(A!==l){if(!0!==n.noext&&!0==(A===h||A===i||A===o||A===v||A===u)&&I.charCodeAt(O+1)===d){if(k=$.isGlob=!0,M=$.isExtglob=!0,U=!0,A===u&&O===x&&(B=!0),!0===S){for(;!0!==G()&&(A=q());)if(A!==a){if(A===m){k=$.isGlob=!0,U=!0;break}}else F=$.backslashes=!0,A=q();continue}break}if(A===o){if(C===o&&(j=$.isGlobstar=!0),k=$.isGlob=!0,U=!0,!0===S)continue;break}if(A===v){if(k=$.isGlob=!0,U=!0,!0===S)continue;break}if(A===f){for(;!0!==G()&&(e=q());)if(e!==a){if(e===y){D=$.isBracket=!0,k=$.isGlob=!0,U=!0;break}}else F=$.backslashes=!0,q();if(!0===S)continue;break}if(!0===n.nonegate||A!==u||O!==x){if(!0!==n.noparen&&A===d){if(k=$.isGlob=!0,!0===S){for(;!0!==G()&&(A=q());)if(A!==d){if(A===m){U=!0;break}}else F=$.backslashes=!0,A=q();continue}break}if(!0===k){if(U=!0,!0===S)continue;break}}else H=$.negated=!0,x++}else{if(T.push(O),P.push($),$={value:"",depth:0,isGlob:!1},!0===U)continue;if(C===c&&O===x+1){x+=2;continue}R=O+1}}else F=$.backslashes=!0,A=q(),A===p&&(L=!0)}!0===n.noext&&(M=!1,k=!1);let z=I,W="",K="";x>0&&(W=I.slice(0,x),I=I.slice(x),R-=x),z&&!0===k&&R>0?(z=I.slice(0,R),K=I.slice(R)):!0===k?(z="",K=I):z=I,z&&""!==z&&"/"!==z&&z!==I&&_(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),!0===n.unescape&&(K&&(K=r.removeBackslashes(K)),z&&!0===F&&(z=r.removeBackslashes(z)));const X={prefix:W,input:e,start:x,base:z,glob:K,isBrace:N,isBracket:D,isGlob:k,isExtglob:M,isGlobstar:j,negated:H,negatedExtglob:B};if(!0===n.tokens&&(X.maxDepth=0,_(A)||P.push($),X.tokens=P),!0===n.parts||!0===n.tokens){let t;for(let r=0;r<T.length;r++){const o=t?t+1:x,i=T[r],a=e.slice(o,i);n.tokens&&(0===r&&0!==x?(P[r].isPrefix=!0,P[r].value=W):P[r].value=a,E(P[r]),X.maxDepth+=P[r].depth),0===r&&""===a||w.push(a),t=i}if(t&&t+1<e.length){const r=e.slice(t+1);w.push(r),n.tokens&&(P[P.length-1].value=r,E(P[P.length-1]),X.maxDepth+=P[P.length-1].depth)}X.slashes=T,X.parts=w}return X}},280:(e,t,n)=>{"use strict";const r=n(6928),o="win32"===process.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:c}=n(3940);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(c,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(a,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===o||"\\"===r.sep,t.escapeLast=(e,n,r)=>{const o=e.lastIndexOf(n,r);return-1===o?e:"\\"===e[o-1]?t.escapeLast(e,n,o-1):`${e.slice(0,o)}\\${e.slice(o)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}},9596:e=>{let t;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:global):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},9027:e=>{"use strict";e.exports=function(e){var t=new e,n=t;return{get:function(){var r=t;return r.next?t=r.next:(t=new e,n=t),r.next=null,r},release:function(e){n.next=e,n=e}}}},8190:(e,t,n)=>{e.exports=function(e,t){let n,o,i,a=!0;function s(e){function o(){t&&t(e,n),t=null}a?r(o):o()}function c(e,t,r){n[e]=r,(0==--o||t)&&s(t)}Array.isArray(e)?(n=[],o=e.length):(i=Object.keys(e),n={},o=i.length),o?i?i.forEach((function(t){e[t]((function(e,n){c(t,e,n)}))})):e.forEach((function(e,t){e((function(e,n){c(t,e,n)}))})):s(null),a=!1};const r=n(9596)},54:(e,t,n)=>{"use strict";const r=n(1929),o=(e,t,n)=>{if(!1===r(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===r(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...n};"boolean"==typeof i.strictZeros&&(i.relaxZeros=!1===i.strictZeros);let c=e+":"+t+"="+String(i.relaxZeros)+String(i.shorthand)+String(i.capture)+String(i.wrap);if(o.cache.hasOwnProperty(c))return o.cache[c].result;let u=Math.min(e,t),l=Math.max(e,t);if(1===Math.abs(u-l)){let n=e+"|"+t;return i.capture?`(${n})`:!1===i.wrap?n:`(?:${n})`}let p=f(e)||f(t),d={min:e,max:t,a:u,b:l},h=[],v=[];return p&&(d.isPadded=p,d.maxLen=String(d.max).length),u<0&&(v=a(l<0?Math.abs(l):1,Math.abs(u),d,i),u=d.a=0),l>=0&&(h=a(u,l,d,i)),d.negatives=v,d.positives=h,d.result=function(e,t){let n=s(e,t,"-",!1)||[],r=s(t,e,"",!1)||[],o=s(e,t,"-?",!0)||[];return n.concat(o).concat(r).join("|")}(v,h),!0===i.capture?d.result=`(${d.result})`:!1!==i.wrap&&h.length+v.length>1&&(d.result=`(?:${d.result})`),o.cache[c]=d,d.result};function i(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}(e,t),o=r.length,i="",a=0;for(let e=0;e<o;e++){let[t,n]=r[e];t===n?i+=t:"0"!==t||"9"!==n?i+=`[${s=t}${(c=n)-s==1?"":"-"}${c}]`:a++}var s,c;return a&&(i+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:i,count:[a],digits:o}}function a(e,t,n,r){let o,a=function(e,t){let n=1,r=1,o=l(e,n),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),n+=1,o=l(e,n);for(o=p(t+1,r)-1;e<o&&o<=t;)i.add(o),r+=1,o=p(t+1,r)-1;return i=[...i],i.sort(c),i}(e,t),s=[],u=e;for(let e=0;e<a.length;e++){let t=a[e],c=i(String(u),String(t),r),l="";n.isPadded||!o||o.pattern!==c.pattern?(n.isPadded&&(l=h(t,n,r)),c.string=l+c.pattern+d(c.count),s.push(c),u=t+1,o=c):(o.count.length>1&&o.count.pop(),o.count.push(c.count[0]),o.string=o.pattern+d(o.count),u=t+1)}return s}function s(e,t,n,r,o){let i=[];for(let o of e){let{string:e}=o;r||u(t,"string",e)||i.push(n+e),r&&u(t,"string",e)&&i.push(n+e)}return i}function c(e,t){return e>t?1:t>e?-1:0}function u(e,t,n){return e.some((e=>e[t]===n))}function l(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function p(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function f(e){return/^-?(0+)\d/.test(e)}function h(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),o=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${r}}`:`0{${r}}`}}o.cache={},o.clearCache=()=>o.cache={},e.exports=o},4200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i,a,s,c,u=n(6928),l=n(9896),p=Object.prototype.toString;function d(e){return void 0!==e}function f(e){return"[object String]"===p.call(e)}function h(e){return JSON.parse(l.readFileSync(e,"utf8"))}function v(e,t){return c&&(e="ï¼»"+e.replace(/[aouei]/g,"$&$&")+"ï¼½"),0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0],o=t[r],i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}))}function g(e){return function(t,n){for(var r,o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return r=t,"[object Number]"===p.call(r)?t>=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):v(e[t],o):f(n)?(console.warn("Message "+n+" didn't get externalized correctly."),v(n,o)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function m(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return v(t,n)}function y(e,t){return a[e]=t,t}function _(e){try{return function(e){var t=h(u.join(e,"nls.metadata.json")),n=Object.create(null);for(var r in t){var o=t[r];n[r]=o.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function E(e,t){var n;if(!0===s.languagePackSupport&&void 0!==s.cacheRoot&&void 0!==s.languagePackId&&void 0!==s.translationsConfigFile&&void 0!==s.translationsConfig)try{n=function(e,t){var n,r,o,i=u.join(s.cacheRoot,e.id+"-"+e.hash+".json"),a=!1,c=!1;try{return n=JSON.parse(l.readFileSync(i,{encoding:"utf8",flag:"r"})),r=i,o=new Date,l.utimes(r,o,o,(function(){})),n}catch(e){if("ENOENT"===e.code)c=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),l.unlink(i,(function(e){e&&console.error("Deleting corrupted bundle "+i+" failed.")})),a=!0}}if(n=function(e,t){var n=s.translationsConfig[e.id];if(n){var r=h(n).contents,o=h(u.join(t,"nls.metadata.json")),i=Object.create(null);for(var a in o){var c=o[a],l=r[e.outDir+"/"+a];if(l){for(var p=[],d=0;d<c.keys.length;d++){var v=c.keys[d],g=l[f(v)?v:v.key];void 0===g&&(g=c.messages[d]),p.push(g)}i[a]=p}else i[a]=c.messages}return i}}(e,t),!n||a)return n;if(c)try{l.writeFileSync(i,JSON.stringify(n),{encoding:"utf8",flag:"wx"})}catch(e){if("EEXIST"===e.code)return n;throw e}return n}(e,t)}catch(e){console.log("Load or create bundle failed ",e)}if(!n){if(s.languagePackSupport)return _(t);var r=function(e){for(var t=s.language;t;){var n=u.join(e,"nls.bundle."+t+".json");if(l.existsSync(n))return n;var r=t.lastIndexOf("-");t=r>0?t.substring(0,r):void 0}if(void 0===t&&(n=u.join(e,"nls.bundle.json"),l.existsSync(n)))return n}(t);if(r)try{return h(r)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=_(t)}return n}function b(e){if(!e)return m;var t=u.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),s.messageFormat===r.both||s.messageFormat===r.bundle){var n=function(e){for(var t,n=u.dirname(e);t=u.join(n,"nls.metadata.header.json"),!l.existsSync(t);){var r=u.dirname(n);if(r===n){t=void 0;break}n=r}return t}(e);if(n){var o=u.dirname(n),i=a[o];if(void 0===i)try{var p=JSON.parse(l.readFileSync(n,"utf8"));try{var f=E(p,o);i=y(o,f?{header:p,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),i=y(o,null)}}catch(e){console.error("Failed to read header file",e),i=y(o,null)}if(i){var v=e.substr(o.length+1).replace(/\\/g,"/"),_=i.nlsBundle[v];return void 0===_?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):g(_)}}}if(s.messageFormat===r.both||s.messageFormat===r.file)try{var b=h(function(e){var t;if(s.cacheLanguageResolution&&t);else{if(c||!s.language)t=".nls.json";else for(var n=s.language;n;){var r=".nls."+n+".json";if(l.existsSync(e+r)){t=r;break}var o=n.lastIndexOf("-");o>0?n=n.substring(0,o):(t=".nls.json",n=null)}s.cacheLanguageResolution}return e+t}(e));return Array.isArray(b)?g(b):d(b.messages)&&d(b.keys)?g(b.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}!function(e){e.file="file",e.bundle="bundle",e.both="both"}(r=t.MessageFormat||(t.MessageFormat={})),function(e){e.standalone="standalone",e.languagePack="languagePack"}(o=t.BundleFormat||(t.BundleFormat={})),function(e){e.is=function(e){var t=e;return t&&d(t.key)&&d(t.comment)}}(i||(i={})),function(){if(s={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:r.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(s.locale=e.locale.toLowerCase()),void 0===t?s.language=s.locale:"en"!==t&&(s.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(s.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(s.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(s.languagePackId=e._languagePackId),f(e._translationsConfigFile)){s.translationsConfigFile=e._translationsConfigFile;try{s.translationsConfig=h(s.translationsConfigFile)}catch(t){if(e._corruptedFile){var o=u.dirname(e._corruptedFile);l.exists(o,(function(t){t&&l.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}c="pseudo"===s.locale,a=Object.create(null)}(),t.loadMessageBundle=b,t.config=function(e){return e&&(f(e.locale)&&(s.locale=e.locale.toLowerCase(),s.language=s.locale,a=Object.create(null)),void 0!==e.messageFormat&&(s.messageFormat=e.messageFormat),e.bundleFormat===o.standalone&&!0===s.languagePackSupport&&(s.languagePackSupport=!1)),c="pseudo"===s.locale,b}},1318:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>se,BaseCore:()=>le,BaseTelemetryPlugin:()=>Te.s,CoreUtils:()=>re,DiagnosticLogger:()=>v.wq,ESPromise:()=>he,ESPromiseScheduler:()=>Ee,EventHelper:()=>P.fs,EventLatency:()=>u,EventPersistence:()=>p,EventPropertyType:()=>l,EventsDiscardedReason:()=>Ce.x,FullVersionString:()=>x,InternalAppInsightsCore:()=>y._,InternalBaseCore:()=>ce.F,LoggingSeverity:()=>s.b,MinChannelPriorty:()=>we.T,NotificationManager:()=>Se.h,PerfEvent:()=>g.Q6,PerfManager:()=>g.NS,ProcessTelemetryContext:()=>Pe.W0,TraceLevel:()=>d,Undefined:()=>w.bA,Utils:()=>ne,ValueKind:()=>c,ValueSanitizer:()=>be,Version:()=>O,_ExtendedInternalMessageId:()=>f,_InternalLogMessage:()=>v.WD,_InternalMessageId:()=>s.$,__getRegisteredEvents:()=>C.El,_logInternalMessage:()=>v.Oc,_throwInternal:()=>v.ZP,_warnToConsole:()=>v.OG,addEventHandler:()=>C.So,addEventListeners:()=>C.lQ,addPageHideEventListener:()=>C.Fc,addPageShowEventListener:()=>C.oS,addPageUnloadEventListener:()=>C.ee,areCookiesSupported:()=>T.gi,arrForEach:()=>a.Iu,arrIndexOf:()=>a.rD,arrMap:()=>a.W$,arrReduce:()=>a.KT,attachEvent:()=>C.Q3,cookieAvailable:()=>T.gi,createCookieMgr:()=>T.xN,createEnumStyle:()=>i.Hj,createGuid:()=>X,createProcessTelemetryContext:()=>Pe.i8,createTraceParent:()=>Oe.wk,createUniqueNamespace:()=>Ae.Z,createUnloadHandlerContainer:()=>Ie.P,dateNow:()=>a.x3,deleteCookie:()=>z,detachEvent:()=>C.Ym,disableCookies:()=>G,disallowsSameSiteNone:()=>T.It,doPerf:()=>g.r2,dumpObj:()=>m.mm,eventOff:()=>C.ML,eventOn:()=>C.mB,extend:()=>Q,findW3cTraceParent:()=>Oe.ef,formatTraceParent:()=>Oe.L0,generateW3CId:()=>P.cL,getCommonSchemaMetaData:()=>$,getConsole:()=>m.U5,getCookie:()=>W,getCookieValue:()=>K,getCrypto:()=>m.MY,getDocument:()=>m.YE,getExceptionName:()=>a.lL,getFieldValueType:()=>te,getGlobal:()=>I.mS,getGlobalInst:()=>m.EH,getHistory:()=>m.JK,getIEVersion:()=>m.L0,getISOString:()=>a._u,getJSON:()=>m.hm,getLocation:()=>m.g$,getMsCrypto:()=>m.iN,getNavigator:()=>m.w3,getPerformance:()=>m.FJ,getSetValue:()=>a.c2,getTenantId:()=>H,getTime:()=>Y,getWindow:()=>m.zk,hasDocument:()=>m.Wt,hasHistory:()=>m.tw,hasJSON:()=>m.Z,hasNavigator:()=>m.w9,hasOwnProperty:()=>a.mQ,hasWindow:()=>m.Vd,isArray:()=>a.cy,isArrayValid:()=>Z,isBeaconsSupported:()=>m.Uf,isBoolean:()=>a.Lm,isChromium:()=>oe,isDate:()=>a.$P,isDocumentObjectAvailable:()=>j,isError:()=>a.bJ,isFetchSupported:()=>m.R7,isFunction:()=>a.Tn,isIE:()=>m.lT,isLatency:()=>U,isNotTruthy:()=>a.wo,isNullOrUndefined:()=>a.hX,isNumber:()=>a.Et,isObject:()=>a.Gv,isReactNative:()=>m.lV,isSampledFlag:()=>Oe.N7,isString:()=>a.Kg,isTruthy:()=>a.zz,isTypeof:()=>a.Ed,isUint8ArrayAvailable:()=>B,isUndefined:()=>a.b0,isValidSpanId:()=>Oe.wN,isValidTraceId:()=>Oe.hX,isValidTraceParent:()=>Oe.mJ,isValueAssigned:()=>F,isValueKind:()=>J,isWindowObjectAvailable:()=>L,isXhrSupported:()=>m.xk,mergeEvtNamespace:()=>C.Hm,newGuid:()=>P.aq,newId:()=>A.Si,normalizeJsName:()=>a.cH,objCreate:()=>I.AQ,objDefineAccessors:()=>a.r,objForEachKey:()=>a.z,objFreeze:()=>a.N6,objKeys:()=>a.cG,objSeal:()=>a.js,openXhr:()=>ie,optimizeObject:()=>a.hW,parseTraceParent:()=>Oe.ZI,perfNow:()=>P.UU,proxyAssign:()=>a.qz,proxyFunctionAs:()=>a.RF,proxyFunctions:()=>a.o$,random32:()=>A.VN,randomValue:()=>A.Z1,removeEventHandler:()=>C.zh,removeEventListeners:()=>C.Wg,removePageHideEventListener:()=>C.sq,removePageShowEventListener:()=>C.vF,removePageUnloadEventListener:()=>C.Ds,safeGetCookieMgr:()=>T.um,safeGetLogger:()=>v.y0,sanitizeProperty:()=>V,setCookie:()=>q,setEnableEnvMocks:()=>m.cU,setProcessTelemetryTimings:()=>ee,setValue:()=>a.KY,strContains:()=>a.Ju,strEndsWith:()=>a.Cv,strFunction:()=>w.hW,strObject:()=>w._1,strPrototype:()=>w.vR,strStartsWith:()=>a.tG,strTrim:()=>a.EH,strUndefined:()=>w.bA,throwError:()=>a.$8,toISOString:()=>a._u,useXDomainRequest:()=>m.PV});var r,o=n(212),i=n(3435),a=n(2504),s=n(6166),c=(0,i.Hj)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),u=(0,i.Hj)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),l=(0,i.Hj)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),p=(0,i.Hj)({Normal:1,Critical:2}),d=(0,i.Hj)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),f=(0,a.N6)((0,o.Im)((0,o.Im)({},s.$),(0,i.Hj)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),h=n(1356),v=n(6392),g=n(5441),m=n(8323),y=n(6382),_="",E="https://browser.events.data.microsoft.com/OneCollector/1.0/",b="version",S="properties",T=n(5691),P=n(5955),w=n(7245),C=n(4838),A=n(9668),I=n(9381),O="3.2.13",x="1DS-Web-JS-"+O,R="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",N="withCredentials",D="timeout",k=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),M=null,j=Boolean((0,m.YE)()),L=Boolean((0,m.zk)());function F(e){return!(e===_||(0,a.hX)(e))}function H(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return _}function B(){return null===M&&(M=!(0,a.b0)(Uint8Array)&&!function(){var e=(0,m.w3)();if(!(0,a.b0)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,m.lV)()),M}function U(e){return!!(e&&(0,a.Et)(e)&&e>=1&&e<=4)}function V(e,t,n){if(!t&&!F(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.cy)(t))t={value:t};else if("object"!==r||w.J$.call(t,"value")){if((0,a.hX)(t.value)||t.value===_||!(0,a.Kg)(t.value)&&!(0,a.Et)(t.value)&&!(0,a.Lm)(t.value)&&!(0,a.cy)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,a.cy)(t.value)&&!Z(t.value))return null;if(!(0,a.hX)(t.kind)){if((0,a.cy)(t.value)||!J(t.kind))return null;t.value=t.value.toString()}return t}function $(e,t,n){var r=-1;if(!(0,a.b0)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else{var o=k[te(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function G(){(0,T.um)(null).setEnabled(!1)}function q(e,t,n){(0,T.gi)(null)&&(0,T.um)(null).set(e,t,86400*n,null,"/")}function z(e){(0,T.gi)(null)&&(0,T.um)(null).del(e)}function W(e){return(0,T.gi)(null)?K((0,T.um)(null),e):_}function K(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||_}function X(e){void 0===e&&(e="D");var t=(0,P.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,_)),t}function Q(e,t,n,r,o){var i={},s=!1,c=0,u=arguments.length,l=arguments;for("[object Boolean]"===Object[w.vR].toString.call(l[0])&&(s=l[0],c++);c<u;c++)e=l[c],(0,a.z)(e,(function(e,t){s&&t&&(0,a.Gv)(t)?(0,a.cy)(t)?(i[e]=i[e]||[],(0,a.Iu)(t,(function(t,n){t&&(0,a.Gv)(t)?i[e][n]=Q(!0,i[e][n],t):i[e][n]=t}))):i[e]=Q(!0,i[e],t):i[e]=t}));return i}var Y=P.UU;function J(e){return 0===e||e>0&&e<=13||32===e}function Z(e){return e.length>0}function ee(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=Y()}function te(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===w._1&&(t=4,(0,a.cy)(e)?(t=4096,e.length>0&&(t|=te(e[0]))):w.J$.call(e,"value")&&(t=8192|te(e.value)))}return t}var ne={Version:O,FullVersionString:x,strUndefined:w.bA,strObject:w._1,Undefined:w.bA,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,objKeys:a.cG,toISOString:a._u,isReactNative:m.lV,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,isFunction:a.Tn,isArray:a.cy,isObject:a.Gv,strTrim:a.EH,isDocumentObjectAvailable:j,isWindowObjectAvailable:L,isValueAssigned:F,getTenantId:H,isBeaconsSupported:m.Uf,isUint8ArrayAvailable:B,isLatency:U,sanitizeProperty:V,getISOString:a._u,useXDomainRequest:m.PV,getCommonSchemaMetaData:$,cookieAvailable:T.gi,disallowsSameSiteNone:T.It,setCookie:q,deleteCookie:z,getCookie:W,createGuid:X,extend:Q,getTime:Y,isValueKind:J,isArrayValid:Z,objDefineAccessors:a.r,addPageUnloadEventListener:C.ee,setProcessTelemetryTimings:ee,addEventHandler:C.So,getFieldValueType:te,strEndsWith:a.Cv,objForEachKey:a.z},re={_canUseCookies:void 0,isTypeof:a.Ed,isUndefined:a.b0,isNullOrUndefined:a.hX,hasOwnProperty:a.mQ,isFunction:a.Tn,isObject:a.Gv,isDate:a.$P,isArray:a.cy,isError:a.bJ,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,toISOString:a._u,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,strTrim:a.EH,objCreate:I.AQ,objKeys:a.cG,objDefineAccessors:a.r,addEventHandler:C.So,dateNow:a.x3,isIE:m.lT,disableCookies:G,newGuid:P.aq,perfNow:P.UU,newId:A.Si,randomValue:A.Z1,random32:A.VN,mwcRandomSeed:A.yc,mwcRandom32:A.k5,generateW3CId:P.cL};function oe(){return!!(0,m.EH)("chrome")}function ie(e,t,n,r,o,i){function a(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var s=new XMLHttpRequest;return r&&a(s,R,r),n&&a(s,N,n),s.open(e,t,!o),n&&a(s,N,n),!o&&i&&a(s,D,i),s}var ae=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,h.default)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new v.wq({loggingLevelConsole:1})),e.initialize=function(n,r,o,i){(0,g.r2)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=E);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,a.$8)("Invalid property storage override passed."),n.channels&&(0,a.Iu)(n.channels,(function(e){e&&(0,a.Iu)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||n.enableWParam?0:-1},r&&(0,a.Iu)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,o,i),e.pollInternalLogs("InternalLog")}catch(t){var u=e.logger,l=(0,m.mm)(t);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),(0,v.ZP)(u,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:i}}))},e.track=function(n){(0,g.r2)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=Y(),U(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=x;var i=r.baseData=r.baseData||{};i[S]=i[S]||{};var a=i[S];a[b]=a[b]||e.pluginVersionString||_}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,o.qU)(t,e),t.__ieDyn=1,t}(y._);const se=ae;var ce=n(3227),ue=function(e){function t(){var n=e.call(this)||this;return(0,h.default)(t,n,(function(e,t){e.initialize=function(n,r,o,i){n&&!n.endpointUrl&&(n.endpointUrl=E),e.getWParam=function(){return j||n.enableWParam?0:-1};try{t.initialize(n,r,o,i)}catch(t){(0,v.ZP)(e.logger,1,514,"Initialization Failed: "+(0,m.mm)(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=x}t.track(n)}})),n}return(0,o.qU)(t,e),t.__ieDyn=1,t}(ce.F);const le=ue;var pe=a.Tn;function de(e,t,n){return function(r){e[t]=r,n()}}var fe=function(){function e(t){var n=0,r=null,o=[];function i(){if(o.length>0){var e=o.slice();o=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(e){}}),0)}}function a(e){0===n&&(r=e,n=1,i())}function s(e){0===n&&(r=e,n=2,i())}(0,h.default)(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){o.push((function(){var o;try{(o=1===n?pe(t)?t(r):r:pe(a)?a(r):r)instanceof e?o.then(s,c):2!==n||pe(a)?s(o):c(o)}catch(e){return void c(e)}})),0!==n&&i()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!pe(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(a,s)}catch(e){s(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&pe(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],o=0,i=0;i<t.length;i++){var a=t[i];a&&pe(a.then)?(o++,a.then(de(r,i,(function(){0==--o&&e(r)})),n)):r[i]=a}0===o&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var o=t[r];o&&pe(o.then)?o.then(e,n):setTimeout((function(){e(o)}),0)},o=0;o<t.length;o++)r(o)}catch(e){n(e)}}))},e}();const he=fe;var ve=0,ge=[],me=[],ye=[];function _e(){return(new Date).getTime()}const Ee=function(){function e(t,n){var r=0,o=(t||"<unnamed>")+"."+ve;function i(e){var t=(0,I.mS)();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+o+"] "+e)}function a(e){(0,v.OG)(n,"ESPromiseScheduler["+o+"] "+e)}ve++,(0,h.default)(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,u){var l=o+"."+n;n++,c&&(l+="-("+c+")");var p=l+"{"+r+"}";r++;var d,f,h,v={evt:null,tm:_e(),id:p,isRunning:!1,isAborted:!1};return v.evt=t?(d=v,f=t,h=new he((function(e,t){var n=_e()-f.tm,r=f.id;i("["+l+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+me.length+"] waiting and ["+ge.length+"] running"),d.abort=function(e){d.abort=null,s(me,l),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){s(me,l),b(d).then(e,t)}),(function(n){s(me,l),b(d).then(e,t)}))})),me.push(d),h):b(v),(t=v).evt._schId=p,v.evt;function g(e){for(var t=_e(),n=t-6e5,r=e.length,o=0;o<r;){var i=e[o];if(i&&i.tm<n){var s=null;i.abort?(s="Aborting ["+i.id+"] due to Excessive runtime ("+(t-i.tm)+" ms)",i.abort(s)):s="Removing ["+i.id+"] due to Excessive runtime ("+(t-i.tm)+" ms)",a(s),e.splice(o,1),r--}else o++}}function m(e,n){var r=!1,o=s(ge,e);if(o||(o=s(ye,e),r=!0),o){o.to&&(clearTimeout(o.to),o.to=null);var c=_e()-o.tm;n?r?a("Timed out event ["+e+"] finally complete -- "+c+" ms"):i("Promise ["+e+"] Complete -- "+c+" ms"):(ye.push(o),a("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else i("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),g(ge),g(me),g(ye)}function y(e,t){return function(n){return m(e,!0),t&&t(n),n}}function _(e,t,n,r){t.then((function(t){return t instanceof he?(i("Event ["+e+"] returned a promise -- waiting"),_(e,t,n,r),t):y(e,n)(t)}),y(e,r))}function E(e,t){var n=e.id;return new he((function(r,o){i("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,m(n,!1),o(new Error(t))};var a=t(n);a instanceof he?(u&&(e.to=setTimeout((function(){m(n,!1),o(new Error("Timed out after ["+u+"] ms"))}),u)),_(n,a,(function(t){i("Event ["+n+"] Resolving after "+(_e()-e.tm)+" ms"),r(t)}),o)):(i("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function b(t){var n=_e();return t.wTm=n-t.tm,t.tm=n,t.isAborted?he.reject(new Error("["+l+"] was aborted")):(ge.push(t),E(t,e))}}}))}return e.incomplete=function(){return ge},e.waitingToStart=function(){return me},e}();var be=function(){function e(e){var t=this,n={},r=[],o=[];function i(e,t){var i,s=n[e];if(s&&(i=s[t]),!i&&null!==i){if((0,a.Kg)(e)&&(0,a.Kg)(t))if(o.length>0){for(var c=0;c<o.length;c++)if(o[c].handleField(e,t)){i={canHandle:!0,fieldHandler:o[c]};break}}else 0===r.length&&(i={canHandle:!0});if(!i&&null!==i)for(i=null,c=0;c<r.length;c++)if(r[c].handleField(e,t)){i={canHandle:!0,handler:r[c],fieldHandler:null};break}s||(s=n[e]={}),s[t]=i}return i}function s(e,t,n,r,o,i){if(e.handler)return e.handler.property(t,n,o,i);if(!(0,a.hX)(o.kind)){if(!(4096&~r&&J(o.kind)))return null;o.value=o.value.toString()}return u(e.fieldHandler,t,n,r,o)}function c(e,t,n){return F(n)?{value:n}:null}function u(e,n,r,o,i){if(i&&e){var s=e.getSanitizer(n,r,o,i.kind,i.propertyType);if(s)if(4===o){var l={},p=i.value;(0,a.z)(p,(function(t,o){var i=n+"."+r;if(F(o)){var a=c(0,0,o);(a=u(e,i,t,te(o),a))&&(l[t]=a.value)}})),i.value=l}else{var d={path:n,name:r,type:o,prop:i,sanitizer:t};i=s.call(t,d)}}return i}e&&o.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={})},t.addFieldSanitizer=function(e){e&&(o.push(e),n={})},t.handleField=function(e,t){var n=i(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,r){var o=i(e,t);if(o&&o.canHandle){if(!o||!o.canHandle)return null;if(o.handler)return o.handler.value(e,t,n,r);if(!(0,a.Kg)(t)||(0,a.hX)(n)||n===_)return null;var u=null,l=te(n);if(8192&~l)1!==l&&2!==l&&3!==l&&4096&~l?4===l&&(u=c(0,0,r?JSON.stringify(n):n)):u=c(0,0,n);else{var p=-8193&l;if(!F((u=n).value)||1!==p&&2!==p&&3!==p&&4096&~p)return null}if(u)return s(o,e,t,l,u,r)}return null},t.property=function(e,t,n,r){var o=i(e,t);if(!o||!o.canHandle)return null;if(!(0,a.Kg)(t)||(0,a.hX)(n)||!F(n.value))return null;var c=te(n.value);return 0===c?null:s(o,e,t,c,n,r)}}return e.getFieldType=te,e}(),Se=n(4013),Te=n(7428),Pe=n(8012),we=n(8963),Ce=n(4343),Ae=n(2429),Ie=n(2755),Oe=n(2675)},3435:(e,t,n)=>{"use strict";n.d(t,{Hj:()=>o,oP:()=>a,oc:()=>i});var r=n(2504);function o(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r.ol)(t)}function i(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=e,t[n]=e})),(0,r.ol)(t)}function a(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,r.ol)(t)}},4343:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var r=(0,n(3435).Hj)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},6166:(e,t,n)=>{"use strict";n.d(t,{$:()=>b,b:()=>E});var r,o=n(3435),i="Failed",a=i+"MonitorAjax",s="Track",c="Start",u="Stop",l="Event",p="AuthContext",d="Exception",f="Local",h="Session",v="Storage",g="Browser",m="Cannot",y="Buffer",_="InstrumentationKey",E=(0,o.Hj)({CRITICAL:1,WARNING:2}),b=(0,o.Hj)(((r={})[g+"DoesNotSupport"+f+v]=0,r[g+m+"Read"+f+v]=1,r[g+m+"Read"+h+v]=2,r[g+m+"Write"+f+v]=3,r[g+m+"Write"+h+v]=4,r[g+i+"RemovalFrom"+f+v]=5,r[g+i+"RemovalFrom"+h+v]=6,r[m+"SendEmptyTelemetry"]=7,r.ClientPerformanceMathError=8,r["ErrorParsingAI"+h+"Cookie"]=9,r.ErrorPVCalc=10,r[d+"WhileLoggingError"]=11,r[i+"AddingTelemetryTo"+y]=12,r[a+"Abort"]=13,r[a+"Dur"]=14,r[a+"Open"]=15,r[a+"RSC"]=16,r[a+"Send"]=17,r[a+"GetCorrelationHeader"]=18,r[i+"ToAddHandlerForOnBeforeUnload"]=19,r[i+"ToSendQueuedTelemetry"]=20,r[i+"ToReportDataLoss"]=21,r["Flush"+i]=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r[h+"RenewalDateIsZero"]=27,r.SenderNotInitialized=28,r[c+s+l+i]=29,r[u+s+l+i]=30,r[c+s+i]=31,r[u+s+i]=32,r.TelemetrySampledAndNotSent=33,r[s+l+i]=34,r[s+d+i]=35,r[s+"Metric"+i]=36,r[s+"PV"+i]=37,r[s+"PV"+i+"Calc"]=38,r[s+"Trace"+i]=39,r["Transmission"+i]=40,r[i+"ToSet"+v+y]=41,r[i+"ToRestore"+v+y]=42,r.InvalidBackendResponse=43,r[i+"ToFixDepricatedValues"]=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r[m+"SerializeObject"]=48,r[m+"SerializeObjectNonSerializable"]=49,r.CircularReferenceDetected=50,r["Clear"+p+i]=51,r[d+"Truncated"]=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r["Set"+p+i]=59,r["Set"+p+i+"AccountName"]=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r["TelemetryInitializer"+i]=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r[h+v+y+"Full"]=67,r[m+"AccessCookie"]=68,r.IdTooLong=69,r.InvalidEvent=70,r[a+"SetRequestHeader"]=71,r["Send"+g+"InfoOnUserInit"]=72,r["Plugin"+d]=73,r["Notification"+d]=74,r.SnippetScriptLoadFailure=99,r["Invalid"+_]=100,r[m+"ParseAiBlobValue"]=101,r.InvalidContentBlob=102,r[s+"PageAction"+l+i]=103,r[i+"AddingCustomDefinedRequestContext"]=104,r["InMemory"+v+y+"Full"]=105,r[_+"Deprecation"]=106,r))},8963:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var r=100},6382:(e,t,n)=>{"use strict";n.d(t,{_:()=>d});var r=n(212),o=n(9284),i=n(3229),a=n(3227),s=n(6392),c=n(2504),u=n(5397),l=n(4013),p=n(5441),d=function(e){function t(){var n=e.call(this)||this;return(0,o.A)(t,n,(function(e,t){function n(t){var n=e[i.RF]();n&&n[u.Yp]([t],2)}e[i.mE]=function(e,n,r,o){t[i.mE](e,n,r||new s.wq(e),o||new l.h(e))},e.track=function(r){(0,p.r2)(e[u.kI](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,c.$8)("Invalid telemetry item")),function(e){(0,c.hX)(e[i.RS])&&(n(e),(0,c.$8)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,r.qU)(t,e),t.__ieDyn=1,t}(a.F)},3227:(e,t,n)=>{"use strict";n.d(t,{F:()=>I});var r=n(212),o=n(9284),i=n(9381),a=n(3229),s=n(2504),c=n(5397),u=n(8012),l=n(1267),p=500;function d(e,t,n){t&&(0,s.cy)(t)&&t[a.oI]>0&&(t=t.sort((function(e,t){return e[c.Vo]-t[c.Vo]})),(0,s.Iu)(t,(function(e){e[c.Vo]<p&&(0,s.$8)("Channel has invalid priority - "+e[a.Ju])})),e[a.y5]({queue:(0,s.N6)(t),chain:(0,u.PV)(t,n[a.GA],n)}))}var f=n(5691),h=n(2429),v=n(8074),g=n(6392),m=n(5441),y=n(7428),_=n(8323),E=function(e){function t(){var n,r,i=e.call(this)||this;function u(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,u(),(0,o.A)(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[a.y5](t),{remove:function(){(0,s.Iu)(r,(function(e,n){if(e.id===t.id)return r[a.Ic](n,1),-1}))}}},e[c.qT]=function(t,n){for(var o=!1,i=r[a.oI],c=0;c<i;++c){var u=r[c];if(u)try{if(!1===u.fn[a.y9](null,[t])){o=!0;break}}catch(e){(0,g.ZP)(n[a.e4](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,s.lL)(e),{exception:(0,_.mm)(e)},!0)}}o||e[a.$5](t,n)},e[a.tn]=function(){u()}})),i}return(0,r.qU)(t,e),t.__ieDyn=1,t}(y.s),b=n(2755),S="Plugins must provide initialize method",T="_notificationManager",P="SDK is still unloading...",w={loggingLevelConsole:1};function C(e,t){return new m.NS(t)}function A(e,t){var n=!1;return(0,s.Iu)(t,(function(t){if(t===e)return n=!0,-1})),n}var I=function(){function e(){var t,n,y,_,I,O,x,R,N,D,k,M,j,L,F,H,B,U,V,$,G=0,q=!1;(0,o.A)(e,this,(function(e){function o(n){if(!G&&!q&&(n||e[a.Uw]&&e[a.Uw].queue[a.oI]>0)){var r=(0,s.SA)(t.diagnosticLogInterval);r&&r>0||(r=1e4),G=setInterval((function(){clearInterval(G),G=0,J()}),r)}return G}function z(){n=!1,t=(0,s.CP)(!0,{},w),e[a.GA]=t,e[a.Uw]=new g.wq(t),e[a.H7]=[],F=new E,y=[],_=null,I=null,O=null,x=null,R=null,D=null,N=[],k=null,M=null,j=null,L=!1,H=null,B=(0,h.Z)("AIBaseCore",!0),U=(0,b.P)(),$=null}function W(){var n=(0,u.i8)(Q(),t,e);return n[a.by](o),n}function K(n){var r=function(e,t,n){var r,o=[],i={};return(0,s.Iu)(n,(function(t){((0,s.hX)(t)||(0,s.hX)(t[a.mE]))&&(0,s.$8)(S);var n=t[c.Vo],r=t[a.Ju];t&&n&&((0,s.hX)(i[n])?i[n]=r:(0,g.OG)(e,"Two extensions have same priority #"+n+" - "+i[n]+", "+r)),(!n||n<500)&&o[a.y5](t)})),(r={all:n})[c.eT]=o,r}(e[a.Uw],0,N);D=r[c.eT],R=null;var i=r.all;if(j=(0,s.N6)(function(e,t,n){var r=[];if(e&&(0,s.Iu)(e,(function(e){return d(r,e,n)})),t){var o=[];(0,s.Iu)(t,(function(e){e[c.Vo]>p&&o[a.y5](e)})),d(r,o,n)}return r}(M,i,e)),k){var f=(0,s.rD)(i,k);-1!==f&&i[a.Ic](f,1),-1!==(f=(0,s.rD)(D,k))&&D[a.Ic](f,1),k._setQueue(j)}else k=function(e,t){function n(){return(0,u.i8)(null,t[a.GA],t,null)}function r(e,t,n,r){var o=e?e[a.oI]+1:1;function i(){0==--o&&(r&&r(),r=null)}o>0&&(0,s.Iu)(e,(function(e){if(e&&e.queue[a.oI]>0){var r=e.chain,s=t[a.$o](r);s[a.by](i),n(s)}else o--})),i()}var o=!1,i={identifier:"ChannelControllerPlugin",priority:p,initialize:function(t,n,r,i){o=!0,(0,s.Iu)(e,(function(e){e&&e.queue[a.oI]>0&&(0,l.pI)((0,u.i8)(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),(function(e){e[a.$5](t)}),(function(){o[a.$5](t)}))},update:function(t,n){var o=n||{reason:0};return r(e,t,(function(e){e[a.$5](o)}),(function(){t[a.$5](o)})),!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 i=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[a.$5](i)}),(function(){t[a.$5](i),o=!1})),!0},getChannel:function(t){var n=null;return e&&e[a.oI]>0&&(0,s.Iu)(e,(function(e){if(e&&e.queue[a.oI]>0&&((0,s.Iu)(e.queue,(function(e){if(e[a.Ju]===t)return n=e,-1})),n))return-1})),n},flush:function(t,o,i,s){var c=1,u=!1,l=null;function p(){c--,u&&0===c&&(l&&(clearTimeout(l),l=null),o&&o(u),o=null)}return s=s||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[a.EX]){c++;var n=!1;e[a.EX](t,(function(){n=!0,p()}),i)||n||(t&&null==l?l=setTimeout((function(){l=null,p()}),s):p())}}))}),(function(){u=!0,p()})),!0},_setQueue:function(t){e=t}};return i}(j,e);i[a.y5](k),D[a.y5](k),e[a.H7]=(0,l.Xc)(i),k[a.mE](t,e,i);var h=W();(0,l.pI)(h,i),e[a.H7]=(0,s.N6)((0,l.Xc)(D||[])).slice(),n&&function(t){var n=(0,u.nU)(Q(),e);n[a.by](o),e._updateHook&&!0===e._updateHook(n,t)||n[a.$5](t)}(n)}function X(t){var n,r=null,o=null;return(0,s.Iu)(e[a.H7],(function(e){if(e[a.Ju]===t&&e!==k&&e!==F)return o=e,-1})),!o&&k&&(o=k.getChannel(t)),o&&((n={plugin:o})[a.kt]=function(e){(0,l.Cr)(o)[c.Hr]=!e},n.isEnabled=function(){var e=(0,l.Cr)(o);return!e[a.Ik]&&!e[c.Hr]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[o],i=((n={reason:1})[a.tI]=e,n);Y(r,i,(function(e){e&&K({reason:32,removed:r}),t&&t(e)}))},r=n),r}function Q(){if(!R){var n=(D||[]).slice();-1===(0,s.rD)(n,F)&&n[a.y5](F),R=(0,u.PV)((0,l.Xc)(n),t,e)}return R}function Y(n,r,i){if(n&&n[a.oI]>0){var c=(0,u.PV)(n,t,e),l=(0,u.tS)(c,e);l[a.by]((function(){var e=!1,t=[];(0,s.Iu)(N,(function(r,o){A(r,n)?e=!0:t[a.y5](r)})),N=t;var r=[];M&&((0,s.Iu)(M,(function(t,o){var i=[];(0,s.Iu)(t,(function(t){A(t,n)?e=!0:i[a.y5](t)})),r[a.y5](i)})),M=r),i&&i(e),o()})),l[a.$5](r)}else i(!1)}function J(){if(e[a.Uw]&&e[a.Uw].queue){var n=e[a.Uw].queue.slice(0);e[a.Uw].queue[a.oI]=0,(0,s.Iu)(n,(function(n){var r,o=((r={})[a.RS]=H||"InternalMessageId: "+n[a.JR],r.iKey=(0,s.SA)(t[a.sl]),r.time=(0,s._u)(new Date),r.baseType=g.WD.dataType,r.baseData={message:n[a.pM]},r);e.track(o)}))}}function Z(e,t,n,r){return k?k[a.EX](e,t,n||6,r):(t&&t(!1),!0)}function ee(t){var n=e[a.Uw];n?((0,g.ZP)(n,2,73,t),o()):(0,s.$8)(t)}z(),e[a.tZ]=function(){return n},e[a.mE]=function(o,i,u,l){var p,d;L&&(0,s.$8)(P),e[a.tZ]()&&(0,s.$8)("Core should not be initialized more than once"),t=o||{},e[a.GA]=t,(0,s.hX)(o[a.sl])&&(0,s.$8)("Please provide instrumentation key"),_=l,e[T]=l,!0===(d=(0,s.SA)(t.disableDbgExt))&&V&&(_[a.TP](V),V=null),_&&!V&&!0!==d&&(V=(0,v.M)(t),_[a.vR](V)),!(p=(0,s.SA)(t.enablePerfMgr))&&O&&(O=null),p&&(0,s.c2)(t,c.Yd,C),(0,s.c2)(t,c.Bw,{}).NotificationManager=_,u&&(e[a.Uw]=u);var f=(0,s.c2)(t,c.jy,[]);(N=[])[a.y5].apply(N,(0,r.vz)((0,r.vz)([],i,!1),f,!1)),M=(0,s.c2)(t,c.LZ,[]),K(null),j&&0!==j[a.oI]||(0,s.$8)("No "+c.LZ+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return j&&(0,s.Iu)(j,(function(t){e[a.y5](t.queue)})),(0,s.N6)(e)},e.track=function(n){n.iKey=n.iKey||t[a.sl],n[a.fA]=n[a.fA]||(0,s._u)(new Date),n.ver=n.ver||"4.0",!L&&e[a.tZ]()?W()[a.$5](n):y[a.y5](n)},e[a.ps]=W,e[a.RF]=function(){var t;return _||(_=(0,i.AQ)(((t={})[a.vR]=function(e){},t[a.TP]=function(e){},t[c.fc]=function(e){},t[c.Yp]=function(e,t){},t[c.dI]=function(e,t){},t)),e[T]=_),_},e[a.vR]=function(e){_&&_[a.vR](e)},e[a.TP]=function(e){_&&_[a.TP](e)},e.getCookieMgr=function(){return x||(x=(0,f.xN)(t,e[a.Uw])),x},e.setCookieMgr=function(e){x=e},e[c.kI]=function(){if(!I&&!O&&(0,s.SA)(t.enablePerfMgr)){var n=(0,s.SA)(t[c.Yd]);(0,s.Tn)(n)&&(O=n(e,e[a.RF]()))}return I||O||(0,m.Z4)()},e.setPerfMgr=function(e){I=e},e.eventCnt=function(){return y[a.oI]},e.releaseQueue=function(){if(n&&y[a.oI]>0){var e=y;y=[],(0,s.Iu)(e,(function(e){W()[a.$5](e)}))}},e.pollInternalLogs=function(e){return H=e||null,q=!1,G&&(clearInterval(G),G=null),o(!0)},e[a.Di]=function(){q=!0,G&&(clearInterval(G),G=0,J())},(0,s.o$)(e,(function(){return F}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||(0,s.$8)("SDK is not initialized"),L&&(0,s.$8)(P);var c=((i={reason:50})[a.tI]=t,i.flushComplete=!1,i),l=(0,u.tS)(Q(),e);function p(t){c.flushComplete=t,L=!0,U.run(l,c),e[a.Di](),l[a.$5](c)}l[a.by]((function(){z(),r&&r(c)}),e),J(),Z(t,p,6,o)||p(!1)},e[a.AP]=X,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void ee(S);var o=X(e[a.Ju]);if(o&&!t)return r&&r(!1),void ee("Plugin ["+e[a.Ju]+"] is already loaded!");var i={reason:16};function s(t){N[a.y5](e),i.added=[e],K(i),r&&r(!0)}if(o){var c=[o.plugin];Y(c,{reason:2,isAsync:!!n},(function(e){e?(i.removed=c,i.reason|=32,s()):r&&r(!1)}))}else s()},e.evtNamespace=function(){return B},e[a.EX]=Z,e.getTraceCtx=function(e){return $||($=(0,l.u7)()),$},e.setTraceCtx=function(e){$=e||null},(0,s.RF)(e,"addUnloadCb",(function(){return U}),"add")}))}return e.__ieDyn=1,e}()},7428:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(9284),o=n(3229),i=n(2504),a=n(5397),s=n(8012),c=n(2755),u="getPlugin",l=function(){function e(){var t,n,l,p,d,f=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.i8)(null,{},f[a.eT]);t=l&&l[u]?r[o.$o](null,l[u]):r[o.$o](null,l)}return t}function v(e,t,r){e&&(0,i.KY)(e,a.Bw,[],null,i.hX),!r&&t&&(r=t[o.ps]()[o.uR]());var c=l;l&&l[u]&&(c=l[u]()),f[a.eT]=t,n=(0,s.i8)(r,e,t,c)}function g(){t=!1,f[a.eT]=null,n=null,l=null,d=[],p=(0,c.P)()}g(),(0,r.A)(e,f,(function(e){e[o.mE]=function(e,n,r,o){v(e,n,o),t=!0},e[o.Ik]=function(t,n){var r,c=e[a.eT];if(c&&(!t||c===t[a.eT]())){var f,h=!1,v=t||(0,s.tS)(null,c,l&&l[u]?l[u]():l),m=n||((r={reason:0})[o.tI]=!1,r);return e[o.tn]&&!0===e[o.tn](v,m,y)?f=!0:y(),f}function y(){if(!h){h=!0,p.run(v,n);var e=d;d=[],(0,i.Iu)(e,(function(e){e.rm()})),!0===f&&v[o.$5](m),g()}}},e[o.HC]=function(t,n){var r=e[a.eT];if(r&&(!t||r===t[a.eT]())){var i,c=!1,p=t||(0,s.nU)(null,r,l&&l[u]?l[u]():l),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(p,d,f)?i=!0:f(),i}function f(){c||(c=!0,v(p.getCfg(),p.core(),p[o.uR]()))}},e._addHook=function(e){e&&((0,i.cy)(e)?d=d.concat(e):d[o.y5](e))},(0,i.RF)(e,"_addUnloadCb",(function(){return p}),"add")})),f[o.e4]=function(e){return h(e)[o.e4]()},f[o.tZ]=function(){return t},f.setInitialized=function(e){t=e},f[o.YH]=function(e){l=e},f[o.$5]=function(e,t){t?t[o.$5](e):l&&(0,i.Tn)(l[a.qT])&&l[a.qT](e,null)},f._getTelCtx=h}return e.__ieDyn=1,e}()},5691:(e,t,n)=>{"use strict";n.d(t,{It:()=>D,d5:()=>S,gi:()=>A,um:()=>w,xN:()=>C});var r=n(3229),o=n(6392),i=n(8323),a=n(2504),s=n(5397),c="toGMTString",u="toUTCString",l="cookie",p="expires",d="enabled",f="isCookieUseDisabled",h="disableCookiesUsage",v="_ckMgr",g=null,m=null,y=null,_=(0,i.YE)(),E={},b={};function S(e,t){var n=C[v]||b[v];return n||(n=C[v]=C(e,t),b[v]=n),n}function T(e){return!e||e.isEnabled()}function P(e,t){return!!(t&&e&&(0,a.cy)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.Sj](t)}function w(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var o=t[r.lK];n=o[v]?o[v]:C(t)}return n||(n=S(t,(e||{})[r.Uw])),n}function C(e,t){var n,o=function(e){var t=e[r.lK]=e[r.lK]||{};if((0,a.KY)(t,"domain",e.cookieDomain,a.Gh,a.hX),(0,a.KY)(t,"path",e.cookiePath||"/",null,a.hX),(0,a.hX)(t[d])){var n=void 0;(0,a.b0)(e[f])||(n=!e[f]),(0,a.b0)(e[h])||(n=!e[h]),t[d]=n}return t}(e||b),l=o.path||"/",g=o.domain,y=!1!==o[d],_=((n={isEnabled:function(){var e=y&&A(t),n=b[v];return e&&n&&_!==n&&(e=T(n)),e}})[r.kt]=function(e){y=!1!==e},n.set=function(e,t,n,d,f){var h=!1;if(T(_)&&!function(e,t){return!!(t&&e&&(0,a.cy)(e.blockedCookies)&&-1!==e.blockedCookies[r.Sj](t))||P(e,t)}(o,e)){var v={},y=(0,a.EH)(t||s.m5),E=y[r.Sj](";");if(-1!==E&&(y=(0,a.EH)(t[r.Re](0,E)),v=I(t[r.Re](E+1))),(0,a.KY)(v,"domain",d||g,a.zz,a.b0),!(0,a.hX)(n)){var b=(0,i.lT)();if((0,a.b0)(v[p])){var S=(0,a.x3)()+1e3*n;if(S>0){var w=new Date;w.setTime(S),(0,a.KY)(v,p,O(w,b?c:u)||O(w,b?c:u)||s.m5,a.zz)}}b||(0,a.KY)(v,"max-age",s.m5+n,null,a.b0)}var C=(0,i.g$)();C&&"https:"===C.protocol&&((0,a.KY)(v,"secure",null,null,a.b0),null===m&&(m=!D(((0,i.w3)()||{})[r.tX])),m&&(0,a.KY)(v,"SameSite","None",null,a.b0)),(0,a.KY)(v,"path",f||l,null,a.b0),(o.setCookie||N)(e,x(y,v)),h=!0}return h},n.get=function(e){var t=s.m5;return T(_)&&!P(o,e)&&(t=(o.getCookie||R)(e)),t},n.del=function(e,t){var n=!1;return T(_)&&(n=_.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(A(t)){var c=((r={}).path=n||"/",r[p]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,i.lT)()||(c["max-age"]="0"),(o.delCookie||N)(e,x(s.m5,c)),a=!0}return a},n);return _[v]=_,_}function A(e){if(null===g){g=!1;try{g=void 0!==(_||{})[l]}catch(t){(0,o.ZP)(e,2,68,"Cannot access document.cookie - "+(0,a.lL)(t),{exception:(0,i.mm)(t)})}}return g}function I(e){var t={};if(e&&e[r.oI]){var n=(0,a.EH)(e)[r.sY](";");(0,a.Iu)(n,(function(e){if(e=(0,a.EH)(e||s.m5)){var n=e[r.Sj]("=");-1===n?t[e]=null:t[(0,a.EH)(e[r.Re](0,n))]=(0,a.EH)(e[r.Re](n+1))}}))}return t}function O(e,t){return(0,a.Tn)(e[t])?e[t]():null}function x(e,t){var n=e||s.m5;return(0,a.z)(t,(function(e,t){n+="; "+e+((0,a.hX)(t)?s.m5:"="+t)})),n}function R(e){var t=s.m5;if(_){var n=_[l]||s.m5;y!==n&&(E=I(n),y=n),t=(0,a.EH)(E[e]||s.m5)}return t}function N(e,t){_&&(_[l]=e+"="+t)}function D(e){return!(!(0,a.Kg)(e)||!(0,a.Ju)(e,"CPU iPhone OS 12")&&!(0,a.Ju)(e,"iPad; CPU OS 12")&&!((0,a.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a.Ju)(e,"Version/")&&(0,a.Ju)(e,"Safari"))&&(!(0,a.Ju)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Cv)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,a.Ju)(e,"Chrome/5")&&!(0,a.Ju)(e,"Chrome/6")&&(!(0,a.Ju)(e,"UnrealEngine")||(0,a.Ju)(e,"Chrome"))&&!(0,a.Ju)(e,"UCBrowser/12")&&!(0,a.Ju)(e,"UCBrowser/11"))}},5955:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>E,Ri:()=>T,TV:()=>P,UU:()=>g,WD:()=>b,Yj:()=>w,aq:()=>v,cL:()=>m,fs:()=>_,ht:()=>S,jS:()=>y,rK:()=>h});var r,o=n(7245),i=n(9381),a=n(3229),s=n(5691),c=n(8323),u=n(4838),l=n(2504),p=n(5397),d=n(9668),f=null,h=o.bA;function v(){var e=m();return e[a.Re](0,8)+"-"+e[a.Re](8,12)+"-"+e[a.Re](12,16)+"-"+e[a.Re](16,20)+"-"+e[a.Re](20)}function g(){var e=(0,c.FJ)();return e&&e.now?e.now():(0,l.x3)()}function m(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=p.m5,r=0;r<4;r++)n+=t[15&(e=(0,d.VN)())]+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 o=t[8+(3&(0,d.VN)())|0];return n[a.$4](0,8)+n[a.$4](9,4)+"4"+n[a.$4](13,3)+o+n[a.$4](16,3)+n[a.$4](19,12)}var y={_canUseCookies:void 0,isTypeof:l.Ed,isUndefined:l.b0,isNullOrUndefined:l.hX,hasOwnProperty:l.mQ,isFunction:l.Tn,isObject:l.Gv,isDate:l.$P,isArray:l.cy,isError:l.bJ,isString:l.Kg,isNumber:l.Et,isBoolean:l.Lm,toISOString:l._u,arrForEach:l.Iu,arrIndexOf:l.rD,arrMap:l.W$,arrReduce:l.KT,strTrim:l.EH,objCreate:i.AQ,objKeys:l.cG,objDefineAccessors:l.r,addEventHandler:u.So,dateNow:l.x3,isIE:c.lT,disableCookies:b,newGuid:v,perfNow:g,newId:d.Si,randomValue:d.Z1,random32:d.VN,mwcRandomSeed:d.yc,mwcRandom32:d.k5,generateW3CId:m},_={Attach:u.Q3,AttachEvent:u.Q3,Detach:u.Ym,DetachEvent:u.Ym};function E(e,t){var n=(0,s.d5)(e,t),o=y._canUseCookies;return null===f&&(f=[],r=o,(0,l.r)(y,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,l.Iu)(f,(function(t){t[a.kt](e)}))}))),-1===(0,l.rD)(f,n)&&f[a.y5](n),(0,l.Lm)(o)&&n[a.kt](o),(0,l.Lm)(r)&&n[a.kt](r),n}function b(){E()[a.kt](!1)}function S(e){return E(null,e).isEnabled()}function T(e,t){return E(null,e).get(t)}function P(e,t,n,r){E(null,e).set(t,n,null,r)}function w(e,t){return E(null,e).del(t)}},2429:(e,t,n)=>{"use strict";n.d(t,{T:()=>h,Z:()=>f});var r=n(7245),o=n(3229),i=n(2504),a=n(5397),s=n(9668),c=r.KU,u="2.8.15",l="."+(0,s.Si)(6),p=0;function d(e){return 1===e[o.re]||9===e[o.re]||!+e[o.re]}function f(e,t){return void 0===t&&(t=!1),(0,i.cH)(e+p+++(t?"."+u:a.m5)+l)}function h(e){var t={id:f("_aiData-"+(e||a.m5)+"."+u),accept:function(e){return d(e)},get:function(e,n,r,o){var a=e[t.id];return a?a[(0,i.cH)(n)]:(o&&((a=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(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}(t,e))[(0,i.cH)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},8074:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,M:()=>l});var r,o=n(3229),i=n(8323),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function c(e,t){return function(){var n=arguments,r=u(t);if(r){var i=r.listener;i&&i[e]&&i[e][o.y9](i,n)}}}function u(e){var t,n=s;return n||!0===e.disableDbgExt||(n=s||((t=(0,i.EH)("Microsoft"))&&(s=t.ApplicationInsights),s)),n?n.ChromeDbgExt:null}function l(e){if(!r){r={};for(var t=0;t<a[o.oI];t++)r[a[t]]=c(a[t],e)}return r}},6392:(e,t,n)=>{"use strict";n.d(t,{OG:()=>g,Oc:()=>m,WD:()=>p,ZP:()=>v,wq:()=>f,y0:()=>d});var r=n(9284),o=n(3229),i=n(8074),a=n(8323),s=n(2504),c=n(5397);function u(e){return e?'"'+e[o.W7](/\"/g,c.m5)+'"':c.m5}function l(e,t){var n=(0,a.U5)();if(n){var r="log";n[e]&&(r=e),(0,s.Tn)(n[r])&&n[r](t)}}var p=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i[o.JR]=e,i[o.pM]=(n?"AI: ":"AI (Internal): ")+e;var s=c.m5;(0,a.Z)()&&(s=(0,a.hm)().stringify(r));var l=(t?" message:"+u(t):c.m5)+(r?" props:"+u(s):c.m5);i[o.pM]+=l}return e.dataType="MessageData",e}();function d(e,t){return(e||{})[o.Uw]||new f(t)}var f=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,u,d,f,h=0,v={};(0,r.A)(e,this,(function(e){function r(t,n){if(!(h>=d)){var r=!0,i="AITR_"+n[o.JR];if(v[i]?r=!1:v[i]=!0,r&&(t<=u&&(e.queue[o.y5](n),h++,g(1===t?"error":"warn",n)),h===d)){var a="Internal events throttle limit per PageView reached for this app.",s=new p(23,a,!1);e.queue[o.y5](s),1===t?e[c.Zi](a):e[c.Tj](a)}}}function g(e,n){var r=(0,i.$)(t||{});r&&r[o.e4]&&r[o.e4](e,n)}!function(e){n=(0,s.SA)(e.loggingLevelConsole,0),u=(0,s.SA)(e.loggingLevelTelemetry,1),d=(0,s.SA)(e.maxMessageLimit,25),f=(0,s.SA)(e.enableDebug,(0,s.SA)(e[o.a$],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return d},e[o.a$]=function(){return f},e.throwInternal=function(t,i,u,l,d){void 0===d&&(d=!1);var h=new p(i,u,d,l);if(f)throw(0,a.mm)(h);var m=1===t?c.Zi:c.Tj;if((0,s.b0)(h[o.pM]))g("throw"+(1===t?"Critical":"Warning"),h);else{if(d){var y=+h[o.JR];!v[y]&&n>=t&&(e[m](h[o.pM]),v[y]=!0)}else n>=t&&e[m](h[o.pM]);r(t,h)}},e[c.Tj]=function(e){l("warn",e),g("warning",e)},e[c.Zi]=function(e){l("error",e),g("error",e)},e.resetInternalMessageCount=function(){h=0,v={}},e[o.sx]=r}))}return e.__ieDyn=1,e}();function h(e){return e||new f}function v(e,t,n,r,o,i){void 0===i&&(i=!1),h(e).throwInternal(t,n,r,o,i)}function g(e,t){h(e)[c.Tj](t)}function m(e,t,n){h(e)[o.sx](t,n)}},8323:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>ne,EH:()=>x,FJ:()=>U,Iu:()=>re,JK:()=>F,L0:()=>K,MY:()=>G,PV:()=>Z,Pt:()=>oe,R7:()=>J,Sf:()=>ie,U5:()=>B,Uf:()=>Y,Vd:()=>R,Wt:()=>D,YE:()=>k,Z:()=>V,cU:()=>O,g$:()=>H,hm:()=>$,iN:()=>q,lT:()=>W,lV:()=>z,mm:()=>X,nr:()=>Q,sN:()=>ae,tw:()=>L,w3:()=>j,w9:()=>M,xk:()=>ee,zk:()=>N});var r=n(7245),o=n(9381),i=n(3229),a=n(2504),s=n(5397),c="window",u="document",l="documentMode",p="navigator",d="history",f="location",h="console",v="performance",g="JSON",m="crypto",y="msCrypto",_="ReactNative",E="msie",b="trident/",S="XMLHttpRequest",T=null,P=null,w=!1,C=null,A=null;function I(e,t){var n=!1;if(e){try{if(!(n=t in e)){var o=e[r.vR];o&&(n=t in o)}}catch(e){}if(!n)try{var i=new e;n=!(0,a.b0)(i[t])}catch(e){}}return n}function O(e){w=e}function x(e){var t=(0,o.mS)();return t&&t[e]?t[e]:e===c&&R()?window:null}function R(){return Boolean(typeof window===r._1&&window)}function N(){return R()?window:x(c)}function D(){return Boolean(typeof document===r._1&&document)}function k(){return D()?document:x(u)}function M(){return Boolean(typeof navigator===r._1&&navigator)}function j(){return M()?navigator:x(p)}function L(){return Boolean(typeof history===r._1&&history)}function F(){return L()?history:x(d)}function H(e){if(e&&w){var t=x("__mockLocation");if(t)return t}return typeof location===r._1&&location?location:x(f)}function B(){return typeof console!==r.bA?console:x(h)}function U(){return x(v)}function V(){return Boolean(typeof JSON===r._1&&JSON||null!==x(g))}function $(){return V()?JSON||x(g):null}function G(){return x(m)}function q(){return x(y)}function z(){var e=j();return!(!e||!e.product)&&e.product===_}function W(){var e=j();if(e&&(e[i.tX]!==P||null===T)){var t=((P=e[i.tX])||s.m5)[i.OL]();T=(0,a.Ju)(t,E)||(0,a.Ju)(t,b)}return T}function K(e){if(void 0===e&&(e=null),!e){var t=j()||{};e=t?(t[i.tX]||s.m5)[i.OL]():s.m5}var n=(e||s.m5)[i.OL]();if((0,a.Ju)(n,E)){var r=k()||{};return Math.max(parseInt(n[i.sY](E)[1]),r[l]||0)}if((0,a.Ju)(n,b)){var o=parseInt(n[i.sY](b)[1]);if(o)return o+4}return null}function X(e){var t=Object[r.vR].toString[i.Ek](e),n=s.m5;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[i.RS]+"'":V()&&(n=$().stringify(e)),t+n}function Q(e){if(!e||!(0,a.Kg)(e)){var t=j()||{};e=t?(t[i.tX]||s.m5)[i.OL]():s.m5}return(e||s.m5)[i.OL]()[i.Sj]("safari")>=0}function Y(){return null===A&&(A=M()&&Boolean(j().sendBeacon)),A}function J(e){var t=!1;try{t=!!x("fetch");var n=x("Request");t&&e&&n&&(t=I(n,"keepalive"))}catch(e){}return t}function Z(){return null===C&&(C=typeof XDomainRequest!==r.bA)&&ee()&&(C=C&&!I(x(S),"withCredentials")),C}function ee(){var e=!1;try{e=!!x(S)}catch(e){}return e}function te(e,t){if(e)for(var n=0;n<e[i.oI];n++){var r=e[n];if(r[i.RS]&&r[i.RS]===t)return r}return{}}function ne(e){var t=k();return t&&e?te(t.querySelectorAll("meta"),e).content:null}function re(e){var t,n=U();if(n){var r=n.getEntriesByType("navigation")||[];t=te((r[i.oI]>0?r[0]:{}).serverTiming,e).description}return t}function oe(e,t){return!!(e&&e.dispatchEvent&&t)&&(e.dispatchEvent(t),!0)}function ie(e,t){var n=null,r={detail:t||null};if((0,a.Tn)(CustomEvent))n=new CustomEvent(e,r);else{var o=k();o&&o.createEvent&&(n=o.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r)}return n}function ae(e,t,n){var r=(0,o.mS)();if(r&&r.CustomEvent)try{return oe(r,ie(e,{cfg:t||null,customDetails:n||null}))}catch(e){}return!1}},4838:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>$,El:()=>I,Fc:()=>G,Hm:()=>N,ML:()=>k,Q3:()=>M,So:()=>L,Wg:()=>U,Ym:()=>j,ee:()=>V,lQ:()=>B,mB:()=>D,oS:()=>z,sq:()=>q,vF:()=>W,zh:()=>F});var r=n(3229),o=n(2429),i=n(8323),a=n(2504),s=n(5397),c="on",u="attachEvent",l="addEventListener",p="detachEvent",d="removeEventListener",f="events",h="visibilitychange",v="pagehide",g="pageshow",m="unload",y="beforeunload",_=(0,o.Z)("aiEvtPageHide"),E=(0,o.Z)("aiEvtPageShow"),b=/\.[\.]+/g,S=/[\.]+$/,T=1,P=(0,o.T)("events"),w=/^([^.]*)(?:\.(.+)|)/;function C(e){return e&&e[r.W7]?e[r.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.m5):e}function A(e,t){var n;if(t){var o=s.m5;(0,a.cy)(t)?(o=s.m5,(0,a.Iu)(t,(function(e){(e=C(e))&&("."!==e[0]&&(e="."+e),o+=e)}))):o=C(t),o&&("."!==o[0]&&(o="."+o),e=(e||s.m5)+o)}var i=w.exec(e||s.m5)||[];return(n={})[r.QM]=i[1],n.ns=(i[2]||s.m5).replace(b,".").replace(S,s.m5)[r.sY](".").sort().join("."),n}function I(e,t,n){var o=[],i=P.get(e,f,{},!1),c=A(t,n);return(0,a.z)(i,(function(e,t){(0,a.Iu)(t,(function(e){var t;c[r.QM]&&c[r.QM]!==e.evtName[r.QM]||c.ns&&c.ns!=c.ns||o[r.y5](((t={})[r.RS]=e.evtName[r.QM]+(e.evtName.ns?"."+e.evtName.ns:s.m5),t.handler=e[r.Yo],t))}))})),o}function O(e,t,n){void 0===n&&(n=!0);var r=P.get(e,f,{},n),o=r[t];return o||(o=r[t]=[]),o}function x(e,t,n,o){e&&t&&t[r.QM]&&(e[d]?e[d](t[r.QM],n,o):e[p]&&e[p](c+t[r.QM],n))}function R(e,t,n,o){for(var i=t[r.oI];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||o&&!o(a)||(x(e,a.evtName,a[r.Yo],a.capture),t[r.Ic](i,1)))}}function N(e,t){return t?A("xx",(0,a.cy)(t)?[e].concat(t):[e,t]).ns[r.sY]("."):e}function D(e,t,n,o,i){var a;void 0===i&&(i=!1);var s=!1;if(e)try{var p=A(t,o);if(s=function(e,t,n,o){var i=!1;return e&&t&&t[r.QM]&&n&&(e[l]?(e[l](t[r.QM],n,o),i=!0):e[u]&&(e[u](c+t[r.QM],n),i=!0)),i}(e,p,n,i),s&&P.accept(e)){var d=((a={guid:T++,evtName:p})[r.Yo]=n,a.capture=i,a);O(e,p.type)[r.y5](d)}}catch(e){}return s}function k(e,t,n,o,i){if(void 0===i&&(i=!1),e)try{var s=A(t,o),c=!1;!function(e,t,n){if(t[r.QM])R(e,O(e,t[r.QM]),t,n);else{var o=P.get(e,f,{});(0,a.z)(o,(function(r,o){R(e,o,t,n)})),0===(0,a.cG)(o)[r.oI]&&P.kill(e,f)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Yo]!==n||(c=!0,0))})),c||x(e,s,n,i)}catch(e){}}function M(e,t,n,r){return void 0===r&&(r=!1),D(e,t,n,null,r)}function j(e,t,n,r){void 0===r&&(r=!1),k(e,t,n,null,r)}function L(e,t,n){var r=!1,o=(0,i.zk)();o&&(r=D(o,e,t,n),r=D(o.body,e,t,n)||r);var a=(0,i.YE)();return a&&(r=D(a,e,t,n)||r),r}function F(e,t,n){var r=(0,i.zk)();r&&(k(r,e,t,n),k(r.body,e,t,n));var o=(0,i.YE)();o&&k(o,e,t,n)}function H(e,t,n,o){var i=!1;return t&&e&&e[r.oI]>0&&(0,a.Iu)(e,(function(e){e&&(n&&-1!==(0,a.rD)(n,e)||(i=L(e,t,o)||i))})),i}function B(e,t,n,o){var i=!1;return t&&e&&(0,a.cy)(e)&&!(i=H(e,t,n,o))&&n&&n[r.oI]>0&&(i=H(e,t,null,o)),i}function U(e,t,n){e&&(0,a.cy)(e)&&(0,a.Iu)(e,(function(e){e&&F(e,t,n)}))}function V(e,t,n){return B([y,m,v],e,t,n)}function $(e,t){U([y,m,v],e,t)}function G(e,t,n){var r=N(_,n),o=H([v],e,t,r);return t&&-1!==(0,a.rD)(t,h)||(o=H([h],(function(t){var n=(0,i.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=G(e,null,n)),o}function q(e,t){var n=N(_,t);U([v],e,n),U([h],null,n)}function z(e,t,n){var r=N(E,n),o=H([g],e,t,r);return!(o=H([h],(function(t){var n=(0,i.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=z(e,null,n)),o}function W(e,t){var n=N(E,t);U([g],e,n),U([h],null,n)}},2504:(e,t,n)=>{"use strict";n.d(t,{$8:()=>Pe,$P:()=>X,Bm:()=>te,CP:()=>Re,Cv:()=>z,EA:()=>F,EH:()=>ce,Ed:()=>j,Et:()=>Z,Gh:()=>B,Gv:()=>V,Iu:()=>oe,Ju:()=>K,KT:()=>se,KY:()=>_e,Kg:()=>J,Lm:()=>ee,N6:()=>ve,Qd:()=>ne,RF:()=>Ae,SA:()=>be,SZ:()=>Oe,Tn:()=>$,W$:()=>ae,_u:()=>re,b0:()=>L,bJ:()=>Y,c2:()=>Ee,cG:()=>pe,cH:()=>G,cy:()=>Q,fw:()=>k,hW:()=>xe,hX:()=>H,js:()=>ge,lL:()=>ye,mQ:()=>U,o$:()=>Ie,ol:()=>he,qz:()=>Ce,r:()=>de,rD:()=>ie,tG:()=>W,wo:()=>Se,x3:()=>me,z:()=>q,zC:()=>M,zz:()=>Te});var r=n(7245),o=n(9381),i=n(3229),a=n(5397),s="toISOString",c="endsWith",u="startsWith",l="indexOf",p="map",d="reduce",f="trim",h="toString",v="__proto__",g="constructor",m=r.KU,y=r.s6.freeze,_=r.s6.seal,E=r.s6.keys,b=String[r.vR],S=b[f],T=b[c],P=b[u],w=Date[r.vR][s],C=Array.isArray,A=r.Wy[h],I=r.J$[h],O=I[i.Ek](r.s6),x=/-([a-z])/g,R=/([^\w\d_$])/g,N=/^(\d+[\w\d_$])/,D=Object.getPrototypeOf;function k(e){if(e){if(D)return D(e);var t=e[v]||e[r.vR]||e[g];if(t)return t}return null}function M(e){return A[i.Ek](e)}function j(e,t){return typeof e===t}function L(e){return void 0===e||typeof e===r.bA}function F(e){return!L(e)}function H(e){return null===e||L(e)}function B(e){return!H(e)}function U(e,t){return!(!e||!r.J$[i.Ek](e,t))}function V(e){return!(!e||typeof e!==r._1)}function $(e){return!(!e||typeof e!==r.hW)}function G(e){var t=e;return t&&J(t)&&(t=(t=(t=t[i.W7](x,(function(e,t){return t.toUpperCase()})))[i.W7](R,"_"))[i.W7](N,(function(e,t){return"_"+t}))),t}function q(e,t){if(e)for(var n in e)r.J$[i.Ek](e,n)&&t[i.Ek](e,n,e[n])}function z(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=T?e[c](t):function(e,t){var n=!1,r=t?t[i.oI]:0,o=e?e[i.oI]:0;if(r&&o&&o>=r&&!(n=e===t)){for(var a=o-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function W(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=P?e[u](t):function(e,t){var n=!1,r=t?t[i.oI]:0;if(e&&r&&e[i.oI]>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}(e,t)),n}function K(e,t){return!(!e||!t)&&-1!==e[i.Sj](t)}function X(e){return!(!e||"[object Date]"!==A[i.Ek](e))}var Q=C||function(e){return!(!e||"[object Array]"!==A[i.Ek](e))};function Y(e){return!(!e||"[object Error]"!==A[i.Ek](e))}function J(e){return"string"==typeof e}function Z(e){return"number"==typeof e}function ee(e){return"boolean"==typeof e}function te(e){return"symbol"==typeof e}function ne(e){var t=!1;if(e&&"object"==typeof e){var n=D?D(e):k(e);n?(n[g]&&r.J$[i.Ek](n,g)&&(n=n[g]),t=typeof n===r.hW&&I[i.Ek](n)===O):t=!0}return t}function re(e){if(e)return w?e[s]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[i.oI]&&(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 oe(e,t,n){var r=e[i.oI];try{for(var o=0;o<r&&(!(o in e)||-1!==t[i.Ek](n||e,e[o],o,e));o++);}catch(e){}}function ie(e,t,n){if(e){if(e[l])return e[l](t,n);var r=e[i.oI],o=n||0;try{for(var a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(e){}}return-1}function ae(e,t,n){var r;if(e){if(e[p])return e[p](t,n);var o=e[i.oI],a=n||e;r=new Array(o);try{for(var s=0;s<o;s++)s in e&&(r[s]=t[i.Ek](a,e[s],e))}catch(e){}}return r}function se(e,t,n){var r;if(e){if(e[d])return e[d](t,n);var o=e[i.oI],a=0;if(arguments[i.oI]>=3)r=arguments[2];else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++}return r}function ce(e){return e&&(e=S&&e[f]?e[f]():e[i.W7]?e[i.W7](/^\s+|(?=\s)\s+$/g,a.m5):e),e}var ue=!{toString:null}.propertyIsEnumerable("toString"),le=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function pe(e){var t=typeof e;if(t===r.hW||t===r._1&&null!==e||(0,o.zk)("objKeys called on non-object"),!ue&&E)return E(e);var n=[];for(var a in e)e&&r.J$[i.Ek](e,a)&&n[i.y5](a);if(ue)for(var s=le[i.oI],c=0;c<s;c++)e&&r.J$[i.Ek](e,le[c])&&n[i.y5](le[c]);return n}function de(e,t,n,r){if(m)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),m(e,t,o),!0}catch(e){}return!1}function fe(e){return e}function he(e){return y&&q(e,(function(e,t){(Q(t)||V(t))&&y(t)})),ve(e)}var ve=y||fe,ge=_||fe;function me(){var e=Date;return e.now?e.now():(new e).getTime()}function ye(e){return Y(e)?e[i.RS]:a.m5}function _e(e,t,n,r,o){var i=n;return e&&((i=e[t])===n||o&&!o(i)||r&&!r(n)||(i=n,e[t]=i)),i}function Ee(e,t,n){var r;return e?!(r=e[t])&&H(r)&&(r=L(n)?{}:n,e[t]=r):r=L(n)?{}:n,r}function be(e,t){return H(e)?t:e}function Se(e){return!e}function Te(e){return!!e}function Pe(e){throw new Error(e)}function we(e,t){var n=null,r=null;return $(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][i.y9](r,e)}}function Ce(e,t,n){if(e&&t&&V(e)&&V(t)){var r=function(r){if(J(r)){var o=t[r];$(o)?n&&!n(r,!0,t,e)||(e[r]=we(t,r)):n&&!n(r,!1,t,e)||(U(e,r)&&delete e[r],de(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=o))}};for(var o in t)r(o)}return e}function Ae(e,t,n,r,o){e&&t&&n&&(!1!==o||L(e[t]))&&(e[t]=we(n,r))}function Ie(e,t,n,r){return e&&t&&V(e)&&Q(n)&&oe(n,(function(n){J(n)&&Ae(e,n,t,n,r)})),e}function Oe(e){return function(){var t=this;e&&q(e,(function(e,n){t[e]=n}))}}function xe(e){return e&&r.zi&&(e=(0,r.s6)((0,r.zi)({},e))),e}function Re(e,t,n,o,a,s){var c=arguments,u=c[0]||{},l=c[i.oI],p=!1,d=1;for(l>0&&ee(u)&&(p=u,u=c[d]||{},d++),V(u)||(u={});d<l;d++){var f=c[d],h=Q(f),v=V(f);for(var g in f)if(h&&g in f||v&&r.J$[i.Ek](f,g)){var m=f[g],y=void 0;if(p&&m&&((y=Q(m))||ne(m))){var _=u[g];y?Q(_)||(_=[]):ne(_)||(_={}),m=Re(p,_,m)}void 0!==m&&(u[g]=m)}}return u}},5397:(e,t,n)=>{"use strict";n.d(t,{Bw:()=>c,Hr:()=>s,LZ:()=>o,Tj:()=>m,Vo:()=>p,Yd:()=>a,Yp:()=>f,Zi:()=>g,dI:()=>h,eT:()=>i,fc:()=>d,jy:()=>u,kI:()=>y,l0:()=>v,m5:()=>r,qT:()=>l});var r="",o="channels",i="core",a="createPerfMgr",s="disabled",c="extensionConfig",u="extensions",l="processTelemetry",p="priority",d="eventsSent",f="eventsDiscarded",h="eventsSendRequest",v="perfEvent",g="errorToConsole",m="warnToConsole",y="getPerfMgr"},4013:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(9284),o=n(3229),i=n(2504),a=n(5397);function s(e,t,n,r){(0,i.Iu)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var c=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,r.A)(e,this,(function(e){e[o.vR]=function(t){e.listeners[o.y5](t)},e[o.TP]=function(t){for(var n=(0,i.rD)(e[o.lJ],t);n>-1;)e.listeners[o.Ic](n,1),n=(0,i.rD)(e[o.lJ],t)},e[a.fc]=function(t){s(e[o.lJ],a.fc,!0,(function(e){e[a.fc](t)}))},e[a.Yp]=function(t,n){s(e[o.lJ],a.Yp,!0,(function(e){e[a.Yp](t,n)}))},e[a.dI]=function(t,n){s(e[o.lJ],a.dI,n,(function(e){e[a.dI](t,n)}))},e[a.l0]=function(t){t&&(!n&&t[o.Zu]()||s(e[o.lJ],a.l0,!1,(function(e){t[o.tI]?setTimeout((function(){return e[a.l0](t)}),0):e[a.l0](t)})))}}))}return e.__ieDyn=1,e}()},5441:(e,t,n)=>{"use strict";n.d(t,{NS:()=>d,Q6:()=>p,Z4:()=>g,jv:()=>v,r2:()=>h});var r=n(9284),o=n(3229),i=n(2504),a=n(5397),s="ctx",c="ParentContextKey",u="ChildrenContextKey",l=null,p=function(){function e(t,n,r){var a,l=this,p=!1;l.start=(0,i.x3)(),l[o.RS]=t,l[o.tI]=r,l[o.Zu]=function(){return!1},(0,i.Tn)(n)&&(p=(0,i.r)(l,"payload",(function(){return!a&&(0,i.Tn)(n)&&(a=n(),n=null),a}))),l[o.O_]=function(t){return t?t===e[c]||t===e[u]?l[t]:(l[s]||{})[t]:null},l[o.e_]=function(t,n){t&&(t===e[c]?(l[t]||(l[o.Zu]=function(){return!0}),l[t]=n):t===e[u]?l[t]=n:(l[s]=l[s]||{})[t]=n)},l[o.Ru]=function(){var t=0,r=l[o.O_](e[u]);if((0,i.cy)(r))for(var a=0;a<r[o.oI];a++){var s=r[a];s&&(t+=s[o.fA])}l[o.fA]=(0,i.x3)()-l.start,l.exTime=l[o.fA]-t,l[o.Ru]=function(){},!p&&(0,i.Tn)(n)&&(l.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),d=function(){function e(t){this.ctx={},(0,r.A)(e,this,(function(e){e.create=function(e,t,n){return new p(e,t,n)},e.fire=function(e){e&&(e[o.Ru](),t&&(0,i.Tn)(t[a.l0])&&t[a.l0](e))},e[o.e_]=function(t,n){t&&((e[s]=e[s]||{})[t]=n)},e[o.O_]=function(t){return(e[s]||{})[t]}}))}return e.__ieDyn=1,e}(),f="CoreUtils.doPerf";function h(e,t,n,r,i){if(e){var s=e;if(s[a.kI]&&(s=s[a.kI]()),s){var l=void 0,d=s[o.O_](f);try{if(l=s.create(t(),r,i)){if(d&&l[o.e_]&&(l[o.e_](p[c],d),d[o.O_]&&d[o.e_])){var h=d[o.O_](p[u]);h||(h=[],d[o.e_](p[u],h)),h[o.y5](l)}return s[o.e_](f,l),n(l)}}catch(e){l&&l[o.e_]&&l[o.e_]("exception",e)}finally{l&&s.fire(l),s[o.e_](f,d)}}}return n()}function v(e){l=e}function g(){return l}},8012:(e,t,n)=>{"use strict";n.d(t,{PV:()=>y,W0:()=>_,i8:()=>v,nU:()=>m,tS:()=>g});var r=n(3229),o=n(6392),i=n(8323),a=n(2504),s=n(5397),c=n(5441),u=n(1267),l="TelemetryPluginChain",p="_hasRun",d="_getTelCtx",f=0;function h(e,t,n,c){var u=null,l=[];null!==c&&(u=c?function(e,t,n){for(;e;){if(e[r.AP]()===n)return e;e=e[r.uR]()}return y([n],t[r.GA]||{},t)}(e,n,c):e);var p={_next:function(){var e=u;if(u=e?e[r.uR]():null,!e){var t=l;t&&t[r.oI]>0&&((0,a.Iu)(t,(function(e){try{e.func[r.Ek](e.self,e.args)}catch(e){(0,o.ZP)(n[r.Uw],2,73,"Unexpected Exception during onComplete - "+(0,i.mm)(e))}})),l=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,o.y0)(n,t)},getCfg:function(){return t},getExtCfg:d,getConfig:function(e,n,r){void 0===r&&(r=!1);var o,i=d(e,null);return i&&!(0,a.hX)(i[n])?o=i[n]:t&&!(0,a.hX)(t[n])&&(o=t[n]),(0,a.hX)(o)?r:o},hasNext:function(){return!!u},getNext:function(){return u},setNext:function(e){u=e},iterate:function(e){for(var t;t=p._next();){var n=t[r.AP]();n&&e(n)}},onComplete:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e&&l[r.y5]({func:e,self:(0,a.b0)(t)?p.ctx:t,args:n})}}};function d(e,n,r){var o;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var i=t[s.Bw];i&&e&&(o=i[e])}if(o){if((0,a.Gv)(n)&&0!==r){var c=(0,a.CP)(!0,n,o);t&&2===r&&(0,a.z)(n,(function(e){if((0,a.hX)(c[e])){var n=t[e];(0,a.hX)(n)||(c[e]=n)}})),o=c}}else o=n;return o}return p}function v(e,t,n,o){var i=h(e,t,n,o),c=i.ctx;return c[r.$5]=function(e){var t=i._next();return t&&t[s.qT](e,c),!t},c[r.$o]=function(e,o){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=y(e,t,n,o)),v(e||c[r.uR](),t,n,o)},c}function g(e,t,n){var o=t[r.GA]||{},i=h(e,o,t,n),s=i.ctx;return s[r.$5]=function(e){var t=i._next();return t&&t.unload(s,e),!t},s[r.$o]=function(e,n){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=y(e,o,t,n)),g(e||s[r.uR](),t,n)},s}function m(e,t,n){var o=t[r.GA]||{},i=h(e,o,t,n).ctx;return i[r.$5]=function(e){return i.iterate((function(t){(0,a.Tn)(t[r.HC])&&t[r.HC](i,e)}))},i[r.$o]=function(e,n){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=y(e,o,t,n)),m(e||i[r.uR](),t,n)},i}function y(e,t,n,h){var g=null,m=!h;if((0,a.cy)(e)&&e[r.oI]>0){var _=null;(0,a.Iu)(e,(function(e){if(m||h!==e||(m=!0),m&&e&&(0,a.Tn)(e[s.qT])){var y=function(e,t,n){var h,g=null,m=(0,a.Tn)(e[s.qT]),y=(0,a.Tn)(e[r.YH]),_={getPlugin:function(){return e},getNext:function(){return g},processTelemetry:function(o,i){E(i=i||function(){var r;return e&&(0,a.Tn)(e[d])&&(r=e[d]()),r||(r=v(_,t,n)),r}(),(function(t){if(!e||!m)return!1;var n=(0,u.Cr)(e);return!n[r.Ik]&&!n[s.Hr]&&(y&&e[r.YH](g),e[s.qT](o,t),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||i[r.$5](o)},unload:function(t,n){E(t,(function(){var o=!1;if(e){var i=(0,u.Cr)(e),a=e[s.eT]||i[s.eT];!e||a&&a!==t.core()||i[r.Ik]||(i[s.eT]=null,i[r.Ik]=!0,i[r.tZ]=!1,e[r.Ik]&&!0===e[r.Ik](t,n)&&(o=!0))}return o}),"unload",(function(){}),n[r.tI])||t[r.$5](n)},update:function(t,n){E(t,(function(){var o=!1;if(e){var i=(0,u.Cr)(e),a=e[s.eT]||i[s.eT];!e||a&&a!==t.core()||i[r.Ik]||e[r.HC]&&!0===e[r.HC](t,n)&&(o=!0)}return o}),"update",(function(){}),!1)||t[r.$5](n)},_id:h=e?e[r.Ju]+"-"+e[s.Vo]+"-"+f++:"Unknown-0-"+f++,_setNext:function(e){g=e}};function E(t,n,a,u,d){var f=!1,v=e?e[r.Ju]:l,m=t[p];return m||(m=t[p]={}),t.setNext(g),e&&(0,c.r2)(t[s.eT](),(function(){return v+":"+a}),(function(){m[h]=!0;try{var e=g?g._id:s.m5;e&&(m[e]=!1),f=n(t)}catch(e){var c=!g||m[g._id];c&&(f=!0),g&&c||(0,o.ZP)(t[r.e4](),1,73,"Plugin ["+v+"] failed during "+a+" - "+(0,i.mm)(e)+", run flags: "+(0,i.mm)(m))}}),u,d),f}return(0,a.N6)(_)}(e,t,n);g||(g=y),_&&_._setNext(y),_=y}}))}return h&&!g?y([h],t,n):g}var _=function(e,t,n,r){var o=v(e,t,n,r);(0,a.o$)(this,o,(0,a.cG)(o))}},9668:(e,t,n)=>{"use strict";n.d(t,{Si:()=>y,VN:()=>v,Z1:()=>h,k5:()=>m,yc:()=>g});var r=n(3229),o=n(8323),i=n(2504),a=n(5397),s=4294967296,c=4294967295,u=!1,l=123456789,p=987654321;function d(e){e<0&&(e>>>=0),l=123456789+e&c,p=987654321-e&c,u=!0}function f(){try{var e=2147483647&(0,i.x3)();d((Math.random()*s^e)+e)}catch(e){}}function h(e){return e>0?Math.floor(v()/c*(e+1))>>>0:0}function v(e){var t=0,n=(0,o.MY)()||(0,o.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,o.lT)()&&(u||f(),t=m()&c),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function g(e){e?d(e):f()}function m(e){var t=((p=36969*(65535&p)+(p>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=v()>>>0,n=0,o=a.m5;o[r.oI]<e;)n++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(v()<<2&4294967295|3&t)>>>0,n=0);return o}},1267:(e,t,n)=>{"use strict";n.d(t,{Cr:()=>u,Xc:()=>p,pI:()=>l,s4:()=>d,u7:()=>f});var r=n(3229),o=n(2429),i=n(2504),a=n(5397),s=n(2675),c=(0,o.T)("plugin");function u(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,o=[],s=null,c=e[r.uR]();c;){var l=c[r.AP]();l&&(s&&(0,i.Tn)(s[r.YH])&&(0,i.Tn)(l[a.qT])&&s[r.YH](l),((0,i.Tn)(l[r.tZ])?l[r.tZ]():(n=u(l))[r.tZ])||o[r.y5](l),s=l,c=c[r.uR]())}(0,i.Iu)(o,(function(o){var i=e[a.eT]();o[r.mE](e.getCfg(),i,t,e[r.uR]()),n=u(o),o[a.eT]||n[a.eT]||(n[a.eT]=i),n[r.tZ]=!0,delete n[r.Ik]}))}function p(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,i.Tn)(t[a.qT]);(0,i.Tn)(e[a.qT])?n=r?e[a.Vo]-t[a.Vo]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function d(e,t,n,o){var a=0;return function o(){for(;a<e[r.oI];){var s=e[a++];if(s){var c=s._doUnload||s[r.tn];if((0,i.Tn)(c)&&!0===c[r.Ek](s,t,n,o))return!0}}}()}function f(e){var t={};return{getName:function(){return t[r.RS]},setName:function(n){e&&e.setName(n),t[r.RS]=n},getTraceId:function(){return t[r.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.hX)(n)&&(t[r.P5]=n)},getSpanId:function(){return t[r.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.wN)(n)&&(t[r.wi]=n)},getTraceFlags:function(){return t[r.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.Rr]=n}}}},2755:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(3229),o=n(6392),i=n(8323),a=n(2504);function s(){var e=[];return{add:function(t){t&&e[r.y5](t)},run:function(t,n){(0,a.Iu)(e,(function(e){try{e(t,n)}catch(e){(0,o.ZP)(t[r.e4](),2,73,"Unexpected error calling unload handler - "+(0,i.mm)(e))}})),e=[]}}}},2675:(e,t,n)=>{"use strict";n.d(t,{L0:()=>S,N7:()=>b,ZI:()=>m,ef:()=>T,hX:()=>y,mJ:()=>E,wN:()=>_,wk:()=>g});var r=n(3229),o=n(5955),i=n(8323),a=n(2504),s=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,c="00",u="ff",l="00000000000000000000000000000000",p="0000000000000000",d=1;function f(e,t,n){return!(!e||e[r.oI]!==t||e===n||!e.match(/^[\da-f]*$/))}function h(e,t,n){return f(e,t)?e:n}function v(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.oI]<2;)t="0"+t;return t}function g(e,t,n,i){var a;return(a={})[r.s]=f(i,2,u)?i:c,a[r.P5]=y(e)?e:(0,o.cL)(),a.spanId=_(t)?t:(0,o.cL)()[r.$4](0,16),a.traceFlags=n>=0&&n<=255?n:1,a}function m(e){var t;if(!e)return null;if((0,a.cy)(e)&&(e=e[0]||""),!e||!(0,a.Kg)(e)||e[r.oI]>8192)return null;var n=s.exec((0,a.EH)(e));return n&&n[1]!==u&&n[2]!==l&&n[3]!==p?((t={})[r.s]=n[1],t[r.P5]=n[2],t[r.wi]=n[3],t[r.Rr]=parseInt(n[4],16),t):null}function y(e){return f(e,32,l)}function _(e){return f(e,16,p)}function E(e){return!!(e&&f(e[r.s],2,u)&&f(e[r.P5],32,l)&&f(e[r.wi],16,p)&&f(v(e[r.Rr]),2))}function b(e){return!!E(e)&&(e[r.Rr]&d)===d}function S(e){if(e){var t=v(e[r.Rr]);f(t,2)||(t="01");var n=e[r.s]||c;return"00"!==n&&"ff"!==n&&(n=c),"".concat(n,"-").concat(h(e.traceId,32,l),"-").concat(h(e.spanId,16,p),"-").concat(t)}return""}function T(){var e="traceparent",t=m((0,i.$Z)(e));return t||(t=m((0,i.Iu)(e))),t}},3229:(e,t,n)=>{"use strict";n.d(t,{$4:()=>B,$5:()=>h,$o:()=>D,AP:()=>E,Di:()=>y,EX:()=>b,Ek:()=>W,GA:()=>u,H7:()=>S,HC:()=>O,Ic:()=>T,Ik:()=>P,JR:()=>w,Ju:()=>a,OL:()=>z,O_:()=>J,P5:()=>te,QM:()=>K,RF:()=>i,RS:()=>o,Re:()=>j,Rr:()=>re,Ru:()=>ee,Sj:()=>M,TP:()=>m,Uw:()=>p,W7:()=>$,YH:()=>N,Yo:()=>X,Zu:()=>Y,a$:()=>G,by:()=>_,e4:()=>R,e_:()=>Z,fA:()=>f,kt:()=>H,lJ:()=>Q,lK:()=>k,mE:()=>r,oI:()=>d,pM:()=>C,ps:()=>v,re:()=>U,s:()=>oe,sY:()=>F,sl:()=>l,sx:()=>q,tI:()=>A,tX:()=>L,tZ:()=>c,tn:()=>I,uR:()=>x,vR:()=>g,wi:()=>ne,y5:()=>s,y9:()=>V});var r="initialize",o="name",i="getNotifyMgr",a="identifier",s="push",c="isInitialized",u="config",l="instrumentationKey",p="logger",d="length",f="time",h="processNext",v="getProcessTelContext",g="addNotificationListener",m="removeNotificationListener",y="stopPollingInternalLogs",_="onComplete",E="getPlugin",b="flush",S="_extensions",T="splice",P="teardown",w="messageId",C="message",A="isAsync",I="_doTeardown",O="update",x="getNext",R="diagLog",N="setNextPlugin",D="createNew",k="cookieCfg",M="indexOf",j="substring",L="userAgent",F="split",H="setEnabled",B="substr",U="nodeType",V="apply",$="replace",G="enableDebugExceptions",q="logInternalMessage",z="toLowerCase",W="call",K="type",X="handler",Q="listeners",Y="isChildEvt",J="getCtx",Z="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",oe="version"},3695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>i._,BaseCore:()=>a.F,BaseTelemetryPlugin:()=>s.s,CoreUtils:()=>u.jS,DiagnosticLogger:()=>y.wq,EventHelper:()=>u.fs,EventsDiscardedReason:()=>o.x,InstrumentEvent:()=>D,InstrumentFunc:()=>R,InstrumentFuncs:()=>N,InstrumentProto:()=>I,InstrumentProtos:()=>O,LoggingSeverity:()=>b.b,MinChannelPriorty:()=>r.T,NotificationManager:()=>g.h,PerfEvent:()=>m.Q6,PerfManager:()=>m.NS,ProcessTelemetryContext:()=>_.W0,Undefined:()=>u.rK,_InternalLogMessage:()=>y.WD,_InternalMessageId:()=>b.$,__getRegisteredEvents:()=>d.El,_legacyCookieMgr:()=>u.Rb,_logInternalMessage:()=>y.Oc,_throwInternal:()=>y.ZP,_warnToConsole:()=>y.OG,addEventHandler:()=>d.So,addEventListeners:()=>d.lQ,addPageHideEventListener:()=>d.Fc,addPageShowEventListener:()=>d.oS,addPageUnloadEventListener:()=>d.ee,areCookiesSupported:()=>k.gi,arrForEach:()=>l.Iu,arrIndexOf:()=>l.rD,arrMap:()=>l.W$,arrReduce:()=>l.KT,attachEvent:()=>d.Q3,canUseCookies:()=>u.ht,createClassFromInterface:()=>l.SZ,createCookieMgr:()=>k.xN,createCustomDomEvent:()=>f.Sf,createEnumMap:()=>p.oc,createEnumStyle:()=>p.Hj,createProcessTelemetryContext:()=>_.i8,createTraceParent:()=>F.wk,createUniqueNamespace:()=>j.Z,createUnloadHandlerContainer:()=>L.P,createValueMap:()=>p.oP,dateNow:()=>l.x3,deepFreeze:()=>l.ol,deleteCookie:()=>u.Yj,detachEvent:()=>d.Ym,disableCookies:()=>u.WD,dispatchEvent:()=>f.Pt,doPerf:()=>m.r2,dumpObj:()=>f.mm,eventOff:()=>d.ML,eventOn:()=>d.mB,findMetaTag:()=>f.$Z,findNamedServerTiming:()=>f.Iu,findW3cTraceParent:()=>F.ef,formatTraceParent:()=>F.L0,generateW3CId:()=>u.cL,getConsole:()=>f.U5,getCookie:()=>u.Ri,getCrypto:()=>f.MY,getDebugExt:()=>M.$,getDebugListener:()=>M.M,getDocument:()=>f.YE,getExceptionName:()=>l.lL,getGblPerfMgr:()=>m.Z4,getGlobal:()=>h.mS,getGlobalInst:()=>f.EH,getHistory:()=>f.JK,getIEVersion:()=>f.L0,getJSON:()=>f.hm,getLocation:()=>f.g$,getMsCrypto:()=>f.iN,getNavigator:()=>f.w3,getPerformance:()=>f.FJ,getSetValue:()=>l.c2,getWindow:()=>f.zk,hasDocument:()=>f.Wt,hasHistory:()=>f.tw,hasJSON:()=>f.Z,hasNavigator:()=>f.w9,hasOwnProperty:()=>l.mQ,hasWindow:()=>f.Vd,initializePlugins:()=>E.pI,isArray:()=>l.cy,isBeaconsSupported:()=>f.Uf,isBoolean:()=>l.Lm,isDate:()=>l.$P,isError:()=>l.bJ,isFetchSupported:()=>f.R7,isFunction:()=>l.Tn,isIE:()=>f.lT,isNotNullOrUndefined:()=>l.Gh,isNotTruthy:()=>l.wo,isNotUndefined:()=>l.EA,isNullOrUndefined:()=>l.hX,isNumber:()=>l.Et,isObject:()=>l.Gv,isPlainObject:()=>l.Qd,isReactNative:()=>f.lV,isSafari:()=>f.nr,isSampledFlag:()=>F.N7,isString:()=>l.Kg,isSymbol:()=>l.Bm,isTruthy:()=>l.zz,isTypeof:()=>l.Ed,isUndefined:()=>l.b0,isValidSpanId:()=>F.wN,isValidTraceId:()=>F.hX,isValidTraceParent:()=>F.mJ,isXhrSupported:()=>f.xk,mergeEvtNamespace:()=>d.Hm,mwcRandom32:()=>c.k5,mwcRandomSeed:()=>c.yc,newGuid:()=>u.aq,newId:()=>c.Si,normalizeJsName:()=>l.cH,objCreate:()=>h.AQ,objDefineAccessors:()=>l.r,objExtend:()=>l.CP,objForEachKey:()=>l.z,objFreeze:()=>l.N6,objKeys:()=>l.cG,objSeal:()=>l.js,objToString:()=>l.zC,optimizeObject:()=>l.hW,parseTraceParent:()=>F.ZI,perfNow:()=>u.UU,proxyAssign:()=>l.qz,proxyFunctionAs:()=>l.RF,proxyFunctions:()=>l.o$,random32:()=>c.VN,randomValue:()=>c.Z1,removeEventHandler:()=>d.zh,removeEventListeners:()=>d.Wg,removePageHideEventListener:()=>d.sq,removePageShowEventListener:()=>d.vF,removePageUnloadEventListener:()=>d.Ds,safeGetCookieMgr:()=>k.um,safeGetLogger:()=>y.y0,sendCustomEvent:()=>f.sN,setCookie:()=>u.TV,setEnableEnvMocks:()=>f.cU,setGblPerfMgr:()=>m.jv,setValue:()=>l.KY,sortPlugins:()=>E.Xc,strContains:()=>l.Ju,strEndsWith:()=>l.Cv,strFunction:()=>v.hW,strObject:()=>v._1,strPrototype:()=>v.vR,strStartsWith:()=>l.tG,strTrim:()=>l.EH,strUndefined:()=>v.bA,throwError:()=>l.$8,toISOString:()=>l._u,uaDisallowsSameSiteNone:()=>k.It,unloadComponents:()=>E.s4,useXDomainRequest:()=>f.PV});var r=n(8963),o=n(4343),i=n(6382),a=n(3227),s=n(7428),c=n(9668),u=n(5955),l=n(2504),p=n(3435),d=n(4838),f=n(8323),h=n(9381),v=n(7245),g=n(4013),m=n(5441),y=n(6392),_=n(8012),E=n(1267),b=n(6166),S=n(3229),T="_aiHooks",P=["req","rsp","hkErr","fnErr"];function w(e,t){if(e)for(var n=0;n<e[S.oI]&&!t(e[n],n);n++);}function C(e,t,n,r,o){o>=0&&o<=2&&w(e,(function(e,i){var a=e.cbks,s=a[P[o]];if(s){t.ctx=function(){return r[i]=r[i]||{}};try{s[S.y9](t.inst,n)}catch(e){var c=t.err;try{var u=a[P[2]];u&&(t.err=e,u[S.y9](t.inst,n))}catch(e){}finally{t.err=c}}}}))}function A(e,t,n,r){var o=null;return e&&((0,l.mQ)(e,t)?o=e:n&&(o=A((0,l.fw)(e),t,r,!1))),o}function I(e,t,n){return e?R(e[v.vR],t,n,!1):null}function O(e,t,n){return e?N(e[v.vR],t,n,!1):null}function x(e,t,n,r){var o=n&&n[T];if(!o){var i=function(e){return function(){var t,n=arguments,r=e.h,o=((t={})[S.RS]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,a=s([o],n)},t),i=[],a=s([o],n);function s(e,t){return w(t,(function(t){e[S.y5](t)})),e}o.evt=(0,f.EH)("event"),C(r,o,a,i,0);var c=e.f;if(c)try{o.rslt=c[S.y9](this,n)}catch(e){throw o.err=e,C(r,o,a,i,3),e}return C(r,o,a,i,1),o.rslt}}(o={i:0,n:t,f:n,h:[]});i[T]=o,e[t]=i}var a={id:o.i,cbks:r,rm:function(){var e=this.id;w(o.h,(function(t,n){if(t.id===e)return o.h[S.Ic](n,1),1}))}};return o.i++,o.h[S.y5](a),a}function R(e,t,n,r,o){if(void 0===r&&(r=!0),e&&t&&n){var i=A(e,t,r,o);if(i){var a=i[t];if(typeof a===v.hW)return x(i,t,a,n)}}return null}function N(e,t,n,r,o){void 0===r&&(r=!0);var i=null;return w(t,(function(t){var a=R(e,t,n,r,o);a&&(i||(i=[]),i[S.y5](a))})),i}function D(e,t,n,r,o){if(e&&t&&n){var i=A(e,t,r,o)||e;if(i)return x(i,t,i[t],n)}return null}var k=n(5691),M=n(8074),j=n(2429),L=n(2755),F=n(2675)},9284:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>F});var o,i="undefined",a="constructor",s="prototype",c="function",u="_dynInstFuncs",l="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,v="_dfOpts",g="_unknown_",m="__proto__",y="_dyn"+m,_="__dynProto$Gbl",E="_dynInstProto",b="useBaseInst",S="setInstFuncs",T=Object,P=T.getPrototypeOf,w=T.getOwnPropertyNames,C=(typeof globalThis!==i&&(o=globalThis),o||typeof self===i||(o=self),o||typeof window===i||(o=window),o||typeof global===i||(o=global),o||{}),A=C[_]||(C[_]={o:(r={},r[S]=!0,r[b]=!0,r),n:1e3});function I(e,t){return e&&T[s].hasOwnProperty.call(e,t)}function O(e){return e&&(e===T[s]||e===Array[s])}function x(e){return O(e)||e===Function[s]}function R(e){var t;if(e){if(P)return P(e);var n=e[m]||e[s]||(e[a]?e[a][s]:null);t=e[y]||n,I(e,y)||(delete e[E],t=e[y]=e[E]||e[y],e[E]=n)}return t}function N(e,t){var n=[];if(w)n=w(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function M(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function j(e,t,n,r,o){if(!O(e)){var i=n[u]=n[u]||{},a=i[t]=i[t]||{};!1!==i[h]&&(i[h]=!!o),N(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][l])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var o=null;if(e&&I(n,p)){var i=e[u]||{};if((o=(i[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!o[f]&&!1!==i[h]){for(var a=!I(e,t),s=R(e),l=[];a&&s&&!x(s)&&!M(l,s);){var d=s[t];if(d){a=d===r;break}l.push(s),s=R(s)}try{a&&(e[t]=o),o[f]=1}catch(e){i[h]=!1}}}return o}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=R(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[l]=1,n}(e,t)))}))}}function L(e,t){return I(e,s)?e.name||t||g:((e||{})[a]||{}).name||t||g}function F(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var o=e[s];(function(e,t){if(P){for(var n=[],r=R(t);r&&!x(r)&&!M(n,r);){if(r===e)return!0;n.push(r),r=R(r)}return!1}return!0})(o,t)||k("["+L(e)+"] not in hierarchy of ["+L(t)+"]");var i=null;I(o,p)?i=o[p]:(i=d+L(e,"_")+"$"+A.n,A.n++,o[p]=i);var a=F[v],c=!!a[b];c&&r&&void 0!==r[b]&&(c=!!r[b]);var f=function(e){var t={};return N(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),g=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o[l]&&r){var i=e[u]||{};!1!==i[h]&&(o=(i[t[p]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i={};N(n,(function(e){i[e]=o(t,n,e)}));for(var a=R(e),s=[];a&&!x(a)&&!M(s,a);)N(a,(function(e){!i[e]&&D(a,e,!P)&&(i[e]=o(t,a,e))})),s.push(a),a=R(a);return i}(o,t,f,c);n(t,g);var m=!!P&&!!a[S];m&&r&&(m=!!r[S]),j(o,i,t,f,!1!==m)}F[v]=A.o},7245:(e,t,n)=>{"use strict";n.d(t,{FC:()=>c,J$:()=>h,KU:()=>f,OR:()=>d,QV:()=>s,Wy:()=>l,_1:()=>o,bA:()=>i,hW:()=>r,s6:()=>u,vR:()=>a,zi:()=>p});var r="function",o="object",i="undefined",a="prototype",s="hasOwnProperty",c="default",u=Object,l=u[a],p=u.assign,d=u.create,f=u.defineProperty,h=l[s]},9381:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>s,mS:()=>i,zk:()=>a});var r=n(7245),o=null;function i(e){void 0===e&&(e=!0);var t=!1===e?null:o;return t||(typeof globalThis!==r.bA&&(t=globalThis),t||typeof self===r.bA||(t=self),t||typeof window===r.bA||(t=window),t||typeof global===r.bA||(t=global),o=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.OR;if(t)return t(e);if(null==e)return{};var n=typeof e;function o(){}return n!==r._1&&n!==r.hW&&a("Object prototype may only be an Object:"+e),o[r.vR]=e,new o}},212:(e,t,n)=>{"use strict";n.d(t,{BY:()=>_,G4:()=>E,I3:()=>g,Im:()=>d,JA:()=>v,Ri:()=>b,_J:()=>T,m6:()=>w,pP:()=>A,qU:()=>h,s4:()=>C,sx:()=>m,tl:()=>S,u7:()=>y,vz:()=>P});var r=n(7245),o=n(9381),i=((0,o.mS)()||{}).Symbol,a=((0,o.mS)()||{}).Reflect,s=!!a,c="decorate",u="metadata",l="getOwnPropertySymbols",p="iterator",d=r.zi||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])r.Wy[r.QV].call(t,i)&&(e[i]=t[i]);return e},f=function(e,t){return f=r.s6.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.QV](n)&&(e[n]=t[n])},f(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==r.hW&&null!==t&&(0,o.zk)("Class extends value "+String(t)+" is not a constructor or null"),f(e,t),e[r.vR]=null===t?(0,o.AQ)(t):(n[r.vR]=t[r.vR],new n)}function v(e,t){var n={};for(var o in e)r.J$.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&typeof r.s6[l]===r.hW)for(var i=0,a=r.s6[l](e);i<a.length;i++)t.indexOf(a[i])<0&&r.Wy.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function g(e,t,n,o){var i,u=arguments.length,l=u<3?t:null===o?o=r.s6.getOwnPropertyDescriptor(t,n):o;if(s&&typeof a[c]===r.hW)l=a[c](e,t,n,o);else for(var p=e.length-1;p>=0;p--)(i=e[p])&&(l=(u<3?i(l):u>3?i(t,n,l):i(t,n))||l);return u>3&&l&&(0,r.KU)(t,n,l),l}function m(e,t){return function(n,r){t(n,r,e)}}function y(e,t){if(s&&a[u]===r.hW)return a[u](e,t)}function _(e,t){for(var n in e)n===r.FC||r.J$.call(t,n)||E(t,e,n)}function E(e,t,n,o){void 0===o&&(o=n),r.OR?(0,r.KU)(e,o,{enumerable:!0,get:function(){return t[n]}}):e[o]=t[n]}function b(e){var t=typeof i===r.hW&&i[p],n=t&&e[t],a=0;return n?n.call(e):e&&"number"==typeof e.length?{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}}:void(0,o.zk)(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function S(e,t){var n=typeof i===r.hW&&e[i[p]];if(!n)return e;var o,a,s=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return c}function T(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var o=Array(t),i=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,i++)o[i]=a[s];return o}function P(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function w(e,t){return r.KU?(0,r.KU)(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==r.FC&&Object.prototype.hasOwnProperty.call(e,n)&&E(t,e,n);return r.OR?(0,r.KU)(t,r.FC,{enumerable:!0,value:e}):t[r.FC]=e,t}function A(e){return e&&e.__esModule?e:{strDefault:e}}},2284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjAssign:()=>r.zi,ObjClass:()=>r.s6,ObjCreate:()=>r.OR,ObjDefineProperty:()=>r.KU,ObjHasOwnProperty:()=>r.J$,ObjProto:()=>r.Wy,__assignFn:()=>i.Im,__createBindingFn:()=>i.G4,__decorateFn:()=>i.I3,__exportStarFn:()=>i.BY,__exposeGlobalTsLib:()=>a,__extendsFn:()=>i.qU,__importDefaultFn:()=>i.pP,__importStarFn:()=>i.s4,__makeTemplateObjectFn:()=>i.m6,__metadataFn:()=>i.u7,__paramFn:()=>i.sx,__readFn:()=>i.tl,__restFn:()=>i.JA,__spreadArrayFn:()=>i.vz,__spreadArraysFn:()=>i._J,__valuesFn:()=>i.Ri,getGlobal:()=>o.mS,objCreateFn:()=>o.AQ,strDefault:()=>r.FC,strShimFunction:()=>r.hW,strShimHasOwnProperty:()=>r.QV,strShimObject:()=>r._1,strShimPrototype:()=>r.vR,strShimUndefined:()=>r.bA,throwTypeError:()=>o.zk});var r=n(7245),o=n(9381),i=n(212);function a(){var e,t,n,a,s=(0,o.mS)()||{};e=s,t=i.Im,n=i.qU,a=i.G4,e.__assign||(e.__assign=r.zi||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=a),__assign||(__assign=s.__assign),__extends||(__extends=s.__extends),__createBinding||(__createBinding=s.__createBinding)}},1356:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{default:()=>F});var o,i="undefined",a="constructor",s="prototype",c="function",u="_dynInstFuncs",l="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,v="_dfOpts",g="_unknown_",m="__proto__",y="_dyn"+m,_="__dynProto$Gbl",E="_dynInstProto",b="useBaseInst",S="setInstFuncs",T=Object,P=T.getPrototypeOf,w=T.getOwnPropertyNames,C=(typeof globalThis!==i&&(o=globalThis),o||typeof self===i||(o=self),o||typeof window===i||(o=window),o||typeof global===i||(o=global),o||{}),A=C[_]||(C[_]={o:(r={},r[S]=!0,r[b]=!0,r),n:1e3});function I(e,t){return e&&T[s].hasOwnProperty.call(e,t)}function O(e){return e&&(e===T[s]||e===Array[s])}function x(e){return O(e)||e===Function[s]}function R(e){var t;if(e){if(P)return P(e);var n=e[m]||e[s]||(e[a]?e[a][s]:null);t=e[y]||n,I(e,y)||(delete e[E],t=e[y]=e[E]||e[y],e[E]=n)}return t}function N(e,t){var n=[];if(w)n=w(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function M(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function j(e,t,n,r,o){if(!O(e)){var i=n[u]=n[u]||{},a=i[t]=i[t]||{};!1!==i[h]&&(i[h]=!!o),N(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][l])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var o=null;if(e&&I(n,p)){var i=e[u]||{};if((o=(i[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!o[f]&&!1!==i[h]){for(var a=!I(e,t),s=R(e),l=[];a&&s&&!x(s)&&!M(l,s);){var d=s[t];if(d){a=d===r;break}l.push(s),s=R(s)}try{a&&(e[t]=o),o[f]=1}catch(e){i[h]=!1}}}return o}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=R(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[l]=1,n}(e,t)))}))}}function L(e,t){return I(e,s)?e.name||t||g:((e||{})[a]||{}).name||t||g}function F(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var o=e[s];(function(e,t){if(P){for(var n=[],r=R(t);r&&!x(r)&&!M(n,r);){if(r===e)return!0;n.push(r),r=R(r)}return!1}return!0})(o,t)||k("["+L(e)+"] not in hierarchy of ["+L(t)+"]");var i=null;I(o,p)?i=o[p]:(i=d+L(e,"_")+"$"+A.n,A.n++,o[p]=i);var a=F[v],c=!!a[b];c&&r&&void 0!==r[b]&&(c=!!r[b]);var f=function(e){var t={};return N(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),g=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o[l]&&r){var i=e[u]||{};!1!==i[h]&&(o=(i[t[p]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i={};N(n,(function(e){i[e]=o(t,n,e)}));for(var a=R(e),s=[];a&&!x(a)&&!M(s,a);)N(a,(function(e){!i[e]&&D(a,e,!P)&&(i[e]=o(t,a,e))})),s.push(a),a=R(a);return i}(o,t,f,c);n(t,g);var m=!!P&&!!a[S];m&&r&&(m=!!r[S]),j(o,i,t,f,!1!==m)}F[v]=A.o},1874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFilenameErrorMessage=t.LocalDevInfo=t.SelectTargetPlatform=t.Default=t.SdkLearnMorePlaceholder=t.No=t.YesRecommended=t.LearnMore=t.SdkStyleProject=t.TargetPlatform=t.NameCannotBeEmpty=t.SelectProjectLocation=t.SelectProjectType=t.ProjectDirectoryAlreadyExistErrorShort=t.ProjectDirectoryAlreadyExistError=t.ProjectParentDirectoryNotExistError=t.ProjectLocationPlaceholder=t.ProjectLocationTitle=t.EnterProjectName=t.ProjectNamePlaceholder=t.ProjectNameTitle=t.TypeTitle=t.NewProjectDialogTitle=t.DataWorkspaceOutputChannel=t.DefaultButtonWidth=t.DefaultInputWidth=t.WorkspaceFileExtension=t.Select=t.CreateButtonText=t.OpenButtonText=t.BrowseEllipsisWithIcon=t.BrowseEllipsis=t.BrowseButtonText=t.OkButtonText=t.noProjectProvidingExtensionsInstalled=t.onlyMovingOneFileIsSupported=t.dragAndDropNotSupported=t.openedProjectsUndefinedAfterRefresh=t.gitCloneError=t.gitCloneMessage=t.noPreviousData=t.projectNameNull=t.fileDoesNotExist=t.projectFailedToLoad=t.RestartConfirmation=t.ProviderNotFoundForProjectTypeError=t.AllProjectTypes=t.SelectProjectFileActionName=t.UnknownProjectsError=t.ExtensionActivationError=void 0,t.cssStyles=t.Refresh=t.ProjectSaveLocationKey=t.ProjectConfigurationKey=t.ProjectFileTitle=t.LocalClonePathPlaceholder=t.LocalClonePathTitle=t.GitRepoUrlPlaceholder=t.GitRepoUrlTitle=t.RemoteGitRepo=t.Local=t.ProjectAlreadyOpened=t.WorkspacePlaceholder=t.ProjectFilePlaceholder=t.LocationSelectorTitle=t.Project=t.CloneParentDirectoryNotExistError=t.FileNotExistError=t.OpenExistingDialogTitle=t.tooLongFilenameErrorMessage=t.trailingWhitespaceErrorMessage=t.reservedValueErrorMessage=t.reservedWindowsFilenameErrorMessage=t.invalidFileCharsErrorMessage=t.whitespaceFilenameErrorMessage=t.filenameEndingIsPeriodErrorMessage=void 0;const r=n(857),o=n(4200).loadMessageBundle(n(6928).join(__dirname,"common/constants.ts"));var i;t.ExtensionActivationError=(e,t)=>o(0,null,e,t.message??t),t.UnknownProjectsError=e=>o(1,null,e.join(r.EOL)),t.SelectProjectFileActionName=o(2,null),t.AllProjectTypes=o(3,null),t.ProviderNotFoundForProjectTypeError=e=>o(4,null,e),t.RestartConfirmation=o(5,null),t.projectFailedToLoad=(e,t)=>o(6,null,e,t),t.fileDoesNotExist=e=>o(7,null,e),t.projectNameNull=o(8,null),t.noPreviousData=e=>o(9,null,e),t.gitCloneMessage=e=>o(10,null,e),t.gitCloneError=o(11,null),t.openedProjectsUndefinedAfterRefresh=o(12,null),t.dragAndDropNotSupported=o(13,null),t.onlyMovingOneFileIsSupported=o(14,null),t.noProjectProvidingExtensionsInstalled=o(15,null),t.OkButtonText=o(16,null),t.BrowseButtonText=o(17,null),t.BrowseEllipsis=o(18,null),t.BrowseEllipsisWithIcon=`$(folder) ${t.BrowseEllipsis}`,t.OpenButtonText=o(19,null),t.CreateButtonText=o(20,null),t.Select=o(21,null),t.WorkspaceFileExtension=".code-workspace",t.DefaultInputWidth="400px",t.DefaultButtonWidth="80px",t.DataWorkspaceOutputChannel="Data Workspace",t.NewProjectDialogTitle=o(22,null),t.TypeTitle=o(23,null),t.ProjectNameTitle=o(24,null),t.ProjectNamePlaceholder=o(25,null),t.EnterProjectName=o(26,null),t.ProjectLocationTitle=o(27,null),t.ProjectLocationPlaceholder=o(28,null),t.ProjectParentDirectoryNotExistError=e=>o(29,null,e),t.ProjectDirectoryAlreadyExistError=(e,t)=>o(30,null,e,t),t.ProjectDirectoryAlreadyExistErrorShort=e=>o(31,null,e),t.SelectProjectType=o(32,null),t.SelectProjectLocation=o(33,null),t.NameCannotBeEmpty=o(34,null),t.TargetPlatform=o(35,null),t.SdkStyleProject=o(36,null),t.LearnMore=o(37,null),t.YesRecommended=o(38,null),t.No=o(39,null),t.SdkLearnMorePlaceholder=o(40,null),t.Default=o(41,null),t.SelectTargetPlatform=o(42,null),t.LocalDevInfo=e=>o(43,null,e),t.undefinedFilenameErrorMessage=o(44,null),t.filenameEndingIsPeriodErrorMessage=o(45,null),t.whitespaceFilenameErrorMessage=o(46,null),t.invalidFileCharsErrorMessage=o(47,null),t.reservedWindowsFilenameErrorMessage=o(48,null),t.reservedValueErrorMessage=o(49,null),t.trailingWhitespaceErrorMessage=o(50,null),t.tooLongFilenameErrorMessage=o(51,null),t.OpenExistingDialogTitle=o(52,null),t.FileNotExistError=(e,t)=>o(53,null,e,t),t.CloneParentDirectoryNotExistError=e=>o(54,null,e),t.Project=o(55,null),t.LocationSelectorTitle=o(56,null),t.ProjectFilePlaceholder=o(57,null),t.WorkspacePlaceholder=o(58,null,t.WorkspaceFileExtension),t.ProjectAlreadyOpened=e=>o(59,null,e),t.Local=o(60,null),t.RemoteGitRepo=o(61,null),t.GitRepoUrlTitle=o(62,null),t.GitRepoUrlPlaceholder=o(63,null),t.LocalClonePathTitle=o(64,null),t.LocalClonePathPlaceholder=o(65,null),t.ProjectFileTitle=o(66,null),t.ProjectConfigurationKey="projects",t.ProjectSaveLocationKey="defaultProjectSaveLocation",t.Refresh=o(67,null),function(e){e.title={"font-size":"18px","font-weight":"600"},e.tableHeader={"text-align":"left","font-weight":"500","font-size":"13px","user-select":"text"},e.tableRow={"border-top":"solid 1px #ccc","border-bottom":"solid 1px #ccc","border-left":"none","border-right":"none"}}(i||(t.cssStyles=i={}))},5421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataWorkspaceExtension=void 0;const r=n(1398),o=n(1701),i=n(1748),a=n(4015),s=n(1874);t.DataWorkspaceExtension=class{constructor(e){this.workspaceService=e}getProjectsInWorkspace(e,t){return this.workspaceService.getProjectsInWorkspace(e,t)}addProjectsToWorkspace(e){return this.workspaceService.addProjectsToWorkspace(e)}showProjectsView(){r.commands.executeCommand("dataworkspace.views.main.focus")}refreshProjectsTree(){this.workspaceService.refreshProjectsTree()}get defaultProjectSaveLocation(){return(0,o.defaultProjectSaveLocation)()}validateWorkspace(){return this.workspaceService.validateWorkspace()}openSpecificProjectNewProjectDialog(e){return this.workspaceService.isProjectProviderAvailable||r.window.showErrorMessage(s.noProjectProvidingExtensionsInstalled),(0,i.openSpecificProjectNewProjectDialog)(e,this.workspaceService)}isValidFilenameCharacter(e){return(0,a.isValidFilenameCharacter)(e)}sanitizeStringForFilename(e){return(0,a.sanitizeStringForFilename)(e)}isValidBasename(e){return(0,a.isValidBasename)(e)}isValidBasenameErrorMessage(e){return(0,a.isValidBasenameErrorMessage)(e)}}},6042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconPathHelper=void 0;class n{static setExtensionContext(e){n.extensionContext=e,n.folder=n.makeIcon("folder",!0),n.refresh=n.makeIcon("refresh",!0)}static makeIcon(e,t=!1){const r="images";return t?{dark:n.extensionContext.asAbsolutePath(`${r}/${e}.svg`),light:n.extensionContext.asAbsolutePath(`${r}/${e}.svg`)}:{dark:n.extensionContext.asAbsolutePath(`${r}/dark/${e}.svg`),light:n.extensionContext.asAbsolutePath(`${r}/light/${e}.svg`)}}}t.IconPathHelper=n},895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Log=void 0;const r=n(1398),o=n(1874);class i{constructor(){this.output=r.window.createOutputChannel(o.DataWorkspaceOutputChannel)}error(e){this.output.appendLine(`[Error - ${this.now()}] ${e}`),console.error(e)}log(e){this.output.appendLine(`[Info - ${this.now()}] ${e}`)}now(){const e=new Date;return this.padLeft(e.getUTCFullYear()+"",2,"0")+"-"+this.padLeft(e.getUTCMonth()+"",2,"0")+"-"+this.padLeft(e.getUTCDate()+"",2,"0")+" "+this.padLeft(e.getUTCHours()+"",2,"0")+":"+this.padLeft(e.getMinutes()+"",2,"0")+":"+this.padLeft(e.getUTCSeconds()+"",2,"0")+"."+e.getMilliseconds()}padLeft(e,t,n=" "){return n.repeat(Math.max(0,t-e.length))+e}}t.Log=i;const a=new i;t.default=a},4015:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidBasenameErrorMessage=t.isValidBasename=t.sanitizeStringForFilename=t.isValidFilenameCharacter=void 0;const r=n(1874),o=n(857),i=/[\\/:\*\?"<>\|]/g,a=/[\\/]/g,s="win32"===o.platform(),c=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;function u(e){return!(!e||1!==e.length||(i.lastIndex=0,a.lastIndex=0,s&&i.test(e)||!s&&a.test(e)))}function l(e){const t=s?i:a;return e?s&&"."===e[e.length-1]?r.filenameEndingIsPeriodErrorMessage:!e||0===e.length||/^\s+$/.test(e)?r.whitespaceFilenameErrorMessage:(t.lastIndex=0,t.test(e)?r.invalidFileCharsErrorMessage:s&&c.test(e)?r.reservedWindowsFilenameErrorMessage:"."===e||".."===e?r.reservedValueErrorMessage:s&&e.length!==e.trim().length?r.trailingWhitespaceErrorMessage:e.length>255?r.tooLongFilenameErrorMessage:void 0):r.undefinedFilenameErrorMessage}t.isValidFilenameCharacter=u,t.sanitizeStringForFilename=function(e){let t="";for(let n=0;n<e?.length;++n)t+=u(e[n])?e[n]:"_";return t},t.isValidBasename=function(e){return void 0===l(e)},t.isValidBasenameErrorMessage=l},1701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProjectSaveLocation=void 0;const r=n(1398),o=n(9896),i=n(1874);function a(){return r.workspace.getConfiguration(i.ProjectConfigurationKey)[i.ProjectSaveLocationKey]}t.defaultProjectSaveLocation=function(){return void 0!==a()&&null!==a()&&""!==a().trim()&&o.existsSync(a())?r.Uri.file(a()):void 0}},3096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectProviderRegistry=void 0;const r=n(1398),o=n(2312);t.ProjectProviderRegistry=new class{constructor(){this._providers=new Array,this._providerFileExtensionMapping={},this._providerProjectTypeMapping={}}registerProvider(e,t){return this.validateProvider(e),this._providers.push(e),e.supportedProjectTypes.forEach((t=>{this._providerFileExtensionMapping[t.projectFileExtension.toUpperCase()]=e,this._providerProjectTypeMapping[t.id.toUpperCase()]=e})),o.TelemetryReporter.createActionEvent(o.TelemetryViews.ProviderRegistration,o.TelemetryActions.ProviderRegistered).withAdditionalProperties({providerId:t,extensions:e.supportedProjectTypes.map((e=>e.projectFileExtension)).sort().join(", ")}).send(),new r.Disposable((()=>{const t=this._providers.indexOf(e);t>=0&&(this._providers.splice(t,1),e.supportedProjectTypes.forEach((e=>{delete this._providerFileExtensionMapping[e.projectFileExtension.toUpperCase()],delete this._providerProjectTypeMapping[e.id.toUpperCase()]})))}))}get providers(){return this._providers.slice(0)}clear(){this._providers.length=0}validateProvider(e){}getProviderByProjectExtension(e){return e?this._providerFileExtensionMapping[e.toUpperCase()]:void 0}getProviderByProjectType(e){return e?this._providerProjectTypeMapping[e.toUpperCase()]:void 0}}},2738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0,t.Deferred=class{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}then(e,t){return this.promise.then(e,t)}}},2312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryActions=t.TelemetryViews=t.TelemetryReporter=void 0;const r=n(1616),o=n(7982),i=n(8330);let a=o.getPackageInfo(i);var s,c;t.TelemetryReporter=new r.default(a.name,a.version,a.aiKey),function(e){e.WorkspaceTreePane="WorkspaceTreePane",e.OpenExistingDialog="OpenExistingDialog",e.NewProjectDialog="NewProjectDialog",e.ProviderRegistration="ProviderRegistration"}(s||(t.TelemetryViews=s={})),function(e){e.ProviderRegistered="ProviderRegistered",e.ProjectAddedToWorkspace="ProjectAddedToWorkspace",e.ProjectRemovedFromWorkspace="ProjectRemovedFromWorkspace",e.OpeningProject="OpeningProject",e.NewProjectDialogLaunched="NewProjectDialogLaunched",e.OpenExistingDialogLaunched="OpenExistingDialogLaunched",e.NewProjectDialogCompleted="NewProjectDialogCompleted",e.GitClone="GitClone",e.ProjectsLoaded="ProjectsLoaded"}(c||(t.TelemetryActions=c={}))},7982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMessage=t.showInfoMessageWithLearnMoreLink=t.getAzdataApi=t.getPackageInfo=t.fileExist=t.directoryExist=void 0;const r=n(9896),o=n(1398),i=n(1874);async function a(e){try{return await r.promises.stat(e)}catch(e){if("ENOENT"===e.code)return;throw e}}let s;t.directoryExist=async function(e){const t=await a(e);return!!t&&t.isDirectory()},t.fileExist=async function(e){const t=await a(e);return!!t&&t.isFile()},t.getPackageInfo=function(e){const t=n(7390),r=c();if(e&&(r||t))return{name:r?e.name:t.name,version:e.version,aiKey:e.aiKey}};try{s=n(235),s?.version||(s=void 0)}catch{}function c(){return s}t.getAzdataApi=c,t.showInfoMessageWithLearnMoreLink=async function(e,t){await o.window.showInformationMessage(e,i.LearnMore)===i.LearnMore&&o.env.openExternal(o.Uri.parse(t))},t.getErrorMessage=function(e){return e instanceof Error?"string"==typeof e.message?e.message:"":"string"==typeof e?e:`${JSON.stringify(e,void 0,"\t")}`}},1575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceTreeDataProvider=void 0;const r=n(1398),o=n(6928),i=n(1874),a=n(2312),s=n(7982),c=n(895);t.WorkspaceTreeDataProvider=class{constructor(e){this._workspaceService=e,this.dropMimeTypes=["application/vnd.code.tree.workspacetreedataprovider"],this.dragMimeTypes=["application/vnd.code.tree.workspacetreedataprovider"],this._onDidChangeTreeData=new r.EventEmitter,this.onDidChangeTreeData=this._onDidChangeTreeData?.event,this._workspaceService.onDidWorkspaceProjectsChange((()=>this.refresh())),r.window.createTreeView("dataworkspace.views.main",{canSelectMany:!1,treeDataProvider:this,dragAndDropController:this})}async refresh(){c.default.log("Refreshing projects tree"),await this._workspaceService.getProjectsInWorkspace(void 0,!0),this._onDidChangeTreeData?.fire()}getTreeItem(e){return e.treeDataProvider.getTreeItem(e.element)}async getChildren(e){if(e){const t=await e.treeDataProvider.getChildren(e.element);return t?t.map((t=>({treeDataProvider:e.treeDataProvider,element:t}))):[]}{c.default.log("Calling getProjectsInWorkspace() from getChildren()");const t=await this._workspaceService.getProjectsInWorkspace(void 0,!1);await r.commands.executeCommand("setContext","isProjectsViewEmpty",0===t.length);const n=[],u=[],l={};let p=[];for(const r of t)try{const t=await this._workspaceService.getProjectProvider(r);if(this.incrementProjectTypeMetric(l,r),void 0===t){n.push(r.path);continue}const o=await t.getProjectTreeDataProvider(r);o.onDidChangeTreeData&&o.onDidChangeTreeData((e=>{this._onDidChangeTreeData?.fire(e)}));const i=await o.getChildren(e);i?.forEach((e=>{u.push({treeDataProvider:o,element:e})}))}catch(e){p.push({project:r,errorMessage:(0,s.getErrorMessage)(e)}),console.error(e.message)}if(p.length>0)for(let e of p)r.window.showErrorMessage((0,i.projectFailedToLoad)(o.basename(e.project.fsPath),e.errorMessage+(e.errorMessage.endsWith(".")?"":".")));return a.TelemetryReporter.sendMetricsEvent(l,"OpenWorkspaceProjectTypes"),a.TelemetryReporter.sendMetricsEvent({handled:t.length-n.length,unhandled:n.length},"OpenWorkspaceProjectsHandled"),n.length>0&&r.window.showErrorMessage((0,i.UnknownProjectsError)(n)),u}}incrementProjectTypeMetric(e,t){const n=o.extname(t.fsPath);e.hasOwnProperty(n)||(e[n]=0),e[n]++}handleDrag(e,t){const n=e[0].element?.relativeProjectUri?.fsPath?.substring(1);n!==o.basename(e[0].element?.projectFileUri?.fsPath,o.extname(e[0].element?.projectFileUri?.fsPath))&&t.set("application/vnd.code.tree.WorkspaceTreeDataProvider",new r.DataTransferItem(e.map((e=>e.element))))}async handleDrop(e,t){if(!e)return;const n=t.get("application/vnd.code.tree.WorkspaceTreeDataProvider");if(n?.value.length>1)return void r.window.showErrorMessage(i.onlyMovingOneFileIsSupported);const o=n?.value[0].projectFileUri;if(!o)return;const a=await this._workspaceService.getProjectProvider(o);a&&(a?.supportsDragAndDrop&&a.moveFile?(await a.moveFile(o,n?.value[0],e),this.refresh()):r.window.showErrorMessage(i.dragAndDropNotSupported))}}},2830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogBase=void 0;const r=n(7982);t.DialogBase=class{constructor(e,t,n,o=600){this._toDispose=[],this.initDialogPromise=new Promise(((e,t)=>this.initDialogComplete={resolve:e,reject:t})),this.dialogObject=(0,r.getAzdataApi)().window.createModelViewDialog(e,t,o),this.dialogObject.okButton.label=n,this.register(this.dialogObject.cancelButton.onClick((()=>this.onCancelButtonClicked()))),this.register(this.dialogObject.okButton.onClick((()=>this.onOkButtonClicked()))),this.dialogObject.registerCloseValidator((async()=>this.validate()))}async open(){const e=(0,r.getAzdataApi)().window.createTab("");e.registerContent((async e=>this.initialize(e))),this.dialogObject.content=[e],(0,r.getAzdataApi)().window.openDialog(this.dialogObject),await this.initDialogPromise}onCancelButtonClicked(){this.dispose()}async onOkButtonClicked(){await this.onComplete(),this.dispose()}async onComplete(){}dispose(){this._toDispose.forEach((e=>e.dispose()))}register(e){this._toDispose.push(e)}showErrorMessage(e){this.dialogObject.message={text:e,level:(0,r.getAzdataApi)().window.MessageLevel.Error}}getErrorMessage(){return this.dialogObject.message}createHorizontalContainer(e,t){return e.modelBuilder.flexContainer().withItems(t,{CSSStyles:{"margin-right":"5px","margin-bottom":"10px"}}).withLayout({flexFlow:"row",alignItems:"center"}).component()}}},1748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NewProjectDialog=t.openSpecificProjectNewProjectDialog=void 0;const r=n(1398),o=n(6928),i=n(2830),a=n(1874),s=n(7982),c=n(6042),u=n(1701),l=n(2312),p=n(4015);class d{constructor(){this.projectTypeId="",this.projectFileExtension="",this.name="",this.location=""}}t.openSpecificProjectNewProjectDialog=async function(e,t){const n=new f(t,e);return await n.open(),await n.newDialogPromise,n.projectUri};class f extends i.DialogBase{constructor(e,t){super(a.NewProjectDialogTitle,"NewProject",a.CreateButtonText),this.workspaceService=e,this.specificProjectType=t,this.model=new d,this.newDialogPromise=new Promise(((e,t)=>this.newProjectDialogComplete={resolve:e,reject:t})),l.TelemetryReporter.createActionEvent(l.TelemetryViews.NewProjectDialog,l.TelemetryActions.NewProjectDialogLaunched).withAdditionalProperties({isWorkspaceOpen:(void 0!==r.workspace.workspaceFile).toString()}).send()}async validate(){try{return await(0,s.directoryExist)(this.model.location)?await(0,s.directoryExist)(o.join(this.model.location,this.model.name))?(this.showErrorMessage(a.ProjectDirectoryAlreadyExistError(this.model.name,this.model.location)),!1):!1!==await this.workspaceService.validateWorkspace():(this.showErrorMessage(a.ProjectParentDirectoryNotExistError(this.model.location)),!1)}catch(e){return this.showErrorMessage(e?.message?e.message:e),!1}}onCancelButtonClicked(){this.newProjectDialogComplete?.resolve(),this.dispose()}async onComplete(){try{l.TelemetryReporter.createActionEvent(l.TelemetryViews.NewProjectDialog,l.TelemetryActions.NewProjectDialogCompleted).withAdditionalProperties({projectFileExtension:this.model.projectFileExtension,projectTemplateId:this.model.projectTypeId}).send(),this.projectUri=await this.workspaceService.createProject(this.model.name,r.Uri.file(this.model.location),this.model.projectTypeId,this.model.targetPlatform,this.model.sdkStyleProject),this.newProjectDialogComplete?.resolve()}catch(e){l.TelemetryReporter.createErrorEvent2(l.TelemetryViews.NewProjectDialog,l.TelemetryActions.NewProjectDialogCompleted,e).withAdditionalProperties({projectFileExtension:this.model.projectFileExtension,projectTemplateId:this.model.projectTypeId,error:e?.message?e.message:e}).send(),r.window.showErrorMessage(e?.message?e.message:e)}}async initialize(e){let t=await this.workspaceService.getAllProjectTypes();this.specificProjectType&&t.find((e=>e.id===this.specificProjectType?.id))&&(t=[this.specificProjectType]);const n=e.modelBuilder.radioCardGroup().withProps({cards:t.map((e=>({id:e.id,label:e.displayName,icon:e.icon,descriptions:[{textValue:e.displayName,textStyles:{"font-size":"13px","font-weight":"bold"}},{textValue:e.description}]}))),iconHeight:"75px",iconWidth:"75px",cardWidth:"215px",cardHeight:"195px",ariaLabel:a.TypeTitle,width:"500px",iconPosition:"top",selectedCardId:t.length>0?t[0].id:void 0}).component();this.register(n.onSelectionChanged((async e=>{this.model.projectTypeId=e.cardId;const n=t.find((t=>t.id===e.cardId));n?.targetPlatforms?(d.values=n?.targetPlatforms,d.value=this.getDefaultTargetPlatform(n),this.formBuilder?.insertFormItem(this.targetPlatformDropdownFormComponent,3)):(this.formBuilder?.removeFormItem(this.targetPlatformDropdownFormComponent),this.model.targetPlatform=void 0),n?.sdkStyleOption?(f.checked=!0,this.model.sdkStyleProject=!0,n.sdkStyleLearnMoreUrl?(await h.updateProperty("url",n.sdkStyleLearnMoreUrl),v.addItem(h)):v.removeItem(h),this.formBuilder?.addFormItem(this.sdkProjectCheckboxFormComponent)):(this.model.sdkStyleProject=!1,this.formBuilder?.removeFormItem(this.sdkProjectCheckboxFormComponent))})));const o=e.modelBuilder.inputBox().withValidation((e=>(0,p.isValidBasename)(e.value))).withProps({ariaLabel:a.ProjectNameTitle,placeHolder:a.ProjectNamePlaceholder,required:!0,width:a.DefaultInputWidth}).component();this.register(o.onTextChanged((e=>{const t=(0,p.isValidBasenameErrorMessage)(e);return void 0!==t?void o.updateProperty("validationErrorMessage",t):(this.model.name=o.value,o.updateProperty("title",o.value))})));const i=e.modelBuilder.inputBox().withProps({ariaLabel:a.ProjectLocationTitle,placeHolder:a.ProjectLocationPlaceholder,required:!0,width:a.DefaultInputWidth}).component(),s=(0,u.defaultProjectSaveLocation)();i.value=s?.fsPath??r.workspace.workspaceFolders?.[0]?.uri.fsPath,this.register(i.onTextChanged((()=>(this.model.location=i.value,i.updateProperty("title",i.value)))));const l=e.modelBuilder.button().withProps({ariaLabel:a.BrowseButtonText,title:a.BrowseButtonText,iconPath:c.IconPathHelper.folder,height:"16px",width:"18px"}).component();this.register(l.onDidClick((async()=>{let e=await r.window.showOpenDialog({canSelectFiles:!1,canSelectFolders:!0,canSelectMany:!1,defaultUri:i.value?r.Uri.file(i.value):void 0});if(!e||0===e.length)return;const t=e[0].fsPath;i.value=t,this.model.location=t})));const d=e.modelBuilder.dropDown().withProps({values:t[0].targetPlatforms,value:this.getDefaultTargetPlatform(t[0]),ariaLabel:a.TargetPlatform,required:!0,width:a.DefaultInputWidth}).component();this.register(d.onValueChanged((()=>{this.model.targetPlatform=d.value}))),this.targetPlatformDropdownFormComponent={title:a.TargetPlatform,required:!0,component:d};const f=e.modelBuilder.checkBox().withProps({checked:!0,label:a.SdkStyleProject}).component();this.register(f.onChanged((()=>{this.model.sdkStyleProject=f.checked})));const h=e.modelBuilder.hyperlink().withProps({label:a.LearnMore,url:""}).component(),v=e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"baseline"}).withItems([f],{CSSStyles:{flex:"0 0 auto","margin-right":"10px"}}).component();t[0].sdkStyleLearnMoreUrl&&(await h.updateProperty("url",t[0].sdkStyleLearnMoreUrl),v.addItem(h)),this.sdkProjectCheckboxFormComponent={component:v},this.formBuilder=e.modelBuilder.formContainer().withFormItems([{title:a.TypeTitle,component:n},{title:a.ProjectNameTitle,required:!0,component:this.createHorizontalContainer(e,[o])},{title:a.ProjectLocationTitle,required:!0,component:this.createHorizontalContainer(e,[i,l])}]),t[0].targetPlatforms&&this.formBuilder.addFormItem(this.targetPlatformDropdownFormComponent),t[0].sdkStyleOption&&this.formBuilder.addFormItem(this.sdkProjectCheckboxFormComponent),await e.initializeModel(this.formBuilder.component()),this.initDialogComplete?.resolve()}getDefaultTargetPlatform(e){return e.defaultTargetPlatform&&e.targetPlatforms?.includes(e.defaultTargetPlatform)?e.defaultTargetPlatform:void 0}}t.NewProjectDialog=f},4896:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNewProjectWithQuickpick=void 0;const r=n(1398),o=n(6928),i=n(1874),a=n(7982),s=n(1701),c=n(4015);t.createNewProjectWithQuickpick=async function(e){const t=(await e.getAllProjectTypes()).map((e=>({label:e.displayName,description:e.description,id:e.id,targetPlatforms:e.targetPlatforms,defaultTargetPlatform:e.defaultTargetPlatform,sdkOption:e.sdkStyleOption,sdkLearnMoreUrl:e.sdkStyleLearnMoreUrl,learnMoreUrl:e.learnMoreUrl}))),n=await r.window.showQuickPick(t,{title:i.SelectProjectType,ignoreFocusOut:!0});if(!n)return;const u=await r.window.showInputBox({title:i.EnterProjectName,validateInput:e=>(0,c.isValidBasenameErrorMessage)(e),ignoreFocusOut:!0});if(!u)return;const l=(0,s.defaultProjectSaveLocation)(),p=[i.BrowseEllipsisWithIcon];r.workspace.workspaceFolders&&p.unshift(r.workspace.workspaceFolders[0].uri.fsPath),l&&p.unshift(l.fsPath);let d,f,h="",v=i.SelectProjectLocation;for(;;){const e=await r.window.showQuickPick(p,{title:v,ignoreFocusOut:!0});if(!e)return;if(e===i.BrowseEllipsisWithIcon){const e=await r.window.showOpenDialog({canSelectFiles:!1,canSelectFolders:!0,canSelectMany:!1,openLabel:i.Select,title:i.SelectProjectLocation,defaultUri:l});if(!e){v=i.SelectProjectLocation;continue}h=e[0].fsPath}else h=e;if(!await(0,a.directoryExist)(o.join(h,u)))break;v=i.ProjectDirectoryAlreadyExistErrorShort(u)}if(n.targetPlatforms){let e=n.targetPlatforms.map((e=>({label:e})));if(n.defaultTargetPlatform){const t=e.findIndex((e=>e.label===n.defaultTargetPlatform));t>-1&&e.splice(t,1),e.unshift({label:n.defaultTargetPlatform,description:i.Default})}const t=await r.window.showQuickPick(e,{title:i.SelectTargetPlatform,ignoreFocusOut:!0});if(!t)return;d=t.label}if(n.sdkOption){const e={iconPath:new r.ThemeIcon("link-external"),tooltip:i.LearnMore},t=r.window.createQuickPick();t.items=[{label:i.YesRecommended},{label:i.No}],t.title=i.SdkStyleProject,t.ignoreFocusOut=!0;const o=[];try{n.sdkLearnMoreUrl&&(t.buttons=[e],t.placeholder=i.SdkLearnMorePlaceholder);let a=new Promise((e=>{o.push(t.onDidHide((()=>{e(void 0)})),t.onDidChangeSelection((t=>{e(t[0].label===i.YesRecommended)}))),n.sdkLearnMoreUrl&&o.push(t.onDidTriggerButton((async()=>{await r.env.openExternal(r.Uri.parse(n.sdkLearnMoreUrl))})))}));t.show(),f=await a,t.hide()}finally{o.forEach((e=>e.dispose()))}if(void 0===f)return}await e.createProject(u,r.Uri.file(h),n.id,d,f),n.learnMoreUrl&&n.defaultTargetPlatform&&(0,a.showInfoMessageWithLearnMoreLink)(i.LocalDevInfo(n.defaultTargetPlatform),n.learnMoreUrl)}},2006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browseForProject=t.OpenExistingDialog=void 0;const r=n(1398),o=n(2830),i=n(1874),a=n(7982),s=n(6042),c=n(2312),u=n(1701);class l extends o.DialogBase{constructor(e){super(i.OpenExistingDialogTitle,"OpenProject",i.OpenButtonText),this.workspaceService=e,c.TelemetryReporter.createActionEvent(c.TelemetryViews.OpenExistingDialog,c.TelemetryActions.OpenExistingDialogLaunched).withAdditionalProperties({isWorkspaceOpen:(void 0!==r.workspace.workspaceFile).toString()}).send()}async validate(){try{return this.localRadioButton?.checked?await this.validateFile(this.filePathTextBox.value,i.Project.toLowerCase()):await this.validateClonePath(this.localClonePathTextBox.value),!1!==await this.workspaceService.validateWorkspace()}catch(e){return this.showErrorMessage(e?.message?e.message:e),!1}}async validateFile(e,t){if(!await(0,a.fileExist)(e))throw new Error(i.FileNotExistError(t,e))}async validateClonePath(e){if(!await(0,a.directoryExist)(e))throw new Error(i.CloneParentDirectoryNotExistError(e))}async onComplete(){try{const e={hasWorkspaceOpen:(void 0!==r.workspace.workspaceFile).toString()};let t;this.remoteGitRepoRadioButton.checked?(c.TelemetryReporter.createActionEvent(c.TelemetryViews.OpenExistingDialog,c.TelemetryActions.GitClone).withAdditionalProperties({selectedTarget:"project"}).send(),t=this.workspaceService.gitCloneProject((this.gitRepoTextBoxComponent?.component).value,this.localClonePathTextBox.value)):(e.cancelled="false",t=this.workspaceService.addProjectsToWorkspace([r.Uri.file(this.filePathTextBox.value)])),c.TelemetryReporter.createActionEvent(c.TelemetryViews.OpenExistingDialog,c.TelemetryActions.OpeningProject).withAdditionalProperties(e).send(),await t}catch(e){r.window.showErrorMessage(e?.message?e.message:e)}}async initialize(e){this.localRadioButton=e.modelBuilder.radioButton().withProps({name:"location",label:i.Local,checked:!0}).component(),this.register(this.localRadioButton.onDidChangeCheckedState((e=>{e&&(this.formBuilder?.removeFormItem(this.gitRepoTextBoxComponent),this.formBuilder?.removeFormItem(this.localClonePathComponent),this.formBuilder?.insertFormItem(this.filePathAndButtonComponent,1))}))),this.remoteGitRepoRadioButton=e.modelBuilder.radioButton().withProps({name:"location",label:i.RemoteGitRepo}).component(),this.locationRadioButtonFormComponent={title:i.LocationSelectorTitle,component:e.modelBuilder.flexContainer().withItems([this.localRadioButton,this.remoteGitRepoRadioButton],{flex:"0 0 auto",CSSStyles:{"margin-right":"15px"}}).withProps({ariaRole:"radiogroup"}).component()},this.register(this.remoteGitRepoRadioButton.onDidChangeCheckedState((e=>{e&&(this.formBuilder?.removeFormItem(this.filePathAndButtonComponent),this.formBuilder?.insertFormItem(this.gitRepoTextBoxComponent,1),this.formBuilder?.insertFormItem(this.localClonePathComponent,2))})));const t=e.modelBuilder.inputBox().withProps({ariaLabel:i.GitRepoUrlTitle,placeHolder:i.GitRepoUrlPlaceholder,required:!0,width:i.DefaultInputWidth}).component();this.register(t.onTextChanged((()=>t.updateProperty("title",this.localClonePathTextBox.value)))),this.gitRepoTextBoxComponent={title:i.GitRepoUrlTitle,component:t},this.localClonePathTextBox=e.modelBuilder.inputBox().withProps({ariaLabel:i.LocalClonePathTitle,placeHolder:i.LocalClonePathPlaceholder,required:!0,width:i.DefaultInputWidth}).component(),this.register(this.localClonePathTextBox.onTextChanged((()=>this.localClonePathTextBox.updateProperty("title",this.localClonePathTextBox.value))));const n=e.modelBuilder.button().withProps({ariaLabel:i.BrowseButtonText,title:i.BrowseButtonText,iconPath:s.IconPathHelper.folder,width:"18px",height:"16px"}).component();this.register(n.onDidClick((async()=>{const e=await r.window.showOpenDialog({canSelectFiles:!1,canSelectFolders:!0,canSelectMany:!1,defaultUri:(0,u.defaultProjectSaveLocation)()});if(!e||0===e.length)return;const t=e[0].fsPath;this.localClonePathTextBox.value=t,this.localClonePathTextBox.updateProperty("title",this.localClonePathTextBox.value)}))),this.localClonePathComponent={title:i.LocalClonePathTitle,component:this.createHorizontalContainer(e,[this.localClonePathTextBox,n]),required:!0},this.filePathTextBox=e.modelBuilder.inputBox().withProps({ariaLabel:i.ProjectFileTitle,placeHolder:i.ProjectFilePlaceholder,required:!0,width:i.DefaultInputWidth}).component(),this.register(this.filePathTextBox.onTextChanged((()=>this.filePathTextBox.updateProperty("title",this.filePathTextBox.value))));const o=e.modelBuilder.button().withProps({ariaLabel:i.BrowseButtonText,title:i.BrowseButtonText,iconPath:s.IconPathHelper.folder,width:"18px",height:"16px"}).component();this.register(o.onDidClick((()=>this.onBrowseButtonClick())));const a=this.createHorizontalContainer(e,[this.filePathTextBox,o]);this.filePathAndButtonComponent={component:a,title:i.ProjectFileTitle,required:!0},this.formBuilder=e.modelBuilder.formContainer().withFormItems([this.locationRadioButtonFormComponent,this.filePathAndButtonComponent]),await e.initializeModel(this.formBuilder?.component()),this.initDialogComplete?.resolve()}async onBrowseButtonClick(){const e=await p(this.workspaceService);e&&(this.filePathTextBox.value=e.fsPath)}}async function p(e){const t={},n=await e.getAllProjectTypes();t[i.AllProjectTypes]=[...new Set(n.map((e=>e.projectFileExtension)))],n.forEach((e=>{t[e.displayName]=[e.projectFileExtension]}));const o=await r.window.showOpenDialog({canSelectFiles:!0,canSelectFolders:!1,canSelectMany:!1,openLabel:i.SelectProjectFileActionName,filters:t,defaultUri:(0,u.defaultProjectSaveLocation)()});return o?.[0]}t.OpenExistingDialog=l,t.browseForProject=p},2940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectDashboard=void 0;const r=n(6928),o=n(1398),i=n(1874),a=n(6042),s=n(7982);t.ProjectDashboard=class{constructor(e,t){this._workspaceService=e,this._treeItem=t}async showDashboard(){const e=this._treeItem.element.project;if(!await(0,s.fileExist)(e.projectFilePath))throw new Error(i.fileDoesNotExist(e.projectFilePath));if(!e.projectFileName)throw new Error(i.projectNameNull);if(this.projectProvider=await this._workspaceService.getProjectProvider(o.Uri.file(e.projectFilePath)),!this.projectProvider)throw new Error(i.ProviderNotFoundForProjectTypeError(e.projectFilePath));await this.createDashboard(e.projectFileName,e.projectFilePath),await this.dashboard.open()}async createDashboard(e,t){this.dashboard=(0,s.getAzdataApi)().window.createModelViewDashboard(e,"ProjectDashboard",{alwaysShowTabs:!1}),this.dashboard.registerTabs((async n=>(this.modelView=n,this.overviewTab={title:"",id:"overview-tab",content:this.createContainer(e,t),toolbar:this.createToolbarContainer(t)},[this.overviewTab])))}createToolbarContainer(e){const t=this.projectProvider.projectToolbarActions,n=[],r=t.length;t.forEach(((e,t)=>{if(this.isProjectAction(e)){const o=this.createButton(e);n.push({component:o,toolbarSeparatorAfter:r-1===t})}else{const o=e.actions.length;e.actions.forEach(((e,i)=>{const a=this.createButton(e);n.push({component:a,toolbarSeparatorAfter:o-1===i||r-1===t})}))}}));const o=this.modelView.modelBuilder.button().withProps({label:i.Refresh,iconPath:a.IconPathHelper.refresh,height:"20px"}).component();return o.onDidClick((()=>{this.rootContainer?.removeItem(this.tableContainer),this.tableContainer=this.createTables(e),this.rootContainer?.addItem(this.tableContainer)})),n.push({component:o}),this.modelView.modelBuilder.toolbarContainer().withToolbarItems(n).component()}isProjectAction(e){return void 0!==e.id}createButton(e){let t=this.modelView.modelBuilder.button().withProps({label:e.id,iconPath:e.icon,height:"20px"}).component();return t.onDidClick((()=>{e.run(this._treeItem)})),t}createContainer(e,t){this.rootContainer=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"100%"}).component();const n=this.createHeader(e,t);return this.tableContainer=this.createTables(t),this.rootContainer.addItem(n),this.rootContainer.addItem(this.tableContainer),this.rootContainer}createHeader(e,t){const n=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"30%"}).component(),i=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"30%"}).component(),a=this.modelView.modelBuilder.text().withProps({value:e,CSSStyles:{"margin-block-start":"20px","margin-block-end":"0px"}}).component();i.addItem(a,{CSSStyles:{"padding-left":"34px","padding-top":"15px","font-size":"36px","font-weight":"400"}});const s=r.dirname(t),c=this.modelView.modelBuilder.text().withProps({value:s,CSSStyles:{"margin-block-start":"20px","margin-block-end":"0px"}}).component();i.addItem(c,{CSSStyles:{"padding-left":"34px","padding-top":"15px","padding-bottom":"50px","font-size":"16px"}});const u=this.projectProvider.image,l=o.Uri.file(u.light.toString()).with({scheme:"vscode-file"});return n.addItem(i,{CSSStyles:{"background-image":`url(${l})`,"background-repeat":"no-repeat","background-position":"85% bottom","background-size":"10%","border-bottom":"solid 1px #ccc",width:"100%",height:"100%"}}),n}createTables(e){const t=this.projectProvider.getDashboardComponents(e),n=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"auto"}).component();return t.forEach((e=>{const t=this.modelView.modelBuilder.text().withProps({value:e.name,CSSStyles:{"margin-block-start":"30px","margin-block-end":"0px"}}).component();if(n.addItem(t,{CSSStyles:{"padding-left":"25px","padding-bottom":"20px",...i.cssStyles.title}}),0===e.data.length){const t=i.noPreviousData(e.name.toLocaleLowerCase()),r=this.modelView.modelBuilder.text().withProps({value:t}).component();n.addItem(r,{CSSStyles:{"padding-left":"25px","padding-bottom":"20px"}})}else{const t=[];e.columns.forEach((e=>{let n={displayName:e.displayName,valueType:"icon"===e.type?(0,s.getAzdataApi)().DeclarativeDataType.component:(0,s.getAzdataApi)().DeclarativeDataType.string,isReadOnly:!0,width:e.width,headerCssStyles:{border:"none",...i.cssStyles.tableHeader},rowCssStyles:{...i.cssStyles.tableRow}};t.push(n)}));const r=[];e.data.forEach((e=>{const t=[];e.forEach((e=>{if("string"==typeof e)t.push({value:e});else{const n=this.modelView.modelBuilder.image().withProps({iconPath:e.icon,width:"15px",height:"15px",iconHeight:"15px",iconWidth:"15px"}).component(),r=this.modelView.modelBuilder.text().withProps({value:e.text,CSSStyles:{"margin-block-start":"auto","block-size":"auto","margin-block-end":"0px"}}).component(),o=this.modelView.modelBuilder.flexContainer().withItems([n,r],{flex:"0 0 auto",CSSStyles:{"margin-right":"10px"}}).withLayout({flexFlow:"row"}).component();t.push({value:o})}})),r.push(t)}));const o=this.modelView.modelBuilder.declarativeTable().withProps({columns:t,dataValues:r,ariaLabel:e.name,CSSStyles:{"margin-left":"30px"}}).component();n.addItem(o)}})),n}}},9236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceService=void 0;const r=n(1398),o=n(6928),i=n(1874),a=n(4447),s=n(3096),c=n(895),u=n(2312),l=n(2738),p=n(7982),d="dataworkspace",f="excludedProjects";t.WorkspaceService=class{constructor(){this._onDidWorkspaceProjectsChange=new r.EventEmitter,this.onDidWorkspaceProjectsChange=this._onDidWorkspaceProjectsChange?.event,this.openedProjects=void 0,this._isProjectProviderAvailable=!1,this.getProjectsPromise=void 0,c.default.log("Calling getProjectsInWorkspace() from WorkspaceService constructor"),this.updateIfProjectProviderAvailable(),this.getProjectsInWorkspace(void 0,!0).catch((e=>c.default.error(`Error initializing projects in workspace ${e}`)))}get isProjectProviderAvailable(){return this._isProjectProviderAvailable}updateIfProjectProviderAvailable(){c.default.log(`Checking ${r.extensions.all.length} extensions to see if there is a project provider is available`);const e=(new Date).getTime();this._isProjectProviderAvailable=r.extensions.all.some((e=>e.packageJSON.contributes?.projects?.length>0)),c.default.log(`isProjectProviderAvailable is ${this._isProjectProviderAvailable}. Total time = ${(new Date).getTime()-e}ms`)}async validateWorkspace(){return!((0,p.getAzdataApi)()&&(!r.workspace.workspaceFolders||0===r.workspace.workspaceFolders.length))||await r.window.showWarningMessage(i.RestartConfirmation,{modal:!0},i.OkButtonText)===i.OkButtonText}async addProjectsToWorkspace(e){const t=[];for(const n of e){const e=r.workspace.asRelativePath(n,!1);void 0!==e&&r.Uri.file(e).fsPath!==n.fsPath||t.push(o.dirname(n.path))}t.length>0&&r.workspace.updateWorkspaceFolders(r.workspace.workspaceFolders?.length||0,void 0,...t.map((e=>({uri:r.Uri.file(e)}))));const n=(await this.getProjectsInWorkspace(void 0,!1)).map((e=>e.path));let a=!1;const s=[];for(const t of e)n.includes(t.path)?(s.push(t.fsPath),r.window.showInformationMessage(i.ProjectAlreadyOpened(t.fsPath))):(a=!0,u.TelemetryReporter.createActionEvent(u.TelemetryViews.WorkspaceTreePane,u.TelemetryActions.ProjectAddedToWorkspace).withAdditionalProperties({projectType:o.extname(t.fsPath)}).send());const c=this.getWorkspaceConfigurationValue(f),l=c.filter((t=>!e.find((e=>r.workspace.asRelativePath(e)===t))));c.length!==l.length&&await this.setWorkspaceConfigurationValue(f,l),a&&this._onDidWorkspaceProjectsChange.fire()}async getAllProjectTypes(){await this.ensureProviderExtensionLoaded();const e=[];return s.ProjectProviderRegistry.providers.forEach((t=>{e.push(...t.supportedProjectTypes)})),e}async getProjectsInWorkspace(e,t=!1){c.default.log("Getting projects in workspace");const n=(new Date).getTime();if((t||void 0===this.openedProjects)&&await this.refreshProjectsFromDisk(),void 0===this.openedProjects)throw new Error(i.openedProjectsUndefinedAfterRefresh);return this.excludedProjects=this.getWorkspaceConfigurationValue(f),this.openedProjects=this.openedProjects.filter((e=>!this.excludedProjects?.find((t=>t===r.workspace.asRelativePath(e))))),c.default.log(`Finished looking for projects in workspace. Opened: ${this.openedProjects.length}. Excluded: ${this.excludedProjects.length}. Total time = ${(new Date).getTime()-n}ms`),e?this.openedProjects.filter((t=>t.fsPath.toLowerCase().endsWith(e.toLowerCase()))):this.openedProjects}async refreshProjectsFromDisk(){if(this.getProjectsPromise)return this.getProjectsPromise.promise;this.getProjectsPromise=new l.Deferred;try{const e=r.workspace.workspaceFolders?.map((e=>this.getAllProjectsInFolder(e.uri)))??[],t=(await Promise.all(e)).reduce(((e,t)=>e.concat(t)),[]),n=[...new Set(t.map((e=>e.fsPath)))];this.openedProjects=n.map((e=>r.Uri.file(e))),this.getProjectsPromise.resolve()}catch(e){throw this.getProjectsPromise.reject(e),e}finally{this.getProjectsPromise=void 0}}refreshProjectsTree(){this._onDidWorkspaceProjectsChange.fire()}async getAllProjectsInFolder(e){const t=[...new Set((await this.getAllProjectTypes()).map((e=>e.projectFileExtension)))],n=a.escapePath(e.fsPath.replace(/\\/g,"/")),i=t.length>1?o.posix.join(n,"**",`*.{${t.toString()}}`):o.posix.join(n,"**",`*.${t[0]}`);return(await a(i)).map((e=>r.Uri.file(o.resolve(e))))}async getProjectProvider(e){const t=o.extname(e.path).replace(/\./g,"");return s.ProjectProviderRegistry.getProviderByProjectExtension(t)||await this.ensureProviderExtensionLoaded(t),s.ProjectProviderRegistry.getProviderByProjectExtension(t)}async createProject(e,t,n,r,o){const a=s.ProjectProviderRegistry.getProviderByProjectType(n);if(a){const i=await a.createProject(e,t,n,r,o);return await this.addProjectsToWorkspace([i]),this._onDidWorkspaceProjectsChange.fire(),i}throw new Error(i.ProviderNotFoundForProjectTypeError(n))}async gitCloneProject(e,t){const n=r.extensions.getExtension("vscode.git").exports.getAPI(1),o={location:r.ProgressLocation.Notification,title:i.gitCloneMessage(e),cancellable:!0};try{r.commands.executeCommand("git.showOutput");const i=await r.window.withProgress(o,((r,o)=>n.clone(e,{parentPath:t,progress:r,recursive:!0},o))),a=await this.getAllProjectsInFolder(r.Uri.file(i));await this.addProjectsToWorkspace(a)}catch(e){r.window.showErrorMessage(i.gitCloneError),console.error(e)}}async ensureProviderExtensionLoaded(e=void 0,t=!1){const n=e?e.toUpperCase():void 0;let o;for(o of r.extensions.all){const e=o.packageJSON.contributes&&o.packageJSON.contributes.projects;if(e&&e.length>0)if(n){if(-1!==e.findIndex((e=>e.toUpperCase()===n))){await this.handleProjectProviderExtension(o,t);break}}else await this.handleProjectProviderExtension(o,t)}}async handleProjectProviderExtension(e,t=!1){try{if(!e.isActive)if(t)await e.activate();else{const t=e.packageJSON.contributes?.projects;if(!t)return;for(const n of t)if((await r.workspace.findFiles(`**/*.${n}`)).length>0){await e.activate();break}}}catch(t){c.default.error(i.ExtensionActivationError(e.id,t))}e.isActive&&e.exports&&!s.ProjectProviderRegistry.providers.includes(e.exports)&&s.ProjectProviderRegistry.registerProvider(e.exports,e.id)}async removeProject(e){u.TelemetryReporter.createActionEvent(u.TelemetryViews.WorkspaceTreePane,u.TelemetryActions.ProjectRemovedFromWorkspace).withAdditionalProperties({projectType:o.extname(e.fsPath)}).send();const t=this.getWorkspaceConfigurationValue(f);t.push(r.workspace.asRelativePath(e.fsPath)),await this.setWorkspaceConfigurationValue(f,[...new Set(t)]),this._onDidWorkspaceProjectsChange.fire()}getWorkspaceConfigurationValue(e){return r.workspace.getConfiguration(d).get(e)}async setWorkspaceConfigurationValue(e,t){await r.workspace.getConfiguration(d).update(e,t,r.ConfigurationTarget.Workspace)}}},4597:e=>{"use strict";e.exports=require("applicationinsights-native-metrics")},235:e=>{"use strict";e.exports=require("azdata")},1398:e=>{"use strict";e.exports=require("vscode")},2613:e=>{"use strict";e.exports=require("assert")},290:e=>{"use strict";e.exports=require("async_hooks")},5317:e=>{"use strict";e.exports=require("child_process")},4236:e=>{"use strict";e.exports=require("console")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},2250:e=>{"use strict";e.exports=require("dns")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},3339:e=>{"use strict";e.exports=require("module")},9278:e=>{"use strict";e.exports=require("net")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2987:e=>{"use strict";e.exports=require("perf_hooks")},2203:e=>{"use strict";e.exports=require("stream")},3557:e=>{"use strict";e.exports=require("timers")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"data-workspace","displayName":"Data Workspace","description":"Additional common functionality for database projects","version":"0.5.0","publisher":"Microsoft","preview":true,"license":"https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt","icon":"images/extension.png","aiKey":"29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380","engines":{"vscode":">=1.48.0","azdata":">=1.25.0"},"activationEvents":["onView:dataworkspace.views.main","onCommand:projects.openExisting","onCommand:projects.new"],"main":"./out/main","repository":{"type":"git","url":"https://github.com/Microsoft/azuredatastudio.git"},"capabilities":{"virtualWorkspaces":false,"untrustedWorkspaces":{"supported":true}},"extensionDependencies":[],"contributes":{"configuration":[{"title":"Projects","properties":{"dataworkspace.excludedProjects":{"type":"array","default":[],"description":"%projects.excludedProjectsDescription%"},"projects.defaultProjectSaveLocation":{"type":"string","description":"%projects.defaultProjectSaveLocation%"},"projects.showNotAddedProjectsInWorkspacePrompt":{"type":"boolean","description":"%projects.showNotAddedProjectsInWorkspacePrompt%","default":true}}}],"commands":[{"command":"projects.new","title":"%new-command%","category":"%data-workspace-view-container-name%","icon":"$(add)"},{"command":"projects.openExisting","title":"%open-existing-command%","category":"%data-workspace-view-container-name%","icon":"$(folder-opened)"},{"command":"dataworkspace.refresh","title":"%refresh-workspace-command%","category":"%data-workspace-view-container-name%","icon":"$(refresh)"},{"command":"dataworkspace.close","title":"%close-workspace-command%","category":"","icon":"$(close)"},{"command":"projects.removeProject","title":"%remove-project-command%"},{"command":"projects.manageProject","title":"%manage-project-command%"}],"menus":{"view/title":[{"command":"dataworkspace.refresh","when":"view == dataworkspace.views.main","group":"navigation"},{"command":"dataworkspace.close","when":"view == dataworkspace.views.main && workbenchState == workspace","group":"1_commands"},{"command":"projects.new","when":"view == dataworkspace.views.main","group":"navigation"},{"command":"projects.openExisting","when":"view == dataworkspace.views.main","group":"navigation"}],"commandPalette":[{"command":"projects.new"},{"command":"dataworkspace.refresh","when":"false"},{"command":"dataworkspace.close","when":"false"},{"command":"projects.removeProject","when":"false"},{"command":"projects.openExisting"},{"command":"projects.manageProject","when":"false"}],"view/item/context":[{"command":"projects.manageProject","when":"view == dataworkspace.views.main && viewItem =~ /^(databaseProject.itemType.project|databaseProject.itemType.legacyProject)$/ && azdataAvailable","group":"0_projectsFirst@1"},{"command":"projects.removeProject","when":"view == dataworkspace.views.main && viewItem =~ /^(databaseProject.itemType.project|databaseProject.itemType.legacyProject)$/","group":"9_dbProjectsLast@9"}]},"viewsContainers":{"activitybar":[{"id":"dataworkspace","title":"%data-workspace-view-container-name%","icon":"images/data-workspace.svg"}]},"views":{"dataworkspace":[{"id":"dataworkspace.views.main","name":"%main-view-name%","contextualTitle":"%data-workspace-view-container-name%","icon":"images/data-workspace.svg"}]},"viewsWelcome":[{"view":"dataworkspace.views.main","contents":"%projects-view-no-workspace-content%","when":"workbenchState != workspace"},{"view":"dataworkspace.views.main","contents":"%projects-view-no-project-content%","when":"workbenchState == workspace && isProjectsViewEmpty"}]},"dependencies":{"fast-glob":"^3.2.7","@microsoft/ads-extension-telemetry":"^3.0.1","vscode-nls":"^4.0.0"},"devDependencies":{"@types/mocha":"^7.0.2","@types/sinon":"^9.0.4","mocha":"^9.2.2","should":"^13.2.3","sinon":"^9.0.2","typemoq":"^2.1.0","@microsoft/vscodetestcover":"^1.2.2","@microsoft/azdata-test":"^3.0.4"}}')},7390:e=>{"use strict";e.exports=JSON.parse('{"name":"data-workspace-vscode","publisher":"ms-mssql"}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.deactivate=e.activate=void 0;const t=n(1398),o=n(1575),i=n(9236),a=n(5421),s=n(1748),c=n(2006),u=n(6042),l=n(2940),p=n(7982),d=n(4896),f=n(895),h=n(2312),v=n(1874);e.activate=async function(e){const n=(new Date).getTime();f.default.log("Starting Data Workspace activate()");const r=(new Date).getTime(),g=(0,p.getAzdataApi)();t.commands.executeCommand("setContext","azdataAvailable",!!g),f.default.log(`Setting azdataAvailable took ${(new Date).getTime()-r}ms`);const m=(new Date).getTime(),y=new i.WorkspaceService;f.default.log(`WorkspaceService constructor took ${(new Date).getTime()-m}ms`);const _=(new Date).getTime(),E=new o.WorkspaceTreeDataProvider(y);e.subscriptions.push(t.workspace.onDidChangeWorkspaceFolders((async()=>{await E.refresh()}))),f.default.log(`WorkspaceTreeDataProvider constructor took ${(new Date).getTime()-_}ms`);const b=(new Date).getTime(),S=new a.DataWorkspaceExtension(y);f.default.log(`DataWorkspaceExtension constructor took ${(new Date).getTime()-b}ms`);const T=(new Date).getTime();e.subscriptions.push(t.commands.registerCommand("projects.new",(async()=>{if(await y.ensureProviderExtensionLoaded(void 0,!0),y.isProjectProviderAvailable)if(g){const e=new s.NewProjectDialog(y);await e.open()}else await(0,d.createNewProjectWithQuickpick)(y);else t.window.showErrorMessage(v.noProjectProvidingExtensionsInstalled)}))),e.subscriptions.push(t.commands.registerCommand("projects.openExisting",(async()=>{if(await y.ensureProviderExtensionLoaded(void 0,!0),y.isProjectProviderAvailable)if(g){const e=new c.OpenExistingDialog(y);await e.open()}else{const e=await(0,c.browseForProject)(y);if(!e)return;await y.addProjectsToWorkspace([e])}else t.window.showErrorMessage(v.noProjectProvidingExtensionsInstalled)}))),e.subscriptions.push(t.commands.registerCommand("dataworkspace.refresh",(async()=>{await E.refresh()}))),e.subscriptions.push(t.commands.registerCommand("dataworkspace.close",(()=>t.commands.executeCommand("workbench.action.closeFolder")))),e.subscriptions.push(t.commands.registerCommand("projects.removeProject",(async e=>{await y.removeProject(t.Uri.file(e.element.project.projectFilePath))}))),e.subscriptions.push(t.commands.registerCommand("projects.manageProject",(async e=>{const t=new l.ProjectDashboard(y,e);await t.showDashboard()}))),f.default.log(`Registering commands took ${(new Date).getTime()-T}ms`),e.subscriptions.push(t.extensions.onDidChange((()=>{y.updateIfProjectProviderAvailable()})));const P=(new Date).getTime();return u.IconPathHelper.setExtensionContext(e),f.default.log(`IconPathHelper took ${(new Date).getTime()-P}ms`),e.subscriptions.push(h.TelemetryReporter),f.default.log(`Finished activating Data Workspace extension. Total time = ${(new Date).getTime()-n}ms`),Promise.resolve(S)},e.deactivate=function(){}})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/82e35eb142bf0f4567ff8c6dd4f16f33abfc2d50/extensions/data-workspace/dist/main.js.map