solarwinds-apm
Version:
OpenTelemetry-based SolarWinds APM library
1 lines • 258 kB
JavaScript
var Yu=Object.defineProperty;var s=(t,e)=>Yu(t,"name",{value:e,configurable:!0});var Rt="1.9.1";var rc=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Hu(t){let e=new Set([t]),r=new Set,n=t.match(rc);if(!n)return()=>!1;let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return s(function(c){return c===t},"isExactmatch");function i(a){return r.add(a),!1}s(i,"_reject");function _(a){return e.add(a),!0}return s(_,"_accept"),s(function(c){if(e.has(c))return!0;if(r.has(c))return!1;let E=c.match(rc);if(!E)return i(c);let T={major:+E[1],minor:+E[2],patch:+E[3],prerelease:E[4]};return T.prerelease!=null||o.major!==T.major?i(c):o.major===0?o.minor===T.minor&&o.patch<=T.patch?_(c):i(c):o.minor<=T.minor?_(c):i(c)},"isCompatible")}s(Hu,"_makeCompatibilityCheck");var nc=Hu(Rt);var Fu=Rt.split(".")[0],Tn=Symbol.for(`opentelemetry.js.api.${Fu}`),un=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function rt(t,e,r,n=!1){var o;let i=un[Tn]=(o=un[Tn])!==null&&o!==void 0?o:{version:Rt};if(!n&&i[t]){let _=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return r.error(_.stack||_.message),!1}if(i.version!==Rt){let _=new Error(`@opentelemetry/api: Registration of version v${i.version} for ${t} does not match previously registered API v${Rt}`);return r.error(_.stack||_.message),!1}return i[t]=e,r.debug(`@opentelemetry/api: Registered a global for ${t} v${Rt}.`),!0}s(rt,"registerGlobal");function be(t){var e,r;let n=(e=un[Tn])===null||e===void 0?void 0:e.version;if(!(!n||!nc(n)))return(r=un[Tn])===null||r===void 0?void 0:r[t]}s(be,"getGlobal");function nt(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${Rt}.`);let r=un[Tn];r&&delete r[t]}s(nt,"unregisterGlobal");var fo=class{static{s(this,"DiagComponentLogger")}constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return pn("debug",this._namespace,e)}error(...e){return pn("error",this._namespace,e)}info(...e){return pn("info",this._namespace,e)}warn(...e){return pn("warn",this._namespace,e)}verbose(...e){return pn("verbose",this._namespace,e)}};function pn(t,e,r){let n=be("diag");if(n)return n[t](e,...r)}s(pn,"logProxy");var se;(function(t){t[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"})(se||(se={}));function oc(t,e){t<se.NONE?t=se.NONE:t>se.ALL&&(t=se.ALL),e=e||{};function r(n,o){let i=e[n];return typeof i=="function"&&t>=o?i.bind(e):function(){}}return s(r,"_filterFunc"),{error:r("error",se.ERROR),warn:r("warn",se.WARN),info:r("info",se.INFO),debug:r("debug",se.DEBUG),verbose:r("verbose",se.VERBOSE)}}s(oc,"createLogLevelDiagLogger");var Ku="diag",pe=class t{static{s(this,"DiagAPI")}static instance(){return this._instance||(this._instance=new t),this._instance}constructor(){function e(o){return function(...i){let _=be("diag");if(_)return _[o](...i)}}s(e,"_logProxy");let r=this,n=s((o,i={logLevel:se.INFO})=>{var _,a,c;if(o===r){let u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((_=u.stack)!==null&&_!==void 0?_:u.message),!1}typeof i=="number"&&(i={logLevel:i});let E=be("diag"),T=oc((a=i.logLevel)!==null&&a!==void 0?a:se.INFO,o);if(E&&!i.suppressOverrideMessage){let u=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";E.warn(`Current logger will be overwritten from ${u}`),T.warn(`Current logger will overwrite one already registered from ${u}`)}return rt("diag",T,r,!0)},"setLogger");r.setLogger=n,r.disable=()=>{nt(Ku,r)},r.createComponentLogger=o=>new fo(o),r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}};var ho=class t{static{s(this,"BaggageImpl")}constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let r=this._entries.get(e);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,r){let n=new t(this._entries);return n._entries.set(e,r),n}removeEntry(e){let r=new t(this._entries);return r._entries.delete(e),r}removeEntries(...e){let r=new t(this._entries);for(let n of e)r._entries.delete(n);return r}clear(){return new t}};var sc=Symbol("BaggageEntryMetadata");var Wu=pe.instance();function ic(t={}){return new ho(new Map(Object.entries(t)))}s(ic,"createBaggage");function Ki(t){return typeof t!="string"&&(Wu.error(`Cannot create baggage metadata from unknown type: ${typeof t}`),t=""),{__TYPE__:sc,toString(){return t}}}s(Ki,"baggageEntryMetadataFromString");function dt(t){return Symbol.for(t)}s(dt,"createContextKey");var Wi=class t{static{s(this,"BaseContext")}constructor(e){let r=this;r._currentContext=e?new Map(e):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,o)=>{let i=new t(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=n=>{let o=new t(r._currentContext);return o._currentContext.delete(n),o}}},Pe=new Wi;var ji=class{static{s(this,"NoopMeter")}constructor(){}createGauge(e,r){return zu}createHistogram(e,r){return Xu}createCounter(e,r){return ju}createUpDownCounter(e,r){return $u}createObservableGauge(e,r){return Zu}createObservableCounter(e,r){return qu}createObservableUpDownCounter(e,r){return Qu}addBatchObservableCallback(e,r){}removeBatchObservableCallback(e){}},Nr=class{static{s(this,"NoopMetric")}},zi=class extends Nr{static{s(this,"NoopCounterMetric")}add(e,r){}},Xi=class extends Nr{static{s(this,"NoopUpDownCounterMetric")}add(e,r){}},$i=class extends Nr{static{s(this,"NoopGaugeMetric")}record(e,r){}},qi=class extends Nr{static{s(this,"NoopHistogramMetric")}record(e,r){}},ln=class{static{s(this,"NoopObservableMetric")}addCallback(e){}removeCallback(e){}},Zi=class extends ln{static{s(this,"NoopObservableCounterMetric")}},Qi=class extends ln{static{s(this,"NoopObservableGaugeMetric")}},Ji=class extends ln{static{s(this,"NoopObservableUpDownCounterMetric")}},e_=new ji,ju=new zi,zu=new $i,Xu=new qi,$u=new Xi,qu=new Zi,Zu=new Qi,Qu=new Ji;function tr(){return e_}s(tr,"createNoopMeter");var _e;(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(_e||(_e={}));var _c={get(t,e){if(t!=null)return t[e]},keys(t){return t==null?[]:Object.keys(t)}},ac={set(t,e,r){t!=null&&(t[e]=r)}};var Ro=class{static{s(this,"NoopContextManager")}active(){return Pe}with(e,r,n,...o){return r.call(n,...o)}bind(e,r){return r}enable(){return this}disable(){return this}};var t_="context",Ju=new Ro,ot=class t{static{s(this,"ContextAPI")}constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalContextManager(e){return rt(t_,e,pe.instance())}active(){return this._getContextManager().active()}with(e,r,n,...o){return this._getContextManager().with(e,r,n,...o)}bind(e,r){return this._getContextManager().bind(e,r)}_getContextManager(){return be(t_)||Ju}disable(){this._getContextManager().disable(),nt(t_,pe.instance())}};var ae;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(ae||(ae={}));var mo="0000000000000000",Oo="00000000000000000000000000000000",An={traceId:Oo,spanId:mo,traceFlags:ae.NONE};var st=class{static{s(this,"NonRecordingSpan")}constructor(e=An){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,r){return this}setAttributes(e){return this}addEvent(e,r){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,r){}};var r_=dt("OpenTelemetry Context Key SPAN");function No(t){return t.getValue(r_)||void 0}s(No,"getSpan");function cc(){return No(ot.getInstance().active())}s(cc,"getActiveSpan");function Sn(t,e){return t.setValue(r_,e)}s(Sn,"setSpan");function Ec(t){return t.deleteValue(r_)}s(Ec,"deleteSpan");function Tc(t,e){return Sn(t,new st(e))}s(Tc,"setSpanContext");function go(t){var e;return(e=No(t))===null||e===void 0?void 0:e.spanContext()}s(go,"getSpanContext");var xo=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function uc(t,e){if(typeof t!="string"||t.length!==e)return!1;let r=0;for(let n=0;n<t.length;n+=4)r+=(xo[t.charCodeAt(n)]|0)+(xo[t.charCodeAt(n+1)]|0)+(xo[t.charCodeAt(n+2)]|0)+(xo[t.charCodeAt(n+3)]|0);return r===e}s(uc,"isValidHex");function Lo(t){return uc(t,32)&&t!==Oo}s(Lo,"isValidTraceId");function pc(t){return uc(t,16)&&t!==mo}s(pc,"isValidSpanId");function ve(t){return Lo(t.traceId)&&pc(t.spanId)}s(ve,"isSpanContextValid");function lc(t){return new st(t)}s(lc,"wrapSpanContext");var n_=ot.getInstance(),gr=class{static{s(this,"NoopTracer")}startSpan(e,r,n=n_.active()){if(!!r?.root)return new st;let i=n&&go(n);return ep(i)&&ve(i)?new st(i):new st}startActiveSpan(e,r,n,o){let i,_,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,_=n,a=o);let c=_??n_.active(),E=this.startSpan(e,i,c),T=Sn(c,E);return n_.with(T,a,void 0,E)}};function ep(t){return t!==null&&typeof t=="object"&&"spanId"in t&&typeof t.spanId=="string"&&"traceId"in t&&typeof t.traceId=="string"&&"traceFlags"in t&&typeof t.traceFlags=="number"}s(ep,"isSpanContext");var tp=new gr,Io=class{static{s(this,"ProxyTracer")}constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}startSpan(e,r,n){return this._getTracer().startSpan(e,r,n)}startActiveSpan(e,r,n,o){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):tp}};var Co=class{static{s(this,"NoopTracerProvider")}getTracer(e,r,n){return new gr}};var rp=new Co,fn=class{static{s(this,"ProxyTracerProvider")}getTracer(e,r,n){var o;return(o=this.getDelegateTracer(e,r,n))!==null&&o!==void 0?o:new Io(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:rp}setDelegate(e){this._delegate=e}getDelegateTracer(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,r,n)}};var xr;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(xr||(xr={}));var me;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(me||(me={}));var xe;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(xe||(xe={}));var o_="[_0-9a-z-*/]",np=`[a-z]${o_}{0,255}`,op=`[a-z0-9]${o_}{0,240}@[a-z]${o_}{0,13}`,sp=new RegExp(`^(?:${np}|${op})$`),ip=/^[ -~]{0,255}[!-~]$/,_p=/,|=/;function Ac(t){return sp.test(t)}s(Ac,"validateKey");function Sc(t){return ip.test(t)&&!_p.test(t)}s(Sc,"validateValue");var fc=32,ap=512,hc=",",Rc="=",Po=class t{static{s(this,"TraceStateImpl")}constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,r)=>(e.push(r+Rc+this.get(r)),e),[]).join(hc)}_parse(e){e.length>ap||(this._internalState=e.split(hc).reduceRight((r,n)=>{let o=n.trim(),i=o.indexOf(Rc);if(i!==-1){let _=o.slice(0,i),a=o.slice(i+1,n.length);Ac(_)&&Sc(a)&&r.set(_,a)}return r},new Map),this._internalState.size>fc&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,fc))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};function s_(t){return new Po(t)}s(s_,"createTraceState");var D=ot.getInstance();var A=pe.instance();var i_=class{static{s(this,"NoopMeterProvider")}getMeter(e,r,n){return e_}},dc=new i_;var __="metrics",Uo=class t{static{s(this,"MetricsAPI")}constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalMeterProvider(e){return rt(__,e,pe.instance())}getMeterProvider(){return be(__)||dc}getMeter(e,r,n){return this.getMeterProvider().getMeter(e,r,n)}disable(){nt(__,pe.instance())}};var $e=Uo.getInstance();var yo=class{static{s(this,"NoopTextMapPropagator")}inject(e,r){}extract(e,r){return e}fields(){return[]}};var a_=dt("OpenTelemetry Baggage Key");function c_(t){return t.getValue(a_)||void 0}s(c_,"getBaggage");function mc(){return c_(ot.getInstance().active())}s(mc,"getActiveBaggage");function Oc(t,e){return t.setValue(a_,e)}s(Oc,"setBaggage");function Nc(t){return t.deleteValue(a_)}s(Nc,"deleteBaggage");var E_="propagation",cp=new yo,Do=class t{static{s(this,"PropagationAPI")}constructor(){this.createBaggage=ic,this.getBaggage=c_,this.getActiveBaggage=mc,this.setBaggage=Oc,this.deleteBaggage=Nc}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalPropagator(e){return rt(E_,e,pe.instance())}inject(e,r,n=ac){return this._getGlobalPropagator().inject(e,r,n)}extract(e,r,n=_c){return this._getGlobalPropagator().extract(e,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){nt(E_,pe.instance())}_getGlobalPropagator(){return be(E_)||cp}};var fe=Do.getInstance();var T_="trace",Mo=class t{static{s(this,"TraceAPI")}constructor(){this._proxyTracerProvider=new fn,this.wrapSpanContext=lc,this.isSpanContextValid=ve,this.deleteSpan=Ec,this.getSpan=No,this.getActiveSpan=cc,this.getSpanContext=go,this.setSpan=Sn,this.setSpanContext=Tc}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalTracerProvider(e){let r=rt(T_,this._proxyTracerProvider,pe.instance());return r&&this._proxyTracerProvider.setDelegate(e),r}getTracerProvider(){return be(T_)||this._proxyTracerProvider}getTracer(e,r){return this.getTracerProvider().getTracer(e,r)}disable(){nt(T_,pe.instance()),this._proxyTracerProvider=new fn}};var V=Mo.getInstance();var Ot;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Ot||(Ot={}));var Lr=class{static{s(this,"NoopLogger")}emit(e){}enabled(){return!1}},hn=new Lr;var Rn=Symbol.for("io.opentelemetry.js.api.logs"),Ir=globalThis;function gc(t,e,r){return n=>n===t?e:r}s(gc,"makeGetter");var u_=1;var p_=class{static{s(this,"NoopLoggerProvider")}getLogger(e,r,n){return new Lr}},bo=new p_;var vo=class{static{s(this,"ProxyLogger")}constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):hn}};var dn=class{static{s(this,"ProxyLoggerProvider")}getLogger(e,r,n){var o;return(o=this._getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new vo(this,e,r,n)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:bo}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};var Vo=class t{static{s(this,"LogsAPI")}constructor(){this._proxyLoggerProvider=new dn}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Ir[Rn]?this.getLoggerProvider():(Ir[Rn]=gc(u_,e,bo),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Ir[Rn])===null||e===void 0?void 0:e.call(Ir,u_))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Ir[Rn],this._proxyLoggerProvider=new dn}};var Cr=Vo.getInstance();function xc(t){return typeof t=="object"&&t!==null&&"addEventListener"in t&&typeof t.addEventListener=="function"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"}s(xc,"isListenerObject");var Lc="OT_ZONE_CONTEXT",Pr=class{static{s(this,"ZoneContextManager")}_enabled=!1;_bindFunction(e,r){let n=this,o=s(function(...i){return n.with(e,()=>r.apply(this,i))},"contextWrapper");return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}_bindListener(e,r){let n=r;return n.__ot_listeners!==void 0||(n.__ot_listeners={},typeof n.addEventListener=="function"&&(n.addEventListener=this._patchAddEventListener(n,n.addEventListener,e)),typeof n.removeEventListener=="function"&&(n.removeEventListener=this._patchRemoveEventListener(n,n.removeEventListener))),r}_createZone(e,r){return Zone.current.fork({name:e,properties:{[Lc]:r},onCancelTask(n,o,i,_){return _.state==="notScheduled"||_.state==="running"?_:n.cancelTask(i,_)}})}_patchAddEventListener(e,r,n){let o=this;return function(i,_,a){e.__ot_listeners===void 0&&(e.__ot_listeners={});let c=e.__ot_listeners[i];c===void 0&&(c=new WeakMap,e.__ot_listeners[i]=c);let E=o.bind(n,_);return c.set(_,E),r.call(this,i,E,a)}}_patchRemoveEventListener(e,r){return function(n,o){if(e.__ot_listeners===void 0||e.__ot_listeners[n]===void 0)return r.call(this,n,o);let i=e.__ot_listeners[n],_=i.get(o);return i.delete(o),r.call(this,n,_||o)}}active(){return!this._enabled||!Zone.current?Pe:Zone.current.get(Lc)||Pe}bind(e,r){return typeof r=="function"?this._bindFunction(e,r):(xc(r)&&this._bindListener(e,r),r)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(e,r,n,...o){let i="otel:with";return r.name&&(i+=`:${r.name}`),this._createZone(i,e).run(r,n,o)}};var Ep=Object.defineProperty,Tp=Object.defineProperties,up=Object.getOwnPropertyDescriptors,Ic=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,lp=Object.prototype.propertyIsEnumerable,S_=s((t,e,r)=>e in t?Ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,"__defNormalProp"),Cc=s((t,e)=>{for(var r in e||(e={}))pp.call(e,r)&&S_(t,r,e[r]);if(Ic)for(var r of Ic(e))lp.call(e,r)&&S_(t,r,e[r]);return t},"__spreadValues"),Ap=s((t,e)=>Tp(t,up(e)),"__spreadProps"),w=s((t,e,r)=>(S_(t,typeof e!="symbol"?e+"":e,r),r),"__publicField"),it=globalThis;function Ge(t){return(it.__Zone_symbol_prefix||"__zone_symbol__")+t}s(Ge,"__symbol__");function Sp(){let t=it.performance;function e(Z){t&&t.mark&&t.mark(Z)}s(e,"mark");function r(Z,S){t&&t.measure&&t.measure(Z,S)}s(r,"performanceMeasure"),e("Zone");let n=class f_{static{s(this,"_ZoneImpl")}constructor(S,l){w(this,"_parent"),w(this,"_name"),w(this,"_properties"),w(this,"_zoneDelegate"),this._parent=S,this._name=l?l.name||"unnamed":"<root>",this._properties=l&&l.properties||{},this._zoneDelegate=new _(this,this._parent&&this._parent._zoneDelegate,l)}static assertZonePatched(){if(it.Promise!==G.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let S=f_.current;for(;S.parent;)S=S.parent;return S}static get current(){return M.zone}static get currentTask(){return ge}static __load_patch(S,l,p=!1){if(G.hasOwnProperty(S)){let y=it[Ge("forceDuplicateZoneCheck")]===!0;if(!p&&y)throw Error("Already loaded patch: "+S)}else if(!it["__Zone_disable_"+S]){let y="Zone:"+S;e(y),G[S]=l(it,f_,F),r(y,y)}}get parent(){return this._parent}get name(){return this._name}get(S){let l=this.getZoneWith(S);if(l)return l._properties[S]}getZoneWith(S){let l=this;for(;l;){if(l._properties.hasOwnProperty(S))return l;l=l._parent}return null}fork(S){if(!S)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,S)}wrap(S,l){if(typeof S!="function")throw new Error("Expecting function got: "+S);let p=this._zoneDelegate.intercept(this,S,l),y=this;return function(){return y.runGuarded(p,this,arguments,l)}}run(S,l,p,y){M={parent:M,zone:this};try{return this._zoneDelegate.invoke(this,S,l,p,y)}finally{M=M.parent}}runGuarded(S,l=null,p,y){M={parent:M,zone:this};try{try{return this._zoneDelegate.invoke(this,S,l,p,y)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{M=M.parent}}runTask(S,l,p){if(S.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(S.zone||oe).name+"; Execution: "+this.name+")");let y=S,{type:Q,data:{isPeriodic:K=!1,isRefreshable:We=!1}={}}=S;if(S.state===L&&(Q===B||Q===ie))return;let ft=S.state!=$;ft&&y._transitionTo($,X);let ht=ge;ge=y,M={parent:M,zone:this};try{Q==ie&&S.data&&!K&&!We&&(S.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,y,l,p)}catch(je){if(this._zoneDelegate.handleError(this,je))throw je}}finally{let je=S.state;if(je!==L&&je!==J)if(Q==B||K||We&&je===N)ft&&y._transitionTo(X,$,N);else{let m=y._zoneDelegates;this._updateTaskCount(y,-1),ft&&y._transitionTo(L,$,L),We&&(y._zoneDelegates=m)}M=M.parent,ge=ht}}scheduleTask(S){if(S.zone&&S.zone!==this){let p=this;for(;p;){if(p===S.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${S.zone.name}`);p=p.parent}}S._transitionTo(N,L);let l=[];S._zoneDelegates=l,S._zone=this;try{S=this._zoneDelegate.scheduleTask(this,S)}catch(p){throw S._transitionTo(J,N,L),this._zoneDelegate.handleError(this,p),p}return S._zoneDelegates===l&&this._updateTaskCount(S,1),S.state==N&&S._transitionTo(X,N),S}scheduleMicroTask(S,l,p,y){return this.scheduleTask(new a(P,S,l,p,y,void 0))}scheduleMacroTask(S,l,p,y,Q){return this.scheduleTask(new a(ie,S,l,p,y,Q))}scheduleEventTask(S,l,p,y,Q){return this.scheduleTask(new a(B,S,l,p,y,Q))}cancelTask(S){if(S.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(S.zone||oe).name+"; Execution: "+this.name+")");if(!(S.state!==X&&S.state!==$)){S._transitionTo(ne,X,$);try{this._zoneDelegate.cancelTask(this,S)}catch(l){throw S._transitionTo(J,ne),this._zoneDelegate.handleError(this,l),l}return this._updateTaskCount(S,-1),S._transitionTo(L,ne),S.runCount=-1,S}}_updateTaskCount(S,l){let p=S._zoneDelegates;l==-1&&(S._zoneDelegates=null);for(let y=0;y<p.length;y++)p[y]._updateTaskCount(S.type,l)}};w(n,"__symbol__",Ge);let o=n,i={name:"",onHasTask:s((Z,S,l,p)=>Z.hasTask(l,p),"onHasTask"),onScheduleTask:s((Z,S,l,p)=>Z.scheduleTask(l,p),"onScheduleTask"),onInvokeTask:s((Z,S,l,p,y,Q)=>Z.invokeTask(l,p,y,Q),"onInvokeTask"),onCancelTask:s((Z,S,l,p)=>Z.cancelTask(l,p),"onCancelTask")};class _{static{s(this,"_ZoneDelegate")}constructor(S,l,p){w(this,"_zone"),w(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),w(this,"_parentDelegate"),w(this,"_forkDlgt"),w(this,"_forkZS"),w(this,"_forkCurrZone"),w(this,"_interceptDlgt"),w(this,"_interceptZS"),w(this,"_interceptCurrZone"),w(this,"_invokeDlgt"),w(this,"_invokeZS"),w(this,"_invokeCurrZone"),w(this,"_handleErrorDlgt"),w(this,"_handleErrorZS"),w(this,"_handleErrorCurrZone"),w(this,"_scheduleTaskDlgt"),w(this,"_scheduleTaskZS"),w(this,"_scheduleTaskCurrZone"),w(this,"_invokeTaskDlgt"),w(this,"_invokeTaskZS"),w(this,"_invokeTaskCurrZone"),w(this,"_cancelTaskDlgt"),w(this,"_cancelTaskZS"),w(this,"_cancelTaskCurrZone"),w(this,"_hasTaskDlgt"),w(this,"_hasTaskDlgtOwner"),w(this,"_hasTaskZS"),w(this,"_hasTaskCurrZone"),this._zone=S,this._parentDelegate=l,this._forkZS=p&&(p&&p.onFork?p:l._forkZS),this._forkDlgt=p&&(p.onFork?l:l._forkDlgt),this._forkCurrZone=p&&(p.onFork?this._zone:l._forkCurrZone),this._interceptZS=p&&(p.onIntercept?p:l._interceptZS),this._interceptDlgt=p&&(p.onIntercept?l:l._interceptDlgt),this._interceptCurrZone=p&&(p.onIntercept?this._zone:l._interceptCurrZone),this._invokeZS=p&&(p.onInvoke?p:l._invokeZS),this._invokeDlgt=p&&(p.onInvoke?l:l._invokeDlgt),this._invokeCurrZone=p&&(p.onInvoke?this._zone:l._invokeCurrZone),this._handleErrorZS=p&&(p.onHandleError?p:l._handleErrorZS),this._handleErrorDlgt=p&&(p.onHandleError?l:l._handleErrorDlgt),this._handleErrorCurrZone=p&&(p.onHandleError?this._zone:l._handleErrorCurrZone),this._scheduleTaskZS=p&&(p.onScheduleTask?p:l._scheduleTaskZS),this._scheduleTaskDlgt=p&&(p.onScheduleTask?l:l._scheduleTaskDlgt),this._scheduleTaskCurrZone=p&&(p.onScheduleTask?this._zone:l._scheduleTaskCurrZone),this._invokeTaskZS=p&&(p.onInvokeTask?p:l._invokeTaskZS),this._invokeTaskDlgt=p&&(p.onInvokeTask?l:l._invokeTaskDlgt),this._invokeTaskCurrZone=p&&(p.onInvokeTask?this._zone:l._invokeTaskCurrZone),this._cancelTaskZS=p&&(p.onCancelTask?p:l._cancelTaskZS),this._cancelTaskDlgt=p&&(p.onCancelTask?l:l._cancelTaskDlgt),this._cancelTaskCurrZone=p&&(p.onCancelTask?this._zone:l._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let y=p&&p.onHasTask,Q=l&&l._hasTaskZS;(y||Q)&&(this._hasTaskZS=y?p:i,this._hasTaskDlgt=l,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,p.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=l,this._scheduleTaskCurrZone=this._zone),p.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=l,this._invokeTaskCurrZone=this._zone),p.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=l,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(S,l){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,S,l):new o(S,l)}intercept(S,l,p){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,S,l,p):l}invoke(S,l,p,y,Q){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,S,l,p,y,Q):l.apply(p,y)}handleError(S,l){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,S,l):!0}scheduleTask(S,l){let p=l;if(this._scheduleTaskZS)this._hasTaskZS&&p._zoneDelegates.push(this._hasTaskDlgtOwner),p=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,S,l),p||(p=l);else if(l.scheduleFn)l.scheduleFn(l);else if(l.type==P)C(l);else throw new Error("Task is missing scheduleFn.");return p}invokeTask(S,l,p,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,S,l,p,y):l.callback.apply(p,y)}cancelTask(S,l){let p;if(this._cancelTaskZS)p=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,S,l);else{if(!l.cancelFn)throw Error("Task is not cancelable");p=l.cancelFn(l)}return p}hasTask(S,l){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,S,l)}catch(p){this.handleError(S,p)}}_updateTaskCount(S,l){let p=this._taskCounts,y=p[S],Q=p[S]=y+l;if(Q<0)throw new Error("More tasks executed then were scheduled.");if(y==0||Q==0){let K={microTask:p.microTask>0,macroTask:p.macroTask>0,eventTask:p.eventTask>0,change:S};this.hasTask(this._zone,K)}}}class a{static{s(this,"ZoneTask")}constructor(S,l,p,y,Q,K){if(w(this,"type"),w(this,"source"),w(this,"invoke"),w(this,"callback"),w(this,"data"),w(this,"scheduleFn"),w(this,"cancelFn"),w(this,"_zone",null),w(this,"runCount",0),w(this,"_zoneDelegates",null),w(this,"_state","notScheduled"),this.type=S,this.source=l,this.data=y,this.scheduleFn=Q,this.cancelFn=K,!p)throw new Error("callback is not defined");this.callback=p;let We=this;S===B&&y&&y.useG?this.invoke=a.invokeTask:this.invoke=function(){return a.invokeTask.call(it,We,this,arguments)}}static invokeTask(S,l,p){S||(S=this),Me++;try{return S.runCount++,S.zone.runTask(S,l,p)}finally{Me==1&&W(),Me--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(L,N)}_transitionTo(S,l,p){if(this._state===l||this._state===p)this._state=S,S==L&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${S}', expecting state '${l}'${p?" or '"+p+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let c=Ge("setTimeout"),E=Ge("Promise"),T=Ge("then"),u=[],R=!1,d;function g(Z){if(d||it[E]&&(d=it[E].resolve(0)),d){let S=d[T];S||(S=d.then),S.call(d,Z)}else it[c](Z,0)}s(g,"nativeScheduleMicroTask");function C(Z){Me===0&&u.length===0&&g(W),Z&&u.push(Z)}s(C,"scheduleMicroTask");function W(){if(!R){for(R=!0;u.length;){let Z=u;u=[];for(let S=0;S<Z.length;S++){let l=Z[S];try{l.zone.runTask(l,null,null)}catch(p){F.onUnhandledError(p)}}}F.microtaskDrainDone(),R=!1}}s(W,"drainMicroTaskQueue");let oe={name:"NO ZONE"},L="notScheduled",N="scheduling",X="scheduled",$="running",ne="canceling",J="unknown",P="microTask",ie="macroTask",B="eventTask",G={},F={symbol:Ge,currentZoneFrame:s(()=>M,"currentZoneFrame"),onUnhandledError:ee,microtaskDrainDone:ee,scheduleMicroTask:C,showUncaughtError:s(()=>!o[Ge("ignoreConsoleErrorUncaughtError")],"showUncaughtError"),patchEventTarget:s(()=>[],"patchEventTarget"),patchOnProperties:ee,patchMethod:s(()=>ee,"patchMethod"),bindArguments:s(()=>[],"bindArguments"),patchThen:s(()=>ee,"patchThen"),patchMacroTask:s(()=>ee,"patchMacroTask"),patchEventPrototype:s(()=>ee,"patchEventPrototype"),getGlobalObjects:s(()=>{},"getGlobalObjects"),ObjectDefineProperty:s(()=>ee,"ObjectDefineProperty"),ObjectGetOwnPropertyDescriptor:s(()=>{},"ObjectGetOwnPropertyDescriptor"),ObjectCreate:s(()=>{},"ObjectCreate"),ArraySlice:s(()=>[],"ArraySlice"),patchClass:s(()=>ee,"patchClass"),wrapWithCurrentZone:s(()=>ee,"wrapWithCurrentZone"),filterProperties:s(()=>[],"filterProperties"),attachOriginToPatched:s(()=>ee,"attachOriginToPatched"),_redefineProperty:s(()=>ee,"_redefineProperty"),patchCallbacks:s(()=>ee,"patchCallbacks"),nativeScheduleMicroTask:g},M={parent:null,zone:new o(null,null)},ge=null,Me=0;function ee(){}return s(ee,"noop"),r("Zone","Zone"),o}s(Sp,"initZone");function fp(){var t;let e=globalThis,r=e[Ge("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return(t=e.Zone)!=null||(e.Zone=Sp()),e.Zone}s(fp,"loadZone");var On=Object.getOwnPropertyDescriptor,R_=Object.defineProperty,d_=Object.getPrototypeOf,hp=Object.create,Rp=Array.prototype.slice,m_="addEventListener",O_="removeEventListener",l_=Ge(m_),A_=Ge(O_),Nt="true",gt="false",Nn=Ge("");function N_(t,e){return Zone.current.wrap(t,e)}s(N_,"wrapWithCurrentZone");function g_(t,e,r,n,o){return Zone.current.scheduleMacroTask(t,e,r,n,o)}s(g_,"scheduleMacroTaskWithCurrentZone");var q=Ge,Bo=typeof window<"u",ko=Bo?window:void 0,Te=Bo&&ko||globalThis,dp="removeAttribute";function x_(t,e){for(let r=t.length-1;r>=0;r--)typeof t[r]=="function"&&(t[r]=N_(t[r],e+"_"+r));return t}s(x_,"bindArguments");function mp(t,e){let r=t.constructor.name;for(let n=0;n<e.length;n++){let o=e[n],i=t[o];if(i){let _=On(t,o);if(!bc(_))continue;t[o]=(a=>{let c=s(function(){return a.apply(this,x_(arguments,r+"."+o))},"patched");return Lt(c,a),c})(i)}}}s(mp,"patchPrototype");function bc(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}s(bc,"isPropertyWritable");var vc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Yo=!("nw"in Te)&&typeof Te.process<"u"&&Te.process.toString()==="[object process]",L_=!Yo&&!vc&&!!(Bo&&ko.HTMLElement),Vc=typeof Te.process<"u"&&Te.process.toString()==="[object process]"&&!vc&&!!(Bo&&ko.HTMLElement),wo={},Op=q("enable_beforeunload"),Pc=s(function(t){if(t=t||Te.event,!t)return;let e=wo[t.type];e||(e=wo[t.type]=q("ON_PROPERTY"+t.type));let r=this||t.target||Te,n=r[e],o;if(L_&&r===ko&&t.type==="error"){let i=t;o=n&&n.call(this,i.message,i.filename,i.lineno,i.colno,i.error),o===!0&&t.preventDefault()}else o=n&&n.apply(this,arguments),t.type==="beforeunload"&&Te[Op]&&typeof o=="string"?t.returnValue=o:o!=null&&!o&&t.preventDefault();return o},"wrapFn");function Uc(t,e,r){let n=On(t,e);if(!n&&r&&On(r,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let o=q("on"+e+"patched");if(t.hasOwnProperty(o)&&t[o])return;delete n.writable,delete n.value;let i=n.get,_=n.set,a=e.slice(2),c=wo[a];c||(c=wo[a]=q("ON_PROPERTY"+a)),n.set=function(E){let T=this;if(!T&&t===Te&&(T=Te),!T)return;typeof T[c]=="function"&&T.removeEventListener(a,Pc),_?.call(T,null),T[c]=E,typeof E=="function"&&T.addEventListener(a,Pc,!1)},n.get=function(){let E=this;if(!E&&t===Te&&(E=Te),!E)return null;let T=E[c];if(T)return T;if(i){let u=i.call(this);if(u)return n.set.call(this,u),typeof E[dp]=="function"&&E.removeAttribute(e),u}return null},R_(t,e,n),t[o]=!0}s(Uc,"patchProperty");function Gc(t,e,r){if(e)for(let n=0;n<e.length;n++)Uc(t,"on"+e[n],r);else{let n=[];for(let o in t)o.slice(0,2)=="on"&&n.push(o);for(let o=0;o<n.length;o++)Uc(t,n[o],r)}}s(Gc,"patchOnProperties");var qe=q("originalInstance");function mn(t){let e=Te[t];if(!e)return;Te[q(t)]=e,Te[t]=function(){let o=x_(arguments,t);switch(o.length){case 0:this[qe]=new e;break;case 1:this[qe]=new e(o[0]);break;case 2:this[qe]=new e(o[0],o[1]);break;case 3:this[qe]=new e(o[0],o[1],o[2]);break;case 4:this[qe]=new e(o[0],o[1],o[2],o[3]);break;default:throw new Error("Arg list too long.")}},Lt(Te[t],e);let r=new e(function(){}),n;for(n in r)t==="XMLHttpRequest"&&n==="responseBlob"||(function(o){typeof r[o]=="function"?Te[t].prototype[o]=function(){return this[qe][o].apply(this[qe],arguments)}:R_(Te[t].prototype,o,{set:s(function(i){typeof i=="function"?(this[qe][o]=N_(i,t+"."+o),Lt(this[qe][o],i)):this[qe][o]=i},"set"),get:s(function(){return this[qe][o]},"get")})})(n);for(n in e)n!=="prototype"&&e.hasOwnProperty(n)&&(Te[t][n]=e[n])}s(mn,"patchClass");function Np(t,e){if(typeof Object.getOwnPropertySymbols!="function")return;Object.getOwnPropertySymbols(t).forEach(n=>{let o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,{get:s(function(){return t[n]},"get"),set:s(function(i){o&&(!o.writable||typeof o.set!="function")||(t[n]=i)},"set"),enumerable:o?o.enumerable:!0,configurable:o?o.configurable:!0})})}s(Np,"copySymbolProperties");var gp=!1;function xt(t,e,r){let n=t;for(;n&&!n.hasOwnProperty(e);)n=d_(n);!n&&t[e]&&(n=t);let o=q(e),i=null;if(n&&(!(i=n[o])||!n.hasOwnProperty(o))){i=n[o]=n[e];let _=n&&On(n,e);if(bc(_)){let a=r(i,o,e);n[e]=function(){return a(this,arguments)},Lt(n[e],i),gp&&Np(i,n[e])}}return i}s(xt,"patchMethod");function xp(t,e,r){let n=null;function o(i){let _=i.data;return _.args[_.cbIdx]=function(){i.invoke.apply(this,arguments)},n.apply(_.target,_.args),i}s(o,"scheduleTask"),n=xt(t,e,i=>function(_,a){let c=r(_,a);return c.cbIdx>=0&&typeof a[c.cbIdx]=="function"?g_(c.name,a[c.cbIdx],c,o):i.apply(_,a)})}s(xp,"patchMacroTask");function Lt(t,e){t[q("OriginalDelegate")]=e}s(Lt,"attachOriginToPatched");function yc(t){return typeof t=="function"}s(yc,"isFunction");function Dc(t){return typeof t=="number"}s(Dc,"isNumber");var Lp={useG:!0},we={},wc={},Bc=new RegExp("^"+Nn+"(\\w+)(true|false)$"),kc=q("propagationStopped");function Yc(t,e){let r=(e?e(t):t)+gt,n=(e?e(t):t)+Nt,o=Nn+r,i=Nn+n;we[t]={},we[t][gt]=o,we[t][Nt]=i}s(Yc,"prepareEventNames");function Ip(t,e,r,n){let o=n&&n.add||m_,i=n&&n.rm||O_,_=n&&n.listeners||"eventListeners",a=n&&n.rmAll||"removeAllListeners",c=q(o),E="."+o+":",T="prependListener",u="."+T+":",R=s(function(L,N,X){if(L.isRemoved)return;let $=L.callback;typeof $=="object"&&$.handleEvent&&(L.callback=P=>$.handleEvent(P),L.originalDelegate=$);let ne;try{L.invoke(L,N,[X])}catch(P){ne=P}let J=L.options;if(J&&typeof J=="object"&&J.once){let P=L.originalDelegate?L.originalDelegate:L.callback;N[i].call(N,X.type,P,J)}return ne},"invokeTask");function d(L,N,X){if(N=N||t.event,!N)return;let $=L||N.target||t,ne=$[we[N.type][X?Nt:gt]];if(ne){let J=[];if(ne.length===1){let P=R(ne[0],$,N);P&&J.push(P)}else{let P=ne.slice();for(let ie=0;ie<P.length&&!(N&&N[kc]===!0);ie++){let B=R(P[ie],$,N);B&&J.push(B)}}if(J.length===1)throw J[0];for(let P=0;P<J.length;P++){let ie=J[P];e.nativeScheduleMicroTask(()=>{throw ie})}}}s(d,"globalCallback");let g=s(function(L){return d(this,L,!1)},"globalZoneAwareCallback"),C=s(function(L){return d(this,L,!0)},"globalZoneAwareCaptureCallback");function W(L,N){if(!L)return!1;let X=!0;N&&N.useG!==void 0&&(X=N.useG);let $=N&&N.vh,ne=!0;N&&N.chkDup!==void 0&&(ne=N.chkDup);let J=!1;N&&N.rt!==void 0&&(J=N.rt);let P=L;for(;P&&!P.hasOwnProperty(o);)P=d_(P);if(!P&&L[o]&&(P=L),!P||P[c])return!1;let ie=N&&N.eventNameToString,B={},G=P[c]=P[o],F=P[q(i)]=P[i],M=P[q(_)]=P[_],ge=P[q(a)]=P[a],Me;N&&N.prepend&&(Me=P[q(N.prepend)]=P[N.prepend]);function ee(f,O){return O?typeof f=="boolean"?{capture:f,passive:!0}:f?typeof f=="object"&&f.passive!==!1?Ap(Cc({},f),{passive:!0}):f:{passive:!0}:f}s(ee,"buildEventListenerOptions");let Z=s(function(f){if(!B.isExisting)return G.call(B.target,B.eventName,B.capture?C:g,B.options)},"customScheduleGlobal"),S=s(function(f){if(!f.isRemoved){let O=we[f.eventName],U;O&&(U=O[f.capture?Nt:gt]);let v=U&&f.target[U];if(v){for(let x=0;x<v.length;x++)if(v[x]===f){v.splice(x,1),f.isRemoved=!0,f.removeAbortListener&&(f.removeAbortListener(),f.removeAbortListener=null),v.length===0&&(f.allRemoved=!0,f.target[U]=null);break}}}if(f.allRemoved)return F.call(f.target,f.eventName,f.capture?C:g,f.options)},"customCancelGlobal"),l=s(function(f){return G.call(B.target,B.eventName,f.invoke,B.options)},"customScheduleNonGlobal"),p=s(function(f){return Me.call(B.target,B.eventName,f.invoke,B.options)},"customSchedulePrepend"),y=s(function(f){return F.call(f.target,f.eventName,f.invoke,f.options)},"customCancelNonGlobal"),Q=X?Z:l,K=X?S:y,We=s(function(f,O){let U=typeof O;return U==="function"&&f.callback===O||U==="object"&&f.originalDelegate===O},"compareTaskCallbackVsDelegate"),ft=N?.diff||We,ht=Zone[q("UNPATCHED_EVENTS")],je=t[q("PASSIVE_EVENTS")];function m(f){if(typeof f=="object"&&f!==null){let O=Cc({},f);return f.signal&&(O.signal=f.signal),O}return f}s(m,"copyEventListenerOptions");let h=s(function(f,O,U,v,x=!1,k=!1){return function(){let Y=this||t,H=arguments[0];N&&N.transferEventName&&(H=N.transferEventName(H));let te=arguments[1];if(!te)return f.apply(this,arguments);if(Yo&&H==="uncaughtException")return f.apply(this,arguments);let re=!1;if(typeof te!="function"){if(!te.handleEvent)return f.apply(this,arguments);re=!0}if($&&!$(f,te,Y,arguments))return;let kt=!!je&&je.indexOf(H)!==-1,ze=m(ee(arguments[2],kt)),er=ze?.signal;if(er?.aborted)return;if(ht){for(let tt=0;tt<ht.length;tt++)if(H===ht[tt])return kt?f.call(Y,H,te,ze):f.apply(this,arguments)}let Hi=ze?typeof ze=="boolean"?!0:ze.capture:!1,Za=ze&&typeof ze=="object"?ze.once:!1,ku=Zone.current,Fi=we[H];Fi||(Yc(H,ie),Fi=we[H]);let Qa=Fi[Hi?Nt:gt],Or=Y[Qa],Ja=!1;if(Or){if(Ja=!0,ne){for(let tt=0;tt<Or.length;tt++)if(ft(Or[tt],te))return}}else Or=Y[Qa]=[];let So,ec=Y.constructor.name,tc=wc[ec];tc&&(So=tc[H]),So||(So=ec+O+(ie?ie(H):H)),B.options=ze,Za&&(B.options.once=!1),B.target=Y,B.capture=Hi,B.eventName=H,B.isExisting=Ja;let En=X?Lp:void 0;En&&(En.taskData=B),er&&(B.options.signal=void 0);let Xe=ku.scheduleEventTask(So,te,En,U,v);if(er){B.options.signal=er;let tt=s(()=>Xe.zone.cancelTask(Xe),"onAbort");f.call(er,"abort",tt,{once:!0}),Xe.removeAbortListener=()=>er.removeEventListener("abort",tt)}if(B.target=null,En&&(En.taskData=null),Za&&(B.options.once=!0),typeof Xe.options!="boolean"&&(Xe.options=ze),Xe.target=Y,Xe.capture=Hi,Xe.eventName=H,re&&(Xe.originalDelegate=te),k?Or.unshift(Xe):Or.push(Xe),x)return Y}},"makeAddListener");return P[o]=h(G,E,Q,K,J),Me&&(P[T]=h(Me,u,p,K,J,!0)),P[i]=function(){let f=this||t,O=arguments[0];N&&N.transferEventName&&(O=N.transferEventName(O));let U=arguments[2],v=U?typeof U=="boolean"?!0:U.capture:!1,x=arguments[1];if(!x)return F.apply(this,arguments);if($&&!$(F,x,f,arguments))return;let k=we[O],Y;k&&(Y=k[v?Nt:gt]);let H=Y&&f[Y];if(H)for(let te=0;te<H.length;te++){let re=H[te];if(ft(re,x)){if(H.splice(te,1),re.isRemoved=!0,H.length===0&&(re.allRemoved=!0,f[Y]=null,!v&&typeof O=="string")){let kt=Nn+"ON_PROPERTY"+O;f[kt]=null}return re.zone.cancelTask(re),J?f:void 0}}return F.apply(this,arguments)},P[_]=function(){let f=this||t,O=arguments[0];N&&N.transferEventName&&(O=N.transferEventName(O));let U=[],v=Hc(f,ie?ie(O):O);for(let x=0;x<v.length;x++){let k=v[x],Y=k.originalDelegate?k.originalDelegate:k.callback;U.push(Y)}return U},P[a]=function(){let f=this||t,O=arguments[0];if(O){N&&N.transferEventName&&(O=N.transferEventName(O));let U=we[O];if(U){let v=U[gt],x=U[Nt],k=f[v],Y=f[x];if(k){let H=k.slice();for(let te=0;te<H.length;te++){let re=H[te],kt=re.originalDelegate?re.originalDelegate:re.callback;this[i].call(this,O,kt,re.options)}}if(Y){let H=Y.slice();for(let te=0;te<H.length;te++){let re=H[te],kt=re.originalDelegate?re.originalDelegate:re.callback;this[i].call(this,O,kt,re.options)}}}}else{let U=Object.keys(f);for(let v=0;v<U.length;v++){let x=U[v],k=Bc.exec(x),Y=k&&k[1];Y&&Y!=="removeListener"&&this[a].call(this,Y)}this[a].call(this,"removeListener")}if(J)return this},Lt(P[o],G),Lt(P[i],F),ge&&Lt(P[a],ge),M&&Lt(P[_],M),!0}s(W,"patchEventTargetMethods");let oe=[];for(let L=0;L<r.length;L++)oe[L]=W(r[L],n);return oe}s(Ip,"patchEventTarget");function Hc(t,e){if(!e){let i=[];for(let _ in t){let a=Bc.exec(_),c=a&&a[1];if(c&&(!e||c===e)){let E=t[_];if(E)for(let T=0;T<E.length;T++)i.push(E[T])}}return i}let r=we[e];r||(Yc(e),r=we[e]);let n=t[r[gt]],o=t[r[Nt]];return n?o?n.concat(o):n.slice():o?o.slice():[]}s(Hc,"findEventTasks");function Cp(t,e){let r=t.Event;r&&r.prototype&&e.patchMethod(r.prototype,"stopImmediatePropagation",n=>function(o,i){o[kc]=!0,n&&n.apply(o,i)})}s(Cp,"patchEventPrototype");function Pp(t,e){e.patchMethod(t,"queueMicrotask",r=>function(n,o){Zone.current.scheduleMicroTask("queueMicrotask",o[0])})}s(Pp,"patchQueueMicrotask");var Go=q("zoneTask");function Ur(t,e,r,n){let o=null,i=null;e+=n,r+=n;let _={};function a(E){let T=E.data;T.args[0]=function(){return E.invoke.apply(this,arguments)};let u=o.apply(t,T.args);return Dc(u)?T.handleId=u:(T.handle=u,T.isRefreshable=yc(u.refresh)),E}s(a,"scheduleTask");function c(E){let{handle:T,handleId:u}=E.data;return i.call(t,T??u)}s(c,"clearTask"),o=xt(t,e,E=>function(T,u){var R;if(yc(u[0])){let d={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?u[1]||0:void 0,args:u},g=u[0];u[0]=s(function(){try{return g.apply(this,arguments)}finally{let{handle:$,handleId:ne,isPeriodic:J,isRefreshable:P}=d;!J&&!P&&(ne?delete _[ne]:$&&($[Go]=null))}},"timer");let C=g_(e,u[0],d,a,c);if(!C)return C;let{handleId:W,handle:oe,isRefreshable:L,isPeriodic:N}=C.data;if(W)_[W]=C;else if(oe&&(oe[Go]=C,L&&!N)){let X=oe.refresh;oe.refresh=function(){let{zone:$,state:ne}=C;return ne==="notScheduled"?(C._state="scheduled",$._updateTaskCount(C,1)):ne==="running"&&(C._state="scheduling"),X.call(this)}}return(R=oe??W)!=null?R:C}else return E.apply(t,u)}),i=xt(t,r,E=>function(T,u){let R=u[0],d;Dc(R)?(d=_[R],delete _[R]):(d=R?.[Go],d?R[Go]=null:d=R),d?.type?d.cancelFn&&d.zone.cancelTask(d):E.apply(t,u)})}s(Ur,"patchTimer");function Up(t,e){let{isBrowser:r,isMix:n}=e.getGlobalObjects();if(!r&&!n||!t.customElements||!("customElements"in t))return;let o=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];e.patchCallbacks(e,t.customElements,"customElements","define",o)}s(Up,"patchCustomElements");function yp(t,e){if(Zone[e.symbol("patchEventTarget")])return;let{eventNames:r,zoneSymbolEventNames:n,TRUE_STR:o,FALSE_STR:i,ZONE_SYMBOL_PREFIX:_}=e.getGlobalObjects();for(let c=0;c<r.length;c++){let E=r[c],T=E+i,u=E+o,R=_+T,d=_+u;n[E]={},n[E][i]=R,n[E][o]=d}let a=t.EventTarget;if(!(!a||!a.prototype))return e.patchEventTarget(t,e,[a&&a.prototype]),!0}s(yp,"eventTargetPatch");function Dp(t,e){e.patchEventPrototype(t,e)}s(Dp,"patchEvent");function Fc(t,e,r){if(!r||r.length===0)return e;let n=r.filter(i=>i.target===t);if(n.length===0)return e;let o=n[0].ignoreProperties;return e.filter(i=>o.indexOf(i)===-1)}s(Fc,"filterProperties");function Mc(t,e,r,n){if(!t)return;let o=Fc(t,e,r);Gc(t,o,n)}s(Mc,"patchFilteredProperties");function h_(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}s(h_,"getOnEventNames");function Mp(t,e){if(Yo&&!Vc||Zone[t.symbol("patchEvents")])return;let r=e.__Zone_ignore_on_properties,n=[];if(L_){let o=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),Mc(o,h_(o),r,d_(o))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let o=0;o<n.length;o++){let i=e[n[o]];i?.prototype&&Mc(i.prototype,h_(i.prototype),r)}}s(Mp,"propertyDescriptorPatch");function bp(t){t.__load_patch("timers",e=>{let n="clear";Ur(e,"set",n,"Timeout"),Ur(e,"set",n,"Interval"),Ur(e,"set",n,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{Ur(e,"request","cancel","AnimationFrame"),Ur(e,"mozRequest","mozCancel","AnimationFrame"),Ur(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,r)=>{let n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++){let i=n[o];xt(e,i,(_,a,c)=>function(E,T){return r.current.run(_,e,T,c)})}}),t.__load_patch("EventTarget",(e,r,n)=>{Dp(e,n),yp(e,n);let o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,n,[o.prototype])}),t.__load_patch("MutationObserver",(e,r,n)=>{mn("MutationObserver"),mn("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,r,n)=>{mn("IntersectionObserver")}),t.__load_patch("FileReader",(e,r,n)=>{mn("FileReader")}),t.__load_patch("on_property",(e,r,n)=>{Mp(n,e)}),t.__load_patch("customElements",(e,r,n)=>{Up(e,n)}),t.__load_patch("XHR",(e,r)=>{E(e);let n=q("xhrTask"),o=q("xhrSync"),i=q("xhrListener"),_=q("xhrScheduled"),a=q("xhrURL"),c=q("xhrErrorBeforeScheduled");function E(T){let u=T.XMLHttpRequest;if(!u)return;let R=u.prototype;function d(G){return G[n]}s(d,"findPendingTask");let g=R[l_],C=R[A_];if(!g){let G=T.XMLHttpRequestEventTarget;if(G){let F=G.prototype;g=F[l_],C=F[A_]}}let W="readystatechange",oe="scheduled";function L(G){let F=G.data,M=F.target;M[_]=!1,M[c]=!1;let ge=M[i];g||(g=M[l_],C=M[A_]),ge&&C.call(M,W,ge);let Me=M[i]=()=>{if(M.readyState===M.DONE)if(!F.aborted&&M[_]&&G.state===oe){let Z=M[r.__symbol__("loadfalse")];if(M.status!==0&&Z&&Z.length>0){let S=G.invoke;G.invoke=function(){let l=M[r.__symbol__("loadfalse")];for(let p=0;p<l.length;p++)l[p]===G&&l.splice(p,1);!F.aborted&&G.state===oe&&S.call(G)},Z.push(G)}else G.invoke()}else!F.aborted&&M[_]===!1&&(M[c]=!0)};return g.call(M,W,Me),M[n]||(M[n]=G),ie.apply(M,F.args),M[_]=!0,G}s(L,"scheduleTask");function N(){}s(N,"placeholderCallback");function X(G){let F=G.data;return F.aborted=!0,B.apply(F.target,F.args)}s(X,"clearTask");let $=xt(R,"open",()=>function(G,F){return G[o]=F[2]==!1,G[a]=F[1],$.apply(G,F)}),ne="XMLHttpRequest.send",J=q("fetchTaskAborting"),P=q("fetchTaskScheduling"),ie=xt(R,"send",()=>function(G,F){if(r.current[P]===!0||G[o])return ie.apply(G,F);{let M={target:G,url:G[a],isPeriodic:!1,args:F,aborted:!1},ge=g_(ne,N,M,L,X);G&&G[c]===!0&&!M.aborted&&ge.state===oe&&ge.invoke()}}),B=xt(R,"abort",()=>function(G,F){let M=d(G);if(M&&typeof M.type=="string"){if(M.cancelFn==null||M.data&&M.data.aborted)return;M.zone.cancelTask(M)}else if(r.current[J]===!0)return B.apply(G,F)})}s(E,"patchXHR")}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&mp(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,r)=>{function n(o){return function(i){Hc(e,o).forEach(a=>{let c=e.PromiseRejectionEvent;if(c){let E=new c(o,{promise:i.promise,reason:i.rejection});a.invoke(E)}})}}s(n,"findPromiseRejectionHandler"),e.PromiseRejectionEvent&&(r[q("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),r[q("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,r,n)=>{Pp(e,n)})}s(bp,"patchBrowser");function vp(t){t.__load_patch("ZoneAwarePromise",(e,r,n)=>{let o=Object.getOwnPropertyDescriptor,i=Object.defineProperty;function _(m){if(m&&m.toString===Object.prototype.toString){let h=m.constructor&&m.constructor.name;return(h||"")+": "+JSON.stringify(m)}return m?m.toString():Object.prototype.toString.call(m)}s(_,"readableObjectToString");let a=n.symbol,c=[],E=e[a("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=a("Promise"),u=a("then"),R="__creationTrace__";n.onUnhandledError=m=>{if(n.showUncaughtError()){let h=m&&m.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",m.zone.name,"; Task:",m.task&&m.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(m)}},n.microtaskDrainDone=()=>{for(;c.length;){let m=c.shift();try{m.zone.runGuarded(()=>{throw m.throwOriginal?m.rejection:m})}catch(h){g(h)}}};let d=a("unhandledPromiseRejectionHandler");function g(m){n.onUnhandledError(m);try{let h=r[d];typeof h=="function"&&h.call(this,m)}catch{}}s(g,"handleUnhandledRejection");function C(m){return m&&typeof m.then=="function"}s(C,"isThenable");function W(m){return m}s(W,"forwardResolution");function oe(m){return K.reject(m)}s(oe,"forwardRejection");let L=a("state"),N=a("value"),X