From c74d495816280424f2e79e1b4fe55f8c26ed5f65 Mon Sep 17 00:00:00 2001 From: dgadelha Date: Thu, 2 May 2024 17:38:00 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20d7da0?= =?UTF-8?q?999a890177bed35937f73eb4307cd7b9794=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- main.be486b7b11cef608.js => main.3d4fe409327e6b00.js | 2 +- ngsw.json | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename main.be486b7b11cef608.js => main.3d4fe409327e6b00.js (82%) diff --git a/index.html b/index.html index 1457d6e9..1960873b 100644 --- a/index.html +++ b/index.html @@ -20,5 +20,5 @@ - + diff --git a/main.be486b7b11cef608.js b/main.3d4fe409327e6b00.js similarity index 82% rename from main.be486b7b11cef608.js rename to main.3d4fe409327e6b00.js index 7670e4da..6e852a7e 100644 --- a/main.be486b7b11cef608.js +++ b/main.3d4fe409327e6b00.js @@ -1 +1 @@ -(self.webpackChunkide=self.webpackChunkide||[]).push([[792],{599:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _01_estrutura_b_sica_namespaceObject={};__webpack_require__.r(_01_estrutura_b_sica_namespaceObject),__webpack_require__.d(_01_estrutura_b_sica_namespaceObject,{checarFun\u00e7\u00e3oIn\u00edcio:()=>checarFun\u00e7\u00e3oIn\u00edcio,checarFun\u00e7\u00f5esComRetorno:()=>checarFun\u00e7\u00f5esComRetorno});var _02_vari_veis_namespaceObject={};function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function asyncToGenerator_asyncToGenerator(fn){return function(){var self2=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self2,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}__webpack_require__.r(_02_vari_veis_namespaceObject),__webpack_require__.d(_02_vari_veis_namespaceObject,{checarUsoEscopo:()=>checarUsoEscopo});let activeConsumer=null,inNotificationPhase=!1,epoch=1;const SIGNAL=Symbol("SIGNAL");function setActiveConsumer(consumer){const prev=activeConsumer;return activeConsumer=consumer,prev}const REACTIVE_NODE={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function producerAccessed(node2){if(inNotificationPhase)throw new Error("");if(null===activeConsumer)return;activeConsumer.consumerOnSignalRead(node2);const idx=activeConsumer.nextProducerIndex++;assertConsumerNode(activeConsumer),idxnode2.nextProducerIndex;)node2.producerNode.pop(),node2.producerLastReadVersion.pop(),node2.producerIndexOfThis.pop()}}function consumerPollProducersForChange(node2){assertConsumerNode(node2);for(let i=0;i0}function assertConsumerNode(node2){node2.producerNode??=[],node2.producerIndexOfThis??=[],node2.producerLastReadVersion??=[]}function assertProducerNode(node2){node2.liveConsumerNode??=[],node2.liveConsumerIndexOfThis??=[]}let throwInvalidWriteToSignalErrorFn=function defaultThrowError(){throw new Error};function throwInvalidWriteToSignalError(){throwInvalidWriteToSignalErrorFn()}let postSignalSetFn=null;function signalSetFn(node2,newValue){producerUpdatesAllowed()||throwInvalidWriteToSignalError(),node2.equal(node2.value,newValue)||(node2.value=newValue,function signalValueChanged(node2){node2.version++,function producerIncrementEpoch(){epoch++}(),producerNotifyConsumers(node2),postSignalSetFn?.()}(node2))}const SIGNAL_NODE={...REACTIVE_NODE,equal:function defaultEquals(a,b){return Object.is(a,b)},value:void 0};const NOOP_CLEANUP_FN=()=>{},WATCH_NODE={...REACTIVE_NODE,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:node2=>{null!==node2.schedule&&node2.schedule(node2.ref)},hasRun:!1,cleanupFn:NOOP_CLEANUP_FN};function isFunction(value){return"function"==typeof value}function createErrorClass(createImpl){const ctorFunc=createImpl(instance=>{Error.call(instance),instance.stack=(new Error).stack});return ctorFunc.prototype=Object.create(Error.prototype),ctorFunc.prototype.constructor=ctorFunc,ctorFunc}const UnsubscriptionError=createErrorClass(_super=>function(errors){_super(this),this.message=errors?`${errors.length} errors occurred during unsubscription:\n${errors.map((err,i)=>`${i+1}) ${err.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=errors});function arrRemove(arr,item){if(arr){const index=arr.indexOf(item);0<=index&&arr.splice(index,1)}}class Subscription_Subscription{constructor(initialTeardown){this.initialTeardown=initialTeardown,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let errors;if(!this.closed){this.closed=!0;const{_parentage}=this;if(_parentage)if(this._parentage=null,Array.isArray(_parentage))for(const parent of _parentage)parent.remove(this);else _parentage.remove(this);const{initialTeardown:initialFinalizer}=this;if(isFunction(initialFinalizer))try{initialFinalizer()}catch(e2){errors=e2 instanceof UnsubscriptionError?e2.errors:[e2]}const{_finalizers}=this;if(_finalizers){this._finalizers=null;for(const finalizer of _finalizers)try{execFinalizer(finalizer)}catch(err){errors=errors??[],err instanceof UnsubscriptionError?errors=[...errors,...err.errors]:errors.push(err)}}if(errors)throw new UnsubscriptionError(errors)}}add(teardown){var _a;if(teardown&&teardown!==this)if(this.closed)execFinalizer(teardown);else{if(teardown instanceof Subscription_Subscription){if(teardown.closed||teardown._hasParent(this))return;teardown._addParent(this)}(this._finalizers=null!==(_a=this._finalizers)&&void 0!==_a?_a:[]).push(teardown)}}_hasParent(parent){const{_parentage}=this;return _parentage===parent||Array.isArray(_parentage)&&_parentage.includes(parent)}_addParent(parent){const{_parentage}=this;this._parentage=Array.isArray(_parentage)?(_parentage.push(parent),_parentage):_parentage?[_parentage,parent]:parent}_removeParent(parent){const{_parentage}=this;_parentage===parent?this._parentage=null:Array.isArray(_parentage)&&arrRemove(_parentage,parent)}remove(teardown){const{_finalizers}=this;_finalizers&&arrRemove(_finalizers,teardown),teardown instanceof Subscription_Subscription&&teardown._removeParent(this)}}Subscription_Subscription.EMPTY=(()=>{const empty2=new Subscription_Subscription;return empty2.closed=!0,empty2})();const EMPTY_SUBSCRIPTION=Subscription_Subscription.EMPTY;function isSubscription(value){return value instanceof Subscription_Subscription||value&&"closed"in value&&isFunction(value.remove)&&isFunction(value.add)&&isFunction(value.unsubscribe)}function execFinalizer(finalizer){isFunction(finalizer)?finalizer():finalizer.unsubscribe()}const config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout(handler,timeout,...args){const{delegate}=timeoutProvider;return delegate?.setTimeout?delegate.setTimeout(handler,timeout,...args):setTimeout(handler,timeout,...args)},clearTimeout(handle){const{delegate}=timeoutProvider;return(delegate?.clearTimeout||clearTimeout)(handle)},delegate:void 0};function reportUnhandledError(err){timeoutProvider.setTimeout(()=>{const{onUnhandledError}=config;if(!onUnhandledError)throw err;onUnhandledError(err)})}function noop(){}const COMPLETE_NOTIFICATION=createNotification("C",void 0,void 0);function createNotification(kind,value,error){return{kind,value,error}}let context=null;function errorContext(cb){if(config.useDeprecatedSynchronousErrorHandling){const isRoot=!context;if(isRoot&&(context={errorThrown:!1,error:null}),cb(),isRoot){const{errorThrown,error}=context;if(context=null,errorThrown)throw error}}else cb()}class Subscriber extends Subscription_Subscription{constructor(destination){super(),this.isStopped=!1,destination?(this.destination=destination,isSubscription(destination)&&destination.add(this)):this.destination=EMPTY_OBSERVER}static create(next,error,complete){return new SafeSubscriber(next,error,complete)}next(value){this.isStopped?handleStoppedNotification(function nextNotification(value){return createNotification("N",value,void 0)}(value),this):this._next(value)}error(err){this.isStopped?handleStoppedNotification(function errorNotification(error){return createNotification("E",void 0,error)}(err),this):(this.isStopped=!0,this._error(err))}complete(){this.isStopped?handleStoppedNotification(COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(value){this.destination.next(value)}_error(err){try{this.destination.error(err)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _bind=Function.prototype.bind;function bind(fn,thisArg){return _bind.call(fn,thisArg)}class ConsumerObserver{constructor(partialObserver){this.partialObserver=partialObserver}next(value){const{partialObserver}=this;if(partialObserver.next)try{partialObserver.next(value)}catch(error){handleUnhandledError(error)}}error(err){const{partialObserver}=this;if(partialObserver.error)try{partialObserver.error(err)}catch(error){handleUnhandledError(error)}else handleUnhandledError(err)}complete(){const{partialObserver}=this;if(partialObserver.complete)try{partialObserver.complete()}catch(error){handleUnhandledError(error)}}}class SafeSubscriber extends Subscriber{constructor(observerOrNext,error,complete){let partialObserver;if(super(),isFunction(observerOrNext)||!observerOrNext)partialObserver={next:observerOrNext??void 0,error:error??void 0,complete:complete??void 0};else{let context2;this&&config.useDeprecatedNextContext?(context2=Object.create(observerOrNext),context2.unsubscribe=()=>this.unsubscribe(),partialObserver={next:observerOrNext.next&&bind(observerOrNext.next,context2),error:observerOrNext.error&&bind(observerOrNext.error,context2),complete:observerOrNext.complete&&bind(observerOrNext.complete,context2)}):partialObserver=observerOrNext}this.destination=new ConsumerObserver(partialObserver)}}function handleUnhandledError(error){config.useDeprecatedSynchronousErrorHandling?function captureError(err){config.useDeprecatedSynchronousErrorHandling&&context&&(context.errorThrown=!0,context.error=err)}(error):reportUnhandledError(error)}function handleStoppedNotification(notification,subscriber){const{onStoppedNotification}=config;onStoppedNotification&&timeoutProvider.setTimeout(()=>onStoppedNotification(notification,subscriber))}const EMPTY_OBSERVER={closed:!0,next:noop,error:function defaultErrorHandler(err){throw err},complete:noop},observable="function"==typeof Symbol&&Symbol.observable||"@@observable";function identity(x){return x}let Observable_Observable=(()=>{class Observable2{constructor(subscribe){subscribe&&(this._subscribe=subscribe)}lift(operator){const observable2=new Observable2;return observable2.source=this,observable2.operator=operator,observable2}subscribe(observerOrNext,error,complete){const subscriber=function isSubscriber(value){return value&&value instanceof Subscriber||function isObserver(value){return value&&isFunction(value.next)&&isFunction(value.error)&&isFunction(value.complete)}(value)&&isSubscription(value)}(observerOrNext)?observerOrNext:new SafeSubscriber(observerOrNext,error,complete);return errorContext(()=>{const{operator,source}=this;subscriber.add(operator?operator.call(subscriber,source):source?this._subscribe(subscriber):this._trySubscribe(subscriber))}),subscriber}_trySubscribe(sink){try{return this._subscribe(sink)}catch(err){sink.error(err)}}forEach(next,promiseCtor){return new(promiseCtor=getPromiseCtor(promiseCtor))((resolve,reject)=>{const subscriber=new SafeSubscriber({next:value=>{try{next(value)}catch(err){reject(err),subscriber.unsubscribe()}},error:reject,complete:resolve});this.subscribe(subscriber)})}_subscribe(subscriber){var _a;return null===(_a=this.source)||void 0===_a?void 0:_a.subscribe(subscriber)}[observable](){return this}pipe(...operations){return function pipeFromArray(fns){return 0===fns.length?identity:1===fns.length?fns[0]:function(input2){return fns.reduce((prev,fn)=>fn(prev),input2)}}(operations)(this)}toPromise(promiseCtor){return new(promiseCtor=getPromiseCtor(promiseCtor))((resolve,reject)=>{let value;this.subscribe(x=>value=x,err=>reject(err),()=>resolve(value))})}}return Observable2.create=subscribe=>new Observable2(subscribe),Observable2})();function getPromiseCtor(promiseCtor){var _a;return null!==(_a=promiseCtor??config.Promise)&&void 0!==_a?_a:Promise}const ObjectUnsubscribedError=createErrorClass(_super=>function(){_super(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Subject_Subject=(()=>{class Subject2 extends Observable_Observable{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(operator){const subject=new AnonymousSubject(this,this);return subject.operator=operator,subject}_throwIfClosed(){if(this.closed)throw new ObjectUnsubscribedError}next(value){errorContext(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const observer of this.currentObservers)observer.next(value)}})}error(err){errorContext(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=err;const{observers}=this;for(;observers.length;)observers.shift().error(err)}})}complete(){errorContext(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers}=this;for(;observers.length;)observers.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _a;return(null===(_a=this.observers)||void 0===_a?void 0:_a.length)>0}_trySubscribe(subscriber){return this._throwIfClosed(),super._trySubscribe(subscriber)}_subscribe(subscriber){return this._throwIfClosed(),this._checkFinalizedStatuses(subscriber),this._innerSubscribe(subscriber)}_innerSubscribe(subscriber){const{hasError,isStopped,observers}=this;return hasError||isStopped?EMPTY_SUBSCRIPTION:(this.currentObservers=null,observers.push(subscriber),new Subscription_Subscription(()=>{this.currentObservers=null,arrRemove(observers,subscriber)}))}_checkFinalizedStatuses(subscriber){const{hasError,thrownError,isStopped}=this;hasError?subscriber.error(thrownError):isStopped&&subscriber.complete()}asObservable(){const observable2=new Observable_Observable;return observable2.source=this,observable2}}return Subject2.create=(destination,source)=>new AnonymousSubject(destination,source),Subject2})();class AnonymousSubject extends Subject_Subject{constructor(destination,source){super(),this.destination=destination,this.source=source}next(value){var _a,_b;null===(_b=null===(_a=this.destination)||void 0===_a?void 0:_a.next)||void 0===_b||_b.call(_a,value)}error(err){var _a,_b;null===(_b=null===(_a=this.destination)||void 0===_a?void 0:_a.error)||void 0===_b||_b.call(_a,err)}complete(){var _a,_b;null===(_b=null===(_a=this.destination)||void 0===_a?void 0:_a.complete)||void 0===_b||_b.call(_a)}_subscribe(subscriber){var _a,_b;return null!==(_b=null===(_a=this.source)||void 0===_a?void 0:_a.subscribe(subscriber))&&void 0!==_b?_b:EMPTY_SUBSCRIPTION}}class BehaviorSubject_BehaviorSubject extends Subject_Subject{constructor(_value){super(),this._value=_value}get value(){return this.getValue()}_subscribe(subscriber){const subscription=super._subscribe(subscriber);return!subscription.closed&&subscriber.next(this._value),subscription}getValue(){const{hasError,thrownError,_value}=this;if(hasError)throw thrownError;return this._throwIfClosed(),_value}next(value){super.next(this._value=value)}}function hasLift(source){return isFunction(source?.lift)}function operate(init2){return source=>{if(hasLift(source))return source.lift(function(liftedSource){try{return init2(liftedSource,this)}catch(err){this.error(err)}});throw new TypeError("Unable to lift unknown Observable type")}}function createOperatorSubscriber(destination,onNext,onComplete,onError,onFinalize){return new OperatorSubscriber(destination,onNext,onComplete,onError,onFinalize)}class OperatorSubscriber extends Subscriber{constructor(destination,onNext,onComplete,onError,onFinalize,shouldUnsubscribe){super(destination),this.onFinalize=onFinalize,this.shouldUnsubscribe=shouldUnsubscribe,this._next=onNext?function(value){try{onNext(value)}catch(err){destination.error(err)}}:super._next,this._error=onError?function(err){try{onError(err)}catch(err2){destination.error(err2)}finally{this.unsubscribe()}}:super._error,this._complete=onComplete?function(){try{onComplete()}catch(err){destination.error(err)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var _a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed}=this;super.unsubscribe(),!closed&&(null===(_a=this.onFinalize)||void 0===_a||_a.call(this))}}}function map_map(project,thisArg){return operate((source,subscriber)=>{let index=0;source.subscribe(createOperatorSubscriber(subscriber,value=>{subscriber.next(project.call(thisArg,value,index++))}))})}const XSS_SECURITY_URL="https://g.co/ng/security#xss";class RuntimeError extends Error{constructor(code,message){super(function formatRuntimeError(code,message){return`NG0${Math.abs(code)}${message?": "+message:""}`}(code,message)),this.code=code}}function noSideEffects(fn){return{toString:fn}.toString()}const ANNOTATIONS="__annotations__",PARAMETERS="__parameters__";function makeDecorator(name,props,parentClass,additionalProcessing,typeFn){return noSideEffects(()=>{const metaCtor=makeMetadataCtor(props);function DecoratorFactory(...args){if(this instanceof DecoratorFactory)return metaCtor.call(this,...args),this;const annotationInstance=new DecoratorFactory(...args);return function(cls){return typeFn&&typeFn(cls,...args),(cls.hasOwnProperty(ANNOTATIONS)?cls[ANNOTATIONS]:Object.defineProperty(cls,ANNOTATIONS,{value:[]})[ANNOTATIONS]).push(annotationInstance),additionalProcessing&&additionalProcessing(cls),cls}}return parentClass&&(DecoratorFactory.prototype=Object.create(parentClass.prototype)),DecoratorFactory.prototype.ngMetadataName=name,DecoratorFactory.annotationCls=DecoratorFactory,DecoratorFactory})}function makeMetadataCtor(props){return function(...args){if(props){const values=props(...args);for(const propName in values)this[propName]=values[propName]}}}function makeParamDecorator(name,props,parentClass){return noSideEffects(()=>{const metaCtor=makeMetadataCtor(props);function ParamDecoratorFactory(...args){if(this instanceof ParamDecoratorFactory)return metaCtor.apply(this,args),this;const annotationInstance=new ParamDecoratorFactory(...args);return ParamDecorator.annotation=annotationInstance,ParamDecorator;function ParamDecorator(cls,unusedKey,index){const parameters=cls.hasOwnProperty(PARAMETERS)?cls[PARAMETERS]:Object.defineProperty(cls,PARAMETERS,{value:[]})[PARAMETERS];for(;parameters.length<=index;)parameters.push(null);return(parameters[index]=parameters[index]||[]).push(annotationInstance),cls}}return parentClass&&(ParamDecoratorFactory.prototype=Object.create(parentClass.prototype)),ParamDecoratorFactory.prototype.ngMetadataName=name,ParamDecoratorFactory.annotationCls=ParamDecoratorFactory,ParamDecoratorFactory})}const _global=globalThis;function getClosureSafeProperty(objWithPropertyToExtract){for(let key in objWithPropertyToExtract)if(objWithPropertyToExtract[key]===getClosureSafeProperty)return key;throw Error("Could not find renamed property on target object.")}function fillProperties(target,source){for(const key in source)source.hasOwnProperty(key)&&!target.hasOwnProperty(key)&&(target[key]=source[key])}function stringify(token){if("string"==typeof token)return token;if(Array.isArray(token))return"["+token.map(stringify).join(", ")+"]";if(null==token)return""+token;if(token.overriddenName)return`${token.overriddenName}`;if(token.name)return`${token.name}`;const res=token.toString();if(null==res)return""+res;const newLineIndex=res.indexOf("\n");return-1===newLineIndex?res:res.substring(0,newLineIndex)}function concatStringsWithSpace(before,after){return null==before||""===before?null===after?"":after:null==after||""===after?before:before+" "+after}const __forward_ref__=getClosureSafeProperty({__forward_ref__:getClosureSafeProperty});function core_forwardRef(forwardRefFn){return forwardRefFn.__forward_ref__=core_forwardRef,forwardRefFn.toString=function(){return stringify(this())},forwardRefFn}function resolveForwardRef(type){return isForwardRef(type)?type():type}function isForwardRef(fn){return"function"==typeof fn&&fn.hasOwnProperty(__forward_ref__)&&fn.__forward_ref__===core_forwardRef}function core_throwError(msg,actual,expected,comparison){throw new Error(`ASSERTION ERROR: ${msg}`+(null==comparison?"":` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`))}function core_defineInjectable(opts){return{token:opts.token,providedIn:opts.providedIn||null,factory:opts.factory,value:void 0}}function \u0275\u0275defineInjector(options){return{providers:options.providers||[],imports:options.imports||[]}}function getInjectableDef(type){return getOwnDefinition(type,NG_PROV_DEF)||getOwnDefinition(type,NG_INJECTABLE_DEF)}function getOwnDefinition(type,field){return type.hasOwnProperty(field)?type[field]:null}function getInjectorDef(type){return type&&(type.hasOwnProperty(NG_INJ_DEF)||type.hasOwnProperty(NG_INJECTOR_DEF))?type[NG_INJ_DEF]:null}const NG_PROV_DEF=getClosureSafeProperty({\u0275prov:getClosureSafeProperty}),NG_INJ_DEF=getClosureSafeProperty({\u0275inj:getClosureSafeProperty}),NG_INJECTABLE_DEF=getClosureSafeProperty({ngInjectableDef:getClosureSafeProperty}),NG_INJECTOR_DEF=getClosureSafeProperty({ngInjectorDef:getClosureSafeProperty});class InjectionToken{constructor(_desc,options){this._desc=_desc,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof options?this.__NG_ELEMENT_ID__=options:void 0!==options&&(this.\u0275prov=core_defineInjectable({token:this,providedIn:options.providedIn||"root",factory:options.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function isEnvironmentProviders(value){return value&&!!value.\u0275providers}const NG_COMP_DEF=getClosureSafeProperty({\u0275cmp:getClosureSafeProperty}),NG_DIR_DEF=getClosureSafeProperty({\u0275dir:getClosureSafeProperty}),NG_PIPE_DEF=getClosureSafeProperty({\u0275pipe:getClosureSafeProperty}),NG_MOD_DEF=getClosureSafeProperty({\u0275mod:getClosureSafeProperty}),NG_FACTORY_DEF=getClosureSafeProperty({\u0275fac:getClosureSafeProperty}),NG_ELEMENT_ID=getClosureSafeProperty({__NG_ELEMENT_ID__:getClosureSafeProperty}),NG_ENV_ID=getClosureSafeProperty({__NG_ENV_ID__:getClosureSafeProperty});function renderStringify(value){return"string"==typeof value?value:null==value?"":String(value)}function stringifyForError(value){return"function"==typeof value?value.name||value.toString():"object"==typeof value&&null!=value&&"function"==typeof value.type?value.type.name||value.type.toString():renderStringify(value)}function throwProviderNotFoundError(token,injectorName){throw new RuntimeError(-201,!1)}var core_InjectFlags=function(InjectFlags2){return InjectFlags2[InjectFlags2.Default=0]="Default",InjectFlags2[InjectFlags2.Host=1]="Host",InjectFlags2[InjectFlags2.Self=2]="Self",InjectFlags2[InjectFlags2.SkipSelf=4]="SkipSelf",InjectFlags2[InjectFlags2.Optional=8]="Optional",InjectFlags2}(core_InjectFlags||{});let _injectImplementation;function getInjectImplementation(){return _injectImplementation}function setInjectImplementation(impl){const previous=_injectImplementation;return _injectImplementation=impl,previous}function injectRootLimpMode(token,notFoundValue,flags){const injectableDef=getInjectableDef(token);return injectableDef&&"root"==injectableDef.providedIn?void 0===injectableDef.value?injectableDef.value=injectableDef.factory():injectableDef.value:flags&core_InjectFlags.Optional?null:void 0!==notFoundValue?notFoundValue:void throwProviderNotFoundError()}const THROW_IF_NOT_FOUND={},DI_DECORATOR_FLAG="__NG_DI_FLAG__",NEW_LINE=/\n/gm;let _currentInjector;function setCurrentInjector(injector){const former=_currentInjector;return _currentInjector=injector,former}function injectInjectorOnly(token,flags=core_InjectFlags.Default){if(void 0===_currentInjector)throw new RuntimeError(-203,!1);return null===_currentInjector?injectRootLimpMode(token,void 0,flags):_currentInjector.get(token,flags&core_InjectFlags.Optional?null:void 0,flags)}function \u0275\u0275inject(token,flags=core_InjectFlags.Default){return(getInjectImplementation()||injectInjectorOnly)(resolveForwardRef(token),flags)}function core_inject(token,flags=core_InjectFlags.Default){return \u0275\u0275inject(token,convertToBitFlags(flags))}function convertToBitFlags(flags){return typeof flags>"u"||"number"==typeof flags?flags:(flags.optional&&8)|(flags.host&&1)|(flags.self&&2)|(flags.skipSelf&&4)}function injectArgs(types){const args=[];for(let i=0;i({token})),-1),core_Optional=attachInjectFlag(makeParamDecorator("Optional"),8),Self=attachInjectFlag(makeParamDecorator("Self"),2),core_SkipSelf=attachInjectFlag(makeParamDecorator("SkipSelf"),4),Host=attachInjectFlag(makeParamDecorator("Host"),1);function getFactoryDef(type,throwNotFound){return type.hasOwnProperty(NG_FACTORY_DEF)?type[NG_FACTORY_DEF]:null}function flatten(list2){return list2.flat(Number.POSITIVE_INFINITY)}function deepForEach(input2,fn){input2.forEach(value=>Array.isArray(value)?deepForEach(value,fn):fn(value))}function addToArray(arr,index,value){index>=arr.length?arr.push(value):arr.splice(index,0,value)}function removeFromArray(arr,index){return index>=arr.length-1?arr.pop():arr.splice(index,1)[0]}function newArray(size,value){const list2=[];for(let i=0;iindex;)array[end]=array[end-2],end--;array[index]=value1,array[index+1]=value2}}function keyValueArraySet(keyValueArray,key,value){let index=keyValueArrayIndexOf(keyValueArray,key);return index>=0?keyValueArray[1|index]=value:(index=~index,arrayInsert2(keyValueArray,index,key,value)),index}function keyValueArrayGet(keyValueArray,key){const index=keyValueArrayIndexOf(keyValueArray,key);if(index>=0)return keyValueArray[1|index]}function keyValueArrayIndexOf(keyValueArray,key){return function _arrayIndexOfSorted(array,value,shift){let start2=0,end=array.length>>shift;for(;end!==start2;){const middle=start2+(end-start2>>1),current=array[middle<value?end=middle:start2=middle+1}return~(end<marker){markerInsertPosition=i-1;break}}}for(;i-1){let item;for(;++inameOnlyMarkerIdx?"":nodeAttrs[attrIndexInNode+1].toLowerCase(),2&mode&&selectorAttrValue!==nodeAttrValue){if(isPositive(mode))return!1;skipToNextSelector=!0}}}}else{if(!skipToNextSelector&&!isPositive(mode)&&!isPositive(current))return!1;if(skipToNextSelector&&isPositive(current))continue;skipToNextSelector=!1,mode=current|1&mode}}return isPositive(mode)||skipToNextSelector}function isPositive(mode){return!(1&mode)}function findAttrIndexInNode(name,attrs,isInlineTemplate2,isProjectionMode){if(null===attrs)return-1;let i=0;if(isProjectionMode||!isInlineTemplate2){let bindingsMode=!1;for(;i-1)for(i++;i0?'="'+attrValue+'"':"")+"]"}else 8&mode?currentChunk+="."+valueOrMarker:4&mode&&(currentChunk+=" "+valueOrMarker);else""!==currentChunk&&!isPositive(valueOrMarker)&&(result+=maybeWrapInNotSelector(isNegativeMode,currentChunk),currentChunk=""),mode=valueOrMarker,isNegativeMode=isNegativeMode||!isPositive(mode);i++}return""!==currentChunk&&(result+=maybeWrapInNotSelector(isNegativeMode,currentChunk)),result}function \u0275\u0275defineComponent(componentDefinition){return noSideEffects(()=>{const baseDef=getNgDirectiveDef(componentDefinition),def={...baseDef,decls:componentDefinition.decls,vars:componentDefinition.vars,template:componentDefinition.template,consts:componentDefinition.consts||null,ngContentSelectors:componentDefinition.ngContentSelectors,onPush:componentDefinition.changeDetection===ChangeDetectionStrategy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:baseDef.standalone&&componentDefinition.dependencies||null,getStandaloneInjector:null,signals:componentDefinition.signals??!1,data:componentDefinition.data||{},encapsulation:componentDefinition.encapsulation||ViewEncapsulation$1.Emulated,styles:componentDefinition.styles||EMPTY_ARRAY,_:null,schemas:componentDefinition.schemas||null,tView:null,id:""};initFeatures(def);const dependencies=componentDefinition.dependencies;return def.directiveDefs=extractDefListOrFactory(dependencies,!1),def.pipeDefs=extractDefListOrFactory(dependencies,!0),def.id=function getComponentId(componentDef){let hash=0;const hashSelectors=[componentDef.selectors,componentDef.ngContentSelectors,componentDef.hostVars,componentDef.hostAttrs,componentDef.consts,componentDef.vars,componentDef.decls,componentDef.encapsulation,componentDef.standalone,componentDef.signals,componentDef.exportAs,JSON.stringify(componentDef.inputs),JSON.stringify(componentDef.outputs),Object.getOwnPropertyNames(componentDef.type.prototype),!!componentDef.contentQueries,!!componentDef.viewQuery].join("|");for(const char of hashSelectors)hash=Math.imul(31,hash)+char.charCodeAt(0)|0;return hash+=2147483648,"c"+hash}(def),def})}function extractDirectiveDef(type){return getComponentDef(type)||getDirectiveDef(type)}function nonNull(value){return null!==value}function \u0275\u0275defineNgModule(def){return noSideEffects(()=>({type:def.type,bootstrap:def.bootstrap||EMPTY_ARRAY,declarations:def.declarations||EMPTY_ARRAY,imports:def.imports||EMPTY_ARRAY,exports:def.exports||EMPTY_ARRAY,transitiveCompileScopes:null,schemas:def.schemas||null,id:def.id||null}))}function parseAndConvertBindingsForDefinition(obj,declaredInputs){if(null==obj)return EMPTY_OBJ;const newLookup={};for(const minifiedKey in obj)if(obj.hasOwnProperty(minifiedKey)){const value=obj[minifiedKey];let publicName,declaredName,inputFlags=InputFlags.None;Array.isArray(value)?(inputFlags=value[0],publicName=value[1],declaredName=value[2]??publicName):(publicName=value,declaredName=value),declaredInputs?(newLookup[publicName]=inputFlags!==InputFlags.None?[minifiedKey,inputFlags]:minifiedKey,declaredInputs[publicName]=declaredName):newLookup[publicName]=minifiedKey}return newLookup}function \u0275\u0275defineDirective(directiveDefinition){return noSideEffects(()=>{const def=getNgDirectiveDef(directiveDefinition);return initFeatures(def),def})}function \u0275\u0275definePipe(pipeDef){return{type:pipeDef.type,name:pipeDef.name,factory:null,pure:!1!==pipeDef.pure,standalone:!0===pipeDef.standalone,onDestroy:pipeDef.type.prototype.ngOnDestroy||null}}function getComponentDef(type){return type[NG_COMP_DEF]||null}function getDirectiveDef(type){return type[NG_DIR_DEF]||null}function getPipeDef$1(type){return type[NG_PIPE_DEF]||null}function isStandalone(type){const def=getComponentDef(type)||getDirectiveDef(type)||getPipeDef$1(type);return null!==def&&def.standalone}function getNgModuleDef(type,throwNotFound){const ngModuleDef=type[NG_MOD_DEF]||null;if(!ngModuleDef&&!0===throwNotFound)throw new Error(`Type ${stringify(type)} does not have '\u0275mod' property.`);return ngModuleDef}function getNgDirectiveDef(directiveDefinition){const declaredInputs={};return{type:directiveDefinition.type,providersResolver:null,factory:null,hostBindings:directiveDefinition.hostBindings||null,hostVars:directiveDefinition.hostVars||0,hostAttrs:directiveDefinition.hostAttrs||null,contentQueries:directiveDefinition.contentQueries||null,declaredInputs,inputTransforms:null,inputConfig:directiveDefinition.inputs||EMPTY_OBJ,exportAs:directiveDefinition.exportAs||null,standalone:!0===directiveDefinition.standalone,signals:!0===directiveDefinition.signals,selectors:directiveDefinition.selectors||EMPTY_ARRAY,viewQuery:directiveDefinition.viewQuery||null,features:directiveDefinition.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:parseAndConvertBindingsForDefinition(directiveDefinition.inputs,declaredInputs),outputs:parseAndConvertBindingsForDefinition(directiveDefinition.outputs),debugInfo:null}}function initFeatures(definition){definition.features?.forEach(fn=>fn(definition))}function extractDefListOrFactory(dependencies,pipeDef){if(!dependencies)return null;const defExtractor=pipeDef?getPipeDef$1:extractDirectiveDef;return()=>("function"==typeof dependencies?dependencies():dependencies).map(dep=>defExtractor(dep)).filter(nonNull)}function core_makeEnvironmentProviders(providers){return{\u0275providers:providers}}function importProvidersFrom(...sources){return{\u0275providers:internalImportProvidersFrom(0,sources),\u0275fromNgModule:!0}}function internalImportProvidersFrom(checkForStandaloneCmp,...sources){const providersOut=[],dedup=new Set;let injectorTypesWithProviders;const collectProviders=provider=>{providersOut.push(provider)};return deepForEach(sources,source=>{const internalSource=source;walkProviderTree(internalSource,collectProviders,[],dedup)&&(injectorTypesWithProviders||=[],injectorTypesWithProviders.push(internalSource))}),void 0!==injectorTypesWithProviders&&processInjectorTypesWithProviders(injectorTypesWithProviders,collectProviders),providersOut}function processInjectorTypesWithProviders(typesWithProviders,visitor){for(let i=0;i{visitor(provider,ngModule)})}}function walkProviderTree(container,visitor,parents,dedup){if(!(container=resolveForwardRef(container)))return!1;let defType=null,injDef=getInjectorDef(container);const cmpDef=!injDef&&getComponentDef(container);if(injDef||cmpDef){if(cmpDef&&!cmpDef.standalone)return!1;defType=container}else{const ngModule=container.ngModule;if(injDef=getInjectorDef(ngModule),!injDef)return!1;defType=ngModule}const isDuplicate=dedup.has(defType);if(cmpDef){if(isDuplicate)return!1;if(dedup.add(defType),cmpDef.dependencies){const deps="function"==typeof cmpDef.dependencies?cmpDef.dependencies():cmpDef.dependencies;for(const dep of deps)walkProviderTree(dep,visitor,parents,dedup)}}else{if(!injDef)return!1;{if(null!=injDef.imports&&!isDuplicate){let importTypesWithProviders;dedup.add(defType);try{deepForEach(injDef.imports,imported=>{walkProviderTree(imported,visitor,parents,dedup)&&(importTypesWithProviders||=[],importTypesWithProviders.push(imported))})}finally{}void 0!==importTypesWithProviders&&processInjectorTypesWithProviders(importTypesWithProviders,visitor)}if(!isDuplicate){const factory2=getFactoryDef(defType)||(()=>new defType);visitor({provide:defType,useFactory:factory2,deps:EMPTY_ARRAY},defType),visitor({provide:INJECTOR_DEF_TYPES,useValue:defType,multi:!0},defType),visitor({provide:core_ENVIRONMENT_INITIALIZER,useValue:()=>\u0275\u0275inject(defType),multi:!0},defType)}const defProviders=injDef.providers;if(null!=defProviders&&!isDuplicate){const injectorType=container;deepForEachProvider(defProviders,provider=>{visitor(provider,injectorType)})}}}return defType!==container&&void 0!==container.providers}function deepForEachProvider(providers,fn){for(let provider of providers)isEnvironmentProviders(provider)&&(provider=provider.\u0275providers),Array.isArray(provider)?deepForEachProvider(provider,fn):fn(provider)}const USE_VALUE$1=getClosureSafeProperty({provide:String,useValue:getClosureSafeProperty});function isValueProvider(value){return null!==value&&"object"==typeof value&&USE_VALUE$1 in value}function isTypeProvider(value){return"function"==typeof value}const INJECTOR_SCOPE=new InjectionToken(""),NOT_YET={},CIRCULAR={};let NULL_INJECTOR;function getNullInjector(){return void 0===NULL_INJECTOR&&(NULL_INJECTOR=new NullInjector),NULL_INJECTOR}class core_EnvironmentInjector{}class R3Injector extends core_EnvironmentInjector{get destroyed(){return this._destroyed}constructor(providers,parent,source,scopes){super(),this.parent=parent,this.source=source,this.scopes=scopes,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,forEachSingleProvider(providers,provider=>this.processProvider(provider)),this.records.set(INJECTOR$1,makeRecord(void 0,this)),scopes.has("environment")&&this.records.set(core_EnvironmentInjector,makeRecord(void 0,this));const record2=this.records.get(INJECTOR_SCOPE);null!=record2&&"string"==typeof record2.value&&this.scopes.add(record2.value),this.injectorDefTypes=new Set(this.get(INJECTOR_DEF_TYPES,EMPTY_ARRAY,core_InjectFlags.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const prevConsumer=setActiveConsumer(null);try{for(const service of this._ngOnDestroyHooks)service.ngOnDestroy();const onDestroyHooks=this._onDestroyHooks;this._onDestroyHooks=[];for(const hook of onDestroyHooks)hook()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),setActiveConsumer(prevConsumer)}}onDestroy(callback){return this.assertNotDestroyed(),this._onDestroyHooks.push(callback),()=>this.removeOnDestroy(callback)}runInContext(fn){this.assertNotDestroyed();const previousInjector=setCurrentInjector(this),previousInjectImplementation=setInjectImplementation(void 0);try{return fn()}finally{setCurrentInjector(previousInjector),setInjectImplementation(previousInjectImplementation)}}get(token,notFoundValue=THROW_IF_NOT_FOUND,flags=core_InjectFlags.Default){if(this.assertNotDestroyed(),token.hasOwnProperty(NG_ENV_ID))return token[NG_ENV_ID](this);flags=convertToBitFlags(flags);const previousInjector=setCurrentInjector(this),previousInjectImplementation=setInjectImplementation(void 0);try{if(!(flags&core_InjectFlags.SkipSelf)){let record2=this.records.get(token);if(void 0===record2){const def=function couldBeInjectableType(value){return"function"==typeof value||"object"==typeof value&&value instanceof InjectionToken}(token)&&getInjectableDef(token);record2=def&&this.injectableDefInScope(def)?makeRecord(injectableDefOrInjectorDefFactory(token),NOT_YET):null,this.records.set(token,record2)}if(null!=record2)return this.hydrate(token,record2)}return(flags&core_InjectFlags.Self?getNullInjector():this.parent).get(token,notFoundValue=flags&core_InjectFlags.Optional&¬FoundValue===THROW_IF_NOT_FOUND?null:notFoundValue)}catch(e2){if("NullInjectorError"===e2.name){if((e2.ngTempTokenPath=e2.ngTempTokenPath||[]).unshift(stringify(token)),previousInjector)throw e2;return function catchInjectorError(e2,token,injectorErrorName,source){const tokenPath=e2.ngTempTokenPath;throw token.__source&&tokenPath.unshift(token.__source),e2.message=function formatError(text,obj,injectorErrorName,source=null){text=text&&"\n"===text.charAt(0)&&"\u0275"==text.charAt(1)?text.slice(2):text;let context2=stringify(obj);if(Array.isArray(obj))context2=obj.map(stringify).join(" -> ");else if("object"==typeof obj){let parts=[];for(let key in obj)if(obj.hasOwnProperty(key)){let value=obj[key];parts.push(key+":"+("string"==typeof value?JSON.stringify(value):stringify(value)))}context2=`{${parts.join(", ")}}`}return`${injectorErrorName}${source?"("+source+")":""}[${context2}]: ${text.replace(NEW_LINE,"\n ")}`}("\n"+e2.message,tokenPath,injectorErrorName,source),e2.ngTokenPath=tokenPath,e2.ngTempTokenPath=null,e2}(e2,token,"R3InjectorError",this.source)}throw e2}finally{setInjectImplementation(previousInjectImplementation),setCurrentInjector(previousInjector)}}resolveInjectorInitializers(){const prevConsumer=setActiveConsumer(null),previousInjector=setCurrentInjector(this),previousInjectImplementation=setInjectImplementation(void 0);try{const initializers=this.get(core_ENVIRONMENT_INITIALIZER,EMPTY_ARRAY,core_InjectFlags.Self);for(const initializer of initializers)initializer()}finally{setCurrentInjector(previousInjector),setInjectImplementation(previousInjectImplementation),setActiveConsumer(prevConsumer)}}toString(){const tokens=[],records=this.records;for(const token of records.keys())tokens.push(stringify(token));return`R3Injector[${tokens.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new RuntimeError(205,!1)}processProvider(provider){let token=isTypeProvider(provider=resolveForwardRef(provider))?provider:resolveForwardRef(provider&&provider.provide);const record2=function providerToRecord(provider){return isValueProvider(provider)?makeRecord(void 0,provider.useValue):makeRecord(providerToFactory(provider),NOT_YET)}(provider);if(!isTypeProvider(provider)&&!0===provider.multi){let multiRecord=this.records.get(token);multiRecord||(multiRecord=makeRecord(void 0,NOT_YET,!0),multiRecord.factory=()=>injectArgs(multiRecord.multi),this.records.set(token,multiRecord)),token=provider,multiRecord.multi.push(provider)}this.records.set(token,record2)}hydrate(token,record2){const prevConsumer=setActiveConsumer(null);try{return record2.value===NOT_YET&&(record2.value=CIRCULAR,record2.value=record2.factory()),"object"==typeof record2.value&&record2.value&&function hasOnDestroy(value){return null!==value&&"object"==typeof value&&"function"==typeof value.ngOnDestroy}(record2.value)&&this._ngOnDestroyHooks.add(record2.value),record2.value}finally{setActiveConsumer(prevConsumer)}}injectableDefInScope(def){if(!def.providedIn)return!1;const providedIn=resolveForwardRef(def.providedIn);return"string"==typeof providedIn?"any"===providedIn||this.scopes.has(providedIn):this.injectorDefTypes.has(providedIn)}removeOnDestroy(callback){const destroyCBIdx=this._onDestroyHooks.indexOf(callback);-1!==destroyCBIdx&&this._onDestroyHooks.splice(destroyCBIdx,1)}}function injectableDefOrInjectorDefFactory(token){const injectableDef=getInjectableDef(token),factory2=null!==injectableDef?injectableDef.factory:getFactoryDef(token);if(null!==factory2)return factory2;if(token instanceof InjectionToken)throw new RuntimeError(204,!1);if(token instanceof Function)return function getUndecoratedInjectableFactory(token){if(token.length>0)throw new RuntimeError(204,!1);const inheritedInjectableDef=function getInheritedInjectableDef(type){return type&&(type[NG_PROV_DEF]||type[NG_INJECTABLE_DEF])||null}(token);return null!==inheritedInjectableDef?()=>inheritedInjectableDef.factory(token):()=>new token}(token);throw new RuntimeError(204,!1)}function providerToFactory(provider,ngModuleType,providers){let factory2;if(isTypeProvider(provider)){const unwrappedProvider=resolveForwardRef(provider);return getFactoryDef(unwrappedProvider)||injectableDefOrInjectorDefFactory(unwrappedProvider)}if(isValueProvider(provider))factory2=()=>resolveForwardRef(provider.useValue);else if(function isFactoryProvider(value){return!(!value||!value.useFactory)}(provider))factory2=()=>provider.useFactory(...injectArgs(provider.deps||[]));else if(function isExistingProvider(value){return!(!value||!value.useExisting)}(provider))factory2=()=>\u0275\u0275inject(resolveForwardRef(provider.useExisting));else{const classRef=resolveForwardRef(provider&&(provider.useClass||provider.provide));if(!function hasDeps(value){return!!value.deps}(provider))return getFactoryDef(classRef)||injectableDefOrInjectorDefFactory(classRef);factory2=()=>new classRef(...injectArgs(provider.deps))}return factory2}function makeRecord(factory2,value,multi=!1){return{factory:factory2,value,multi:multi?[]:void 0}}function forEachSingleProvider(providers,fn){for(const provider of providers)Array.isArray(provider)?forEachSingleProvider(provider,fn):provider&&isEnvironmentProviders(provider)?forEachSingleProvider(provider.\u0275providers,fn):fn(provider)}function isInInjectionContext(){return void 0!==getInjectImplementation()||null!=function getCurrentInjector(){return _currentInjector}()}function getCompilerFacade(request){const globalNg=_global.ng;if(globalNg&&globalNg.\u0275compilerFacade)return globalNg.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Type=Function;function isType(v){return"function"==typeof v}const ES5_DELEGATE_CTOR=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,ES2015_INHERITED_CLASS=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ES2015_INHERITED_CLASS_WITH_CTOR=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class ReflectionCapabilities{constructor(reflect){this._reflect=reflect||_global.Reflect}factory(t){return(...args)=>new t(...args)}_zipTypesAndAnnotations(paramTypes,paramAnnotations){let result;result=newArray(typeof paramTypes>"u"?paramAnnotations.length:paramTypes.length);for(let i=0;i"u"?[]:paramTypes[i]&¶mTypes[i]!=Object?[paramTypes[i]]:[],paramAnnotations&&null!=paramAnnotations[i]&&(result[i]=result[i].concat(paramAnnotations[i]));return result}_ownParameters(type,parentCtor){if(function isDelegateCtor(typeStr){return ES5_DELEGATE_CTOR.test(typeStr)||ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr)||ES2015_INHERITED_CLASS.test(typeStr)&&!ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr)}(type.toString()))return null;if(type.parameters&&type.parameters!==parentCtor.parameters)return type.parameters;const tsickleCtorParams=type.ctorParameters;if(tsickleCtorParams&&tsickleCtorParams!==parentCtor.ctorParameters){const ctorParameters="function"==typeof tsickleCtorParams?tsickleCtorParams():tsickleCtorParams,paramTypes2=ctorParameters.map(ctorParam=>ctorParam&&ctorParam.type),paramAnnotations2=ctorParameters.map(ctorParam=>ctorParam&&convertTsickleDecoratorIntoMetadata(ctorParam.decorators));return this._zipTypesAndAnnotations(paramTypes2,paramAnnotations2)}const paramAnnotations=type.hasOwnProperty(PARAMETERS)&&type[PARAMETERS],paramTypes=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",type);return paramTypes||paramAnnotations?this._zipTypesAndAnnotations(paramTypes,paramAnnotations):newArray(type.length)}parameters(type){if(!isType(type))return[];const parentCtor=getParentCtor(type);let parameters=this._ownParameters(type,parentCtor);return!parameters&&parentCtor!==Object&&(parameters=this.parameters(parentCtor)),parameters||[]}_ownAnnotations(typeOrFunc,parentCtor){if(typeOrFunc.annotations&&typeOrFunc.annotations!==parentCtor.annotations){let annotations=typeOrFunc.annotations;return"function"==typeof annotations&&annotations.annotations&&(annotations=annotations.annotations),annotations}return typeOrFunc.decorators&&typeOrFunc.decorators!==parentCtor.decorators?convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators):typeOrFunc.hasOwnProperty(ANNOTATIONS)?typeOrFunc[ANNOTATIONS]:null}annotations(typeOrFunc){if(!isType(typeOrFunc))return[];const parentCtor=getParentCtor(typeOrFunc),ownAnnotations=this._ownAnnotations(typeOrFunc,parentCtor)||[];return(parentCtor!==Object?this.annotations(parentCtor):[]).concat(ownAnnotations)}_ownPropMetadata(typeOrFunc,parentCtor){if(typeOrFunc.propMetadata&&typeOrFunc.propMetadata!==parentCtor.propMetadata){let propMetadata=typeOrFunc.propMetadata;return"function"==typeof propMetadata&&propMetadata.propMetadata&&(propMetadata=propMetadata.propMetadata),propMetadata}if(typeOrFunc.propDecorators&&typeOrFunc.propDecorators!==parentCtor.propDecorators){const propDecorators=typeOrFunc.propDecorators,propMetadata={};return Object.keys(propDecorators).forEach(prop2=>{propMetadata[prop2]=convertTsickleDecoratorIntoMetadata(propDecorators[prop2])}),propMetadata}return typeOrFunc.hasOwnProperty("__prop__metadata__")?typeOrFunc.__prop__metadata__:null}propMetadata(typeOrFunc){if(!isType(typeOrFunc))return{};const parentCtor=getParentCtor(typeOrFunc),propMetadata={};if(parentCtor!==Object){const parentPropMetadata=this.propMetadata(parentCtor);Object.keys(parentPropMetadata).forEach(propName=>{propMetadata[propName]=parentPropMetadata[propName]})}const ownPropMetadata=this._ownPropMetadata(typeOrFunc,parentCtor);return ownPropMetadata&&Object.keys(ownPropMetadata).forEach(propName=>{const decorators=[];propMetadata.hasOwnProperty(propName)&&decorators.push(...propMetadata[propName]),decorators.push(...ownPropMetadata[propName]),propMetadata[propName]=decorators}),propMetadata}ownPropMetadata(typeOrFunc){return isType(typeOrFunc)&&this._ownPropMetadata(typeOrFunc,getParentCtor(typeOrFunc))||{}}hasLifecycleHook(type,lcProperty){return type instanceof Type&&lcProperty in type.prototype}}function convertTsickleDecoratorIntoMetadata(decoratorInvocations){return decoratorInvocations?decoratorInvocations.map(decoratorInvocation=>new(0,decoratorInvocation.type.annotationCls)(...decoratorInvocation.args?decoratorInvocation.args:[])):[]}function getParentCtor(ctor){const parentProto=ctor.prototype?Object.getPrototypeOf(ctor.prototype):null;return(parentProto?parentProto.constructor:null)||Object}const HOST=0,TVIEW=1,FLAGS=2,PARENT=3,NEXT=4,T_HOST=5,HYDRATION=6,CLEANUP=7,CONTEXT=8,INJECTOR=9,ENVIRONMENT=10,RENDERER=11,CHILD_HEAD=12,CHILD_TAIL=13,DECLARATION_VIEW=14,DECLARATION_COMPONENT_VIEW=15,DECLARATION_LCONTAINER=16,PREORDER_HOOK_FLAGS=17,QUERIES=18,ID=19,EMBEDDED_VIEW_INJECTOR=20,ON_DESTROY_HOOKS=21,EFFECTS_TO_SCHEDULE=22,REACTIVE_TEMPLATE_CONSUMER=23,HEADER_OFFSET=25,TYPE=1,NATIVE=7,MOVED_VIEWS=9,CONTAINER_HEADER_OFFSET=10;var LContainerFlags=function(LContainerFlags2){return LContainerFlags2[LContainerFlags2.None=0]="None",LContainerFlags2[LContainerFlags2.HasTransplantedViews=2]="HasTransplantedViews",LContainerFlags2}(LContainerFlags||{});function isLView(value){return Array.isArray(value)&&"object"==typeof value[TYPE]}function isLContainer(value){return Array.isArray(value)&&!0===value[TYPE]}function isContentQueryHost(tNode){return!!(4&tNode.flags)}function isComponentHost(tNode){return tNode.componentOffset>-1}function isDirectiveHost(tNode){return!(1&~tNode.flags)}function isComponentDef(def){return!!def.template}function isDestroyed(lView){return!(256&~lView[FLAGS])}class SimpleChange{constructor(previousValue,currentValue,firstChange){this.previousValue=previousValue,this.currentValue=currentValue,this.firstChange=firstChange}isFirstChange(){return this.firstChange}}function applyValueToInputField(instance,inputSignalNode,privateName,value){null!==inputSignalNode?inputSignalNode.applyValueToInputSignal(inputSignalNode,value):instance[privateName]=value}function \u0275\u0275NgOnChangesFeature(){return NgOnChangesFeatureImpl}function NgOnChangesFeatureImpl(definition){return definition.type.prototype.ngOnChanges&&(definition.setInput=ngOnChangesSetInput),rememberChangeHistoryAndInvokeOnChangesHook}function rememberChangeHistoryAndInvokeOnChangesHook(){const simpleChangesStore=getSimpleChangesStore(this),current=simpleChangesStore?.current;if(current){const previous=simpleChangesStore.previous;if(previous===EMPTY_OBJ)simpleChangesStore.previous=current;else for(let key in current)previous[key]=current[key];simpleChangesStore.current=null,this.ngOnChanges(current)}}function ngOnChangesSetInput(instance,inputSignalNode,value,publicName,privateName){const declaredName=this.declaredInputs[publicName],simpleChangesStore=getSimpleChangesStore(instance)||function setSimpleChangesStore(instance,store2){return instance[SIMPLE_CHANGES_STORE]=store2}(instance,{previous:EMPTY_OBJ,current:null}),current=simpleChangesStore.current||(simpleChangesStore.current={}),previous=simpleChangesStore.previous,previousChange=previous[declaredName];current[declaredName]=new SimpleChange(previousChange&&previousChange.currentValue,value,previous===EMPTY_OBJ),applyValueToInputField(instance,inputSignalNode,privateName,value)}\u0275\u0275NgOnChangesFeature.ngInherit=!0;const SIMPLE_CHANGES_STORE="__ngSimpleChanges__";function getSimpleChangesStore(instance){return instance[SIMPLE_CHANGES_STORE]||null}const profiler=function(event,instance,hookOrListener){},SVG_NAMESPACE="svg";let _ensureDirtyViewsAreAlwaysReachable=!1;function unwrapRNode(value){for(;Array.isArray(value);)value=value[HOST];return value}function getNativeByIndex(index,lView){return unwrapRNode(lView[index])}function getNativeByTNode(tNode,lView){return unwrapRNode(lView[tNode.index])}function getTNode(tView,index){return tView.data[index]}function load(view,index){return view[index]}function getComponentLViewByIndex(nodeIndex,hostView){const slotValue=hostView[nodeIndex];return isLView(slotValue)?slotValue:slotValue[HOST]}function viewAttachedToChangeDetector(view){return!(128&~view[FLAGS])}function getConstant(consts,index){return null==index?null:consts[index]}function resetPreOrderHookFlags(lView){lView[PREORDER_HOOK_FLAGS]=0}function markViewForRefresh(lView){1024&lView[FLAGS]||(lView[FLAGS]|=1024,viewAttachedToChangeDetector(lView)&&markAncestorsForTraversal(lView))}function walkUpViews(nestingLevel,currentView){for(;nestingLevel>0;)currentView=currentView[DECLARATION_VIEW],nestingLevel--;return currentView}function requiresRefreshOrTraversal(lView){return!!(9216&lView[FLAGS]||lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty)}function updateAncestorTraversalFlagsOnAttach(lView){lView[ENVIRONMENT].changeDetectionScheduler?.notify(1),requiresRefreshOrTraversal(lView)?markAncestorsForTraversal(lView):64&lView[FLAGS]&&(function getEnsureDirtyViewsAreAlwaysReachable(){return _ensureDirtyViewsAreAlwaysReachable}()?(lView[FLAGS]|=1024,markAncestorsForTraversal(lView)):lView[ENVIRONMENT].changeDetectionScheduler?.notify())}function markAncestorsForTraversal(lView){lView[ENVIRONMENT].changeDetectionScheduler?.notify();let parent=getLViewParent(lView);for(;null!==parent&&!(8192&parent[FLAGS])&&(parent[FLAGS]|=8192,viewAttachedToChangeDetector(parent));)parent=getLViewParent(parent)}function storeLViewOnDestroy(lView,onDestroyCallback){if(!(256&~lView[FLAGS]))throw new RuntimeError(911,!1);null===lView[ON_DESTROY_HOOKS]&&(lView[ON_DESTROY_HOOKS]=[]),lView[ON_DESTROY_HOOKS].push(onDestroyCallback)}function removeLViewOnDestroy(lView,onDestroyCallback){if(null===lView[ON_DESTROY_HOOKS])return;const destroyCBIdx=lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);-1!==destroyCBIdx&&lView[ON_DESTROY_HOOKS].splice(destroyCBIdx,1)}function getLViewParent(lView){const parent=lView[PARENT];return isLContainer(parent)?parent[PARENT]:parent}const instructionState={lFrame:createLFrame(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function getBindingsEnabled(){return instructionState.bindingsEnabled}function isInSkipHydrationBlock$1(){return null!==instructionState.skipHydrationRootTNode}function getLView(){return instructionState.lFrame.lView}function getTView(){return instructionState.lFrame.tView}function \u0275\u0275restoreView(viewToRestore){return instructionState.lFrame.contextLView=viewToRestore,viewToRestore[CONTEXT]}function \u0275\u0275resetView(value){return instructionState.lFrame.contextLView=null,value}function getCurrentTNode(){let currentTNode=getCurrentTNodePlaceholderOk();for(;null!==currentTNode&&64===currentTNode.type;)currentTNode=currentTNode.parent;return currentTNode}function getCurrentTNodePlaceholderOk(){return instructionState.lFrame.currentTNode}function getCurrentParentTNode(){const lFrame=instructionState.lFrame,currentTNode=lFrame.currentTNode;return lFrame.isParent?currentTNode:currentTNode.parent}function setCurrentTNode(tNode,isParent){const lFrame=instructionState.lFrame;lFrame.currentTNode=tNode,lFrame.isParent=isParent}function isCurrentTNodeParent(){return instructionState.lFrame.isParent}function setCurrentTNodeAsNotParent(){instructionState.lFrame.isParent=!1}function getBindingRoot(){const lFrame=instructionState.lFrame;let index=lFrame.bindingRootIndex;return-1===index&&(index=lFrame.bindingRootIndex=lFrame.tView.bindingStartIndex),index}function getBindingIndex(){return instructionState.lFrame.bindingIndex}function setBindingIndex(value){return instructionState.lFrame.bindingIndex=value}function nextBindingIndex(){return instructionState.lFrame.bindingIndex++}function incrementBindingIndex(count){const lFrame=instructionState.lFrame,index=lFrame.bindingIndex;return lFrame.bindingIndex=lFrame.bindingIndex+count,index}function setInI18nBlock(isInI18nBlock2){instructionState.lFrame.inI18n=isInI18nBlock2}function setBindingRootForHostBindings(bindingRootIndex,currentDirectiveIndex){const lFrame=instructionState.lFrame;lFrame.bindingIndex=lFrame.bindingRootIndex=bindingRootIndex,setCurrentDirectiveIndex(currentDirectiveIndex)}function setCurrentDirectiveIndex(currentDirectiveIndex){instructionState.lFrame.currentDirectiveIndex=currentDirectiveIndex}function getCurrentDirectiveDef(tData){const currentDirectiveIndex=instructionState.lFrame.currentDirectiveIndex;return-1===currentDirectiveIndex?null:tData[currentDirectiveIndex]}function getCurrentQueryIndex(){return instructionState.lFrame.currentQueryIndex}function setCurrentQueryIndex(value){instructionState.lFrame.currentQueryIndex=value}function getDeclarationTNode(lView){const tView=lView[TVIEW];return 2===tView.type?tView.declTNode:1===tView.type?lView[T_HOST]:null}function enterDI(lView,tNode,flags){if(flags&core_InjectFlags.SkipSelf){let parentTNode=tNode,parentLView=lView;for(;!(parentTNode=parentTNode.parent,null!==parentTNode||flags&core_InjectFlags.Host||(parentTNode=getDeclarationTNode(parentLView),null===parentTNode||(parentLView=parentLView[DECLARATION_VIEW],10&parentTNode.type))););if(null===parentTNode)return!1;tNode=parentTNode,lView=parentLView}const lFrame=instructionState.lFrame=allocLFrame();return lFrame.currentTNode=tNode,lFrame.lView=lView,!0}function enterView(newView){const newLFrame=allocLFrame(),tView=newView[TVIEW];instructionState.lFrame=newLFrame,newLFrame.currentTNode=tView.firstChild,newLFrame.lView=newView,newLFrame.tView=tView,newLFrame.contextLView=newView,newLFrame.bindingIndex=tView.bindingStartIndex,newLFrame.inI18n=!1}function allocLFrame(){const currentLFrame=instructionState.lFrame,childLFrame=null===currentLFrame?null:currentLFrame.child;return null===childLFrame?createLFrame(currentLFrame):childLFrame}function createLFrame(parent){const lFrame={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent,child:null,inI18n:!1};return null!==parent&&(parent.child=lFrame),lFrame}function leaveViewLight(){const oldLFrame=instructionState.lFrame;return instructionState.lFrame=oldLFrame.parent,oldLFrame.currentTNode=null,oldLFrame.lView=null,oldLFrame}const leaveDI=leaveViewLight;function leaveView(){const oldLFrame=leaveViewLight();oldLFrame.isParent=!0,oldLFrame.tView=null,oldLFrame.selectedIndex=-1,oldLFrame.contextLView=null,oldLFrame.elementDepthCount=0,oldLFrame.currentDirectiveIndex=-1,oldLFrame.currentNamespace=null,oldLFrame.bindingRootIndex=-1,oldLFrame.bindingIndex=-1,oldLFrame.currentQueryIndex=0}function getSelectedIndex(){return instructionState.lFrame.selectedIndex}function setSelectedIndex(index){instructionState.lFrame.selectedIndex=index}function getSelectedTNode(){const lFrame=instructionState.lFrame;return getTNode(lFrame.tView,lFrame.selectedIndex)}function \u0275\u0275namespaceSVG(){instructionState.lFrame.currentNamespace=SVG_NAMESPACE}function \u0275\u0275namespaceHTML(){!function namespaceHTMLInternal(){instructionState.lFrame.currentNamespace=null}()}let _wasLastNodeCreated=!0;function wasLastNodeCreated(){return _wasLastNodeCreated}function lastNodeWasCreated(flag){_wasLastNodeCreated=flag}function registerPostOrderHooks(tView,tNode){for(let i=tNode.directiveStart,end=tNode.directiveEnd;i=currentNodeIndex)break}else arr[i]<0&&(currentView[PREORDER_HOOK_FLAGS]+=65536),(lastNodeIndexFound>14>16&&(3¤tView[FLAGS])===initPhase&&(currentView[FLAGS]+=16384,callHookInternal(directive,hook)):callHookInternal(directive,hook)}const NO_PARENT_INJECTOR=-1;class NodeInjectorFactory{constructor(factory2,isViewProvider,injectImplementation){this.factory=factory2,this.resolving=!1,this.canSeeViewProviders=isViewProvider,this.injectImpl=injectImplementation}}function hasParentInjector(parentLocation){return parentLocation!==NO_PARENT_INJECTOR}function getParentInjectorIndex(parentLocation){return 32767&parentLocation}function getParentInjectorView(location2,startView){let viewOffset=function getParentInjectorViewOffset(parentLocation){return parentLocation>>16}(location2),parentView=startView;for(;viewOffset>0;)parentView=parentView[DECLARATION_VIEW],viewOffset--;return parentView}let includeViewProviders=!0;function setIncludeViewProviders(v){const oldValue=includeViewProviders;return includeViewProviders=v,oldValue}const BLOOM_MASK=255,BLOOM_BUCKET_BITS=5;let nextNgElementId=0;const NOT_FOUND={};function getOrCreateNodeInjectorForNode(tNode,lView){const existingInjectorIndex=getInjectorIndex(tNode,lView);if(-1!==existingInjectorIndex)return existingInjectorIndex;const tView=lView[TVIEW];tView.firstCreatePass&&(tNode.injectorIndex=lView.length,insertBloom(tView.data,tNode),insertBloom(lView,null),insertBloom(tView.blueprint,null));const parentLoc=getParentInjectorLocation(tNode,lView),injectorIndex=tNode.injectorIndex;if(hasParentInjector(parentLoc)){const parentIndex=getParentInjectorIndex(parentLoc),parentLView=getParentInjectorView(parentLoc,lView),parentData=parentLView[TVIEW].data;for(let i=0;i<8;i++)lView[injectorIndex+i]=parentLView[parentIndex+i]|parentData[parentIndex+i]}return lView[injectorIndex+8]=parentLoc,injectorIndex}function insertBloom(arr,footer){arr.push(0,0,0,0,0,0,0,0,footer)}function getInjectorIndex(tNode,lView){return-1===tNode.injectorIndex||tNode.parent&&tNode.parent.injectorIndex===tNode.injectorIndex||null===lView[tNode.injectorIndex+8]?-1:tNode.injectorIndex}function getParentInjectorLocation(tNode,lView){if(tNode.parent&&-1!==tNode.parent.injectorIndex)return tNode.parent.injectorIndex;let declarationViewOffset=0,parentTNode=null,lViewCursor=lView;for(;null!==lViewCursor;){if(parentTNode=getTNodeFromLView(lViewCursor),null===parentTNode)return NO_PARENT_INJECTOR;if(declarationViewOffset++,lViewCursor=lViewCursor[DECLARATION_VIEW],-1!==parentTNode.injectorIndex)return parentTNode.injectorIndex|declarationViewOffset<<16}return NO_PARENT_INJECTOR}function diPublicInInjector(injectorIndex,tView,token){!function bloomAdd(injectorIndex,tView,type){let id;"string"==typeof type?id=type.charCodeAt(0)||0:type.hasOwnProperty(NG_ELEMENT_ID)&&(id=type[NG_ELEMENT_ID]),null==id&&(id=type[NG_ELEMENT_ID]=nextNgElementId++);const bloomHash=id&BLOOM_MASK;tView.data[injectorIndex+(bloomHash>>BLOOM_BUCKET_BITS)]|=1<=0?tokenId&BLOOM_MASK:createNodeInjector:tokenId}(token);if("function"==typeof bloomHash){if(!enterDI(lView,tNode,flags))return flags&core_InjectFlags.Host?notFoundValueOrThrow(notFoundValue,0,flags):lookupTokenUsingModuleInjector(lView,token,flags,notFoundValue);try{let value;if(value=bloomHash(flags),null!=value||flags&core_InjectFlags.Optional)return value;throwProviderNotFoundError()}finally{leaveDI()}}else if("number"==typeof bloomHash){let previousTView=null,injectorIndex=getInjectorIndex(tNode,lView),parentLocation=NO_PARENT_INJECTOR,hostTElementNode=flags&core_InjectFlags.Host?lView[DECLARATION_COMPONENT_VIEW][T_HOST]:null;for((-1===injectorIndex||flags&core_InjectFlags.SkipSelf)&&(parentLocation=-1===injectorIndex?getParentInjectorLocation(tNode,lView):lView[injectorIndex+8],parentLocation!==NO_PARENT_INJECTOR&&shouldSearchParent(flags,!1)?(previousTView=lView[TVIEW],injectorIndex=getParentInjectorIndex(parentLocation),lView=getParentInjectorView(parentLocation,lView)):injectorIndex=-1);-1!==injectorIndex;){const tView=lView[TVIEW];if(bloomHasToken(bloomHash,injectorIndex,tView.data)){const instance=searchTokensOnInjector(injectorIndex,lView,token,previousTView,flags,hostTElementNode);if(instance!==NOT_FOUND)return instance}parentLocation=lView[injectorIndex+8],parentLocation!==NO_PARENT_INJECTOR&&shouldSearchParent(flags,lView[TVIEW].data[injectorIndex+8]===hostTElementNode)&&bloomHasToken(bloomHash,injectorIndex,lView)?(previousTView=tView,injectorIndex=getParentInjectorIndex(parentLocation),lView=getParentInjectorView(parentLocation,lView)):injectorIndex=-1}}return notFoundValue}function searchTokensOnInjector(injectorIndex,lView,token,previousTView,flags,hostTElementNode){const currentTView=lView[TVIEW],tNode=currentTView.data[injectorIndex+8],injectableIdx=locateDirectiveOrProvider(tNode,currentTView,token,null==previousTView?isComponentHost(tNode)&&includeViewProviders:previousTView!=currentTView&&!!(3&tNode.type),flags&core_InjectFlags.Host&&hostTElementNode===tNode);return null!==injectableIdx?getNodeInjectable(lView,currentTView,injectableIdx,tNode):NOT_FOUND}function locateDirectiveOrProvider(tNode,tView,token,canAccessViewProviders,isHostSpecialCase){const nodeProviderIndexes=tNode.providerIndexes,tInjectables=tView.data,injectablesStart=1048575&nodeProviderIndexes,directivesStart=tNode.directiveStart,cptViewProvidersCount=nodeProviderIndexes>>20,endIndex=isHostSpecialCase?injectablesStart+cptViewProvidersCount:tNode.directiveEnd;for(let i=canAccessViewProviders?injectablesStart:injectablesStart+cptViewProvidersCount;i=directivesStart&&providerTokenOrDef.type===token)return i}if(isHostSpecialCase){const dirDef=tInjectables[directivesStart];if(dirDef&&isComponentDef(dirDef)&&dirDef.type===token)return directivesStart}return null}function getNodeInjectable(lView,tView,index,tNode){let value=lView[index];const tData=tView.data;if(function isFactory(obj){return obj instanceof NodeInjectorFactory}(value)){const factory2=value;factory2.resolving&&function throwCyclicDependencyError(token,path){throw path&&path.join(" > "),new RuntimeError(-200,token)}(stringifyForError(tData[index]));const previousIncludeViewProviders=setIncludeViewProviders(factory2.canSeeViewProviders);factory2.resolving=!0;const previousInjectImplementation=factory2.injectImpl?setInjectImplementation(factory2.injectImpl):null;enterDI(lView,tNode,core_InjectFlags.Default);try{value=lView[index]=factory2.factory(void 0,tData,lView,tNode),tView.firstCreatePass&&index>=tNode.directiveStart&&function registerPreOrderHooks(directiveIndex,directiveDef,tView){const{ngOnChanges,ngOnInit,ngDoCheck}=directiveDef.type.prototype;if(ngOnChanges){const wrappedOnChanges=NgOnChangesFeatureImpl(directiveDef);(tView.preOrderHooks??=[]).push(directiveIndex,wrappedOnChanges),(tView.preOrderCheckHooks??=[]).push(directiveIndex,wrappedOnChanges)}ngOnInit&&(tView.preOrderHooks??=[]).push(0-directiveIndex,ngOnInit),ngDoCheck&&((tView.preOrderHooks??=[]).push(directiveIndex,ngDoCheck),(tView.preOrderCheckHooks??=[]).push(directiveIndex,ngDoCheck))}(index,tData[index],tView)}finally{null!==previousInjectImplementation&&setInjectImplementation(previousInjectImplementation),setIncludeViewProviders(previousIncludeViewProviders),factory2.resolving=!1,leaveDI()}}return value}function bloomHasToken(bloomHash,injectorIndex,injectorView){return!!(injectorView[injectorIndex+(bloomHash>>BLOOM_BUCKET_BITS)]&1<{const ownConstructor=type.prototype.constructor,ownFactory=ownConstructor[NG_FACTORY_DEF]||getFactoryOf(ownConstructor),objectPrototype=Object.prototype;let parent=Object.getPrototypeOf(type.prototype).constructor;for(;parent&&parent!==objectPrototype;){const factory2=parent[NG_FACTORY_DEF]||getFactoryOf(parent);if(factory2&&factory2!==ownFactory)return factory2;parent=Object.getPrototypeOf(parent)}return t=>new t})}function getFactoryOf(type){return isForwardRef(type)?()=>{const factory2=getFactoryOf(resolveForwardRef(type));return factory2&&factory2()}:getFactoryDef(type)}function getTNodeFromLView(lView){const tView=lView[TVIEW],tViewType=tView.type;return 2===tViewType?tView.declTNode:1===tViewType?lView[T_HOST]:null}function \u0275\u0275injectAttribute(attrNameToInject){return function injectAttributeImpl(tNode,attrNameToInject){if("class"===attrNameToInject)return tNode.classes;if("style"===attrNameToInject)return tNode.styles;const attrs=tNode.attrs;if(attrs){const attrsLength=attrs.length;let i=0;for(;i({attributeName,__NG_ELEMENT_ID__:()=>\u0275\u0275injectAttribute(attributeName)}));let _reflect=null;function getReflect(){return _reflect=_reflect||new ReflectionCapabilities}function reflectDependencies(type){return function convertDependencies(deps){return deps.map(dep=>function reflectDependency(dep){const meta={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(dep)&&dep.length>0)for(let j=0;j{class Injector2{static#_=this.THROW_IF_NOT_FOUND=THROW_IF_NOT_FOUND;static#_2=this.NULL=new NullInjector;static create(options,parent){if(Array.isArray(options))return createInjector({name:""},parent,options,"");{const name=options.name??"";return createInjector({name},options.parent,options.providers,name)}}static#_3=this.\u0275prov=core_defineInjectable({token:Injector2,providedIn:"any",factory:()=>\u0275\u0275inject(INJECTOR$1)});static#_4=this.__NG_ELEMENT_ID__=-1}return Injector2})();function getOriginalError(error){return error.ngOriginalError}class ErrorHandler{constructor(){this._console=console}handleError(error){const originalError=this._findOriginalError(error);this._console.error("ERROR",error),originalError&&this._console.error("ORIGINAL ERROR",originalError)}_findOriginalError(error){let e2=error&&getOriginalError(error);for(;e2&&getOriginalError(e2);)e2=getOriginalError(e2);return e2||null}}const INTERNAL_APPLICATION_ERROR_HANDLER=new InjectionToken("",{providedIn:"root",factory:()=>core_inject(ErrorHandler).handleError.bind(void 0)});let DestroyRef=(()=>{class DestroyRef2{static#_=this.__NG_ELEMENT_ID__=injectDestroyRef;static#_2=this.__NG_ENV_ID__=injector=>injector}return DestroyRef2})();class NodeInjectorDestroyRef extends DestroyRef{constructor(_lView){super(),this._lView=_lView}onDestroy(callback){return storeLViewOnDestroy(this._lView,callback),()=>removeLViewOnDestroy(this._lView,callback)}}function injectDestroyRef(){return new NodeInjectorDestroyRef(getLView())}function injectElementRef(){return createElementRef(getCurrentTNode(),getLView())}function createElementRef(tNode,lView){return new core_ElementRef(getNativeByTNode(tNode,lView))}let core_ElementRef=(()=>{class ElementRef2{constructor(nativeElement){this.nativeElement=nativeElement}static#_=this.__NG_ELEMENT_ID__=injectElementRef}return ElementRef2})();function unwrapElementRef(value){return value instanceof core_ElementRef?value.nativeElement:value}function _wrapInTimeout(fn){return value=>{setTimeout(fn,void 0,value)}}const core_EventEmitter=class EventEmitter_ extends Subject_Subject{constructor(isAsync=!1){super(),this.destroyRef=void 0,this.__isAsync=isAsync,isInInjectionContext()&&(this.destroyRef=core_inject(DestroyRef,{optional:!0})??void 0)}emit(value){const prevConsumer=setActiveConsumer(null);try{super.next(value)}finally{setActiveConsumer(prevConsumer)}}subscribe(observerOrNext,error,complete){let nextFn=observerOrNext,errorFn=error||(()=>null),completeFn=complete;if(observerOrNext&&"object"==typeof observerOrNext){const observer=observerOrNext;nextFn=observer.next?.bind(observer),errorFn=observer.error?.bind(observer),completeFn=observer.complete?.bind(observer)}this.__isAsync&&(errorFn=_wrapInTimeout(errorFn),nextFn&&(nextFn=_wrapInTimeout(nextFn)),completeFn&&(completeFn=_wrapInTimeout(completeFn)));const sink=super.subscribe({next:nextFn,error:errorFn,complete:completeFn});return observerOrNext instanceof Subscription_Subscription&&observerOrNext.add(sink),sink}};function symbolIterator(){return this._results[Symbol.iterator]()}class QueryList{static#_=Symbol.iterator;get changes(){return this._changes??=new core_EventEmitter}constructor(_emitDistinctChangesOnly=!1){this._emitDistinctChangesOnly=_emitDistinctChangesOnly,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const proto=QueryList.prototype;proto[Symbol.iterator]||(proto[Symbol.iterator]=symbolIterator)}get(index){return this._results[index]}map(fn){return this._results.map(fn)}filter(fn){return this._results.filter(fn)}find(fn){return this._results.find(fn)}reduce(fn,init2){return this._results.reduce(fn,init2)}forEach(fn){this._results.forEach(fn)}some(fn){return this._results.some(fn)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(resultsTree,identityAccessor){this.dirty=!1;const newResultFlat=flatten(resultsTree);(this._changesDetected=!function arrayEquals(a,b,identityAccessor){if(a.length!==b.length)return!1;for(let i=0;iDEFAULT_APP_ID}),DEFAULT_APP_ID="ng",PLATFORM_INITIALIZER=new InjectionToken(""),core_PLATFORM_ID=new InjectionToken("",{providedIn:"platform",factory:()=>"unknown"}),core_ANIMATION_MODULE_TYPE=new InjectionToken(""),CSP_NONCE=new InjectionToken("",{providedIn:"root",factory:()=>getDocument().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let _retrieveHydrationInfoImpl=()=>null;function retrieveHydrationInfo(rNode,injector,isRootView2=!1){return _retrieveHydrationInfoImpl(rNode,injector,isRootView2)}const PRESERVE_HOST_CONTENT=new InjectionToken("",{providedIn:"root",factory:()=>!1});let policy$1,policy;function getPolicy$1(){if(void 0===policy$1&&(policy$1=null,_global.trustedTypes))try{policy$1=_global.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return policy$1}function trustedHTMLFromString(html){return getPolicy$1()?.createHTML(html)||html}function getPolicy(){if(void 0===policy&&(policy=null,_global.trustedTypes))try{policy=_global.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return policy}function trustedHTMLFromStringBypass(html){return getPolicy()?.createHTML(html)||html}function trustedScriptFromStringBypass(script){return getPolicy()?.createScript(script)||script}function trustedScriptURLFromStringBypass(url){return getPolicy()?.createScriptURL(url)||url}class SafeValueImpl{constructor(changingThisBreaksApplicationSecurity){this.changingThisBreaksApplicationSecurity=changingThisBreaksApplicationSecurity}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${XSS_SECURITY_URL})`}}class SafeHtmlImpl extends SafeValueImpl{getTypeName(){return"HTML"}}class SafeStyleImpl extends SafeValueImpl{getTypeName(){return"Style"}}class SafeScriptImpl extends SafeValueImpl{getTypeName(){return"Script"}}class SafeUrlImpl extends SafeValueImpl{getTypeName(){return"URL"}}class SafeResourceUrlImpl extends SafeValueImpl{getTypeName(){return"ResourceURL"}}function unwrapSafeValue(value){return value instanceof SafeValueImpl?value.changingThisBreaksApplicationSecurity:value}function allowSanitizationBypassAndThrow(value,type){const actualType=function getSanitizationBypassType(value){return value instanceof SafeValueImpl&&value.getTypeName()||null}(value);if(null!=actualType&&actualType!==type){if("ResourceURL"===actualType&&"URL"===type)return!0;throw new Error(`Required a safe ${type}, got a ${actualType} (see ${XSS_SECURITY_URL})`)}return actualType===type}function getInertBodyHelper(defaultDoc){const inertDocumentHelper=new InertDocumentHelper(defaultDoc);return function isDOMParserAvailable(){try{return!!(new window.DOMParser).parseFromString(trustedHTMLFromString(""),"text/html")}catch{return!1}}()?new DOMParserHelper(inertDocumentHelper):inertDocumentHelper}class DOMParserHelper{constructor(inertDocumentHelper){this.inertDocumentHelper=inertDocumentHelper}getInertBodyElement(html){html=""+html;try{const body=(new window.DOMParser).parseFromString(trustedHTMLFromString(html),"text/html").body;return null===body?this.inertDocumentHelper.getInertBodyElement(html):(body.removeChild(body.firstChild),body)}catch{return null}}}class InertDocumentHelper{constructor(defaultDoc){this.defaultDoc=defaultDoc,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(html){const templateEl=this.inertDocument.createElement("template");return templateEl.innerHTML=trustedHTMLFromString(html),templateEl}}const SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _sanitizeUrl(url){return(url=String(url)).match(SAFE_URL_PATTERN)?url:"unsafe:"+url}function tagSet(tags){const res={};for(const t of tags.split(","))res[t]=!0;return res}function merge(...sets){const res={};for(const s of sets)for(const v in s)s.hasOwnProperty(v)&&(res[v]=!0);return res}const VOID_ELEMENTS=tagSet("area,br,col,hr,img,wbr"),OPTIONAL_END_TAG_BLOCK_ELEMENTS=tagSet("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),OPTIONAL_END_TAG_INLINE_ELEMENTS=tagSet("rp,rt"),VALID_ELEMENTS=merge(VOID_ELEMENTS,merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS,tagSet("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),merge(OPTIONAL_END_TAG_INLINE_ELEMENTS,tagSet("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),merge(OPTIONAL_END_TAG_INLINE_ELEMENTS,OPTIONAL_END_TAG_BLOCK_ELEMENTS)),URI_ATTRS=tagSet("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),VALID_ATTRS=merge(URI_ATTRS,tagSet("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),tagSet("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS=tagSet("script,style,template");class SanitizingHtmlSerializer{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(el){let current=el.firstChild,traverseContent=!0,parentNodes=[];for(;current;)if(current.nodeType===Node.ELEMENT_NODE?traverseContent=this.startElement(current):current.nodeType===Node.TEXT_NODE?this.chars(current.nodeValue):this.sanitizedSomething=!0,traverseContent&¤t.firstChild)parentNodes.push(current),current=getFirstChild(current);else for(;current;){current.nodeType===Node.ELEMENT_NODE&&this.endElement(current);let next=getNextSibling(current);if(next){current=next;break}current=parentNodes.pop()}return this.buf.join("")}startElement(element){const tagName=getNodeName(element).toLowerCase();if(!VALID_ELEMENTS.hasOwnProperty(tagName))return this.sanitizedSomething=!0,!SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);this.buf.push("<"),this.buf.push(tagName);const elAttrs=element.attributes;for(let i=0;i"),!0}endElement(current){const tagName=getNodeName(current).toLowerCase();VALID_ELEMENTS.hasOwnProperty(tagName)&&!VOID_ELEMENTS.hasOwnProperty(tagName)&&(this.buf.push(""))}chars(chars){this.buf.push(encodeEntities(chars))}}function getNextSibling(node2){const nextSibling=node2.nextSibling;if(nextSibling&&node2!==nextSibling.previousSibling)throw clobberedElementError(nextSibling);return nextSibling}function getFirstChild(node2){const firstChild=node2.firstChild;if(firstChild&&function isClobberedElement(parentNode,childNode){return(parentNode.compareDocumentPosition(childNode)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(node2,firstChild))throw clobberedElementError(firstChild);return firstChild}function getNodeName(node2){const nodeName=node2.nodeName;return"string"==typeof nodeName?nodeName:"FORM"}function clobberedElementError(node2){return new Error(`Failed to sanitize html because the element is clobbered: ${node2.outerHTML}`)}const SURROGATE_PAIR_REGEXP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NON_ALPHANUMERIC_REGEXP=/([^\#-~ |!])/g;function encodeEntities(value){return value.replace(/&/g,"&").replace(SURROGATE_PAIR_REGEXP,function(match2){return"&#"+(1024*(match2.charCodeAt(0)-55296)+(match2.charCodeAt(1)-56320)+65536)+";"}).replace(NON_ALPHANUMERIC_REGEXP,function(match2){return"&#"+match2.charCodeAt(0)+";"}).replace(//g,">")}let inertBodyHelper;function _sanitizeHtml(defaultDoc,unsafeHtmlInput){let inertBodyElement=null;try{inertBodyHelper=inertBodyHelper||getInertBodyHelper(defaultDoc);let unsafeHtml=unsafeHtmlInput?String(unsafeHtmlInput):"";inertBodyElement=inertBodyHelper.getInertBodyElement(unsafeHtml);let mXSSAttempts=5,parsedHtml=unsafeHtml;do{if(0===mXSSAttempts)throw new Error("Failed to sanitize html because the input is unstable");mXSSAttempts--,unsafeHtml=parsedHtml,parsedHtml=inertBodyElement.innerHTML,inertBodyElement=inertBodyHelper.getInertBodyElement(unsafeHtml)}while(unsafeHtml!==parsedHtml);return trustedHTMLFromString((new SanitizingHtmlSerializer).sanitizeChildren(getTemplateContent(inertBodyElement)||inertBodyElement))}finally{if(inertBodyElement){const parent=getTemplateContent(inertBodyElement)||inertBodyElement;for(;parent.firstChild;)parent.removeChild(parent.firstChild)}}}function getTemplateContent(el){return"content"in el&&function isTemplateElement(el){return el.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===el.nodeName}(el)?el.content:null}var SecurityContext=function(SecurityContext2){return SecurityContext2[SecurityContext2.NONE=0]="NONE",SecurityContext2[SecurityContext2.HTML=1]="HTML",SecurityContext2[SecurityContext2.STYLE=2]="STYLE",SecurityContext2[SecurityContext2.SCRIPT=3]="SCRIPT",SecurityContext2[SecurityContext2.URL=4]="URL",SecurityContext2[SecurityContext2.RESOURCE_URL=5]="RESOURCE_URL",SecurityContext2}(SecurityContext||{});function \u0275\u0275sanitizeHtml(unsafeHtml){const sanitizer=getSanitizer();return sanitizer?trustedHTMLFromStringBypass(sanitizer.sanitize(SecurityContext.HTML,unsafeHtml)||""):allowSanitizationBypassAndThrow(unsafeHtml,"HTML")?trustedHTMLFromStringBypass(unwrapSafeValue(unsafeHtml)):_sanitizeHtml(getDocument(),renderStringify(unsafeHtml))}function \u0275\u0275sanitizeUrl(unsafeUrl){const sanitizer=getSanitizer();return sanitizer?sanitizer.sanitize(SecurityContext.URL,unsafeUrl)||"":allowSanitizationBypassAndThrow(unsafeUrl,"URL")?unwrapSafeValue(unsafeUrl):_sanitizeUrl(renderStringify(unsafeUrl))}function \u0275\u0275sanitizeResourceUrl(unsafeResourceUrl){const sanitizer=getSanitizer();if(sanitizer)return trustedScriptURLFromStringBypass(sanitizer.sanitize(SecurityContext.RESOURCE_URL,unsafeResourceUrl)||"");if(allowSanitizationBypassAndThrow(unsafeResourceUrl,"ResourceURL"))return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));throw new RuntimeError(904,!1)}function getSanitizer(){const lView=getLView();return lView&&lView[ENVIRONMENT].sanitizer}const COMMENT_DISALLOWED=/^>|^->||--!>|)/g,COMMENT_DELIMITER_ESCAPED="\u200b$1\u200b";function getTemplateLocationDetails(lView){core_throwError("Must never be called in production mode");const componentClassName=function getDeclarationComponentDef(lView){core_throwError("Must never be called in production mode");const context2=lView[DECLARATION_COMPONENT_VIEW][CONTEXT];return context2&&context2.constructor?getComponentDef(context2.constructor):null}(lView)?.type?.name;return componentClassName?` (used in the '${componentClassName}' component template)`:""}function maybeUnwrapFn(value){return value instanceof Function?value():value}function isPlatformBrowser(injector){return"browser"===(injector??core_inject(core_Injector)).get(core_PLATFORM_ID)}var RendererStyleFlags2=function(RendererStyleFlags22){return RendererStyleFlags22[RendererStyleFlags22.Important=1]="Important",RendererStyleFlags22[RendererStyleFlags22.DashCase=2]="DashCase",RendererStyleFlags22}(RendererStyleFlags2||{});let _icuContainerIterate;function icuContainerIterate(tIcuContainerNode,lView){return _icuContainerIterate(tIcuContainerNode,lView)}function applyToElementOrContainer(action,renderer,parent,lNodeToHandle,beforeNode){if(null!=lNodeToHandle){let lContainer,isComponent2=!1;isLContainer(lNodeToHandle)?lContainer=lNodeToHandle:isLView(lNodeToHandle)&&(isComponent2=!0,lNodeToHandle=lNodeToHandle[HOST]);const rNode=unwrapRNode(lNodeToHandle);0===action&&null!==parent?null==beforeNode?nativeAppendChild(renderer,parent,rNode):nativeInsertBefore(renderer,parent,rNode,beforeNode||null,!0):1===action&&null!==parent?nativeInsertBefore(renderer,parent,rNode,beforeNode||null,!0):2===action?nativeRemoveNode(renderer,rNode,isComponent2):3===action&&renderer.destroyNode(rNode),null!=lContainer&&function applyContainer(renderer,action,lContainer,parentRElement,beforeNode){const anchor=lContainer[NATIVE];anchor!==unwrapRNode(lContainer)&&applyToElementOrContainer(action,renderer,parentRElement,anchor,beforeNode);for(let i=CONTAINER_HEADER_OFFSET;itext.replace(COMMENT_DELIMITER,COMMENT_DELIMITER_ESCAPED))}(value))}function createElementNode(renderer,name,namespace){return renderer.createElement(name,namespace)}function detachViewFromDOM(tView,lView){lView[ENVIRONMENT].changeDetectionScheduler?.notify(1),applyView(tView,lView,lView[RENDERER],2,null,null)}function detachMovedView(declarationContainer,lView){const movedViews=declarationContainer[MOVED_VIEWS],declarationViewIndex=movedViews.indexOf(lView);movedViews.splice(declarationViewIndex,1)}function detachView(lContainer,removeIndex){if(lContainer.length<=CONTAINER_HEADER_OFFSET)return;const indexInContainer=CONTAINER_HEADER_OFFSET+removeIndex,viewToDetach=lContainer[indexInContainer];if(viewToDetach){const declarationLContainer=viewToDetach[DECLARATION_LCONTAINER];null!==declarationLContainer&&declarationLContainer!==lContainer&&detachMovedView(declarationLContainer,viewToDetach),removeIndex>0&&(lContainer[indexInContainer-1][NEXT]=viewToDetach[NEXT]);const removedLView=removeFromArray(lContainer,CONTAINER_HEADER_OFFSET+removeIndex);!function removeViewFromDOM(tView,lView){detachViewFromDOM(tView,lView),lView[HOST]=null,lView[T_HOST]=null}(viewToDetach[TVIEW],viewToDetach);const lQueries=removedLView[QUERIES];null!==lQueries&&lQueries.detachView(removedLView[TVIEW]),viewToDetach[PARENT]=null,viewToDetach[NEXT]=null,viewToDetach[FLAGS]&=-129}return viewToDetach}function destroyLView(tView,lView){if(!(256&lView[FLAGS])){const renderer=lView[RENDERER];renderer.destroyNode&&applyView(tView,lView,renderer,3,null,null),function destroyViewTree(rootView){let lViewOrLContainer=rootView[CHILD_HEAD];if(!lViewOrLContainer)return cleanUpView(rootView[TVIEW],rootView);for(;lViewOrLContainer;){let next=null;if(isLView(lViewOrLContainer))next=lViewOrLContainer[CHILD_HEAD];else{const firstView=lViewOrLContainer[CONTAINER_HEADER_OFFSET];firstView&&(next=firstView)}if(!next){for(;lViewOrLContainer&&!lViewOrLContainer[NEXT]&&lViewOrLContainer!==rootView;)isLView(lViewOrLContainer)&&cleanUpView(lViewOrLContainer[TVIEW],lViewOrLContainer),lViewOrLContainer=lViewOrLContainer[PARENT];null===lViewOrLContainer&&(lViewOrLContainer=rootView),isLView(lViewOrLContainer)&&cleanUpView(lViewOrLContainer[TVIEW],lViewOrLContainer),next=lViewOrLContainer&&lViewOrLContainer[NEXT]}lViewOrLContainer=next}}(lView)}}function cleanUpView(tView,lView){if(256&lView[FLAGS])return;const prevConsumer=setActiveConsumer(null);try{lView[FLAGS]&=-129,lView[FLAGS]|=256,lView[REACTIVE_TEMPLATE_CONSUMER]&&consumerDestroy(lView[REACTIVE_TEMPLATE_CONSUMER]),function executeOnDestroys(tView,lView){let destroyHooks;if(null!=tView&&null!=(destroyHooks=tView.destroyHooks))for(let i=0;i=0?lCleanup[targetIdx]():lCleanup[-targetIdx].unsubscribe(),i+=2}else tCleanup[i].call(lCleanup[tCleanup[i+1]]);null!==lCleanup&&(lView[CLEANUP]=null);const destroyHooks=lView[ON_DESTROY_HOOKS];if(null!==destroyHooks){lView[ON_DESTROY_HOOKS]=null;for(let i=0;i-1){const{encapsulation}=tView.data[parentTNode.directiveStart+componentOffset];if(encapsulation===ViewEncapsulation$1.None||encapsulation===ViewEncapsulation$1.Emulated)return null}return getNativeByTNode(parentTNode,lView)}}function nativeInsertBefore(renderer,parent,child2,beforeNode,isMove){renderer.insertBefore(parent,child2,beforeNode,isMove)}function nativeAppendChild(renderer,parent,child2){renderer.appendChild(parent,child2)}function nativeAppendOrInsertBefore(renderer,parent,child2,beforeNode,isMove){null!==beforeNode?nativeInsertBefore(renderer,parent,child2,beforeNode,isMove):nativeAppendChild(renderer,parent,child2)}function nativeParentNode(renderer,node2){return renderer.parentNode(node2)}function getInsertInFrontOfRNode(parentTNode,currentTNode,lView){return _getInsertInFrontOfRNodeWithI18n(parentTNode,currentTNode,lView)}function getInsertInFrontOfRNodeWithNoI18n(parentTNode,currentTNode,lView){return 40&parentTNode.type?getNativeByTNode(parentTNode,lView):null}let _processI18nInsertBefore,_getInsertInFrontOfRNodeWithI18n=getInsertInFrontOfRNodeWithNoI18n;function setI18nHandling(getInsertInFrontOfRNodeWithI18n2,processI18nInsertBefore2){_getInsertInFrontOfRNodeWithI18n=getInsertInFrontOfRNodeWithI18n2,_processI18nInsertBefore=processI18nInsertBefore2}function appendChild(tView,lView,childRNode,childTNode){const parentRNode=getParentRElement(tView,childTNode,lView),renderer=lView[RENDERER],anchorNode=getInsertInFrontOfRNode(childTNode.parent||lView[T_HOST],childTNode,lView);if(null!=parentRNode)if(Array.isArray(childRNode))for(let i=0;iHEADER_OFFSET&&selectIndexInternal(tView,lView,HEADER_OFFSET,!1),profiler(isUpdatePhase?2:0,context2),templateFn(rf,context2)}finally{setSelectedIndex(prevSelectedIndex),profiler(isUpdatePhase?3:1,context2)}}function executeContentQueries(tView,tNode,lView){if(isContentQueryHost(tNode)){const prevConsumer=setActiveConsumer(null);try{const end=tNode.directiveEnd;for(let directiveIndex=tNode.directiveStart;directiveIndexnull;function captureNodeBindings(mode,aliasMap,directiveIndex,bindingsResult,hostDirectiveAliasMap){for(let publicName in aliasMap){if(!aliasMap.hasOwnProperty(publicName))continue;const value=aliasMap[publicName];if(void 0===value)continue;bindingsResult??={};let internalName,inputFlags=InputFlags.None;Array.isArray(value)?(internalName=value[0],inputFlags=value[1]):internalName=value;let finalPublicName=publicName;if(null!==hostDirectiveAliasMap){if(!hostDirectiveAliasMap.hasOwnProperty(publicName))continue;finalPublicName=hostDirectiveAliasMap[publicName]}0===mode?addPropertyBinding(bindingsResult,directiveIndex,finalPublicName,internalName,inputFlags):addPropertyBinding(bindingsResult,directiveIndex,finalPublicName,internalName)}return bindingsResult}function addPropertyBinding(bindings,directiveIndex,publicName,internalName,inputFlags){let values;bindings.hasOwnProperty(publicName)?(values=bindings[publicName]).push(directiveIndex,internalName):values=bindings[publicName]=[directiveIndex,internalName],void 0!==inputFlags&&values.push(inputFlags)}function elementPropertyInternal(tView,tNode,lView,propName,value,renderer,sanitizer,nativeOnly){const element=getNativeByTNode(tNode,lView);let dataValue,inputData=tNode.inputs;!nativeOnly&&null!=inputData&&(dataValue=inputData[propName])?(setInputsForProperty(tView,lView,dataValue,propName,value),isComponentHost(tNode)&&function markDirtyIfOnPush(lView,viewIndex){const childComponentLView=getComponentLViewByIndex(viewIndex,lView);16&childComponentLView[FLAGS]||(childComponentLView[FLAGS]|=64)}(lView,tNode.index)):3&tNode.type&&(propName=function mapPropName(name){return"class"===name?"className":"for"===name?"htmlFor":"formaction"===name?"formAction":"innerHtml"===name?"innerHTML":"readonly"===name?"readOnly":"tabindex"===name?"tabIndex":name}(propName),value=null!=sanitizer?sanitizer(value,tNode.value||"",propName):value,renderer.setProperty(element,propName,value))}function resolveDirectives(tView,lView,tNode,localRefs){if(getBindingsEnabled()){const exportsMap=null===localRefs?null:{"":-1},matchResult=function findDirectiveDefMatches(tView,tNode){const registry=tView.directiveRegistry;let matches=null,hostDirectiveDefs=null;if(registry)for(let i=0;i0;){const value=hostBindingOpCodes[--i];if("number"==typeof value&&value<0)return value}return 0})(hostBindingOpCodes)!=elementIndx&&hostBindingOpCodes.push(elementIndx),hostBindingOpCodes.push(directiveIdx,directiveVarsIdx,hostBindings)}}(tView,tNode,directiveIndex,allocExpando(tView,lView,def.hostVars,NO_CHANGE),def)}function elementAttributeInternal(tNode,lView,name,value,sanitizer,namespace){const element=getNativeByTNode(tNode,lView);setElementAttribute(lView[RENDERER],element,namespace,tNode.value,name,value,sanitizer)}function setElementAttribute(renderer,element,namespace,tagName,name,value,sanitizer){if(null==value)renderer.removeAttribute(element,name,namespace);else{const strValue=null==sanitizer?renderStringify(value):sanitizer(value,tagName||"",name);renderer.setAttribute(element,name,strValue,namespace)}}function setInputsFromAttrs(lView,directiveIndex,instance,def,tNode,initialInputData){const initialInputs=initialInputData[directiveIndex];if(null!==initialInputs)for(let i=0;i0&&(lContainer[indexInContainer-1][NEXT]=lView),index{markAncestorsForTraversal(node2.lView)},consumerOnSignalRead(){this.lView[REACTIVE_TEMPLATE_CONSUMER]=this}},MAXIMUM_REFRESH_RERUNS=100;function detectChangesInternal(lView,notifyErrorHandler=!0,mode=0){const environment2=lView[ENVIRONMENT],rendererFactory=environment2.rendererFactory;rendererFactory.begin?.();try{!function detectChangesInViewWhileDirty(lView,mode){detectChangesInView$1(lView,mode);let retries=0;for(;requiresRefreshOrTraversal(lView);){if(retries===MAXIMUM_REFRESH_RERUNS)throw new RuntimeError(103,!1);retries++,detectChangesInView$1(lView,1)}}(lView,mode)}catch(error){throw notifyErrorHandler&&handleError(lView,error),error}finally{rendererFactory.end?.(),environment2.inlineEffectRunner?.flush()}}function refreshView(tView,lView,templateFn,context2){const flags=lView[FLAGS];if(!(256&~flags))return;lView[ENVIRONMENT].inlineEffectRunner?.flush(),enterView(lView);let prevConsumer=null,currentConsumer=null;(function viewShouldHaveReactiveConsumer(tView){return 2!==tView.type})(tView)&&(currentConsumer=function getOrBorrowReactiveLViewConsumer(lView){return lView[REACTIVE_TEMPLATE_CONSUMER]??function borrowReactiveLViewConsumer(lView){const consumer=freeConsumers.pop()??Object.create(REACTIVE_LVIEW_CONSUMER_NODE);return consumer.lView=lView,consumer}(lView)}(lView),prevConsumer=consumerBeforeComputation(currentConsumer));try{resetPreOrderHookFlags(lView),setBindingIndex(tView.bindingStartIndex),null!==templateFn&&executeTemplate(tView,lView,templateFn,2,context2);const hooksInitPhaseCompleted=!(3&~flags);if(hooksInitPhaseCompleted){const preOrderCheckHooks=tView.preOrderCheckHooks;null!==preOrderCheckHooks&&executeCheckHooks(lView,preOrderCheckHooks,null)}else{const preOrderHooks=tView.preOrderHooks;null!==preOrderHooks&&executeInitAndCheckHooks(lView,preOrderHooks,0,null),incrementInitPhaseFlags(lView,0)}if(function markTransplantedViewsForRefresh(lView){for(let lContainer=getFirstLContainer(lView);null!==lContainer;lContainer=getNextLContainer(lContainer)){if(!(lContainer[FLAGS]&LContainerFlags.HasTransplantedViews))continue;const movedViews=lContainer[MOVED_VIEWS];for(let i=0;i-1&&(detachView(parent,index),removeFromArray(viewRefs,index))}this._attachedToViewContainer=!1}destroyLView(this._lView[TVIEW],this._lView)}onDestroy(callback){storeLViewOnDestroy(this._lView,callback)}markForCheck(){markViewDirty(this._cdRefInjectingView||this._lView)}detach(){this._lView[FLAGS]&=-129}reattach(){updateAncestorTraversalFlagsOnAttach(this._lView),this._lView[FLAGS]|=128}detectChanges(){this._lView[FLAGS]|=1024,detectChangesInternal(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new RuntimeError(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,detachViewFromDOM(this._lView[TVIEW],this._lView)}attachToAppRef(appRef){if(this._attachedToViewContainer)throw new RuntimeError(902,!1);this._appRef=appRef,updateAncestorTraversalFlagsOnAttach(this._lView)}}let core_TemplateRef=(()=>{class TemplateRef2{static#_=this.__NG_ELEMENT_ID__=injectTemplateRef}return TemplateRef2})();const ViewEngineTemplateRef=core_TemplateRef,R3TemplateRef=class extends ViewEngineTemplateRef{constructor(_declarationLView,_declarationTContainer,elementRef){super(),this._declarationLView=_declarationLView,this._declarationTContainer=_declarationTContainer,this.elementRef=elementRef}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(context2,injector){return this.createEmbeddedViewImpl(context2,injector)}createEmbeddedViewImpl(context2,injector,dehydratedView){const embeddedLView=createAndRenderEmbeddedLView(this._declarationLView,this._declarationTContainer,context2,{embeddedViewInjector:injector,dehydratedView});return new ViewRef$1(embeddedLView)}};function injectTemplateRef(){return createTemplateRef(getCurrentTNode(),getLView())}function createTemplateRef(hostTNode,hostLView){return 4&hostTNode.type?new R3TemplateRef(hostLView,hostTNode,createElementRef(hostTNode,hostLView)):null}let _findMatchingDehydratedViewImpl=()=>null;function findMatchingDehydratedView(lContainer,template){return _findMatchingDehydratedViewImpl(lContainer,template)}class ChangeDetectionScheduler{}class ComponentRef$1{}class ComponentFactory$1{}class _NullComponentFactoryResolver{resolveComponentFactory(component){throw function noComponentFactoryError(component){const error=Error(`No component factory found for ${stringify(component)}.`);return error.ngComponent=component,error}(component)}}let ComponentFactoryResolver$1=(()=>{class ComponentFactoryResolver$12{static#_=this.NULL=new _NullComponentFactoryResolver}return ComponentFactoryResolver$12})();class RendererFactory2{}let core_Renderer2=(()=>{class Renderer22{constructor(){this.destroyNode=null}static#_=this.__NG_ELEMENT_ID__=()=>function injectRenderer2(){const lView=getLView(),nodeAtIndex=getComponentLViewByIndex(getCurrentTNode().index,lView);return(isLView(nodeAtIndex)?nodeAtIndex:lView)[RENDERER]}()}return Renderer22})(),Sanitizer=(()=>{class Sanitizer2{static#_=this.\u0275prov=core_defineInjectable({token:Sanitizer2,providedIn:"root",factory:()=>null})}return Sanitizer2})();const NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR={},markedFeatures=new Set;function performanceMarkFeature(feature){markedFeatures.has(feature)||(markedFeatures.add(feature),performance?.mark?.("mark_feature_usage",{detail:{feature}}))}function core_noop(...args){}class core_NgZone{constructor({enableLongStackTrace=!1,shouldCoalesceEventChangeDetection=!1,shouldCoalesceRunChangeDetection=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new core_EventEmitter(!1),this.onMicrotaskEmpty=new core_EventEmitter(!1),this.onStable=new core_EventEmitter(!1),this.onError=new core_EventEmitter(!1),typeof Zone>"u")throw new RuntimeError(908,!1);Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),enableLongStackTrace&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!shouldCoalesceRunChangeDetection&&shouldCoalesceEventChangeDetection,this.shouldCoalesceRunChangeDetection=shouldCoalesceRunChangeDetection,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function getNativeRequestAnimationFrame(){const isBrowser2="function"==typeof _global.requestAnimationFrame;let nativeRequestAnimationFrame=_global[isBrowser2?"requestAnimationFrame":"setTimeout"],nativeCancelAnimationFrame=_global[isBrowser2?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&nativeRequestAnimationFrame&&nativeCancelAnimationFrame){const unpatchedRequestAnimationFrame=nativeRequestAnimationFrame[Zone.__symbol__("OriginalDelegate")];unpatchedRequestAnimationFrame&&(nativeRequestAnimationFrame=unpatchedRequestAnimationFrame);const unpatchedCancelAnimationFrame=nativeCancelAnimationFrame[Zone.__symbol__("OriginalDelegate")];unpatchedCancelAnimationFrame&&(nativeCancelAnimationFrame=unpatchedCancelAnimationFrame)}return{nativeRequestAnimationFrame,nativeCancelAnimationFrame}}().nativeRequestAnimationFrame,function forkInnerZoneWithAngularBehavior(zone){const delayChangeDetectionForEventsDelegate=()=>{!function delayChangeDetectionForEvents(zone){zone.isCheckStableRunning||-1!==zone.lastRequestAnimationFrameId||(zone.lastRequestAnimationFrameId=zone.nativeRequestAnimationFrame.call(_global,()=>{zone.fakeTopEventTask||(zone.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{zone.lastRequestAnimationFrameId=-1,updateMicroTaskStatus(zone),zone.isCheckStableRunning=!0,checkStable(zone),zone.isCheckStableRunning=!1},void 0,()=>{},()=>{})),zone.fakeTopEventTask.invoke()}),updateMicroTaskStatus(zone))}(zone)};zone._inner=zone._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(delegate,current,target,task,applyThis,applyArgs)=>{if(function shouldBeIgnoredByZone(applyArgs){return!(!Array.isArray(applyArgs)||1!==applyArgs.length)&&!0===applyArgs[0].data?.__ignore_ng_zone__}(applyArgs))return delegate.invokeTask(target,task,applyThis,applyArgs);try{return onEnter(zone),delegate.invokeTask(target,task,applyThis,applyArgs)}finally{(zone.shouldCoalesceEventChangeDetection&&"eventTask"===task.type||zone.shouldCoalesceRunChangeDetection)&&delayChangeDetectionForEventsDelegate(),onLeave(zone)}},onInvoke:(delegate,current,target,callback,applyThis,applyArgs,source)=>{try{return onEnter(zone),delegate.invoke(target,callback,applyThis,applyArgs,source)}finally{zone.shouldCoalesceRunChangeDetection&&delayChangeDetectionForEventsDelegate(),onLeave(zone)}},onHasTask:(delegate,current,target,hasTaskState)=>{delegate.hasTask(target,hasTaskState),current===target&&("microTask"==hasTaskState.change?(zone._hasPendingMicrotasks=hasTaskState.microTask,updateMicroTaskStatus(zone),checkStable(zone)):"macroTask"==hasTaskState.change&&(zone.hasPendingMacrotasks=hasTaskState.macroTask))},onHandleError:(delegate,current,target,error)=>(delegate.handleError(target,error),zone.runOutsideAngular(()=>zone.onError.emit(error)),!1)})}(this)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!core_NgZone.isInAngularZone())throw new RuntimeError(909,!1)}static assertNotInAngularZone(){if(core_NgZone.isInAngularZone())throw new RuntimeError(909,!1)}run(fn,applyThis,applyArgs){return this._inner.run(fn,applyThis,applyArgs)}runTask(fn,applyThis,applyArgs,name){const zone=this._inner,task=zone.scheduleEventTask("NgZoneEvent: "+name,fn,EMPTY_PAYLOAD,core_noop,core_noop);try{return zone.runTask(task,applyThis,applyArgs)}finally{zone.cancelTask(task)}}runGuarded(fn,applyThis,applyArgs){return this._inner.runGuarded(fn,applyThis,applyArgs)}runOutsideAngular(fn){return this._outer.run(fn)}}const EMPTY_PAYLOAD={};function checkStable(zone){if(0==zone._nesting&&!zone.hasPendingMicrotasks&&!zone.isStable)try{zone._nesting++,zone.onMicrotaskEmpty.emit(null)}finally{if(zone._nesting--,!zone.hasPendingMicrotasks)try{zone.runOutsideAngular(()=>zone.onStable.emit(null))}finally{zone.isStable=!0}}}function updateMicroTaskStatus(zone){zone.hasPendingMicrotasks=!!(zone._hasPendingMicrotasks||(zone.shouldCoalesceEventChangeDetection||zone.shouldCoalesceRunChangeDetection)&&-1!==zone.lastRequestAnimationFrameId)}function onEnter(zone){zone._nesting++,zone.isStable&&(zone.isStable=!1,zone.onUnstable.emit(null))}function onLeave(zone){zone._nesting--,checkStable(zone)}class NoopNgZone{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new core_EventEmitter,this.onMicrotaskEmpty=new core_EventEmitter,this.onStable=new core_EventEmitter,this.onError=new core_EventEmitter}run(fn,applyThis,applyArgs){return fn.apply(applyThis,applyArgs)}runGuarded(fn,applyThis,applyArgs){return fn.apply(applyThis,applyArgs)}runOutsideAngular(fn){return fn()}runTask(fn,applyThis,applyArgs,name){return fn.apply(applyThis,applyArgs)}}function internalAfterNextRender(callback,options){const injector=options?.injector??core_inject(core_Injector);(options?.runOnServer||isPlatformBrowser(injector))&&injector.get(AfterRenderEventManager).internalCallbacks.push(callback)}let AfterRenderEventManager=(()=>{class AfterRenderEventManager2{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const callbacks=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const callback of callbacks)callback()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#_=this.\u0275prov=core_defineInjectable({token:AfterRenderEventManager2,providedIn:"root",factory:()=>new AfterRenderEventManager2})}return AfterRenderEventManager2})();function isModuleWithProviders(value){return void 0!==value.ngModule}function isNgModule(value){return!!getNgModuleDef(value)}function isPipe(value){return!!getPipeDef$1(value)}function isDirective(value){return!!getDirectiveDef(value)}function isComponent(value){return!!getComponentDef(value)}function verifyStandaloneImport(depType,importingType){if(isForwardRef(depType)&&!(depType=resolveForwardRef(depType)))throw new Error(`Expected forwardRef function, imported from "${stringifyForError(importingType)}", to return a standalone entity or NgModule but got "${stringifyForError(depType)||depType}".`);if(null==getNgModuleDef(depType)){const def=getComponentDef(depType)||getDirectiveDef(depType)||getPipeDef$1(depType);if(null==def)throw isModuleWithProviders(depType)?new Error(`A module with providers was imported from "${stringifyForError(importingType)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${stringifyForError(depType)}" type, imported from "${stringifyForError(importingType)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!def.standalone)throw new Error(`The "${stringifyForError(depType)}" ${function getDependencyTypeForError(type){return getComponentDef(type)?"component":getDirectiveDef(type)?"directive":getPipeDef$1(type)?"pipe":"type"}(depType)}, imported from "${stringifyForError(importingType)}", is not standalone. Did you forget to add the standalone: true flag?`)}}const USE_RUNTIME_DEPS_TRACKER_FOR_JIT=!0;class DepsTracker{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const moduleType of this.ngModulesWithSomeUnresolvedDecls){const def=getNgModuleDef(moduleType);if(def?.declarations)for(const decl of maybeUnwrapFn(def.declarations))isComponent(decl)&&this.ownerNgModule.set(decl,moduleType)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(type,rawImports){this.resolveNgModulesDecls();const def=getComponentDef(type);if(null===def)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${type}`);if(def.standalone){const scope=this.getStandaloneComponentScope(type,rawImports);return scope.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...scope.compilation.directives,...scope.compilation.pipes,...scope.compilation.ngModules]}}{if(!this.ownerNgModule.has(type))return{dependencies:[]};const scope=this.getNgModuleScope(this.ownerNgModule.get(type));return scope.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...scope.compilation.directives,...scope.compilation.pipes]}}}registerNgModule(type,scopeInfo){if(!isNgModule(type))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${type}`);this.ngModulesWithSomeUnresolvedDecls.add(type)}clearScopeCacheFor(type){this.ngModulesScopeCache.delete(type),this.standaloneComponentsScopeCache.delete(type)}getNgModuleScope(type){if(this.ngModulesScopeCache.has(type))return this.ngModulesScopeCache.get(type);const scope=this.computeNgModuleScope(type);return this.ngModulesScopeCache.set(type,scope),scope}computeNgModuleScope(type){const def=getNgModuleDef(type,!0),scope={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const imported of maybeUnwrapFn(def.imports))if(isNgModule(imported)){const importedScope=this.getNgModuleScope(imported);addSet(importedScope.exported.directives,scope.compilation.directives),addSet(importedScope.exported.pipes,scope.compilation.pipes)}else{if(!isStandalone(imported)){scope.compilation.isPoisoned=!0;break}if(isDirective(imported)||isComponent(imported))scope.compilation.directives.add(imported);else{if(!isPipe(imported))throw new RuntimeError(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");scope.compilation.pipes.add(imported)}}if(!scope.compilation.isPoisoned)for(const decl of maybeUnwrapFn(def.declarations)){if(isNgModule(decl)||isStandalone(decl)){scope.compilation.isPoisoned=!0;break}isPipe(decl)?scope.compilation.pipes.add(decl):scope.compilation.directives.add(decl)}for(const exported of maybeUnwrapFn(def.exports))if(isNgModule(exported)){const exportedScope=this.getNgModuleScope(exported);addSet(exportedScope.exported.directives,scope.exported.directives),addSet(exportedScope.exported.pipes,scope.exported.pipes),addSet(exportedScope.exported.directives,scope.compilation.directives),addSet(exportedScope.exported.pipes,scope.compilation.pipes)}else isPipe(exported)?scope.exported.pipes.add(exported):scope.exported.directives.add(exported);return scope}getStandaloneComponentScope(type,rawImports){if(this.standaloneComponentsScopeCache.has(type))return this.standaloneComponentsScopeCache.get(type);const ans=this.computeStandaloneComponentScope(type,rawImports);return this.standaloneComponentsScopeCache.set(type,ans),ans}computeStandaloneComponentScope(type,rawImports){const ans={compilation:{directives:new Set([type]),pipes:new Set,ngModules:new Set}};for(const rawImport of flatten(rawImports??[])){const imported=resolveForwardRef(rawImport);try{verifyStandaloneImport(imported,type)}catch{return ans.compilation.isPoisoned=!0,ans}if(isNgModule(imported)){ans.compilation.ngModules.add(imported);const importedScope=this.getNgModuleScope(imported);if(importedScope.exported.isPoisoned)return ans.compilation.isPoisoned=!0,ans;addSet(importedScope.exported.directives,ans.compilation.directives),addSet(importedScope.exported.pipes,ans.compilation.pipes)}else if(isPipe(imported))ans.compilation.pipes.add(imported);else{if(!isDirective(imported)&&!isComponent(imported))return ans.compilation.isPoisoned=!0,ans;ans.compilation.directives.add(imported)}}return ans}isOrphanComponent(cmp){const def=getComponentDef(cmp);return!(!def||def.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(cmp)))}}function addSet(sourceSet,targetSet){for(const m2 of sourceSet)targetSet.add(m2)}const depsTracker=new DepsTracker;function computeStaticStyling(tNode,attrs,writeToHost){let styles=writeToHost?tNode.styles:null,classes=writeToHost?tNode.classes:null,mode=0;if(null!==attrs)for(let i=0;i0&&writeDirectClass(hostRenderer,hostRNode,classes.join(" "))}}(hostRenderer,rootComponentDef,hostRNode,rootSelectorOrNode),void 0!==projectableNodes&&function projectNodes(tNode,ngContentSelectors,projectableNodes){const projection=tNode.projection=[];for(let i=0;i{class ViewContainerRef2{static#_=this.__NG_ELEMENT_ID__=injectViewContainerRef}return ViewContainerRef2})();function injectViewContainerRef(){return createContainerRef(getCurrentTNode(),getLView())}const VE_ViewContainerRef=core_ViewContainerRef,R3ViewContainerRef=class extends VE_ViewContainerRef{constructor(_lContainer,_hostTNode,_hostLView){super(),this._lContainer=_lContainer,this._hostTNode=_hostTNode,this._hostLView=_hostLView}get element(){return createElementRef(this._hostTNode,this._hostLView)}get injector(){return new NodeInjector(this._hostTNode,this._hostLView)}get parentInjector(){const parentLocation=getParentInjectorLocation(this._hostTNode,this._hostLView);if(hasParentInjector(parentLocation)){const parentView=getParentInjectorView(parentLocation,this._hostLView),injectorIndex=getParentInjectorIndex(parentLocation);return new NodeInjector(parentView[TVIEW].data[injectorIndex+8],parentView)}return new NodeInjector(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(index){const viewRefs=getViewRefs(this._lContainer);return null!==viewRefs&&viewRefs[index]||null}get length(){return this._lContainer.length-CONTAINER_HEADER_OFFSET}createEmbeddedView(templateRef,context2,indexOrOptions){let index,injector;"number"==typeof indexOrOptions?index=indexOrOptions:null!=indexOrOptions&&(index=indexOrOptions.index,injector=indexOrOptions.injector);const dehydratedView=findMatchingDehydratedView(this._lContainer,templateRef.ssrId),viewRef=templateRef.createEmbeddedViewImpl(context2||{},injector,dehydratedView);return this.insertImpl(viewRef,index,shouldAddViewToDom(this._hostTNode,dehydratedView)),viewRef}createComponent(componentFactoryOrType,indexOrOptions,injector,projectableNodes,environmentInjector){const isComponentFactory=componentFactoryOrType&&!isType(componentFactoryOrType);let index;if(isComponentFactory)index=indexOrOptions;else{const options=indexOrOptions||{};index=options.index,injector=options.injector,projectableNodes=options.projectableNodes,environmentInjector=options.environmentInjector||options.ngModuleRef}const componentFactory=isComponentFactory?componentFactoryOrType:new ComponentFactory(getComponentDef(componentFactoryOrType)),contextInjector=injector||this.parentInjector;if(!environmentInjector&&null==componentFactory.ngModule){const result=(isComponentFactory?contextInjector:this.parentInjector).get(core_EnvironmentInjector,null);result&&(environmentInjector=result)}const componentDef=getComponentDef(componentFactory.componentType??{}),dehydratedView=findMatchingDehydratedView(this._lContainer,componentDef?.id??null),componentRef=componentFactory.create(contextInjector,projectableNodes,dehydratedView?.firstChild??null,environmentInjector);return this.insertImpl(componentRef.hostView,index,shouldAddViewToDom(this._hostTNode,dehydratedView)),componentRef}insert(viewRef,index){return this.insertImpl(viewRef,index,!0)}insertImpl(viewRef,index,addToDOM){const lView=viewRef._lView;if(function viewAttachedToContainer(view){return isLContainer(view[PARENT])}(lView)){const prevIdx=this.indexOf(viewRef);if(-1!==prevIdx)this.detach(prevIdx);else{const prevLContainer=lView[PARENT],prevVCRef=new R3ViewContainerRef(prevLContainer,prevLContainer[T_HOST],prevLContainer[PARENT]);prevVCRef.detach(prevVCRef.indexOf(viewRef))}}const adjustedIdx=this._adjustIndex(index),lContainer=this._lContainer;return addLViewToLContainer(lContainer,lView,adjustedIdx,addToDOM),viewRef.attachToViewContainerRef(),addToArray(getOrCreateViewRefs(lContainer),adjustedIdx,viewRef),viewRef}move(viewRef,newIndex){return this.insert(viewRef,newIndex)}indexOf(viewRef){const viewRefsArr=getViewRefs(this._lContainer);return null!==viewRefsArr?viewRefsArr.indexOf(viewRef):-1}remove(index){const adjustedIdx=this._adjustIndex(index,-1),detachedView=detachView(this._lContainer,adjustedIdx);detachedView&&(removeFromArray(getOrCreateViewRefs(this._lContainer),adjustedIdx),destroyLView(detachedView[TVIEW],detachedView))}detach(index){const adjustedIdx=this._adjustIndex(index,-1),view=detachView(this._lContainer,adjustedIdx);return view&&null!=removeFromArray(getOrCreateViewRefs(this._lContainer),adjustedIdx)?new ViewRef$1(view):null}_adjustIndex(index,shift=0){return index??this.length+shift}};function getViewRefs(lContainer){return lContainer[8]}function getOrCreateViewRefs(lContainer){return lContainer[8]||(lContainer[8]=[])}function createContainerRef(hostTNode,hostLView){let lContainer;const slotValue=hostLView[hostTNode.index];return isLContainer(slotValue)?lContainer=slotValue:(lContainer=createLContainer(slotValue,hostLView,null,hostTNode),hostLView[hostTNode.index]=lContainer,addToViewTree(hostLView,lContainer)),_locateOrCreateAnchorNode(lContainer,hostLView,hostTNode,slotValue),new R3ViewContainerRef(lContainer,hostTNode,hostLView)}let _locateOrCreateAnchorNode=function createAnchorNode(lContainer,hostLView,hostTNode,slotValue){if(lContainer[NATIVE])return;let commentNode;commentNode=8&hostTNode.type?unwrapRNode(slotValue):function insertAnchorNode(hostLView,hostTNode){const renderer=hostLView[RENDERER],commentNode=renderer.createComment(""),hostNative=getNativeByTNode(hostTNode,hostLView);return nativeInsertBefore(renderer,nativeParentNode(renderer,hostNative),commentNode,function nativeNextSibling(renderer,node2){return renderer.nextSibling(node2)}(renderer,hostNative),!1),commentNode}(hostLView,hostTNode),lContainer[NATIVE]=commentNode},_populateDehydratedViewsInLContainer=()=>!1;function populateDehydratedViewsInLContainer(lContainer,tNode,hostLView){return _populateDehydratedViewsInLContainer(lContainer,tNode,hostLView)}class LQuery_{constructor(queryList){this.queryList=queryList,this.matches=null}clone(){return new LQuery_(this.queryList)}setDirty(){this.queryList.setDirty()}}class LQueries_{constructor(queries=[]){this.queries=queries}createEmbeddedView(tView){const tQueries=tView.queries;if(null!==tQueries){const noOfInheritedQueries=null!==tView.contentQueries?tView.contentQueries[0]:tQueries.length,viewLQueries=[];for(let i=0;is.trim())}(predicate):predicate}}class TQueries_{constructor(queries=[]){this.queries=queries}elementStart(tView,tNode){for(let i=0;i0)result.push(lViewResults[i/2]);else{const childQueryIndex=tQueryMatches[i+1],declarationLContainer=lView[-tNodeIdx];for(let i6=CONTAINER_HEADER_OFFSET;i6(producerAccessed(node2),node2.value);return getter[SIGNAL]=node2,getter}(initialValue),node2=signalFn[SIGNAL];return options?.equal&&(node2.equal=options.equal),signalFn.set=newValue=>signalSetFn(node2,newValue),signalFn.update=updateFn=>function signalUpdateFn(node2,updater){producerUpdatesAllowed()||throwInvalidWriteToSignalError(),signalSetFn(node2,updater(node2.value))}(node2,updateFn),signalFn.asReadonly=signalAsReadonlyFn.bind(signalFn),signalFn}function signalAsReadonlyFn(){const node2=this[SIGNAL];if(void 0===node2.readonlyFn){const readonlyFn=()=>this();readonlyFn[SIGNAL]=node2,node2.readonlyFn=readonlyFn}return node2.readonlyFn}function isWritableSignal(value){return isSignal(value)&&"function"==typeof value.set}function bindQueryToSignal(target,queryIndex){const node2=target[SIGNAL];node2._lView=getLView(),node2._queryIndex=queryIndex,node2._queryList=loadQueryInternal(node2._lView,queryIndex),node2._queryList.onDirty(()=>node2._dirtyCounter.update(v=>v+1))}let componentResourceResolutionQueue=new Map;const componentDefPendingResolution=new Set;function componentNeedsResolution(component){return!!(component.templateUrl&&!component.hasOwnProperty("template")||component.styleUrls&&component.styleUrls.length||component.styleUrl)}const modules=new Map;function getSuperType(type){return Object.getPrototypeOf(type.prototype).constructor}function \u0275\u0275InheritDefinitionFeature(definition){let superType=getSuperType(definition.type),shouldInheritFields=!0;const inheritanceChain=[definition];for(;superType;){let superDef;if(isComponentDef(definition))superDef=superType.\u0275cmp||superType.\u0275dir;else{if(superType.\u0275cmp)throw new RuntimeError(903,!1);superDef=superType.\u0275dir}if(superDef){if(shouldInheritFields){inheritanceChain.push(superDef);const writeableDef=definition;writeableDef.inputs=maybeUnwrapEmpty(definition.inputs),writeableDef.inputTransforms=maybeUnwrapEmpty(definition.inputTransforms),writeableDef.declaredInputs=maybeUnwrapEmpty(definition.declaredInputs),writeableDef.outputs=maybeUnwrapEmpty(definition.outputs);const superHostBindings=superDef.hostBindings;superHostBindings&&inheritHostBindings(definition,superHostBindings);const superViewQuery=superDef.viewQuery,superContentQueries=superDef.contentQueries;if(superViewQuery&&inheritViewQuery(definition,superViewQuery),superContentQueries&&inheritContentQueries(definition,superContentQueries),mergeInputsWithTransforms(definition,superDef),fillProperties(definition.outputs,superDef.outputs),isComponentDef(superDef)&&superDef.data.animation){const defData=definition.data;defData.animation=(defData.animation||[]).concat(superDef.data.animation)}}const features=superDef.features;if(features)for(let i=0;i=0;i--){const def=inheritanceChain[i];def.hostVars=hostVars+=def.hostVars,def.hostAttrs=mergeHostAttrs(def.hostAttrs,hostAttrs=mergeHostAttrs(hostAttrs,def.hostAttrs))}}(inheritanceChain)}function mergeInputsWithTransforms(target,source){for(const key in source.inputs){if(!source.inputs.hasOwnProperty(key)||target.inputs.hasOwnProperty(key))continue;const value=source.inputs[key];if(void 0!==value&&(target.inputs[key]=value,target.declaredInputs[key]=source.declaredInputs[key],null!==source.inputTransforms)){const minifiedName=Array.isArray(value)?value[0]:value;if(!source.inputTransforms.hasOwnProperty(minifiedName))continue;target.inputTransforms??={},target.inputTransforms[minifiedName]=source.inputTransforms[minifiedName]}}}function maybeUnwrapEmpty(value){return value===EMPTY_OBJ?{}:value===EMPTY_ARRAY?[]:value}function inheritViewQuery(definition,superViewQuery){const prevViewQuery=definition.viewQuery;definition.viewQuery=prevViewQuery?(rf,ctx)=>{superViewQuery(rf,ctx),prevViewQuery(rf,ctx)}:superViewQuery}function inheritContentQueries(definition,superContentQueries){const prevContentQueries=definition.contentQueries;definition.contentQueries=prevContentQueries?(rf,ctx,directiveIndex)=>{superContentQueries(rf,ctx,directiveIndex),prevContentQueries(rf,ctx,directiveIndex)}:superContentQueries}function inheritHostBindings(definition,superHostBindings){const prevHostBindings=definition.hostBindings;definition.hostBindings=prevHostBindings?(rf,ctx)=>{superHostBindings(rf,ctx),prevHostBindings(rf,ctx)}:superHostBindings}const COPY_DIRECTIVE_FIELDS=["providersResolver"],COPY_COMPONENT_FIELDS=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function findHostDirectiveDefs(currentDef,matchedDefs,hostDirectiveDefs){if(null!==currentDef.hostDirectives)for(const hostDirectiveConfig of currentDef.hostDirectives){const hostDirectiveDef=getDirectiveDef(hostDirectiveConfig.directive);patchDeclaredInputs(hostDirectiveDef.declaredInputs,hostDirectiveConfig.inputs),findHostDirectiveDefs(hostDirectiveDef,matchedDefs,hostDirectiveDefs),hostDirectiveDefs.set(hostDirectiveDef,hostDirectiveConfig),matchedDefs.push(hostDirectiveDef)}}function bindingArrayToMap(bindings){if(void 0===bindings||0===bindings.length)return EMPTY_OBJ;const result={};for(let i=0;ifn()),this.destroyCbs=null}onDestroy(callback){this.destroyCbs.push(callback)}}class NgModuleFactory extends NgModuleFactory$1{constructor(moduleType){super(),this.moduleType=moduleType}create(parentInjector){return new NgModuleRef(this.moduleType,parentInjector,[])}}class EnvironmentNgModuleRefAdapter extends NgModuleRef$1{constructor(config2){super(),this.componentFactoryResolver=new ComponentFactoryResolver(this),this.instance=null;const injector=new R3Injector([...config2.providers,{provide:NgModuleRef$1,useValue:this},{provide:ComponentFactoryResolver$1,useValue:this.componentFactoryResolver}],config2.parent||getNullInjector(),config2.debugName,new Set(["environment"]));this.injector=injector,config2.runEnvironmentInitializers&&injector.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(callback){this.injector.onDestroy(callback)}}function core_createEnvironmentInjector(providers,parent,debugName=null){return new EnvironmentNgModuleRefAdapter({providers,parent,debugName,runEnvironmentInitializers:!0}).injector}let CachedInjectorService=(()=>{class CachedInjectorService2{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(key,parentInjector,providers,debugName){if(!this.cachedInjectors.has(key)){const injector=providers.length>0?core_createEnvironmentInjector(providers,parentInjector,debugName):null;this.cachedInjectors.set(key,injector)}return this.cachedInjectors.get(key)}ngOnDestroy(){try{for(const injector of this.cachedInjectors.values())null!==injector&&injector.destroy()}finally{this.cachedInjectors.clear()}}static#_=this.\u0275prov=core_defineInjectable({token:CachedInjectorService2,providedIn:"environment",factory:()=>new CachedInjectorService2})}return CachedInjectorService2})(),PendingTasks=(()=>{class PendingTasks2{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new BehaviorSubject_BehaviorSubject(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const taskId=this.taskId++;return this.pendingTasks.add(taskId),taskId}remove(taskId){this.pendingTasks.delete(taskId),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#_=this.\u0275fac=function(t){return new(t||PendingTasks2)};static#_2=this.\u0275prov=core_defineInjectable({token:PendingTasks2,factory:PendingTasks2.\u0275fac,providedIn:"root"})}return PendingTasks2})();function isListLikeIterable(obj){return!!isJsObject(obj)&&(Array.isArray(obj)||!(obj instanceof Map)&&Symbol.iterator in obj)}function isJsObject(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function updateBinding(lView,bindingIndex,value){return lView[bindingIndex]=value}function getBinding(lView,bindingIndex){return lView[bindingIndex]}function bindingUpdated(lView,bindingIndex,value){return!Object.is(lView[bindingIndex],value)&&(lView[bindingIndex]=value,!0)}function bindingUpdated2(lView,bindingIndex,exp1,exp2){const different=bindingUpdated(lView,bindingIndex,exp1);return bindingUpdated(lView,bindingIndex+1,exp2)||different}function bindingUpdated3(lView,bindingIndex,exp1,exp2,exp3){const different=bindingUpdated2(lView,bindingIndex,exp1,exp2);return bindingUpdated(lView,bindingIndex+2,exp3)||different}function bindingUpdated4(lView,bindingIndex,exp1,exp2,exp3,exp4){const different=bindingUpdated2(lView,bindingIndex,exp1,exp2);return bindingUpdated2(lView,bindingIndex+2,exp3,exp4)||different}function \u0275\u0275template(index,templateFn,decls,vars,tagName,attrsIndex,localRefsIndex,localRefExtractor){const lView=getLView(),tView=getTView(),adjustedIndex=index+HEADER_OFFSET,tNode=tView.firstCreatePass?function templateFirstCreatePass(index,tView,lView,templateFn,decls,vars,tagName,attrsIndex,localRefsIndex){const tViewConsts=tView.consts,tNode=getOrCreateTNode(tView,index,4,tagName||null,getConstant(tViewConsts,attrsIndex));resolveDirectives(tView,lView,tNode,getConstant(tViewConsts,localRefsIndex)),registerPostOrderHooks(tView,tNode);const embeddedTView=tNode.tView=createTView(2,tNode,templateFn,decls,vars,tView.directiveRegistry,tView.pipeRegistry,null,tView.schemas,tViewConsts,null);return null!==tView.queries&&(tView.queries.template(tView,tNode),embeddedTView.queries=tView.queries.embeddedTView(tNode)),tNode}(adjustedIndex,tView,lView,templateFn,decls,vars,tagName,attrsIndex,localRefsIndex):tView.data[adjustedIndex];setCurrentTNode(tNode,!1);const comment=_locateOrCreateContainerAnchor(tView,lView,tNode,index);wasLastNodeCreated()&&appendChild(tView,lView,comment,tNode),attachPatchData(comment,lView);const lContainer=createLContainer(comment,lView,comment,tNode);return lView[adjustedIndex]=lContainer,addToViewTree(lView,lContainer),populateDehydratedViewsInLContainer(lContainer,tNode,lView),isDirectiveHost(tNode)&&createDirectivesInstances(tView,lView,tNode),null!=localRefsIndex&&saveResolvedLocalsInData(lView,tNode,localRefExtractor),\u0275\u0275template}let _locateOrCreateContainerAnchor=function createContainerAnchorImpl(tView,lView,tNode,index){return lastNodeWasCreated(!0),lView[RENDERER].createComment("")};var DeferDependenciesLoadingState=function(DeferDependenciesLoadingState2){return DeferDependenciesLoadingState2[DeferDependenciesLoadingState2.NOT_STARTED=0]="NOT_STARTED",DeferDependenciesLoadingState2[DeferDependenciesLoadingState2.IN_PROGRESS=1]="IN_PROGRESS",DeferDependenciesLoadingState2[DeferDependenciesLoadingState2.COMPLETE=2]="COMPLETE",DeferDependenciesLoadingState2[DeferDependenciesLoadingState2.FAILED=3]="FAILED",DeferDependenciesLoadingState2}(DeferDependenciesLoadingState||{});const MINIMUM_SLOT=0,LOADING_AFTER_SLOT=1;var DeferBlockState=function(DeferBlockState2){return DeferBlockState2[DeferBlockState2.Placeholder=0]="Placeholder",DeferBlockState2[DeferBlockState2.Loading=1]="Loading",DeferBlockState2[DeferBlockState2.Complete=2]="Complete",DeferBlockState2[DeferBlockState2.Error=3]="Error",DeferBlockState2}(DeferBlockState||{}),DeferBlockInternalState=function(DeferBlockInternalState2){return DeferBlockInternalState2[DeferBlockInternalState2.Initial=-1]="Initial",DeferBlockInternalState2}(DeferBlockInternalState||{});const NEXT_DEFER_BLOCK_STATE=0,DEFER_BLOCK_STATE=1,STATE_IS_FROZEN_UNTIL=2,TRIGGER_CLEANUP_FNS=4,PREFETCH_TRIGGER_CLEANUP_FNS=5;var DeferBlockBehavior=function(DeferBlockBehavior2){return DeferBlockBehavior2[DeferBlockBehavior2.Manual=0]="Manual",DeferBlockBehavior2[DeferBlockBehavior2.Playthrough=1]="Playthrough",DeferBlockBehavior2}(DeferBlockBehavior||{});function storeTriggerCleanupFn(type,lDetails,cleanupFn){const key=1===type?PREFETCH_TRIGGER_CLEANUP_FNS:TRIGGER_CLEANUP_FNS;null===lDetails[key]&&(lDetails[key]=[]),lDetails[key].push(cleanupFn)}function invokeTriggerCleanupFns(type,lDetails){const key=1===type?PREFETCH_TRIGGER_CLEANUP_FNS:TRIGGER_CLEANUP_FNS,cleanupFns=lDetails[key];if(null!==cleanupFns){for(const cleanupFn of cleanupFns)cleanupFn();lDetails[key]=null}}function invokeAllTriggerCleanupFns(lDetails){invokeTriggerCleanupFns(1,lDetails),invokeTriggerCleanupFns(0,lDetails)}function getDeferBlockDataIndex(deferBlockIndex){return deferBlockIndex+1}function getLDeferBlockDetails(lView,tNode){return lView[getDeferBlockDataIndex(tNode.index)]}function getTDeferBlockDetails(tView,tNode){const slotIndex=getDeferBlockDataIndex(tNode.index);return tView.data[slotIndex]}function getMinimumDurationForState(tDetails,currentState){return currentState===DeferBlockState.Placeholder?tDetails.placeholderBlockConfig?.[MINIMUM_SLOT]??null:currentState===DeferBlockState.Loading?tDetails.loadingBlockConfig?.[MINIMUM_SLOT]??null:null}function getLoadingBlockAfter(tDetails){return tDetails.loadingBlockConfig?.[LOADING_AFTER_SLOT]??null}function addDepsToRegistry(currentDeps,newDeps){if(!currentDeps||0===currentDeps.length)return newDeps;const currentDepSet=new Set(currentDeps);for(const dep of newDeps)currentDepSet.add(dep);return currentDeps.length===currentDepSet.size?currentDeps:Array.from(currentDepSet)}const eventListenerOptions={passive:!0,capture:!0},hoverTriggers=new WeakMap,interactionTriggers=new WeakMap,viewportTriggers=new WeakMap,interactionEventNames=["click","keydown"],hoverEventNames=["mouseenter","focusin"];let intersectionObserver=null,observedViewportElements=0;class DeferEventEntry{constructor(){this.callbacks=new Set,this.listener=()=>{for(const callback of this.callbacks)callback()}}}function onInteraction(trigger2,callback){let entry=interactionTriggers.get(trigger2);if(!entry){entry=new DeferEventEntry,interactionTriggers.set(trigger2,entry);for(const name of interactionEventNames)trigger2.addEventListener(name,entry.listener,eventListenerOptions)}return entry.callbacks.add(callback),()=>{const{callbacks,listener}=entry;if(callbacks.delete(callback),0===callbacks.size){interactionTriggers.delete(trigger2);for(const name of interactionEventNames)trigger2.removeEventListener(name,listener,eventListenerOptions)}}}function onHover(trigger2,callback){let entry=hoverTriggers.get(trigger2);if(!entry){entry=new DeferEventEntry,hoverTriggers.set(trigger2,entry);for(const name of hoverEventNames)trigger2.addEventListener(name,entry.listener,eventListenerOptions)}return entry.callbacks.add(callback),()=>{const{callbacks,listener}=entry;if(callbacks.delete(callback),0===callbacks.size){for(const name of hoverEventNames)trigger2.removeEventListener(name,listener,eventListenerOptions);hoverTriggers.delete(trigger2)}}}function onViewport(trigger2,callback,injector){const ngZone=injector.get(core_NgZone);let entry=viewportTriggers.get(trigger2);return intersectionObserver=intersectionObserver||ngZone.runOutsideAngular(()=>new IntersectionObserver(entries=>{for(const current of entries)current.isIntersecting&&viewportTriggers.has(current.target)&&ngZone.run(viewportTriggers.get(current.target).listener)})),entry||(entry=new DeferEventEntry,ngZone.runOutsideAngular(()=>intersectionObserver.observe(trigger2)),viewportTriggers.set(trigger2,entry),observedViewportElements++),entry.callbacks.add(callback),()=>{viewportTriggers.has(trigger2)&&(entry.callbacks.delete(callback),0===entry.callbacks.size&&(intersectionObserver?.unobserve(trigger2),viewportTriggers.delete(trigger2),observedViewportElements--),0===observedViewportElements&&(intersectionObserver?.disconnect(),intersectionObserver=null))}}function registerDomTrigger(initialLView,tNode,triggerIndex,walkUpTimes,registerFn,callback,type){const injector=initialLView[INJECTOR];internalAfterNextRender(function pollDomTrigger(){if(isDestroyed(initialLView))return;const lDetails=getLDeferBlockDetails(initialLView,tNode),renderedState=lDetails[DEFER_BLOCK_STATE];if(renderedState!==DeferBlockInternalState.Initial&&renderedState!==DeferBlockState.Placeholder)return;const triggerLView=function getTriggerLView(deferredHostLView,deferredTNode,walkUpTimes){return null==walkUpTimes?deferredHostLView:walkUpTimes>=0?walkUpViews(walkUpTimes,deferredHostLView):deferredHostLView[deferredTNode.index][CONTAINER_HEADER_OFFSET]??null}(initialLView,tNode,walkUpTimes);if(!triggerLView)return void internalAfterNextRender(pollDomTrigger,{injector});if(isDestroyed(triggerLView))return;const element=function getTriggerElement(triggerLView,triggerIndex){return getNativeByIndex(HEADER_OFFSET+triggerIndex,triggerLView)}(triggerLView,triggerIndex),cleanup=registerFn(element,()=>{initialLView!==triggerLView&&removeLViewOnDestroy(triggerLView,cleanup),callback()},injector);initialLView!==triggerLView&&storeLViewOnDestroy(triggerLView,cleanup),storeTriggerCleanupFn(type,lDetails,cleanup)},{injector})}function onIdle(callback,lView){const scheduler=lView[INJECTOR].get(IdleScheduler);return scheduler.add(callback),()=>scheduler.remove(callback)}let IdleScheduler=(()=>{class IdleScheduler2{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=core_inject(core_NgZone),this.requestIdleCallbackFn=(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis)}add(callback){(this.executingCallbacks?this.deferred:this.current).add(callback),null===this.idleId&&this.scheduleIdleCallback()}remove(callback){const{current,deferred}=this;current.delete(callback),deferred.delete(callback),0===current.size&&0===deferred.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const callback=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const callback2 of this.current)callback2();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const callback2 of this.deferred)this.current.add(callback2);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(callback))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static#_=this.\u0275prov=core_defineInjectable({token:IdleScheduler2,providedIn:"root",factory:()=>new IdleScheduler2})}return IdleScheduler2})();function onTimer(delay2){return(callback,lView)=>scheduleTimerTrigger(delay2,callback,lView)}function scheduleTimerTrigger(delay2,callback,lView){const scheduler=lView[INJECTOR].get(TimerScheduler);return scheduler.add(delay2,callback),()=>scheduler.remove(callback)}let TimerScheduler=(()=>{class TimerScheduler2{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(delay2,callback){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+delay2,callback),this.scheduleTimer()}remove(callback){const{current,deferred}=this;-1===this.removeFromQueue(current,callback)&&this.removeFromQueue(deferred,callback),0===current.length&&0===deferred.length&&this.clearTimeout()}addToQueue(target,invokeAt,callback){let insertAtIndex=target.length;for(let i=0;iinvokeAt){insertAtIndex=i;break}arrayInsert2(target,insertAtIndex,invokeAt,callback)}removeFromQueue(target,callback){let index=-1;for(let i=0;i-1&&arraySplice(target,index,2),index}scheduleTimer(){const callback=()=>{this.clearTimeout(),this.executingCallbacks=!0;const current=[...this.current],now=Date.now();for(let i=0;i=0&&arraySplice(this.current,0,lastCallbackIndex+1),this.executingCallbacks=!1,this.deferred.length>0){for(let i=0;i0){const now=Date.now(),invokeAt=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-invokeAt>16){this.clearTimeout();const timeout=Math.max(invokeAt-now,16);this.invokeTimerAt=invokeAt,this.timeoutId=setTimeout(callback,timeout)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static#_=this.\u0275prov=core_defineInjectable({token:TimerScheduler2,providedIn:"root",factory:()=>new TimerScheduler2})}return TimerScheduler2})();const DEFER_BLOCK_CONFIG=new InjectionToken("");function shouldTriggerDeferBlock(injector){return injector.get(DEFER_BLOCK_CONFIG,null,{optional:!0})?.behavior!==DeferBlockBehavior.Manual&&isPlatformBrowser(injector)}let applyDeferBlockStateWithSchedulingImpl=null;function scheduleDelayedTrigger(scheduleFn){const lView=getLView(),tNode=getCurrentTNode();renderPlaceholder(lView,tNode);const cleanupFn=scheduleFn(()=>triggerDeferBlock(lView,tNode),lView);storeTriggerCleanupFn(0,getLDeferBlockDetails(lView,tNode),cleanupFn)}function scheduleDelayedPrefetching(scheduleFn){const lView=getLView(),tNode=getCurrentTNode(),tDetails=getTDeferBlockDetails(lView[TVIEW],tNode);tDetails.loadingState===DeferDependenciesLoadingState.NOT_STARTED&&storeTriggerCleanupFn(1,getLDeferBlockDetails(lView,tNode),scheduleFn(()=>triggerPrefetching(tDetails,lView,tNode),lView))}function renderDeferBlockState(newState,tNode,lContainer,skipTimerScheduling=!1){const hostLView=lContainer[PARENT],hostTView=hostLView[TVIEW];if(isDestroyed(hostLView))return;const lDetails=getLDeferBlockDetails(hostLView,tNode);if(isValidStateChange(lDetails[DEFER_BLOCK_STATE],newState)&&isValidStateChange(lDetails[NEXT_DEFER_BLOCK_STATE]??-1,newState)){const injector=hostLView[INJECTOR],tDetails=getTDeferBlockDetails(hostTView,tNode),applyStateFn=skipTimerScheduling||!isPlatformBrowser(injector)||null===getLoadingBlockAfter(tDetails)&&null===getMinimumDurationForState(tDetails,DeferBlockState.Loading)&&!getMinimumDurationForState(tDetails,DeferBlockState.Placeholder)?applyDeferBlockState:applyDeferBlockStateWithSchedulingImpl;try{applyStateFn(newState,lDetails,lContainer,tNode,hostLView)}catch(error){handleError(hostLView,error)}}}function applyDeferBlockState(newState,lDetails,lContainer,tNode,hostLView){const stateTmplIndex=function getTemplateIndexForState(newState,hostLView,tNode){const tDetails=getTDeferBlockDetails(hostLView[TVIEW],tNode);switch(newState){case DeferBlockState.Complete:return tDetails.primaryTmplIndex;case DeferBlockState.Loading:return tDetails.loadingTmplIndex;case DeferBlockState.Error:return tDetails.errorTmplIndex;case DeferBlockState.Placeholder:return tDetails.placeholderTmplIndex;default:return null}}(newState,hostLView,tNode);if(null!==stateTmplIndex){lDetails[DEFER_BLOCK_STATE]=newState;const hostTView=hostLView[TVIEW],activeBlockTNode=getTNode(hostTView,stateTmplIndex+HEADER_OFFSET),viewIndex=0;let injector;if(removeLViewFromLContainer(lContainer,viewIndex),newState===DeferBlockState.Complete){const tDetails=getTDeferBlockDetails(hostTView,tNode),providers=tDetails.providers;if(providers&&providers.length>0){const parentInjector=hostLView[INJECTOR],isParentOutletInjector=function isRouterOutletInjector(currentInjector){return currentInjector instanceof ChainedInjector&&"function"==typeof currentInjector.injector.__ngOutletInjector}(parentInjector),parentEnvInjector=isParentOutletInjector?parentInjector:parentInjector.get(core_EnvironmentInjector);injector=parentEnvInjector.get(CachedInjectorService).getOrCreateInjector(tDetails,parentEnvInjector,providers,""),isParentOutletInjector&&(injector=function createRouterOutletInjector(parentOutletInjector,parentInjector){return parentOutletInjector.injector.__ngOutletInjector(parentInjector)}(parentInjector,injector))}}const dehydratedView=findMatchingDehydratedView(lContainer,activeBlockTNode.tView.ssrId),embeddedLView=createAndRenderEmbeddedLView(hostLView,activeBlockTNode,null,{dehydratedView,injector});addLViewToLContainer(lContainer,embeddedLView,viewIndex,shouldAddViewToDom(activeBlockTNode,dehydratedView)),markViewDirty(embeddedLView)}}function applyDeferBlockStateWithScheduling(newState,lDetails,lContainer,tNode,hostLView){const now=Date.now(),tDetails=getTDeferBlockDetails(hostLView[TVIEW],tNode);if(null===lDetails[STATE_IS_FROZEN_UNTIL]||lDetails[STATE_IS_FROZEN_UNTIL]<=now){lDetails[STATE_IS_FROZEN_UNTIL]=null;const loadingAfter=getLoadingBlockAfter(tDetails),inLoadingAfterPhase=null!==lDetails[3];if(newState!==DeferBlockState.Loading||null===loadingAfter||inLoadingAfterPhase){newState>DeferBlockState.Loading&&inLoadingAfterPhase&&(lDetails[3](),lDetails[3]=null,lDetails[NEXT_DEFER_BLOCK_STATE]=null),applyDeferBlockState(newState,lDetails,lContainer,tNode,hostLView);const duration=getMinimumDurationForState(tDetails,newState);null!==duration&&(lDetails[STATE_IS_FROZEN_UNTIL]=now+duration,scheduleDeferBlockUpdate(duration,lDetails,tNode,lContainer,hostLView))}else{lDetails[NEXT_DEFER_BLOCK_STATE]=newState;const cleanupFn=scheduleDeferBlockUpdate(loadingAfter,lDetails,tNode,lContainer,hostLView);lDetails[3]=cleanupFn}}else lDetails[NEXT_DEFER_BLOCK_STATE]=newState}function scheduleDeferBlockUpdate(timeout,lDetails,tNode,lContainer,hostLView){return scheduleTimerTrigger(timeout,()=>{const nextState=lDetails[NEXT_DEFER_BLOCK_STATE];lDetails[STATE_IS_FROZEN_UNTIL]=null,lDetails[NEXT_DEFER_BLOCK_STATE]=null,null!==nextState&&renderDeferBlockState(nextState,tNode,lContainer)},hostLView)}function isValidStateChange(currentState,newState){return currentState{let failed=!1;const directiveDefs=[],pipeDefs=[];for(const result of results){if("fulfilled"!==result.status){failed=!0;break}{const dependency=result.value,directiveDef=getComponentDef(dependency)||getDirectiveDef(dependency);if(directiveDef)directiveDefs.push(directiveDef);else{const pipeDef=getPipeDef$1(dependency);pipeDef&&pipeDefs.push(pipeDef)}}}if(tDetails.loadingPromise=null,pendingTasks.remove(taskId),failed){if(tDetails.loadingState=DeferDependenciesLoadingState.FAILED,null===tDetails.errorTmplIndex){getTemplateLocationDetails(lView);const error=new RuntimeError(750,!1);handleError(lView,error)}}else{tDetails.loadingState=DeferDependenciesLoadingState.COMPLETE;const primaryBlockTView=primaryBlockTNode.tView;if(directiveDefs.length>0){primaryBlockTView.directiveRegistry=addDepsToRegistry(primaryBlockTView.directiveRegistry,directiveDefs);const providers=internalImportProvidersFrom(!1,...directiveDefs.map(def=>def.type));tDetails.providers=providers}pipeDefs.length>0&&(primaryBlockTView.pipeRegistry=addDepsToRegistry(primaryBlockTView.pipeRegistry,pipeDefs))}}),tDetails.loadingPromise):(tDetails.loadingPromise=Promise.resolve().then(()=>{tDetails.loadingPromise=null,tDetails.loadingState=DeferDependenciesLoadingState.COMPLETE,pendingTasks.remove(taskId)}),tDetails.loadingPromise)}function renderPlaceholder(lView,tNode){renderDeferBlockState(DeferBlockState.Placeholder,tNode,lView[tNode.index])}function renderDeferStateAfterResourceLoading(tDetails,tNode,lContainer){tDetails.loadingPromise.then(()=>{tDetails.loadingState===DeferDependenciesLoadingState.COMPLETE?renderDeferBlockState(DeferBlockState.Complete,tNode,lContainer):tDetails.loadingState===DeferDependenciesLoadingState.FAILED&&renderDeferBlockState(DeferBlockState.Error,tNode,lContainer)})}function triggerDeferBlock(lView,tNode){const tView=lView[TVIEW],lContainer=lView[tNode.index];if(!shouldTriggerDeferBlock(lView[INJECTOR]))return;const lDetails=getLDeferBlockDetails(lView,tNode),tDetails=getTDeferBlockDetails(tView,tNode);switch(invokeAllTriggerCleanupFns(lDetails),tDetails.loadingState){case DeferDependenciesLoadingState.NOT_STARTED:renderDeferBlockState(DeferBlockState.Loading,tNode,lContainer),triggerResourceLoading(tDetails,lView,tNode),tDetails.loadingState===DeferDependenciesLoadingState.IN_PROGRESS&&renderDeferStateAfterResourceLoading(tDetails,tNode,lContainer);break;case DeferDependenciesLoadingState.IN_PROGRESS:renderDeferBlockState(DeferBlockState.Loading,tNode,lContainer),renderDeferStateAfterResourceLoading(tDetails,tNode,lContainer);break;case DeferDependenciesLoadingState.COMPLETE:renderDeferBlockState(DeferBlockState.Complete,tNode,lContainer);break;case DeferDependenciesLoadingState.FAILED:renderDeferBlockState(DeferBlockState.Error,tNode,lContainer)}}function \u0275\u0275attribute(name,value,sanitizer,namespace){const lView=getLView();return bindingUpdated(lView,nextBindingIndex(),value)&&(getTView(),elementAttributeInternal(getSelectedTNode(),lView,name,value,sanitizer,namespace)),\u0275\u0275attribute}function interpolationV(lView,values){let isBindingUpdated=!1,bindingIndex=getBindingIndex();for(let i=1;i>17&32767}function setTStylingRangePrevDuplicate(tStylingRange){return 2|tStylingRange}function getTStylingRangeNext(tStylingRange){return(131068&tStylingRange)>>2}function setTStylingRangeNext(tStylingRange,next){return-131069&tStylingRange|next<<2}function setTStylingRangeNextDuplicate(tStylingRange){return 1|tStylingRange}function markDuplicates(tData,tStylingKey,index,isPrevDir){const tStylingAtIndex=tData[index+1],isMap=null===tStylingKey;let cursor=isPrevDir?getTStylingRangePrev(tStylingAtIndex):getTStylingRangeNext(tStylingAtIndex),foundDuplicate=!1;for(;0!==cursor&&(!1===foundDuplicate||isMap);){const tStyleRangeAtCursor=tData[cursor+1];isStylingMatch(tData[cursor],tStylingKey)&&(foundDuplicate=!0,tData[cursor+1]=isPrevDir?setTStylingRangeNextDuplicate(tStyleRangeAtCursor):setTStylingRangePrevDuplicate(tStyleRangeAtCursor)),cursor=isPrevDir?getTStylingRangePrev(tStyleRangeAtCursor):getTStylingRangeNext(tStyleRangeAtCursor)}foundDuplicate&&(tData[index+1]=isPrevDir?setTStylingRangePrevDuplicate(tStylingAtIndex):setTStylingRangeNextDuplicate(tStylingAtIndex))}function isStylingMatch(tStylingKeyCursor,tStylingKey){return null===tStylingKeyCursor||null==tStylingKey||(Array.isArray(tStylingKeyCursor)?tStylingKeyCursor[1]:tStylingKeyCursor)===tStylingKey||!(!Array.isArray(tStylingKeyCursor)||"string"!=typeof tStylingKey)&&keyValueArrayIndexOf(tStylingKeyCursor,tStylingKey)>=0}const parserState={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function getLastParsedKey(text){return text.substring(parserState.key,parserState.keyEnd)}function getLastParsedValue(text){return text.substring(parserState.value,parserState.valueEnd)}function parseClassNameNext(text,index){const end=parserState.textEnd;return end===index?-1:(index=parserState.keyEnd=function consumeClassToken(text,startIndex,endIndex){for(;startIndex32;)startIndex++;return startIndex}(text,parserState.key=index,end),consumeWhitespace(text,index,end))}function parseStyleNext(text,startIndex){const end=parserState.textEnd;let index=parserState.key=consumeWhitespace(text,startIndex,end);return end===index?-1:(index=parserState.keyEnd=function consumeStyleKey(text,startIndex,endIndex){let ch;for(;startIndex=65&&(-33&ch)<=90||ch>=48&&ch<=57);)startIndex++;return startIndex}(text,index,end),index=consumeSeparator(text,index,end),index=parserState.value=consumeWhitespace(text,index,end),index=parserState.valueEnd=function consumeStyleValue(text,startIndex,endIndex){let ch1=-1,ch2=-1,ch3=-1,i=startIndex,lastChIndex=i;for(;i32&&(lastChIndex=i),ch3=ch2,ch2=ch1,ch1=-33&ch}return lastChIndex}(text,index,end),consumeSeparator(text,index,end))}function resetParserState(text){parserState.key=0,parserState.keyEnd=0,parserState.value=0,parserState.valueEnd=0,parserState.textEnd=text.length}function consumeWhitespace(text,startIndex,endIndex){for(;startIndex=0;i=parseStyleNext(text,i))styleKeyValueArraySet(keyValueArray,getLastParsedKey(text),getLastParsedValue(text))}function \u0275\u0275classMap(classes){checkStylingMap(classKeyValueArraySet,classStringParser,classes,!0)}function classStringParser(keyValueArray,text){for(let i=function parseClassName(text){return resetParserState(text),parseClassNameNext(text,consumeWhitespace(text,0,parserState.textEnd))}(text);i>=0;i=parseClassNameNext(text,i))keyValueArraySet(keyValueArray,getLastParsedKey(text),!0)}function checkStylingProperty(prop2,value,suffix,isClassBased){const lView=getLView(),tView=getTView(),bindingIndex=incrementBindingIndex(2);tView.firstUpdatePass&&stylingFirstUpdatePass(tView,prop2,bindingIndex,isClassBased),value!==NO_CHANGE&&bindingUpdated(lView,bindingIndex,value)&&updateStyling(tView,tView.data[getSelectedIndex()],lView,lView[RENDERER],prop2,lView[bindingIndex+1]=function normalizeSuffix(value,suffix){return null==value||""===value||("string"==typeof suffix?value+=suffix:"object"==typeof value&&(value=stringify(unwrapSafeValue(value)))),value}(value,suffix),isClassBased,bindingIndex)}function checkStylingMap(keyValueArraySet2,stringParser,value,isClassBased){const tView=getTView(),bindingIndex=incrementBindingIndex(2);tView.firstUpdatePass&&stylingFirstUpdatePass(tView,null,bindingIndex,isClassBased);const lView=getLView();if(value!==NO_CHANGE&&bindingUpdated(lView,bindingIndex,value)){const tNode=tView.data[getSelectedIndex()];if(hasStylingInputShadow(tNode,isClassBased)&&!isInHostBindings(tView,bindingIndex)){let staticPrefix=isClassBased?tNode.classesWithoutHost:tNode.stylesWithoutHost;null!==staticPrefix&&(value=concatStringsWithSpace(staticPrefix,value||"")),setDirectiveInputsWhichShadowsStyling(tView,tNode,lView,value,isClassBased)}else!function updateStylingMap(tView,tNode,lView,renderer,oldKeyValueArray,newKeyValueArray,isClassBased,bindingIndex){oldKeyValueArray===NO_CHANGE&&(oldKeyValueArray=EMPTY_ARRAY);let oldIndex=0,newIndex=0,oldKey=0=tView.expandoStartIndex}function stylingFirstUpdatePass(tView,tStylingKey,bindingIndex,isClassBased){const tData=tView.data;if(null===tData[bindingIndex+1]){const tNode=tData[getSelectedIndex()],isHostBindings=isInHostBindings(tView,bindingIndex);hasStylingInputShadow(tNode,isClassBased)&&null===tStylingKey&&!isHostBindings&&(tStylingKey=!1),tStylingKey=function wrapInStaticStylingKey(tData,tNode,stylingKey,isClassBased){const hostDirectiveDef=getCurrentDirectiveDef(tData);let residual=isClassBased?tNode.residualClasses:tNode.residualStyles;if(null===hostDirectiveDef)0===(isClassBased?tNode.classBindings:tNode.styleBindings)&&(stylingKey=collectStylingFromTAttrs(stylingKey=collectStylingFromDirectives(null,tData,tNode,stylingKey,isClassBased),tNode.attrs,isClassBased),residual=null);else{const directiveStylingLast=tNode.directiveStylingLast;if(-1===directiveStylingLast||tData[directiveStylingLast]!==hostDirectiveDef)if(stylingKey=collectStylingFromDirectives(hostDirectiveDef,tData,tNode,stylingKey,isClassBased),null===residual){let templateStylingKey=function getTemplateHeadTStylingKey(tData,tNode,isClassBased){const bindings=isClassBased?tNode.classBindings:tNode.styleBindings;if(0!==getTStylingRangeNext(bindings))return tData[getTStylingRangePrev(bindings)]}(tData,tNode,isClassBased);void 0!==templateStylingKey&&Array.isArray(templateStylingKey)&&(templateStylingKey=collectStylingFromDirectives(null,tData,tNode,templateStylingKey[1],isClassBased),templateStylingKey=collectStylingFromTAttrs(templateStylingKey,tNode.attrs,isClassBased),function setTemplateHeadTStylingKey(tData,tNode,isClassBased,tStylingKey){tData[getTStylingRangePrev(isClassBased?tNode.classBindings:tNode.styleBindings)]=tStylingKey}(tData,tNode,isClassBased,templateStylingKey))}else residual=function collectResidual(tData,tNode,isClassBased){let residual;const directiveEnd=tNode.directiveEnd;for(let i=1+tNode.directiveStylingLast;i0)&&(isKeyDuplicateOfStatic=!0)):tStylingKey=tStylingKeyWithStatic,isHostBinding)if(0!==tmplTail){const previousNode=getTStylingRangePrev(tData[tmplHead+1]);tData[index+1]=toTStylingRange(previousNode,tmplHead),0!==previousNode&&(tData[previousNode+1]=setTStylingRangeNext(tData[previousNode+1],index)),tData[tmplHead+1]=function setTStylingRangePrev(tStylingRange,previous){return 131071&tStylingRange|previous<<17}(tData[tmplHead+1],index)}else tData[index+1]=toTStylingRange(tmplHead,0),0!==tmplHead&&(tData[tmplHead+1]=setTStylingRangeNext(tData[tmplHead+1],index)),tmplHead=index;else tData[index+1]=toTStylingRange(tmplTail,0),0===tmplHead?tmplHead=index:tData[tmplTail+1]=setTStylingRangeNext(tData[tmplTail+1],index),tmplTail=index;isKeyDuplicateOfStatic&&(tData[index+1]=setTStylingRangePrevDuplicate(tData[index+1])),markDuplicates(tData,tStylingKey,index,!0),markDuplicates(tData,tStylingKey,index,!1),function markDuplicateOfResidualStyling(tNode,tStylingKey,tData,index,isClassBinding){const residual=isClassBinding?tNode.residualClasses:tNode.residualStyles;null!=residual&&"string"==typeof tStylingKey&&keyValueArrayIndexOf(residual,tStylingKey)>=0&&(tData[index+1]=setTStylingRangeNextDuplicate(tData[index+1]))}(tNode,tStylingKey,tData,index,isClassBinding),tBindings=toTStylingRange(tmplHead,tmplTail),isClassBinding?tNode.classBindings=tBindings:tNode.styleBindings=tBindings}(tData,tNode,tStylingKey,bindingIndex,isHostBindings,isClassBased)}}function collectStylingFromDirectives(hostDirectiveDef,tData,tNode,stylingKey,isClassBased){let currentDirective=null;const directiveEnd=tNode.directiveEnd;let directiveStylingLast=tNode.directiveStylingLast;for(-1===directiveStylingLast?directiveStylingLast=tNode.directiveStart:directiveStylingLast++;directiveStylingLast0;){const rawKey=tData[index],containsStatics=Array.isArray(rawKey),key=containsStatics?rawKey[1]:rawKey,isStylingMap=null===key;let valueAtLViewIndex=lView[index+1];valueAtLViewIndex===NO_CHANGE&&(valueAtLViewIndex=isStylingMap?EMPTY_ARRAY:void 0);let currentValue=isStylingMap?keyValueArrayGet(valueAtLViewIndex,prop2):key===prop2?valueAtLViewIndex:void 0;if(containsStatics&&!isStylingValuePresent(currentValue)&&(currentValue=keyValueArrayGet(rawKey,prop2)),isStylingValuePresent(currentValue)&&(value=currentValue,isPrevDirection))return value;const tRange=tData[index+1];index=isPrevDirection?getTStylingRangePrev(tRange):getTStylingRangeNext(tRange)}if(null!==tNode){let residual=isClassBased?tNode.residualClasses:tNode.residualStyles;null!=residual&&(value=keyValueArrayGet(residual,prop2))}return value}function isStylingValuePresent(value){return void 0!==value}function hasStylingInputShadow(tNode,isClassBased){return!!(tNode.flags&(isClassBased?8:16))}class LiveCollection{destroy(item){}updateValue(index,value){}swap(index1,index2){const startIdx=Math.min(index1,index2),endIdx=Math.max(index1,index2),endItem=this.detach(endIdx);if(endIdx-startIdx>1){const startItem=this.detach(startIdx);this.attach(startIdx,endItem),this.attach(endIdx,startItem)}else this.attach(startIdx,endItem)}move(prevIndex,newIdx){this.attach(newIdx,this.detach(prevIndex))}}function valuesMatching(liveIdx,liveValue,newIdx,newValue,trackBy){return liveIdx===newIdx&&Object.is(liveValue,newValue)?1:Object.is(trackBy(liveIdx,liveValue),trackBy(newIdx,newValue))?-1:0}function attachPreviouslyDetached(prevCollection,detachedItems,index,key){return!(void 0===detachedItems||!detachedItems.has(key)||(prevCollection.attach(index,detachedItems.get(key)),detachedItems.delete(key),0))}function createOrAttach(liveCollection,detachedItems,trackByFn,index,value){if(attachPreviouslyDetached(liveCollection,detachedItems,index,trackByFn(index,value)))liveCollection.updateValue(index,value);else{const newItem=liveCollection.create(index,value);liveCollection.attach(index,newItem)}}function initLiveItemsInTheFuture(liveCollection,start2,end,trackByFn){const keys=new Set;for(let i=start2;i<=end;i++)keys.add(trackByFn(i,liveCollection.at(i)));return keys}class UniqueValueMultiKeyMap{constructor(){this.kvMap=new Map,this._vMap=void 0}has(key){return this.kvMap.has(key)}delete(key){if(!this.has(key))return!1;const value=this.kvMap.get(key);return void 0!==this._vMap&&this._vMap.has(value)?(this.kvMap.set(key,this._vMap.get(value)),this._vMap.delete(value)):this.kvMap.delete(key),!0}get(key){return this.kvMap.get(key)}set(key,value){if(this.kvMap.has(key)){let prevValue=this.kvMap.get(key);void 0===this._vMap&&(this._vMap=new Map);const vMap=this._vMap;for(;vMap.has(prevValue);)prevValue=vMap.get(prevValue);vMap.set(prevValue,value)}else this.kvMap.set(key,value)}forEach(cb){for(let[key,value]of this.kvMap)if(cb(value,key),void 0!==this._vMap){const vMap=this._vMap;for(;vMap.has(value);)value=vMap.get(value),cb(value,key)}}}function \u0275\u0275conditional(containerIndex,matchingTemplateIndex,value){performanceMarkFeature("NgControlFlow");const hostLView=getLView(),bindingIndex=nextBindingIndex(),lContainer=getLContainer(hostLView,HEADER_OFFSET+containerIndex);if(bindingUpdated(hostLView,bindingIndex,matchingTemplateIndex)){const prevConsumer=setActiveConsumer(null);try{if(removeLViewFromLContainer(lContainer,0),-1!==matchingTemplateIndex){const templateTNode=getExistingTNode(hostLView[TVIEW],HEADER_OFFSET+matchingTemplateIndex),dehydratedView=findMatchingDehydratedView(lContainer,templateTNode.tView.ssrId);addLViewToLContainer(lContainer,createAndRenderEmbeddedLView(hostLView,templateTNode,value,{dehydratedView}),0,shouldAddViewToDom(templateTNode,dehydratedView))}}finally{setActiveConsumer(prevConsumer)}}else{const lView=getLViewFromLContainer(lContainer,0);void 0!==lView&&(lView[CONTEXT]=value)}}class RepeaterContext{constructor(lContainer,$implicit,$index){this.lContainer=lContainer,this.$implicit=$implicit,this.$index=$index}get $count(){return this.lContainer.length-CONTAINER_HEADER_OFFSET}}function \u0275\u0275repeaterTrackByIdentity(_,value){return value}class RepeaterMetadata{constructor(hasEmptyBlock,trackByFn,liveCollection){this.hasEmptyBlock=hasEmptyBlock,this.trackByFn=trackByFn,this.liveCollection=liveCollection}}function \u0275\u0275repeaterCreate(index,templateFn,decls,vars,tagName,attrsIndex,trackByFn,trackByUsesComponentInstance,emptyTemplateFn,emptyDecls,emptyVars,emptyTagName,emptyAttrsIndex){performanceMarkFeature("NgControlFlow");const hasEmptyBlock=void 0!==emptyTemplateFn,hostLView=getLView(),boundTrackBy=trackByUsesComponentInstance?trackByFn.bind(hostLView[DECLARATION_COMPONENT_VIEW][CONTEXT]):trackByFn,metadata=new RepeaterMetadata(hasEmptyBlock,boundTrackBy);hostLView[HEADER_OFFSET+index]=metadata,\u0275\u0275template(index+1,templateFn,decls,vars,tagName,attrsIndex),hasEmptyBlock&&\u0275\u0275template(index+2,emptyTemplateFn,emptyDecls,emptyVars,emptyTagName,emptyAttrsIndex)}class LiveCollectionLContainerImpl extends LiveCollection{constructor(lContainer,hostLView,templateTNode){super(),this.lContainer=lContainer,this.hostLView=hostLView,this.templateTNode=templateTNode,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-CONTAINER_HEADER_OFFSET}at(index){return this.getLView(index)[CONTEXT].$implicit}attach(index,lView){const dehydratedView=lView[HYDRATION];this.needsIndexUpdate||=index!==this.length,addLViewToLContainer(this.lContainer,lView,index,shouldAddViewToDom(this.templateTNode,dehydratedView))}detach(index){return this.needsIndexUpdate||=index!==this.length-1,function detachExistingView(lContainer,index){return detachView(lContainer,index)}(this.lContainer,index)}create(index,value){const dehydratedView=findMatchingDehydratedView(this.lContainer,this.templateTNode.tView.ssrId);return createAndRenderEmbeddedLView(this.hostLView,this.templateTNode,new RepeaterContext(this.lContainer,value,index),{dehydratedView})}destroy(lView){destroyLView(lView[TVIEW],lView)}updateValue(index,value){this.getLView(index)[CONTEXT].$implicit=value}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i{liveCollection.destroy(item)})}(liveCollection,collection,metadata.trackByFn),liveCollection.updateIndexes(),metadata.hasEmptyBlock){const bindingIndex=nextBindingIndex(),isCollectionEmpty=0===liveCollection.length;if(bindingUpdated(hostLView,bindingIndex,isCollectionEmpty)){const emptyTemplateIndex=metadataSlotIdx+2,lContainerForEmpty=getLContainer(hostLView,emptyTemplateIndex);if(isCollectionEmpty){const emptyTemplateTNode=getExistingTNode(hostTView,emptyTemplateIndex),dehydratedView=findMatchingDehydratedView(lContainerForEmpty,emptyTemplateTNode.tView.ssrId);addLViewToLContainer(lContainerForEmpty,createAndRenderEmbeddedLView(hostLView,emptyTemplateTNode,void 0,{dehydratedView}),0,shouldAddViewToDom(emptyTemplateTNode,dehydratedView))}else removeLViewFromLContainer(lContainerForEmpty,0)}}}finally{setActiveConsumer(prevConsumer)}}function getLContainer(lView,index){return lView[index]}function getExistingTNode(tView,index){return getTNode(tView,index)}function \u0275\u0275elementStart(index,name,attrsIndex,localRefsIndex){const lView=getLView(),tView=getTView(),adjustedIndex=HEADER_OFFSET+index,renderer=lView[RENDERER],tNode=tView.firstCreatePass?function elementStartFirstCreatePass(index,tView,lView,name,attrsIndex,localRefsIndex){const tViewConsts=tView.consts,tNode=getOrCreateTNode(tView,index,2,name,getConstant(tViewConsts,attrsIndex));return resolveDirectives(tView,lView,tNode,getConstant(tViewConsts,localRefsIndex)),null!==tNode.attrs&&computeStaticStyling(tNode,tNode.attrs,!1),null!==tNode.mergedAttrs&&computeStaticStyling(tNode,tNode.mergedAttrs,!0),null!==tView.queries&&tView.queries.elementStart(tView,tNode),tNode}(adjustedIndex,tView,lView,name,attrsIndex,localRefsIndex):tView.data[adjustedIndex],native=_locateOrCreateElementNode(tView,lView,tNode,renderer,name,index);lView[adjustedIndex]=native;const hasDirectives=isDirectiveHost(tNode);return setCurrentTNode(tNode,!0),setupStaticAttributes(renderer,native,tNode),!function isDetachedByI18n(tNode){return!(32&~tNode.flags)}(tNode)&&wasLastNodeCreated()&&appendChild(tView,lView,native,tNode),0===function getElementDepthCount(){return instructionState.lFrame.elementDepthCount}()&&attachPatchData(native,lView),function increaseElementDepthCount(){instructionState.lFrame.elementDepthCount++}(),hasDirectives&&(createDirectivesInstances(tView,lView,tNode),executeContentQueries(tView,tNode,lView)),null!==localRefsIndex&&saveResolvedLocalsInData(lView,tNode),\u0275\u0275elementStart}function \u0275\u0275elementEnd(){let currentTNode=getCurrentTNode();isCurrentTNodeParent()?setCurrentTNodeAsNotParent():(currentTNode=currentTNode.parent,setCurrentTNode(currentTNode,!1));const tNode=currentTNode;(function isSkipHydrationRootTNode(tNode){return instructionState.skipHydrationRootTNode===tNode})(tNode)&&function leaveSkipHydrationBlock(){instructionState.skipHydrationRootTNode=null}(),function decreaseElementDepthCount(){instructionState.lFrame.elementDepthCount--}();const tView=getTView();return tView.firstCreatePass&&(registerPostOrderHooks(tView,currentTNode),isContentQueryHost(currentTNode)&&tView.queries.elementEnd(currentTNode)),null!=tNode.classesWithoutHost&&function hasClassInput(tNode){return!!(8&tNode.flags)}(tNode)&&setDirectiveInputsWhichShadowsStyling(tView,tNode,getLView(),tNode.classesWithoutHost,!0),null!=tNode.stylesWithoutHost&&function hasStyleInput(tNode){return!!(16&tNode.flags)}(tNode)&&setDirectiveInputsWhichShadowsStyling(tView,tNode,getLView(),tNode.stylesWithoutHost,!1),\u0275\u0275elementEnd}function \u0275\u0275element(index,name,attrsIndex,localRefsIndex){return \u0275\u0275elementStart(index,name,attrsIndex,localRefsIndex),\u0275\u0275elementEnd(),\u0275\u0275element}let _locateOrCreateElementNode=(tView,lView,tNode,renderer,name,index)=>(lastNodeWasCreated(!0),createElementNode(renderer,name,function getNamespace$1(){return instructionState.lFrame.currentNamespace}()));function \u0275\u0275elementContainerStart(index,attrsIndex,localRefsIndex){const lView=getLView(),tView=getTView(),adjustedIndex=index+HEADER_OFFSET,tNode=tView.firstCreatePass?function elementContainerStartFirstCreatePass(index,tView,lView,attrsIndex,localRefsIndex){const tViewConsts=tView.consts,attrs=getConstant(tViewConsts,attrsIndex),tNode=getOrCreateTNode(tView,index,8,"ng-container",attrs);return null!==attrs&&computeStaticStyling(tNode,attrs,!0),resolveDirectives(tView,lView,tNode,getConstant(tViewConsts,localRefsIndex)),null!==tView.queries&&tView.queries.elementStart(tView,tNode),tNode}(adjustedIndex,tView,lView,attrsIndex,localRefsIndex):tView.data[adjustedIndex];setCurrentTNode(tNode,!0);const comment=_locateOrCreateElementContainerNode(tView,lView,tNode,index);return lView[adjustedIndex]=comment,wasLastNodeCreated()&&appendChild(tView,lView,comment,tNode),attachPatchData(comment,lView),isDirectiveHost(tNode)&&(createDirectivesInstances(tView,lView,tNode),executeContentQueries(tView,tNode,lView)),null!=localRefsIndex&&saveResolvedLocalsInData(lView,tNode),\u0275\u0275elementContainerStart}function \u0275\u0275elementContainerEnd(){let currentTNode=getCurrentTNode();const tView=getTView();return isCurrentTNodeParent()?setCurrentTNodeAsNotParent():(currentTNode=currentTNode.parent,setCurrentTNode(currentTNode,!1)),tView.firstCreatePass&&(registerPostOrderHooks(tView,currentTNode),isContentQueryHost(currentTNode)&&tView.queries.elementEnd(currentTNode)),\u0275\u0275elementContainerEnd}function \u0275\u0275elementContainer(index,attrsIndex,localRefsIndex){return \u0275\u0275elementContainerStart(index,attrsIndex,localRefsIndex),\u0275\u0275elementContainerEnd(),\u0275\u0275elementContainer}let _locateOrCreateElementContainerNode=(tView,lView,tNode,index)=>(lastNodeWasCreated(!0),createCommentNode(lView[RENDERER],""));function \u0275\u0275getCurrentView(){return getLView()}function \u0275\u0275hostProperty(propName,value,sanitizer){const lView=getLView();return bindingUpdated(lView,nextBindingIndex(),value)&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,value,lView[RENDERER],sanitizer,!0),\u0275\u0275hostProperty}function \u0275\u0275syntheticHostProperty(propName,value,sanitizer){const lView=getLView();if(bindingUpdated(lView,nextBindingIndex(),value)){const tView=getTView(),tNode=getSelectedTNode();elementPropertyInternal(tView,tNode,lView,propName,value,loadComponentRenderer(getCurrentDirectiveDef(tView.data),tNode,lView),sanitizer,!0)}return \u0275\u0275syntheticHostProperty}const u=void 0;var localeEn=["en",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function plural(val){const i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===v?1:5}];let LOCALE_DATA={};function getLocalePluralCase(locale){return function findLocaleData(locale){const normalizedLocale=function normalizeLocale(locale){return locale.toLowerCase().replace(/_/g,"-")}(locale);let match2=getLocaleData(normalizedLocale);if(match2)return match2;const parentLocale=normalizedLocale.split("-")[0];if(match2=getLocaleData(parentLocale),match2)return match2;if("en"===parentLocale)return localeEn;throw new RuntimeError(701,!1)}(locale)[LocaleDataIndex.PluralCase]}function getLocaleData(normalizedLocale){return normalizedLocale in LOCALE_DATA||(LOCALE_DATA[normalizedLocale]=_global.ng&&_global.ng.common&&_global.ng.common.locales&&_global.ng.common.locales[normalizedLocale]),LOCALE_DATA[normalizedLocale]}var LocaleDataIndex=function(LocaleDataIndex2){return LocaleDataIndex2[LocaleDataIndex2.LocaleId=0]="LocaleId",LocaleDataIndex2[LocaleDataIndex2.DayPeriodsFormat=1]="DayPeriodsFormat",LocaleDataIndex2[LocaleDataIndex2.DayPeriodsStandalone=2]="DayPeriodsStandalone",LocaleDataIndex2[LocaleDataIndex2.DaysFormat=3]="DaysFormat",LocaleDataIndex2[LocaleDataIndex2.DaysStandalone=4]="DaysStandalone",LocaleDataIndex2[LocaleDataIndex2.MonthsFormat=5]="MonthsFormat",LocaleDataIndex2[LocaleDataIndex2.MonthsStandalone=6]="MonthsStandalone",LocaleDataIndex2[LocaleDataIndex2.Eras=7]="Eras",LocaleDataIndex2[LocaleDataIndex2.FirstDayOfWeek=8]="FirstDayOfWeek",LocaleDataIndex2[LocaleDataIndex2.WeekendRange=9]="WeekendRange",LocaleDataIndex2[LocaleDataIndex2.DateFormat=10]="DateFormat",LocaleDataIndex2[LocaleDataIndex2.TimeFormat=11]="TimeFormat",LocaleDataIndex2[LocaleDataIndex2.DateTimeFormat=12]="DateTimeFormat",LocaleDataIndex2[LocaleDataIndex2.NumberSymbols=13]="NumberSymbols",LocaleDataIndex2[LocaleDataIndex2.NumberFormats=14]="NumberFormats",LocaleDataIndex2[LocaleDataIndex2.CurrencyCode=15]="CurrencyCode",LocaleDataIndex2[LocaleDataIndex2.CurrencySymbol=16]="CurrencySymbol",LocaleDataIndex2[LocaleDataIndex2.CurrencyName=17]="CurrencyName",LocaleDataIndex2[LocaleDataIndex2.Currencies=18]="Currencies",LocaleDataIndex2[LocaleDataIndex2.Directionality=19]="Directionality",LocaleDataIndex2[LocaleDataIndex2.PluralCase=20]="PluralCase",LocaleDataIndex2[LocaleDataIndex2.ExtraData=21]="ExtraData",LocaleDataIndex2}(LocaleDataIndex||{});const pluralMapping=["zero","one","two","few","many"],ELEMENT_MARKER={marker:"element"},ICU_MARKER={marker:"ICU"};var I18nCreateOpCode=function(I18nCreateOpCode2){return I18nCreateOpCode2[I18nCreateOpCode2.SHIFT=2]="SHIFT",I18nCreateOpCode2[I18nCreateOpCode2.APPEND_EAGERLY=1]="APPEND_EAGERLY",I18nCreateOpCode2[I18nCreateOpCode2.COMMENT=2]="COMMENT",I18nCreateOpCode2}(I18nCreateOpCode||{});let LOCALE_ID$1="en-US";function getInsertInFrontOfRNodeWithI18n(parentTNode,currentTNode,lView){const tNodeInsertBeforeIndex=currentTNode.insertBeforeIndex,insertBeforeIndex=Array.isArray(tNodeInsertBeforeIndex)?tNodeInsertBeforeIndex[0]:tNodeInsertBeforeIndex;return null===insertBeforeIndex?getInsertInFrontOfRNodeWithNoI18n(parentTNode,0,lView):unwrapRNode(lView[insertBeforeIndex])}function processI18nInsertBefore(renderer,childTNode,lView,childRNode,parentRElement){const tNodeInsertBeforeIndex=childTNode.insertBeforeIndex;if(Array.isArray(tNodeInsertBeforeIndex)){let i18nParent=childRNode,anchorRNode=null;if(3&childTNode.type||(anchorRNode=i18nParent,i18nParent=parentRElement),null!==i18nParent&&-1===childTNode.componentOffset)for(let i=1;i1)for(let i=previousTNodes.length-2;i>=0;i--){const existingTNode=previousTNodes[i];isI18nText(existingTNode)||isNewTNodeCreatedBefore(existingTNode,newTNode)&&null===getInsertBeforeIndex(existingTNode)&&setInsertBeforeIndex(existingTNode,newTNode.index)}}function isI18nText(tNode){return!(64&tNode.type)}function isNewTNodeCreatedBefore(existingTNode,newTNode){return isI18nText(newTNode)||existingTNode.index>newTNode.index}function getInsertBeforeIndex(tNode){const index=tNode.insertBeforeIndex;return Array.isArray(index)?index[0]:index}function setInsertBeforeIndex(tNode,value){const index=tNode.insertBeforeIndex;Array.isArray(index)?index[0]=value:(setI18nHandling(getInsertInFrontOfRNodeWithI18n,processI18nInsertBefore),tNode.insertBeforeIndex=value)}function getTIcu(tView,index){const value=tView.data[index];return null===value||"string"==typeof value?null:value.hasOwnProperty("currentCaseLViewIndex")?value:value.value}function createTNodePlaceholder(tView,previousTNodes,index){const tNode=createTNodeAtIndex(tView,index,64,null,null);return addTNodeAndUpdateInsertBeforeIndex(previousTNodes,tNode),tNode}function getCurrentICUCaseIndex(tIcu,lView){const currentCase=lView[tIcu.currentCaseLViewIndex];return null===currentCase?currentCase:currentCase<0?~currentCase:currentCase}function getRefFromIcuCreateOpCode(mergedCode){return(131070&mergedCode)>>>1}let changeMask=0,changeMaskCounter=0;let _locateOrCreateNode=(lView,index,textOrName,nodeType)=>(lastNodeWasCreated(!0),function createNodeWithoutHydration(lView,textOrName,nodeType){const renderer=lView[RENDERER];switch(nodeType){case Node.COMMENT_NODE:return createCommentNode(renderer,textOrName);case Node.TEXT_NODE:return createTextNode(renderer,textOrName);case Node.ELEMENT_NODE:return createElementNode(renderer,textOrName,null)}}(lView,textOrName,nodeType));function applyMutableOpCodes(tView,mutableOpCodes,lView,anchorRNode){const renderer=lView[RENDERER];let rootRNode,rootIdx=null;for(let i=0;i>>17;let insertInFrontOf,parentRNode;if(null===rootIdx&&(rootIdx=parentIdx,rootRNode=nativeParentNode(renderer,anchorRNode)),parentIdx===rootIdx?(insertInFrontOf=anchorRNode,parentRNode=rootRNode):(insertInFrontOf=null,parentRNode=unwrapRNode(lView[parentIdx])),null!==parentRNode){const refIdx=getRefFromIcuCreateOpCode(opCode);nativeInsertBefore(renderer,parentRNode,lView[refIdx],insertInFrontOf,!1);const tIcu=getTIcu(tView,refIdx);if(null!==tIcu&&"object"==typeof tIcu){const caseIndex=getCurrentICUCaseIndex(tIcu,lView);null!==caseIndex&&applyMutableOpCodes(tView,tIcu.create[caseIndex],lView,lView[tIcu.anchorIdx])}}break;case 1:const attrName=mutableOpCodes[++i],attrValue=mutableOpCodes[++i];setElementAttribute(renderer,getNativeByIndex(opCode>>>1,lView),null,null,attrName,attrValue,null)}else switch(opCode){case ICU_MARKER:const commentValue=mutableOpCodes[++i],commentNodeIndex=mutableOpCodes[++i];null===lView[commentNodeIndex]&&attachPatchData(lView[commentNodeIndex]=_locateOrCreateNode(lView,commentNodeIndex,commentValue,Node.COMMENT_NODE),lView);break;case ELEMENT_MARKER:const tagName=mutableOpCodes[++i],elementNodeIndex=mutableOpCodes[++i];null===lView[elementNodeIndex]&&attachPatchData(lView[elementNodeIndex]=_locateOrCreateNode(lView,elementNodeIndex,tagName,Node.ELEMENT_NODE),lView)}}}function applyUpdateOpCodes(tView,lView,updateOpCodes,bindingsStartIndex,changeMask2){for(let i=0;i>>2;switch(3&opCode){case 1:const propName=updateOpCodes[++j],sanitizeFn=updateOpCodes[++j],tNodeOrTagName=tView.data[nodeIndex];"string"==typeof tNodeOrTagName?setElementAttribute(lView[RENDERER],lView[nodeIndex],null,tNodeOrTagName,propName,value,sanitizeFn):elementPropertyInternal(tView,tNodeOrTagName,lView,propName,value,lView[RENDERER],sanitizeFn,!1);break;case 0:const rText=lView[nodeIndex];null!==rText&&updateTextNode(lView[RENDERER],rText,value);break;case 2:applyIcuSwitchCase(tView,getTIcu(tView,nodeIndex),lView,value);break;case 3:applyIcuUpdateCase(tView,getTIcu(tView,nodeIndex),bindingsStartIndex,lView)}}}}else{const opCode=updateOpCodes[i+1];if(opCode>0&&!(3&~opCode)){const tIcu=getTIcu(tView,opCode>>>2);lView[tIcu.currentCaseLViewIndex]<0&&applyIcuUpdateCase(tView,tIcu,bindingsStartIndex,lView)}}i+=skipCodes}}function applyIcuUpdateCase(tView,tIcu,bindingsStartIndex,lView){let activeCaseIndex=lView[tIcu.currentCaseLViewIndex];if(null!==activeCaseIndex){let mask=changeMask;activeCaseIndex<0&&(activeCaseIndex=lView[tIcu.currentCaseLViewIndex]=~activeCaseIndex,mask=-1),applyUpdateOpCodes(tView,lView,tIcu.update[activeCaseIndex],bindingsStartIndex,mask)}}function applyIcuSwitchCase(tView,tIcu,lView,value){const caseIndex=function getCaseIndex(icuExpression,bindingValue){let index=icuExpression.cases.indexOf(bindingValue);if(-1===index)switch(icuExpression.type){case 1:{const resolvedCase=function getPluralCase(value,locale){const plural2=getLocalePluralCase(locale)(parseInt(value,10)),result=pluralMapping[plural2];return void 0!==result?result:"other"}(bindingValue,function getLocaleId(){return LOCALE_ID$1}());index=icuExpression.cases.indexOf(resolvedCase),-1===index&&"other"!==resolvedCase&&(index=icuExpression.cases.indexOf("other"));break}case 0:index=icuExpression.cases.indexOf("other")}return-1===index?null:index}(tIcu,value);if(getCurrentICUCaseIndex(tIcu,lView)!==caseIndex&&(applyIcuSwitchCaseRemove(tView,tIcu,lView),lView[tIcu.currentCaseLViewIndex]=null===caseIndex?null:~caseIndex,null!==caseIndex)){const anchorRNode=lView[tIcu.anchorIdx];anchorRNode&&applyMutableOpCodes(tView,tIcu.create[caseIndex],lView,anchorRNode)}}function applyIcuSwitchCaseRemove(tView,tIcu,lView){let activeCaseIndex=getCurrentICUCaseIndex(tIcu,lView);if(null!==activeCaseIndex){const removeCodes=tIcu.remove[activeCaseIndex];for(let i=0;i0){const rNode=getNativeByIndex(nodeOrIcuIndex,lView);null!==rNode&&nativeRemoveNode(lView[RENDERER],rNode)}else applyIcuSwitchCaseRemove(tView,getTIcu(tView,~nodeOrIcuIndex),lView)}}}function loadIcuContainerVisitor(){const _stack=[];let _lView,_removes,_index=-1;function enterIcu(tIcu,lView){_index=0;const currentCase=getCurrentICUCaseIndex(tIcu,lView);_removes=null!==currentCase?tIcu.remove[currentCase]:EMPTY_ARRAY}function icuContainerIteratorNext(){if(_index<_removes.length){const removeOpCode=_removes[_index++];return removeOpCode>0?_lView[removeOpCode]:(_stack.push(_index,_removes),enterIcu(_lView[TVIEW].data[~removeOpCode],_lView),icuContainerIteratorNext())}return 0===_stack.length?null:(_removes=_stack.pop(),_index=_stack.pop(),icuContainerIteratorNext())}return function icuContainerIteratorStart(tIcuContainerNode,lView){for(_lView=lView;_stack.length;)_stack.pop();return enterIcu(tIcuContainerNode.value,lView),icuContainerIteratorNext}}const BINDING_REGEXP=/\ufffd(\d+):?\d*\ufffd/gi,ICU_REGEXP=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,NESTED_ICU=/\ufffd(\d+)\ufffd/,ICU_BLOCK_REGEXP=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,MARKER="\ufffd",SUBTEMPLATE_REGEXP=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,PH_REGEXP=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,NGSP_UNICODE_REGEXP=/\uE500/g;function createTNodeAndAddOpCode(tView,rootTNode,existingTNodes,lView,createOpCodes,text,isICU){const i18nNodeIdx=allocExpando(tView,lView,1,null);let opCode=i18nNodeIdx<values.length&&values.push(blocks)}return{type:icuType,mainBinding,cases,values}}function i18nParseTextIntoPartsAndICU(pattern){if(!pattern)return[];let prevPos=0;const braceStack=[],results=[],braces=/[{}]/g;let match2;for(braces.lastIndex=0;match2=braces.exec(pattern);){const pos=match2.index;if("}"==match2[0]){if(braceStack.pop(),0==braceStack.length){const block=pattern.substring(prevPos,pos);ICU_BLOCK_REGEXP.test(block)?results.push(parseICUBlock(block)):results.push(block),prevPos=pos+1}}else{if(0==braceStack.length){const substring2=pattern.substring(prevPos,pos);results.push(substring2),prevPos=pos+1}braceStack.push("{")}}const substring=pattern.substring(prevPos);return results.push(substring),results}function parseIcuCase(ast,tView,tIcu,lView,updateOpCodes,parentIdx,caseName,unsafeCaseHtml,nestedIcus){const create=[],remove2=[],update=[];tIcu.cases.push(caseName),tIcu.create.push(create),tIcu.remove.push(remove2),tIcu.update.push(update);const inertBodyElement=getInertBodyHelper(getDocument()).getInertBodyElement(unsafeCaseHtml),inertRootNode=getTemplateContent(inertBodyElement)||inertBodyElement;return inertRootNode?walkIcuTree(ast,tView,tIcu,lView,updateOpCodes,create,remove2,update,inertRootNode,parentIdx,nestedIcus,0):0}function walkIcuTree(ast,tView,tIcu,lView,sharedUpdateOpCodes,create,remove2,update,parentNode,parentIdx,nestedIcus,depth){let bindingMask=0,currentNode=parentNode.firstChild;for(;currentNode;){const newIndex=allocExpando(tView,lView,1,null);switch(currentNode.nodeType){case Node.ELEMENT_NODE:const element=currentNode,tagName=element.tagName.toLowerCase();if(VALID_ELEMENTS.hasOwnProperty(tagName)){addCreateNodeAndAppend(create,ELEMENT_MARKER,tagName,parentIdx,newIndex),tView.data[newIndex]=tagName;const elAttrs=element.attributes;for(let i=0;i>>I18nCreateOpCode.SHIFT;let rNode=lView[index],lastNodeWasCreated2=!1;null===rNode&&(rNode=lView[index]=_locateOrCreateNode(lView,index,createOpCodes[i],(opCode&I18nCreateOpCode.COMMENT)===I18nCreateOpCode.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),lastNodeWasCreated2=wasLastNodeCreated()),appendNow&&null!==parentRNode&&lastNodeWasCreated2&&nativeInsertBefore(renderer,parentRNode,rNode,insertInFrontOf,!1)}})(lView,tI18n.create,parentRNode,parentTNode&&8&parentTNode.type?lView[parentTNode.index]:null),setInI18nBlock(!0)}function \u0275\u0275i18nEnd(){setInI18nBlock(!1)}function \u0275\u0275listener(eventName,listenerFn,useCapture,eventTargetResolver){const lView=getLView(),tView=getTView(),tNode=getCurrentTNode();return listenerInternal(tView,lView,lView[RENDERER],tNode,eventName,listenerFn,eventTargetResolver),\u0275\u0275listener}function \u0275\u0275syntheticHostListener(eventName,listenerFn){const tNode=getCurrentTNode(),lView=getLView(),tView=getTView();return listenerInternal(tView,lView,loadComponentRenderer(getCurrentDirectiveDef(tView.data),tNode,lView),tNode,eventName,listenerFn),\u0275\u0275syntheticHostListener}function listenerInternal(tView,lView,renderer,tNode,eventName,listenerFn,eventTargetResolver){const isTNodeDirectiveHost=isDirectiveHost(tNode),tCleanup=tView.firstCreatePass&&getOrCreateTViewCleanup(tView),context2=lView[CONTEXT],lCleanup=getOrCreateLViewCleanup(lView);let processOutputs=!0;if(3&tNode.type||eventTargetResolver){const native=getNativeByTNode(tNode,lView),target=eventTargetResolver?eventTargetResolver(native):native,lCleanupIndex=lCleanup.length,idxOrTargetGetter=eventTargetResolver?_lView=>eventTargetResolver(unwrapRNode(_lView[tNode.index])):tNode.index;let existingListener=null;if(!eventTargetResolver&&isTNodeDirectiveHost&&(existingListener=function findExistingListener(tView,lView,eventName,tNodeIdx){const tCleanup=tView.cleanup;if(null!=tCleanup)for(let i=0;ilistenerIdxInLCleanup?lCleanup[listenerIdxInLCleanup]:null}"string"==typeof cleanupEventName&&(i+=2)}return null}(tView,lView,eventName,tNode.index)),null!==existingListener)(existingListener.__ngLastListenerFn__||existingListener).__ngNextListenerFn__=listenerFn,existingListener.__ngLastListenerFn__=listenerFn,processOutputs=!1;else{listenerFn=wrapListener(tNode,lView,context2,listenerFn,!1);const cleanupFn=renderer.listen(target,eventName,listenerFn);lCleanup.push(listenerFn,cleanupFn),tCleanup&&tCleanup.push(eventName,idxOrTargetGetter,lCleanupIndex,lCleanupIndex+1)}}else listenerFn=wrapListener(tNode,lView,context2,listenerFn,!1);const outputs=tNode.outputs;let props;if(processOutputs&&null!==outputs&&(props=outputs[eventName])){const propsLength=props.length;if(propsLength)for(let i=0;i-1?getComponentLViewByIndex(tNode.index,lView):lView);let result=executeListenerWithErrorHandling(lView,context2,listenerFn,e2),nextListenerFn=wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;for(;nextListenerFn;)result=executeListenerWithErrorHandling(lView,context2,nextListenerFn,e2)&&result,nextListenerFn=nextListenerFn.__ngNextListenerFn__;return wrapWithPreventDefault&&!1===result&&e2.preventDefault(),result}}function \u0275\u0275nextContext(level=1){return function nextContextImpl(level){return(instructionState.lFrame.contextLView=walkUpViews(level,instructionState.lFrame.contextLView))[CONTEXT]}(level)}function matchingProjectionSlotIndex(tNode,projectionSlots){let wildcardNgContentIndex=null;const ngProjectAsAttrVal=function getProjectAsAttrValue(tNode){const nodeAttrs=tNode.attrs;if(null!=nodeAttrs){const ngProjectAsAttrIdx=nodeAttrs.indexOf(5);if(!(1&ngProjectAsAttrIdx))return nodeAttrs[ngProjectAsAttrIdx+1]}return null}(tNode);for(let i=0;i(lastNodeWasCreated(!0),createTextNode(lView[RENDERER],value));function \u0275\u0275textInterpolate(v0){return \u0275\u0275textInterpolate1("",v0,""),\u0275\u0275textInterpolate}function \u0275\u0275textInterpolate1(prefix,v0,suffix){const lView=getLView(),interpolated=interpolation1(lView,prefix,v0,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate1}function \u0275\u0275textInterpolate2(prefix,v0,i02,v1,suffix){const lView=getLView(),interpolated=interpolation2(lView,prefix,v0,i02,v1,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate2}function \u0275\u0275twoWayProperty(propName,value,sanitizer){isWritableSignal(value)&&(value=value());const lView=getLView();return bindingUpdated(lView,nextBindingIndex(),value)&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,value,lView[RENDERER],sanitizer,!1),\u0275\u0275twoWayProperty}function \u0275\u0275twoWayBindingSet(target,value){const canWrite=isWritableSignal(target);return canWrite&&target.set(value),canWrite}function \u0275\u0275twoWayListener(eventName,listenerFn){const lView=getLView(),tView=getTView(),tNode=getCurrentTNode();return listenerInternal(tView,lView,lView[RENDERER],tNode,eventName,listenerFn),\u0275\u0275twoWayListener}function resolveProvider(provider,tInjectables,lInjectablesBlueprint,isComponent2,isViewProvider){if(provider=resolveForwardRef(provider),Array.isArray(provider))for(let i=0;i>20;if(isTypeProvider(provider)||!provider.multi){const factory2=new NodeInjectorFactory(providerFactory,isViewProvider,\u0275\u0275directiveInject),existingFactoryIndex=indexOf(token,tInjectables,isViewProvider?beginIndex:beginIndex+cptViewProvidersCount,endIndex);-1===existingFactoryIndex?(diPublicInInjector(getOrCreateNodeInjectorForNode(tNode,lView),tView,token),registerDestroyHooksIfSupported(tView,provider,tInjectables.length),tInjectables.push(token),tNode.directiveStart++,tNode.directiveEnd++,isViewProvider&&(tNode.providerIndexes+=1048576),lInjectablesBlueprint.push(factory2),lView.push(factory2)):(lInjectablesBlueprint[existingFactoryIndex]=factory2,lView[existingFactoryIndex]=factory2)}else{const existingProvidersFactoryIndex=indexOf(token,tInjectables,beginIndex+cptViewProvidersCount,endIndex),existingViewProvidersFactoryIndex=indexOf(token,tInjectables,beginIndex,beginIndex+cptViewProvidersCount),doesViewProvidersFactoryExist=existingViewProvidersFactoryIndex>=0&&lInjectablesBlueprint[existingViewProvidersFactoryIndex];if(isViewProvider&&!doesViewProvidersFactoryExist||!isViewProvider&&!(existingProvidersFactoryIndex>=0&&lInjectablesBlueprint[existingProvidersFactoryIndex])){diPublicInInjector(getOrCreateNodeInjectorForNode(tNode,lView),tView,token);const factory2=function multiFactory(factoryFn,index,isViewProvider,isComponent2,f){const factory2=new NodeInjectorFactory(factoryFn,isViewProvider,\u0275\u0275directiveInject);return factory2.multi=[],factory2.index=index,factory2.componentProviders=0,multiFactoryAdd(factory2,f,isComponent2&&!isViewProvider),factory2}(isViewProvider?multiViewProvidersFactoryResolver:multiProvidersFactoryResolver,lInjectablesBlueprint.length,isViewProvider,isComponent2,providerFactory);!isViewProvider&&doesViewProvidersFactoryExist&&(lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory=factory2),registerDestroyHooksIfSupported(tView,provider,tInjectables.length,0),tInjectables.push(token),tNode.directiveStart++,tNode.directiveEnd++,isViewProvider&&(tNode.providerIndexes+=1048576),lInjectablesBlueprint.push(factory2),lView.push(factory2)}else registerDestroyHooksIfSupported(tView,provider,existingProvidersFactoryIndex>-1?existingProvidersFactoryIndex:existingViewProvidersFactoryIndex,multiFactoryAdd(lInjectablesBlueprint[isViewProvider?existingViewProvidersFactoryIndex:existingProvidersFactoryIndex],providerFactory,!isViewProvider&&isComponent2));!isViewProvider&&isComponent2&&doesViewProvidersFactoryExist&&lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++}}}function registerDestroyHooksIfSupported(tView,provider,contextIndex,indexInFactory){const providerIsTypeProvider=isTypeProvider(provider),providerIsClassProvider=function isClassProvider(value){return!!value.useClass}(provider);if(providerIsTypeProvider||providerIsClassProvider){const ngOnDestroy=(providerIsClassProvider?resolveForwardRef(provider.useClass):provider).prototype.ngOnDestroy;if(ngOnDestroy){const hooks=tView.destroyHooks||(tView.destroyHooks=[]);if(!providerIsTypeProvider&&provider.multi){const existingCallbacksIndex=hooks.indexOf(contextIndex);-1===existingCallbacksIndex?hooks.push(contextIndex,[indexInFactory,ngOnDestroy]):hooks[existingCallbacksIndex+1].push(indexInFactory,ngOnDestroy)}else hooks.push(contextIndex,ngOnDestroy)}}}function multiFactoryAdd(multiFactory2,factory2,isComponentProvider){return isComponentProvider&&multiFactory2.componentProviders++,multiFactory2.multi.push(factory2)-1}function indexOf(item,arr,begin,end){for(let i=begin;i{definition.providersResolver=(def,processProvidersFn)=>function providersResolver(def,providers,viewProviders){const tView=getTView();if(tView.firstCreatePass){const isComponent2=isComponentDef(def);resolveProvider(viewProviders,tView.data,tView.blueprint,isComponent2,!0),resolveProvider(providers,tView.data,tView.blueprint,isComponent2,!1)}}(def,processProvidersFn?processProvidersFn(providers):providers,viewProviders)}}let StandaloneService=(()=>{class StandaloneService2{constructor(_injector){this._injector=_injector,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(componentDef){if(!componentDef.standalone)return null;if(!this.cachedInjectors.has(componentDef)){const providers=internalImportProvidersFrom(0,componentDef.type),standaloneInjector=providers.length>0?core_createEnvironmentInjector([providers],this._injector,`Standalone[${componentDef.type.name}]`):null;this.cachedInjectors.set(componentDef,standaloneInjector)}return this.cachedInjectors.get(componentDef)}ngOnDestroy(){try{for(const injector of this.cachedInjectors.values())null!==injector&&injector.destroy()}finally{this.cachedInjectors.clear()}}static#_=this.\u0275prov=core_defineInjectable({token:StandaloneService2,providedIn:"environment",factory:()=>new StandaloneService2(\u0275\u0275inject(core_EnvironmentInjector))})}return StandaloneService2})();function \u0275\u0275StandaloneFeature(definition){performanceMarkFeature("NgStandalone"),definition.getStandaloneInjector=parentInjector=>parentInjector.get(StandaloneService).getOrCreateStandaloneInjector(definition)}function convertToTypeArray(values){if("function"==typeof values)return values;const flattenValues=flatten(values);return flattenValues.some(isForwardRef)?()=>flattenValues.map(resolveForwardRef).map(maybeUnwrapModuleWithProviders):flattenValues.map(maybeUnwrapModuleWithProviders)}function maybeUnwrapModuleWithProviders(value){return isModuleWithProviders(value)?value.ngModule:value}function \u0275\u0275pureFunction0(slotOffset,pureFn,thisArg){const bindingIndex=getBindingRoot()+slotOffset,lView=getLView();return lView[bindingIndex]===NO_CHANGE?updateBinding(lView,bindingIndex,thisArg?pureFn.call(thisArg):pureFn()):getBinding(lView,bindingIndex)}function \u0275\u0275pureFunction1(slotOffset,pureFn,exp,thisArg){return pureFunction1Internal(getLView(),getBindingRoot(),slotOffset,pureFn,exp,thisArg)}function \u0275\u0275pureFunction2(slotOffset,pureFn,exp1,exp2,thisArg){return pureFunction2Internal(getLView(),getBindingRoot(),slotOffset,pureFn,exp1,exp2,thisArg)}function \u0275\u0275pureFunction6(slotOffset,pureFn,exp1,exp2,exp3,exp4,exp5,exp6,thisArg){const bindingIndex=getBindingRoot()+slotOffset,lView=getLView(),different=bindingUpdated4(lView,bindingIndex,exp1,exp2,exp3,exp4);return bindingUpdated2(lView,bindingIndex+4,exp5,exp6)||different?updateBinding(lView,bindingIndex+6,thisArg?pureFn.call(thisArg,exp1,exp2,exp3,exp4,exp5,exp6):pureFn(exp1,exp2,exp3,exp4,exp5,exp6)):getBinding(lView,bindingIndex+6)}function getPureFunctionReturnValue(lView,returnValueIndex){const lastReturnValue=lView[returnValueIndex];return lastReturnValue===NO_CHANGE?void 0:lastReturnValue}function pureFunction1Internal(lView,bindingRoot,slotOffset,pureFn,exp,thisArg){const bindingIndex=bindingRoot+slotOffset;return bindingUpdated(lView,bindingIndex,exp)?updateBinding(lView,bindingIndex+1,thisArg?pureFn.call(thisArg,exp):pureFn(exp)):getPureFunctionReturnValue(lView,bindingIndex+1)}function pureFunction2Internal(lView,bindingRoot,slotOffset,pureFn,exp1,exp2,thisArg){const bindingIndex=bindingRoot+slotOffset;return bindingUpdated2(lView,bindingIndex,exp1,exp2)?updateBinding(lView,bindingIndex+2,thisArg?pureFn.call(thisArg,exp1,exp2):pureFn(exp1,exp2)):getPureFunctionReturnValue(lView,bindingIndex+2)}function pureFunction3Internal(lView,bindingRoot,slotOffset,pureFn,exp1,exp2,exp3,thisArg){const bindingIndex=bindingRoot+slotOffset;return bindingUpdated3(lView,bindingIndex,exp1,exp2,exp3)?updateBinding(lView,bindingIndex+3,thisArg?pureFn.call(thisArg,exp1,exp2,exp3):pureFn(exp1,exp2,exp3)):getPureFunctionReturnValue(lView,bindingIndex+3)}function pureFunction4Internal(lView,bindingRoot,slotOffset,pureFn,exp1,exp2,exp3,exp4,thisArg){const bindingIndex=bindingRoot+slotOffset;return bindingUpdated4(lView,bindingIndex,exp1,exp2,exp3,exp4)?updateBinding(lView,bindingIndex+4,thisArg?pureFn.call(thisArg,exp1,exp2,exp3,exp4):pureFn(exp1,exp2,exp3,exp4)):getPureFunctionReturnValue(lView,bindingIndex+4)}function pureFunctionVInternal(lView,bindingRoot,slotOffset,pureFn,exps,thisArg){let bindingIndex=bindingRoot+slotOffset,different=!1;for(let i=0;i=0;i--){const pipeDef=registry[i];if(name===pipeDef.name)return pipeDef}}(pipeName,tView.pipeRegistry),tView.data[adjustedIndex]=pipeDef,pipeDef.onDestroy&&(tView.destroyHooks??=[]).push(adjustedIndex,pipeDef.onDestroy)):pipeDef=tView.data[adjustedIndex];const pipeFactory=pipeDef.factory||(pipeDef.factory=getFactoryDef(pipeDef.type)),previousInjectImplementation=setInjectImplementation(\u0275\u0275directiveInject);try{const previousIncludeViewProviders=setIncludeViewProviders(!1),pipeInstance=pipeFactory();return setIncludeViewProviders(previousIncludeViewProviders),function store(tView,lView,index,value){index>=tView.data.length&&(tView.data[index]=null,tView.blueprint[index]=null),lView[index]=value}(tView,getLView(),adjustedIndex,pipeInstance),pipeInstance}finally{setInjectImplementation(previousInjectImplementation)}}function \u0275\u0275pipeBind2(index,slotOffset,v1,v2){const adjustedIndex=index+HEADER_OFFSET,lView=getLView(),pipeInstance=load(lView,adjustedIndex);return isPure(lView,adjustedIndex)?pureFunction2Internal(lView,getBindingRoot(),slotOffset,pipeInstance.transform,v1,v2,pipeInstance):pipeInstance.transform(v1,v2)}function \u0275\u0275pipeBind3(index,slotOffset,v1,v2,v3){const adjustedIndex=index+HEADER_OFFSET,lView=getLView(),pipeInstance=load(lView,adjustedIndex);return isPure(lView,adjustedIndex)?pureFunction3Internal(lView,getBindingRoot(),slotOffset,pipeInstance.transform,v1,v2,v3,pipeInstance):pipeInstance.transform(v1,v2,v3)}function isPure(lView,index){return lView[TVIEW].data[index].pure}function \u0275\u0275templateRefExtractor(tNode,lView){return createTemplateRef(tNode,lView)}const angularCoreEnv={\u0275\u0275attribute,\u0275\u0275attributeInterpolate1:function \u0275\u0275attributeInterpolate1(attrName,prefix,v0,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation1(lView,prefix,v0,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate1},\u0275\u0275attributeInterpolate2:function \u0275\u0275attributeInterpolate2(attrName,prefix,v0,i02,v1,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation2(lView,prefix,v0,i02,v1,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate2},\u0275\u0275attributeInterpolate3:function \u0275\u0275attributeInterpolate3(attrName,prefix,v0,i02,v1,i12,v2,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation3(lView,prefix,v0,i02,v1,i12,v2,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate3},\u0275\u0275attributeInterpolate4:function \u0275\u0275attributeInterpolate4(attrName,prefix,v0,i02,v1,i12,v2,i22,v3,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation4(lView,prefix,v0,i02,v1,i12,v2,i22,v3,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate4},\u0275\u0275attributeInterpolate5:function \u0275\u0275attributeInterpolate5(attrName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation5(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate5},\u0275\u0275attributeInterpolate6:function \u0275\u0275attributeInterpolate6(attrName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation6(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate6},\u0275\u0275attributeInterpolate7:function \u0275\u0275attributeInterpolate7(attrName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation7(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate7},\u0275\u0275attributeInterpolate8:function \u0275\u0275attributeInterpolate8(attrName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix,sanitizer,namespace){const lView=getLView(),interpolatedValue=interpolation8(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix);return interpolatedValue!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolatedValue,sanitizer,namespace),\u0275\u0275attributeInterpolate8},\u0275\u0275attributeInterpolateV:function \u0275\u0275attributeInterpolateV(attrName,values,sanitizer,namespace){const lView=getLView(),interpolated=interpolationV(lView,values);return interpolated!==NO_CHANGE&&elementAttributeInternal(getSelectedTNode(),lView,attrName,interpolated,sanitizer,namespace),\u0275\u0275attributeInterpolateV},\u0275\u0275defineComponent,\u0275\u0275defineDirective,\u0275\u0275defineInjectable:core_defineInjectable,\u0275\u0275defineInjector,\u0275\u0275defineNgModule,\u0275\u0275definePipe,\u0275\u0275directiveInject,\u0275\u0275getInheritedFactory,\u0275\u0275inject,\u0275\u0275injectAttribute,\u0275\u0275invalidFactory,\u0275\u0275invalidFactoryDep:function \u0275\u0275invalidFactoryDep(index){throw new RuntimeError(202,!1)},\u0275\u0275templateRefExtractor,\u0275\u0275resetView,\u0275\u0275HostDirectivesFeature:function \u0275\u0275HostDirectivesFeature(rawHostDirectives){const feature=definition=>{const resolved2=(Array.isArray(rawHostDirectives)?rawHostDirectives:rawHostDirectives()).map(dir=>"function"==typeof dir?{directive:resolveForwardRef(dir),inputs:EMPTY_OBJ,outputs:EMPTY_OBJ}:{directive:resolveForwardRef(dir.directive),inputs:bindingArrayToMap(dir.inputs),outputs:bindingArrayToMap(dir.outputs)});null===definition.hostDirectives?(definition.findHostDirectiveDefs=findHostDirectiveDefs,definition.hostDirectives=resolved2):definition.hostDirectives.unshift(...resolved2)};return feature.ngInherit=!0,feature},\u0275\u0275NgOnChangesFeature,\u0275\u0275ProvidersFeature,\u0275\u0275CopyDefinitionFeature:function \u0275\u0275CopyDefinitionFeature(definition){let superDef,superType=getSuperType(definition.type);superDef=isComponentDef(definition)?superType.\u0275cmp:superType.\u0275dir;const defAny=definition;for(const field of COPY_DIRECTIVE_FIELDS)defAny[field]=superDef[field];if(isComponentDef(superDef))for(const field of COPY_COMPONENT_FIELDS)defAny[field]=superDef[field]},\u0275\u0275InheritDefinitionFeature,\u0275\u0275InputTransformsFeature,\u0275\u0275StandaloneFeature,\u0275\u0275nextContext,\u0275\u0275namespaceHTML,\u0275\u0275namespaceMathML:function \u0275\u0275namespaceMathML(){instructionState.lFrame.currentNamespace="math"},\u0275\u0275namespaceSVG,\u0275\u0275enableBindings:function \u0275\u0275enableBindings(){instructionState.bindingsEnabled=!0},\u0275\u0275disableBindings:function \u0275\u0275disableBindings(){instructionState.bindingsEnabled=!1},\u0275\u0275elementStart,\u0275\u0275elementEnd,\u0275\u0275element,\u0275\u0275elementContainerStart,\u0275\u0275elementContainerEnd,\u0275\u0275elementContainer,\u0275\u0275pureFunction0,\u0275\u0275pureFunction1,\u0275\u0275pureFunction2,\u0275\u0275pureFunction3:function \u0275\u0275pureFunction3(slotOffset,pureFn,exp1,exp2,exp3,thisArg){return pureFunction3Internal(getLView(),getBindingRoot(),slotOffset,pureFn,exp1,exp2,exp3,thisArg)},\u0275\u0275pureFunction4:function \u0275\u0275pureFunction4(slotOffset,pureFn,exp1,exp2,exp3,exp4,thisArg){return pureFunction4Internal(getLView(),getBindingRoot(),slotOffset,pureFn,exp1,exp2,exp3,exp4,thisArg)},\u0275\u0275pureFunction5:function \u0275\u0275pureFunction5(slotOffset,pureFn,exp1,exp2,exp3,exp4,exp5,thisArg){const bindingIndex=getBindingRoot()+slotOffset,lView=getLView(),different=bindingUpdated4(lView,bindingIndex,exp1,exp2,exp3,exp4);return bindingUpdated(lView,bindingIndex+4,exp5)||different?updateBinding(lView,bindingIndex+5,thisArg?pureFn.call(thisArg,exp1,exp2,exp3,exp4,exp5):pureFn(exp1,exp2,exp3,exp4,exp5)):getBinding(lView,bindingIndex+5)},\u0275\u0275pureFunction6,\u0275\u0275pureFunction7:function \u0275\u0275pureFunction7(slotOffset,pureFn,exp1,exp2,exp3,exp4,exp5,exp6,exp7,thisArg){const bindingIndex=getBindingRoot()+slotOffset,lView=getLView();let different=bindingUpdated4(lView,bindingIndex,exp1,exp2,exp3,exp4);return bindingUpdated3(lView,bindingIndex+4,exp5,exp6,exp7)||different?updateBinding(lView,bindingIndex+7,thisArg?pureFn.call(thisArg,exp1,exp2,exp3,exp4,exp5,exp6,exp7):pureFn(exp1,exp2,exp3,exp4,exp5,exp6,exp7)):getBinding(lView,bindingIndex+7)},\u0275\u0275pureFunction8:function \u0275\u0275pureFunction8(slotOffset,pureFn,exp1,exp2,exp3,exp4,exp5,exp6,exp7,exp8,thisArg){const bindingIndex=getBindingRoot()+slotOffset,lView=getLView(),different=bindingUpdated4(lView,bindingIndex,exp1,exp2,exp3,exp4);return bindingUpdated4(lView,bindingIndex+4,exp5,exp6,exp7,exp8)||different?updateBinding(lView,bindingIndex+8,thisArg?pureFn.call(thisArg,exp1,exp2,exp3,exp4,exp5,exp6,exp7,exp8):pureFn(exp1,exp2,exp3,exp4,exp5,exp6,exp7,exp8)):getBinding(lView,bindingIndex+8)},\u0275\u0275pureFunctionV:function \u0275\u0275pureFunctionV(slotOffset,pureFn,exps,thisArg){return pureFunctionVInternal(getLView(),getBindingRoot(),slotOffset,pureFn,exps,thisArg)},\u0275\u0275getCurrentView,\u0275\u0275restoreView,\u0275\u0275listener,\u0275\u0275projection,\u0275\u0275syntheticHostProperty,\u0275\u0275syntheticHostListener,\u0275\u0275pipeBind1:function \u0275\u0275pipeBind1(index,offset,v1){const adjustedIndex=index+HEADER_OFFSET,lView=getLView(),pipeInstance=load(lView,adjustedIndex);return isPure(lView,adjustedIndex)?pureFunction1Internal(lView,getBindingRoot(),offset,pipeInstance.transform,v1,pipeInstance):pipeInstance.transform(v1)},\u0275\u0275pipeBind2,\u0275\u0275pipeBind3,\u0275\u0275pipeBind4:function \u0275\u0275pipeBind4(index,slotOffset,v1,v2,v3,v4){const adjustedIndex=index+HEADER_OFFSET,lView=getLView(),pipeInstance=load(lView,adjustedIndex);return isPure(lView,adjustedIndex)?pureFunction4Internal(lView,getBindingRoot(),slotOffset,pipeInstance.transform,v1,v2,v3,v4,pipeInstance):pipeInstance.transform(v1,v2,v3,v4)},\u0275\u0275pipeBindV:function \u0275\u0275pipeBindV(index,slotOffset,values){const adjustedIndex=index+HEADER_OFFSET,lView=getLView(),pipeInstance=load(lView,adjustedIndex);return isPure(lView,adjustedIndex)?pureFunctionVInternal(lView,getBindingRoot(),slotOffset,pipeInstance.transform,values,pipeInstance):pipeInstance.transform.apply(pipeInstance,values)},\u0275\u0275projectionDef,\u0275\u0275hostProperty,\u0275\u0275property,\u0275\u0275propertyInterpolate:function \u0275\u0275propertyInterpolate(propName,v0,sanitizer){return \u0275\u0275propertyInterpolate1(propName,"",v0,"",sanitizer),\u0275\u0275propertyInterpolate},\u0275\u0275propertyInterpolate1,\u0275\u0275propertyInterpolate2:function \u0275\u0275propertyInterpolate2(propName,prefix,v0,i02,v1,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation2(lView,prefix,v0,i02,v1,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate2},\u0275\u0275propertyInterpolate3:function \u0275\u0275propertyInterpolate3(propName,prefix,v0,i02,v1,i12,v2,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation3(lView,prefix,v0,i02,v1,i12,v2,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate3},\u0275\u0275propertyInterpolate4:function \u0275\u0275propertyInterpolate4(propName,prefix,v0,i02,v1,i12,v2,i22,v3,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation4(lView,prefix,v0,i02,v1,i12,v2,i22,v3,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate4},\u0275\u0275propertyInterpolate5:function \u0275\u0275propertyInterpolate5(propName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation5(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate5},\u0275\u0275propertyInterpolate6:function \u0275\u0275propertyInterpolate6(propName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation6(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate6},\u0275\u0275propertyInterpolate7:function \u0275\u0275propertyInterpolate7(propName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation7(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate7},\u0275\u0275propertyInterpolate8:function \u0275\u0275propertyInterpolate8(propName,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix,sanitizer){const lView=getLView(),interpolatedValue=interpolation8(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolate8},\u0275\u0275propertyInterpolateV:function \u0275\u0275propertyInterpolateV(propName,values,sanitizer){const lView=getLView(),interpolatedValue=interpolationV(lView,values);return interpolatedValue!==NO_CHANGE&&elementPropertyInternal(getTView(),getSelectedTNode(),lView,propName,interpolatedValue,lView[RENDERER],sanitizer,!1),\u0275\u0275propertyInterpolateV},\u0275\u0275pipe,\u0275\u0275queryRefresh,\u0275\u0275queryAdvance:function \u0275\u0275queryAdvance(indexOffset=1){setCurrentQueryIndex(getCurrentQueryIndex()+indexOffset)},\u0275\u0275viewQuery,\u0275\u0275viewQuerySignal:function \u0275\u0275viewQuerySignal(target,predicate,flags,read){bindQueryToSignal(target,createViewQuery(predicate,flags,read))},\u0275\u0275loadQuery,\u0275\u0275contentQuery,\u0275\u0275contentQuerySignal:function \u0275\u0275contentQuerySignal(directiveIndex,target,predicate,flags,read){bindQueryToSignal(target,createContentQuery(directiveIndex,predicate,flags,read))},\u0275\u0275reference,\u0275\u0275classMap,\u0275\u0275classMapInterpolate1:function \u0275\u0275classMapInterpolate1(prefix,v0,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation1(getLView(),prefix,v0,suffix),!0)},\u0275\u0275classMapInterpolate2:function \u0275\u0275classMapInterpolate2(prefix,v0,i02,v1,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation2(getLView(),prefix,v0,i02,v1,suffix),!0)},\u0275\u0275classMapInterpolate3:function \u0275\u0275classMapInterpolate3(prefix,v0,i02,v1,i12,v2,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation3(getLView(),prefix,v0,i02,v1,i12,v2,suffix),!0)},\u0275\u0275classMapInterpolate4:function \u0275\u0275classMapInterpolate4(prefix,v0,i02,v1,i12,v2,i22,v3,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation4(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,suffix),!0)},\u0275\u0275classMapInterpolate5:function \u0275\u0275classMapInterpolate5(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation5(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix),!0)},\u0275\u0275classMapInterpolate6:function \u0275\u0275classMapInterpolate6(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation6(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix),!0)},\u0275\u0275classMapInterpolate7:function \u0275\u0275classMapInterpolate7(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation7(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix),!0)},\u0275\u0275classMapInterpolate8:function \u0275\u0275classMapInterpolate8(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix){checkStylingMap(keyValueArraySet,classStringParser,interpolation8(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix),!0)},\u0275\u0275classMapInterpolateV:function \u0275\u0275classMapInterpolateV(values){checkStylingMap(keyValueArraySet,classStringParser,interpolationV(getLView(),values),!0)},\u0275\u0275styleMap,\u0275\u0275styleMapInterpolate1:function \u0275\u0275styleMapInterpolate1(prefix,v0,suffix){\u0275\u0275styleMap(interpolation1(getLView(),prefix,v0,suffix))},\u0275\u0275styleMapInterpolate2:function \u0275\u0275styleMapInterpolate2(prefix,v0,i02,v1,suffix){\u0275\u0275styleMap(interpolation2(getLView(),prefix,v0,i02,v1,suffix))},\u0275\u0275styleMapInterpolate3:function \u0275\u0275styleMapInterpolate3(prefix,v0,i02,v1,i12,v2,suffix){\u0275\u0275styleMap(interpolation3(getLView(),prefix,v0,i02,v1,i12,v2,suffix))},\u0275\u0275styleMapInterpolate4:function \u0275\u0275styleMapInterpolate4(prefix,v0,i02,v1,i12,v2,i22,v3,suffix){\u0275\u0275styleMap(interpolation4(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,suffix))},\u0275\u0275styleMapInterpolate5:function \u0275\u0275styleMapInterpolate5(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix){\u0275\u0275styleMap(interpolation5(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix))},\u0275\u0275styleMapInterpolate6:function \u0275\u0275styleMapInterpolate6(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix){\u0275\u0275styleMap(interpolation6(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix))},\u0275\u0275styleMapInterpolate7:function \u0275\u0275styleMapInterpolate7(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix){\u0275\u0275styleMap(interpolation7(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix))},\u0275\u0275styleMapInterpolate8:function \u0275\u0275styleMapInterpolate8(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix){\u0275\u0275styleMap(interpolation8(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix))},\u0275\u0275styleMapInterpolateV:function \u0275\u0275styleMapInterpolateV(values){\u0275\u0275styleMap(interpolationV(getLView(),values))},\u0275\u0275styleProp,\u0275\u0275stylePropInterpolate1:function \u0275\u0275stylePropInterpolate1(prop2,prefix,v0,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation1(getLView(),prefix,v0,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate1},\u0275\u0275stylePropInterpolate2:function \u0275\u0275stylePropInterpolate2(prop2,prefix,v0,i02,v1,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation2(getLView(),prefix,v0,i02,v1,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate2},\u0275\u0275stylePropInterpolate3:function \u0275\u0275stylePropInterpolate3(prop2,prefix,v0,i02,v1,i12,v2,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation3(getLView(),prefix,v0,i02,v1,i12,v2,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate3},\u0275\u0275stylePropInterpolate4:function \u0275\u0275stylePropInterpolate4(prop2,prefix,v0,i02,v1,i12,v2,i22,v3,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation4(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate4},\u0275\u0275stylePropInterpolate5:function \u0275\u0275stylePropInterpolate5(prop2,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation5(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate5},\u0275\u0275stylePropInterpolate6:function \u0275\u0275stylePropInterpolate6(prop2,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation6(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate6},\u0275\u0275stylePropInterpolate7:function \u0275\u0275stylePropInterpolate7(prop2,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation7(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate7},\u0275\u0275stylePropInterpolate8:function \u0275\u0275stylePropInterpolate8(prop2,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix,valueSuffix){return checkStylingProperty(prop2,interpolation8(getLView(),prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix),valueSuffix,!1),\u0275\u0275stylePropInterpolate8},\u0275\u0275stylePropInterpolateV:function \u0275\u0275stylePropInterpolateV(prop2,values,valueSuffix){return checkStylingProperty(prop2,interpolationV(getLView(),values),valueSuffix,!1),\u0275\u0275stylePropInterpolateV},\u0275\u0275classProp,\u0275\u0275advance,\u0275\u0275template,\u0275\u0275conditional,\u0275\u0275defer:function \u0275\u0275defer(index,primaryTmplIndex,dependencyResolverFn,loadingTmplIndex,placeholderTmplIndex,errorTmplIndex,loadingConfigIndex,placeholderConfigIndex,enableTimerScheduling){const lView=getLView(),tView=getTView(),adjustedIndex=index+HEADER_OFFSET;if(\u0275\u0275template(index,null,0,0),tView.firstCreatePass){performanceMarkFeature("NgDefer");const tDetails={primaryTmplIndex,loadingTmplIndex:loadingTmplIndex??null,placeholderTmplIndex:placeholderTmplIndex??null,errorTmplIndex:errorTmplIndex??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:dependencyResolverFn??null,loadingState:DeferDependenciesLoadingState.NOT_STARTED,loadingPromise:null,providers:null};enableTimerScheduling?.(tView,tDetails,placeholderConfigIndex,loadingConfigIndex),function setTDeferBlockDetails(tView,deferBlockIndex,deferBlockConfig){const slotIndex=getDeferBlockDataIndex(deferBlockIndex);tView.data[slotIndex]=deferBlockConfig}(tView,adjustedIndex,tDetails)}const tNode=getCurrentTNode();populateDehydratedViewsInLContainer(lView[adjustedIndex],tNode,lView);const lDetails=[null,DeferBlockInternalState.Initial,null,null,null,null];!function setLDeferBlockDetails(lView,deferBlockIndex,lDetails){lView[getDeferBlockDataIndex(deferBlockIndex)]=lDetails}(lView,adjustedIndex,lDetails);const cleanupTriggersFn=()=>invokeAllTriggerCleanupFns(lDetails);storeTriggerCleanupFn(0,lDetails,()=>removeLViewOnDestroy(lView,cleanupTriggersFn)),storeLViewOnDestroy(lView,cleanupTriggersFn)},\u0275\u0275deferWhen:function \u0275\u0275deferWhen(rawValue){const lView=getLView();if(bindingUpdated(lView,nextBindingIndex(),rawValue)){const prevConsumer=setActiveConsumer(null);try{const value=!!rawValue,tNode=getSelectedTNode(),renderedState=getLDeferBlockDetails(lView,tNode)[DEFER_BLOCK_STATE];!1===value&&renderedState===DeferBlockInternalState.Initial?renderPlaceholder(lView,tNode):!0===value&&(renderedState===DeferBlockInternalState.Initial||renderedState===DeferBlockState.Placeholder)&&triggerDeferBlock(lView,tNode)}finally{setActiveConsumer(prevConsumer)}}},\u0275\u0275deferOnIdle:function \u0275\u0275deferOnIdle(){scheduleDelayedTrigger(onIdle)},\u0275\u0275deferOnImmediate:function \u0275\u0275deferOnImmediate(){const lView=getLView(),tNode=getCurrentTNode(),injector=lView[INJECTOR],tDetails=getTDeferBlockDetails(lView[TVIEW],tNode);(!shouldTriggerDeferBlock(injector)||null===tDetails.loadingTmplIndex)&&renderPlaceholder(lView,tNode),triggerDeferBlock(lView,tNode)},\u0275\u0275deferOnTimer:function \u0275\u0275deferOnTimer(delay2){scheduleDelayedTrigger(onTimer(delay2))},\u0275\u0275deferOnHover:function \u0275\u0275deferOnHover(triggerIndex,walkUpTimes){const lView=getLView(),tNode=getCurrentTNode();renderPlaceholder(lView,tNode),registerDomTrigger(lView,tNode,triggerIndex,walkUpTimes,onHover,()=>triggerDeferBlock(lView,tNode),0)},\u0275\u0275deferOnInteraction:function \u0275\u0275deferOnInteraction(triggerIndex,walkUpTimes){const lView=getLView(),tNode=getCurrentTNode();renderPlaceholder(lView,tNode),registerDomTrigger(lView,tNode,triggerIndex,walkUpTimes,onInteraction,()=>triggerDeferBlock(lView,tNode),0)},\u0275\u0275deferOnViewport:function \u0275\u0275deferOnViewport(triggerIndex,walkUpTimes){const lView=getLView(),tNode=getCurrentTNode();renderPlaceholder(lView,tNode),registerDomTrigger(lView,tNode,triggerIndex,walkUpTimes,onViewport,()=>triggerDeferBlock(lView,tNode),0)},\u0275\u0275deferPrefetchWhen:function \u0275\u0275deferPrefetchWhen(rawValue){const lView=getLView();if(bindingUpdated(lView,nextBindingIndex(),rawValue)){const prevConsumer=setActiveConsumer(null);try{const value=!!rawValue,tView=lView[TVIEW],tNode=getSelectedTNode(),tDetails=getTDeferBlockDetails(tView,tNode);!0===value&&tDetails.loadingState===DeferDependenciesLoadingState.NOT_STARTED&&triggerPrefetching(tDetails,lView,tNode)}finally{setActiveConsumer(prevConsumer)}}},\u0275\u0275deferPrefetchOnIdle:function \u0275\u0275deferPrefetchOnIdle(){scheduleDelayedPrefetching(onIdle)},\u0275\u0275deferPrefetchOnImmediate:function \u0275\u0275deferPrefetchOnImmediate(){const lView=getLView(),tNode=getCurrentTNode(),tDetails=getTDeferBlockDetails(lView[TVIEW],tNode);tDetails.loadingState===DeferDependenciesLoadingState.NOT_STARTED&&triggerResourceLoading(tDetails,lView,tNode)},\u0275\u0275deferPrefetchOnTimer:function \u0275\u0275deferPrefetchOnTimer(delay2){scheduleDelayedPrefetching(onTimer(delay2))},\u0275\u0275deferPrefetchOnHover:function \u0275\u0275deferPrefetchOnHover(triggerIndex,walkUpTimes){const lView=getLView(),tNode=getCurrentTNode(),tDetails=getTDeferBlockDetails(lView[TVIEW],tNode);tDetails.loadingState===DeferDependenciesLoadingState.NOT_STARTED&®isterDomTrigger(lView,tNode,triggerIndex,walkUpTimes,onHover,()=>triggerPrefetching(tDetails,lView,tNode),1)},\u0275\u0275deferPrefetchOnInteraction:function \u0275\u0275deferPrefetchOnInteraction(triggerIndex,walkUpTimes){const lView=getLView(),tNode=getCurrentTNode(),tDetails=getTDeferBlockDetails(lView[TVIEW],tNode);tDetails.loadingState===DeferDependenciesLoadingState.NOT_STARTED&®isterDomTrigger(lView,tNode,triggerIndex,walkUpTimes,onInteraction,()=>triggerPrefetching(tDetails,lView,tNode),1)},\u0275\u0275deferPrefetchOnViewport:function \u0275\u0275deferPrefetchOnViewport(triggerIndex,walkUpTimes){const lView=getLView(),tNode=getCurrentTNode(),tDetails=getTDeferBlockDetails(lView[TVIEW],tNode);tDetails.loadingState===DeferDependenciesLoadingState.NOT_STARTED&®isterDomTrigger(lView,tNode,triggerIndex,walkUpTimes,onViewport,()=>triggerPrefetching(tDetails,lView,tNode),1)},\u0275\u0275deferEnableTimerScheduling:function \u0275\u0275deferEnableTimerScheduling(tView,tDetails,placeholderConfigIndex,loadingConfigIndex){const tViewConsts=tView.consts;null!=placeholderConfigIndex&&(tDetails.placeholderBlockConfig=getConstant(tViewConsts,placeholderConfigIndex)),null!=loadingConfigIndex&&(tDetails.loadingBlockConfig=getConstant(tViewConsts,loadingConfigIndex)),null===applyDeferBlockStateWithSchedulingImpl&&(applyDeferBlockStateWithSchedulingImpl=applyDeferBlockStateWithScheduling)},\u0275\u0275repeater,\u0275\u0275repeaterCreate,\u0275\u0275repeaterTrackByIndex:function \u0275\u0275repeaterTrackByIndex(index){return index},\u0275\u0275repeaterTrackByIdentity,\u0275\u0275componentInstance:function \u0275\u0275componentInstance(){return getLView()[DECLARATION_COMPONENT_VIEW][CONTEXT]},\u0275\u0275text,\u0275\u0275textInterpolate,\u0275\u0275textInterpolate1,\u0275\u0275textInterpolate2,\u0275\u0275textInterpolate3:function \u0275\u0275textInterpolate3(prefix,v0,i02,v1,i12,v2,suffix){const lView=getLView(),interpolated=interpolation3(lView,prefix,v0,i02,v1,i12,v2,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate3},\u0275\u0275textInterpolate4:function \u0275\u0275textInterpolate4(prefix,v0,i02,v1,i12,v2,i22,v3,suffix){const lView=getLView(),interpolated=interpolation4(lView,prefix,v0,i02,v1,i12,v2,i22,v3,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate4},\u0275\u0275textInterpolate5:function \u0275\u0275textInterpolate5(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix){const lView=getLView(),interpolated=interpolation5(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate5},\u0275\u0275textInterpolate6:function \u0275\u0275textInterpolate6(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix){const lView=getLView(),interpolated=interpolation6(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate6},\u0275\u0275textInterpolate7:function \u0275\u0275textInterpolate7(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix){const lView=getLView(),interpolated=interpolation7(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate7},\u0275\u0275textInterpolate8:function \u0275\u0275textInterpolate8(prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix){const lView=getLView(),interpolated=interpolation8(lView,prefix,v0,i02,v1,i12,v2,i22,v3,i32,v4,i42,v5,i52,v6,i6,v7,suffix);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolate8},\u0275\u0275textInterpolateV:function \u0275\u0275textInterpolateV(values){const lView=getLView(),interpolated=interpolationV(lView,values);return interpolated!==NO_CHANGE&&textBindingInternal(lView,getSelectedIndex(),interpolated),\u0275\u0275textInterpolateV},\u0275\u0275i18n:function \u0275\u0275i18n(index,messageIndex,subTemplateIndex){\u0275\u0275i18nStart(index,messageIndex,subTemplateIndex),\u0275\u0275i18nEnd()},\u0275\u0275i18nAttributes:function \u0275\u0275i18nAttributes(index,attrsIndex){const tView=getTView(),attrs=getConstant(tView.consts,attrsIndex);!function i18nAttributesFirstPass(tView,index,values){const previousElementIndex=getCurrentTNode().index,updateOpCodes=[];if(tView.firstCreatePass&&null===tView.data[index]){for(let i=0;i0){const tI18n=tView.data[index];applyUpdateOpCodes(tView,lView,Array.isArray(tI18n)?tI18n:tI18n.update,getBindingIndex()-changeMaskCounter-1,changeMask)}changeMask=0,changeMaskCounter=0}(getTView(),getLView(),index+HEADER_OFFSET)},\u0275\u0275i18nPostprocess:function \u0275\u0275i18nPostprocess(message,replacements={}){return function i18nPostprocess(message,replacements={}){let result=message;if(PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)){const matches={},templateIdsStack=[0];result=result.replace(PP_PLACEHOLDERS_REGEXP,(m2,phs,tmpl)=>{const content=phs||tmpl,placeholders=matches[content]||[];if(placeholders.length||(content.split("|").forEach(placeholder2=>{const match2=placeholder2.match(PP_TEMPLATE_ID_REGEXP),templateId2=match2?parseInt(match2[1],10):0,isCloseTemplateTag2=PP_CLOSE_TEMPLATE_REGEXP.test(placeholder2);placeholders.push([templateId2,isCloseTemplateTag2,placeholder2])}),matches[content]=placeholders),!placeholders.length)throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);const currentTemplateId=templateIdsStack[templateIdsStack.length-1];let idx=0;for(let i=0;ireplacements.hasOwnProperty(key)?`${start2}${replacements[key]}${end}`:match2),result=result.replace(PP_ICU_PLACEHOLDERS_REGEXP,(match2,key)=>replacements.hasOwnProperty(key)?replacements[key]:match2),result=result.replace(PP_ICUS_REGEXP,(match2,key)=>{if(replacements.hasOwnProperty(key)){const list2=replacements[key];if(!list2.length)throw new Error(`i18n postprocess: unmatched ICU - ${match2} with key: ${key}`);return list2.shift()}return match2})),result}(message,replacements)},\u0275\u0275resolveWindow:function \u0275\u0275resolveWindow(element){return element.ownerDocument.defaultView},\u0275\u0275resolveDocument:function \u0275\u0275resolveDocument(element){return element.ownerDocument},\u0275\u0275resolveBody:function \u0275\u0275resolveBody(element){return element.ownerDocument.body},\u0275\u0275setComponentScope:function \u0275\u0275setComponentScope(type,directives,pipes){const def=type.\u0275cmp;def.directiveDefs=extractDefListOrFactory(directives,!1),def.pipeDefs=extractDefListOrFactory(pipes,!0)},\u0275\u0275setNgModuleScope:function \u0275\u0275setNgModuleScope(type,scope){return noSideEffects(()=>{const ngModuleDef=getNgModuleDef(type,!0);ngModuleDef.declarations=convertToTypeArray(scope.declarations||EMPTY_ARRAY),ngModuleDef.imports=convertToTypeArray(scope.imports||EMPTY_ARRAY),ngModuleDef.exports=convertToTypeArray(scope.exports||EMPTY_ARRAY),scope.bootstrap&&(ngModuleDef.bootstrap=convertToTypeArray(scope.bootstrap)),depsTracker.registerNgModule(type,scope)})},\u0275\u0275registerNgModuleType:function registerNgModuleType(ngModuleType,id){(function assertSameOrNotExisting(id,type,incoming){if(type&&type!==incoming)throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`)})(id,modules.get(id)||null,ngModuleType),modules.set(id,ngModuleType)},\u0275\u0275getComponentDepsFactory:function \u0275\u0275getComponentDepsFactory(type,rawImports){return()=>{try{return depsTracker.getComponentDependencies(type,rawImports).dependencies}catch(e2){throw console.error(`Computing dependencies in local compilation mode for the component "${type.name}" failed with the exception:`,e2),e2}}},\u0275setClassDebugInfo:function \u0275setClassDebugInfo(type,debugInfo){const def=getComponentDef(type);null!==def&&(def.debugInfo=debugInfo)},\u0275\u0275sanitizeHtml,\u0275\u0275sanitizeStyle:function \u0275\u0275sanitizeStyle(unsafeStyle){const sanitizer=getSanitizer();return sanitizer?sanitizer.sanitize(SecurityContext.STYLE,unsafeStyle)||"":allowSanitizationBypassAndThrow(unsafeStyle,"Style")?unwrapSafeValue(unsafeStyle):renderStringify(unsafeStyle)},\u0275\u0275sanitizeResourceUrl,\u0275\u0275sanitizeScript:function \u0275\u0275sanitizeScript(unsafeScript){const sanitizer=getSanitizer();if(sanitizer)return trustedScriptFromStringBypass(sanitizer.sanitize(SecurityContext.SCRIPT,unsafeScript)||"");if(allowSanitizationBypassAndThrow(unsafeScript,"Script"))return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));throw new RuntimeError(905,!1)},\u0275\u0275sanitizeUrl,\u0275\u0275sanitizeUrlOrResourceUrl:function \u0275\u0275sanitizeUrlOrResourceUrl(unsafeUrl,tag,prop2){return function getUrlSanitizer(tag,prop2){return"src"===prop2&&("embed"===tag||"frame"===tag||"iframe"===tag||"media"===tag||"script"===tag)||"href"===prop2&&("base"===tag||"link"===tag)?\u0275\u0275sanitizeResourceUrl:\u0275\u0275sanitizeUrl}(tag,prop2)(unsafeUrl)},\u0275\u0275trustConstantHtml:function \u0275\u0275trustConstantHtml(html){return trustedHTMLFromString(html[0])},\u0275\u0275trustConstantResourceUrl:function \u0275\u0275trustConstantResourceUrl(url){return function trustedScriptURLFromString(url){return getPolicy$1()?.createScriptURL(url)||url}(url[0])},\u0275\u0275validateIframeAttribute:function \u0275\u0275validateIframeAttribute(attrValue,tagName,attrName){const lView=getLView(),tNode=getSelectedTNode(),element=getNativeByTNode(tNode,lView);if(2===tNode.type&&"iframe"===tagName.toLowerCase()){const iframe=element;throw iframe.src="",iframe.srcdoc=trustedHTMLFromString(""),nativeRemoveNode(lView[RENDERER],iframe),new RuntimeError(-910,!1)}return attrValue},forwardRef:core_forwardRef,resolveForwardRef,\u0275\u0275twoWayProperty,\u0275\u0275twoWayBindingSet,\u0275\u0275twoWayListener,\u0275\u0275InputFlags:InputFlags};const moduleQueue=[];let flushingModuleQueue=!1;function isResolvedDeclaration(declaration){return Array.isArray(declaration)?declaration.every(isResolvedDeclaration):!!resolveForwardRef(declaration)}function setScopeOnDeclaredComponents(moduleType,ngModule){const declarations=flatten(ngModule.declarations||EMPTY_ARRAY),transitiveScopes=transitiveScopesFor(moduleType);declarations.forEach(declaration=>{(declaration=resolveForwardRef(declaration)).hasOwnProperty(NG_COMP_DEF)?patchComponentDefWithScope(getComponentDef(declaration),transitiveScopes):!declaration.hasOwnProperty(NG_DIR_DEF)&&!declaration.hasOwnProperty(NG_PIPE_DEF)&&(declaration.ngSelectorScope=moduleType)})}function patchComponentDefWithScope(componentDef,transitiveScopes){componentDef.directiveDefs=()=>Array.from(transitiveScopes.compilation.directives).map(dir=>dir.hasOwnProperty(NG_COMP_DEF)?getComponentDef(dir):getDirectiveDef(dir)).filter(def=>!!def),componentDef.pipeDefs=()=>Array.from(transitiveScopes.compilation.pipes).map(pipe2=>getPipeDef$1(pipe2)),componentDef.schemas=transitiveScopes.schemas,componentDef.tView=null}function transitiveScopesFor(type){if(isNgModule(type)){if(USE_RUNTIME_DEPS_TRACKER_FOR_JIT){const scope=depsTracker.getNgModuleScope(type);return{schemas:getNgModuleDef(type,!0).schemas||null,...scope}}return function transitiveScopesForNgModule(moduleType){const def=getNgModuleDef(moduleType,!0);if(null!==def.transitiveCompileScopes)return def.transitiveCompileScopes;const scopes={schemas:def.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return maybeUnwrapFn(def.imports).forEach(imported=>{const importedScope=transitiveScopesFor(imported);importedScope.exported.directives.forEach(entry=>scopes.compilation.directives.add(entry)),importedScope.exported.pipes.forEach(entry=>scopes.compilation.pipes.add(entry))}),maybeUnwrapFn(def.declarations).forEach(declared=>{getPipeDef$1(declared)?scopes.compilation.pipes.add(declared):scopes.compilation.directives.add(declared)}),maybeUnwrapFn(def.exports).forEach(exported=>{const exportedType=exported;if(isNgModule(exportedType)){const exportedScope=transitiveScopesFor(exportedType);exportedScope.exported.directives.forEach(entry=>{scopes.compilation.directives.add(entry),scopes.exported.directives.add(entry)}),exportedScope.exported.pipes.forEach(entry=>{scopes.compilation.pipes.add(entry),scopes.exported.pipes.add(entry)})}else getPipeDef$1(exportedType)?scopes.exported.pipes.add(exportedType):scopes.exported.directives.add(exportedType)}),def.transitiveCompileScopes=scopes,scopes}(type)}if(isStandalone(type)){if(null!==(getComponentDef(type)||getDirectiveDef(type)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([type]),pipes:new Set}};if(null!==getPipeDef$1(type))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([type])}}}throw new Error(`${type.name} does not have a module def (\u0275mod property)`)}let compilationDepth=0;function compileDirective(type,directive){let ngDirectiveDef=null;addDirectiveFactoryDef(type,directive||{}),Object.defineProperty(type,NG_DIR_DEF,{get:()=>{if(null===ngDirectiveDef){const meta=getDirectiveMetadata(type,directive||{});ngDirectiveDef=getCompilerFacade().compileDirective(angularCoreEnv,meta.sourceMapUrl,meta.metadata)}return ngDirectiveDef},configurable:!1})}function getDirectiveMetadata(type,metadata){const name=type&&type.name,sourceMapUrl=`ng:///${name}/\u0275dir.js`,compiler=getCompilerFacade(),facade=directiveMetadata(type,metadata);return facade.typeSourceSpan=compiler.createParseSourceSpan("Directive",name,sourceMapUrl),facade.usesInheritance&&addDirectiveDefToUndecoratedParents(type),{metadata:facade,sourceMapUrl}}function addDirectiveFactoryDef(type,metadata){let ngFactoryDef=null;Object.defineProperty(type,NG_FACTORY_DEF,{get:()=>{if(null===ngFactoryDef){const meta=getDirectiveMetadata(type,metadata),compiler=getCompilerFacade();ngFactoryDef=compiler.compileFactory(angularCoreEnv,`ng:///${type.name}/\u0275fac.js`,{name:meta.metadata.name,type:meta.metadata.type,typeArgumentCount:0,deps:reflectDependencies(type),target:compiler.FactoryTarget.Directive})}return ngFactoryDef},configurable:!1})}function extendsDirectlyFromObject(type){return Object.getPrototypeOf(type.prototype)===Object.prototype}function directiveMetadata(type,metadata){const reflect=getReflect(),propMetadata=reflect.ownPropMetadata(type);return{name:type.name,type,selector:void 0!==metadata.selector?metadata.selector:null,host:metadata.host||EMPTY_OBJ,propMetadata,inputs:metadata.inputs||EMPTY_ARRAY,outputs:metadata.outputs||EMPTY_ARRAY,queries:extractQueriesMetadata(type,propMetadata,isContentQuery),lifecycle:{usesOnChanges:reflect.hasLifecycleHook(type,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!extendsDirectlyFromObject(type),exportAs:(exportAs=metadata.exportAs,void 0===exportAs?null:splitByComma(exportAs)),providers:metadata.providers||null,viewQueries:extractQueriesMetadata(type,propMetadata,isViewQuery),isStandalone:!!metadata.standalone,isSignal:!!metadata.signals,hostDirectives:metadata.hostDirectives?.map(directive=>"function"==typeof directive?{directive}:directive)||null};var exportAs}function addDirectiveDefToUndecoratedParents(type){const objPrototype=Object.prototype;let parent=Object.getPrototypeOf(type.prototype).constructor;for(;parent&&parent!==objPrototype;)!getDirectiveDef(parent)&&!getComponentDef(parent)&&shouldAddAbstractDirective(parent)&&compileDirective(parent,null),parent=Object.getPrototypeOf(parent)}function convertToR3QueryMetadata(propertyName,ann){return{propertyName,predicate:(selector=ann.selector,"string"==typeof selector?splitByComma(selector):resolveForwardRef(selector)),descendants:ann.descendants,first:ann.first,read:ann.read?ann.read:null,static:!!ann.static,emitDistinctChangesOnly:!!ann.emitDistinctChangesOnly,isSignal:!!ann.isSignal};var selector}function extractQueriesMetadata(type,propMetadata,isQueryAnn){const queriesMeta=[];for(const field in propMetadata)if(propMetadata.hasOwnProperty(field)){const annotations=propMetadata[field];annotations.forEach(ann=>{if(isQueryAnn(ann)){if(!ann.selector)throw new Error(`Can't construct a query for the property "${field}" of "${stringifyForError(type)}" since the query selector wasn't defined.`);if(annotations.some(isInputAnnotation))throw new Error("Cannot combine @Input decorators with query decorators");queriesMeta.push(convertToR3QueryMetadata(field,ann))}})}return queriesMeta}function isContentQuery(value){const name=value.ngMetadataName;return"ContentChild"===name||"ContentChildren"===name}function isViewQuery(value){const name=value.ngMetadataName;return"ViewChild"===name||"ViewChildren"===name}function isInputAnnotation(value){return"Input"===value.ngMetadataName}function splitByComma(value){return value.split(",").map(piece=>piece.trim())}const LIFECYCLE_HOOKS=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function shouldAddAbstractDirective(type){const reflect=getReflect();if(LIFECYCLE_HOOKS.some(hookName=>reflect.hasLifecycleHook(type,hookName)))return!0;const propMetadata=reflect.propMetadata(type);for(const field in propMetadata){const annotations=propMetadata[field];for(let i=0;i({changeDetection:ChangeDetectionStrategy.Default,...c}),makeDecorator("Directive",(dir={})=>dir,void 0,void 0,(type,meta)=>compileDirective(type,meta)),void 0,(type,meta)=>function compileComponent(type,metadata){let ngComponentDef=null;(function maybeQueueResolutionOfComponentResources(type,metadata){componentNeedsResolution(metadata)&&(componentResourceResolutionQueue.set(type,metadata),componentDefPendingResolution.add(type))})(type,metadata),addDirectiveFactoryDef(type,metadata),Object.defineProperty(type,NG_COMP_DEF,{get:()=>{if(null===ngComponentDef){const compiler=getCompilerFacade();if(componentNeedsResolution(metadata)){const error=[`Component '${type.name}' is not resolved:`];throw metadata.templateUrl&&error.push(` - templateUrl: ${metadata.templateUrl}`),metadata.styleUrls&&metadata.styleUrls.length&&error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`),metadata.styleUrl&&error.push(` - styleUrl: ${metadata.styleUrl}`),error.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(error.join("\n"))}const options=null;let preserveWhitespaces=metadata.preserveWhitespaces;void 0===preserveWhitespaces&&(preserveWhitespaces=null!==options&&void 0!==options.preserveWhitespaces&&options.preserveWhitespaces);let encapsulation=metadata.encapsulation;void 0===encapsulation&&(encapsulation=null!==options&&void 0!==options.defaultEncapsulation?options.defaultEncapsulation:ViewEncapsulation$1.Emulated);const templateUrl=metadata.templateUrl||`ng:///${type.name}/template.html`,meta={...directiveMetadata(type,metadata),typeSourceSpan:compiler.createParseSourceSpan("Component",type.name,templateUrl),template:metadata.template||"",preserveWhitespaces,styles:"string"==typeof metadata.styles?[metadata.styles]:metadata.styles||EMPTY_ARRAY,animations:metadata.animations,declarations:[],changeDetection:metadata.changeDetection,encapsulation,interpolation:metadata.interpolation,viewProviders:metadata.viewProviders||null};compilationDepth++;try{if(meta.usesInheritance&&addDirectiveDefToUndecoratedParents(type),ngComponentDef=compiler.compileComponent(angularCoreEnv,templateUrl,meta),metadata.standalone){const imports=flatten(metadata.imports||EMPTY_ARRAY),{directiveDefs,pipeDefs}=function getStandaloneDefFunctions(type,imports){let cachedDirectiveDefs=null,cachedPipeDefs=null;return{directiveDefs:()=>{if(USE_RUNTIME_DEPS_TRACKER_FOR_JIT)return isComponent(type)?[...depsTracker.getStandaloneComponentScope(type,imports).compilation.directives].map(p=>getComponentDef(p)||getDirectiveDef(p)).filter(d=>null!==d):[];if(null===cachedDirectiveDefs){cachedDirectiveDefs=[getComponentDef(type)];const seen=new Set([type]);for(const rawDep of imports){const dep=resolveForwardRef(rawDep);if(!seen.has(dep))if(seen.add(dep),getNgModuleDef(dep)){const scope=transitiveScopesFor(dep);for(const dir of scope.exported.directives){const def=getComponentDef(dir)||getDirectiveDef(dir);def&&!seen.has(dir)&&(seen.add(dir),cachedDirectiveDefs.push(def))}}else{const def=getComponentDef(dep)||getDirectiveDef(dep);def&&cachedDirectiveDefs.push(def)}}}return cachedDirectiveDefs},pipeDefs:()=>{if(USE_RUNTIME_DEPS_TRACKER_FOR_JIT)return isComponent(type)?[...depsTracker.getStandaloneComponentScope(type,imports).compilation.pipes].map(p=>getPipeDef$1(p)).filter(d=>null!==d):[];if(null===cachedPipeDefs){cachedPipeDefs=[];const seen=new Set;for(const rawDep of imports){const dep=resolveForwardRef(rawDep);if(!seen.has(dep))if(seen.add(dep),getNgModuleDef(dep)){const scope=transitiveScopesFor(dep);for(const pipe2 of scope.exported.pipes){const def=getPipeDef$1(pipe2);def&&!seen.has(pipe2)&&(seen.add(pipe2),cachedPipeDefs.push(def))}}else{const def=getPipeDef$1(dep);def&&cachedPipeDefs.push(def)}}}return cachedPipeDefs}}}(type,imports);ngComponentDef.directiveDefs=directiveDefs,ngComponentDef.pipeDefs=pipeDefs,ngComponentDef.dependencies=()=>imports.map(resolveForwardRef)}}finally{compilationDepth--}if(0===compilationDepth&&function flushModuleScopingQueueAsMuchAsPossible(){if(!flushingModuleQueue){flushingModuleQueue=!0;try{for(let i=moduleQueue.length-1;i>=0;i--){const{moduleType,ngModule}=moduleQueue[i];ngModule.declarations&&ngModule.declarations.every(isResolvedDeclaration)&&(moduleQueue.splice(i,1),setScopeOnDeclaredComponents(moduleType,ngModule))}}finally{flushingModuleQueue=!1}}}(),function hasSelectorScope(component){return void 0!==component.ngSelectorScope}(type)){const scopes=transitiveScopesFor(type.ngSelectorScope);patchComponentDefWithScope(ngComponentDef,scopes)}if(metadata.schemas){if(!metadata.standalone)throw new Error(`The 'schemas' was specified for the ${stringifyForError(type)} but is only valid on a component that is standalone.`);ngComponentDef.schemas=metadata.schemas}else metadata.standalone&&(ngComponentDef.schemas=[])}return ngComponentDef},configurable:!1})}(type,meta));class Version{constructor(full){this.full=full;const parts=full.split(".");this.major=parts[0],this.minor=parts[1],this.patch=parts.slice(2).join(".")}}const core_VERSION=new Version("17.3.6"),TESTABILITY=new InjectionToken(""),TESTABILITY_GETTER=new InjectionToken("");let _testabilityGetter,Testability=(()=>{class Testability2{constructor(_ngZone,registry,testabilityGetter){this._ngZone=_ngZone,this.registry=registry,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,_testabilityGetter||(function setTestabilityGetter(getter){_testabilityGetter=getter}(testabilityGetter),testabilityGetter.addToWindow(registry)),this._watchAngularEvents(),_ngZone.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{core_NgZone.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let cb=this._callbacks.pop();clearTimeout(cb.timeoutId),cb.doneCb()}});else{let pending=this.getPendingTasks();this._callbacks=this._callbacks.filter(cb=>!cb.updateCb||!cb.updateCb(pending)||(clearTimeout(cb.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(cb,timeout,updateCb){let timeoutId=-1;timeout&&timeout>0&&(timeoutId=setTimeout(()=>{this._callbacks=this._callbacks.filter(cb2=>cb2.timeoutId!==timeoutId),cb()},timeout)),this._callbacks.push({doneCb:cb,timeoutId,updateCb})}whenStable(doneCb,timeout,updateCb){if(updateCb&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(doneCb,timeout,updateCb),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(token){this.registry.registerApplication(token,this)}unregisterApplication(token){this.registry.unregisterApplication(token)}findProviders(using,provider,exactMatch){return[]}static#_=this.\u0275fac=function(t){return new(t||Testability2)(\u0275\u0275inject(core_NgZone),\u0275\u0275inject(TestabilityRegistry),\u0275\u0275inject(TESTABILITY_GETTER))};static#_2=this.\u0275prov=core_defineInjectable({token:Testability2,factory:Testability2.\u0275fac})}return Testability2})(),TestabilityRegistry=(()=>{class TestabilityRegistry2{constructor(){this._applications=new Map}registerApplication(token,testability){this._applications.set(token,testability)}unregisterApplication(token){this._applications.delete(token)}unregisterAllApplications(){this._applications.clear()}getTestability(elem){return this._applications.get(elem)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(elem,findInAncestors=!0){return _testabilityGetter?.findTestabilityInTree(this,elem,findInAncestors)??null}static#_=this.\u0275fac=function(t){return new(t||TestabilityRegistry2)};static#_2=this.\u0275prov=core_defineInjectable({token:TestabilityRegistry2,factory:TestabilityRegistry2.\u0275fac,providedIn:"platform"})}return TestabilityRegistry2})();function isPromise(obj){return!!obj&&"function"==typeof obj.then}const core_APP_INITIALIZER=new InjectionToken("");let ApplicationInitStatus=(()=>{class ApplicationInitStatus2{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((res,rej)=>{this.resolve=res,this.reject=rej}),this.appInits=core_inject(core_APP_INITIALIZER,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const asyncInitPromises=[];for(const appInits of this.appInits){const initResult=appInits();if(isPromise(initResult))asyncInitPromises.push(initResult);else if((obj=initResult)&&"function"==typeof obj.subscribe){const observableAsPromise=new Promise((resolve,reject)=>{initResult.subscribe({complete:resolve,error:reject})});asyncInitPromises.push(observableAsPromise)}}var obj;const complete=()=>{this.done=!0,this.resolve()};Promise.all(asyncInitPromises).then(()=>{complete()}).catch(e2=>{this.reject(e2)}),0===asyncInitPromises.length&&complete(),this.initialized=!0}static#_=this.\u0275fac=function(t){return new(t||ApplicationInitStatus2)};static#_2=this.\u0275prov=core_defineInjectable({token:ApplicationInitStatus2,factory:ApplicationInitStatus2.\u0275fac,providedIn:"root"})}return ApplicationInitStatus2})();const core_APP_BOOTSTRAP_LISTENER=new InjectionToken("");function optionsReducer(dst,objs){return Array.isArray(objs)?objs.reduce(optionsReducer,dst):{...dst,...objs}}let core_ApplicationRef=(()=>{class ApplicationRef2{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=core_inject(INTERNAL_APPLICATION_ERROR_HANDLER),this.afterRenderEffectManager=core_inject(AfterRenderEventManager),this.externalTestViews=new Set,this.beforeRender=new Subject_Subject,this.afterTick=new Subject_Subject,this.componentTypes=[],this.components=[],this.isStable=core_inject(PendingTasks).hasPendingTasks.pipe(map_map(pending=>!pending)),this._injector=core_inject(core_EnvironmentInjector)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(componentOrFactory,rootSelectorOrNode){const isComponentFactory=componentOrFactory instanceof ComponentFactory$1;if(!this._injector.get(ApplicationInitStatus).done)throw!isComponentFactory&&isStandalone(componentOrFactory),new RuntimeError(405,!1);let componentFactory;componentFactory=isComponentFactory?componentOrFactory:this._injector.get(ComponentFactoryResolver$1).resolveComponentFactory(componentOrFactory),this.componentTypes.push(componentFactory.componentType);const ngModule=function isBoundToModule(cf){return cf.isBoundToModule}(componentFactory)?void 0:this._injector.get(NgModuleRef$1),compRef=componentFactory.create(core_Injector.NULL,[],rootSelectorOrNode||componentFactory.selector,ngModule),nativeElement=compRef.location.nativeElement,testability=compRef.injector.get(TESTABILITY,null);return testability?.registerApplication(nativeElement),compRef.onDestroy(()=>{this.detachView(compRef.hostView),remove(this.components,compRef),testability?.unregisterApplication(nativeElement)}),this._loadComponent(compRef),compRef}tick(){this._tick(!0)}_tick(refreshViews){if(this._runningTick)throw new RuntimeError(101,!1);const prevConsumer=setActiveConsumer(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(refreshViews)}catch(e2){this.internalErrorHandler(e2)}finally{this.afterTick.next(),this._runningTick=!1,setActiveConsumer(prevConsumer)}}detectChangesInAttachedViews(refreshViews){let runs=0;const afterRenderEffectManager=this.afterRenderEffectManager;for(;;){if(runs===MAXIMUM_REFRESH_RERUNS)throw new RuntimeError(103,!1);if(refreshViews){const isFirstPass=0===runs;this.beforeRender.next(isFirstPass);for(let{_lView,notifyErrorHandler}of this._views)detectChangesInViewIfRequired(_lView,isFirstPass,notifyErrorHandler)}if(runs++,afterRenderEffectManager.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView})=>shouldRecheckView(_lView))&&(afterRenderEffectManager.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView})=>shouldRecheckView(_lView))))break}}attachView(viewRef){const view=viewRef;this._views.push(view),view.attachToAppRef(this)}detachView(viewRef){const view=viewRef;remove(this._views,view),view.detachFromAppRef()}_loadComponent(componentRef){this.attachView(componentRef.hostView),this.tick(),this.components.push(componentRef);const listeners=this._injector.get(core_APP_BOOTSTRAP_LISTENER,[]);[...this._bootstrapListeners,...listeners].forEach(listener=>listener(componentRef))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(listener=>listener()),this._views.slice().forEach(view=>view.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(callback){return this._destroyListeners.push(callback),()=>remove(this._destroyListeners,callback)}destroy(){if(this._destroyed)throw new RuntimeError(406,!1);const injector=this._injector;injector.destroy&&!injector.destroyed&&injector.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#_=this.\u0275fac=function(t){return new(t||ApplicationRef2)};static#_2=this.\u0275prov=core_defineInjectable({token:ApplicationRef2,factory:ApplicationRef2.\u0275fac,providedIn:"root"})}return ApplicationRef2})();function remove(list2,el){const index=list2.indexOf(el);index>-1&&list2.splice(index,1)}function detectChangesInViewIfRequired(lView,isFirstPass,notifyErrorHandler){!isFirstPass&&!shouldRecheckView(lView)||function detectChangesInView(lView,notifyErrorHandler,isFirstPass){let mode;isFirstPass?(mode=0,lView[FLAGS]|=1024):mode=64&lView[FLAGS]?0:1,detectChangesInternal(lView,notifyErrorHandler,mode)}(lView,notifyErrorHandler,isFirstPass)}function shouldRecheckView(view){return requiresRefreshOrTraversal(view)}let NgZoneChangeDetectionScheduler=(()=>{class NgZoneChangeDetectionScheduler2{constructor(){this.zone=core_inject(core_NgZone),this.applicationRef=core_inject(core_ApplicationRef)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#_=this.\u0275fac=function(t){return new(t||NgZoneChangeDetectionScheduler2)};static#_2=this.\u0275prov=core_defineInjectable({token:NgZoneChangeDetectionScheduler2,factory:NgZoneChangeDetectionScheduler2.\u0275fac,providedIn:"root"})}return NgZoneChangeDetectionScheduler2})();function ngZoneApplicationErrorHandlerFactory(){const zone=core_inject(core_NgZone),userErrorHandler=core_inject(ErrorHandler);return e2=>zone.runOutsideAngular(()=>userErrorHandler.handleError(e2))}let ZoneStablePendingTask=(()=>{class ZoneStablePendingTask2{constructor(){this.subscription=new Subscription_Subscription,this.initialized=!1,this.zone=core_inject(core_NgZone),this.pendingTasks=core_inject(PendingTasks)}initialize(){if(this.initialized)return;this.initialized=!0;let task=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(task=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{core_NgZone.assertNotInAngularZone(),queueMicrotask(()=>{null!==task&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(task),task=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{core_NgZone.assertInAngularZone(),task??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#_=this.\u0275fac=function(t){return new(t||ZoneStablePendingTask2)};static#_2=this.\u0275prov=core_defineInjectable({token:ZoneStablePendingTask2,factory:ZoneStablePendingTask2.\u0275fac,providedIn:"root"})}return ZoneStablePendingTask2})();const LOCALE_ID=new InjectionToken("",{providedIn:"root",factory:()=>core_inject(LOCALE_ID,core_InjectFlags.Optional|core_InjectFlags.SkipSelf)||function getGlobalLocale(){return typeof $localize<"u"&&$localize.locale||"en-US"}()}),PLATFORM_DESTROY_LISTENERS=new InjectionToken("");let PlatformRef=(()=>{class PlatformRef2{constructor(_injector){this._injector=_injector,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(moduleFactory,options){const ngZone=function getNgZone(ngZoneToUse="zone.js",options){return"noop"===ngZoneToUse?new NoopNgZone:"zone.js"===ngZoneToUse?new core_NgZone(options):ngZoneToUse}(options?.ngZone,function getNgZoneOptions(options){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:options?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:options?.runCoalescing??!1}}({eventCoalescing:options?.ngZoneEventCoalescing,runCoalescing:options?.ngZoneRunCoalescing}));return ngZone.run(()=>{const moduleRef=function createNgModuleRefWithProviders(moduleType,parentInjector,additionalProviders){return new NgModuleRef(moduleType,parentInjector,additionalProviders)}(moduleFactory.moduleType,this.injector,function internalProvideZoneChangeDetection(ngZoneFactory){return[{provide:core_NgZone,useFactory:ngZoneFactory},{provide:core_ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const ngZoneChangeDetectionScheduler=core_inject(NgZoneChangeDetectionScheduler,{optional:!0});return()=>ngZoneChangeDetectionScheduler.initialize()}},{provide:core_ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const service=core_inject(ZoneStablePendingTask);return()=>{service.initialize()}}},{provide:INTERNAL_APPLICATION_ERROR_HANDLER,useFactory:ngZoneApplicationErrorHandlerFactory}]}(()=>ngZone)),exceptionHandler=moduleRef.injector.get(ErrorHandler,null);return ngZone.runOutsideAngular(()=>{const subscription=ngZone.onError.subscribe({next:error=>{exceptionHandler.handleError(error)}});moduleRef.onDestroy(()=>{remove(this._modules,moduleRef),subscription.unsubscribe()})}),function _callAndReportToErrorHandler(errorHandler2,ngZone,callback){try{const result=callback();return isPromise(result)?result.catch(e2=>{throw ngZone.runOutsideAngular(()=>errorHandler2.handleError(e2)),e2}):result}catch(e2){throw ngZone.runOutsideAngular(()=>errorHandler2.handleError(e2)),e2}}(exceptionHandler,ngZone,()=>{const initStatus=moduleRef.injector.get(ApplicationInitStatus);return initStatus.runInitializers(),initStatus.donePromise.then(()=>(function setLocaleId(localeId){"string"==typeof localeId&&(LOCALE_ID$1=localeId.toLowerCase().replace(/_/g,"-"))}(moduleRef.injector.get(LOCALE_ID,"en-US")||"en-US"),this._moduleDoBootstrap(moduleRef),moduleRef))})})}bootstrapModule(moduleType,compilerOptions=[]){const options=optionsReducer({},compilerOptions);return function compileNgModuleFactory(injector,options,moduleType){const moduleFactory=new NgModuleFactory(moduleType);return Promise.resolve(moduleFactory)}(0,0,moduleType).then(moduleFactory=>this.bootstrapModuleFactory(moduleFactory,options))}_moduleDoBootstrap(moduleRef){const appRef=moduleRef.injector.get(core_ApplicationRef);if(moduleRef._bootstrapComponents.length>0)moduleRef._bootstrapComponents.forEach(f=>appRef.bootstrap(f));else{if(!moduleRef.instance.ngDoBootstrap)throw new RuntimeError(-403,!1);moduleRef.instance.ngDoBootstrap(appRef)}this._modules.push(moduleRef)}onDestroy(callback){this._destroyListeners.push(callback)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new RuntimeError(404,!1);this._modules.slice().forEach(module=>module.destroy()),this._destroyListeners.forEach(listener=>listener());const destroyListeners=this._injector.get(PLATFORM_DESTROY_LISTENERS,null);destroyListeners&&(destroyListeners.forEach(listener=>listener()),destroyListeners.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#_=this.\u0275fac=function(t){return new(t||PlatformRef2)(\u0275\u0275inject(core_Injector))};static#_2=this.\u0275prov=core_defineInjectable({token:PlatformRef2,factory:PlatformRef2.\u0275fac,providedIn:"platform"})}return PlatformRef2})(),_platformInjector=null;const ALLOW_MULTIPLE_PLATFORMS=new InjectionToken("");function createPlatformFactory(parentPlatformFactory,name,providers=[]){const desc=`Platform: ${name}`,marker=new InjectionToken(desc);return(extraProviders=[])=>{let platform=getPlatform();if(!platform||platform.injector.get(ALLOW_MULTIPLE_PLATFORMS,!1)){const platformProviders=[...providers,...extraProviders,{provide:marker,useValue:!0}];parentPlatformFactory?parentPlatformFactory(platformProviders):function createPlatform(injector){if(_platformInjector&&!_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS,!1))throw new RuntimeError(400,!1);(function publishSignalConfiguration(){!function setThrowInvalidWriteToSignalError(fn){throwInvalidWriteToSignalErrorFn=fn}(()=>{throw new RuntimeError(600,!1)})})(),_platformInjector=injector;const platform=injector.get(PlatformRef);(function runPlatformInitializers(injector){injector.get(PLATFORM_INITIALIZER,null)?.forEach(init2=>init2())})(injector)}(function createPlatformInjector(providers=[],name){return core_Injector.create({name,providers:[{provide:INJECTOR_SCOPE,useValue:"platform"},{provide:PLATFORM_DESTROY_LISTENERS,useValue:new Set([()=>_platformInjector=null])},...providers]})}(platformProviders,desc))}return function assertPlatform(requiredToken){const platform=getPlatform();if(!platform)throw new RuntimeError(401,!1);return platform}()}}function getPlatform(){return _platformInjector?.get(PlatformRef)??null}let core_ChangeDetectorRef=(()=>{class ChangeDetectorRef2{static#_=this.__NG_ELEMENT_ID__=injectChangeDetectorRef}return ChangeDetectorRef2})();function injectChangeDetectorRef(flags){return function createViewRef(tNode,lView,isPipe2){if(isComponentHost(tNode)&&!isPipe2){const componentView=getComponentLViewByIndex(tNode.index,lView);return new ViewRef$1(componentView,componentView)}return 47&tNode.type?new ViewRef$1(lView[DECLARATION_COMPONENT_VIEW],lView):null}(getCurrentTNode(),getLView(),!(16&~flags))}class DefaultIterableDifferFactory{constructor(){}supports(obj){return isListLikeIterable(obj)}create(trackByFn){return new DefaultIterableDiffer(trackByFn)}}const trackByIdentity=(index,item)=>item;class DefaultIterableDiffer{constructor(trackByFn){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=trackByFn||trackByIdentity}forEachItem(fn){let record2;for(record2=this._itHead;null!==record2;record2=record2._next)fn(record2)}forEachOperation(fn){let nextIt=this._itHead,nextRemove=this._removalsHead,addRemoveOffset=0,moveOffsets=null;for(;nextIt||nextRemove;){const record2=!nextRemove||nextIt&&nextIt.currentIndex{itemTrackBy=this._trackByFn(index,item2),null!==record2&&Object.is(record2.trackById,itemTrackBy)?(mayBeDirty&&(record2=this._verifyReinsertion(record2,item2,itemTrackBy,index)),Object.is(record2.item,item2)||this._addIdentityChange(record2,item2)):(record2=this._mismatch(record2,item2,itemTrackBy,index),mayBeDirty=!0),record2=record2._next,index++}),this.length=index;return this._truncate(record2),this.collection=collection,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let record2;for(record2=this._previousItHead=this._itHead;null!==record2;record2=record2._next)record2._nextPrevious=record2._next;for(record2=this._additionsHead;null!==record2;record2=record2._nextAdded)record2.previousIndex=record2.currentIndex;for(this._additionsHead=this._additionsTail=null,record2=this._movesHead;null!==record2;record2=record2._nextMoved)record2.previousIndex=record2.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(record2,item,itemTrackBy,index){let previousRecord;return null===record2?previousRecord=this._itTail:(previousRecord=record2._prev,this._remove(record2)),null!==(record2=null===this._unlinkedRecords?null:this._unlinkedRecords.get(itemTrackBy,null))?(Object.is(record2.item,item)||this._addIdentityChange(record2,item),this._reinsertAfter(record2,previousRecord,index)):null!==(record2=null===this._linkedRecords?null:this._linkedRecords.get(itemTrackBy,index))?(Object.is(record2.item,item)||this._addIdentityChange(record2,item),this._moveAfter(record2,previousRecord,index)):record2=this._addAfter(new IterableChangeRecord_(item,itemTrackBy),previousRecord,index),record2}_verifyReinsertion(record2,item,itemTrackBy,index){let reinsertRecord=null===this._unlinkedRecords?null:this._unlinkedRecords.get(itemTrackBy,null);return null!==reinsertRecord?record2=this._reinsertAfter(reinsertRecord,record2._prev,index):record2.currentIndex!=index&&(record2.currentIndex=index,this._addToMoves(record2,index)),record2}_truncate(record2){for(;null!==record2;){const nextRecord=record2._next;this._addToRemovals(this._unlink(record2)),record2=nextRecord}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(record2,prevRecord,index){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(record2);const prev=record2._prevRemoved,next=record2._nextRemoved;return null===prev?this._removalsHead=next:prev._nextRemoved=next,null===next?this._removalsTail=prev:next._prevRemoved=prev,this._insertAfter(record2,prevRecord,index),this._addToMoves(record2,index),record2}_moveAfter(record2,prevRecord,index){return this._unlink(record2),this._insertAfter(record2,prevRecord,index),this._addToMoves(record2,index),record2}_addAfter(record2,prevRecord,index){return this._insertAfter(record2,prevRecord,index),this._additionsTail=null===this._additionsTail?this._additionsHead=record2:this._additionsTail._nextAdded=record2,record2}_insertAfter(record2,prevRecord,index){const next=null===prevRecord?this._itHead:prevRecord._next;return record2._next=next,record2._prev=prevRecord,null===next?this._itTail=record2:next._prev=record2,null===prevRecord?this._itHead=record2:prevRecord._next=record2,null===this._linkedRecords&&(this._linkedRecords=new _DuplicateMap),this._linkedRecords.put(record2),record2.currentIndex=index,record2}_remove(record2){return this._addToRemovals(this._unlink(record2))}_unlink(record2){null!==this._linkedRecords&&this._linkedRecords.remove(record2);const prev=record2._prev,next=record2._next;return null===prev?this._itHead=next:prev._next=next,null===next?this._itTail=prev:next._prev=prev,record2}_addToMoves(record2,toIndex){return record2.previousIndex===toIndex||(this._movesTail=null===this._movesTail?this._movesHead=record2:this._movesTail._nextMoved=record2),record2}_addToRemovals(record2){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _DuplicateMap),this._unlinkedRecords.put(record2),record2.currentIndex=null,record2._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=record2,record2._prevRemoved=null):(record2._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=record2),record2}_addIdentityChange(record2,item){return record2.item=item,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=record2:this._identityChangesTail._nextIdentityChange=record2,record2}}class IterableChangeRecord_{constructor(item,trackById){this.item=item,this.trackById=trackById,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class _DuplicateItemRecordList{constructor(){this._head=null,this._tail=null}add(record2){null===this._head?(this._head=this._tail=record2,record2._nextDup=null,record2._prevDup=null):(this._tail._nextDup=record2,record2._prevDup=this._tail,record2._nextDup=null,this._tail=record2)}get(trackById,atOrAfterIndex){let record2;for(record2=this._head;null!==record2;record2=record2._nextDup)if((null===atOrAfterIndex||atOrAfterIndex<=record2.currentIndex)&&Object.is(record2.trackById,trackById))return record2;return null}remove(record2){const prev=record2._prevDup,next=record2._nextDup;return null===prev?this._head=next:prev._nextDup=next,null===next?this._tail=prev:next._prevDup=prev,null===this._head}}class _DuplicateMap{constructor(){this.map=new Map}put(record2){const key=record2.trackById;let duplicates=this.map.get(key);duplicates||(duplicates=new _DuplicateItemRecordList,this.map.set(key,duplicates)),duplicates.add(record2)}get(trackById,atOrAfterIndex){const recordList=this.map.get(trackById);return recordList?recordList.get(trackById,atOrAfterIndex):null}remove(record2){const key=record2.trackById;return this.map.get(key).remove(record2)&&this.map.delete(key),record2}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function getPreviousIndex(item,addRemoveOffset,moveOffsets){const previousIndex=item.previousIndex;if(null===previousIndex)return previousIndex;let moveOffset=0;return moveOffsets&&previousIndex{if(insertBefore&&insertBefore.key===key)this._maybeAddToChanges(insertBefore,value),this._appendAfter=insertBefore,insertBefore=insertBefore._next;else{const record2=this._getOrCreateRecordForKey(key,value);insertBefore=this._insertBeforeOrAppend(insertBefore,record2)}}),insertBefore){insertBefore._prev&&(insertBefore._prev._next=null),this._removalsHead=insertBefore;for(let record2=insertBefore;null!==record2;record2=record2._nextRemoved)record2===this._mapHead&&(this._mapHead=null),this._records.delete(record2.key),record2._nextRemoved=record2._next,record2.previousValue=record2.currentValue,record2.currentValue=null,record2._prev=null,record2._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(before,record2){if(before){const prev=before._prev;return record2._next=before,record2._prev=prev,before._prev=record2,prev&&(prev._next=record2),before===this._mapHead&&(this._mapHead=record2),this._appendAfter=before,before}return this._appendAfter?(this._appendAfter._next=record2,record2._prev=this._appendAfter):this._mapHead=record2,this._appendAfter=record2,null}_getOrCreateRecordForKey(key,value){if(this._records.has(key)){const record3=this._records.get(key);this._maybeAddToChanges(record3,value);const prev=record3._prev,next=record3._next;return prev&&(prev._next=next),next&&(next._prev=prev),record3._next=null,record3._prev=null,record3}const record2=new KeyValueChangeRecord_(key);return this._records.set(key,record2),record2.currentValue=value,this._addToAdditions(record2),record2}_reset(){if(this.isDirty){let record2;for(this._previousMapHead=this._mapHead,record2=this._previousMapHead;null!==record2;record2=record2._next)record2._nextPrevious=record2._next;for(record2=this._changesHead;null!==record2;record2=record2._nextChanged)record2.previousValue=record2.currentValue;for(record2=this._additionsHead;null!=record2;record2=record2._nextAdded)record2.previousValue=record2.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(record2,newValue){Object.is(newValue,record2.currentValue)||(record2.previousValue=record2.currentValue,record2.currentValue=newValue,this._addToChanges(record2))}_addToAdditions(record2){null===this._additionsHead?this._additionsHead=this._additionsTail=record2:(this._additionsTail._nextAdded=record2,this._additionsTail=record2)}_addToChanges(record2){null===this._changesHead?this._changesHead=this._changesTail=record2:(this._changesTail._nextChanged=record2,this._changesTail=record2)}_forEach(obj,fn){obj instanceof Map?obj.forEach(fn):Object.keys(obj).forEach(k=>fn(obj[k],k))}}class KeyValueChangeRecord_{constructor(key){this.key=key,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function defaultIterableDiffersFactory(){return new IterableDiffers([new DefaultIterableDifferFactory])}let IterableDiffers=(()=>{class IterableDiffers2{static#_=this.\u0275prov=core_defineInjectable({token:IterableDiffers2,providedIn:"root",factory:defaultIterableDiffersFactory});constructor(factories){this.factories=factories}static create(factories,parent){if(null!=parent){const copied=parent.factories.slice();factories=factories.concat(copied)}return new IterableDiffers2(factories)}static extend(factories){return{provide:IterableDiffers2,useFactory:parent=>IterableDiffers2.create(factories,parent||defaultIterableDiffersFactory()),deps:[[IterableDiffers2,new core_SkipSelf,new core_Optional]]}}find(iterable){const factory2=this.factories.find(f=>f.supports(iterable));if(null!=factory2)return factory2;throw new RuntimeError(901,!1)}}return IterableDiffers2})();function defaultKeyValueDiffersFactory(){return new KeyValueDiffers([new DefaultKeyValueDifferFactory])}let KeyValueDiffers=(()=>{class KeyValueDiffers2{static#_=this.\u0275prov=core_defineInjectable({token:KeyValueDiffers2,providedIn:"root",factory:defaultKeyValueDiffersFactory});constructor(factories){this.factories=factories}static create(factories,parent){if(parent){const copied=parent.factories.slice();factories=factories.concat(copied)}return new KeyValueDiffers2(factories)}static extend(factories){return{provide:KeyValueDiffers2,useFactory:parent=>KeyValueDiffers2.create(factories,parent||defaultKeyValueDiffersFactory()),deps:[[KeyValueDiffers2,new core_SkipSelf,new core_Optional]]}}find(kv){const factory2=this.factories.find(f=>f.supports(kv));if(factory2)return factory2;throw new RuntimeError(901,!1)}}return KeyValueDiffers2})();const platformCore=createPlatformFactory(null,"core",[]);let ApplicationModule=(()=>{class ApplicationModule2{constructor(appRef){}static#_=this.\u0275fac=function(t){return new(t||ApplicationModule2)(\u0275\u0275inject(core_ApplicationRef))};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:ApplicationModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return ApplicationModule2})();function core_booleanAttribute(value){return"boolean"==typeof value?value:null!=value&&"false"!==value}function core_numberAttribute(value,fallbackValue=NaN){return isNaN(parseFloat(value))||isNaN(Number(value))?fallbackValue:Number(value)}const APP_EFFECT_SCHEDULER=new InjectionToken("",{providedIn:"root",factory:()=>core_inject(EffectScheduler)});let EffectScheduler=(()=>{class EffectScheduler2{static#_=this.\u0275prov=core_defineInjectable({token:EffectScheduler2,providedIn:"root",factory:()=>new ZoneAwareEffectScheduler})}return EffectScheduler2})();class ZoneAwareEffectScheduler{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=core_inject(PendingTasks),this.taskId=null}scheduleEffect(handle){if(this.enqueue(handle),null===this.taskId){const taskId=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(taskId),this.taskId=null})}}enqueue(handle){const zone=handle.creationZone;this.queues.has(zone)||this.queues.set(zone,new Set);const queue2=this.queues.get(zone);queue2.has(handle)||(this.queuedEffectCount++,queue2.add(handle))}flush(){for(;this.queuedEffectCount>0;)for(const[zone,queue2]of this.queues)null===zone?this.flushQueue(queue2):zone.run(()=>this.flushQueue(queue2))}flushQueue(queue2){for(const handle of queue2)queue2.delete(handle),this.queuedEffectCount--,handle.run()}}class EffectHandle{constructor(scheduler,effectFn,creationZone,destroyRef,injector,allowSignalWrites){this.scheduler=scheduler,this.effectFn=effectFn,this.creationZone=creationZone,this.injector=injector,this.watcher=function createWatch(fn,schedule,allowSignalWrites){const node2=Object.create(WATCH_NODE);allowSignalWrites&&(node2.consumerAllowSignalWrites=!0),node2.fn=fn,node2.schedule=schedule;const registerOnCleanup=cleanupFn=>{node2.cleanupFn=cleanupFn};return node2.ref={notify:()=>consumerMarkDirty(node2),run:()=>{if(null===node2.fn)return;if(function isInNotificationPhase(){return inNotificationPhase}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(node2.dirty=!1,node2.hasRun&&!consumerPollProducersForChange(node2))return;node2.hasRun=!0;const prevConsumer=consumerBeforeComputation(node2);try{node2.cleanupFn(),node2.cleanupFn=NOOP_CLEANUP_FN,node2.fn(registerOnCleanup)}finally{consumerAfterComputation(node2,prevConsumer)}},cleanup:()=>node2.cleanupFn(),destroy:()=>function destroyWatchNode(node3){(function isWatchNodeDestroyed(node3){return null===node3.fn&&null===node3.schedule})(node3)||(consumerDestroy(node3),node3.cleanupFn(),node3.fn=null,node3.schedule=null,node3.cleanupFn=NOOP_CLEANUP_FN)}(node2),[SIGNAL]:node2},node2.ref}(onCleanup=>this.runEffect(onCleanup),()=>this.schedule(),allowSignalWrites),this.unregisterOnDestroy=destroyRef?.onDestroy(()=>this.destroy())}runEffect(onCleanup){try{this.effectFn(onCleanup)}catch(err){this.injector.get(ErrorHandler,null,{optional:!0})?.handleError(err)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function effect(effectFn,options){performanceMarkFeature("NgSignals"),!options?.injector&&function assertInInjectionContext(debugFn){if(!isInInjectionContext())throw new RuntimeError(-203,!1)}();const injector=options?.injector??core_inject(core_Injector),destroyRef=!0!==options?.manualCleanup?injector.get(DestroyRef):null,handle=new EffectHandle(injector.get(APP_EFFECT_SCHEDULER),effectFn,typeof Zone>"u"?null:Zone.current,destroyRef,injector,options?.allowSignalWrites??!1),cdr=injector.get(core_ChangeDetectorRef,null,{optional:!0});return cdr&&8&cdr._lView[FLAGS]?(cdr._lView[EFFECTS_TO_SCHEDULE]??=[]).push(handle.watcher.notify):handle.watcher.notify(),handle}let _DOM=null;function getDOM(){return _DOM}class DomAdapter{}const common_DOCUMENT=new InjectionToken("");let PlatformLocation=(()=>{class PlatformLocation2{historyGo(relativePosition){throw new Error("")}static#_=this.\u0275fac=function(t){return new(t||PlatformLocation2)};static#_2=this.\u0275prov=core_defineInjectable({token:PlatformLocation2,factory:()=>core_inject(BrowserPlatformLocation),providedIn:"platform"})}return PlatformLocation2})(),BrowserPlatformLocation=(()=>{class BrowserPlatformLocation2 extends PlatformLocation{constructor(){super(),this._doc=core_inject(common_DOCUMENT),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return getDOM().getBaseHref(this._doc)}onPopState(fn){const window2=getDOM().getGlobalEventTarget(this._doc,"window");return window2.addEventListener("popstate",fn,!1),()=>window2.removeEventListener("popstate",fn)}onHashChange(fn){const window2=getDOM().getGlobalEventTarget(this._doc,"window");return window2.addEventListener("hashchange",fn,!1),()=>window2.removeEventListener("hashchange",fn)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(newPath){this._location.pathname=newPath}pushState(state2,title,url){this._history.pushState(state2,title,url)}replaceState(state2,title,url){this._history.replaceState(state2,title,url)}forward(){this._history.forward()}back(){this._history.back()}historyGo(relativePosition=0){this._history.go(relativePosition)}getState(){return this._history.state}static#_=this.\u0275fac=function(t){return new(t||BrowserPlatformLocation2)};static#_2=this.\u0275prov=core_defineInjectable({token:BrowserPlatformLocation2,factory:()=>new BrowserPlatformLocation2,providedIn:"platform"})}return BrowserPlatformLocation2})();function joinWithSlash(start2,end){if(0==start2.length)return end;if(0==end.length)return start2;let slashes=0;return start2.endsWith("/")&&slashes++,end.startsWith("/")&&slashes++,2==slashes?start2+end.substring(1):1==slashes?start2+end:start2+"/"+end}function stripTrailingSlash(url){const match2=url.match(/#|\?|$/),pathEndIdx=match2&&match2.index||url.length;return url.slice(0,pathEndIdx-("/"===url[pathEndIdx-1]?1:0))+url.slice(pathEndIdx)}function normalizeQueryParams(params){return params&&"?"!==params[0]?"?"+params:params}let common_LocationStrategy=(()=>{class LocationStrategy2{historyGo(relativePosition){throw new Error("")}static#_=this.\u0275fac=function(t){return new(t||LocationStrategy2)};static#_2=this.\u0275prov=core_defineInjectable({token:LocationStrategy2,factory:()=>core_inject(common_PathLocationStrategy),providedIn:"root"})}return LocationStrategy2})();const APP_BASE_HREF=new InjectionToken("");let common_PathLocationStrategy=(()=>{class PathLocationStrategy2 extends common_LocationStrategy{constructor(_platformLocation,href){super(),this._platformLocation=_platformLocation,this._removeListenerFns=[],this._baseHref=href??this._platformLocation.getBaseHrefFromDOM()??core_inject(common_DOCUMENT).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(fn){this._removeListenerFns.push(this._platformLocation.onPopState(fn),this._platformLocation.onHashChange(fn))}getBaseHref(){return this._baseHref}prepareExternalUrl(internal){return joinWithSlash(this._baseHref,internal)}path(includeHash=!1){const pathname=this._platformLocation.pathname+normalizeQueryParams(this._platformLocation.search),hash=this._platformLocation.hash;return hash&&includeHash?`${pathname}${hash}`:pathname}pushState(state2,title,url,queryParams){const externalUrl=this.prepareExternalUrl(url+normalizeQueryParams(queryParams));this._platformLocation.pushState(state2,title,externalUrl)}replaceState(state2,title,url,queryParams){const externalUrl=this.prepareExternalUrl(url+normalizeQueryParams(queryParams));this._platformLocation.replaceState(state2,title,externalUrl)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(relativePosition=0){this._platformLocation.historyGo?.(relativePosition)}static#_=this.\u0275fac=function(t){return new(t||PathLocationStrategy2)(\u0275\u0275inject(PlatformLocation),\u0275\u0275inject(APP_BASE_HREF,8))};static#_2=this.\u0275prov=core_defineInjectable({token:PathLocationStrategy2,factory:PathLocationStrategy2.\u0275fac,providedIn:"root"})}return PathLocationStrategy2})(),Location=(()=>{class Location2{constructor(locationStrategy){this._subject=new core_EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=locationStrategy;const baseHref=this._locationStrategy.getBaseHref();this._basePath=function _stripOrigin(baseHref){if(new RegExp("^(https?:)?//").test(baseHref)){const[,pathname]=baseHref.split(/\/\/[^\/]+/);return pathname}return baseHref}(stripTrailingSlash(_stripIndexHtml(baseHref))),this._locationStrategy.onPopState(ev=>{this._subject.emit({url:this.path(!0),pop:!0,state:ev.state,type:ev.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(includeHash=!1){return this.normalize(this._locationStrategy.path(includeHash))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(path,query2=""){return this.path()==this.normalize(path+normalizeQueryParams(query2))}normalize(url){return Location2.stripTrailingSlash(function _stripBasePath(basePath,url){if(!basePath||!url.startsWith(basePath))return url;const strippedUrl=url.substring(basePath.length);return""===strippedUrl||["/",";","?","#"].includes(strippedUrl[0])?strippedUrl:url}(this._basePath,_stripIndexHtml(url)))}prepareExternalUrl(url){return url&&"/"!==url[0]&&(url="/"+url),this._locationStrategy.prepareExternalUrl(url)}go(path,query2="",state2=null){this._locationStrategy.pushState(state2,"",path,query2),this._notifyUrlChangeListeners(this.prepareExternalUrl(path+normalizeQueryParams(query2)),state2)}replaceState(path,query2="",state2=null){this._locationStrategy.replaceState(state2,"",path,query2),this._notifyUrlChangeListeners(this.prepareExternalUrl(path+normalizeQueryParams(query2)),state2)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(relativePosition=0){this._locationStrategy.historyGo?.(relativePosition)}onUrlChange(fn){return this._urlChangeListeners.push(fn),this._urlChangeSubscription??=this.subscribe(v=>{this._notifyUrlChangeListeners(v.url,v.state)}),()=>{const fnIndex=this._urlChangeListeners.indexOf(fn);this._urlChangeListeners.splice(fnIndex,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(url="",state2){this._urlChangeListeners.forEach(fn=>fn(url,state2))}subscribe(onNext,onThrow,onReturn){return this._subject.subscribe({next:onNext,error:onThrow,complete:onReturn})}static#_=this.normalizeQueryParams=normalizeQueryParams;static#_2=this.joinWithSlash=joinWithSlash;static#_3=this.stripTrailingSlash=stripTrailingSlash;static#_4=this.\u0275fac=function(t){return new(t||Location2)(\u0275\u0275inject(common_LocationStrategy))};static#_5=this.\u0275prov=core_defineInjectable({token:Location2,factory:()=>function createLocation(){return new Location(\u0275\u0275inject(common_LocationStrategy))}(),providedIn:"root"})}return Location2})();function _stripIndexHtml(url){return url.replace(/\/index.html$/,"")}function parseCookieValue(cookieStr,name){name=encodeURIComponent(name);for(const cookie of cookieStr.split(";")){const eqIndex=cookie.indexOf("="),[cookieName,cookieValue]=-1==eqIndex?[cookie,""]:[cookie.slice(0,eqIndex),cookie.slice(eqIndex+1)];if(cookieName.trim()===name)return decodeURIComponent(cookieValue)}return null}const WS_REGEXP=/\s+/,common_EMPTY_ARRAY=[];let NgClass=(()=>{class NgClass2{constructor(_ngEl,_renderer){this._ngEl=_ngEl,this._renderer=_renderer,this.initialClasses=common_EMPTY_ARRAY,this.stateMap=new Map}set klass(value){this.initialClasses=null!=value?value.trim().split(WS_REGEXP):common_EMPTY_ARRAY}set ngClass(value){this.rawClass="string"==typeof value?value.trim().split(WS_REGEXP):value}ngDoCheck(){for(const klass of this.initialClasses)this._updateState(klass,!0);const rawClass=this.rawClass;if(Array.isArray(rawClass)||rawClass instanceof Set)for(const klass of rawClass)this._updateState(klass,!0);else if(null!=rawClass)for(const klass of Object.keys(rawClass))this._updateState(klass,!!rawClass[klass]);this._applyStateDiff()}_updateState(klass,nextEnabled){const state2=this.stateMap.get(klass);void 0!==state2?(state2.enabled!==nextEnabled&&(state2.changed=!0,state2.enabled=nextEnabled),state2.touched=!0):this.stateMap.set(klass,{enabled:nextEnabled,changed:!0,touched:!0})}_applyStateDiff(){for(const stateEntry of this.stateMap){const klass=stateEntry[0],state2=stateEntry[1];state2.changed?(this._toggleClass(klass,state2.enabled),state2.changed=!1):state2.touched||(state2.enabled&&this._toggleClass(klass,!1),this.stateMap.delete(klass)),state2.touched=!1}}_toggleClass(klass,enabled){(klass=klass.trim()).length>0&&klass.split(WS_REGEXP).forEach(klass2=>{enabled?this._renderer.addClass(this._ngEl.nativeElement,klass2):this._renderer.removeClass(this._ngEl.nativeElement,klass2)})}static#_=this.\u0275fac=function(t){return new(t||NgClass2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_Renderer2))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgClass2,selectors:[["","ngClass",""]],inputs:{klass:[InputFlags.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return NgClass2})();class NgForOfContext{constructor($implicit,ngForOf,index,count){this.$implicit=$implicit,this.ngForOf=ngForOf,this.index=index,this.count=count}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let NgForOf=(()=>{class NgForOf2{set ngForOf(ngForOf){this._ngForOf=ngForOf,this._ngForOfDirty=!0}set ngForTrackBy(fn){this._trackByFn=fn}get ngForTrackBy(){return this._trackByFn}constructor(_viewContainer,_template,_differs){this._viewContainer=_viewContainer,this._template=_template,this._differs=_differs,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(value){value&&(this._template=value)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const value=this._ngForOf;!this._differ&&value&&(this._differ=this._differs.find(value).create(this.ngForTrackBy))}if(this._differ){const changes=this._differ.diff(this._ngForOf);changes&&this._applyChanges(changes)}}_applyChanges(changes){const viewContainer=this._viewContainer;changes.forEachOperation((item,adjustedPreviousIndex,currentIndex)=>{if(null==item.previousIndex)viewContainer.createEmbeddedView(this._template,new NgForOfContext(item.item,this._ngForOf,-1,-1),null===currentIndex?void 0:currentIndex);else if(null==currentIndex)viewContainer.remove(null===adjustedPreviousIndex?void 0:adjustedPreviousIndex);else if(null!==adjustedPreviousIndex){const view=viewContainer.get(adjustedPreviousIndex);viewContainer.move(view,currentIndex),applyViewChange(view,item)}});for(let i=0,ilen=viewContainer.length;i{applyViewChange(viewContainer.get(record2.currentIndex),record2)})}static ngTemplateContextGuard(dir,ctx){return!0}static#_=this.\u0275fac=function(t){return new(t||NgForOf2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_TemplateRef),\u0275\u0275directiveInject(IterableDiffers))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgForOf2,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return NgForOf2})();function applyViewChange(view,record2){view.context.$implicit=record2.item}let NgIf=(()=>{class NgIf2{constructor(_viewContainer,templateRef){this._viewContainer=_viewContainer,this._context=new NgIfContext,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=templateRef}set ngIf(condition){this._context.$implicit=this._context.ngIf=condition,this._updateView()}set ngIfThen(templateRef){assertTemplate("ngIfThen",templateRef),this._thenTemplateRef=templateRef,this._thenViewRef=null,this._updateView()}set ngIfElse(templateRef){assertTemplate("ngIfElse",templateRef),this._elseTemplateRef=templateRef,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(dir,ctx){return!0}static#_=this.\u0275fac=function(t){return new(t||NgIf2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_TemplateRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgIf2,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return NgIf2})();class NgIfContext{constructor(){this.$implicit=null,this.ngIf=null}}function assertTemplate(property,templateRef){if(templateRef&&!templateRef.createEmbeddedView)throw new Error(`${property} must be a TemplateRef, but received '${stringify(templateRef)}'.`)}class SwitchView{constructor(_viewContainerRef,_templateRef){this._viewContainerRef=_viewContainerRef,this._templateRef=_templateRef,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(created){created&&!this._created?this.create():!created&&this._created&&this.destroy()}}let NgSwitch=(()=>{class NgSwitch2{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(newValue){this._ngSwitch=newValue,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(view){this._defaultViews.push(view)}_matchCase(value){const matched=value===this._ngSwitch;return this._lastCasesMatched||=matched,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),matched}_updateDefaultCases(useDefault){if(this._defaultViews.length>0&&useDefault!==this._defaultUsed){this._defaultUsed=useDefault;for(const defaultView of this._defaultViews)defaultView.enforceState(useDefault)}}static#_=this.\u0275fac=function(t){return new(t||NgSwitch2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgSwitch2,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return NgSwitch2})(),NgSwitchCase=(()=>{class NgSwitchCase2{constructor(viewContainer,templateRef,ngSwitch){this.ngSwitch=ngSwitch,ngSwitch._addCase(),this._view=new SwitchView(viewContainer,templateRef)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#_=this.\u0275fac=function(t){return new(t||NgSwitchCase2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_TemplateRef),\u0275\u0275directiveInject(NgSwitch,9))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgSwitchCase2,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return NgSwitchCase2})(),NgSwitchDefault=(()=>{class NgSwitchDefault2{constructor(viewContainer,templateRef,ngSwitch){ngSwitch._addDefault(new SwitchView(viewContainer,templateRef))}static#_=this.\u0275fac=function(t){return new(t||NgSwitchDefault2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_TemplateRef),\u0275\u0275directiveInject(NgSwitch,9))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgSwitchDefault2,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return NgSwitchDefault2})(),NgStyle=(()=>{class NgStyle2{constructor(_ngEl,_differs,_renderer){this._ngEl=_ngEl,this._differs=_differs,this._renderer=_renderer,this._ngStyle=null,this._differ=null}set ngStyle(values){this._ngStyle=values,!this._differ&&values&&(this._differ=this._differs.find(values).create())}ngDoCheck(){if(this._differ){const changes=this._differ.diff(this._ngStyle);changes&&this._applyChanges(changes)}}_setStyle(nameAndUnit,value){const[name,unit]=nameAndUnit.split("."),flags=-1===name.indexOf("-")?void 0:RendererStyleFlags2.DashCase;null!=value?this._renderer.setStyle(this._ngEl.nativeElement,name,unit?`${value}${unit}`:value,flags):this._renderer.removeStyle(this._ngEl.nativeElement,name,flags)}_applyChanges(changes){changes.forEachRemovedItem(record2=>this._setStyle(record2.key,null)),changes.forEachAddedItem(record2=>this._setStyle(record2.key,record2.currentValue)),changes.forEachChangedItem(record2=>this._setStyle(record2.key,record2.currentValue))}static#_=this.\u0275fac=function(t){return new(t||NgStyle2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(KeyValueDiffers),\u0275\u0275directiveInject(core_Renderer2))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgStyle2,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return NgStyle2})(),NgTemplateOutlet=(()=>{class NgTemplateOutlet2{constructor(_viewContainerRef){this._viewContainerRef=_viewContainerRef,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(changes){if(this._shouldRecreateView(changes)){const viewContainerRef=this._viewContainerRef;if(this._viewRef&&viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const viewContext=this._createContextForwardProxy();this._viewRef=viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,viewContext,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(changes){return!!changes.ngTemplateOutlet||!!changes.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(_target,prop2,newValue)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,prop2,newValue),get:(_target,prop2,receiver)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,prop2,receiver)}})}static#_=this.\u0275fac=function(t){return new(t||NgTemplateOutlet2)(\u0275\u0275directiveInject(core_ViewContainerRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgTemplateOutlet2,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature]})}return NgTemplateOutlet2})();let SlicePipe=(()=>{class SlicePipe2{transform(value,start2,end){if(null==value)return null;if(!this.supports(value))throw function invalidPipeArgumentError(type,value){return new RuntimeError(2100,!1)}();return value.slice(start2,end)}supports(obj){return"string"==typeof obj||Array.isArray(obj)}static#_=this.\u0275fac=function(t){return new(t||SlicePipe2)};static#_2=this.\u0275pipe=\u0275\u0275definePipe({name:"slice",type:SlicePipe2,pure:!1,standalone:!0})}return SlicePipe2})(),common_CommonModule=(()=>{class CommonModule2{static#_=this.\u0275fac=function(t){return new(t||CommonModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:CommonModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return CommonModule2})();const PLATFORM_BROWSER_ID="browser";function common_isPlatformBrowser(platformId){return platformId===PLATFORM_BROWSER_ID}function common_isPlatformServer(platformId){return"server"===platformId}class XhrFactory{}class GenericBrowserDomAdapter extends DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class BrowserDomAdapter extends GenericBrowserDomAdapter{static makeCurrent(){!function setRootDomAdapter(adapter){_DOM??=adapter}(new BrowserDomAdapter)}onAndCancel(el,evt,listener){return el.addEventListener(evt,listener),()=>{el.removeEventListener(evt,listener)}}dispatchEvent(el,evt){el.dispatchEvent(evt)}remove(node2){node2.parentNode&&node2.parentNode.removeChild(node2)}createElement(tagName,doc){return(doc=doc||this.getDefaultDocument()).createElement(tagName)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(node2){return node2.nodeType===Node.ELEMENT_NODE}isShadowRoot(node2){return node2 instanceof DocumentFragment}getGlobalEventTarget(doc,target){return"window"===target?window:"document"===target?doc:"body"===target?doc.body:null}getBaseHref(doc){const href=function getBaseElementHref(){return baseElement=baseElement||document.querySelector("base"),baseElement?baseElement.getAttribute("href"):null}();return null==href?null:function relativePath(url){return new URL(url,document.baseURI).pathname}(href)}resetBaseElement(){baseElement=null}getUserAgent(){return window.navigator.userAgent}getCookie(name){return parseCookieValue(document.cookie,name)}}let baseElement=null,BrowserXhr=(()=>{class BrowserXhr2{build(){return new XMLHttpRequest}static#_=this.\u0275fac=function(t){return new(t||BrowserXhr2)};static#_2=this.\u0275prov=core_defineInjectable({token:BrowserXhr2,factory:BrowserXhr2.\u0275fac})}return BrowserXhr2})();const EVENT_MANAGER_PLUGINS=new InjectionToken("");let EventManager=(()=>{class EventManager2{constructor(plugins,_zone){this._zone=_zone,this._eventNameToPlugin=new Map,plugins.forEach(plugin=>{plugin.manager=this}),this._plugins=plugins.slice().reverse()}addEventListener(element,eventName,handler){return this._findPluginFor(eventName).addEventListener(element,eventName,handler)}getZone(){return this._zone}_findPluginFor(eventName){let plugin=this._eventNameToPlugin.get(eventName);if(plugin)return plugin;if(plugin=this._plugins.find(plugin2=>plugin2.supports(eventName)),!plugin)throw new RuntimeError(5101,!1);return this._eventNameToPlugin.set(eventName,plugin),plugin}static#_=this.\u0275fac=function(t){return new(t||EventManager2)(\u0275\u0275inject(EVENT_MANAGER_PLUGINS),\u0275\u0275inject(core_NgZone))};static#_2=this.\u0275prov=core_defineInjectable({token:EventManager2,factory:EventManager2.\u0275fac})}return EventManager2})();class EventManagerPlugin{constructor(_doc){this._doc=_doc}}let SharedStylesHost=(()=>{class SharedStylesHost2{constructor(doc,appId,nonce,platformId={}){this.doc=doc,this.appId=appId,this.nonce=nonce,this.platformId=platformId,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=common_isPlatformServer(platformId),this.resetHostNodes()}addStyles(styles){for(const style2 of styles)1===this.changeUsageCount(style2,1)&&this.onStyleAdded(style2)}removeStyles(styles){for(const style2 of styles)this.changeUsageCount(style2,-1)<=0&&this.onStyleRemoved(style2)}ngOnDestroy(){const styleNodesInDOM=this.styleNodesInDOM;styleNodesInDOM&&(styleNodesInDOM.forEach(node2=>node2.remove()),styleNodesInDOM.clear());for(const style2 of this.getAllStyles())this.onStyleRemoved(style2);this.resetHostNodes()}addHost(hostNode){this.hostNodes.add(hostNode);for(const style2 of this.getAllStyles())this.addStyleToHost(hostNode,style2)}removeHost(hostNode){this.hostNodes.delete(hostNode)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(style2){for(const host of this.hostNodes)this.addStyleToHost(host,style2)}onStyleRemoved(style2){const styleRef=this.styleRef;styleRef.get(style2)?.elements?.forEach(node2=>node2.remove()),styleRef.delete(style2)}collectServerRenderedStyles(){const styles=this.doc.head?.querySelectorAll(`style[ng-app-id="${this.appId}"]`);if(styles?.length){const styleMap=new Map;return styles.forEach(style2=>{null!=style2.textContent&&styleMap.set(style2.textContent,style2)}),styleMap}return null}changeUsageCount(style2,delta){const map2=this.styleRef;if(map2.has(style2)){const styleRefValue=map2.get(style2);return styleRefValue.usage+=delta,styleRefValue.usage}return map2.set(style2,{usage:delta,elements:[]}),delta}getStyleElement(host,style2){const styleNodesInDOM=this.styleNodesInDOM,styleEl=styleNodesInDOM?.get(style2);if(styleEl?.parentNode===host)return styleNodesInDOM.delete(style2),styleEl.removeAttribute("ng-app-id"),styleEl;{const styleEl2=this.doc.createElement("style");return this.nonce&&styleEl2.setAttribute("nonce",this.nonce),styleEl2.textContent=style2,this.platformIsServer&&styleEl2.setAttribute("ng-app-id",this.appId),host.appendChild(styleEl2),styleEl2}}addStyleToHost(host,style2){const styleEl=this.getStyleElement(host,style2),styleRef=this.styleRef,styleElRef=styleRef.get(style2)?.elements;styleElRef?styleElRef.push(styleEl):styleRef.set(style2,{elements:[styleEl],usage:1})}resetHostNodes(){const hostNodes=this.hostNodes;hostNodes.clear(),hostNodes.add(this.doc.head)}static#_=this.\u0275fac=function(t){return new(t||SharedStylesHost2)(\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(APP_ID),\u0275\u0275inject(CSP_NONCE,8),\u0275\u0275inject(core_PLATFORM_ID))};static#_2=this.\u0275prov=core_defineInjectable({token:SharedStylesHost2,factory:SharedStylesHost2.\u0275fac})}return SharedStylesHost2})();const NAMESPACE_URIS={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},COMPONENT_REGEX=/%COMP%/g,REMOVE_STYLES_ON_COMPONENT_DESTROY=new InjectionToken("",{providedIn:"root",factory:()=>!0});function shimStylesContent(compId,styles){return styles.map(s=>s.replace(COMPONENT_REGEX,compId))}let DomRendererFactory2=(()=>{class DomRendererFactory22{constructor(eventManager,sharedStylesHost,appId,removeStylesOnCompDestroy,doc,platformId,ngZone,nonce=null){this.eventManager=eventManager,this.sharedStylesHost=sharedStylesHost,this.appId=appId,this.removeStylesOnCompDestroy=removeStylesOnCompDestroy,this.doc=doc,this.platformId=platformId,this.ngZone=ngZone,this.nonce=nonce,this.rendererByCompId=new Map,this.platformIsServer=common_isPlatformServer(platformId),this.defaultRenderer=new DefaultDomRenderer2(eventManager,doc,ngZone,this.platformIsServer)}createRenderer(element,type){if(!element||!type)return this.defaultRenderer;this.platformIsServer&&type.encapsulation===ViewEncapsulation$1.ShadowDom&&(type={...type,encapsulation:ViewEncapsulation$1.Emulated});const renderer=this.getOrCreateRenderer(element,type);return renderer instanceof EmulatedEncapsulationDomRenderer2?renderer.applyToHost(element):renderer instanceof NoneEncapsulationDomRenderer&&renderer.applyStyles(),renderer}getOrCreateRenderer(element,type){const rendererByCompId=this.rendererByCompId;let renderer=rendererByCompId.get(type.id);if(!renderer){const doc=this.doc,ngZone=this.ngZone,eventManager=this.eventManager,sharedStylesHost=this.sharedStylesHost,removeStylesOnCompDestroy=this.removeStylesOnCompDestroy,platformIsServer=this.platformIsServer;switch(type.encapsulation){case ViewEncapsulation$1.Emulated:renderer=new EmulatedEncapsulationDomRenderer2(eventManager,sharedStylesHost,type,this.appId,removeStylesOnCompDestroy,doc,ngZone,platformIsServer);break;case ViewEncapsulation$1.ShadowDom:return new ShadowDomRenderer(eventManager,sharedStylesHost,element,type,doc,ngZone,this.nonce,platformIsServer);default:renderer=new NoneEncapsulationDomRenderer(eventManager,sharedStylesHost,type,removeStylesOnCompDestroy,doc,ngZone,platformIsServer)}rendererByCompId.set(type.id,renderer)}return renderer}ngOnDestroy(){this.rendererByCompId.clear()}static#_=this.\u0275fac=function(t){return new(t||DomRendererFactory22)(\u0275\u0275inject(EventManager),\u0275\u0275inject(SharedStylesHost),\u0275\u0275inject(APP_ID),\u0275\u0275inject(REMOVE_STYLES_ON_COMPONENT_DESTROY),\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(core_PLATFORM_ID),\u0275\u0275inject(core_NgZone),\u0275\u0275inject(CSP_NONCE))};static#_2=this.\u0275prov=core_defineInjectable({token:DomRendererFactory22,factory:DomRendererFactory22.\u0275fac})}return DomRendererFactory22})();class DefaultDomRenderer2{constructor(eventManager,doc,ngZone,platformIsServer){this.eventManager=eventManager,this.doc=doc,this.ngZone=ngZone,this.platformIsServer=platformIsServer,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(name,namespace){return namespace?this.doc.createElementNS(NAMESPACE_URIS[namespace]||namespace,name):this.doc.createElement(name)}createComment(value){return this.doc.createComment(value)}createText(value){return this.doc.createTextNode(value)}appendChild(parent,newChild){(platform_browser_isTemplateNode(parent)?parent.content:parent).appendChild(newChild)}insertBefore(parent,newChild,refChild){parent&&(platform_browser_isTemplateNode(parent)?parent.content:parent).insertBefore(newChild,refChild)}removeChild(parent,oldChild){parent&&parent.removeChild(oldChild)}selectRootElement(selectorOrNode,preserveContent){let el="string"==typeof selectorOrNode?this.doc.querySelector(selectorOrNode):selectorOrNode;if(!el)throw new RuntimeError(-5104,!1);return preserveContent||(el.textContent=""),el}parentNode(node2){return node2.parentNode}nextSibling(node2){return node2.nextSibling}setAttribute(el,name,value,namespace){if(namespace){name=namespace+":"+name;const namespaceUri=NAMESPACE_URIS[namespace];namespaceUri?el.setAttributeNS(namespaceUri,name,value):el.setAttribute(name,value)}else el.setAttribute(name,value)}removeAttribute(el,name,namespace){if(namespace){const namespaceUri=NAMESPACE_URIS[namespace];namespaceUri?el.removeAttributeNS(namespaceUri,name):el.removeAttribute(`${namespace}:${name}`)}else el.removeAttribute(name)}addClass(el,name){el.classList.add(name)}removeClass(el,name){el.classList.remove(name)}setStyle(el,style2,value,flags){flags&(RendererStyleFlags2.DashCase|RendererStyleFlags2.Important)?el.style.setProperty(style2,value,flags&RendererStyleFlags2.Important?"important":""):el.style[style2]=value}removeStyle(el,style2,flags){flags&RendererStyleFlags2.DashCase?el.style.removeProperty(style2):el.style[style2]=""}setProperty(el,name,value){null!=el&&(el[name]=value)}setValue(node2,value){node2.nodeValue=value}listen(target,event,callback){if("string"==typeof target&&!(target=getDOM().getGlobalEventTarget(this.doc,target)))throw new Error(`Unsupported event target ${target} for event ${event}`);return this.eventManager.addEventListener(target,event,this.decoratePreventDefault(callback))}decoratePreventDefault(eventHandler){return event=>{if("__ngUnwrap__"===event)return eventHandler;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>eventHandler(event)):eventHandler(event))&&event.preventDefault()}}}function platform_browser_isTemplateNode(node2){return"TEMPLATE"===node2.tagName&&void 0!==node2.content}class ShadowDomRenderer extends DefaultDomRenderer2{constructor(eventManager,sharedStylesHost,hostEl,component,doc,ngZone,nonce,platformIsServer){super(eventManager,doc,ngZone,platformIsServer),this.sharedStylesHost=sharedStylesHost,this.hostEl=hostEl,this.shadowRoot=hostEl.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const styles=shimStylesContent(component.id,component.styles);for(const style2 of styles){const styleEl=document.createElement("style");nonce&&styleEl.setAttribute("nonce",nonce),styleEl.textContent=style2,this.shadowRoot.appendChild(styleEl)}}nodeOrShadowRoot(node2){return node2===this.hostEl?this.shadowRoot:node2}appendChild(parent,newChild){return super.appendChild(this.nodeOrShadowRoot(parent),newChild)}insertBefore(parent,newChild,refChild){return super.insertBefore(this.nodeOrShadowRoot(parent),newChild,refChild)}removeChild(parent,oldChild){return super.removeChild(this.nodeOrShadowRoot(parent),oldChild)}parentNode(node2){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node2)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class NoneEncapsulationDomRenderer extends DefaultDomRenderer2{constructor(eventManager,sharedStylesHost,component,removeStylesOnCompDestroy,doc,ngZone,platformIsServer,compId){super(eventManager,doc,ngZone,platformIsServer),this.sharedStylesHost=sharedStylesHost,this.removeStylesOnCompDestroy=removeStylesOnCompDestroy,this.styles=compId?shimStylesContent(compId,component.styles):component.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer{constructor(eventManager,sharedStylesHost,component,appId,removeStylesOnCompDestroy,doc,ngZone,platformIsServer){const compId=appId+"-"+component.id;super(eventManager,sharedStylesHost,component,removeStylesOnCompDestroy,doc,ngZone,platformIsServer,compId),this.contentAttr=function shimContentAttribute(componentShortId){return"_ngcontent-%COMP%".replace(COMPONENT_REGEX,componentShortId)}(compId),this.hostAttr=function shimHostAttribute(componentShortId){return"_nghost-%COMP%".replace(COMPONENT_REGEX,componentShortId)}(compId)}applyToHost(element){this.applyStyles(),this.setAttribute(element,this.hostAttr,"")}createElement(parent,name){const el=super.createElement(parent,name);return super.setAttribute(el,this.contentAttr,""),el}}let DomEventsPlugin=(()=>{class DomEventsPlugin2 extends EventManagerPlugin{constructor(doc){super(doc)}supports(eventName){return!0}addEventListener(element,eventName,handler){return element.addEventListener(eventName,handler,!1),()=>this.removeEventListener(element,eventName,handler)}removeEventListener(target,eventName,callback){return target.removeEventListener(eventName,callback)}static#_=this.\u0275fac=function(t){return new(t||DomEventsPlugin2)(\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:DomEventsPlugin2,factory:DomEventsPlugin2.\u0275fac})}return DomEventsPlugin2})();const MODIFIER_KEYS=["alt","control","meta","shift"],_keyMap={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},MODIFIER_KEY_GETTERS={alt:event=>event.altKey,control:event=>event.ctrlKey,meta:event=>event.metaKey,shift:event=>event.shiftKey};let KeyEventsPlugin=(()=>{class KeyEventsPlugin2 extends EventManagerPlugin{constructor(doc){super(doc)}supports(eventName){return null!=KeyEventsPlugin2.parseEventName(eventName)}addEventListener(element,eventName,handler){const parsedEvent=KeyEventsPlugin2.parseEventName(eventName),outsideHandler=KeyEventsPlugin2.eventCallback(parsedEvent.fullKey,handler,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>getDOM().onAndCancel(element,parsedEvent.domEventName,outsideHandler))}static parseEventName(eventName){const parts=eventName.toLowerCase().split("."),domEventName=parts.shift();if(0===parts.length||"keydown"!==domEventName&&"keyup"!==domEventName)return null;const key=KeyEventsPlugin2._normalizeKey(parts.pop());let fullKey="",codeIX=parts.indexOf("code");if(codeIX>-1&&(parts.splice(codeIX,1),fullKey="code."),MODIFIER_KEYS.forEach(modifierName=>{const index=parts.indexOf(modifierName);index>-1&&(parts.splice(index,1),fullKey+=modifierName+".")}),fullKey+=key,0!=parts.length||0===key.length)return null;const result={};return result.domEventName=domEventName,result.fullKey=fullKey,result}static matchEventFullKeyCode(event,fullKeyCode){let keycode=_keyMap[event.key]||event.key,key="";return fullKeyCode.indexOf("code.")>-1&&(keycode=event.code,key="code."),!(null==keycode||!keycode)&&(keycode=keycode.toLowerCase()," "===keycode?keycode="space":"."===keycode&&(keycode="dot"),MODIFIER_KEYS.forEach(modifierName=>{modifierName!==keycode&&(0,MODIFIER_KEY_GETTERS[modifierName])(event)&&(key+=modifierName+".")}),key+=keycode,key===fullKeyCode)}static eventCallback(fullKey,handler,zone){return event=>{KeyEventsPlugin2.matchEventFullKeyCode(event,fullKey)&&zone.runGuarded(()=>handler(event))}}static _normalizeKey(keyName){return"esc"===keyName?"escape":keyName}static#_=this.\u0275fac=function(t){return new(t||KeyEventsPlugin2)(\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:KeyEventsPlugin2,factory:KeyEventsPlugin2.\u0275fac})}return KeyEventsPlugin2})();const platformBrowser=createPlatformFactory(platformCore,"browser",[{provide:core_PLATFORM_ID,useValue:PLATFORM_BROWSER_ID},{provide:PLATFORM_INITIALIZER,useValue:function initDomAdapter(){BrowserDomAdapter.makeCurrent()},multi:!0},{provide:common_DOCUMENT,useFactory:function _document(){return function setDocument(document2){core_DOCUMENT=document2}(document),document},deps:[]}]),BROWSER_MODULE_PROVIDERS_MARKER=new InjectionToken(""),TESTABILITY_PROVIDERS=[{provide:TESTABILITY_GETTER,useClass:class BrowserGetTestability{addToWindow(registry){_global.getAngularTestability=(elem,findInAncestors=!0)=>{const testability=registry.findTestabilityInTree(elem,findInAncestors);if(null==testability)throw new RuntimeError(5103,!1);return testability},_global.getAllAngularTestabilities=()=>registry.getAllTestabilities(),_global.getAllAngularRootElements=()=>registry.getAllRootElements(),_global.frameworkStabilizers||(_global.frameworkStabilizers=[]),_global.frameworkStabilizers.push(callback=>{const testabilities=_global.getAllAngularTestabilities();let count=testabilities.length;const decrement=function(){count--,0==count&&callback()};testabilities.forEach(testability=>{testability.whenStable(decrement)})})}findTestabilityInTree(registry,elem,findInAncestors){return null==elem?null:registry.getTestability(elem)??(findInAncestors?getDOM().isShadowRoot(elem)?this.findTestabilityInTree(registry,elem.host,!0):this.findTestabilityInTree(registry,elem.parentElement,!0):null)}},deps:[]},{provide:TESTABILITY,useClass:Testability,deps:[core_NgZone,TestabilityRegistry,TESTABILITY_GETTER]},{provide:Testability,useClass:Testability,deps:[core_NgZone,TestabilityRegistry,TESTABILITY_GETTER]}],BROWSER_MODULE_PROVIDERS=[{provide:INJECTOR_SCOPE,useValue:"root"},{provide:ErrorHandler,useFactory:function errorHandler(){return new ErrorHandler},deps:[]},{provide:EVENT_MANAGER_PLUGINS,useClass:DomEventsPlugin,multi:!0,deps:[common_DOCUMENT,core_NgZone,core_PLATFORM_ID]},{provide:EVENT_MANAGER_PLUGINS,useClass:KeyEventsPlugin,multi:!0,deps:[common_DOCUMENT]},DomRendererFactory2,SharedStylesHost,EventManager,{provide:RendererFactory2,useExisting:DomRendererFactory2},{provide:XhrFactory,useClass:BrowserXhr,deps:[]},[]];let platform_browser_BrowserModule=(()=>{class BrowserModule2{constructor(providersAlreadyPresent){}static withServerTransition(params){return{ngModule:BrowserModule2,providers:[{provide:APP_ID,useValue:params.appId}]}}static#_=this.\u0275fac=function(t){return new(t||BrowserModule2)(\u0275\u0275inject(BROWSER_MODULE_PROVIDERS_MARKER,12))};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:BrowserModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[...BROWSER_MODULE_PROVIDERS,...TESTABILITY_PROVIDERS],imports:[common_CommonModule,ApplicationModule]})}return BrowserModule2})(),DomSanitizer=(()=>{class DomSanitizer2{static#_=this.\u0275fac=function(t){return new(t||DomSanitizer2)};static#_2=this.\u0275prov=core_defineInjectable({token:DomSanitizer2,factory:function(t){let r3=null;return r3=t?new(t||DomSanitizer2):\u0275\u0275inject(DomSanitizerImpl),r3},providedIn:"root"})}return DomSanitizer2})(),DomSanitizerImpl=(()=>{class DomSanitizerImpl2 extends DomSanitizer{constructor(_doc){super(),this._doc=_doc}sanitize(ctx,value){if(null==value)return null;switch(ctx){case SecurityContext.NONE:return value;case SecurityContext.HTML:return allowSanitizationBypassAndThrow(value,"HTML")?unwrapSafeValue(value):_sanitizeHtml(this._doc,String(value)).toString();case SecurityContext.STYLE:return allowSanitizationBypassAndThrow(value,"Style")?unwrapSafeValue(value):value;case SecurityContext.SCRIPT:if(allowSanitizationBypassAndThrow(value,"Script"))return unwrapSafeValue(value);throw new RuntimeError(5200,!1);case SecurityContext.URL:return allowSanitizationBypassAndThrow(value,"URL")?unwrapSafeValue(value):_sanitizeUrl(String(value));case SecurityContext.RESOURCE_URL:if(allowSanitizationBypassAndThrow(value,"ResourceURL"))return unwrapSafeValue(value);throw new RuntimeError(5201,!1);default:throw new RuntimeError(5202,!1)}}bypassSecurityTrustHtml(value){return function bypassSanitizationTrustHtml(trustedHtml){return new SafeHtmlImpl(trustedHtml)}(value)}bypassSecurityTrustStyle(value){return function bypassSanitizationTrustStyle(trustedStyle){return new SafeStyleImpl(trustedStyle)}(value)}bypassSecurityTrustScript(value){return function bypassSanitizationTrustScript(trustedScript){return new SafeScriptImpl(trustedScript)}(value)}bypassSecurityTrustUrl(value){return function bypassSanitizationTrustUrl(trustedUrl){return new SafeUrlImpl(trustedUrl)}(value)}bypassSecurityTrustResourceUrl(value){return function bypassSanitizationTrustResourceUrl(trustedResourceUrl){return new SafeResourceUrlImpl(trustedResourceUrl)}(value)}static#_=this.\u0275fac=function(t){return new(t||DomSanitizerImpl2)(\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:DomSanitizerImpl2,factory:DomSanitizerImpl2.\u0275fac,providedIn:"root"})}return DomSanitizerImpl2})();function isGlobalObj(obj){return obj&&obj.Math==Math?obj:void 0}const GLOBAL_OBJ="object"==typeof globalThis&&isGlobalObj(globalThis)||"object"==typeof window&&isGlobalObj(window)||"object"==typeof self&&isGlobalObj(self)||"object"==typeof global&&isGlobalObj(global)||function(){return this}()||{};function getGlobalObject(){return GLOBAL_OBJ}function getGlobalSingleton(name,creator,obj){const gbl=obj||GLOBAL_OBJ,__SENTRY__=gbl.__SENTRY__=gbl.__SENTRY__||{};return __SENTRY__[name]||(__SENTRY__[name]=creator())}const DEFAULT_ENVIRONMENT="production",objectToString=Object.prototype.toString;function isError(wat){switch(objectToString.call(wat)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return isInstanceOf(wat,Error)}}function isBuiltin(wat,className){return objectToString.call(wat)===`[object ${className}]`}function isErrorEvent(wat){return isBuiltin(wat,"ErrorEvent")}function isDOMError(wat){return isBuiltin(wat,"DOMError")}function isString(wat){return isBuiltin(wat,"String")}function isParameterizedString(wat){return"object"==typeof wat&&null!==wat&&"__sentry_template_string__"in wat&&"__sentry_template_values__"in wat}function is_isPrimitive(wat){return null===wat||isParameterizedString(wat)||"object"!=typeof wat&&"function"!=typeof wat}function isPlainObject(wat){return isBuiltin(wat,"Object")}function isEvent(wat){return typeof Event<"u"&&isInstanceOf(wat,Event)}function is_isThenable(wat){return!(!wat||!wat.then||"function"!=typeof wat.then)}function is_isNaN(wat){return"number"==typeof wat&&wat!=wat}function isInstanceOf(wat,base){try{return wat instanceof base}catch{return!1}}function isVueViewModel(wat){return!("object"!=typeof wat||null===wat||!wat.__isVue&&!wat._isVue)}const browser_WINDOW=getGlobalObject(),DEFAULT_MAX_STRING_LENGTH=80;function htmlTreeAsString(elem,options={}){if(!elem)return"";try{let currentElem=elem;const MAX_TRAVERSE_HEIGHT=5,out=[];let height=0,len=0;const separator=" > ",sepLength=separator.length;let nextStr;const keyAttrs=Array.isArray(options)?options:options.keyAttrs,maxStringLength=!Array.isArray(options)&&options.maxStringLength||DEFAULT_MAX_STRING_LENGTH;for(;currentElem&&height++1&&len+out.length*sepLength+nextStr.length>=maxStringLength));)out.push(nextStr),len+=nextStr.length,currentElem=currentElem.parentNode;return out.reverse().join(separator)}catch{return""}}function _htmlElementAsString(el,keyAttrs){const elem=el,out=[];let className,classes,key,attr,i;if(!elem||!elem.tagName)return"";if(browser_WINDOW.HTMLElement&&elem instanceof HTMLElement&&elem.dataset&&elem.dataset.sentryComponent)return elem.dataset.sentryComponent;out.push(elem.tagName.toLowerCase());const keyAttrPairs=keyAttrs&&keyAttrs.length?keyAttrs.filter(keyAttr=>elem.getAttribute(keyAttr)).map(keyAttr=>[keyAttr,elem.getAttribute(keyAttr)]):null;if(keyAttrPairs&&keyAttrPairs.length)keyAttrPairs.forEach(keyAttrPair=>{out.push(`[${keyAttrPair[0]}="${keyAttrPair[1]}"]`)});else if(elem.id&&out.push(`#${elem.id}`),className=elem.className,className&&isString(className))for(classes=className.split(/\s+/),i=0;i"u"||__SENTRY_DEBUG__,CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(callback){if(!("console"in GLOBAL_OBJ))return callback();const console2=GLOBAL_OBJ.console,wrappedFuncs={},wrappedLevels=Object.keys(originalConsoleMethods);wrappedLevels.forEach(level=>{const originalConsoleMethod=originalConsoleMethods[level];wrappedFuncs[level]=console2[level],console2[level]=originalConsoleMethod});try{return callback()}finally{wrappedLevels.forEach(level=>{console2[level]=wrappedFuncs[level]})}}const logger_logger=function makeLogger(){let enabled=!1;const logger2={enable:()=>{enabled=!0},disable:()=>{enabled=!1},isEnabled:()=>enabled};return CONSOLE_LEVELS.forEach(debug_build_DEBUG_BUILD?name=>{logger2[name]=(...args)=>{enabled&&consoleSandbox(()=>{GLOBAL_OBJ.console[name](`Sentry Logger [${name}]:`,...args)})}}:name=>{logger2[name]=()=>{}}),logger2}();function truncate(str,max=0){return"string"!=typeof str||0===max||str.length<=max?str:`${str.slice(0,max)}...`}function safeJoin(input2,delimiter){if(!Array.isArray(input2))return"";const output2=[];for(let i=0;ifunction isMatchingPattern(value,pattern,requireExactStringMatch=!1){return!!isString(value)&&(function isRegExp(wat){return isBuiltin(wat,"RegExp")}(pattern)?pattern.test(value):!!isString(pattern)&&(requireExactStringMatch?value===pattern:value.includes(pattern)))}(testString,pattern,requireExactStringMatch))}function fill(source,name,replacementFactory){if(!(name in source))return;const original=source[name],wrapped=replacementFactory(original);"function"==typeof wrapped&&markFunctionWrapped(wrapped,original),source[name]=wrapped}function addNonEnumerableProperty(obj,name,value){try{Object.defineProperty(obj,name,{value,writable:!0,configurable:!0})}catch{debug_build_DEBUG_BUILD&&logger_logger.log(`Failed to add non-enumerable property "${name}" to object`,obj)}}function markFunctionWrapped(wrapped,original){try{wrapped.prototype=original.prototype=original.prototype||{},addNonEnumerableProperty(wrapped,"__sentry_original__",original)}catch{}}function getOriginalFunction(func){return func.__sentry_original__}function convertToPlainObject(value){if(isError(value))return{message:value.message,name:value.name,stack:value.stack,...getOwnProperties(value)};if(isEvent(value)){const newObj={type:value.type,target:serializeEventTarget(value.target),currentTarget:serializeEventTarget(value.currentTarget),...getOwnProperties(value)};return typeof CustomEvent<"u"&&isInstanceOf(value,CustomEvent)&&(newObj.detail=value.detail),newObj}return value}function serializeEventTarget(target){try{return function isElement(wat){return typeof Element<"u"&&isInstanceOf(wat,Element)}(target)?htmlTreeAsString(target):Object.prototype.toString.call(target)}catch{return""}}function getOwnProperties(obj){if("object"==typeof obj&&null!==obj){const extractedProps={};for(const property in obj)Object.prototype.hasOwnProperty.call(obj,property)&&(extractedProps[property]=obj[property]);return extractedProps}return{}}function object_dropUndefinedKeys(inputValue){return _dropUndefinedKeys(inputValue,new Map)}function _dropUndefinedKeys(inputValue,memoizationMap){if(function isPojo(input2){if(!isPlainObject(input2))return!1;try{const name=Object.getPrototypeOf(input2).constructor.name;return!name||"Object"===name}catch{return!0}}(inputValue)){const memoVal=memoizationMap.get(inputValue);if(void 0!==memoVal)return memoVal;const returnValue={};memoizationMap.set(inputValue,returnValue);for(const key of Object.keys(inputValue))typeof inputValue[key]<"u"&&(returnValue[key]=_dropUndefinedKeys(inputValue[key],memoizationMap));return returnValue}if(Array.isArray(inputValue)){const memoVal=memoizationMap.get(inputValue);if(void 0!==memoVal)return memoVal;const returnValue=[];return memoizationMap.set(inputValue,returnValue),inputValue.forEach(item=>{returnValue.push(_dropUndefinedKeys(item,memoizationMap))}),returnValue}return inputValue}function misc_uuid4(){const crypto=GLOBAL_OBJ.crypto||GLOBAL_OBJ.msCrypto;let getRandomByte=()=>16*Math.random();try{if(crypto&&crypto.randomUUID)return crypto.randomUUID().replace(/-/g,"");crypto&&crypto.getRandomValues&&(getRandomByte=()=>{const typedArray=new Uint8Array(1);return crypto.getRandomValues(typedArray),typedArray[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,c=>(c^(15&getRandomByte())>>c/4).toString(16))}function getFirstException(event){return event.exception&&event.exception.values?event.exception.values[0]:void 0}function getEventDescription(event){const{message,event_id:eventId}=event;if(message)return message;const firstException=getFirstException(event);return firstException?firstException.type&&firstException.value?`${firstException.type}: ${firstException.value}`:firstException.type||firstException.value||eventId||"":eventId||""}function addExceptionTypeValue(event,value,type){const exception=event.exception=event.exception||{},values=exception.values=exception.values||[],firstException=values[0]=values[0]||{};firstException.value||(firstException.value=value||""),firstException.type||(firstException.type=type||"Error")}function addExceptionMechanism(event,newMechanism){const firstException=getFirstException(event);if(!firstException)return;const currentMechanism=firstException.mechanism;if(firstException.mechanism={type:"generic",handled:!0,...currentMechanism,...newMechanism},newMechanism&&"data"in newMechanism){const mergedData={...currentMechanism&¤tMechanism.data,...newMechanism.data};firstException.mechanism.data=mergedData}}function checkOrSetAlreadyCaught(exception){if(exception&&exception.__sentry_captured__)return!0;try{addNonEnumerableProperty(exception,"__sentry_captured__",!0)}catch{}return!1}function arrayify(maybeArray){return Array.isArray(maybeArray)?maybeArray:[maybeArray]}const ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}const time_timestampInSeconds=function createUnixTimestampInSecondsFunc(){const{performance:performance2}=GLOBAL_OBJ;if(!performance2||!performance2.now)return dateTimestampInSeconds;const approxStartingTimeOrigin=Date.now()-performance2.now(),timeOrigin=null==performance2.timeOrigin?approxStartingTimeOrigin:performance2.timeOrigin;return()=>(timeOrigin+performance2.now())/ONE_SECOND_IN_MS}();let _browserPerformanceTimeOriginMode;const browserPerformanceTimeOrigin=(()=>{const{performance:performance2}=GLOBAL_OBJ;if(!performance2||!performance2.now)return void(_browserPerformanceTimeOriginMode="none");const performanceNow=performance2.now(),dateNow=Date.now(),timeOriginDelta=performance2.timeOrigin?Math.abs(performance2.timeOrigin+performanceNow-dateNow):36e5,timeOriginIsReliable=timeOriginDelta<36e5,navigationStart=performance2.timing&&performance2.timing.navigationStart,navigationStartDelta="number"==typeof navigationStart?Math.abs(navigationStart+performanceNow-dateNow):36e5;return timeOriginIsReliable||navigationStartDelta<36e5?timeOriginDelta<=navigationStartDelta?(_browserPerformanceTimeOriginMode="timeOrigin",performance2.timeOrigin):(_browserPerformanceTimeOriginMode="navigationStart",navigationStart):(_browserPerformanceTimeOriginMode="dateNow",dateNow)})(),esm_debug_build_DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var States,States2;function resolvedSyncPromise(value){return new SyncPromise(resolve=>{resolve(value)})}function rejectedSyncPromise(reason){return new SyncPromise((_,reject)=>{reject(reason)})}(States2=States||(States={}))[States2.PENDING=0]="PENDING",States2[States2.RESOLVED=1]="RESOLVED",States2[States2.REJECTED=2]="REJECTED";class SyncPromise{constructor(executor){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=States.PENDING,this._handlers=[];try{executor(this._resolve,this._reject)}catch(e2){this._reject(e2)}}then(onfulfilled,onrejected){return new SyncPromise((resolve,reject)=>{this._handlers.push([!1,result=>{if(onfulfilled)try{resolve(onfulfilled(result))}catch(e2){reject(e2)}else resolve(result)},reason=>{if(onrejected)try{resolve(onrejected(reason))}catch(e2){reject(e2)}else reject(reason)}]),this._executeHandlers()})}catch(onrejected){return this.then(val=>val,onrejected)}finally(onfinally){return new SyncPromise((resolve,reject)=>{let val,isRejected;return this.then(value=>{isRejected=!1,val=value,onfinally&&onfinally()},reason=>{isRejected=!0,val=reason,onfinally&&onfinally()}).then(()=>{isRejected?reject(val):resolve(val)})})}__init(){this._resolve=value=>{this._setResult(States.RESOLVED,value)}}__init2(){this._reject=reason=>{this._setResult(States.REJECTED,reason)}}__init3(){this._setResult=(state2,value)=>{if(this._state===States.PENDING){if(is_isThenable(value))return void value.then(this._resolve,this._reject);this._state=state2,this._value=value,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===States.PENDING)return;const cachedHandlers=this._handlers.slice();this._handlers=[],cachedHandlers.forEach(handler=>{handler[0]||(this._state===States.RESOLVED&&handler[1](this._value),this._state===States.REJECTED&&handler[2](this._value),handler[0]=!0)})}}}function getGlobalEventProcessors(){return getGlobalSingleton("globalEventProcessors",()=>[])}function addGlobalEventProcessor(callback){getGlobalEventProcessors().push(callback)}function notifyEventProcessors(processors,event,hint,index=0){return new SyncPromise((resolve,reject)=>{const processor=processors[index];if(null===event||"function"!=typeof processor)resolve(event);else{const result=processor({...event},hint);esm_debug_build_DEBUG_BUILD&&processor.id&&null===result&&logger_logger.log(`Event processor "${processor.id}" dropped event`),is_isThenable(result)?result.then(final=>notifyEventProcessors(processors,final,hint,index+1).then(resolve)).then(null,reject):notifyEventProcessors(processors,result,hint,index+1).then(resolve).then(null,reject)}})}function makeSession(context2){const startingTime=time_timestampInSeconds(),session={sid:misc_uuid4(),init:!0,timestamp:startingTime,started:startingTime,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function sessionToJSON(session){return object_dropUndefinedKeys({sid:`${session.sid}`,init:session.init,started:new Date(1e3*session.started).toISOString(),timestamp:new Date(1e3*session.timestamp).toISOString(),status:session.status,errors:session.errors,did:"number"==typeof session.did||"string"==typeof session.did?`${session.did}`:void 0,duration:session.duration,abnormal_mechanism:session.abnormal_mechanism,attrs:{release:session.release,environment:session.environment,ip_address:session.ipAddress,user_agent:session.userAgent}})}(session)};return context2&&updateSession(session,context2),session}function updateSession(session,context2={}){if(context2.user&&(!session.ipAddress&&context2.user.ip_address&&(session.ipAddress=context2.user.ip_address),!session.did&&!context2.did&&(session.did=context2.user.id||context2.user.email||context2.user.username)),session.timestamp=context2.timestamp||time_timestampInSeconds(),context2.abnormal_mechanism&&(session.abnormal_mechanism=context2.abnormal_mechanism),context2.ignoreDuration&&(session.ignoreDuration=context2.ignoreDuration),context2.sid&&(session.sid=32===context2.sid.length?context2.sid:misc_uuid4()),void 0!==context2.init&&(session.init=context2.init),!session.did&&context2.did&&(session.did=`${context2.did}`),"number"==typeof context2.started&&(session.started=context2.started),session.ignoreDuration)session.duration=void 0;else if("number"==typeof context2.duration)session.duration=context2.duration;else{const duration=session.timestamp-session.started;session.duration=duration>=0?duration:0}context2.release&&(session.release=context2.release),context2.environment&&(session.environment=context2.environment),!session.ipAddress&&context2.ipAddress&&(session.ipAddress=context2.ipAddress),!session.userAgent&&context2.userAgent&&(session.userAgent=context2.userAgent),"number"==typeof context2.errors&&(session.errors=context2.errors),context2.status&&(session.status=context2.status)}function closeSession(session,status){let context2={};status?context2={status}:"ok"===session.status&&(context2={status:"exited"}),updateSession(session,context2)}function getRootSpan(span){return span.transaction}const BAGGAGE_HEADER_NAME="baggage",SENTRY_BAGGAGE_KEY_PREFIX="sentry-",SENTRY_BAGGAGE_KEY_PREFIX_REGEX=/^sentry-/,MAX_BAGGAGE_STRING_LENGTH=8192;function dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext){if(dynamicSamplingContext)return function objectToBaggageHeader(object){if(0!==Object.keys(object).length)return Object.entries(object).reduce((baggageHeader,[objectKey,objectValue],currentIndex)=>{const baggageEntry=`${encodeURIComponent(objectKey)}=${encodeURIComponent(objectValue)}`,newBaggageHeader=0===currentIndex?baggageEntry:`${baggageHeader},${baggageEntry}`;return newBaggageHeader.length>MAX_BAGGAGE_STRING_LENGTH?(debug_build_DEBUG_BUILD&&logger_logger.warn(`Not adding key: ${objectKey} with val: ${objectValue} to baggage header due to exceeding baggage size limits.`),baggageHeader):newBaggageHeader},"")}(Object.entries(dynamicSamplingContext).reduce((acc,[dscKey,dscValue])=>(dscValue&&(acc[`${SENTRY_BAGGAGE_KEY_PREFIX}${dscKey}`]=dscValue),acc),{}))}function baggageHeaderToObject(baggageHeader){return baggageHeader.split(",").map(baggageEntry=>baggageEntry.split("=").map(keyOrValue=>decodeURIComponent(keyOrValue.trim()))).reduce((acc,[key,value])=>(acc[key]=value,acc),{})}const TRACEPARENT_REGEXP=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function propagationContextFromHeaders(sentryTrace,baggage){const traceparentData=function extractTraceparentData(traceparent){if(!traceparent)return;const matches=traceparent.match(TRACEPARENT_REGEXP);if(!matches)return;let parentSampled;return"1"===matches[3]?parentSampled=!0:"0"===matches[3]&&(parentSampled=!1),{traceId:matches[1],parentSampled,parentSpanId:matches[2]}}(sentryTrace),dynamicSamplingContext=function baggage_baggageHeaderToDynamicSamplingContext(baggageHeader){if(!isString(baggageHeader)&&!Array.isArray(baggageHeader))return;let baggageObject={};if(Array.isArray(baggageHeader))baggageObject=baggageHeader.reduce((acc,curr)=>{const currBaggageObject=baggageHeaderToObject(curr);for(const key of Object.keys(currBaggageObject))acc[key]=currBaggageObject[key];return acc},{});else{if(!baggageHeader)return;baggageObject=baggageHeaderToObject(baggageHeader)}const dynamicSamplingContext=Object.entries(baggageObject).reduce((acc,[key,value])=>(key.match(SENTRY_BAGGAGE_KEY_PREFIX_REGEX)&&(acc[key.slice(SENTRY_BAGGAGE_KEY_PREFIX.length)]=value),acc),{});return Object.keys(dynamicSamplingContext).length>0?dynamicSamplingContext:void 0}(baggage),{traceId,parentSpanId,parentSampled}=traceparentData||{};return traceparentData?{traceId:traceId||misc_uuid4(),parentSpanId:parentSpanId||misc_uuid4().substring(16),spanId:misc_uuid4().substring(16),sampled:parentSampled,dsc:dynamicSamplingContext||{}}:{traceId:traceId||misc_uuid4(),spanId:misc_uuid4().substring(16)}}function generateSentryTraceHeader(traceId=misc_uuid4(),spanId=misc_uuid4().substring(16),sampled){let sampledString="";return void 0!==sampled&&(sampledString=sampled?"-1":"-0"),`${traceId}-${spanId}${sampledString}`}const TRACE_FLAG_SAMPLED=1;function spanToTraceContext(span){const{spanId:span_id,traceId:trace_id}=span.spanContext(),{data,op,parent_span_id,status,tags,origin}=spanUtils_spanToJSON(span);return object_dropUndefinedKeys({data,op,parent_span_id,span_id,status,tags,trace_id,origin})}function spanToTraceHeader(span){const{traceId,spanId}=span.spanContext();return generateSentryTraceHeader(traceId,spanId,spanIsSampled(span))}function spanTimeInputToSeconds(input2){return"number"==typeof input2?ensureTimestampInSeconds(input2):Array.isArray(input2)?input2[0]+input2[1]/1e9:input2 instanceof Date?ensureTimestampInSeconds(input2.getTime()):time_timestampInSeconds()}function ensureTimestampInSeconds(timestamp){return timestamp>9999999999?timestamp/1e3:timestamp}function spanUtils_spanToJSON(span){return function spanIsSpanClass(span){return"function"==typeof span.getSpanJSON}(span)?span.getSpanJSON():"function"==typeof span.toJSON?span.toJSON():{}}function spanIsSampled(span){const{traceFlags}=span.spanContext();return!!(traceFlags&TRACE_FLAG_SAMPLED)}function getDynamicSamplingContextFromClient(trace_id,client,scope){const options=client.getOptions(),{publicKey:public_key}=client.getDsn()||{},{segment:user_segment}=scope&&scope.getUser()||{},dsc=object_dropUndefinedKeys({environment:options.environment||DEFAULT_ENVIRONMENT,release:options.release,user_segment,public_key,trace_id});return client.emit&&client.emit("createDsc",dsc),dsc}function getDynamicSamplingContextFromSpan(span){const client=exports_getClient();if(!client)return{};const dsc=getDynamicSamplingContextFromClient(spanUtils_spanToJSON(span).trace_id||"",client,exports_getCurrentScope()),txn=getRootSpan(span);if(!txn)return dsc;const v7FrozenDsc=txn&&txn._frozenDynamicSamplingContext;if(v7FrozenDsc)return v7FrozenDsc;const{sampleRate:maybeSampleRate,source}=txn.metadata;null!=maybeSampleRate&&(dsc.sample_rate=`${maybeSampleRate}`);const jsonSpan=spanUtils_spanToJSON(txn);return source&&"url"!==source&&(dsc.transaction=jsonSpan.description),dsc.sampled=String(spanIsSampled(txn)),client.emit&&client.emit("createDsc",dsc),dsc}function applyScopeDataToEvent(event,data){const{fingerprint,span,breadcrumbs,sdkProcessingMetadata}=data;(function applyDataToEvent(event,data){const{extra,tags,user:user2,contexts,level,transactionName}=data,cleanedExtra=object_dropUndefinedKeys(extra);cleanedExtra&&Object.keys(cleanedExtra).length&&(event.extra={...cleanedExtra,...event.extra});const cleanedTags=object_dropUndefinedKeys(tags);cleanedTags&&Object.keys(cleanedTags).length&&(event.tags={...cleanedTags,...event.tags});const cleanedUser=object_dropUndefinedKeys(user2);cleanedUser&&Object.keys(cleanedUser).length&&(event.user={...cleanedUser,...event.user});const cleanedContexts=object_dropUndefinedKeys(contexts);cleanedContexts&&Object.keys(cleanedContexts).length&&(event.contexts={...cleanedContexts,...event.contexts}),level&&(event.level=level),transactionName&&(event.transaction=transactionName)})(event,data),span&&function applySpanToEvent(event,span){event.contexts={trace:spanToTraceContext(span),...event.contexts};const rootSpan=getRootSpan(span);if(rootSpan){event.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromSpan(span),...event.sdkProcessingMetadata};const transactionName=spanUtils_spanToJSON(rootSpan).description;transactionName&&(event.tags={transaction:transactionName,...event.tags})}}(event,span),function applyFingerprintToEvent(event,fingerprint){event.fingerprint=event.fingerprint?arrayify(event.fingerprint):[],fingerprint&&(event.fingerprint=event.fingerprint.concat(fingerprint)),event.fingerprint&&!event.fingerprint.length&&delete event.fingerprint}(event,fingerprint),function applyBreadcrumbsToEvent(event,breadcrumbs){const mergedBreadcrumbs=[...event.breadcrumbs||[],...breadcrumbs];event.breadcrumbs=mergedBreadcrumbs.length?mergedBreadcrumbs:void 0}(event,breadcrumbs),function applySdkMetadataToEvent(event,sdkProcessingMetadata){event.sdkProcessingMetadata={...event.sdkProcessingMetadata,...sdkProcessingMetadata}}(event,sdkProcessingMetadata)}function mergeScopeData(data,mergeData){const{extra,tags,user:user2,contexts,level,sdkProcessingMetadata,breadcrumbs,fingerprint,eventProcessors,attachments,propagationContext,transactionName,span}=mergeData;mergeAndOverwriteScopeData(data,"extra",extra),mergeAndOverwriteScopeData(data,"tags",tags),mergeAndOverwriteScopeData(data,"user",user2),mergeAndOverwriteScopeData(data,"contexts",contexts),mergeAndOverwriteScopeData(data,"sdkProcessingMetadata",sdkProcessingMetadata),level&&(data.level=level),transactionName&&(data.transactionName=transactionName),span&&(data.span=span),breadcrumbs.length&&(data.breadcrumbs=[...data.breadcrumbs,...breadcrumbs]),fingerprint.length&&(data.fingerprint=[...data.fingerprint,...fingerprint]),eventProcessors.length&&(data.eventProcessors=[...data.eventProcessors,...eventProcessors]),attachments.length&&(data.attachments=[...data.attachments,...attachments]),data.propagationContext={...data.propagationContext,...propagationContext}}function mergeAndOverwriteScopeData(data,prop2,mergeVal){if(mergeVal&&Object.keys(mergeVal).length){data[prop2]={...data[prop2]};for(const key in mergeVal)Object.prototype.hasOwnProperty.call(mergeVal,key)&&(data[prop2][key]=mergeVal[key])}}let globalScope;class Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}static clone(scope){return scope?scope.clone():new Scope}clone(){const newScope=new Scope;return newScope._breadcrumbs=[...this._breadcrumbs],newScope._tags={...this._tags},newScope._extra={...this._extra},newScope._contexts={...this._contexts},newScope._user=this._user,newScope._level=this._level,newScope._span=this._span,newScope._session=this._session,newScope._transactionName=this._transactionName,newScope._fingerprint=this._fingerprint,newScope._eventProcessors=[...this._eventProcessors],newScope._requestSession=this._requestSession,newScope._attachments=[...this._attachments],newScope._sdkProcessingMetadata={...this._sdkProcessingMetadata},newScope._propagationContext={...this._propagationContext},newScope._client=this._client,newScope}setClient(client){this._client=client}getClient(){return this._client}addScopeListener(callback){this._scopeListeners.push(callback)}addEventProcessor(callback){return this._eventProcessors.push(callback),this}setUser(user2){return this._user=user2||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&updateSession(this._session,{user:user2}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(requestSession){return this._requestSession=requestSession,this}setTags(tags){return this._tags={...this._tags,...tags},this._notifyScopeListeners(),this}setTag(key,value){return this._tags={...this._tags,[key]:value},this._notifyScopeListeners(),this}setExtras(extras){return this._extra={...this._extra,...extras},this._notifyScopeListeners(),this}setExtra(key,extra){return this._extra={...this._extra,[key]:extra},this._notifyScopeListeners(),this}setFingerprint(fingerprint){return this._fingerprint=fingerprint,this._notifyScopeListeners(),this}setLevel(level){return this._level=level,this._notifyScopeListeners(),this}setTransactionName(name){return this._transactionName=name,this._notifyScopeListeners(),this}setContext(key,context2){return null===context2?delete this._contexts[key]:this._contexts[key]=context2,this._notifyScopeListeners(),this}setSpan(span){return this._span=span,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const span=this._span;return span&&span.transaction}setSession(session){return session?this._session=session:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(captureContext){if(!captureContext)return this;const scopeToMerge="function"==typeof captureContext?captureContext(this):captureContext;if(scopeToMerge instanceof Scope){const scopeData=scopeToMerge.getScopeData();this._tags={...this._tags,...scopeData.tags},this._extra={...this._extra,...scopeData.extra},this._contexts={...this._contexts,...scopeData.contexts},scopeData.user&&Object.keys(scopeData.user).length&&(this._user=scopeData.user),scopeData.level&&(this._level=scopeData.level),scopeData.fingerprint.length&&(this._fingerprint=scopeData.fingerprint),scopeToMerge.getRequestSession()&&(this._requestSession=scopeToMerge.getRequestSession()),scopeData.propagationContext&&(this._propagationContext=scopeData.propagationContext)}else if(isPlainObject(scopeToMerge)){const scopeContext=captureContext;this._tags={...this._tags,...scopeContext.tags},this._extra={...this._extra,...scopeContext.extra},this._contexts={...this._contexts,...scopeContext.contexts},scopeContext.user&&(this._user=scopeContext.user),scopeContext.level&&(this._level=scopeContext.level),scopeContext.fingerprint&&(this._fingerprint=scopeContext.fingerprint),scopeContext.requestSession&&(this._requestSession=scopeContext.requestSession),scopeContext.propagationContext&&(this._propagationContext=scopeContext.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=generatePropagationContext(),this}addBreadcrumb(breadcrumb,maxBreadcrumbs){const maxCrumbs="number"==typeof maxBreadcrumbs?maxBreadcrumbs:100;if(maxCrumbs<=0)return this;const mergedBreadcrumb={timestamp:dateTimestampInSeconds(),...breadcrumb},breadcrumbs=this._breadcrumbs;return breadcrumbs.push(mergedBreadcrumb),this._breadcrumbs=breadcrumbs.length>maxCrumbs?breadcrumbs.slice(-maxCrumbs):breadcrumbs,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(attachment){return this._attachments.push(attachment),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs,_attachments,_contexts,_tags,_extra,_user,_level,_fingerprint,_eventProcessors,_propagationContext,_sdkProcessingMetadata,_transactionName,_span}=this;return{breadcrumbs:_breadcrumbs,attachments:_attachments,contexts:_contexts,tags:_tags,extra:_extra,user:_user,level:_level,fingerprint:_fingerprint||[],eventProcessors:_eventProcessors,propagationContext:_propagationContext,sdkProcessingMetadata:_sdkProcessingMetadata,transactionName:_transactionName,span:_span}}applyToEvent(event,hint={},additionalEventProcessors=[]){return applyScopeDataToEvent(event,this.getScopeData()),notifyEventProcessors([...additionalEventProcessors,...getGlobalEventProcessors(),...this._eventProcessors],event,hint)}setSDKProcessingMetadata(newData){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...newData},this}setPropagationContext(context2){return this._propagationContext=context2,this}getPropagationContext(){return this._propagationContext}captureException(exception,hint){const eventId=hint&&hint.event_id?hint.event_id:misc_uuid4();if(!this._client)return logger_logger.warn("No client configured on scope - will not capture exception!"),eventId;const syntheticException=new Error("Sentry syntheticException");return this._client.captureException(exception,{originalException:exception,syntheticException,...hint,event_id:eventId},this),eventId}captureMessage(message,level,hint){const eventId=hint&&hint.event_id?hint.event_id:misc_uuid4();if(!this._client)return logger_logger.warn("No client configured on scope - will not capture message!"),eventId;const syntheticException=new Error(message);return this._client.captureMessage(message,level,{originalException:message,syntheticException,...hint,event_id:eventId},this),eventId}captureEvent(event,hint){const eventId=hint&&hint.event_id?hint.event_id:misc_uuid4();return this._client?(this._client.captureEvent(event,{...hint,event_id:eventId},this),eventId):(logger_logger.warn("No client configured on scope - will not capture event!"),eventId)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(callback=>{callback(this)}),this._notifyingListeners=!1)}}function generatePropagationContext(){return{traceId:misc_uuid4(),spanId:misc_uuid4().substring(16)}}const API_VERSION=parseFloat("7.112.2"),DEFAULT_BREADCRUMBS=100;class Hub{constructor(client,scope,isolationScope,_version=API_VERSION){let assignedScope,assignedIsolationScope;this._version=_version,scope?assignedScope=scope:(assignedScope=new Scope,assignedScope.setClient(client)),isolationScope?assignedIsolationScope=isolationScope:(assignedIsolationScope=new Scope,assignedIsolationScope.setClient(client)),this._stack=[{scope:assignedScope}],client&&this.bindClient(client),this._isolationScope=assignedIsolationScope}isOlderThan(version2){return this._version(this.popScope(),res),e2=>{throw this.popScope(),e2}):(this.popScope(),maybePromiseResult)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(exception,hint){const eventId=this._lastEventId=hint&&hint.event_id?hint.event_id:misc_uuid4(),syntheticException=new Error("Sentry syntheticException");return this.getScope().captureException(exception,{originalException:exception,syntheticException,...hint,event_id:eventId}),eventId}captureMessage(message,level,hint){const eventId=this._lastEventId=hint&&hint.event_id?hint.event_id:misc_uuid4(),syntheticException=new Error(message);return this.getScope().captureMessage(message,level,{originalException:message,syntheticException,...hint,event_id:eventId}),eventId}captureEvent(event,hint){const eventId=hint&&hint.event_id?hint.event_id:misc_uuid4();return event.type||(this._lastEventId=eventId),this.getScope().captureEvent(event,{...hint,event_id:eventId}),eventId}lastEventId(){return this._lastEventId}addBreadcrumb(breadcrumb,hint){const{scope,client}=this.getStackTop();if(!client)return;const{beforeBreadcrumb=null,maxBreadcrumbs=DEFAULT_BREADCRUMBS}=client.getOptions&&client.getOptions()||{};if(maxBreadcrumbs<=0)return;const mergedBreadcrumb={timestamp:dateTimestampInSeconds(),...breadcrumb},finalBreadcrumb=beforeBreadcrumb?consoleSandbox(()=>beforeBreadcrumb(mergedBreadcrumb,hint)):mergedBreadcrumb;null!==finalBreadcrumb&&(client.emit&&client.emit("beforeAddBreadcrumb",finalBreadcrumb,hint),scope.addBreadcrumb(finalBreadcrumb,maxBreadcrumbs))}setUser(user2){this.getScope().setUser(user2),this.getIsolationScope().setUser(user2)}setTags(tags){this.getScope().setTags(tags),this.getIsolationScope().setTags(tags)}setExtras(extras){this.getScope().setExtras(extras),this.getIsolationScope().setExtras(extras)}setTag(key,value){this.getScope().setTag(key,value),this.getIsolationScope().setTag(key,value)}setExtra(key,extra){this.getScope().setExtra(key,extra),this.getIsolationScope().setExtra(key,extra)}setContext(name,context2){this.getScope().setContext(name,context2),this.getIsolationScope().setContext(name,context2)}configureScope(callback){const{scope,client}=this.getStackTop();client&&callback(scope)}run(callback){const oldHub=makeMain(this);try{callback(this)}finally{makeMain(oldHub)}}getIntegration(integration){const client=this.getClient();if(!client)return null;try{return client.getIntegration(integration)}catch{return esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`),null}}startTransaction(context2,customSamplingContext){const result=this._callExtensionMethod("startTransaction",context2,customSamplingContext);return esm_debug_build_DEBUG_BUILD&&!result&&(this.getClient()?logger_logger.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):logger_logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),result}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(endSession2=!1){if(endSession2)return this.endSession();this._sendSessionUpdate()}endSession(){const scope=this.getStackTop().scope,session=scope.getSession();session&&closeSession(session),this._sendSessionUpdate(),scope.setSession()}startSession(context2){const{scope,client}=this.getStackTop(),{release,environment:environment2=DEFAULT_ENVIRONMENT}=client&&client.getOptions()||{},{userAgent}=GLOBAL_OBJ.navigator||{},session=makeSession({release,environment:environment2,user:scope.getUser(),...userAgent&&{userAgent},...context2}),currentSession=scope.getSession&&scope.getSession();return currentSession&&"ok"===currentSession.status&&updateSession(currentSession,{status:"exited"}),this.endSession(),scope.setSession(session),session}shouldSendDefaultPii(){const client=this.getClient(),options=client&&client.getOptions();return!(!options||!options.sendDefaultPii)}_sendSessionUpdate(){const{scope,client}=this.getStackTop(),session=scope.getSession();session&&client&&client.captureSession&&client.captureSession(session)}_callExtensionMethod(method,...args){const sentry=getMainCarrier().__SENTRY__;if(sentry&&sentry.extensions&&"function"==typeof sentry.extensions[method])return sentry.extensions[method].apply(this,args);esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Extension method ${method} couldn't be found, doing nothing.`)}}function getMainCarrier(){return GLOBAL_OBJ.__SENTRY__=GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},GLOBAL_OBJ}function makeMain(hub){const registry=getMainCarrier(),oldHub=getHubFromCarrier(registry);return setHubOnCarrier(registry,hub),oldHub}function hub_getCurrentHub(){const registry=getMainCarrier();if(registry.__SENTRY__&®istry.__SENTRY__.acs){const hub=registry.__SENTRY__.acs.getCurrentHub();if(hub)return hub}return function getGlobalHub(registry=getMainCarrier()){return(!function hasHubOnCarrier(carrier){return!!(carrier&&carrier.__SENTRY__&&carrier.__SENTRY__.hub)}(registry)||getHubFromCarrier(registry).isOlderThan(API_VERSION))&&setHubOnCarrier(registry,new Hub),getHubFromCarrier(registry)}(registry)}function hub_getIsolationScope(){return hub_getCurrentHub().getIsolationScope()}function getHubFromCarrier(carrier){return getGlobalSingleton("hub",()=>new Hub,carrier)}function setHubOnCarrier(carrier,hub){return!!carrier&&((carrier.__SENTRY__=carrier.__SENTRY__||{}).hub=hub,!0)}const STACKTRACE_FRAME_LIMIT=50,WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...parsers){const sortedParsers=parsers.sort((a,b)=>a[0]-b[0]).map(p=>p[1]);return(stack,skipFirst=0)=>{const frames=[],lines=stack.split("\n");for(let i=skipFirst;i1024)continue;const cleanedLine=WEBPACK_ERROR_REGEXP.test(line)?line.replace(WEBPACK_ERROR_REGEXP,"$1"):line;if(!cleanedLine.match(/\S*Error: /)){for(const parser of sortedParsers){const frame=parser(cleanedLine);if(frame){frames.push(frame);break}}if(frames.length>=STACKTRACE_FRAME_LIMIT)break}}return function stripSentryFramesAndReverse(stack){if(!stack.length)return[];const localStack=Array.from(stack);return/sentryWrapped/.test(localStack[localStack.length-1].function||"")&&localStack.pop(),localStack.reverse(),STRIP_FRAME_REGEXP.test(localStack[localStack.length-1].function||"")&&(localStack.pop(),STRIP_FRAME_REGEXP.test(localStack[localStack.length-1].function||"")&&localStack.pop()),localStack.slice(0,STACKTRACE_FRAME_LIMIT).map(frame=>({...frame,filename:frame.filename||localStack[localStack.length-1].filename,function:frame.function||"?"}))}(frames)}}const defaultFunctionName="";function getFunctionName(fn){try{return fn&&"function"==typeof fn&&fn.name||defaultFunctionName}catch{return defaultFunctionName}}function normalize(input2,depth=100,maxProperties=1/0){try{return visit("",input2,depth,maxProperties)}catch(err){return{ERROR:`**non-serializable** (${err})`}}}function normalizeToSize(object,depth=3,maxSize=102400){const normalized=normalize(object,depth);return function jsonSize(value){return function utf8Length(value){return~-encodeURI(value).split(/%..|./).length}(JSON.stringify(value))}(normalized)>maxSize?normalizeToSize(object,depth-1,maxSize):normalized}function visit(key,value,depth=1/0,maxProperties=1/0,memo=function memoBuilder(){const hasWeakSet="function"==typeof WeakSet,inner=hasWeakSet?new WeakSet:[];return[function memoize(obj){if(hasWeakSet)return!!inner.has(obj)||(inner.add(obj),!1);for(let i=0;i=maxProperties){normalized[visitKey]="[MaxProperties ~]";break}normalized[visitKey]=visit(visitKey,visitable[visitKey],remainingDepth-1,maxProperties,memo),numAdded++}return unmemoize(value),normalized}function prepareEvent(options,event,hint,scope,client,isolationScope){const{normalizeDepth=3,normalizeMaxBreadth=1e3}=options,prepared={...event,event_id:event.event_id||hint.event_id||misc_uuid4(),timestamp:event.timestamp||dateTimestampInSeconds()},integrations=hint.integrations||options.integrations.map(i=>i.name);(function applyClientOptions(event,options){const{environment:environment2,release,dist,maxValueLength=250}=options;"environment"in event||(event.environment="environment"in options?environment2:DEFAULT_ENVIRONMENT),void 0===event.release&&void 0!==release&&(event.release=release),void 0===event.dist&&void 0!==dist&&(event.dist=dist),event.message&&(event.message=truncate(event.message,maxValueLength));const exception=event.exception&&event.exception.values&&event.exception.values[0];exception&&exception.value&&(exception.value=truncate(exception.value,maxValueLength));const request=event.request;request&&request.url&&(request.url=truncate(request.url,maxValueLength))})(prepared,options),function applyIntegrationsMetadata(event,integrationNames){integrationNames.length>0&&(event.sdk=event.sdk||{},event.sdk.integrations=[...event.sdk.integrations||[],...integrationNames])}(prepared,integrations),void 0===event.type&&function applyDebugIds(event,stackParser){const debugIdMap=GLOBAL_OBJ._sentryDebugIds;if(!debugIdMap)return;let debugIdStackFramesCache;const cachedDebugIdStackFrameCache=debugIdStackParserCache.get(stackParser);cachedDebugIdStackFrameCache?debugIdStackFramesCache=cachedDebugIdStackFrameCache:(debugIdStackFramesCache=new Map,debugIdStackParserCache.set(stackParser,debugIdStackFramesCache));const filenameDebugIdMap=Object.keys(debugIdMap).reduce((acc,debugIdStackTrace)=>{let parsedStack;const cachedParsedStack=debugIdStackFramesCache.get(debugIdStackTrace);cachedParsedStack?parsedStack=cachedParsedStack:(parsedStack=stackParser(debugIdStackTrace),debugIdStackFramesCache.set(debugIdStackTrace,parsedStack));for(let i=parsedStack.length-1;i>=0;i--){const stackFrame=parsedStack[i];if(stackFrame.filename){acc[stackFrame.filename]=debugIdMap[debugIdStackTrace];break}}return acc},{});try{event.exception.values.forEach(exception=>{exception.stacktrace.frames.forEach(frame=>{frame.filename&&(frame.debug_id=filenameDebugIdMap[frame.filename])})})}catch{}}(prepared,options.stackParser);const finalScope=function getFinalScope(scope,captureContext){if(!captureContext)return scope;const finalScope=scope?scope.clone():new Scope;return finalScope.update(captureContext),finalScope}(scope,hint.captureContext);hint.mechanism&&addExceptionMechanism(prepared,hint.mechanism);const clientEventProcessors=client&&client.getEventProcessors?client.getEventProcessors():[],data=function getGlobalScope(){return globalScope||(globalScope=new Scope),globalScope}().getScopeData();isolationScope&&mergeScopeData(data,isolationScope.getScopeData()),finalScope&&mergeScopeData(data,finalScope.getScopeData());const attachments=[...hint.attachments||[],...data.attachments];return attachments.length&&(hint.attachments=attachments),applyScopeDataToEvent(prepared,data),notifyEventProcessors([...clientEventProcessors,...getGlobalEventProcessors(),...data.eventProcessors],prepared,hint).then(evt=>(evt&&function applyDebugMeta(event){const filenameDebugIdMap={};try{event.exception.values.forEach(exception=>{exception.stacktrace.frames.forEach(frame=>{frame.debug_id&&(frame.abs_path?filenameDebugIdMap[frame.abs_path]=frame.debug_id:frame.filename&&(filenameDebugIdMap[frame.filename]=frame.debug_id),delete frame.debug_id)})})}catch{}if(0===Object.keys(filenameDebugIdMap).length)return;event.debug_meta=event.debug_meta||{},event.debug_meta.images=event.debug_meta.images||[];const images=event.debug_meta.images;Object.keys(filenameDebugIdMap).forEach(filename=>{images.push({type:"sourcemap",code_file:filename,debug_id:filenameDebugIdMap[filename]})})}(evt),"number"==typeof normalizeDepth&&normalizeDepth>0?function normalizeEvent(event,depth,maxBreadth){if(!event)return null;const normalized={...event,...event.breadcrumbs&&{breadcrumbs:event.breadcrumbs.map(b=>({...b,...b.data&&{data:normalize(b.data,depth,maxBreadth)}}))},...event.user&&{user:normalize(event.user,depth,maxBreadth)},...event.contexts&&{contexts:normalize(event.contexts,depth,maxBreadth)},...event.extra&&{extra:normalize(event.extra,depth,maxBreadth)}};return event.contexts&&event.contexts.trace&&normalized.contexts&&(normalized.contexts.trace=event.contexts.trace,event.contexts.trace.data&&(normalized.contexts.trace.data=normalize(event.contexts.trace.data,depth,maxBreadth))),event.spans&&(normalized.spans=event.spans.map(span=>{const data=spanUtils_spanToJSON(span).data;return data&&(span.data=normalize(data,depth,maxBreadth)),span})),normalized}(evt,normalizeDepth,normalizeMaxBreadth):evt))}const debugIdStackParserCache=new WeakMap;const captureContextKeys=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(exception,hint){return hub_getCurrentHub().captureException(exception,function parseEventHintOrCaptureContext(hint){if(hint)return function hintIsScopeOrFunction(hint){return hint instanceof Scope||"function"==typeof hint}(hint)||function hintIsScopeContext(hint){return Object.keys(hint).some(key=>captureContextKeys.includes(key))}(hint)?{captureContext:hint}:hint}(hint))}function captureEvent(event,hint){return hub_getCurrentHub().captureEvent(event,hint)}function addBreadcrumb(breadcrumb,hint){hub_getCurrentHub().addBreadcrumb(breadcrumb,hint)}function setContext(name,context2){hub_getCurrentHub().setContext(name,context2)}function exports_getClient(){return hub_getCurrentHub().getClient()}function exports_getCurrentScope(){return hub_getCurrentHub().getScope()}function startSession(context2){const client=exports_getClient(),isolationScope=hub_getIsolationScope(),currentScope=exports_getCurrentScope(),{release,environment:environment2=DEFAULT_ENVIRONMENT}=client&&client.getOptions()||{},{userAgent}=GLOBAL_OBJ.navigator||{},session=makeSession({release,environment:environment2,user:currentScope.getUser()||isolationScope.getUser(),...userAgent&&{userAgent},...context2}),currentSession=isolationScope.getSession();return currentSession&&"ok"===currentSession.status&&updateSession(currentSession,{status:"exited"}),endSession(),isolationScope.setSession(session),currentScope.setSession(session),session}function endSession(){const isolationScope=hub_getIsolationScope(),currentScope=exports_getCurrentScope(),session=currentScope.getSession()||isolationScope.getSession();session&&closeSession(session),_sendSessionUpdate(),isolationScope.setSession(),currentScope.setSession()}function _sendSessionUpdate(){const isolationScope=hub_getIsolationScope(),currentScope=exports_getCurrentScope(),client=exports_getClient(),session=currentScope.getSession()||isolationScope.getSession();session&&client&&client.captureSession&&client.captureSession(session)}function captureSession(end=!1){end?endSession():_sendSessionUpdate()}const installedIntegrations=[];function getIntegrationsToSetup(options){const defaultIntegrations2=options.defaultIntegrations||[],userIntegrations=options.integrations;let integrations;defaultIntegrations2.forEach(integration=>{integration.isDefaultInstance=!0}),integrations=Array.isArray(userIntegrations)?[...defaultIntegrations2,...userIntegrations]:"function"==typeof userIntegrations?arrayify(userIntegrations(defaultIntegrations2)):defaultIntegrations2;const finalIntegrations=function filterDuplicates(integrations){const integrationsByName={};return integrations.forEach(currentInstance=>{const{name}=currentInstance,existingInstance=integrationsByName[name];existingInstance&&!existingInstance.isDefaultInstance&¤tInstance.isDefaultInstance||(integrationsByName[name]=currentInstance)}),Object.keys(integrationsByName).map(k=>integrationsByName[k])}(integrations),debugIndex=function findIndex(arr,callback){for(let i=0;i"Debug"===integration.name);if(-1!==debugIndex){const[debugInstance]=finalIntegrations.splice(debugIndex,1);finalIntegrations.push(debugInstance)}return finalIntegrations}function afterSetupIntegrations(client,integrations){for(const integration of integrations)integration&&integration.afterAllSetup&&integration.afterAllSetup(client)}function setupIntegration(client,integration,integrationIndex){if(integrationIndex[integration.name])esm_debug_build_DEBUG_BUILD&&logger_logger.log(`Integration skipped because it was already installed: ${integration.name}`);else{if(integrationIndex[integration.name]=integration,-1===installedIntegrations.indexOf(integration.name)&&(integration.setupOnce(addGlobalEventProcessor,hub_getCurrentHub),installedIntegrations.push(integration.name)),integration.setup&&"function"==typeof integration.setup&&integration.setup(client),client.on&&"function"==typeof integration.preprocessEvent){const callback=integration.preprocessEvent.bind(integration);client.on("preprocessEvent",(event,hint)=>callback(event,hint,client))}if(client.addEventProcessor&&"function"==typeof integration.processEvent){const callback=integration.processEvent.bind(integration),processor=Object.assign((event,hint)=>callback(event,hint,client),{id:integration.name});client.addEventProcessor(processor)}esm_debug_build_DEBUG_BUILD&&logger_logger.log(`Integration installed: ${integration.name}`)}}function convertIntegrationFnToClass(name,fn){return Object.assign(function(...args){return fn(...args)},{id:name})}const DEFAULT_IGNORE_ERRORS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],DEFAULT_IGNORE_TRANSACTIONS=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],inboundFiltersIntegration=(options={})=>({name:"InboundFilters",setupOnce(){},processEvent(event,_hint,client){const clientOptions=client.getOptions(),mergedOptions=function _mergeOptions(internalOptions={},clientOptions={}){return{allowUrls:[...internalOptions.allowUrls||[],...clientOptions.allowUrls||[]],denyUrls:[...internalOptions.denyUrls||[],...clientOptions.denyUrls||[]],ignoreErrors:[...internalOptions.ignoreErrors||[],...clientOptions.ignoreErrors||[],...internalOptions.disableErrorDefaults?[]:DEFAULT_IGNORE_ERRORS],ignoreTransactions:[...internalOptions.ignoreTransactions||[],...clientOptions.ignoreTransactions||[],...internalOptions.disableTransactionDefaults?[]:DEFAULT_IGNORE_TRANSACTIONS],ignoreInternal:void 0===internalOptions.ignoreInternal||internalOptions.ignoreInternal}}(options,clientOptions);return function _shouldDropEvent(event,options){return options.ignoreInternal&&function _isSentryError(event){try{return"SentryError"===event.exception.values[0].type}catch{}return!1}(event)?(esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${getEventDescription(event)}`),!0):function _isIgnoredError(event,ignoreErrors){return!(event.type||!ignoreErrors||!ignoreErrors.length)&&function _getPossibleEventMessages(event){const possibleMessages=[];let lastException;event.message&&possibleMessages.push(event.message);try{lastException=event.exception.values[event.exception.values.length-1]}catch{}return lastException&&lastException.value&&(possibleMessages.push(lastException.value),lastException.type&&possibleMessages.push(`${lastException.type}: ${lastException.value}`)),esm_debug_build_DEBUG_BUILD&&0===possibleMessages.length&&logger_logger.error(`Could not extract message for event ${getEventDescription(event)}`),possibleMessages}(event).some(message=>stringMatchesSomePattern(message,ignoreErrors))}(event,options.ignoreErrors)?(esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${getEventDescription(event)}`),!0):function _isIgnoredTransaction(event,ignoreTransactions){if("transaction"!==event.type||!ignoreTransactions||!ignoreTransactions.length)return!1;const name=event.transaction;return!!name&&stringMatchesSomePattern(name,ignoreTransactions)}(event,options.ignoreTransactions)?(esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${getEventDescription(event)}`),!0):function _isDeniedUrl(event,denyUrls){if(!denyUrls||!denyUrls.length)return!1;const url=_getEventFilterUrl(event);return!!url&&stringMatchesSomePattern(url,denyUrls)}(event,options.denyUrls)?(esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${getEventDescription(event)}.\nUrl: ${_getEventFilterUrl(event)}`),!0):!function _isAllowedUrl(event,allowUrls){if(!allowUrls||!allowUrls.length)return!0;const url=_getEventFilterUrl(event);return!url||stringMatchesSomePattern(url,allowUrls)}(event,options.allowUrls)&&(esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${getEventDescription(event)}.\nUrl: ${_getEventFilterUrl(event)}`),!0)}(event,mergedOptions)?null:event}});function _getEventFilterUrl(event){try{let frames;try{frames=event.exception.values[0].stacktrace.frames}catch{}return frames?function _getLastValidUrl(frames=[]){for(let i=frames.length-1;i>=0;i--){const frame=frames[i];if(frame&&""!==frame.filename&&"[native code]"!==frame.filename)return frame.filename||null}return null}(frames):null}catch{return esm_debug_build_DEBUG_BUILD&&logger_logger.error(`Cannot extract url for event ${getEventDescription(event)}`),null}}let originalFunctionToString;convertIntegrationFnToClass("InboundFilters",inboundFiltersIntegration);const SETUP_CLIENTS=new WeakMap,functionToStringIntegration=()=>({name:"FunctionToString",setupOnce(){originalFunctionToString=Function.prototype.toString;try{Function.prototype.toString=function(...args){const originalFunction=getOriginalFunction(this),context2=SETUP_CLIENTS.has(exports_getClient())&&void 0!==originalFunction?originalFunction:this;return originalFunctionToString.apply(context2,args)}}catch{}},setup(client){SETUP_CLIENTS.set(client,!0)}});convertIntegrationFnToClass("FunctionToString",functionToStringIntegration);const DSN_REGEX=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dsnToString(dsn,withPassword=!1){const{host,path,pass,port,projectId,protocol,publicKey}=dsn;return`${protocol}://${publicKey}${withPassword&&pass?`:${pass}`:""}@${host}${port?`:${port}`:""}/${path&&`${path}/`}${projectId}`}function dsnFromComponents(components){return{protocol:components.protocol,publicKey:components.publicKey||"",pass:components.pass||"",host:components.host,port:components.port||"",path:components.path||"",projectId:components.projectId}}function makeDsn(from2){const components="string"==typeof from2?function dsnFromString(str){const match2=DSN_REGEX.exec(str);if(!match2)return void consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${str}`)});const[protocol,publicKey,pass="",host,port="",lastPath]=match2.slice(1);let path="",projectId=lastPath;const split2=projectId.split("/");if(split2.length>1&&(path=split2.slice(0,-1).join("/"),projectId=split2.pop()),projectId){const projectMatch=projectId.match(/^\d+/);projectMatch&&(projectId=projectMatch[0])}return dsnFromComponents({host,pass,path,projectId,port,protocol,publicKey})}(from2):dsnFromComponents(from2);if(components&&function validateDsn(dsn){if(!debug_build_DEBUG_BUILD)return!0;const{port,projectId,protocol}=dsn;return!(["protocol","publicKey","host","projectId"].find(component=>!dsn[component]&&(logger_logger.error(`Invalid Sentry Dsn: ${component} missing`),!0))||(projectId.match(/^\d+$/)?function isValidProtocol(protocol){return"http"===protocol||"https"===protocol}(protocol)?port&&isNaN(parseInt(port,10))&&(logger_logger.error(`Invalid Sentry Dsn: Invalid port ${port}`),1):(logger_logger.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`),1):(logger_logger.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`),1)))}(components))return components}const SENTRY_API_VERSION="7";function getBaseApiEndpoint(dsn){return`${dsn.protocol?`${dsn.protocol}:`:""}//${dsn.host}${dsn.port?`:${dsn.port}`:""}${dsn.path?`/${dsn.path}`:""}/api/`}function getEnvelopeEndpointWithUrlEncodedAuth(dsn,tunnelOrOptions={}){const sdkInfo="string"!=typeof tunnelOrOptions&&tunnelOrOptions._metadata?tunnelOrOptions._metadata.sdk:void 0;return("string"==typeof tunnelOrOptions?tunnelOrOptions:tunnelOrOptions.tunnel)||`${function _getIngestEndpoint(dsn){return`${getBaseApiEndpoint(dsn)}${dsn.projectId}/envelope/`}(dsn)}?${function _encodedAuth(dsn,sdkInfo){return function urlEncode(object){return Object.keys(object).map(key=>`${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`).join("&")}({sentry_key:dsn.publicKey,sentry_version:SENTRY_API_VERSION,...sdkInfo&&{sentry_client:`${sdkInfo.name}/${sdkInfo.version}`}})}(dsn,sdkInfo)}`}const supports_WINDOW=getGlobalObject();function supportsFetch(){if(!("fetch"in supports_WINDOW))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function isNativeFetch(func){return func&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(func.toString())}const supportsHistory_WINDOW=getGlobalObject(),handlers={},instrumented={};function addHandler(type,handler){handlers[type]=handlers[type]||[],handlers[type].push(handler)}function maybeInstrument(type,instrumentFn){instrumented[type]||(instrumentFn(),instrumented[type]=!0)}function triggerHandlers(type,data){const typeHandlers=type&&handlers[type];if(typeHandlers)for(const handler of typeHandlers)try{handler(data)}catch(e2){debug_build_DEBUG_BUILD&&logger_logger.error(`Error while triggering instrumentation handler.\nType: ${type}\nName: ${getFunctionName(handler)}\nError:`,e2)}}const history_WINDOW=GLOBAL_OBJ;let lastHref;function addHistoryInstrumentationHandler(handler){addHandler("history",handler),maybeInstrument("history",instrumentHistory)}function instrumentHistory(){if(!function supportsHistory(){const chromeVar=supportsHistory_WINDOW.chrome;return!(chromeVar&&chromeVar.app&&chromeVar.app.runtime||!("history"in supportsHistory_WINDOW)||!supportsHistory_WINDOW.history.pushState||!supportsHistory_WINDOW.history.replaceState)}())return;const oldOnPopState=history_WINDOW.onpopstate;function historyReplacementFunction(originalHistoryFunction){return function(...args){const url=args.length>2?args[2]:void 0;if(url){const from2=lastHref,to=String(url);lastHref=to,triggerHandlers("history",{from:from2,to})}return originalHistoryFunction.apply(this,args)}}history_WINDOW.onpopstate=function(...args){const to=history_WINDOW.location.href,from2=lastHref;if(lastHref=to,triggerHandlers("history",{from:from2,to}),oldOnPopState)try{return oldOnPopState.apply(this,args)}catch{}},fill(history_WINDOW.history,"pushState",historyReplacementFunction),fill(history_WINDOW.history,"replaceState",historyReplacementFunction)}function createEnvelope(headers,items=[]){return[headers,items]}function addItemToEnvelope(envelope,newItem){const[headers,items]=envelope;return[headers,[...items,newItem]]}function forEachEnvelopeItem(envelope,callback){const envelopeItems=envelope[1];for(const envelopeItem of envelopeItems)if(callback(envelopeItem,envelopeItem[0].type))return!0;return!1}function encodeUTF8(input2,textEncoder){return(textEncoder||new TextEncoder).encode(input2)}function serializeEnvelope(envelope,textEncoder){const[envHeaders,items]=envelope;let parts=JSON.stringify(envHeaders);function append(next){"string"==typeof parts?parts="string"==typeof next?parts+next:[encodeUTF8(parts,textEncoder),next]:parts.push("string"==typeof next?encodeUTF8(next,textEncoder):next)}for(const item of items){const[itemHeaders,payload]=item;if(append(`\n${JSON.stringify(itemHeaders)}\n`),"string"==typeof payload||payload instanceof Uint8Array)append(payload);else{let stringifiedPayload;try{stringifiedPayload=JSON.stringify(payload)}catch{stringifiedPayload=JSON.stringify(normalize(payload))}append(stringifiedPayload)}}return"string"==typeof parts?parts:function concatBuffers(buffers){const totalLength=buffers.reduce((acc,buf)=>acc+buf.length,0),merged=new Uint8Array(totalLength);let offset=0;for(const buffer of buffers)merged.set(buffer,offset),offset+=buffer.length;return merged}(parts)}function createAttachmentEnvelopeItem(attachment,textEncoder){const buffer="string"==typeof attachment.data?encodeUTF8(attachment.data,textEncoder):attachment.data;return[object_dropUndefinedKeys({type:"attachment",length:buffer.length,filename:attachment.filename,content_type:attachment.contentType,attachment_type:attachment.attachmentType}),buffer]}const ITEM_TYPE_TO_DATA_CATEGORY_MAP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function envelopeItemTypeToDataCategory(type){return ITEM_TYPE_TO_DATA_CATEGORY_MAP[type]}function getSdkMetadataForEnvelopeHeader(metadataOrEvent){if(!metadataOrEvent||!metadataOrEvent.sdk)return;const{name,version:version2}=metadataOrEvent.sdk;return{name,version:version2}}function createEventEnvelopeHeaders(event,sdkInfo,tunnel,dsn){const dynamicSamplingContext=event.sdkProcessingMetadata&&event.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:event.event_id,sent_at:(new Date).toISOString(),...sdkInfo&&{sdk:sdkInfo},...!!tunnel&&dsn&&{dsn:dsnToString(dsn)},...dynamicSamplingContext&&{trace:object_dropUndefinedKeys({...dynamicSamplingContext})}}}class SentryError extends Error{constructor(message,logLevel="warn"){super(message),this.message=message,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=logLevel}}const ALREADY_SEEN_ERROR="Not capturing exception because it's already been captured.";class BaseClient{constructor(options){if(this._options=options,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],options.dsn?this._dsn=makeDsn(options.dsn):esm_debug_build_DEBUG_BUILD&&logger_logger.warn("No DSN provided, client will not send events."),this._dsn){const url=getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,options);this._transport=options.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...options.transportOptions,url})}}captureException(exception,hint,scope){if(checkOrSetAlreadyCaught(exception))return void(esm_debug_build_DEBUG_BUILD&&logger_logger.log(ALREADY_SEEN_ERROR));let eventId=hint&&hint.event_id;return this._process(this.eventFromException(exception,hint).then(event=>this._captureEvent(event,hint,scope)).then(result=>{eventId=result})),eventId}captureMessage(message,level,hint,scope){let eventId=hint&&hint.event_id;const eventMessage=isParameterizedString(message)?message:String(message),promisedEvent=is_isPrimitive(message)?this.eventFromMessage(eventMessage,level,hint):this.eventFromException(message,hint);return this._process(promisedEvent.then(event=>this._captureEvent(event,hint,scope)).then(result=>{eventId=result})),eventId}captureEvent(event,hint,scope){if(hint&&hint.originalException&&checkOrSetAlreadyCaught(hint.originalException))return void(esm_debug_build_DEBUG_BUILD&&logger_logger.log(ALREADY_SEEN_ERROR));let eventId=hint&&hint.event_id;return this._process(this._captureEvent(event,hint,(event.sdkProcessingMetadata||{}).capturedSpanScope||scope).then(result=>{eventId=result})),eventId}captureSession(session){"string"!=typeof session.release?esm_debug_build_DEBUG_BUILD&&logger_logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(session),updateSession(session,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(timeout){const transport=this._transport;return transport?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(timeout).then(clientFinished=>transport.flush(timeout).then(transportFlushed=>clientFinished&&transportFlushed))):resolvedSyncPromise(!0)}close(timeout){return this.flush(timeout).then(result=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),result))}getEventProcessors(){return this._eventProcessors}addEventProcessor(eventProcessor){this._eventProcessors.push(eventProcessor)}setupIntegrations(forceInitialize){(forceInitialize&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(integrationId){return this.getIntegrationByName(integrationId)}getIntegrationByName(integrationName){return this._integrations[integrationName]}getIntegration(integration){try{return this._integrations[integration.id]||null}catch{return esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`),null}}addIntegration(integration){const isAlreadyInstalled=this._integrations[integration.name];setupIntegration(this,integration,this._integrations),isAlreadyInstalled||afterSetupIntegrations(this,[integration])}sendEvent(event,hint={}){this.emit("beforeSendEvent",event,hint);let env2=function createEventEnvelope(event,dsn,metadata,tunnel){const sdkInfo=getSdkMetadataForEnvelopeHeader(metadata),eventType=event.type&&"replay_event"!==event.type?event.type:"event";!function enhanceEventWithSdkInfo(event,sdkInfo){sdkInfo&&(event.sdk=event.sdk||{},event.sdk.name=event.sdk.name||sdkInfo.name,event.sdk.version=event.sdk.version||sdkInfo.version,event.sdk.integrations=[...event.sdk.integrations||[],...sdkInfo.integrations||[]],event.sdk.packages=[...event.sdk.packages||[],...sdkInfo.packages||[]])}(event,metadata&&metadata.sdk);const envelopeHeaders=createEventEnvelopeHeaders(event,sdkInfo,tunnel,dsn);return delete event.sdkProcessingMetadata,createEnvelope(envelopeHeaders,[[{type:eventType},event]])}(event,this._dsn,this._options._metadata,this._options.tunnel);for(const attachment of hint.attachments||[])env2=addItemToEnvelope(env2,createAttachmentEnvelopeItem(attachment,this._options.transportOptions&&this._options.transportOptions.textEncoder));const promise=this._sendEnvelope(env2);promise&&promise.then(sendResponse=>this.emit("afterSendEvent",event,sendResponse),null)}sendSession(session){const env2=function createSessionEnvelope(session,dsn,metadata,tunnel){const sdkInfo=getSdkMetadataForEnvelopeHeader(metadata);return createEnvelope({sent_at:(new Date).toISOString(),...sdkInfo&&{sdk:sdkInfo},...!!tunnel&&dsn&&{dsn:dsnToString(dsn)}},["aggregates"in session?[{type:"sessions"},session]:[{type:"session"},session.toJSON()]])}(session,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(env2)}recordDroppedEvent(reason,category,_event){if(this._options.sendClientReports){const key=`${reason}:${category}`;esm_debug_build_DEBUG_BUILD&&logger_logger.log(`Adding outcome: "${key}"`),this._outcomes[key]=this._outcomes[key]+1||1}}captureAggregateMetrics(metricBucketItems){esm_debug_build_DEBUG_BUILD&&logger_logger.log(`Flushing aggregated metrics, number of metrics: ${metricBucketItems.length}`);const metricsEnvelope=function createMetricEnvelope(metricBucketItems,dsn,metadata,tunnel){const headers={sent_at:(new Date).toISOString()};metadata&&metadata.sdk&&(headers.sdk={name:metadata.sdk.name,version:metadata.sdk.version}),tunnel&&dsn&&(headers.dsn=dsnToString(dsn));const item=function createMetricEnvelopeItem(metricBucketItems){const payload=function serializeMetricBuckets(metricBucketItems){let out="";for(const item of metricBucketItems){const tagEntries=Object.entries(item.tags),maybeTags=tagEntries.length>0?`|#${tagEntries.map(([key,value])=>`${key}:${value}`).join(",")}`:"";out+=`${item.name}@${item.unit}:${item.metric}|${item.metricType}${maybeTags}|T${item.timestamp}\n`}return out}(metricBucketItems);return[{type:"statsd",length:payload.length},payload]}(metricBucketItems);return createEnvelope(headers,[item])}(metricBucketItems,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(metricsEnvelope)}on(hook,callback){this._hooks[hook]||(this._hooks[hook]=[]),this._hooks[hook].push(callback)}emit(hook,...rest){this._hooks[hook]&&this._hooks[hook].forEach(callback=>callback(...rest))}_setupIntegrations(){const{integrations}=this._options;this._integrations=function setupIntegrations(client,integrations){const integrationIndex={};return integrations.forEach(integration=>{integration&&setupIntegration(client,integration,integrationIndex)}),integrationIndex}(this,integrations),afterSetupIntegrations(this,integrations),this._integrationsInitialized=!0}_updateSessionFromEvent(session,event){let crashed=!1,errored=!1;const exceptions=event.exception&&event.exception.values;if(exceptions){errored=!0;for(const ex of exceptions){const mechanism=ex.mechanism;if(mechanism&&!1===mechanism.handled){crashed=!0;break}}}const sessionNonTerminal="ok"===session.status;(sessionNonTerminal&&0===session.errors||sessionNonTerminal&&crashed)&&(updateSession(session,{...crashed&&{status:"crashed"},errors:session.errors||Number(errored||crashed)}),this.captureSession(session))}_isClientDoneProcessing(timeout){return new SyncPromise(resolve=>{let ticked=0;const interval=setInterval(()=>{0==this._numProcessing?(clearInterval(interval),resolve(!0)):(ticked+=1,timeout&&ticked>=timeout&&(clearInterval(interval),resolve(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(event,hint,scope,isolationScope=hub_getIsolationScope()){const options=this.getOptions(),integrations=Object.keys(this._integrations);return!hint.integrations&&integrations.length>0&&(hint.integrations=integrations),this.emit("preprocessEvent",event,hint),prepareEvent(options,event,hint,scope,this,isolationScope).then(evt=>{if(null===evt)return evt;const propagationContext={...isolationScope.getPropagationContext(),...scope?scope.getPropagationContext():void 0};if((!evt.contexts||!evt.contexts.trace)&&propagationContext){const{traceId:trace_id,spanId,parentSpanId,dsc}=propagationContext;evt.contexts={trace:{trace_id,span_id:spanId,parent_span_id:parentSpanId},...evt.contexts};const dynamicSamplingContext=dsc||getDynamicSamplingContextFromClient(trace_id,this,scope);evt.sdkProcessingMetadata={dynamicSamplingContext,...evt.sdkProcessingMetadata}}return evt})}_captureEvent(event,hint={},scope){return this._processEvent(event,hint,scope).then(finalEvent=>finalEvent.event_id,reason=>{if(esm_debug_build_DEBUG_BUILD){const sentryError=reason;"log"===sentryError.logLevel?logger_logger.log(sentryError.message):logger_logger.warn(sentryError)}})}_processEvent(event,hint,scope){const options=this.getOptions(),{sampleRate}=options,isTransaction=isTransactionEvent(event),isError2=baseclient_isErrorEvent(event),eventType=event.type||"error",beforeSendLabel=`before send for type \`${eventType}\``;if(isError2&&"number"==typeof sampleRate&&Math.random()>sampleRate)return this.recordDroppedEvent("sample_rate","error",event),rejectedSyncPromise(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`,"log"));const dataCategory="replay_event"===eventType?"replay":eventType;return this._prepareEvent(event,hint,scope,(event.sdkProcessingMetadata||{}).capturedSpanIsolationScope).then(prepared=>{if(null===prepared)throw this.recordDroppedEvent("event_processor",dataCategory,event),new SentryError("An event processor returned `null`, will not send event.","log");if(hint.data&&!0===hint.data.__sentry__)return prepared;const result=function processBeforeSend(options,event,hint){const{beforeSend,beforeSendTransaction}=options;return baseclient_isErrorEvent(event)&&beforeSend?beforeSend(event,hint):isTransactionEvent(event)&&beforeSendTransaction?beforeSendTransaction(event,hint):event}(options,prepared,hint);return function _validateBeforeSendResult(beforeSendResult,beforeSendLabel){const invalidValueError=`${beforeSendLabel} must return \`null\` or a valid event.`;if(is_isThenable(beforeSendResult))return beforeSendResult.then(event=>{if(!isPlainObject(event)&&null!==event)throw new SentryError(invalidValueError);return event},e2=>{throw new SentryError(`${beforeSendLabel} rejected with ${e2}`)});if(!isPlainObject(beforeSendResult)&&null!==beforeSendResult)throw new SentryError(invalidValueError);return beforeSendResult}(result,beforeSendLabel)}).then(processedEvent=>{if(null===processedEvent)throw this.recordDroppedEvent("before_send",dataCategory,event),new SentryError(`${beforeSendLabel} returned \`null\`, will not send event.`,"log");const session=scope&&scope.getSession();!isTransaction&&session&&this._updateSessionFromEvent(session,processedEvent);const transactionInfo=processedEvent.transaction_info;if(isTransaction&&transactionInfo&&processedEvent.transaction!==event.transaction){const source="custom";processedEvent.transaction_info={...transactionInfo,source}}return this.sendEvent(processedEvent,hint),processedEvent}).then(null,reason=>{throw reason instanceof SentryError?reason:(this.captureException(reason,{data:{__sentry__:!0},originalException:reason}),new SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${reason}`))})}_process(promise){this._numProcessing++,promise.then(value=>(this._numProcessing--,value),reason=>(this._numProcessing--,reason))}_sendEnvelope(envelope){if(this.emit("beforeEnvelope",envelope),this._isEnabled()&&this._transport)return this._transport.send(envelope).then(null,reason=>{esm_debug_build_DEBUG_BUILD&&logger_logger.error("Error while sending event:",reason)});esm_debug_build_DEBUG_BUILD&&logger_logger.error("Transport disabled")}_clearOutcomes(){const outcomes=this._outcomes;return this._outcomes={},Object.keys(outcomes).map(key=>{const[reason,category]=key.split(":");return{reason,category,quantity:outcomes[key]}})}}function baseclient_isErrorEvent(event){return void 0===event.type}function isTransactionEvent(event){return"transaction"===event.type}function applySdkMetadata(options,name,names=[name],source="npm"){const metadata=options._metadata||{};metadata.sdk||(metadata.sdk={name:`sentry.javascript.${name}`,packages:names.map(name2=>({name:`${source}:@sentry/${name2}`,version:"7.112.2"})),version:"7.112.2"}),options._metadata=metadata}var env=__webpack_require__(286);const browser_esm_debug_build_DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function exceptionFromError(stackParser,ex){const frames=parseStackFrames(stackParser,ex),exception={type:ex&&ex.name,value:extractMessage(ex)};return frames.length&&(exception.stacktrace={frames}),void 0===exception.type&&""===exception.value&&(exception.value="Unrecoverable error caught"),exception}function eventFromError(stackParser,ex){return{exception:{values:[exceptionFromError(stackParser,ex)]}}}function parseStackFrames(stackParser,ex){const stacktrace=ex.stacktrace||ex.stack||"",popSize=function getPopSize(ex){if(ex){if("number"==typeof ex.framesToPop)return ex.framesToPop;if(reactMinifiedRegexp.test(ex.message))return 1}return 0}(ex);try{return stackParser(stacktrace,popSize)}catch{}return[]}const reactMinifiedRegexp=/Minified React error #\d+;/i;function extractMessage(ex){const message=ex&&ex.message;return message?message.error&&"string"==typeof message.error.message?message.error.message:message:"No error message"}function eventFromUnknownInput(stackParser,exception,syntheticException,attachStacktrace,isUnhandledRejection){let event;if(isErrorEvent(exception)&&exception.error)return eventFromError(stackParser,exception.error);if(isDOMError(exception)||function isDOMException(wat){return isBuiltin(wat,"DOMException")}(exception)){const domException=exception;if("stack"in exception)event=eventFromError(stackParser,exception);else{const name=domException.name||(isDOMError(domException)?"DOMError":"DOMException"),message=domException.message?`${name}: ${domException.message}`:name;event=eventFromString(stackParser,message,syntheticException,attachStacktrace),addExceptionTypeValue(event,message)}return"code"in domException&&(event.tags={...event.tags,"DOMException.code":`${domException.code}`}),event}return isError(exception)?eventFromError(stackParser,exception):isPlainObject(exception)||isEvent(exception)?(event=function eventFromPlainObject(stackParser,exception,syntheticException,isUnhandledRejection){const client=exports_getClient(),normalizeDepth=client&&client.getOptions().normalizeDepth,event={exception:{values:[{type:isEvent(exception)?exception.constructor.name:isUnhandledRejection?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(exception,{isUnhandledRejection})}]},extra:{__serialized__:normalizeToSize(exception,normalizeDepth)}};if(syntheticException){const frames=parseStackFrames(stackParser,syntheticException);frames.length&&(event.exception.values[0].stacktrace={frames})}return event}(stackParser,exception,syntheticException,isUnhandledRejection),addExceptionMechanism(event,{synthetic:!0}),event):(event=eventFromString(stackParser,exception,syntheticException,attachStacktrace),addExceptionTypeValue(event,`${exception}`,void 0),addExceptionMechanism(event,{synthetic:!0}),event)}function eventFromString(stackParser,message,syntheticException,attachStacktrace){const event={};if(attachStacktrace&&syntheticException){const frames=parseStackFrames(stackParser,syntheticException);frames.length&&(event.exception={values:[{value:message,stacktrace:{frames}}]})}if(isParameterizedString(message)){const{__sentry_template_string__,__sentry_template_values__}=message;return event.logentry={message:__sentry_template_string__,params:__sentry_template_values__},event}return event.message=message,event}function getNonErrorObjectExceptionValue(exception,{isUnhandledRejection}){const keys=function extractExceptionKeysForMessage(exception,maxLength=40){const keys=Object.keys(convertToPlainObject(exception));if(keys.sort(),!keys.length)return"[object has no keys]";if(keys[0].length>=maxLength)return truncate(keys[0],maxLength);for(let includedKeys=keys.length;includedKeys>0;includedKeys--){const serialized=keys.slice(0,includedKeys).join(", ");if(!(serialized.length>maxLength))return includedKeys===keys.length?serialized:truncate(serialized,maxLength)}return""}(exception),captureType=isUnhandledRejection?"promise rejection":"exception";return isErrorEvent(exception)?`Event \`ErrorEvent\` captured as ${captureType} with message \`${exception.message}\``:isEvent(exception)?`Event \`${function getObjectClassName(obj){try{const prototype=Object.getPrototypeOf(obj);return prototype?prototype.constructor.name:void 0}catch{}}(exception)}\` (type=${exception.type}) captured as ${captureType}`:`Object captured as ${captureType} with keys: ${keys}`}const helpers_WINDOW=GLOBAL_OBJ;let ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function helpers_wrap(fn,options={},before){if("function"!=typeof fn)return fn;try{const wrapper=fn.__sentry_wrapped__;if(wrapper)return wrapper;if(getOriginalFunction(fn))return fn}catch{return fn}const sentryWrapped=function(){const args=Array.prototype.slice.call(arguments);try{before&&"function"==typeof before&&before.apply(this,arguments);const wrappedArguments=args.map(arg=>helpers_wrap(arg,options));return fn.apply(this,wrappedArguments)}catch(ex){throw function ignoreNextOnError(){ignoreOnError++,setTimeout(()=>{ignoreOnError--})}(),function exports_withScope(...rest){const hub=hub_getCurrentHub();if(2===rest.length){const[scope,callback]=rest;return hub.withScope(scope?()=>(hub.getStackTop().scope=scope,callback(scope)):callback)}return hub.withScope(rest[0])}(scope=>{scope.addEventProcessor(event=>(options.mechanism&&(addExceptionTypeValue(event,void 0,void 0),addExceptionMechanism(event,options.mechanism)),event.extra={...event.extra,arguments:args},event)),captureException(ex)}),ex}};try{for(const property in fn)Object.prototype.hasOwnProperty.call(fn,property)&&(sentryWrapped[property]=fn[property])}catch{}markFunctionWrapped(sentryWrapped,fn),addNonEnumerableProperty(fn,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>fn.name})}catch{}return sentryWrapped}class BrowserClient extends BaseClient{constructor(options){applySdkMetadata(options,"browser",["browser"],helpers_WINDOW.SENTRY_SDK_SOURCE||(0,env.e)()),super(options),options.sendClientReports&&helpers_WINDOW.document&&helpers_WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===helpers_WINDOW.document.visibilityState&&this._flushOutcomes()})}eventFromException(exception,hint){return function eventFromException(stackParser,exception,hint,attachStacktrace){const event=eventFromUnknownInput(stackParser,exception,hint&&hint.syntheticException||void 0,attachStacktrace);return addExceptionMechanism(event),event.level="error",hint&&hint.event_id&&(event.event_id=hint.event_id),resolvedSyncPromise(event)}(this._options.stackParser,exception,hint,this._options.attachStacktrace)}eventFromMessage(message,level="info",hint){return function eventFromMessage(stackParser,message,level="info",hint,attachStacktrace){const event=eventFromString(stackParser,message,hint&&hint.syntheticException||void 0,attachStacktrace);return event.level=level,hint&&hint.event_id&&(event.event_id=hint.event_id),resolvedSyncPromise(event)}(this._options.stackParser,message,level,hint,this._options.attachStacktrace)}captureUserFeedback(feedback){if(!this._isEnabled())return void(browser_esm_debug_build_DEBUG_BUILD&&logger_logger.warn("SDK not enabled, will not capture user feedback."));const envelope=function createUserFeedbackEnvelope(feedback,{metadata,tunnel,dsn}){const headers={event_id:feedback.event_id,sent_at:(new Date).toISOString(),...metadata&&metadata.sdk&&{sdk:{name:metadata.sdk.name,version:metadata.sdk.version}},...!!tunnel&&!!dsn&&{dsn:dsnToString(dsn)}},item=function createUserFeedbackEnvelopeItem(feedback){return[{type:"user_report"},feedback]}(feedback);return createEnvelope(headers,[item])}(feedback,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(envelope)}_prepareEvent(event,hint,scope){return event.platform=event.platform||"javascript",super._prepareEvent(event,hint,scope)}_flushOutcomes(){const outcomes=this._clearOutcomes();if(0===outcomes.length)return void(browser_esm_debug_build_DEBUG_BUILD&&logger_logger.log("No outcomes to send"));if(!this._dsn)return void(browser_esm_debug_build_DEBUG_BUILD&&logger_logger.log("No dsn provided, will not send outcomes"));browser_esm_debug_build_DEBUG_BUILD&&logger_logger.log("Sending outcomes:",outcomes);const envelope=function createClientReportEnvelope(discarded_events,dsn,timestamp){return createEnvelope(dsn?{dsn}:{},[[{type:"client_report"},{timestamp:timestamp||dateTimestampInSeconds(),discarded_events}]])}(outcomes,this._options.tunnel&&dsnToString(this._dsn));this._sendEnvelope(envelope)}}function instrumentConsole(){"console"in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach(function(level){level in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,level,function(originalConsoleMethod){return originalConsoleMethods[level]=originalConsoleMethod,function(...args){triggerHandlers("console",{args,level});const log=originalConsoleMethods[level];log&&log.apply(GLOBAL_OBJ.console,args)}})})}const dom_WINDOW=GLOBAL_OBJ,DEBOUNCE_DURATION=1e3;let debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId;function addClickKeypressInstrumentationHandler(handler){addHandler("dom",handler),maybeInstrument("dom",instrumentDOM)}function instrumentDOM(){if(!dom_WINDOW.document)return;const triggerDOMHandler=triggerHandlers.bind(null,"dom"),globalDOMEventHandler=makeDOMEventHandler(triggerDOMHandler,!0);dom_WINDOW.document.addEventListener("click",globalDOMEventHandler,!1),dom_WINDOW.document.addEventListener("keypress",globalDOMEventHandler,!1),["EventTarget","Node"].forEach(target=>{const proto=dom_WINDOW[target]&&dom_WINDOW[target].prototype;!proto||!proto.hasOwnProperty||!proto.hasOwnProperty("addEventListener")||(fill(proto,"addEventListener",function(originalAddEventListener){return function(type,listener,options){if("click"===type||"keypress"==type)try{const el=this,handlers2=el.__sentry_instrumentation_handlers__=el.__sentry_instrumentation_handlers__||{},handlerForType=handlers2[type]=handlers2[type]||{refCount:0};if(!handlerForType.handler){const handler=makeDOMEventHandler(triggerDOMHandler);handlerForType.handler=handler,originalAddEventListener.call(this,type,handler,options)}handlerForType.refCount++}catch{}return originalAddEventListener.call(this,type,listener,options)}}),fill(proto,"removeEventListener",function(originalRemoveEventListener){return function(type,listener,options){if("click"===type||"keypress"==type)try{const el=this,handlers2=el.__sentry_instrumentation_handlers__||{},handlerForType=handlers2[type];handlerForType&&(handlerForType.refCount--,handlerForType.refCount<=0&&(originalRemoveEventListener.call(this,type,handlerForType.handler,options),handlerForType.handler=void 0,delete handlers2[type]),0===Object.keys(handlers2).length&&delete el.__sentry_instrumentation_handlers__)}catch{}return originalRemoveEventListener.call(this,type,listener,options)}}))})}function makeDOMEventHandler(handler,globalListener=!1){return event=>{if(!event||event._sentryCaptured)return;const target=function getEventTarget(event){try{return event.target}catch{return null}}(event);if(function shouldSkipDOMEvent(eventType,target){return!("keypress"!==eventType||target&&target.tagName&&("INPUT"===target.tagName||"TEXTAREA"===target.tagName||target.isContentEditable))}(event.type,target))return;addNonEnumerableProperty(event,"_sentryCaptured",!0),target&&!target._sentryId&&addNonEnumerableProperty(target,"_sentryId",misc_uuid4());const name="keypress"===event.type?"input":event.type;(function isSimilarToLastCapturedEvent(event){if(event.type!==lastCapturedEventType)return!1;try{if(!event.target||event.target._sentryId!==lastCapturedEventTargetId)return!1}catch{}return!0})(event)||(handler({event,name,global:globalListener}),lastCapturedEventType=event.type,lastCapturedEventTargetId=target?target._sentryId:void 0),clearTimeout(debounceTimerID),debounceTimerID=dom_WINDOW.setTimeout(()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0},DEBOUNCE_DURATION)}}const xhr_WINDOW=GLOBAL_OBJ,SENTRY_XHR_DATA_KEY="__sentry_xhr_v3__";function addXhrInstrumentationHandler(handler){addHandler("xhr",handler),maybeInstrument("xhr",instrumentXHR)}function instrumentXHR(){if(!xhr_WINDOW.XMLHttpRequest)return;const xhrproto=XMLHttpRequest.prototype;fill(xhrproto,"open",function(originalOpen){return function(...args){const startTimestamp=Date.now(),method=isString(args[0])?args[0].toUpperCase():void 0,url=function parseUrl(url){if(isString(url))return url;try{return url.toString()}catch{}}(args[1]);if(!method||!url)return originalOpen.apply(this,args);this[SENTRY_XHR_DATA_KEY]={method,url,request_headers:{}},"POST"===method&&url.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const onreadystatechangeHandler=()=>{const xhrInfo=this[SENTRY_XHR_DATA_KEY];if(xhrInfo&&4===this.readyState){try{xhrInfo.status_code=this.status}catch{}triggerHandlers("xhr",{args:[method,url],endTimestamp:Date.now(),startTimestamp,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?fill(this,"onreadystatechange",function(original){return function(...readyStateArgs){return onreadystatechangeHandler(),original.apply(this,readyStateArgs)}}):this.addEventListener("readystatechange",onreadystatechangeHandler),fill(this,"setRequestHeader",function(original){return function(...setRequestHeaderArgs){const[header,value]=setRequestHeaderArgs,xhrInfo=this[SENTRY_XHR_DATA_KEY];return xhrInfo&&isString(header)&&isString(value)&&(xhrInfo.request_headers[header.toLowerCase()]=value),original.apply(this,setRequestHeaderArgs)}}),originalOpen.apply(this,args)}}),fill(xhrproto,"send",function(originalSend){return function(...args){const sentryXhrData=this[SENTRY_XHR_DATA_KEY];return sentryXhrData?(void 0!==args[0]&&(sentryXhrData.body=args[0]),triggerHandlers("xhr",{args:[sentryXhrData.method,sentryXhrData.url],startTimestamp:Date.now(),xhr:this}),originalSend.apply(this,args)):originalSend.apply(this,args)}})}function addFetchInstrumentationHandler(handler){addHandler("fetch",handler),maybeInstrument("fetch",instrumentFetch)}function instrumentFetch(){(function supportsNativeFetch(){if("string"==typeof EdgeRuntime)return!0;if(!supportsFetch())return!1;if(isNativeFetch(supports_WINDOW.fetch))return!0;let result=!1;const doc=supports_WINDOW.document;if(doc&&"function"==typeof doc.createElement)try{const sandbox=doc.createElement("iframe");sandbox.hidden=!0,doc.head.appendChild(sandbox),sandbox.contentWindow&&sandbox.contentWindow.fetch&&(result=isNativeFetch(sandbox.contentWindow.fetch)),doc.head.removeChild(sandbox)}catch(err){debug_build_DEBUG_BUILD&&logger_logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",err)}return result})()&&fill(GLOBAL_OBJ,"fetch",function(originalFetch){return function(...args){const{method,url}=function parseFetchArgs(fetchArgs){if(0===fetchArgs.length)return{method:"GET",url:""};if(2===fetchArgs.length){const[url,options]=fetchArgs;return{url:getUrlFromResource(url),method:hasProp(options,"method")?String(options.method).toUpperCase():"GET"}}const arg=fetchArgs[0];return{url:getUrlFromResource(arg),method:hasProp(arg,"method")?String(arg.method).toUpperCase():"GET"}}(args),handlerData={args,fetchData:{method,url},startTimestamp:Date.now()};return triggerHandlers("fetch",{...handlerData}),originalFetch.apply(GLOBAL_OBJ,args).then(response=>(triggerHandlers("fetch",{...handlerData,endTimestamp:Date.now(),response}),response),error=>{throw triggerHandlers("fetch",{...handlerData,endTimestamp:Date.now(),error}),error})}})}function hasProp(obj,prop2){return!!obj&&"object"==typeof obj&&!!obj[prop2]}function getUrlFromResource(resource){return"string"==typeof resource?resource:resource?hasProp(resource,"url")?resource.url:resource.toString?resource.toString():"":""}const validSeverityLevels=["fatal","error","warning","log","info","debug"];function url_parseUrl(url){if(!url)return{};const match2=url.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!match2)return{};const query2=match2[6]||"",fragment=match2[8]||"";return{host:match2[4],path:match2[5],protocol:match2[2],search:query2,hash:fragment,relative:match2[5]+query2+fragment}}const breadcrumbsIntegration=(options={})=>{const _options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...options};return{name:"Breadcrumbs",setupOnce(){},setup(client){_options.console&&function addConsoleInstrumentationHandler(handler){addHandler("console",handler),maybeInstrument("console",instrumentConsole)}(function _getConsoleBreadcrumbHandler(client){return function(handlerData){if(exports_getClient()!==client)return;const breadcrumb={category:"console",data:{arguments:handlerData.args,logger:"console"},level:(level=handlerData.level,"warn"===level?"warning":validSeverityLevels.includes(level)?level:"log"),message:safeJoin(handlerData.args," ")};var level;if("assert"===handlerData.level){if(!1!==handlerData.args[0])return;breadcrumb.message=`Assertion failed: ${safeJoin(handlerData.args.slice(1)," ")||"console.assert"}`,breadcrumb.data.arguments=handlerData.args.slice(1)}addBreadcrumb(breadcrumb,{input:handlerData.args,level:handlerData.level})}}(client)),_options.dom&&addClickKeypressInstrumentationHandler(function _getDomBreadcrumbHandler(client,dom){return function(handlerData){if(exports_getClient()!==client)return;let target,componentName,keyAttrs="object"==typeof dom?dom.serializeAttribute:void 0,maxStringLength="object"==typeof dom&&"number"==typeof dom.maxStringLength?dom.maxStringLength:void 0;maxStringLength&&maxStringLength>1024&&(browser_esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${maxStringLength} was configured. Sentry will use 1024 instead.`),maxStringLength=1024),"string"==typeof keyAttrs&&(keyAttrs=[keyAttrs]);try{const event=handlerData.event,element=function _isEvent(event){return!!event&&!!event.target}(event)?event.target:event;target=htmlTreeAsString(element,{keyAttrs,maxStringLength}),componentName=getComponentName(element)}catch{target=""}if(0===target.length)return;const breadcrumb={category:`ui.${handlerData.name}`,message:target};componentName&&(breadcrumb.data={"ui.component_name":componentName}),addBreadcrumb(breadcrumb,{event:handlerData.event,name:handlerData.name,global:handlerData.global})}}(client,_options.dom)),_options.xhr&&addXhrInstrumentationHandler(function _getXhrBreadcrumbHandler(client){return function(handlerData){if(exports_getClient()!==client)return;const{startTimestamp,endTimestamp}=handlerData,sentryXhrData=handlerData.xhr[SENTRY_XHR_DATA_KEY];if(!startTimestamp||!endTimestamp||!sentryXhrData)return;const{method,url,status_code,body}=sentryXhrData;addBreadcrumb({category:"xhr",data:{method,url,status_code},type:"http"},{xhr:handlerData.xhr,input:body,startTimestamp,endTimestamp})}}(client)),_options.fetch&&addFetchInstrumentationHandler(function _getFetchBreadcrumbHandler(client){return function(handlerData){if(exports_getClient()!==client)return;const{startTimestamp,endTimestamp}=handlerData;if(endTimestamp&&(!handlerData.fetchData.url.match(/sentry_key/)||"POST"!==handlerData.fetchData.method))if(handlerData.error)addBreadcrumb({category:"fetch",data:handlerData.fetchData,level:"error",type:"http"},{data:handlerData.error,input:handlerData.args,startTimestamp,endTimestamp});else{const response=handlerData.response;addBreadcrumb({category:"fetch",data:{...handlerData.fetchData,status_code:response&&response.status},type:"http"},{input:handlerData.args,response,startTimestamp,endTimestamp})}}}(client)),_options.history&&addHistoryInstrumentationHandler(function _getHistoryBreadcrumbHandler(client){return function(handlerData){if(exports_getClient()!==client)return;let from2=handlerData.from,to=handlerData.to;const parsedLoc=url_parseUrl(helpers_WINDOW.location.href);let parsedFrom=from2?url_parseUrl(from2):void 0;const parsedTo=url_parseUrl(to);(!parsedFrom||!parsedFrom.path)&&(parsedFrom=parsedLoc),parsedLoc.protocol===parsedTo.protocol&&parsedLoc.host===parsedTo.host&&(to=parsedTo.relative),parsedLoc.protocol===parsedFrom.protocol&&parsedLoc.host===parsedFrom.host&&(from2=parsedFrom.relative),addBreadcrumb({category:"navigation",data:{from:from2,to}})}}(client)),_options.sentry&&client.on&&client.on("beforeSendEvent",function _getSentryBreadcrumbHandler(client){return function(event){exports_getClient()===client&&addBreadcrumb({category:"sentry."+("transaction"===event.type?"transaction":"event"),event_id:event.event_id,level:event.level,message:getEventDescription(event)},{event})}}(client))}}};convertIntegrationFnToClass("Breadcrumbs",breadcrumbsIntegration);const dedupeIntegration=()=>{let previousEvent;return{name:"Dedupe",setupOnce(){},processEvent(currentEvent){if(currentEvent.type)return currentEvent;try{if(function dedupe_shouldDropEvent(currentEvent,previousEvent){return!(!previousEvent||!function _isSameMessageEvent(currentEvent,previousEvent){const currentMessage=currentEvent.message,previousMessage=previousEvent.message;return!(!currentMessage&&!previousMessage||currentMessage&&!previousMessage||!currentMessage&&previousMessage||currentMessage!==previousMessage||!_isSameFingerprint(currentEvent,previousEvent)||!_isSameStacktrace(currentEvent,previousEvent))}(currentEvent,previousEvent)&&!function _isSameExceptionEvent(currentEvent,previousEvent){const previousException=_getExceptionFromEvent(previousEvent),currentException=_getExceptionFromEvent(currentEvent);return!!(previousException&¤tException&&previousException.type===currentException.type&&previousException.value===currentException.value&&_isSameFingerprint(currentEvent,previousEvent)&&_isSameStacktrace(currentEvent,previousEvent))}(currentEvent,previousEvent))}(currentEvent,previousEvent))return browser_esm_debug_build_DEBUG_BUILD&&logger_logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return previousEvent=currentEvent}}};function _isSameStacktrace(currentEvent,previousEvent){let currentFrames=_getFramesFromEvent(currentEvent),previousFrames=_getFramesFromEvent(previousEvent);if(!currentFrames&&!previousFrames)return!0;if(currentFrames&&!previousFrames||!currentFrames&&previousFrames||previousFrames.length!==currentFrames.length)return!1;for(let i=0;i{const _options={onerror:!0,onunhandledrejection:!0,...options};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(client){_options.onerror&&(function _installGlobalOnErrorHandler(client){addGlobalErrorInstrumentationHandler(data=>{const{stackParser,attachStacktrace}=getOptions();if(exports_getClient()!==client||shouldIgnoreOnError())return;const{msg,url,line,column,error}=data,event=void 0===error&&isString(msg)?function _eventFromIncompleteOnError(msg,url,line,column){let message=isErrorEvent(msg)?msg.message:msg,name="Error";const groups=message.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return groups&&(name=groups[1],message=groups[2]),_enhanceEventWithInitialFrame({exception:{values:[{type:name,value:message}]}},url,line,column)}(msg,url,line,column):_enhanceEventWithInitialFrame(eventFromUnknownInput(stackParser,error||msg,void 0,attachStacktrace,!1),url,line,column);event.level="error",captureEvent(event,{originalException:error,mechanism:{handled:!1,type:"onerror"}})})}(client),globalHandlerLog("onerror")),_options.onunhandledrejection&&(function _installGlobalOnUnhandledRejectionHandler(client){addGlobalUnhandledRejectionInstrumentationHandler(e2=>{const{stackParser,attachStacktrace}=getOptions();if(exports_getClient()!==client||shouldIgnoreOnError())return;const error=function _getUnhandledRejectionError(error){if(is_isPrimitive(error))return error;const e2=error;try{if("reason"in e2)return e2.reason;if("detail"in e2&&"reason"in e2.detail)return e2.detail.reason}catch{}return error}(e2),event=is_isPrimitive(error)?function _eventFromRejectionWithPrimitive(reason){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(reason)}`}]}}}(error):eventFromUnknownInput(stackParser,error,void 0,attachStacktrace,!0);event.level="error",captureEvent(event,{originalException:error,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(client),globalHandlerLog("onunhandledrejection"))}}};function _enhanceEventWithInitialFrame(event,url,line,column){const e2=event.exception=event.exception||{},ev=e2.values=e2.values||[],ev0=ev[0]=ev[0]||{},ev0s=ev0.stacktrace=ev0.stacktrace||{},ev0sf=ev0s.frames=ev0s.frames||[],colno=isNaN(parseInt(column,10))?void 0:column,lineno=isNaN(parseInt(line,10))?void 0:line,filename=isString(url)&&url.length>0?url:function getLocationHref(){try{return browser_WINDOW.document.location.href}catch{return""}}();return 0===ev0sf.length&&ev0sf.push({colno,filename,function:"?",in_app:!0,lineno}),event}function globalHandlerLog(type){browser_esm_debug_build_DEBUG_BUILD&&logger_logger.log(`Global Handler attached: ${type}`)}function getOptions(){const client=exports_getClient();return client&&client.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}convertIntegrationFnToClass("GlobalHandlers",globalHandlersIntegration);const httpContextIntegration=()=>({name:"HttpContext",setupOnce(){},preprocessEvent(event){if(!helpers_WINDOW.navigator&&!helpers_WINDOW.location&&!helpers_WINDOW.document)return;const url=event.request&&event.request.url||helpers_WINDOW.location&&helpers_WINDOW.location.href,{referrer}=helpers_WINDOW.document||{},{userAgent}=helpers_WINDOW.navigator||{},headers={...event.request&&event.request.headers,...referrer&&{Referer:referrer},...userAgent&&{"User-Agent":userAgent}},request={...event.request,...url&&{url},headers};event.request=request}});function applyAggregateErrorsToEvent(exceptionFromErrorImplementation,parser,maxValueLimit=250,key,limit,event,hint){if(!(event.exception&&event.exception.values&&hint&&isInstanceOf(hint.originalException,Error)))return;const originalException=event.exception.values.length>0?event.exception.values[event.exception.values.length-1]:void 0;originalException&&(event.exception.values=function truncateAggregateExceptions(exceptions,maxValueLength){return exceptions.map(exception=>(exception.value&&(exception.value=truncate(exception.value,maxValueLength)),exception))}(aggregateExceptionsFromError(exceptionFromErrorImplementation,parser,limit,hint.originalException,key,event.exception.values,originalException,0),maxValueLimit))}function aggregateExceptionsFromError(exceptionFromErrorImplementation,parser,limit,error,key,prevExceptions,exception,exceptionId){if(prevExceptions.length>=limit+1)return prevExceptions;let newExceptions=[...prevExceptions];if(isInstanceOf(error[key],Error)){applyExceptionGroupFieldsForParentException(exception,exceptionId);const newException=exceptionFromErrorImplementation(parser,error[key]),newExceptionId=newExceptions.length;applyExceptionGroupFieldsForChildException(newException,key,newExceptionId,exceptionId),newExceptions=aggregateExceptionsFromError(exceptionFromErrorImplementation,parser,limit,error[key],key,[newException,...newExceptions],newException,newExceptionId)}return Array.isArray(error.errors)&&error.errors.forEach((childError,i)=>{if(isInstanceOf(childError,Error)){applyExceptionGroupFieldsForParentException(exception,exceptionId);const newException=exceptionFromErrorImplementation(parser,childError),newExceptionId=newExceptions.length;applyExceptionGroupFieldsForChildException(newException,`errors[${i}]`,newExceptionId,exceptionId),newExceptions=aggregateExceptionsFromError(exceptionFromErrorImplementation,parser,limit,childError,key,[newException,...newExceptions],newException,newExceptionId)}}),newExceptions}function applyExceptionGroupFieldsForParentException(exception,exceptionId){exception.mechanism=exception.mechanism||{type:"generic",handled:!0},exception.mechanism={...exception.mechanism,..."AggregateError"===exception.type&&{is_exception_group:!0},exception_id:exceptionId}}function applyExceptionGroupFieldsForChildException(exception,source,exceptionId,parentId){exception.mechanism=exception.mechanism||{type:"generic",handled:!0},exception.mechanism={...exception.mechanism,type:"chained",source,exception_id:exceptionId,parent_id:parentId}}convertIntegrationFnToClass("HttpContext",httpContextIntegration);const linkedErrorsIntegration=(options={})=>{const limit=options.limit||5,key=options.key||"cause";return{name:"LinkedErrors",setupOnce(){},preprocessEvent(event,hint,client){const options2=client.getOptions();applyAggregateErrorsToEvent(exceptionFromError,options2.stackParser,options2.maxValueLength,key,limit,event,hint)}}},DEFAULT_EVENT_TARGET=(convertIntegrationFnToClass("LinkedErrors",linkedErrorsIntegration),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),browserApiErrorsIntegration=(options={})=>{const _options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...options};return{name:"TryCatch",setupOnce(){_options.setTimeout&&fill(helpers_WINDOW,"setTimeout",_wrapTimeFunction),_options.setInterval&&fill(helpers_WINDOW,"setInterval",_wrapTimeFunction),_options.requestAnimationFrame&&fill(helpers_WINDOW,"requestAnimationFrame",_wrapRAF),_options.XMLHttpRequest&&"XMLHttpRequest"in helpers_WINDOW&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);const eventTargetOption=_options.eventTarget;eventTargetOption&&(Array.isArray(eventTargetOption)?eventTargetOption:DEFAULT_EVENT_TARGET).forEach(_wrapEventTarget)}}};function _wrapTimeFunction(original){return function(...args){return args[0]=helpers_wrap(args[0],{mechanism:{data:{function:getFunctionName(original)},handled:!1,type:"instrument"}}),original.apply(this,args)}}function _wrapRAF(original){return function(callback){return original.apply(this,[helpers_wrap(callback,{mechanism:{data:{function:"requestAnimationFrame",handler:getFunctionName(original)},handled:!1,type:"instrument"}})])}}function _wrapXHR(originalSend){return function(...args){const xhr=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(prop2=>{prop2 in xhr&&"function"==typeof xhr[prop2]&&fill(xhr,prop2,function(original){const wrapOptions={mechanism:{data:{function:prop2,handler:getFunctionName(original)},handled:!1,type:"instrument"}},originalFunction=getOriginalFunction(original);return originalFunction&&(wrapOptions.mechanism.data.handler=getFunctionName(originalFunction)),helpers_wrap(original,wrapOptions)})}),originalSend.apply(this,args)}}function _wrapEventTarget(target){const proto=helpers_WINDOW[target]&&helpers_WINDOW[target].prototype;!proto||!proto.hasOwnProperty||!proto.hasOwnProperty("addEventListener")||(fill(proto,"addEventListener",function(original){return function(eventName,fn,options){try{"function"==typeof fn.handleEvent&&(fn.handleEvent=helpers_wrap(fn.handleEvent,{mechanism:{data:{function:"handleEvent",handler:getFunctionName(fn),target},handled:!1,type:"instrument"}}))}catch{}return original.apply(this,[eventName,helpers_wrap(fn,{mechanism:{data:{function:"addEventListener",handler:getFunctionName(fn),target},handled:!1,type:"instrument"}}),options])}}),fill(proto,"removeEventListener",function(originalRemoveEventListener){return function(eventName,fn,options){const wrappedEventHandler=fn;try{const originalEventHandler=wrappedEventHandler&&wrappedEventHandler.__sentry_wrapped__;originalEventHandler&&originalRemoveEventListener.call(this,eventName,originalEventHandler,options)}catch{}return originalRemoveEventListener.call(this,eventName,wrappedEventHandler,options)}}))}function createFrame(filename,func,lineno,colno){const frame={filename,function:func,in_app:!0};return void 0!==lineno&&(frame.lineno=lineno),void 0!==colno&&(frame.colno=colno),frame}convertIntegrationFnToClass("TryCatch",browserApiErrorsIntegration);const chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,winjsRegex=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,defaultStackParser=createStackParser([30,line=>{const parts=chromeRegex.exec(line);if(parts){if(parts[2]&&0===parts[2].indexOf("eval")){const subMatch=chromeEvalRegex.exec(parts[2]);subMatch&&(parts[2]=subMatch[1],parts[3]=subMatch[2],parts[4]=subMatch[3])}const[func,filename]=extractSafariExtensionDetails(parts[1]||"?",parts[2]);return createFrame(filename,func,parts[3]?+parts[3]:void 0,parts[4]?+parts[4]:void 0)}}],[50,line=>{const parts=geckoREgex.exec(line);if(parts){if(parts[3]&&parts[3].indexOf(" > eval")>-1){const subMatch=geckoEvalRegex.exec(parts[3]);subMatch&&(parts[1]=parts[1]||"eval",parts[3]=subMatch[1],parts[4]=subMatch[2],parts[5]="")}let filename=parts[3],func=parts[1]||"?";return[func,filename]=extractSafariExtensionDetails(func,filename),createFrame(filename,func,parts[4]?+parts[4]:void 0,parts[5]?+parts[5]:void 0)}}],[40,line=>{const parts=winjsRegex.exec(line);return parts?createFrame(parts[2],parts[1]||"?",+parts[3],parts[4]?+parts[4]:void 0):void 0}]),extractSafariExtensionDetails=(func,filename)=>{const isSafariExtension=-1!==func.indexOf("safari-extension"),isSafariWebExtension=-1!==func.indexOf("safari-web-extension");return isSafariExtension||isSafariWebExtension?[-1!==func.indexOf("@")?func.split("@")[0]:"?",isSafariExtension?`safari-extension:${filename}`:`safari-web-extension:${filename}`]:[func,filename]};const DEFAULT_RETRY_AFTER=6e4;function isRateLimited(limits,dataCategory,now=Date.now()){return function disabledUntil(limits,dataCategory){return limits[dataCategory]||limits.all||0}(limits,dataCategory)>now}function updateRateLimits(limits,{statusCode,headers},now=Date.now()){const updatedRateLimits={...limits},rateLimitHeader=headers&&headers["x-sentry-rate-limits"],retryAfterHeader=headers&&headers["retry-after"];if(rateLimitHeader)for(const limit of rateLimitHeader.trim().split(",")){const[retryAfter,categories,,,namespaces]=limit.split(":",5),headerDelay=parseInt(retryAfter,10),delay2=1e3*(isNaN(headerDelay)?60:headerDelay);if(categories)for(const category of categories.split(";"))"metric_bucket"===category?(!namespaces||namespaces.split(";").includes("custom"))&&(updatedRateLimits[category]=now+delay2):updatedRateLimits[category]=now+delay2;else updatedRateLimits.all=now+delay2}else retryAfterHeader?updatedRateLimits.all=now+function parseRetryAfterHeader(header,now=Date.now()){const headerDelay=parseInt(`${header}`,10);if(!isNaN(headerDelay))return 1e3*headerDelay;const headerDate=Date.parse(`${header}`);return isNaN(headerDate)?DEFAULT_RETRY_AFTER:headerDate-now}(retryAfterHeader,now):429===statusCode&&(updatedRateLimits.all=now+6e4);return updatedRateLimits}const DEFAULT_TRANSPORT_BUFFER_SIZE=30;function createTransport(options,makeRequest2,buffer=function makePromiseBuffer(limit){const buffer=[];function remove2(task){return buffer.splice(buffer.indexOf(task),1)[0]}return{$:buffer,add:function add(taskProducer){if(!function isReady(){return void 0===limit||buffer.lengthremove2(task)).then(null,()=>remove2(task).then(null,()=>{})),task},drain:function drain(timeout){return new SyncPromise((resolve,reject)=>{let counter=buffer.length;if(!counter)return resolve(!0);const capturedSetTimeout=setTimeout(()=>{timeout&&timeout>0&&resolve(!1)},timeout);buffer.forEach(item=>{resolvedSyncPromise(item).then(()=>{--counter||(clearTimeout(capturedSetTimeout),resolve(!0))},reject)})})}}}(options.bufferSize||DEFAULT_TRANSPORT_BUFFER_SIZE)){let rateLimits={};function send(envelope){const filteredEnvelopeItems=[];if(forEachEnvelopeItem(envelope,(item,type)=>{const dataCategory=envelopeItemTypeToDataCategory(type);if(isRateLimited(rateLimits,dataCategory)){const event=getEventForEnvelopeItem(item,type);options.recordDroppedEvent("ratelimit_backoff",dataCategory,event)}else filteredEnvelopeItems.push(item)}),0===filteredEnvelopeItems.length)return resolvedSyncPromise();const filteredEnvelope=createEnvelope(envelope[0],filteredEnvelopeItems),recordEnvelopeLoss=reason=>{forEachEnvelopeItem(filteredEnvelope,(item,type)=>{const event=getEventForEnvelopeItem(item,type);options.recordDroppedEvent(reason,envelopeItemTypeToDataCategory(type),event)})};return buffer.add(()=>makeRequest2({body:serializeEnvelope(filteredEnvelope,options.textEncoder)}).then(response=>(void 0!==response.statusCode&&(response.statusCode<200||response.statusCode>=300)&&esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`),rateLimits=updateRateLimits(rateLimits,response),response),error=>{throw recordEnvelopeLoss("network_error"),error})).then(result=>result,error=>{if(error instanceof SentryError)return esm_debug_build_DEBUG_BUILD&&logger_logger.error("Skipped sending event because buffer is full."),recordEnvelopeLoss("queue_overflow"),resolvedSyncPromise();throw error})}return send.__sentry__baseTransport__=!0,{send,flush:timeout=>buffer.drain(timeout)}}function getEventForEnvelopeItem(item,type){if("event"===type||"transaction"===type)return Array.isArray(item)?item[1]:void 0}let cachedFetchImpl;function makeFetchTransport(options,nativeFetch=function getNativeFetchImplementation(){if(cachedFetchImpl)return cachedFetchImpl;if(isNativeFetch(helpers_WINDOW.fetch))return cachedFetchImpl=helpers_WINDOW.fetch.bind(helpers_WINDOW);const document2=helpers_WINDOW.document;let fetchImpl=helpers_WINDOW.fetch;if(document2&&"function"==typeof document2.createElement)try{const sandbox=document2.createElement("iframe");sandbox.hidden=!0,document2.head.appendChild(sandbox);const contentWindow=sandbox.contentWindow;contentWindow&&contentWindow.fetch&&(fetchImpl=contentWindow.fetch),document2.head.removeChild(sandbox)}catch(e2){browser_esm_debug_build_DEBUG_BUILD&&logger_logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e2)}return cachedFetchImpl=fetchImpl.bind(helpers_WINDOW)}()){let pendingBodySize=0,pendingCount=0;return createTransport(options,function makeRequest2(request){const requestSize=request.body.length;pendingBodySize+=requestSize,pendingCount++;const requestOptions={body:request.body,method:"POST",referrerPolicy:"origin",headers:options.headers,keepalive:pendingBodySize<=6e4&&pendingCount<15,...options.fetchOptions};try{return nativeFetch(options.url,requestOptions).then(response=>(pendingBodySize-=requestSize,pendingCount--,{statusCode:response.status,headers:{"x-sentry-rate-limits":response.headers.get("X-Sentry-Rate-Limits"),"retry-after":response.headers.get("Retry-After")}}))}catch(e2){return function clearCachedFetchImplementation(){cachedFetchImpl=void 0}(),pendingBodySize-=requestSize,pendingCount--,rejectedSyncPromise(e2)}})}const XHR_READYSTATE_DONE=4;function makeXHRTransport(options){return createTransport(options,function makeRequest2(request){return new SyncPromise((resolve,reject)=>{const xhr=new XMLHttpRequest;xhr.onerror=reject,xhr.onreadystatechange=()=>{xhr.readyState===XHR_READYSTATE_DONE&&resolve({statusCode:xhr.status,headers:{"x-sentry-rate-limits":xhr.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":xhr.getResponseHeader("Retry-After")}})},xhr.open("POST",options.url);for(const header in options.headers)Object.prototype.hasOwnProperty.call(options.headers,header)&&xhr.setRequestHeader(header,options.headers[header]);xhr.send(request.body)})})}const defaultIntegrations=[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration()];function getDefaultIntegrations(_options){return[...defaultIntegrations]}function init(options={}){void 0===options.defaultIntegrations&&(options.defaultIntegrations=getDefaultIntegrations()),void 0===options.release&&("string"==typeof __SENTRY_RELEASE__&&(options.release=__SENTRY_RELEASE__),helpers_WINDOW.SENTRY_RELEASE&&helpers_WINDOW.SENTRY_RELEASE.id&&(options.release=helpers_WINDOW.SENTRY_RELEASE.id)),void 0===options.autoSessionTracking&&(options.autoSessionTracking=!0),void 0===options.sendClientReports&&(options.sendClientReports=!0);const clientOptions={...options,stackParser:(stackParser=options.stackParser||defaultStackParser,Array.isArray(stackParser)?createStackParser(...stackParser):stackParser),integrations:getIntegrationsToSetup(options),transport:options.transport||(supportsFetch()?makeFetchTransport:makeXHRTransport)};var stackParser;(function initAndBind(clientClass,options){!0===options.debug&&(esm_debug_build_DEBUG_BUILD?logger_logger.enable():consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),exports_getCurrentScope().update(options.initialScope);const client=new clientClass(options);(function setCurrentClient(client){const top2=hub_getCurrentHub().getStackTop();top2.client=client,top2.scope.setClient(client)})(client),function initializeClient(client){client.init?client.init():client.setupIntegrations&&client.setupIntegrations()}(client)})(BrowserClient,clientOptions),options.autoSessionTracking&&function startSessionTracking(){typeof helpers_WINDOW.document>"u"?browser_esm_debug_build_DEBUG_BUILD&&logger_logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported."):(startSession({ignoreDuration:!0}),captureSession(),addHistoryInstrumentationHandler(({from:from2,to})=>{void 0!==from2&&from2!==to&&(startSession({ignoreDuration:!0}),captureSession())}))}()}const showReportDialog=(options={},hub=hub_getCurrentHub())=>{if(!helpers_WINDOW.document)return void(browser_esm_debug_build_DEBUG_BUILD&&logger_logger.error("Global document not defined in showReportDialog call"));const{client,scope}=hub.getStackTop(),dsn=options.dsn||client&&client.getDsn();if(!dsn)return void(browser_esm_debug_build_DEBUG_BUILD&&logger_logger.error("DSN not configured for showReportDialog call"));scope&&(options.user={...scope.getUser(),...options.user}),options.eventId||(options.eventId=hub.lastEventId());const script=helpers_WINDOW.document.createElement("script");script.async=!0,script.crossOrigin="anonymous",script.src=function getReportDialogEndpoint(dsnLike,dialogOptions){const dsn=makeDsn(dsnLike);if(!dsn)return"";const endpoint=`${getBaseApiEndpoint(dsn)}embed/error-page/`;let encodedOptions=`dsn=${dsnToString(dsn)}`;for(const key in dialogOptions)if("dsn"!==key&&"onClose"!==key)if("user"===key){const user2=dialogOptions.user;if(!user2)continue;user2.name&&(encodedOptions+=`&name=${encodeURIComponent(user2.name)}`),user2.email&&(encodedOptions+=`&email=${encodeURIComponent(user2.email)}`)}else encodedOptions+=`&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key])}`;return`${endpoint}?${encodedOptions}`}(dsn,options),options.onLoad&&(script.onload=options.onLoad);const{onClose}=options;if(onClose){const reportDialogClosedMessageHandler=event=>{if("__sentry_reportdialog_closed__"===event.data)try{onClose()}finally{helpers_WINDOW.removeEventListener("message",reportDialogClosedMessageHandler)}};helpers_WINDOW.addEventListener("message",reportDialogClosedMessageHandler)}const injectionPoint=helpers_WINDOW.document.head||helpers_WINDOW.document.body;injectionPoint?injectionPoint.appendChild(script):browser_esm_debug_build_DEBUG_BUILD&&logger_logger.error("Not injecting report dialog. No injection point found in HTML")};let SPAN_METRIC_SUMMARY;function getMetricSummaryJsonForSpan(span){const storage=function getMetricStorageForSpan(span){return SPAN_METRIC_SUMMARY?SPAN_METRIC_SUMMARY.get(span):void 0}(span);if(!storage)return;const output2={};for(const[,[exportKey,summary]]of storage)output2[exportKey]||(output2[exportKey]=[]),output2[exportKey].push(object_dropUndefinedKeys(summary));return output2}const SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin";var SpanStatus,SpanStatus2;function setHttpStatus(span,httpStatus){span.setTag("http.status_code",String(httpStatus)),span.setData("http.response.status_code",httpStatus);const spanStatus=function getSpanStatusFromHttpCode(httpStatus){if(httpStatus<400&&httpStatus>=100)return"ok";if(httpStatus>=400&&httpStatus<500)switch(httpStatus){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(httpStatus>=500&&httpStatus<600)switch(httpStatus){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(httpStatus);"unknown_error"!==spanStatus&&span.setStatus(spanStatus)}(SpanStatus2=SpanStatus||(SpanStatus={})).Ok="ok",SpanStatus2.DeadlineExceeded="deadline_exceeded",SpanStatus2.Unauthenticated="unauthenticated",SpanStatus2.PermissionDenied="permission_denied",SpanStatus2.NotFound="not_found",SpanStatus2.ResourceExhausted="resource_exhausted",SpanStatus2.InvalidArgument="invalid_argument",SpanStatus2.Unimplemented="unimplemented",SpanStatus2.Unavailable="unavailable",SpanStatus2.InternalError="internal_error",SpanStatus2.UnknownError="unknown_error",SpanStatus2.Cancelled="cancelled",SpanStatus2.AlreadyExists="already_exists",SpanStatus2.FailedPrecondition="failed_precondition",SpanStatus2.Aborted="aborted",SpanStatus2.OutOfRange="out_of_range",SpanStatus2.DataLoss="data_loss";class SpanRecorder{constructor(maxlen=1e3){this._maxlen=maxlen,this.spans=[]}add(span){this.spans.length>this._maxlen?span.spanRecorder=void 0:this.spans.push(span)}}class Span{constructor(spanContext={}){this._traceId=spanContext.traceId||misc_uuid4(),this._spanId=spanContext.spanId||misc_uuid4().substring(16),this._startTime=spanContext.startTimestamp||time_timestampInSeconds(),this.tags=spanContext.tags?{...spanContext.tags}:{},this.data=spanContext.data?{...spanContext.data}:{},this.instrumenter=spanContext.instrumenter||"sentry",this._attributes={},this.setAttributes({[semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:spanContext.origin||"manual","sentry.op":spanContext.op,...spanContext.attributes}),this._name=spanContext.name||spanContext.description,spanContext.parentSpanId&&(this._parentSpanId=spanContext.parentSpanId),"sampled"in spanContext&&(this._sampled=spanContext.sampled),spanContext.status&&(this._status=spanContext.status),spanContext.endTimestamp&&(this._endTime=spanContext.endTimestamp),void 0!==spanContext.exclusiveTime&&(this._exclusiveTime=spanContext.exclusiveTime),this._measurements=spanContext.measurements?{...spanContext.measurements}:{}}get name(){return this._name||""}set name(name){this.updateName(name)}get description(){return this._name}set description(description){this._name=description}get traceId(){return this._traceId}set traceId(traceId){this._traceId=traceId}get spanId(){return this._spanId}set spanId(spanId){this._spanId=spanId}set parentSpanId(string){this._parentSpanId=string}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(sampled){this._sampled=sampled}get attributes(){return this._attributes}set attributes(attributes){this._attributes=attributes}get startTimestamp(){return this._startTime}set startTimestamp(startTime){this._startTime=startTime}get endTimestamp(){return this._endTime}set endTimestamp(endTime){this._endTime=endTime}get status(){return this._status}set status(status){this._status=status}get op(){return this._attributes["sentry.op"]}set op(op){this.setAttribute("sentry.op",op)}get origin(){return this._attributes[semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]}set origin(origin){this.setAttribute(semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,origin)}spanContext(){const{_spanId:spanId,_traceId:traceId,_sampled:sampled}=this;return{spanId,traceId,traceFlags:sampled?TRACE_FLAG_SAMPLED:0}}startChild(spanContext){const childSpan=new Span({...spanContext,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});childSpan.spanRecorder=this.spanRecorder,childSpan.spanRecorder&&childSpan.spanRecorder.add(childSpan);const rootSpan=getRootSpan(this);if(childSpan.transaction=rootSpan,esm_debug_build_DEBUG_BUILD&&rootSpan){const logMessage=`[Tracing] Starting '${spanContext&&spanContext.op||"< unknown op >"}' span on transaction '${spanUtils_spanToJSON(childSpan).description||"< unknown name >"}' (${rootSpan.spanContext().spanId}).`;logger_logger.log(logMessage),this._logMessage=logMessage}return childSpan}setTag(key,value){return this.tags={...this.tags,[key]:value},this}setData(key,value){return this.data={...this.data,[key]:value},this}setAttribute(key,value){void 0===value?delete this._attributes[key]:this._attributes[key]=value}setAttributes(attributes){Object.keys(attributes).forEach(key=>this.setAttribute(key,attributes[key]))}setStatus(value){return this._status=value,this}setHttpStatus(httpStatus){return setHttpStatus(this,httpStatus),this}setName(name){this.updateName(name)}updateName(name){return this._name=name,this}isSuccess(){return"ok"===this._status}finish(endTimestamp){return this.end(endTimestamp)}end(endTimestamp){if(this._endTime)return;const rootSpan=getRootSpan(this);if(esm_debug_build_DEBUG_BUILD&&rootSpan&&rootSpan.spanContext().spanId!==this._spanId){const logMessage=this._logMessage;logMessage&&logger_logger.log(logMessage.replace("Starting","Finishing"))}this._endTime=spanTimeInputToSeconds(endTimestamp)}toTraceparent(){return spanToTraceHeader(this)}toContext(){return object_dropUndefinedKeys({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(spanContext){return this.data=spanContext.data||{},this._name=spanContext.name||spanContext.description,this._endTime=spanContext.endTimestamp,this.op=spanContext.op,this._parentSpanId=spanContext.parentSpanId,this._sampled=spanContext.sampled,this._spanId=spanContext.spanId||this._spanId,this._startTime=spanContext.startTimestamp||this._startTime,this._status=spanContext.status,this.tags=spanContext.tags||{},this._traceId=spanContext.traceId||this._traceId,this}getTraceContext(){return spanToTraceContext(this)}getSpanJSON(){return object_dropUndefinedKeys({data:this._getData(),description:this._name,op:this._attributes["sentry.op"],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:getMetricSummaryJsonForSpan(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data,_attributes:attributes}=this,hasData=Object.keys(data).length>0,hasAttributes=Object.keys(attributes).length>0;if(hasData||hasAttributes)return hasData&&hasAttributes?{...data,...attributes}:hasData?data:attributes}}function hasTracingEnabled(maybeOptions){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const client=exports_getClient(),options=maybeOptions||client&&client.getOptions();return!!options&&(options.enableTracing||"tracesSampleRate"in options||"tracesSampler"in options)}function trace_startInactiveSpan(context2){if(!hasTracingEnabled())return;const spanContext=function normalizeContext(context2){if(context2.startTime){const ctx={...context2};return ctx.startTimestamp=spanTimeInputToSeconds(context2.startTime),delete ctx.startTime,ctx}return context2}(context2),hub=hub_getCurrentHub(),parentSpan=context2.scope?context2.scope.getSpan():trace_getActiveSpan();if(context2.onlyIfParent&&!parentSpan)return;const temporaryScope=(context2.scope||exports_getCurrentScope()).clone();return function createChildSpanOrTransaction(hub,{parentSpan,spanContext,forceTransaction,scope}){if(!hasTracingEnabled())return;const isolationScope=hub_getIsolationScope();let span;if(parentSpan&&!forceTransaction)span=parentSpan.startChild(spanContext);else if(parentSpan){const dsc=getDynamicSamplingContextFromSpan(parentSpan),{traceId,spanId:parentSpanId}=parentSpan.spanContext(),sampled=spanIsSampled(parentSpan);span=hub.startTransaction({traceId,parentSpanId,parentSampled:sampled,...spanContext,metadata:{dynamicSamplingContext:dsc,...spanContext.metadata}})}else{const{traceId,dsc,parentSpanId,sampled}={...isolationScope.getPropagationContext(),...scope.getPropagationContext()};span=hub.startTransaction({traceId,parentSpanId,parentSampled:sampled,...spanContext,metadata:{dynamicSamplingContext:dsc,...spanContext.metadata}})}return scope.setSpan(span),function setCapturedScopesOnSpan(span,scope,isolationScope){span&&(addNonEnumerableProperty(span,ISOLATION_SCOPE_ON_START_SPAN_FIELD,isolationScope),addNonEnumerableProperty(span,SCOPE_ON_START_SPAN_FIELD,scope))}(span,scope,isolationScope),span}(hub,{parentSpan,spanContext,forceTransaction:context2.forceTransaction,scope:temporaryScope})}function trace_getActiveSpan(){return exports_getCurrentScope().getSpan()}const SCOPE_ON_START_SPAN_FIELD="_sentryScope",ISOLATION_SCOPE_ON_START_SPAN_FIELD="_sentryIsolationScope";class Transaction extends Span{constructor(transactionContext,hub){super(transactionContext),this._contexts={},this._hub=hub||hub_getCurrentHub(),this._name=transactionContext.name||"",this._metadata={...transactionContext.metadata},this._trimEnd=transactionContext.trimEnd,this.transaction=this;const incomingDynamicSamplingContext=this._metadata.dynamicSamplingContext;incomingDynamicSamplingContext&&(this._frozenDynamicSamplingContext={...incomingDynamicSamplingContext})}get name(){return this._name}set name(newName){this.setName(newName)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes["sentry.source"]&&{source:this._attributes["sentry.source"]},...this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]&&{sampleRate:this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]}}}set metadata(metadata){this._metadata=metadata}setName(name,source="custom"){this._name=name,this.setAttribute("sentry.source",source)}updateName(name){return this._name=name,this}initSpanRecorder(maxlen=1e3){this.spanRecorder||(this.spanRecorder=new SpanRecorder(maxlen)),this.spanRecorder.add(this)}setContext(key,context2){null===context2?delete this._contexts[key]:this._contexts[key]=context2}setMeasurement(name,value,unit=""){this._measurements[name]={value,unit}}setMetadata(newMetadata){this._metadata={...this._metadata,...newMetadata}}end(endTimestamp){const timestampInS=spanTimeInputToSeconds(endTimestamp),transaction=this._finishTransaction(timestampInS);if(transaction)return this._hub.captureEvent(transaction)}toContext(){return object_dropUndefinedKeys({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(transactionContext){return super.updateWithContext(transactionContext),this._name=transactionContext.name||"",this._trimEnd=transactionContext.trimEnd,this}getDynamicSamplingContext(){return getDynamicSamplingContextFromSpan(this)}setHub(hub){this._hub=hub}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(endTimestamp){if(void 0!==this._endTime)return;this._name||(esm_debug_build_DEBUG_BUILD&&logger_logger.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(endTimestamp);const client=this._hub.getClient();if(client&&client.emit&&client.emit("finishTransaction",this),!0!==this._sampled)return esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(client&&client.recordDroppedEvent("sample_rate","transaction"));const finishedSpans=this.spanRecorder?this.spanRecorder.spans.filter(span=>span!==this&&spanUtils_spanToJSON(span).timestamp):[];if(this._trimEnd&&finishedSpans.length>0){const endTimes=finishedSpans.map(span=>spanUtils_spanToJSON(span).timestamp).filter(Boolean);this._endTime=endTimes.reduce((prev,current)=>prev>current?prev:current)}const{scope:capturedSpanScope,isolationScope:capturedSpanIsolationScope}=function getCapturedScopesOnSpan(span){return{scope:span[SCOPE_ON_START_SPAN_FIELD],isolationScope:span[ISOLATION_SCOPE_ON_START_SPAN_FIELD]}}(this),{metadata}=this,{source}=metadata,transaction={contexts:{...this._contexts,trace:spanToTraceContext(this)},spans:finishedSpans,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...metadata,capturedSpanScope,capturedSpanIsolationScope,...object_dropUndefinedKeys({dynamicSamplingContext:getDynamicSamplingContextFromSpan(this)})},_metrics_summary:getMetricSummaryJsonForSpan(this),...source&&{transaction_info:{source}}};return Object.keys(this._measurements).length>0&&(esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),transaction.measurements=this._measurements),esm_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),transaction}}const TRACING_DEFAULTS={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},IDLE_TRANSACTION_FINISH_REASONS=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class IdleTransactionSpanRecorder extends SpanRecorder{constructor(_pushActivity,_popActivity,transactionSpanId,maxlen){super(maxlen),this._pushActivity=_pushActivity,this._popActivity=_popActivity,this.transactionSpanId=transactionSpanId}add(span){if(span.spanContext().spanId!==this.transactionSpanId){const originalEnd=span.end;span.end=(...rest)=>(this._popActivity(span.spanContext().spanId),originalEnd.apply(span,rest)),void 0===spanUtils_spanToJSON(span).timestamp&&this._pushActivity(span.spanContext().spanId)}super.add(span)}}class IdleTransaction extends Transaction{constructor(transactionContext,_idleHub,_idleTimeout=TRACING_DEFAULTS.idleTimeout,_finalTimeout=TRACING_DEFAULTS.finalTimeout,_heartbeatInterval=TRACING_DEFAULTS.heartbeatInterval,_onScope=!1,delayAutoFinishUntilSignal=!1){super(transactionContext,_idleHub),this._idleHub=_idleHub,this._idleTimeout=_idleTimeout,this._finalTimeout=_finalTimeout,this._heartbeatInterval=_heartbeatInterval,this._onScope=_onScope,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=IDLE_TRANSACTION_FINISH_REASONS[4],this._autoFinishAllowed=!delayAutoFinishUntilSignal,_onScope&&(esm_debug_build_DEBUG_BUILD&&logger_logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),_idleHub.getScope().setSpan(this)),delayAutoFinishUntilSignal||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=IDLE_TRANSACTION_FINISH_REASONS[3],this.end())},this._finalTimeout)}end(endTimestamp){const endTimestampInS=spanTimeInputToSeconds(endTimestamp);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] finishing IdleTransaction",new Date(1e3*endTimestampInS).toISOString(),this.op);for(const callback of this._beforeFinishCallbacks)callback(this,endTimestampInS);this.spanRecorder.spans=this.spanRecorder.spans.filter(span=>{if(span.spanContext().spanId===this.spanContext().spanId)return!0;spanUtils_spanToJSON(span).timestamp||(span.setStatus("cancelled"),span.end(endTimestampInS),esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(span,void 0,2)));const{start_timestamp:startTime,timestamp:endTime}=spanUtils_spanToJSON(span),spanStartedBeforeTransactionFinish=startTime&&startTime{this._finished||this._pushActivity(id)},id=>{this._finished||this._popActivity(id)},this.spanContext().spanId,maxlen),esm_debug_build_DEBUG_BUILD&&logger_logger.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(endTimestamp,{restartOnChildSpanChange}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===restartOnChildSpanChange,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=IDLE_TRANSACTION_FINISH_REASONS[5],this.end(endTimestamp)))}setFinishReason(reason){this._finishReason=reason}sendAutoFinishSignal(){this._autoFinishAllowed||(esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(endTimestamp){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&0===Object.keys(this.activities).length&&(this._finishReason=IDLE_TRANSACTION_FINISH_REASONS[1],this.end(endTimestamp))},this._idleTimeout)}_pushActivity(spanId){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),esm_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] pushActivity: ${spanId}`),this.activities[spanId]=!0,esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(spanId){if(this.activities[spanId]&&(esm_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] popActivity ${spanId}`),delete this.activities[spanId],esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const endTimestamp=time_timestampInSeconds();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=IDLE_TRANSACTION_FINISH_REASONS[5],this.end(endTimestamp)):this._restartIdleTimeout(endTimestamp+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const heartbeatString=Object.keys(this.activities).join("");heartbeatString===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=heartbeatString,this._heartbeatCounter>=3?this._autoFinishAllowed&&(esm_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=IDLE_TRANSACTION_FINISH_REASONS[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){esm_debug_build_DEBUG_BUILD&&logger_logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function getActiveTransaction(maybeHub){return(maybeHub||hub_getCurrentHub()).getScope().getTransaction()}let errorsInstrumented=!1;function errorCallback(){const activeTransaction=getActiveTransaction();if(activeTransaction){const status="internal_error";esm_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Transaction: ${status} -> Global error occured`),activeTransaction.setStatus(status)}}function sampleTransaction(transaction,options,samplingContext){if(!hasTracingEnabled(options))return transaction.sampled=!1,transaction;if(void 0!==transaction.sampled)return transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(transaction.sampled)),transaction;let sampleRate;return"function"==typeof options.tracesSampler?(sampleRate=options.tracesSampler(samplingContext),transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(sampleRate))):void 0!==samplingContext.parentSampled?sampleRate=samplingContext.parentSampled:typeof options.tracesSampleRate<"u"?(sampleRate=options.tracesSampleRate,transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(sampleRate))):(sampleRate=1,transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,sampleRate)),isValidSampleRate(sampleRate)?sampleRate?(transaction.sampled=Math.random()1)||(esm_debug_build_DEBUG_BUILD&&logger_logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`),!1)}function traceHeaders(){const span=this.getScope().getSpan();return span?{"sentry-trace":spanToTraceHeader(span)}:{}}function _startTransaction(transactionContext,customSamplingContext){const client=this.getClient(),options=client&&client.getOptions()||{},configInstrumenter=options.instrumenter||"sentry",transactionInstrumenter=transactionContext.instrumenter||"sentry";configInstrumenter!==transactionInstrumenter&&(esm_debug_build_DEBUG_BUILD&&logger_logger.error(`A transaction was started with instrumenter=\`${transactionInstrumenter}\`, but the SDK is configured with the \`${configInstrumenter}\` instrumenter.\nThe transaction will not be sampled. Please use the ${configInstrumenter} instrumentation to start transactions.`),transactionContext.sampled=!1);let transaction=new Transaction(transactionContext,this);return transaction=sampleTransaction(transaction,options,{name:transactionContext.name,parentSampled:transactionContext.parentSampled,transactionContext,attributes:{...transactionContext.data,...transactionContext.attributes},...customSamplingContext}),transaction.isRecording()&&transaction.initSpanRecorder(options._experiments&&options._experiments.maxSpans),client&&client.emit&&client.emit("startTransaction",transaction),transaction}function startIdleTransaction(hub,transactionContext,idleTimeout,finalTimeout,onScope,customSamplingContext,heartbeatInterval,delayAutoFinishUntilSignal=!1){const client=hub.getClient(),options=client&&client.getOptions()||{};let transaction=new IdleTransaction(transactionContext,hub,idleTimeout,finalTimeout,heartbeatInterval,onScope,delayAutoFinishUntilSignal);return transaction=sampleTransaction(transaction,options,{name:transactionContext.name,parentSampled:transactionContext.parentSampled,transactionContext,attributes:{...transactionContext.data,...transactionContext.attributes},...customSamplingContext}),transaction.isRecording()&&transaction.initSpanRecorder(options._experiments&&options._experiments.maxSpans),client&&client.emit&&client.emit("startTransaction",transaction),transaction}errorCallback.tag="sentry_tracingErrorCallback";const common_debug_build_DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,types_WINDOW=GLOBAL_OBJ,bindReporter=(callback,metric,reportAllChanges)=>{let prevValue,delta;return forceReport=>{metric.value>=0&&(forceReport||reportAllChanges)&&(delta=metric.value-(prevValue||0),(delta||void 0===prevValue)&&(prevValue=metric.value,metric.delta=delta,callback(metric)))}},getNavigationEntry=()=>types_WINDOW.__WEB_VITALS_POLYFILL__?types_WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const timing=types_WINDOW.performance.timing,type=types_WINDOW.performance.navigation.type,navigationEntry={entryType:"navigation",startTime:0,type:2==type?"back_forward":1===type?"reload":"navigate"};for(const key in timing)"navigationStart"!==key&&"toJSON"!==key&&(navigationEntry[key]=Math.max(timing[key]-timing.navigationStart,0));return navigationEntry})()):types_WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],getActivationStart=()=>{const navEntry=getNavigationEntry();return navEntry&&navEntry.activationStart||0},initMetric=(name,value)=>{const navEntry=getNavigationEntry();let navigationType="navigate";return navEntry&&(navigationType=types_WINDOW.document&&types_WINDOW.document.prerendering||getActivationStart()>0?"prerender":navEntry.type.replace(/_/g,"-")),{name,value:typeof value>"u"?-1:value,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType}},observe=(type,callback,opts)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(type)){const po2=new PerformanceObserver(list2=>{callback(list2.getEntries())});return po2.observe(Object.assign({type,buffered:!0},opts||{})),po2}}catch{}},onHidden=(cb,once)=>{const onHiddenOrPageHide=event=>{("pagehide"===event.type||"hidden"===types_WINDOW.document.visibilityState)&&(cb(event),once&&(removeEventListener("visibilitychange",onHiddenOrPageHide,!0),removeEventListener("pagehide",onHiddenOrPageHide,!0)))};types_WINDOW.document&&(addEventListener("visibilitychange",onHiddenOrPageHide,!0),addEventListener("pagehide",onHiddenOrPageHide,!0))},onCLS=onReport=>{const metric=initMetric("CLS",0);let report,sessionValue=0,sessionEntries=[];const handleEntries=entries=>{entries.forEach(entry=>{entry.hadRecentInput||(sessionValue&&0!==sessionEntries.length&&entry.startTime-sessionEntries[sessionEntries.length-1].startTime<1e3&&entry.startTime-sessionEntries[0].startTime<5e3?(sessionValue+=entry.value,sessionEntries.push(entry)):(sessionValue=entry.value,sessionEntries=[entry]),sessionValue>metric.value&&(metric.value=sessionValue,metric.entries=sessionEntries,report&&report()))})},po2=observe("layout-shift",handleEntries);if(po2){report=bindReporter(onReport,metric);const stopListening=()=>{handleEntries(po2.takeRecords()),report(!0)};return onHidden(stopListening),stopListening}};let firstHiddenTime=-1;const getVisibilityWatcher=()=>(firstHiddenTime<0&&(types_WINDOW.document&&types_WINDOW.document.visibilityState&&(firstHiddenTime="hidden"!==types_WINDOW.document.visibilityState||types_WINDOW.document.prerendering?1/0:0),onHidden(({timeStamp})=>{firstHiddenTime=timeStamp},!0)),{get firstHiddenTime(){return firstHiddenTime}}),onFID=onReport=>{const visibilityWatcher=getVisibilityWatcher(),metric=initMetric("FID");let report;const handleEntry=entry=>{entry.startTime{entries.forEach(handleEntry)},po2=observe("first-input",handleEntries);report=bindReporter(onReport,metric),po2&&onHidden(()=>{handleEntries(po2.takeRecords()),po2.disconnect()},!0)};let interactionCountEstimate=0,minKnownInteractionId=1/0,maxKnownInteractionId=0;const updateEstimate=entries=>{entries.forEach(e2=>{e2.interactionId&&(minKnownInteractionId=Math.min(minKnownInteractionId,e2.interactionId),maxKnownInteractionId=Math.max(maxKnownInteractionId,e2.interactionId),interactionCountEstimate=maxKnownInteractionId?(maxKnownInteractionId-minKnownInteractionId)/7+1:0)})};let po;const getInteractionCountForNavigation=()=>po?interactionCountEstimate:performance.interactionCount||0,longestInteractionList=[],longestInteractionMap={},processEntry=entry=>{const existingInteraction=longestInteractionMap[entry.interactionId];if(existingInteraction||longestInteractionList.length<10||entry.duration>longestInteractionList[longestInteractionList.length-1].latency){if(existingInteraction)existingInteraction.entries.push(entry),existingInteraction.latency=Math.max(existingInteraction.latency,entry.duration);else{const interaction={id:entry.interactionId,latency:entry.duration,entries:[entry]};longestInteractionMap[interaction.id]=interaction,longestInteractionList.push(interaction)}longestInteractionList.sort((a,b)=>b.latency-a.latency),longestInteractionList.splice(10).forEach(i=>{delete longestInteractionMap[i.id]})}},onINP=(onReport,opts)=>{opts=opts||{},"interactionCount"in performance||po||(po=observe("event",updateEstimate,{type:"event",buffered:!0,durationThreshold:0}));const metric=initMetric("INP");let report;const handleEntries=entries=>{entries.forEach(entry=>{entry.interactionId&&processEntry(entry),"first-input"===entry.entryType&&!longestInteractionList.some(interaction=>interaction.entries.some(prevEntry=>entry.duration===prevEntry.duration&&entry.startTime===prevEntry.startTime))&&processEntry(entry)});const inp=(()=>{const candidateInteractionIndex=Math.min(longestInteractionList.length-1,Math.floor(getInteractionCountForNavigation()/50));return longestInteractionList[candidateInteractionIndex]})();inp&&inp.latency!==metric.value&&(metric.value=inp.latency,metric.entries=inp.entries,report())},po2=observe("event",handleEntries,{durationThreshold:opts.durationThreshold||40});report=bindReporter(onReport,metric,opts.reportAllChanges),po2&&(po2.observe({type:"first-input",buffered:!0}),onHidden(()=>{handleEntries(po2.takeRecords()),metric.value<0&&getInteractionCountForNavigation()>0&&(metric.value=0,metric.entries=[]),report(!0)}))},reportedMetricIDs={},onLCP=onReport=>{const visibilityWatcher=getVisibilityWatcher(),metric=initMetric("LCP");let report;const handleEntries=entries=>{const lastEntry=entries[entries.length-1];if(lastEntry){const value=Math.max(lastEntry.startTime-getActivationStart(),0);value{reportedMetricIDs[metric.id]||(handleEntries(po2.takeRecords()),po2.disconnect(),reportedMetricIDs[metric.id]=!0,report(!0))};return["keydown","click"].forEach(type=>{types_WINDOW.document&&addEventListener(type,stopListening,{once:!0,capture:!0})}),onHidden(stopListening,!0),stopListening}},whenReady=callback=>{types_WINDOW.document&&(types_WINDOW.document.prerendering?addEventListener("prerenderingchange",()=>whenReady(callback),!0):"complete"!==types_WINDOW.document.readyState?addEventListener("load",()=>whenReady(callback),!0):setTimeout(callback,0))},onTTFB=(onReport,opts)=>{opts=opts||{};const metric=initMetric("TTFB"),report=bindReporter(onReport,metric,opts.reportAllChanges);whenReady(()=>{const navEntry=getNavigationEntry();if(navEntry){if(metric.value=Math.max(navEntry.responseStart-getActivationStart(),0),metric.value<0||metric.value>performance.now())return;metric.entries=[navEntry],report(!0)}})},instrument_handlers={},instrument_instrumented={};let _previousCls,_previousFid,_previousLcp,_previousTtfb,_previousInp;function addLcpInstrumentationHandler(callback,stopOnCallback=!1){return addMetricObserver("lcp",callback,instrumentLcp,_previousLcp,stopOnCallback)}function addPerformanceInstrumentationHandler(type,callback){return instrument_addHandler(type,callback),instrument_instrumented[type]||(function instrumentPerformanceObserver(type){const options={};"event"===type&&(options.durationThreshold=0),observe(type,entries=>{instrument_triggerHandlers(type,{entries})},options)}(type),instrument_instrumented[type]=!0),getCleanupCallback(type,callback)}function instrument_triggerHandlers(type,data){const typeHandlers=instrument_handlers[type];if(typeHandlers&&typeHandlers.length)for(const handler of typeHandlers)try{handler(data)}catch(e2){common_debug_build_DEBUG_BUILD&&logger_logger.error(`Error while triggering instrumentation handler.\nType: ${type}\nName: ${getFunctionName(handler)}\nError:`,e2)}}function instrumentCls(){return onCLS(metric=>{instrument_triggerHandlers("cls",{metric}),_previousCls=metric})}function instrumentFid(){return onFID(metric=>{instrument_triggerHandlers("fid",{metric}),_previousFid=metric})}function instrumentLcp(){return onLCP(metric=>{instrument_triggerHandlers("lcp",{metric}),_previousLcp=metric})}function instrumentTtfb(){return onTTFB(metric=>{instrument_triggerHandlers("ttfb",{metric}),_previousTtfb=metric})}function instrumentInp(){return onINP(metric=>{instrument_triggerHandlers("inp",{metric}),_previousInp=metric})}function addMetricObserver(type,callback,instrumentFn,previousValue,stopOnCallback=!1){let stopListening;return instrument_addHandler(type,callback),instrument_instrumented[type]||(stopListening=instrumentFn(),instrument_instrumented[type]=!0),previousValue&&callback({metric:previousValue}),getCleanupCallback(type,callback,stopOnCallback?stopListening:void 0)}function instrument_addHandler(type,handler){instrument_handlers[type]=instrument_handlers[type]||[],instrument_handlers[type].push(handler)}function getCleanupCallback(type,callback,stopListening){return()=>{stopListening&&stopListening();const typeHandlers=instrument_handlers[type];if(!typeHandlers)return;const index=typeHandlers.indexOf(callback);-1!==index&&typeHandlers.splice(index,1)}}function createSpanItem(span){return[{type:"span"},span]}function isMeasurementValue(value){return"number"==typeof value&&isFinite(value)}function _startChild(transaction,{startTimestamp,...ctx}){return startTimestamp&&transaction.startTimestamp>startTimestamp&&(transaction.startTimestamp=startTimestamp),transaction.startChild({startTimestamp,...ctx})}const MAX_INT_AS_BYTES=2147483647;function msToSec(time){return time/1e3}function getBrowserPerformanceAPI(){return types_WINDOW&&types_WINDOW.addEventListener&&types_WINDOW.performance}let _lcpEntry,_clsEntry,_performanceCursor=0,_measurements={};const INP_ENTRY_MAP={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function _addPerformanceNavigationTiming(transaction,entry,event,timeOrigin,description,eventEnd){const end=eventEnd?entry[eventEnd]:entry[`${event}End`],start2=entry[`${event}Start`];!start2||!end||_startChild(transaction,{op:"browser",origin:"auto.browser.browser.metrics",description:description||event,startTimestamp:timeOrigin+msToSec(start2),endTimestamp:timeOrigin+msToSec(end)})}function setResourceEntrySizeData(data,entry,key,dataKey){const entryVal=entry[key];null!=entryVal&&entryVal!0,shouldAttachHeadersWithTargets=url=>function shouldAttachHeaders(url,tracePropagationTargets){return stringMatchesSomePattern(url,tracePropagationTargets||DEFAULT_TRACE_PROPAGATION_TARGETS)}(url,tracePropagationTargets||tracingOrigins),spans={};traceFetch&&addFetchInstrumentationHandler(handlerData=>{const createdSpan=function instrumentFetchRequest(handlerData,shouldCreateSpan,shouldAttachHeaders2,spans,spanOrigin="auto.http.browser"){if(!hasTracingEnabled()||!handlerData.fetchData)return;const shouldCreateSpanResult=shouldCreateSpan(handlerData.fetchData.url);if(handlerData.endTimestamp&&shouldCreateSpanResult){const spanId=handlerData.fetchData.__span;if(!spanId)return;const span2=spans[spanId];return void(span2&&(function endSpan(span,handlerData){if(handlerData.response){setHttpStatus(span,handlerData.response.status);const contentLength=handlerData.response&&handlerData.response.headers&&handlerData.response.headers.get("content-length");if(contentLength){const contentLengthNum=parseInt(contentLength);contentLengthNum>0&&span.setAttribute("http.response_content_length",contentLengthNum)}}else handlerData.error&&span.setStatus("internal_error");span.end()}(span2,handlerData),delete spans[spanId]))}const scope=exports_getCurrentScope(),client=exports_getClient(),{method,url}=handlerData.fetchData,fullUrl=function getFullURL(url){try{return new URL(url).href}catch{return}}(url),host=fullUrl?url_parseUrl(fullUrl).host:void 0,span=shouldCreateSpanResult?trace_startInactiveSpan({name:`${method} ${url}`,onlyIfParent:!0,attributes:{url,type:"fetch","http.method":method,"http.url":fullUrl,"server.address":host,[semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:spanOrigin},op:"http.client"}):void 0;if(span&&(handlerData.fetchData.__span=span.spanContext().spanId,spans[span.spanContext().spanId]=span),shouldAttachHeaders2(handlerData.fetchData.url)&&client){const request=handlerData.args[0];handlerData.args[1]=handlerData.args[1]||{};const options=handlerData.args[1];options.headers=function addTracingHeadersToFetchRequest(request,client,scope,options,requestSpan){const span=requestSpan||scope.getSpan(),isolationScope=hub_getIsolationScope(),{traceId,spanId,sampled,dsc}={...isolationScope.getPropagationContext(),...scope.getPropagationContext()},sentryTraceHeader=span?spanToTraceHeader(span):generateSentryTraceHeader(traceId,spanId,sampled),sentryBaggageHeader=dynamicSamplingContextToSentryBaggageHeader(dsc||(span?getDynamicSamplingContextFromSpan(span):getDynamicSamplingContextFromClient(traceId,client,scope))),headers=options.headers||(typeof Request<"u"&&isInstanceOf(request,Request)?request.headers:void 0);if(headers){if(typeof Headers<"u"&&isInstanceOf(headers,Headers)){const newHeaders=new Headers(headers);return newHeaders.append("sentry-trace",sentryTraceHeader),sentryBaggageHeader&&newHeaders.append(BAGGAGE_HEADER_NAME,sentryBaggageHeader),newHeaders}if(Array.isArray(headers)){const newHeaders=[...headers,["sentry-trace",sentryTraceHeader]];return sentryBaggageHeader&&newHeaders.push([BAGGAGE_HEADER_NAME,sentryBaggageHeader]),newHeaders}{const existingBaggageHeader="baggage"in headers?headers.baggage:void 0,newBaggageHeaders=[];return Array.isArray(existingBaggageHeader)?newBaggageHeaders.push(...existingBaggageHeader):existingBaggageHeader&&newBaggageHeaders.push(existingBaggageHeader),sentryBaggageHeader&&newBaggageHeaders.push(sentryBaggageHeader),{...headers,"sentry-trace":sentryTraceHeader,baggage:newBaggageHeaders.length>0?newBaggageHeaders.join(","):void 0}}}return{"sentry-trace":sentryTraceHeader,baggage:sentryBaggageHeader}}(request,client,scope,options,span)}return span}(handlerData,shouldCreateSpan,shouldAttachHeadersWithTargets,spans);if(createdSpan){const fullUrl=request_getFullURL(handlerData.fetchData.url),host=fullUrl?url_parseUrl(fullUrl).host:void 0;createdSpan.setAttributes({"http.url":fullUrl,"server.address":host})}enableHTTPTimings&&createdSpan&&addHTTPTimings(createdSpan)}),traceXHR&&addXhrInstrumentationHandler(handlerData=>{const createdSpan=function xhrCallback(handlerData,shouldCreateSpan,shouldAttachHeaders2,spans){const xhr=handlerData.xhr,sentryXhrData=xhr&&xhr[SENTRY_XHR_DATA_KEY];if(!hasTracingEnabled()||!xhr||xhr.__sentry_own_request__||!sentryXhrData)return;const shouldCreateSpanResult=shouldCreateSpan(sentryXhrData.url);if(handlerData.endTimestamp&&shouldCreateSpanResult){const spanId=xhr.__sentry_xhr_span_id__;if(!spanId)return;const span2=spans[spanId];return void(span2&&void 0!==sentryXhrData.status_code&&(setHttpStatus(span2,sentryXhrData.status_code),span2.end(),delete spans[spanId]))}const scope=exports_getCurrentScope(),isolationScope=hub_getIsolationScope(),fullUrl=request_getFullURL(sentryXhrData.url),host=fullUrl?url_parseUrl(fullUrl).host:void 0,span=shouldCreateSpanResult?trace_startInactiveSpan({name:`${sentryXhrData.method} ${sentryXhrData.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":sentryXhrData.method,"http.url":fullUrl,url:sentryXhrData.url,"server.address":host,[semanticAttributes_SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser"},op:"http.client"}):void 0;span&&(xhr.__sentry_xhr_span_id__=span.spanContext().spanId,spans[xhr.__sentry_xhr_span_id__]=span);const client=exports_getClient();if(xhr.setRequestHeader&&shouldAttachHeaders2(sentryXhrData.url)&&client){const{traceId,spanId,sampled,dsc}={...isolationScope.getPropagationContext(),...scope.getPropagationContext()};!function setHeaderOnXhr(xhr,sentryTraceHeader,sentryBaggageHeader){try{xhr.setRequestHeader("sentry-trace",sentryTraceHeader),sentryBaggageHeader&&xhr.setRequestHeader(BAGGAGE_HEADER_NAME,sentryBaggageHeader)}catch{}}(xhr,span?spanToTraceHeader(span):generateSentryTraceHeader(traceId,spanId,sampled),dynamicSamplingContextToSentryBaggageHeader(dsc||(span?getDynamicSamplingContextFromSpan(span):getDynamicSamplingContextFromClient(traceId,client,scope))))}return span}(handlerData,shouldCreateSpan,shouldAttachHeadersWithTargets,spans);enableHTTPTimings&&createdSpan&&addHTTPTimings(createdSpan)})}function addHTTPTimings(span){const{url}=spanUtils_spanToJSON(span).data||{};if(!url||"string"!=typeof url)return;const cleanup=addPerformanceInstrumentationHandler("resource",({entries})=>{entries.forEach(entry=>{(function isPerformanceResourceTiming(entry){return"resource"===entry.entryType&&"initiatorType"in entry&&"string"==typeof entry.nextHopProtocol&&("fetch"===entry.initiatorType||"xmlhttprequest"===entry.initiatorType)})(entry)&&entry.name.endsWith(url)&&(function resourceTimingEntryToSpanData(resourceTiming){const{name,version:version2}=function extractNetworkProtocol(nextHopProtocol){let name="unknown",version2="unknown",_name="";for(const char of nextHopProtocol){if("/"===char){[name,version2]=nextHopProtocol.split("/");break}if(!isNaN(Number(char))){name="h"===_name?"http":_name,version2=nextHopProtocol.split(_name)[1];break}_name+=char}return _name===nextHopProtocol&&(name=_name),{name,version:version2}}(resourceTiming.nextHopProtocol),timingSpanData=[];return timingSpanData.push(["network.protocol.version",version2],["network.protocol.name",name]),browserPerformanceTimeOrigin?[...timingSpanData,["http.request.redirect_start",getAbsoluteTime(resourceTiming.redirectStart)],["http.request.fetch_start",getAbsoluteTime(resourceTiming.fetchStart)],["http.request.domain_lookup_start",getAbsoluteTime(resourceTiming.domainLookupStart)],["http.request.domain_lookup_end",getAbsoluteTime(resourceTiming.domainLookupEnd)],["http.request.connect_start",getAbsoluteTime(resourceTiming.connectStart)],["http.request.secure_connection_start",getAbsoluteTime(resourceTiming.secureConnectionStart)],["http.request.connection_end",getAbsoluteTime(resourceTiming.connectEnd)],["http.request.request_start",getAbsoluteTime(resourceTiming.requestStart)],["http.request.response_start",getAbsoluteTime(resourceTiming.responseStart)],["http.request.response_end",getAbsoluteTime(resourceTiming.responseEnd)]]:timingSpanData}(entry).forEach(data=>span.setAttribute(...data)),setTimeout(cleanup))})})}function getAbsoluteTime(time=0){return((browserPerformanceTimeOrigin||performance.timeOrigin)+time)/1e3}function request_getFullURL(url){try{return new URL(url,types_WINDOW.location.origin).href}catch{return}}const DEFAULT_BROWSER_TRACING_OPTIONS={...TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...defaultRequestInstrumentationOptions},browserTracingIntegration=(_options={})=>{const _hasSetTracePropagationTargets=!(!common_debug_build_DEBUG_BUILD||!_options.tracePropagationTargets&&!_options.tracingOrigins);(function addTracingExtensions(){const carrier=getMainCarrier();carrier.__SENTRY__&&(carrier.__SENTRY__.extensions=carrier.__SENTRY__.extensions||{},carrier.__SENTRY__.extensions.startTransaction||(carrier.__SENTRY__.extensions.startTransaction=_startTransaction),carrier.__SENTRY__.extensions.traceHeaders||(carrier.__SENTRY__.extensions.traceHeaders=traceHeaders),function registerErrorInstrumentation(){errorsInstrumented||(errorsInstrumented=!0,addGlobalErrorInstrumentationHandler(errorCallback),addGlobalUnhandledRejectionInstrumentationHandler(errorCallback))}())})(),!_options.tracePropagationTargets&&_options.tracingOrigins&&(_options.tracePropagationTargets=_options.tracingOrigins);const options={...DEFAULT_BROWSER_TRACING_OPTIONS,..._options},_collectWebVitals=function startTrackingWebVitals(){const performance2=getBrowserPerformanceAPI();if(performance2&&browserPerformanceTimeOrigin){performance2.mark&&types_WINDOW.performance.mark("sentry-tracing-init");const fidCallback=function _trackFID(){return function addFidInstrumentationHandler(callback){return addMetricObserver("fid",callback,instrumentFid,_previousFid)}(({metric})=>{const entry=metric.entries[metric.entries.length-1];if(!entry)return;const timeOrigin=msToSec(browserPerformanceTimeOrigin),startTime=msToSec(entry.startTime);common_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding FID"),_measurements.fid={value:metric.value,unit:"millisecond"},_measurements["mark.fid"]={value:timeOrigin+startTime,unit:"second"}})}(),clsCallback=function _trackCLS(){return function addClsInstrumentationHandler(callback,stopOnCallback=!1){return addMetricObserver("cls",callback,instrumentCls,_previousCls,stopOnCallback)}(({metric})=>{const entry=metric.entries[metric.entries.length-1];entry&&(common_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding CLS"),_measurements.cls={value:metric.value,unit:""},_clsEntry=entry)},!0)}(),lcpCallback=function _trackLCP(){return addLcpInstrumentationHandler(({metric})=>{const entry=metric.entries[metric.entries.length-1];entry&&(common_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding LCP"),_measurements.lcp={value:metric.value,unit:"millisecond"},_lcpEntry=entry)},!0)}(),ttfbCallback=function _trackTtfb(){return function addTtfbInstrumentationHandler(callback){return addMetricObserver("ttfb",callback,instrumentTtfb,_previousTtfb)}(({metric})=>{metric.entries[metric.entries.length-1]&&(common_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding TTFB"),_measurements.ttfb={value:metric.value,unit:"millisecond"})})}();return()=>{fidCallback(),clsCallback(),lcpCallback(),ttfbCallback()}}return()=>{}}(),interactionIdToRouteNameMapping={};options.enableInp&&function startTrackingINP(interactionIdtoRouteNameMapping,interactionsSampleRate){if(getBrowserPerformanceAPI()&&browserPerformanceTimeOrigin){const inpCallback=function _trackINP(interactionIdToRouteNameMapping,interactionsSampleRate){return function addInpInstrumentationHandler(callback){return addMetricObserver("inp",callback,instrumentInp,_previousInp)}(({metric})=>{if(void 0===metric.value)return;const entry=metric.entries.find(entry2=>entry2.duration===metric.value&&void 0!==INP_ENTRY_MAP[entry2.name]),client=exports_getClient();if(!entry||!client)return;const interactionType=INP_ENTRY_MAP[entry.name],options=client.getOptions(),startTime=msToSec(browserPerformanceTimeOrigin+entry.startTime),duration=msToSec(metric.value),interaction=void 0!==entry.interactionId?interactionIdToRouteNameMapping[entry.interactionId]:void 0;if(void 0===interaction)return;const{routeName,parentContext,activeTransaction,user:user2,replayId}=interaction,userDisplay=void 0!==user2?user2.email||user2.id||user2.ip_address:void 0,profileId=void 0!==activeTransaction?activeTransaction.getProfileId():void 0,span=new Span({startTimestamp:startTime,endTimestamp:startTime+duration,op:`ui.interaction.${interactionType}`,name:htmlTreeAsString(entry.target),attributes:{release:options.release,environment:options.environment,transaction:routeName,...void 0!==userDisplay&&""!==userDisplay?{user:userDisplay}:{},...void 0!==profileId?{profile_id:profileId}:{},...void 0!==replayId?{replay_id:replayId}:{}},exclusiveTime:metric.value,measurements:{inp:{value:metric.value,unit:"millisecond"}}}),sampleRate=function getSampleRate(transactionContext,options,interactionsSampleRate){if(!hasTracingEnabled(options))return!1;let sampleRate;return sampleRate=void 0!==transactionContext&&"function"==typeof options.tracesSampler?options.tracesSampler({transactionContext,name:transactionContext.name,parentSampled:transactionContext.parentSampled,attributes:{...transactionContext.data,...transactionContext.attributes},location:types_WINDOW.location}):void 0!==transactionContext&&void 0!==transactionContext.sampled?transactionContext.sampled:typeof options.tracesSampleRate<"u"?options.tracesSampleRate:1,isValidSampleRate(sampleRate)?!0===sampleRate?interactionsSampleRate:!1===sampleRate?0:sampleRate*interactionsSampleRate:(common_debug_build_DEBUG_BUILD&&logger_logger.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(parentContext,options,interactionsSampleRate);if(sampleRate&&Math.random(){common_debug_build_DEBUG_BUILD&&logger_logger.error("Error while sending interaction:",reason)})}})}(interactionIdtoRouteNameMapping,interactionsSampleRate);return()=>{inpCallback()}}return()=>{}}(interactionIdToRouteNameMapping,options.interactionsSampleRate),options.enableLongTask&&function startTrackingLongTasks(){addPerformanceInstrumentationHandler("longtask",({entries})=>{for(const entry of entries){const transaction=getActiveTransaction();if(!transaction)return;const startTime=msToSec(browserPerformanceTimeOrigin+entry.startTime),duration=msToSec(entry.duration);transaction.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:startTime,endTimestamp:startTime+duration})}})}(),options._experiments.enableInteractions&&function startTrackingInteractions(){addPerformanceInstrumentationHandler("event",({entries})=>{for(const entry of entries){const transaction=getActiveTransaction();if(!transaction)return;if("click"===entry.name){const startTime=msToSec(browserPerformanceTimeOrigin+entry.startTime),duration=msToSec(entry.duration),span={description:htmlTreeAsString(entry.target),op:`ui.interaction.${entry.name}`,origin:"auto.ui.browser.metrics",startTimestamp:startTime,endTimestamp:startTime+duration},componentName=getComponentName(entry.target);componentName&&(span.attributes={"ui.component_name":componentName}),transaction.startChild(span)}}})}();const latestRoute={name:void 0,context:void 0};function _createRouteTransaction(context2){const hub=hub_getCurrentHub(),{beforeStartSpan,idleTimeout,finalTimeout,heartbeatInterval}=options,isPageloadTransaction="pageload"===context2.op;let expandedContext;if(isPageloadTransaction){const sentryTrace=isPageloadTransaction?getMetaContent("sentry-trace"):"",baggage=isPageloadTransaction?getMetaContent("baggage"):void 0,{traceId,dsc,parentSpanId,sampled}=propagationContextFromHeaders(sentryTrace,baggage);expandedContext={traceId,parentSpanId,parentSampled:sampled,...context2,metadata:{...context2.metadata,dynamicSamplingContext:dsc},trimEnd:!0}}else expandedContext={trimEnd:!0,...context2};const finalContext=beforeStartSpan?beforeStartSpan(expandedContext):expandedContext;finalContext.metadata=finalContext.name!==expandedContext.name?{...finalContext.metadata,source:"custom"}:finalContext.metadata,latestRoute.name=finalContext.name,latestRoute.context=finalContext,!1===finalContext.sampled&&common_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`),common_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);const{location:location2}=types_WINDOW,idleTransaction=startIdleTransaction(hub,finalContext,idleTimeout,finalTimeout,!0,{location:location2},heartbeatInterval,isPageloadTransaction);return isPageloadTransaction&&types_WINDOW.document&&(types_WINDOW.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(types_WINDOW.document.readyState)&&idleTransaction.sendAutoFinishSignal()}),["interactive","complete"].includes(types_WINDOW.document.readyState)&&idleTransaction.sendAutoFinishSignal()),idleTransaction.registerBeforeFinishCallback(transaction=>{_collectWebVitals(),function addPerformanceEntries(transaction){const performance2=getBrowserPerformanceAPI();if(!performance2||!types_WINDOW.performance.getEntries||!browserPerformanceTimeOrigin)return;common_debug_build_DEBUG_BUILD&&logger_logger.log("[Tracing] Adding & adjusting spans using Performance API");const timeOrigin=msToSec(browserPerformanceTimeOrigin),performanceEntries=performance2.getEntries(),{op,start_timestamp:transactionStartTime}=spanUtils_spanToJSON(transaction);if(performanceEntries.slice(_performanceCursor).forEach(entry=>{const startTime=msToSec(entry.startTime),duration=msToSec(entry.duration);if(!("navigation"===transaction.op&&transactionStartTime&&timeOrigin+startTime{_addPerformanceNavigationTiming(transaction,entry,event,timeOrigin)}),_addPerformanceNavigationTiming(transaction,entry,"secureConnection",timeOrigin,"TLS/SSL","connectEnd"),_addPerformanceNavigationTiming(transaction,entry,"fetch",timeOrigin,"cache","domainLookupStart"),_addPerformanceNavigationTiming(transaction,entry,"domainLookup",timeOrigin,"DNS"),function _addRequest(transaction,entry,timeOrigin){entry.responseEnd&&(_startChild(transaction,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:timeOrigin+msToSec(entry.requestStart),endTimestamp:timeOrigin+msToSec(entry.responseEnd)}),_startChild(transaction,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:timeOrigin+msToSec(entry.responseStart),endTimestamp:timeOrigin+msToSec(entry.responseEnd)}))}(transaction,entry,timeOrigin)}(transaction,entry,timeOrigin);break;case"mark":case"paint":case"measure":{!function _addMeasureSpans(transaction,entry,startTime,duration,timeOrigin){const measureStartTimestamp=timeOrigin+startTime;_startChild(transaction,{description:entry.name,endTimestamp:measureStartTimestamp+duration,op:entry.entryType,origin:"auto.resource.browser.metrics",startTimestamp:measureStartTimestamp})}(transaction,entry,startTime,duration,timeOrigin);const firstHidden=getVisibilityWatcher(),shouldRecord=entry.startTime{if(!_measurements[name]||!transactionStartTime||timeOrigin>=transactionStartTime)return;const oldValue=_measurements[name].value,measurementTimestamp=timeOrigin+msToSec(oldValue),normalizedValue=Math.abs(1e3*(measurementTimestamp-transactionStartTime));common_debug_build_DEBUG_BUILD&&logger_logger.log(`[Measurements] Normalized ${name} from ${oldValue} to ${normalizedValue} (${normalizedValue-oldValue})`),_measurements[name].value=normalizedValue});const fidMark=_measurements["mark.fid"];fidMark&&_measurements.fid&&(_startChild(transaction,{description:"first input delay",endTimestamp:fidMark.value+msToSec(_measurements.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:fidMark.value}),delete _measurements["mark.fid"]),"fcp"in _measurements||delete _measurements.cls,Object.keys(_measurements).forEach(measurementName=>{!function setMeasurement(name,value,unit){const transaction=getActiveTransaction();transaction&&transaction.setMeasurement(name,value,unit)}(measurementName,_measurements[measurementName].value,_measurements[measurementName].unit)}),function _tagMetricInfo(transaction){_lcpEntry&&(common_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding LCP Data"),_lcpEntry.element&&transaction.setTag("lcp.element",htmlTreeAsString(_lcpEntry.element)),_lcpEntry.id&&transaction.setTag("lcp.id",_lcpEntry.id),_lcpEntry.url&&transaction.setTag("lcp.url",_lcpEntry.url.trim().slice(0,200)),transaction.setTag("lcp.size",_lcpEntry.size)),_clsEntry&&_clsEntry.sources&&(common_debug_build_DEBUG_BUILD&&logger_logger.log("[Measurements] Adding CLS Data"),_clsEntry.sources.forEach((source,index)=>transaction.setTag(`cls.source.${index+1}`,htmlTreeAsString(source.node))))}(transaction)}_lcpEntry=void 0,_clsEntry=void 0,_measurements={}}(transaction)}),idleTransaction}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(client){const clientOptions=client.getOptions(),{markBackgroundSpan,traceFetch,traceXHR,shouldCreateSpanForRequest,enableHTTPTimings,_experiments}=options,clientOptionsTracePropagationTargets=clientOptions&&clientOptions.tracePropagationTargets,tracePropagationTargets=clientOptionsTracePropagationTargets||options.tracePropagationTargets;common_debug_build_DEBUG_BUILD&&_hasSetTracePropagationTargets&&clientOptionsTracePropagationTargets&&logger_logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let activeSpan,startingUrl=types_WINDOW.location&&types_WINDOW.location.href;client.on&&(client.on("startNavigationSpan",context2=>{activeSpan&&(common_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Finishing current transaction with op: ${spanUtils_spanToJSON(activeSpan).op}`),activeSpan.end()),activeSpan=_createRouteTransaction({op:"navigation",...context2})}),client.on("startPageLoadSpan",context2=>{activeSpan&&(common_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Finishing current transaction with op: ${spanUtils_spanToJSON(activeSpan).op}`),activeSpan.end()),activeSpan=_createRouteTransaction({op:"pageload",...context2})})),options.instrumentPageLoad&&client.emit&&types_WINDOW.location&&function startBrowserTracingPageLoadSpan(client,spanOptions){if(!client.emit)return;client.emit("startPageLoadSpan",spanOptions);const span=trace_getActiveSpan();span&&spanUtils_spanToJSON(span)}(client,{name:types_WINDOW.location.pathname,startTimestamp:browserPerformanceTimeOrigin?browserPerformanceTimeOrigin/1e3:void 0,origin:"auto.pageload.browser",attributes:{"sentry.source":"url"}}),options.instrumentNavigation&&client.emit&&types_WINDOW.location&&addHistoryInstrumentationHandler(({to,from:from2})=>{void 0===from2&&startingUrl&&-1!==startingUrl.indexOf(to)?startingUrl=void 0:from2!==to&&(startingUrl=void 0,function browserTracingIntegration_startBrowserTracingNavigationSpan(client,spanOptions){if(!client.emit)return;client.emit("startNavigationSpan",spanOptions);const span=trace_getActiveSpan();span&&spanUtils_spanToJSON(span)}(client,{name:types_WINDOW.location.pathname,origin:"auto.navigation.browser",attributes:{"sentry.source":"url"}}))}),markBackgroundSpan&&function registerBackgroundTabDetection(){types_WINDOW.document?types_WINDOW.document.addEventListener("visibilitychange",()=>{const activeTransaction=getActiveTransaction();if(types_WINDOW.document.hidden&&activeTransaction){const statusType="cancelled",{op,status}=spanUtils_spanToJSON(activeTransaction);common_debug_build_DEBUG_BUILD&&logger_logger.log(`[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${op}`),status||activeTransaction.setStatus(statusType),activeTransaction.setTag("visibilitychange","document.hidden"),activeTransaction.end()}}):common_debug_build_DEBUG_BUILD&&logger_logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}(),_experiments.enableInteractions&&function registerInteractionListener(options,latestRoute){let inflightInteractionTransaction;const registerInteractionTransaction=()=>{const{idleTimeout,finalTimeout,heartbeatInterval}=options,op="ui.action.click",currentTransaction=getActiveTransaction();if(currentTransaction&¤tTransaction.op&&["navigation","pageload"].includes(currentTransaction.op))return void(common_debug_build_DEBUG_BUILD&&logger_logger.warn(`[Tracing] Did not create ${op} transaction because a pageload or navigation transaction is in progress.`));if(inflightInteractionTransaction&&(inflightInteractionTransaction.setFinishReason("interactionInterrupted"),inflightInteractionTransaction.end(),inflightInteractionTransaction=void 0),!latestRoute.name)return void(common_debug_build_DEBUG_BUILD&&logger_logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`));const{location:location2}=types_WINDOW,context2={name:latestRoute.name,op,trimEnd:!0,data:{"sentry.source":latestRoute.context?getSource(latestRoute.context):"url"}};inflightInteractionTransaction=startIdleTransaction(hub_getCurrentHub(),context2,idleTimeout,finalTimeout,!0,{location:location2},heartbeatInterval)};["click"].forEach(type=>{types_WINDOW.document&&addEventListener(type,registerInteractionTransaction,{once:!1,capture:!0})})}(options,latestRoute),options.enableInp&&function registerInpInteractionListener(interactionIdToRouteNameMapping,latestRoute){const handleEntries=({entries})=>{const client=exports_getClient(),replay=void 0!==client&&void 0!==client.getIntegrationByName?client.getIntegrationByName("Replay"):void 0,replayId=void 0!==replay?replay.getReplayId():void 0,activeTransaction=getActiveTransaction(),currentScope=exports_getCurrentScope(),user2=void 0!==currentScope?currentScope.getUser():void 0;entries.forEach(entry=>{if(function isPerformanceEventTiming(entry){return"duration"in entry}(entry)){const interactionId=entry.interactionId;if(void 0===interactionId)return;const existingInteraction=interactionIdToRouteNameMapping[interactionId],duration=entry.duration,startTime=entry.startTime,keys=Object.keys(interactionIdToRouteNameMapping),minInteractionId=keys.length>0?keys.reduce((a,b)=>interactionIdToRouteNameMapping[a].durationinteractionIdToRouteNameMapping[key]).some(interaction=>interaction.duration===duration&&interaction.startTime===startTime)||!interactionId)return;if(existingInteraction)existingInteraction.duration=Math.max(existingInteraction.duration,duration);else if(keys.lengthinteractionIdToRouteNameMapping[minInteractionId].duration){const routeName=latestRoute.name,parentContext=latestRoute.context;routeName&&parentContext&&(minInteractionId&&Object.keys(interactionIdToRouteNameMapping).length>=MAX_INTERACTIONS&&delete interactionIdToRouteNameMapping[minInteractionId],interactionIdToRouteNameMapping[interactionId]={routeName,duration,parentContext,user:user2,activeTransaction,replayId,startTime})}}})};addPerformanceInstrumentationHandler("event",handleEntries),addPerformanceInstrumentationHandler("first-input",handleEntries)}(interactionIdToRouteNameMapping,latestRoute),instrumentOutgoingRequests({traceFetch,traceXHR,tracePropagationTargets,shouldCreateSpanForRequest,enableHTTPTimings})},options}};function getMetaContent(metaName){const metaTag=function getDomElement(selector){return browser_WINDOW.document&&browser_WINDOW.document.querySelector?browser_WINDOW.document.querySelector(selector):null}(`meta[name=${metaName}]`);return metaTag?metaTag.getAttribute("content"):void 0}const MAX_INTERACTIONS=10;function getSource(context2){return context2.attributes&&context2.attributes["sentry.source"]||context2.data&&context2.data["sentry.source"]||context2.metadata&&context2.metadata.source}function isScheduler(value){return value&&isFunction(value.schedule)}function last(arr){return arr[arr.length-1]}function popResultSelector(args){return isFunction(last(args))?args.pop():void 0}function popScheduler(args){return isScheduler(last(args))?args.pop():void 0}function __rest(s,e2){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e2.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n2){i[n2]=o[n2]&&function(v){return new Promise(function(resolve,reject){!function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v2){resolve({value:v2,done:d})},reject)}(resolve,reject,(v=o[n2](v)).done,v.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const isArrayLike=x=>x&&"number"==typeof x.length&&"function"!=typeof x;function isPromise_isPromise(value){return isFunction(value?.then)}function isInteropObservable(input2){return isFunction(input2[observable])}function isAsyncIterable(obj){return Symbol.asyncIterator&&isFunction(obj?.[Symbol.asyncIterator])}function createInvalidObservableTypeError(input2){return new TypeError(`You provided ${null!==input2&&"object"==typeof input2?"an invalid object":`'${input2}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const iterator_iterator=function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function isIterable_isIterable(input2){return isFunction(input2?.[iterator_iterator])}function readableStreamLikeToAsyncGenerator(readableStream){return function __asyncGenerator(thisArg,_arguments,generator){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=generator.apply(thisArg,_arguments||[]),q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n2){g[n2]&&(i[n2]=function(v){return new Promise(function(a,b){q.push([n2,v,a,b])>1||resume(n2,v)})})}function resume(n2,v){try{!function step(r3){r3.value instanceof __await?Promise.resolve(r3.value.v).then(fulfill,reject):settle(q[0][2],r3)}(g[n2](v))}catch(e2){settle(q[0][3],e2)}}function fulfill(value){resume("next",value)}function reject(value){resume("throw",value)}function settle(f,v){f(v),q.shift(),q.length&&resume(q[0][0],q[0][1])}}(this,arguments,function*(){const reader=readableStream.getReader();try{for(;;){const{value,done}=yield __await(reader.read());if(done)return yield __await(void 0);yield yield __await(value)}}finally{reader.releaseLock()}})}function isReadableStreamLike(obj){return isFunction(obj?.getReader)}function innerFrom(input2){if(input2 instanceof Observable_Observable)return input2;if(null!=input2){if(isInteropObservable(input2))return function fromInteropObservable(obj){return new Observable_Observable(subscriber=>{const obs=obj[observable]();if(isFunction(obs.subscribe))return obs.subscribe(subscriber);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(input2);if(isArrayLike(input2))return function fromArrayLike(array){return new Observable_Observable(subscriber=>{for(let i=0;i{promise.then(value=>{subscriber.closed||(subscriber.next(value),subscriber.complete())},err=>subscriber.error(err)).then(null,reportUnhandledError)})}(input2);if(isAsyncIterable(input2))return fromAsyncIterable(input2);if(isIterable_isIterable(input2))return function fromIterable(iterable){return new Observable_Observable(subscriber=>{for(const value of iterable)if(subscriber.next(value),subscriber.closed)return;subscriber.complete()})}(input2);if(isReadableStreamLike(input2))return function fromReadableStreamLike(readableStream){return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream))}(input2)}throw createInvalidObservableTypeError(input2)}function fromAsyncIterable(asyncIterable){return new Observable_Observable(subscriber=>{(function innerFrom_process(asyncIterable,subscriber){var asyncIterable_1,asyncIterable_1_1,e_1,_a;return function __awaiter(thisArg,_arguments,P2,generator){return new(P2||(P2=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e2){reject(e2)}}function rejected(value){try{step(generator.throw(value))}catch(e2){reject(e2)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P2?value:new P2(function(resolve){resolve(value)})}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}(this,void 0,void 0,function*(){try{for(asyncIterable_1=__asyncValues(asyncIterable);!(asyncIterable_1_1=yield asyncIterable_1.next()).done;)if(subscriber.next(asyncIterable_1_1.value),subscriber.closed)return}catch(e_1_1){e_1={error:e_1_1}}finally{try{asyncIterable_1_1&&!asyncIterable_1_1.done&&(_a=asyncIterable_1.return)&&(yield _a.call(asyncIterable_1))}finally{if(e_1)throw e_1.error}}subscriber.complete()})})(asyncIterable,subscriber).catch(err=>subscriber.error(err))})}function executeSchedule(parentSubscription,scheduler,work,delay2=0,repeat2=!1){const scheduleSubscription=scheduler.schedule(function(){work(),repeat2?parentSubscription.add(this.schedule(null,delay2)):this.unsubscribe()},delay2);if(parentSubscription.add(scheduleSubscription),!repeat2)return scheduleSubscription}function observeOn_observeOn(scheduler,delay2=0){return operate((source,subscriber)=>{source.subscribe(createOperatorSubscriber(subscriber,value=>executeSchedule(subscriber,scheduler,()=>subscriber.next(value),delay2),()=>executeSchedule(subscriber,scheduler,()=>subscriber.complete(),delay2),err=>executeSchedule(subscriber,scheduler,()=>subscriber.error(err),delay2)))})}function subscribeOn(scheduler,delay2=0){return operate((source,subscriber)=>{subscriber.add(scheduler.schedule(()=>source.subscribe(subscriber),delay2))})}function scheduleAsyncIterable(input2,scheduler){if(!input2)throw new Error("Iterable cannot be null");return new Observable_Observable(subscriber=>{executeSchedule(subscriber,scheduler,()=>{const iterator=input2[Symbol.asyncIterator]();executeSchedule(subscriber,scheduler,()=>{iterator.next().then(result=>{result.done?subscriber.complete():subscriber.next(result.value)})},0,!0)})})}function from_from(input2,scheduler){return scheduler?function scheduled(input2,scheduler){if(null!=input2){if(isInteropObservable(input2))return function scheduleObservable(input2,scheduler){return innerFrom(input2).pipe(subscribeOn(scheduler),observeOn_observeOn(scheduler))}(input2,scheduler);if(isArrayLike(input2))return function scheduleArray(input2,scheduler){return new Observable_Observable(subscriber=>{let i=0;return scheduler.schedule(function(){i===input2.length?subscriber.complete():(subscriber.next(input2[i++]),subscriber.closed||this.schedule())})})}(input2,scheduler);if(isPromise_isPromise(input2))return function schedulePromise(input2,scheduler){return innerFrom(input2).pipe(subscribeOn(scheduler),observeOn_observeOn(scheduler))}(input2,scheduler);if(isAsyncIterable(input2))return scheduleAsyncIterable(input2,scheduler);if(isIterable_isIterable(input2))return function scheduleIterable(input2,scheduler){return new Observable_Observable(subscriber=>{let iterator;return executeSchedule(subscriber,scheduler,()=>{iterator=input2[iterator_iterator](),executeSchedule(subscriber,scheduler,()=>{let value,done;try{({value,done}=iterator.next())}catch(err){return void subscriber.error(err)}done?subscriber.complete():subscriber.next(value)},0,!0)}),()=>isFunction(iterator?.return)&&iterator.return()})}(input2,scheduler);if(isReadableStreamLike(input2))return function scheduleReadableStreamLike(input2,scheduler){return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input2),scheduler)}(input2,scheduler)}throw createInvalidObservableTypeError(input2)}(input2,scheduler):innerFrom(input2)}function of_of(...args){return from_from(args,popScheduler(args))}function mergeMap_mergeMap(project,resultSelector,concurrent=1/0){return isFunction(resultSelector)?mergeMap_mergeMap((a,i)=>map_map((b,ii)=>resultSelector(a,b,i,ii))(innerFrom(project(a,i))),concurrent):("number"==typeof resultSelector&&(concurrent=resultSelector),operate((source,subscriber)=>function mergeInternals(source,subscriber,project,concurrent,onBeforeNext,expand,innerSubScheduler,additionalFinalizer){const buffer=[];let active=0,index=0,isComplete=!1;const checkComplete=()=>{isComplete&&!buffer.length&&!active&&subscriber.complete()},outerNext=value=>active{expand&&subscriber.next(value),active++;let innerComplete=!1;innerFrom(project(value,index++)).subscribe(createOperatorSubscriber(subscriber,innerValue=>{onBeforeNext?.(innerValue),expand?outerNext(innerValue):subscriber.next(innerValue)},()=>{innerComplete=!0},void 0,()=>{if(innerComplete)try{for(active--;buffer.length&&activedoInnerSub(bufferedValue)):doInnerSub(bufferedValue)}checkComplete()}catch(err){subscriber.error(err)}}))};return source.subscribe(createOperatorSubscriber(subscriber,outerNext,()=>{isComplete=!0,checkComplete()})),()=>{additionalFinalizer?.()}}(source,subscriber,project,concurrent)))}function filter_filter(predicate,thisArg){return operate((source,subscriber)=>{let index=0;source.subscribe(createOperatorSubscriber(subscriber,value=>predicate.call(thisArg,value,index++)&&subscriber.next(value)))})}function finalize(callback){return operate((source,subscriber)=>{try{source.subscribe(subscriber)}finally{subscriber.add(callback)}})}function switchMap_switchMap(project,resultSelector){return operate((source,subscriber)=>{let innerSubscriber=null,index=0,isComplete=!1;const checkComplete=()=>isComplete&&!innerSubscriber&&subscriber.complete();source.subscribe(createOperatorSubscriber(subscriber,value=>{innerSubscriber?.unsubscribe();let innerIndex=0;const outerIndex=index++;innerFrom(project(value,outerIndex)).subscribe(innerSubscriber=createOperatorSubscriber(subscriber,innerValue=>subscriber.next(resultSelector?resultSelector(value,innerValue,outerIndex,innerIndex++):innerValue),()=>{innerSubscriber=null,checkComplete()}))},()=>{isComplete=!0,checkComplete()}))})}class HttpHandler{}class HttpBackend{}class HttpHeaders{constructor(headers){this.normalizedNames=new Map,this.lazyUpdate=null,headers?"string"==typeof headers?this.lazyInit=()=>{this.headers=new Map,headers.split("\n").forEach(line=>{const index=line.indexOf(":");if(index>0){const name=line.slice(0,index),key=name.toLowerCase(),value=line.slice(index+1).trim();this.maybeSetNormalizedName(name,key),this.headers.has(key)?this.headers.get(key).push(value):this.headers.set(key,[value])}})}:typeof Headers<"u"&&headers instanceof Headers?(this.headers=new Map,headers.forEach((values,name)=>{this.setHeaderEntries(name,values)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(headers).forEach(([name,values])=>{this.setHeaderEntries(name,values)})}:this.headers=new Map}has(name){return this.init(),this.headers.has(name.toLowerCase())}get(name){this.init();const values=this.headers.get(name.toLowerCase());return values&&values.length>0?values[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(name){return this.init(),this.headers.get(name.toLowerCase())||null}append(name,value){return this.clone({name,value,op:"a"})}set(name,value){return this.clone({name,value,op:"s"})}delete(name,value){return this.clone({name,value,op:"d"})}maybeSetNormalizedName(name,lcName){this.normalizedNames.has(lcName)||this.normalizedNames.set(lcName,name)}init(){this.lazyInit&&(this.lazyInit instanceof HttpHeaders?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(update=>this.applyUpdate(update)),this.lazyUpdate=null))}copyFrom(other){other.init(),Array.from(other.headers.keys()).forEach(key=>{this.headers.set(key,other.headers.get(key)),this.normalizedNames.set(key,other.normalizedNames.get(key))})}clone(update){const clone=new HttpHeaders;return clone.lazyInit=this.lazyInit&&this.lazyInit instanceof HttpHeaders?this.lazyInit:this,clone.lazyUpdate=(this.lazyUpdate||[]).concat([update]),clone}applyUpdate(update){const key=update.name.toLowerCase();switch(update.op){case"a":case"s":let value=update.value;if("string"==typeof value&&(value=[value]),0===value.length)return;this.maybeSetNormalizedName(update.name,key);const base=("a"===update.op?this.headers.get(key):void 0)||[];base.push(...value),this.headers.set(key,base);break;case"d":const toDelete=update.value;if(toDelete){let existing=this.headers.get(key);if(!existing)return;existing=existing.filter(value2=>-1===toDelete.indexOf(value2)),0===existing.length?(this.headers.delete(key),this.normalizedNames.delete(key)):this.headers.set(key,existing)}else this.headers.delete(key),this.normalizedNames.delete(key)}}setHeaderEntries(name,values){const headerValues=(Array.isArray(values)?values:[values]).map(value=>value.toString()),key=name.toLowerCase();this.headers.set(key,headerValues),this.maybeSetNormalizedName(name,key)}forEach(fn){this.init(),Array.from(this.normalizedNames.keys()).forEach(key=>fn(this.normalizedNames.get(key),this.headers.get(key)))}}class HttpUrlEncodingCodec{encodeKey(key){return standardEncoding(key)}encodeValue(value){return standardEncoding(value)}decodeKey(key){return decodeURIComponent(key)}decodeValue(value){return decodeURIComponent(value)}}const STANDARD_ENCODING_REGEX=/%(\d[a-f0-9])/gi,STANDARD_ENCODING_REPLACEMENTS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function standardEncoding(v){return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX,(s,t)=>STANDARD_ENCODING_REPLACEMENTS[t]??s)}function valueToString(value){return`${value}`}class HttpParams{constructor(options={}){if(this.updates=null,this.cloneFrom=null,this.encoder=options.encoder||new HttpUrlEncodingCodec,options.fromString){if(options.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function paramParser(rawParams,codec){const map2=new Map;return rawParams.length>0&&rawParams.replace(/^\?/,"").split("&").forEach(param=>{const eqIdx=param.indexOf("="),[key,val]=-1==eqIdx?[codec.decodeKey(param),""]:[codec.decodeKey(param.slice(0,eqIdx)),codec.decodeValue(param.slice(eqIdx+1))],list2=map2.get(key)||[];list2.push(val),map2.set(key,list2)}),map2}(options.fromString,this.encoder)}else options.fromObject?(this.map=new Map,Object.keys(options.fromObject).forEach(key=>{const value=options.fromObject[key],values=Array.isArray(value)?value.map(valueToString):[valueToString(value)];this.map.set(key,values)})):this.map=null}has(param){return this.init(),this.map.has(param)}get(param){this.init();const res=this.map.get(param);return res?res[0]:null}getAll(param){return this.init(),this.map.get(param)||null}keys(){return this.init(),Array.from(this.map.keys())}append(param,value){return this.clone({param,value,op:"a"})}appendAll(params){const updates=[];return Object.keys(params).forEach(param=>{const value=params[param];Array.isArray(value)?value.forEach(_value=>{updates.push({param,value:_value,op:"a"})}):updates.push({param,value,op:"a"})}),this.clone(updates)}set(param,value){return this.clone({param,value,op:"s"})}delete(param,value){return this.clone({param,value,op:"d"})}toString(){return this.init(),this.keys().map(key=>{const eKey=this.encoder.encodeKey(key);return this.map.get(key).map(value=>eKey+"="+this.encoder.encodeValue(value)).join("&")}).filter(param=>""!==param).join("&")}clone(update){const clone=new HttpParams({encoder:this.encoder});return clone.cloneFrom=this.cloneFrom||this,clone.updates=(this.updates||[]).concat(update),clone}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(key=>this.map.set(key,this.cloneFrom.map.get(key))),this.updates.forEach(update=>{switch(update.op){case"a":case"s":const base=("a"===update.op?this.map.get(update.param):void 0)||[];base.push(valueToString(update.value)),this.map.set(update.param,base);break;case"d":if(void 0===update.value){this.map.delete(update.param);break}{let base2=this.map.get(update.param)||[];const idx=base2.indexOf(valueToString(update.value));-1!==idx&&base2.splice(idx,1),base2.length>0?this.map.set(update.param,base2):this.map.delete(update.param)}}}),this.cloneFrom=this.updates=null)}}class http_HttpContext{constructor(){this.map=new Map}set(token,value){return this.map.set(token,value),this}get(token){return this.map.has(token)||this.map.set(token,token.defaultValue()),this.map.get(token)}delete(token){return this.map.delete(token),this}has(token){return this.map.has(token)}keys(){return this.map.keys()}}function isArrayBuffer(value){return typeof ArrayBuffer<"u"&&value instanceof ArrayBuffer}function isBlob(value){return typeof Blob<"u"&&value instanceof Blob}function isFormData(value){return typeof FormData<"u"&&value instanceof FormData}class HttpRequest{constructor(method,url,third,fourth){let options;if(this.url=url,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=method.toUpperCase(),function mightHaveBody(method){switch(method){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||fourth?(this.body=void 0!==third?third:null,options=fourth):options=third,options&&(this.reportProgress=!!options.reportProgress,this.withCredentials=!!options.withCredentials,options.responseType&&(this.responseType=options.responseType),options.headers&&(this.headers=options.headers),options.context&&(this.context=options.context),options.params&&(this.params=options.params),this.transferCache=options.transferCache),this.headers??=new HttpHeaders,this.context??=new http_HttpContext,this.params){const params=this.params.toString();if(0===params.length)this.urlWithParams=url;else{const qIdx=url.indexOf("?");this.urlWithParams=url+(-1===qIdx?"?":qIdxheaders2.set(name,update.setHeaders[name]),headers)),update.setParams&&(params=Object.keys(update.setParams).reduce((params2,param)=>params2.set(param,update.setParams[param]),params)),new HttpRequest(method,url,body,{params,headers,context:context2,reportProgress,responseType,withCredentials,transferCache})}}var HttpEventType=function(HttpEventType2){return HttpEventType2[HttpEventType2.Sent=0]="Sent",HttpEventType2[HttpEventType2.UploadProgress=1]="UploadProgress",HttpEventType2[HttpEventType2.ResponseHeader=2]="ResponseHeader",HttpEventType2[HttpEventType2.DownloadProgress=3]="DownloadProgress",HttpEventType2[HttpEventType2.Response=4]="Response",HttpEventType2[HttpEventType2.User=5]="User",HttpEventType2}(HttpEventType||{});class HttpResponseBase{constructor(init2,defaultStatus=HttpStatusCode.Ok,defaultStatusText="OK"){this.headers=init2.headers||new HttpHeaders,this.status=void 0!==init2.status?init2.status:defaultStatus,this.statusText=init2.statusText||defaultStatusText,this.url=init2.url||null,this.ok=this.status>=200&&this.status<300}}class HttpHeaderResponse extends HttpResponseBase{constructor(init2={}){super(init2),this.type=HttpEventType.ResponseHeader}clone(update={}){return new HttpHeaderResponse({headers:update.headers||this.headers,status:void 0!==update.status?update.status:this.status,statusText:update.statusText||this.statusText,url:update.url||this.url||void 0})}}class HttpResponse extends HttpResponseBase{constructor(init2={}){super(init2),this.type=HttpEventType.Response,this.body=void 0!==init2.body?init2.body:null}clone(update={}){return new HttpResponse({body:void 0!==update.body?update.body:this.body,headers:update.headers||this.headers,status:void 0!==update.status?update.status:this.status,statusText:update.statusText||this.statusText,url:update.url||this.url||void 0})}}class HttpErrorResponse extends HttpResponseBase{constructor(init2){super(init2,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${init2.url||"(unknown url)"}`:`Http failure response for ${init2.url||"(unknown url)"}: ${init2.status} ${init2.statusText}`,this.error=init2.error||null}}var HttpStatusCode=function(HttpStatusCode2){return HttpStatusCode2[HttpStatusCode2.Continue=100]="Continue",HttpStatusCode2[HttpStatusCode2.SwitchingProtocols=101]="SwitchingProtocols",HttpStatusCode2[HttpStatusCode2.Processing=102]="Processing",HttpStatusCode2[HttpStatusCode2.EarlyHints=103]="EarlyHints",HttpStatusCode2[HttpStatusCode2.Ok=200]="Ok",HttpStatusCode2[HttpStatusCode2.Created=201]="Created",HttpStatusCode2[HttpStatusCode2.Accepted=202]="Accepted",HttpStatusCode2[HttpStatusCode2.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",HttpStatusCode2[HttpStatusCode2.NoContent=204]="NoContent",HttpStatusCode2[HttpStatusCode2.ResetContent=205]="ResetContent",HttpStatusCode2[HttpStatusCode2.PartialContent=206]="PartialContent",HttpStatusCode2[HttpStatusCode2.MultiStatus=207]="MultiStatus",HttpStatusCode2[HttpStatusCode2.AlreadyReported=208]="AlreadyReported",HttpStatusCode2[HttpStatusCode2.ImUsed=226]="ImUsed",HttpStatusCode2[HttpStatusCode2.MultipleChoices=300]="MultipleChoices",HttpStatusCode2[HttpStatusCode2.MovedPermanently=301]="MovedPermanently",HttpStatusCode2[HttpStatusCode2.Found=302]="Found",HttpStatusCode2[HttpStatusCode2.SeeOther=303]="SeeOther",HttpStatusCode2[HttpStatusCode2.NotModified=304]="NotModified",HttpStatusCode2[HttpStatusCode2.UseProxy=305]="UseProxy",HttpStatusCode2[HttpStatusCode2.Unused=306]="Unused",HttpStatusCode2[HttpStatusCode2.TemporaryRedirect=307]="TemporaryRedirect",HttpStatusCode2[HttpStatusCode2.PermanentRedirect=308]="PermanentRedirect",HttpStatusCode2[HttpStatusCode2.BadRequest=400]="BadRequest",HttpStatusCode2[HttpStatusCode2.Unauthorized=401]="Unauthorized",HttpStatusCode2[HttpStatusCode2.PaymentRequired=402]="PaymentRequired",HttpStatusCode2[HttpStatusCode2.Forbidden=403]="Forbidden",HttpStatusCode2[HttpStatusCode2.NotFound=404]="NotFound",HttpStatusCode2[HttpStatusCode2.MethodNotAllowed=405]="MethodNotAllowed",HttpStatusCode2[HttpStatusCode2.NotAcceptable=406]="NotAcceptable",HttpStatusCode2[HttpStatusCode2.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",HttpStatusCode2[HttpStatusCode2.RequestTimeout=408]="RequestTimeout",HttpStatusCode2[HttpStatusCode2.Conflict=409]="Conflict",HttpStatusCode2[HttpStatusCode2.Gone=410]="Gone",HttpStatusCode2[HttpStatusCode2.LengthRequired=411]="LengthRequired",HttpStatusCode2[HttpStatusCode2.PreconditionFailed=412]="PreconditionFailed",HttpStatusCode2[HttpStatusCode2.PayloadTooLarge=413]="PayloadTooLarge",HttpStatusCode2[HttpStatusCode2.UriTooLong=414]="UriTooLong",HttpStatusCode2[HttpStatusCode2.UnsupportedMediaType=415]="UnsupportedMediaType",HttpStatusCode2[HttpStatusCode2.RangeNotSatisfiable=416]="RangeNotSatisfiable",HttpStatusCode2[HttpStatusCode2.ExpectationFailed=417]="ExpectationFailed",HttpStatusCode2[HttpStatusCode2.ImATeapot=418]="ImATeapot",HttpStatusCode2[HttpStatusCode2.MisdirectedRequest=421]="MisdirectedRequest",HttpStatusCode2[HttpStatusCode2.UnprocessableEntity=422]="UnprocessableEntity",HttpStatusCode2[HttpStatusCode2.Locked=423]="Locked",HttpStatusCode2[HttpStatusCode2.FailedDependency=424]="FailedDependency",HttpStatusCode2[HttpStatusCode2.TooEarly=425]="TooEarly",HttpStatusCode2[HttpStatusCode2.UpgradeRequired=426]="UpgradeRequired",HttpStatusCode2[HttpStatusCode2.PreconditionRequired=428]="PreconditionRequired",HttpStatusCode2[HttpStatusCode2.TooManyRequests=429]="TooManyRequests",HttpStatusCode2[HttpStatusCode2.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",HttpStatusCode2[HttpStatusCode2.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",HttpStatusCode2[HttpStatusCode2.InternalServerError=500]="InternalServerError",HttpStatusCode2[HttpStatusCode2.NotImplemented=501]="NotImplemented",HttpStatusCode2[HttpStatusCode2.BadGateway=502]="BadGateway",HttpStatusCode2[HttpStatusCode2.ServiceUnavailable=503]="ServiceUnavailable",HttpStatusCode2[HttpStatusCode2.GatewayTimeout=504]="GatewayTimeout",HttpStatusCode2[HttpStatusCode2.HttpVersionNotSupported=505]="HttpVersionNotSupported",HttpStatusCode2[HttpStatusCode2.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",HttpStatusCode2[HttpStatusCode2.InsufficientStorage=507]="InsufficientStorage",HttpStatusCode2[HttpStatusCode2.LoopDetected=508]="LoopDetected",HttpStatusCode2[HttpStatusCode2.NotExtended=510]="NotExtended",HttpStatusCode2[HttpStatusCode2.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",HttpStatusCode2}(HttpStatusCode||{});function addBody(options,body){return{body,headers:options.headers,context:options.context,observe:options.observe,params:options.params,reportProgress:options.reportProgress,responseType:options.responseType,withCredentials:options.withCredentials,transferCache:options.transferCache}}let HttpClient=(()=>{class HttpClient2{constructor(handler){this.handler=handler}request(first2,url,options={}){let req;if(first2 instanceof HttpRequest)req=first2;else{let headers,params;headers=options.headers instanceof HttpHeaders?options.headers:new HttpHeaders(options.headers),options.params&&(params=options.params instanceof HttpParams?options.params:new HttpParams({fromObject:options.params})),req=new HttpRequest(first2,url,void 0!==options.body?options.body:null,{headers,context:options.context,params,reportProgress:options.reportProgress,responseType:options.responseType||"json",withCredentials:options.withCredentials,transferCache:options.transferCache})}const events$=of_of(req).pipe(function concatMap_concatMap(project,resultSelector){return isFunction(resultSelector)?mergeMap_mergeMap(project,resultSelector,1):mergeMap_mergeMap(project,1)}(req2=>this.handler.handle(req2)));if(first2 instanceof HttpRequest||"events"===options.observe)return events$;const res$=events$.pipe(filter_filter(event=>event instanceof HttpResponse));switch(options.observe||"body"){case"body":switch(req.responseType){case"arraybuffer":return res$.pipe(map_map(res=>{if(null!==res.body&&!(res.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return res.body}));case"blob":return res$.pipe(map_map(res=>{if(null!==res.body&&!(res.body instanceof Blob))throw new Error("Response is not a Blob.");return res.body}));case"text":return res$.pipe(map_map(res=>{if(null!==res.body&&"string"!=typeof res.body)throw new Error("Response is not a string.");return res.body}));default:return res$.pipe(map_map(res=>res.body))}case"response":return res$;default:throw new Error(`Unreachable: unhandled observe type ${options.observe}}`)}}delete(url,options={}){return this.request("DELETE",url,options)}get(url,options={}){return this.request("GET",url,options)}head(url,options={}){return this.request("HEAD",url,options)}jsonp(url,callbackParam){return this.request("JSONP",url,{params:(new HttpParams).append(callbackParam,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(url,options={}){return this.request("OPTIONS",url,options)}patch(url,body,options={}){return this.request("PATCH",url,addBody(options,body))}post(url,body,options={}){return this.request("POST",url,addBody(options,body))}put(url,body,options={}){return this.request("PUT",url,addBody(options,body))}static#_=this.\u0275fac=function(t){return new(t||HttpClient2)(\u0275\u0275inject(HttpHandler))};static#_2=this.\u0275prov=core_defineInjectable({token:HttpClient2,factory:HttpClient2.\u0275fac})}return HttpClient2})();function interceptorChainEndFn(req,finalHandlerFn){return finalHandlerFn(req)}function adaptLegacyInterceptorToChain(chainTailFn,interceptor){return(initialRequest,finalHandlerFn)=>interceptor.intercept(initialRequest,{handle:downstreamRequest=>chainTailFn(downstreamRequest,finalHandlerFn)})}const HTTP_INTERCEPTORS=new InjectionToken(""),HTTP_INTERCEPTOR_FNS=new InjectionToken(""),HTTP_ROOT_INTERCEPTOR_FNS=new InjectionToken(""),PRIMARY_HTTP_BACKEND=new InjectionToken("");function legacyInterceptorFnFactory(){let chain=null;return(req,handler)=>{null===chain&&(chain=(core_inject(HTTP_INTERCEPTORS,{optional:!0})??[]).reduceRight(adaptLegacyInterceptorToChain,interceptorChainEndFn));const pendingTasks=core_inject(PendingTasks),taskId=pendingTasks.add();return chain(req,handler).pipe(finalize(()=>pendingTasks.remove(taskId)))}}let HttpInterceptorHandler=(()=>{class HttpInterceptorHandler2 extends HttpHandler{constructor(backend,injector){super(),this.backend=backend,this.injector=injector,this.chain=null,this.pendingTasks=core_inject(PendingTasks);const primaryHttpBackend=core_inject(PRIMARY_HTTP_BACKEND,{optional:!0});this.backend=primaryHttpBackend??backend}handle(initialRequest){if(null===this.chain){const dedupedInterceptorFns=Array.from(new Set([...this.injector.get(HTTP_INTERCEPTOR_FNS),...this.injector.get(HTTP_ROOT_INTERCEPTOR_FNS,[])]));this.chain=dedupedInterceptorFns.reduceRight((nextSequencedFn,interceptorFn)=>function chainedInterceptorFn(chainTailFn,interceptorFn,injector){return(initialRequest,finalHandlerFn)=>function core_runInInjectionContext(injector,fn){injector instanceof R3Injector&&injector.assertNotDestroyed();const prevInjector=setCurrentInjector(injector),previousInjectImplementation=setInjectImplementation(void 0);try{return fn()}finally{setCurrentInjector(prevInjector),setInjectImplementation(previousInjectImplementation)}}(injector,()=>interceptorFn(initialRequest,downstreamRequest=>chainTailFn(downstreamRequest,finalHandlerFn)))}(nextSequencedFn,interceptorFn,this.injector),interceptorChainEndFn)}const taskId=this.pendingTasks.add();return this.chain(initialRequest,downstreamRequest=>this.backend.handle(downstreamRequest)).pipe(finalize(()=>this.pendingTasks.remove(taskId)))}static#_=this.\u0275fac=function(t){return new(t||HttpInterceptorHandler2)(\u0275\u0275inject(HttpBackend),\u0275\u0275inject(core_EnvironmentInjector))};static#_2=this.\u0275prov=core_defineInjectable({token:HttpInterceptorHandler2,factory:HttpInterceptorHandler2.\u0275fac})}return HttpInterceptorHandler2})();const XSSI_PREFIX=/^\)\]\}',?\n/;let HttpXhrBackend=(()=>{class HttpXhrBackend2{constructor(xhrFactory){this.xhrFactory=xhrFactory}handle(req){if("JSONP"===req.method)throw new RuntimeError(-2800,!1);const xhrFactory=this.xhrFactory;return(xhrFactory.\u0275loadImpl?from_from(xhrFactory.\u0275loadImpl()):of_of(null)).pipe(switchMap_switchMap(()=>new Observable_Observable(observer=>{const xhr=xhrFactory.build();if(xhr.open(req.method,req.urlWithParams),req.withCredentials&&(xhr.withCredentials=!0),req.headers.forEach((name,values)=>xhr.setRequestHeader(name,values.join(","))),req.headers.has("Accept")||xhr.setRequestHeader("Accept","application/json, text/plain, */*"),!req.headers.has("Content-Type")){const detectedType=req.detectContentTypeHeader();null!==detectedType&&xhr.setRequestHeader("Content-Type",detectedType)}if(req.responseType){const responseType=req.responseType.toLowerCase();xhr.responseType="json"!==responseType?responseType:"text"}const reqBody=req.serializeBody();let headerResponse=null;const partialFromXhr=()=>{if(null!==headerResponse)return headerResponse;const statusText=xhr.statusText||"OK",headers=new HttpHeaders(xhr.getAllResponseHeaders()),url=function getResponseUrl(xhr){return"responseURL"in xhr&&xhr.responseURL?xhr.responseURL:/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())?xhr.getResponseHeader("X-Request-URL"):null}(xhr)||req.url;return headerResponse=new HttpHeaderResponse({headers,status:xhr.status,statusText,url}),headerResponse},onLoad2=()=>{let{headers,status,statusText,url}=partialFromXhr(),body=null;status!==HttpStatusCode.NoContent&&(body=typeof xhr.response>"u"?xhr.responseText:xhr.response),0===status&&(status=body?HttpStatusCode.Ok:0);let ok=status>=200&&status<300;if("json"===req.responseType&&"string"==typeof body){const originalBody=body;body=body.replace(XSSI_PREFIX,"");try{body=""!==body?JSON.parse(body):null}catch(error){body=originalBody,ok&&(ok=!1,body={error,text:body})}}ok?(observer.next(new HttpResponse({body,headers,status,statusText,url:url||void 0})),observer.complete()):observer.error(new HttpErrorResponse({error:body,headers,status,statusText,url:url||void 0}))},onError=error=>{const{url}=partialFromXhr(),res=new HttpErrorResponse({error,status:xhr.status||0,statusText:xhr.statusText||"Unknown Error",url:url||void 0});observer.error(res)};let sentHeaders=!1;const onDownProgress=event=>{sentHeaders||(observer.next(partialFromXhr()),sentHeaders=!0);let progressEvent={type:HttpEventType.DownloadProgress,loaded:event.loaded};event.lengthComputable&&(progressEvent.total=event.total),"text"===req.responseType&&xhr.responseText&&(progressEvent.partialText=xhr.responseText),observer.next(progressEvent)},onUpProgress=event=>{let progress={type:HttpEventType.UploadProgress,loaded:event.loaded};event.lengthComputable&&(progress.total=event.total),observer.next(progress)};return xhr.addEventListener("load",onLoad2),xhr.addEventListener("error",onError),xhr.addEventListener("timeout",onError),xhr.addEventListener("abort",onError),req.reportProgress&&(xhr.addEventListener("progress",onDownProgress),null!==reqBody&&xhr.upload&&xhr.upload.addEventListener("progress",onUpProgress)),xhr.send(reqBody),observer.next({type:HttpEventType.Sent}),()=>{xhr.removeEventListener("error",onError),xhr.removeEventListener("abort",onError),xhr.removeEventListener("load",onLoad2),xhr.removeEventListener("timeout",onError),req.reportProgress&&(xhr.removeEventListener("progress",onDownProgress),null!==reqBody&&xhr.upload&&xhr.upload.removeEventListener("progress",onUpProgress)),xhr.readyState!==xhr.DONE&&xhr.abort()}})))}static#_=this.\u0275fac=function(t){return new(t||HttpXhrBackend2)(\u0275\u0275inject(XhrFactory))};static#_2=this.\u0275prov=core_defineInjectable({token:HttpXhrBackend2,factory:HttpXhrBackend2.\u0275fac})}return HttpXhrBackend2})();const XSRF_ENABLED=new InjectionToken(""),XSRF_COOKIE_NAME=new InjectionToken("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),XSRF_HEADER_NAME=new InjectionToken("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class HttpXsrfTokenExtractor{}let HttpXsrfCookieExtractor=(()=>{class HttpXsrfCookieExtractor2{constructor(doc,platform,cookieName){this.doc=doc,this.platform=platform,this.cookieName=cookieName,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const cookieString=this.doc.cookie||"";return cookieString!==this.lastCookieString&&(this.parseCount++,this.lastToken=parseCookieValue(cookieString,this.cookieName),this.lastCookieString=cookieString),this.lastToken}static#_=this.\u0275fac=function(t){return new(t||HttpXsrfCookieExtractor2)(\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(core_PLATFORM_ID),\u0275\u0275inject(XSRF_COOKIE_NAME))};static#_2=this.\u0275prov=core_defineInjectable({token:HttpXsrfCookieExtractor2,factory:HttpXsrfCookieExtractor2.\u0275fac})}return HttpXsrfCookieExtractor2})();function xsrfInterceptorFn(req,next){const lcUrl=req.url.toLowerCase();if(!core_inject(XSRF_ENABLED)||"GET"===req.method||"HEAD"===req.method||lcUrl.startsWith("http://")||lcUrl.startsWith("https://"))return next(req);const token=core_inject(HttpXsrfTokenExtractor).getToken(),headerName=core_inject(XSRF_HEADER_NAME);return null!=token&&!req.headers.has(headerName)&&(req=req.clone({headers:req.headers.set(headerName,token)})),next(req)}var HttpFeatureKind=function(HttpFeatureKind2){return HttpFeatureKind2[HttpFeatureKind2.Interceptors=0]="Interceptors",HttpFeatureKind2[HttpFeatureKind2.LegacyInterceptors=1]="LegacyInterceptors",HttpFeatureKind2[HttpFeatureKind2.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",HttpFeatureKind2[HttpFeatureKind2.NoXsrfProtection=3]="NoXsrfProtection",HttpFeatureKind2[HttpFeatureKind2.JsonpSupport=4]="JsonpSupport",HttpFeatureKind2[HttpFeatureKind2.RequestsMadeViaParent=5]="RequestsMadeViaParent",HttpFeatureKind2[HttpFeatureKind2.Fetch=6]="Fetch",HttpFeatureKind2}(HttpFeatureKind||{});function provideHttpClient(...features){const providers=[HttpClient,HttpXhrBackend,HttpInterceptorHandler,{provide:HttpHandler,useExisting:HttpInterceptorHandler},{provide:HttpBackend,useExisting:HttpXhrBackend},{provide:HTTP_INTERCEPTOR_FNS,useValue:xsrfInterceptorFn,multi:!0},{provide:XSRF_ENABLED,useValue:!0},{provide:HttpXsrfTokenExtractor,useClass:HttpXsrfCookieExtractor}];for(const feature of features)providers.push(...feature.\u0275providers);return core_makeEnvironmentProviders(providers)}const LEGACY_INTERCEPTOR_FN=new InjectionToken("");function withInterceptorsFromDi(){return function makeHttpFeature(kind,providers){return{\u0275kind:kind,\u0275providers:providers}}(HttpFeatureKind.LegacyInterceptors,[{provide:LEGACY_INTERCEPTOR_FN,useFactory:legacyInterceptorFnFactory},{provide:HTTP_INTERCEPTOR_FNS,useExisting:LEGACY_INTERCEPTOR_FN,multi:!0}])}let HttpClientModule=(()=>{class HttpClientModule2{static#_=this.\u0275fac=function(t){return new(t||HttpClientModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:HttpClientModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())]})}return HttpClientModule2})();const IS_DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,isNgZoneEnabled=typeof Zone<"u"&&!!Zone.current;function isErrorOrErrorLikeObject(value){if(value instanceof Error)return!0;if(null===value||"object"!=typeof value)return!1;const candidate=value;return isString(candidate.name)&&isString(candidate.message)&&(void 0===candidate.stack||isString(candidate.stack))}let SentryErrorHandler=(()=>{class SentryErrorHandler2{constructor(options){this._registeredAfterSendEventHandler=!1,this._options=Object.assign({logErrors:!0},options)}handleError(error){const extractedError=this._extractError(error)||"Handled unknown error",eventId=function runOutsideAngular(callback){return isNgZoneEnabled?Zone.root.run(callback):callback()}(()=>captureException(extractedError,{mechanism:{type:"angular",handled:!1}}));if(this._options.logErrors&&console.error(extractedError),this._options.showDialog){const client=exports_getClient();client&&client.on&&!this._registeredAfterSendEventHandler?(client.on("afterSendEvent",event=>{event.type||showReportDialog(Object.assign(Object.assign({},this._options.dialogOptions),{eventId:event.event_id}))}),this._registeredAfterSendEventHandler=!0):(!client||!client.on)&&showReportDialog(Object.assign(Object.assign({},this._options.dialogOptions),{eventId}))}}_extractError(error){if(this._options.extractor){const defaultExtractor=this._defaultExtractor.bind(this);return this._options.extractor(error,defaultExtractor)}return this._defaultExtractor(error)}_defaultExtractor(errorCandidate){const error=function tryToUnwrapZonejsError(error){return error&&error.ngOriginalError?error.ngOriginalError:error}(errorCandidate);return error instanceof HttpErrorResponse?function extractHttpModuleError(error){return isErrorOrErrorLikeObject(error.error)?error.error:error.error instanceof ErrorEvent&&error.error.message?error.error.message:"string"==typeof error.error?`Server returned code ${error.status} with body "${error.error}"`:error.message}(error):"string"==typeof error||isErrorOrErrorLikeObject(error)?error:null}}return SentryErrorHandler2.\u0275fac=function(t){return new(t||SentryErrorHandler2)(\u0275\u0275inject("errorHandlerOptions"))},SentryErrorHandler2.\u0275prov=core_defineInjectable({token:SentryErrorHandler2,factory:SentryErrorHandler2.\u0275fac,providedIn:"root"}),SentryErrorHandler2})();function createErrorHandler(config2){return new SentryErrorHandler(config2)}let instrumentationInitialized,hooksBasedInstrumentation=!1;function _optionalChain(ops){let lastAccessLHS,value=ops[0],i=1;for(;ivalue.call(lastAccessLHS,...args)),lastAccessLHS=void 0)}return value}function removeTrailingSlash(str){return"/"===str[str.length-1]?str.slice(0,-1):str}var esm_node=__webpack_require__(657);function isBrowser_isBrowser(){return typeof window<"u"&&(!(0,esm_node.wD)()||function isElectronNodeRenderer(){return void 0!==GLOBAL_OBJ.process&&"renderer"===GLOBAL_OBJ.process.type}())}const esm_WINDOW=GLOBAL_OBJ,REPLAY_SESSION_KEY="sentryReplaySession",REPLAY_EVENT_NAME="replay_event",UNABLE_TO_SEND_REPLAY="Unable to send Replay",RETRY_BASE_INTERVAL=5e3,RETRY_MAX_COUNT=3,NETWORK_BODY_MAX_SIZE=15e4;function _optionalChain$5(ops){let lastAccessLHS,value=ops[0],i=1;for(;ivalue.call(lastAccessLHS,...args)),lastAccessLHS=void 0)}return value}var NodeType$1=function(NodeType2){return NodeType2[NodeType2.Document=0]="Document",NodeType2[NodeType2.DocumentType=1]="DocumentType",NodeType2[NodeType2.Element=2]="Element",NodeType2[NodeType2.Text=3]="Text",NodeType2[NodeType2.CDATA=4]="CDATA",NodeType2[NodeType2.Comment=5]="Comment",NodeType2}(NodeType$1||{});function isShadowRoot(n2){const host=_optionalChain$5([n2,"optionalAccess",_=>_.host]);return _optionalChain$5([host,"optionalAccess",_2=>_2.shadowRoot])===n2}function isNativeShadowDom(shadowRoot){return"[object ShadowRoot]"===Object.prototype.toString.call(shadowRoot)}function stringifyStylesheet(s){try{const rules=s.rules||s.cssRules;return rules?function fixBrowserCompatibilityIssuesInCSS(cssText){return cssText.includes(" background-clip: text;")&&!cssText.includes(" -webkit-background-clip: text;")&&(cssText=cssText.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),cssText}(Array.from(rules,stringifyRule).join("")):null}catch{return null}}function stringifyRule(rule){let importStringified;if(function isCSSImportRule(rule){return"styleSheet"in rule}(rule))try{importStringified=stringifyStylesheet(rule.styleSheet)||function escapeImportStatement(rule){const{cssText}=rule;if(cssText.split('"').length<3)return cssText;const statement=["@import",`url(${JSON.stringify(rule.href)})`];return""===rule.layerName?statement.push("layer"):rule.layerName&&statement.push(`layer(${rule.layerName})`),rule.supportsText&&statement.push(`supports(${rule.supportsText})`),rule.media.length&&statement.push(rule.media.mediaText),statement.join(" ")+";"}(rule)}catch{}else if(function isCSSStyleRule(rule){return"selectorText"in rule}(rule)&&rule.selectorText.includes(":"))return function fixSafariColons(cssStringified){return cssStringified.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}(rule.cssText);return importStringified||rule.cssText}class Mirror{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(n2){return n2?function _nullishCoalesce$1(lhs,rhsFn){return lhs??rhsFn()}(_optionalChain$5([this,"access",_3=>_3.getMeta,"call",_4=>_4(n2),"optionalAccess",_5=>_5.id]),()=>-1):-1}getNode(id){return this.idNodeMap.get(id)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(n2){return this.nodeMetaMap.get(n2)||null}removeNodeFromMap(n2){const id=this.getId(n2);this.idNodeMap.delete(id),n2.childNodes&&n2.childNodes.forEach(childNode=>this.removeNodeFromMap(childNode))}has(id){return this.idNodeMap.has(id)}hasNode(node2){return this.nodeMetaMap.has(node2)}add(n2,meta){this.idNodeMap.set(meta.id,n2),this.nodeMetaMap.set(n2,meta)}replace(id,n2){const oldNode=this.getNode(id);if(oldNode){const meta=this.nodeMetaMap.get(oldNode);meta&&this.nodeMetaMap.set(n2,meta)}this.idNodeMap.set(id,n2)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function shouldMaskInput({maskInputOptions,tagName,type}){return"OPTION"===tagName&&(tagName="SELECT"),!!(maskInputOptions[tagName.toLowerCase()]||type&&maskInputOptions[type]||"password"===type||"INPUT"===tagName&&!type&&maskInputOptions.text)}function maskInputValue({isMasked,element,value,maskInputFn}){let text=value||"";return isMasked?(maskInputFn&&(text=maskInputFn(text,element)),"*".repeat(text.length)):text}function toLowerCase(str){return str.toLowerCase()}function toUpperCase(str){return str.toUpperCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function getInputType(element){const type=element.type;return element.hasAttribute("data-rr-is-password")?"password":type?toLowerCase(type):null}function getInputValue(el,tagName,type){return"INPUT"!==tagName||"radio"!==type&&"checkbox"!==type?el.value:el.getAttribute("value")||""}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}let canvasService,canvasCtx;const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absoluteToStylesheet(cssText,href){return(cssText||"").replace(URL_IN_CSS_REF,(origin,quote1,path1,quote2,path2,path3)=>{const filePath=path1||path2||path3,maybeQuote=quote1||quote2||"";if(!filePath)return origin;if(URL_PROTOCOL_MATCH.test(filePath)||URL_WWW_MATCH.test(filePath))return`url(${maybeQuote}${filePath}${maybeQuote})`;if(DATA_URI.test(filePath))return`url(${maybeQuote}${filePath}${maybeQuote})`;if("/"===filePath[0])return`url(${maybeQuote}${function extractOrigin(url){let origin="";return origin=url.indexOf("//")>-1?url.split("/").slice(0,3).join("/"):url.split("/")[0],origin=origin.split("?")[0],origin}(href)+filePath}${maybeQuote})`;const stack=href.split("/"),parts=filePath.split("/");stack.pop();for(const part of parts)"."!==part&&(".."===part?stack.pop():stack.push(part));return`url(${maybeQuote}${stack.join("/")}${maybeQuote})`})}const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function absoluteToDoc(doc,attributeValue){if(!attributeValue||""===attributeValue.trim())return attributeValue;const a=doc.createElement("a");return a.href=attributeValue,a.href}function getHref(){const a=document.createElement("a");return a.href="",a.href}function transformAttribute(doc,tagName,name,value,element,maskAttributeFn){return value&&("src"===name||"href"===name&&("use"!==tagName||"#"!==value[0])||"xlink:href"===name&&"#"!==value[0]||"background"===name&&("table"===tagName||"td"===tagName||"th"===tagName)?absoluteToDoc(doc,value):"srcset"===name?function getAbsoluteSrcsetString(doc,attributeValue){if(""===attributeValue.trim())return attributeValue;let pos=0;function collectCharacters(regEx){let chars;const match2=regEx.exec(attributeValue.substring(pos));return match2?(chars=match2[0],pos+=chars.length,chars):""}const output2=[];for(;collectCharacters(SRCSET_COMMAS_OR_SPACES),!(pos>=attributeValue.length);){let url=collectCharacters(SRCSET_NOT_SPACES);if(","===url.slice(-1))url=absoluteToDoc(doc,url.substring(0,url.length-1)),output2.push(url);else{let descriptorsStr="";url=absoluteToDoc(doc,url);let inParens=!1;for(;;){const c=attributeValue.charAt(pos);if(""===c){output2.push((url+descriptorsStr).trim());break}if(inParens)")"===c&&(inParens=!1);else{if(","===c){pos+=1,output2.push((url+descriptorsStr).trim());break}"("===c&&(inParens=!0)}descriptorsStr+=c,pos+=1}}}return output2.join(", ")}(doc,value):"style"===name?absoluteToStylesheet(value,getHref()):"object"===tagName&&"data"===name?absoluteToDoc(doc,value):"function"==typeof maskAttributeFn?maskAttributeFn(name,value,element):value)}function ignoreAttribute(tagName,name,_value){return("video"===tagName||"audio"===tagName)&&"autoplay"===name}function distanceToMatch(node2,matchPredicate,limit=1/0,distance=0){return!node2||node2.nodeType!==node2.ELEMENT_NODE||distance>limit?-1:matchPredicate(node2)?distance:distanceToMatch(node2.parentNode,matchPredicate,limit,distance+1)}function createMatchPredicate(className,selector){return node2=>{const el=node2;if(null===el)return!1;try{if(className)if("string"==typeof className){if(el.matches(`.${className}`))return!0}else if(function elementClassMatchesRegex(el,regex){for(let eIndex=el.classList.length;eIndex--;)if(regex.test(el.classList[eIndex]))return!0;return!1}(el,className))return!0;return!(!selector||!el.matches(selector))}catch{return!1}}}function needMaskingText(node2,maskTextClass,maskTextSelector,unmaskTextClass,unmaskTextSelector,maskAllText){try{const el=node2.nodeType===node2.ELEMENT_NODE?node2:node2.parentElement;if(null===el)return!1;if("INPUT"===el.tagName){const autocomplete=el.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(autocomplete))return!0}let maskDistance=-1,unmaskDistance=-1;if(maskAllText){if(unmaskDistance=distanceToMatch(el,createMatchPredicate(unmaskTextClass,unmaskTextSelector)),unmaskDistance<0)return!0;maskDistance=distanceToMatch(el,createMatchPredicate(maskTextClass,maskTextSelector),unmaskDistance>=0?unmaskDistance:1/0)}else{if(maskDistance=distanceToMatch(el,createMatchPredicate(maskTextClass,maskTextSelector)),maskDistance<0)return!1;unmaskDistance=distanceToMatch(el,createMatchPredicate(unmaskTextClass,unmaskTextSelector),maskDistance>=0?maskDistance:1/0)}return maskDistance>=0?!(unmaskDistance>=0)||maskDistance<=unmaskDistance:!(unmaskDistance>=0||!maskAllText)}catch{}return!!maskAllText}function lowerIfExists(maybeAttr){return null==maybeAttr?"":maybeAttr.toLowerCase()}function serializeNodeWithId(n2,options){const{doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,skipChild=!1,inlineStylesheet=!0,maskInputOptions={},maskAttributeFn,maskTextFn,maskInputFn,slimDOMOptions,dataURLOptions={},inlineImages=!1,recordCanvas=!1,onSerialize,onIframeLoad,iframeLoadTimeout=5e3,onStylesheetLoad,stylesheetLoadTimeout=5e3,keepIframeSrcFn=()=>!1,newlyAddedElement=!1}=options;let{preserveWhiteSpace=!0}=options;const _serializedNode=function serializeNode(n2,options){const{doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,maskAllText,maskAttributeFn,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,inlineStylesheet,maskInputOptions={},maskTextFn,maskInputFn,dataURLOptions={},inlineImages,recordCanvas,keepIframeSrcFn,newlyAddedElement=!1}=options,rootId=function getRootId(doc,mirror2){if(!mirror2.hasNode(doc))return;const docId=mirror2.getId(doc);return 1===docId?void 0:docId}(doc,mirror2);switch(n2.nodeType){case n2.DOCUMENT_NODE:return"CSS1Compat"!==n2.compatMode?{type:NodeType$1.Document,childNodes:[],compatMode:n2.compatMode}:{type:NodeType$1.Document,childNodes:[]};case n2.DOCUMENT_TYPE_NODE:return{type:NodeType$1.DocumentType,name:n2.name,publicId:n2.publicId,systemId:n2.systemId,rootId};case n2.ELEMENT_NODE:return function serializeElementNode(n2,options){const{doc,blockClass,blockSelector,unblockSelector,inlineStylesheet,maskInputOptions={},maskAttributeFn,maskInputFn,dataURLOptions={},inlineImages,recordCanvas,keepIframeSrcFn,newlyAddedElement=!1,rootId,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector}=options,needBlock=function _isBlockedElement(element,blockClass,blockSelector,unblockSelector){try{if(unblockSelector&&element.matches(unblockSelector))return!1;if("string"==typeof blockClass){if(element.classList.contains(blockClass))return!0}else for(let eIndex=element.classList.length;eIndex--;)if(blockClass.test(element.classList[eIndex]))return!0;if(blockSelector)return element.matches(blockSelector)}catch{}return!1}(n2,blockClass,blockSelector,unblockSelector),tagName=function getValidTagName(element){if(element instanceof HTMLFormElement)return"form";const processedTagName=toLowerCase(element.tagName);return tagNameRegex.test(processedTagName)?"div":processedTagName}(n2);let attributes={};const len=n2.attributes.length;for(let i=0;is.href===n2.href);let cssText=null;stylesheet&&(cssText=stringifyStylesheet(stylesheet)),cssText&&(delete attributes.rel,delete attributes.href,attributes._cssText=absoluteToStylesheet(cssText,stylesheet.href))}if("style"===tagName&&n2.sheet&&!(n2.innerText||n2.textContent||"").trim().length){const cssText=stringifyStylesheet(n2.sheet);cssText&&(attributes._cssText=absoluteToStylesheet(cssText,getHref()))}if("input"===tagName||"textarea"===tagName||"select"===tagName||"option"===tagName){const el=n2,type=getInputType(el),value=getInputValue(el,toUpperCase(tagName),type),checked=el.checked;if("submit"!==type&&"button"!==type&&value){const forceMask=needMaskingText(el,maskTextClass,maskTextSelector,unmaskTextClass,unmaskTextSelector,shouldMaskInput({type,tagName:toUpperCase(tagName),maskInputOptions}));attributes.value=maskInputValue({isMasked:forceMask,element:el,value,maskInputFn})}checked&&(attributes.checked=checked)}if("option"===tagName&&(n2.selected&&!maskInputOptions.select?attributes.selected=!0:delete attributes.selected),"canvas"===tagName&&recordCanvas)if("2d"===n2.__context)(function is2DCanvasBlank(canvas){const ctx=canvas.getContext("2d");if(!ctx)return!0;for(let x=0;x0!==pixel))return!1}return!0})(n2)||(attributes.rr_dataURL=n2.toDataURL(dataURLOptions.type,dataURLOptions.quality));else if(!("__context"in n2)){const canvasDataURL=n2.toDataURL(dataURLOptions.type,dataURLOptions.quality),blankCanvas=document.createElement("canvas");blankCanvas.width=n2.width,blankCanvas.height=n2.height,canvasDataURL!==blankCanvas.toDataURL(dataURLOptions.type,dataURLOptions.quality)&&(attributes.rr_dataURL=canvasDataURL)}if("img"===tagName&&inlineImages){canvasService||(canvasService=doc.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const image=n2,oldValue=image.crossOrigin;image.crossOrigin="anonymous";const recordInlineImage=()=>{image.removeEventListener("load",recordInlineImage);try{canvasService.width=image.naturalWidth,canvasService.height=image.naturalHeight,canvasCtx.drawImage(image,0,0),attributes.rr_dataURL=canvasService.toDataURL(dataURLOptions.type,dataURLOptions.quality)}catch(err){console.warn(`Cannot inline img src=${image.currentSrc}! Error: ${err}`)}oldValue?attributes.crossOrigin=oldValue:image.removeAttribute("crossorigin")};image.complete&&0!==image.naturalWidth?recordInlineImage():image.addEventListener("load",recordInlineImage)}if(("audio"===tagName||"video"===tagName)&&(attributes.rr_mediaState=n2.paused?"paused":"played",attributes.rr_mediaCurrentTime=n2.currentTime),newlyAddedElement||(n2.scrollLeft&&(attributes.rr_scrollLeft=n2.scrollLeft),n2.scrollTop&&(attributes.rr_scrollTop=n2.scrollTop)),needBlock){const{width,height}=n2.getBoundingClientRect();attributes={class:attributes.class,rr_width:`${width}px`,rr_height:`${height}px`}}let isCustomElement;"iframe"===tagName&&!keepIframeSrcFn(attributes.src)&&(n2.contentDocument||(attributes.rr_src=attributes.src),delete attributes.src);try{customElements.get(tagName)&&(isCustomElement=!0)}catch{}return{type:NodeType$1.Element,tagName,attributes,childNodes:[],isSVG:(el=n2,!("svg"!==el.tagName&&!el.ownerSVGElement)||void 0),needBlock,rootId,isCustom:isCustomElement};var el}(n2,{doc,blockClass,blockSelector,unblockSelector,inlineStylesheet,maskAttributeFn,maskInputOptions,maskInputFn,dataURLOptions,inlineImages,recordCanvas,keepIframeSrcFn,newlyAddedElement,rootId,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector});case n2.TEXT_NODE:return function serializeTextNode(n2,options){const{maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,maskTextFn,maskInputOptions,maskInputFn,rootId}=options,parentTagName=n2.parentNode&&n2.parentNode.tagName;let textContent=n2.textContent;const isStyle="STYLE"===parentTagName||void 0,isScript="SCRIPT"===parentTagName||void 0,isTextarea="TEXTAREA"===parentTagName||void 0;if(isStyle&&textContent){try{n2.nextSibling||n2.previousSibling||_optionalChain$5([n2,"access",_6=>_6.parentNode,"access",_7=>_7.sheet,"optionalAccess",_8=>_8.cssRules])&&(textContent=stringifyStylesheet(n2.parentNode.sheet))}catch(err){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${err}`,n2)}textContent=absoluteToStylesheet(textContent,getHref())}isScript&&(textContent="SCRIPT_PLACEHOLDER");const forceMask=needMaskingText(n2,maskTextClass,maskTextSelector,unmaskTextClass,unmaskTextSelector,maskAllText);return!isStyle&&!isScript&&!isTextarea&&textContent&&forceMask&&(textContent=maskTextFn?maskTextFn(textContent):textContent.replace(/[\S]/g,"*")),isTextarea&&textContent&&(maskInputOptions.textarea||forceMask)&&(textContent=maskInputFn?maskInputFn(textContent,n2.parentNode):textContent.replace(/[\S]/g,"*")),"OPTION"===parentTagName&&textContent&&(textContent=maskInputValue({isMasked:needMaskingText(n2,maskTextClass,maskTextSelector,unmaskTextClass,unmaskTextSelector,shouldMaskInput({type:null,tagName:parentTagName,maskInputOptions})),element:n2,value:textContent,maskInputFn})),{type:NodeType$1.Text,textContent:textContent||"",isStyle,rootId}}(n2,{maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,maskTextFn,maskInputOptions,maskInputFn,rootId});case n2.CDATA_SECTION_NODE:return{type:NodeType$1.CDATA,textContent:"",rootId};case n2.COMMENT_NODE:return{type:NodeType$1.Comment,textContent:n2.textContent||"",rootId};default:return!1}}(n2,{doc,mirror:mirror2,blockClass,blockSelector,maskAllText,unblockSelector,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,inlineStylesheet,maskInputOptions,maskAttributeFn,maskTextFn,maskInputFn,dataURLOptions,inlineImages,recordCanvas,keepIframeSrcFn,newlyAddedElement});if(!_serializedNode)return console.warn(n2,"not serialized"),null;let id;id=mirror2.hasNode(n2)?mirror2.getId(n2):function slimDOMExcluded(sn,slimDOMOptions){if(slimDOMOptions.comment&&sn.type===NodeType$1.Comment)return!0;if(sn.type===NodeType$1.Element){if(slimDOMOptions.script&&("script"===sn.tagName||"link"===sn.tagName&&("preload"===sn.attributes.rel||"modulepreload"===sn.attributes.rel)&&"script"===sn.attributes.as||"link"===sn.tagName&&"prefetch"===sn.attributes.rel&&"string"==typeof sn.attributes.href&&sn.attributes.href.endsWith(".js")))return!0;if(slimDOMOptions.headFavicon&&("link"===sn.tagName&&"shortcut icon"===sn.attributes.rel||"meta"===sn.tagName&&(lowerIfExists(sn.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(sn.attributes.name)||"icon"===lowerIfExists(sn.attributes.rel)||"apple-touch-icon"===lowerIfExists(sn.attributes.rel)||"shortcut icon"===lowerIfExists(sn.attributes.rel))))return!0;if("meta"===sn.tagName){if(slimDOMOptions.headMetaDescKeywords&&lowerIfExists(sn.attributes.name).match(/^description|keywords$/))return!0;if(slimDOMOptions.headMetaSocial&&(lowerIfExists(sn.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(sn.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(sn.attributes.name)))return!0;if(slimDOMOptions.headMetaRobots&&("robots"===lowerIfExists(sn.attributes.name)||"googlebot"===lowerIfExists(sn.attributes.name)||"bingbot"===lowerIfExists(sn.attributes.name)))return!0;if(slimDOMOptions.headMetaHttpEquiv&&void 0!==sn.attributes["http-equiv"])return!0;if(slimDOMOptions.headMetaAuthorship&&("author"===lowerIfExists(sn.attributes.name)||"generator"===lowerIfExists(sn.attributes.name)||"framework"===lowerIfExists(sn.attributes.name)||"publisher"===lowerIfExists(sn.attributes.name)||"progid"===lowerIfExists(sn.attributes.name)||lowerIfExists(sn.attributes.property).match(/^article:/)||lowerIfExists(sn.attributes.property).match(/^product:/)))return!0;if(slimDOMOptions.headMetaVerification&&("google-site-verification"===lowerIfExists(sn.attributes.name)||"yandex-verification"===lowerIfExists(sn.attributes.name)||"csrf-token"===lowerIfExists(sn.attributes.name)||"p:domain_verify"===lowerIfExists(sn.attributes.name)||"verify-v1"===lowerIfExists(sn.attributes.name)||"verification"===lowerIfExists(sn.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(sn.attributes.name)))return!0}}return!1}(_serializedNode,slimDOMOptions)||!preserveWhiteSpace&&_serializedNode.type===NodeType$1.Text&&!_serializedNode.isStyle&&!_serializedNode.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();const serializedNode=Object.assign(_serializedNode,{id});if(mirror2.add(n2,serializedNode),id===IGNORED_NODE)return null;onSerialize&&onSerialize(n2);let recordChild=!skipChild;if(serializedNode.type===NodeType$1.Element){recordChild=recordChild&&!serializedNode.needBlock,delete serializedNode.needBlock;const shadowRoot=n2.shadowRoot;shadowRoot&&isNativeShadowDom(shadowRoot)&&(serializedNode.isShadowHost=!0)}if((serializedNode.type===NodeType$1.Document||serializedNode.type===NodeType$1.Element)&&recordChild){slimDOMOptions.headWhitespace&&serializedNode.type===NodeType$1.Element&&"head"===serializedNode.tagName&&(preserveWhiteSpace=!1);const bypassOptions={doc,mirror:mirror2,blockClass,blockSelector,maskAllText,unblockSelector,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,skipChild,inlineStylesheet,maskInputOptions,maskAttributeFn,maskTextFn,maskInputFn,slimDOMOptions,dataURLOptions,inlineImages,recordCanvas,preserveWhiteSpace,onSerialize,onIframeLoad,iframeLoadTimeout,onStylesheetLoad,stylesheetLoadTimeout,keepIframeSrcFn};for(const childN of Array.from(n2.childNodes)){const serializedChildNode=serializeNodeWithId(childN,bypassOptions);serializedChildNode&&serializedNode.childNodes.push(serializedChildNode)}if(function isElement$1(n2){return n2.nodeType===n2.ELEMENT_NODE}(n2)&&n2.shadowRoot)for(const childN of Array.from(n2.shadowRoot.childNodes)){const serializedChildNode=serializeNodeWithId(childN,bypassOptions);serializedChildNode&&(isNativeShadowDom(n2.shadowRoot)&&(serializedChildNode.isShadow=!0),serializedNode.childNodes.push(serializedChildNode))}}return n2.parentNode&&isShadowRoot(n2.parentNode)&&isNativeShadowDom(n2.parentNode)&&(serializedNode.isShadow=!0),serializedNode.type===NodeType$1.Element&&"iframe"===serializedNode.tagName&&function onceIframeLoaded(iframeEl,listener,iframeLoadTimeout){const win=iframeEl.contentWindow;if(!win)return;let readyState,fired=!1;try{readyState=win.document.readyState}catch{return}if("complete"===readyState){if("about:blank"!==win.location.href||"about:blank"===iframeEl.src||""===iframeEl.src)return setTimeout(listener,0),iframeEl.addEventListener("load",listener);iframeEl.addEventListener("load",listener)}else{const timer2=setTimeout(()=>{fired||(listener(),fired=!0)},iframeLoadTimeout);iframeEl.addEventListener("load",()=>{clearTimeout(timer2),fired=!0,listener()})}}(n2,()=>{const iframeDoc=n2.contentDocument;if(iframeDoc&&onIframeLoad){const serializedIframeNode=serializeNodeWithId(iframeDoc,{doc:iframeDoc,mirror:mirror2,blockClass,blockSelector,unblockSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,skipChild:!1,inlineStylesheet,maskInputOptions,maskAttributeFn,maskTextFn,maskInputFn,slimDOMOptions,dataURLOptions,inlineImages,recordCanvas,preserveWhiteSpace,onSerialize,onIframeLoad,iframeLoadTimeout,onStylesheetLoad,stylesheetLoadTimeout,keepIframeSrcFn});serializedIframeNode&&onIframeLoad(n2,serializedIframeNode)}},iframeLoadTimeout),serializedNode.type===NodeType$1.Element&&"link"===serializedNode.tagName&&"stylesheet"===serializedNode.attributes.rel&&function onceStylesheetLoaded(link,listener,styleSheetLoadTimeout){let styleSheetLoaded,fired=!1;try{styleSheetLoaded=link.sheet}catch{return}if(styleSheetLoaded)return;const timer2=setTimeout(()=>{fired||(listener(),fired=!0)},styleSheetLoadTimeout);link.addEventListener("load",()=>{clearTimeout(timer2),fired=!0,listener()})}(n2,()=>{if(onStylesheetLoad){const serializedLinkNode=serializeNodeWithId(n2,{doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,skipChild:!1,inlineStylesheet,maskInputOptions,maskAttributeFn,maskTextFn,maskInputFn,slimDOMOptions,dataURLOptions,inlineImages,recordCanvas,preserveWhiteSpace,onSerialize,onIframeLoad,iframeLoadTimeout,onStylesheetLoad,stylesheetLoadTimeout,keepIframeSrcFn});serializedLinkNode&&onStylesheetLoad(n2,serializedLinkNode)}},stylesheetLoadTimeout),serializedNode}function _optionalChain$4(ops){let lastAccessLHS,value=ops[0],i=1;for(;ivalue.call(lastAccessLHS,...args)),lastAccessLHS=void 0)}return value}function on(type,fn,target=document){const options={capture:!0,passive:!0};return target.addEventListener(type,fn,options),()=>target.removeEventListener(type,fn,options)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId:()=>(console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1),getNode:()=>(console.error(DEPARTED_MIRROR_ACCESS_WARNING),null),removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has:()=>(console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1),reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle$1(func,wait,options={}){let timeout=null,previous=0;return function(...args){const now=Date.now();!previous&&!1===options.leading&&(previous=now);const remaining=wait-(now-previous),context2=this;remaining<=0||remaining>wait?(timeout&&(clearTimeout(timeout),timeout=null),previous=now,func.apply(context2,args)):!timeout&&!1!==options.trailing&&(timeout=setTimeout(()=>{previous=!1===options.leading?0:Date.now(),timeout=null,func.apply(context2,args)},remaining))}}function hookSetter(target,key,d,isRevoked,win=window){const original=win.Object.getOwnPropertyDescriptor(target,key);return win.Object.defineProperty(target,key,isRevoked?d:{set(value){setTimeout(()=>{d.set.call(this,value)},0),original&&original.set&&original.set.call(this,value)}}),()=>hookSetter(target,key,original||{},!0)}function patch(source,name,replacement){try{if(!(name in source))return()=>{};const original=source[name],wrapped=replacement(original);return"function"==typeof wrapped&&(wrapped.prototype=wrapped.prototype||{},Object.defineProperties(wrapped,{__rrweb_original__:{enumerable:!1,value:original}})),source[name]=wrapped,()=>{source[name]=original}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get:(target,prop2,receiver)=>("map"===prop2&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(target,prop2,receiver))}));let cachedRequestAnimationFrameImplementation,nowTimestamp=Date.now;function getWindowScroll(win){const doc=win.document;return{left:doc.scrollingElement?doc.scrollingElement.scrollLeft:void 0!==win.pageXOffset?win.pageXOffset:_optionalChain$4([doc,"optionalAccess",_=>_.documentElement,"access",_2=>_2.scrollLeft])||_optionalChain$4([doc,"optionalAccess",_3=>_3.body,"optionalAccess",_4=>_4.parentElement,"optionalAccess",_5=>_5.scrollLeft])||_optionalChain$4([doc,"optionalAccess",_6=>_6.body,"optionalAccess",_7=>_7.scrollLeft])||0,top:doc.scrollingElement?doc.scrollingElement.scrollTop:void 0!==win.pageYOffset?win.pageYOffset:_optionalChain$4([doc,"optionalAccess",_8=>_8.documentElement,"access",_9=>_9.scrollTop])||_optionalChain$4([doc,"optionalAccess",_10=>_10.body,"optionalAccess",_11=>_11.parentElement,"optionalAccess",_12=>_12.scrollTop])||_optionalChain$4([doc,"optionalAccess",_13=>_13.body,"optionalAccess",_14=>_14.scrollTop])||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function isBlocked(node2,blockClass,blockSelector,unblockSelector,checkAncestors){if(!node2)return!1;const el=node2.nodeType===node2.ELEMENT_NODE?node2:node2.parentElement;if(!el)return!1;const blockedPredicate=createMatchPredicate(blockClass,blockSelector);if(!checkAncestors){const isUnblocked=unblockSelector&&el.matches(unblockSelector);return blockedPredicate(el)&&!isUnblocked}const blockDistance=distanceToMatch(el,blockedPredicate);let unblockDistance=-1;return!(blockDistance<0)&&(unblockSelector&&(unblockDistance=distanceToMatch(el,createMatchPredicate(null,unblockSelector))),blockDistance>-1&&unblockDistance<0||blockDistance_18.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(stylesheet){return function _nullishCoalesce(lhs,rhsFn){return lhs??rhsFn()}(this.styleIDMap.get(stylesheet),()=>-1)}has(stylesheet){return this.styleIDMap.has(stylesheet)}add(stylesheet,id){if(this.has(stylesheet))return this.getId(stylesheet);let newId;return newId=void 0===id?this.id++:id,this.styleIDMap.set(stylesheet,newId),this.idStyleMap.set(newId,stylesheet),newId}getStyle(id){return this.idStyleMap.get(id)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function getShadowHost(n2){let shadowHost=null;return _optionalChain$4([n2,"access",_19=>_19.getRootNode,"optionalCall",_20=>_20(),"optionalAccess",_21=>_21.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&n2.getRootNode().host&&(shadowHost=n2.getRootNode().host),shadowHost}function inDom(n2){const doc=n2.ownerDocument;return!!doc&&(doc.contains(n2)||function shadowHostInDom(n2){const doc=n2.ownerDocument;if(!doc)return!1;const shadowHost=function getRootShadowHost(n2){let shadowHost,rootShadowHost=n2;for(;shadowHost=getShadowHost(rootShadowHost);)rootShadowHost=shadowHost;return rootShadowHost}(n2);return doc.contains(shadowHost)}(n2))}var EventType=(EventType2=>(EventType2[EventType2.DomContentLoaded=0]="DomContentLoaded",EventType2[EventType2.Load=1]="Load",EventType2[EventType2.FullSnapshot=2]="FullSnapshot",EventType2[EventType2.IncrementalSnapshot=3]="IncrementalSnapshot",EventType2[EventType2.Meta=4]="Meta",EventType2[EventType2.Custom=5]="Custom",EventType2[EventType2.Plugin=6]="Plugin",EventType2))(EventType||{}),IncrementalSource=(IncrementalSource2=>(IncrementalSource2[IncrementalSource2.Mutation=0]="Mutation",IncrementalSource2[IncrementalSource2.MouseMove=1]="MouseMove",IncrementalSource2[IncrementalSource2.MouseInteraction=2]="MouseInteraction",IncrementalSource2[IncrementalSource2.Scroll=3]="Scroll",IncrementalSource2[IncrementalSource2.ViewportResize=4]="ViewportResize",IncrementalSource2[IncrementalSource2.Input=5]="Input",IncrementalSource2[IncrementalSource2.TouchMove=6]="TouchMove",IncrementalSource2[IncrementalSource2.MediaInteraction=7]="MediaInteraction",IncrementalSource2[IncrementalSource2.StyleSheetRule=8]="StyleSheetRule",IncrementalSource2[IncrementalSource2.CanvasMutation=9]="CanvasMutation",IncrementalSource2[IncrementalSource2.Font=10]="Font",IncrementalSource2[IncrementalSource2.Log=11]="Log",IncrementalSource2[IncrementalSource2.Drag=12]="Drag",IncrementalSource2[IncrementalSource2.StyleDeclaration=13]="StyleDeclaration",IncrementalSource2[IncrementalSource2.Selection=14]="Selection",IncrementalSource2[IncrementalSource2.AdoptedStyleSheet=15]="AdoptedStyleSheet",IncrementalSource2[IncrementalSource2.CustomElement=16]="CustomElement",IncrementalSource2))(IncrementalSource||{}),MouseInteractions=(MouseInteractions2=>(MouseInteractions2[MouseInteractions2.MouseUp=0]="MouseUp",MouseInteractions2[MouseInteractions2.MouseDown=1]="MouseDown",MouseInteractions2[MouseInteractions2.Click=2]="Click",MouseInteractions2[MouseInteractions2.ContextMenu=3]="ContextMenu",MouseInteractions2[MouseInteractions2.DblClick=4]="DblClick",MouseInteractions2[MouseInteractions2.Focus=5]="Focus",MouseInteractions2[MouseInteractions2.Blur=6]="Blur",MouseInteractions2[MouseInteractions2.TouchStart=7]="TouchStart",MouseInteractions2[MouseInteractions2.TouchMove_Departed=8]="TouchMove_Departed",MouseInteractions2[MouseInteractions2.TouchEnd=9]="TouchEnd",MouseInteractions2[MouseInteractions2.TouchCancel=10]="TouchCancel",MouseInteractions2))(MouseInteractions||{}),PointerTypes=(PointerTypes2=>(PointerTypes2[PointerTypes2.Mouse=0]="Mouse",PointerTypes2[PointerTypes2.Pen=1]="Pen",PointerTypes2[PointerTypes2.Touch=2]="Touch",PointerTypes2))(PointerTypes||{});function _optionalChain$3(ops){let lastAccessLHS,value=ops[0],i=1;for(;ivalue.call(lastAccessLHS,...args)),lastAccessLHS=void 0)}return value}function isNodeInLinkedList(n2){return"__ln"in n2}class DoubleLinkedList{constructor(){this.length=0,this.head=null,this.tail=null}get(position){if(position>=this.length)throw new Error("Position outside of list range");let current=this.head;for(let index=0;index_.next])||null;return current}addNode(n2){const node2={value:n2,previous:null,next:null};if(n2.__ln=node2,n2.previousSibling&&isNodeInLinkedList(n2.previousSibling)){const current=n2.previousSibling.__ln.next;node2.next=current,node2.previous=n2.previousSibling.__ln,n2.previousSibling.__ln.next=node2,current&&(current.previous=node2)}else if(n2.nextSibling&&isNodeInLinkedList(n2.nextSibling)&&n2.nextSibling.__ln.previous){const current=n2.nextSibling.__ln.previous;node2.previous=current,node2.next=n2.nextSibling.__ln,n2.nextSibling.__ln.previous=node2,current&&(current.next=node2)}else this.head&&(this.head.previous=node2),node2.next=this.head,this.head=node2;null===node2.next&&(this.tail=node2),this.length++}removeNode(n2){const current=n2.__ln;this.head&&(current.previous?(current.previous.next=current.next,current.next?current.next.previous=current.previous:this.tail=current.previous):(this.head=current.next,this.head?this.head.previous=null:this.tail=null),n2.__ln&&delete n2.__ln,this.length--)}}const moveKey=(id,parentId)=>`${id}@${parentId}`;class MutationBuffer{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=mutations=>{mutations.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const adds=[],addedIds=new Set,addList=new DoubleLinkedList,getNextId=n2=>{let ns=n2,nextId2=IGNORED_NODE;for(;nextId2===IGNORED_NODE;)ns=ns&&ns.nextSibling,nextId2=ns&&this.mirror.getId(ns);return nextId2},pushAdd=n2=>{if(!n2.parentNode||!inDom(n2))return;const parentId=isShadowRoot(n2.parentNode)?this.mirror.getId(getShadowHost(n2)):this.mirror.getId(n2.parentNode),nextId2=getNextId(n2);if(-1===parentId||-1===nextId2)return addList.addNode(n2);const sn=serializeNodeWithId(n2,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:currentN=>{isSerializedIframe(currentN,this.mirror)&&this.iframeManager.addIframe(currentN),isSerializedStylesheet(currentN,this.mirror)&&this.stylesheetManager.trackLinkElement(currentN),hasShadowRoot(n2)&&this.shadowDomManager.addShadowRoot(n2.shadowRoot,this.doc)},onIframeLoad:(iframe,childSn)=>{this.iframeManager.attachIframe(iframe,childSn),this.shadowDomManager.observeAttachShadow(iframe)},onStylesheetLoad:(link,childSn)=>{this.stylesheetManager.attachLinkElement(link,childSn)}});sn&&(adds.push({parentId,nextId:nextId2,node:sn}),addedIds.add(sn.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const n2 of this.movedSet)isParentRemoved(this.removes,n2,this.mirror)&&!this.movedSet.has(n2.parentNode)||pushAdd(n2);for(const n2 of this.addedSet)!isAncestorInSet(this.droppedSet,n2)&&!isParentRemoved(this.removes,n2,this.mirror)||isAncestorInSet(this.movedSet,n2)?pushAdd(n2):this.droppedSet.add(n2);let candidate=null;for(;addList.length;){let node2=null;if(candidate){const parentId=this.mirror.getId(candidate.value.parentNode),nextId2=getNextId(candidate.value);-1!==parentId&&-1!==nextId2&&(node2=candidate)}if(!node2){let tailNode=addList.tail;for(;tailNode;){const _node=tailNode;if(tailNode=tailNode.previous,_node){const parentId=this.mirror.getId(_node.value.parentNode);if(-1===getNextId(_node.value))continue;if(-1!==parentId){node2=_node;break}{const unhandledNode=_node.value;if(unhandledNode.parentNode&&unhandledNode.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&-1!==this.mirror.getId(unhandledNode.parentNode.host)){node2=_node;break}}}}}if(!node2){for(;addList.head;)addList.removeNode(addList.head.value);break}candidate=node2.previous,addList.removeNode(node2.value),pushAdd(node2.value)}const payload={texts:this.texts.map(text=>({id:this.mirror.getId(text.node),value:text.value})).filter(text=>!addedIds.has(text.id)).filter(text=>this.mirror.has(text.id)),attributes:this.attributes.map(attribute=>{const{attributes}=attribute;if("string"==typeof attributes.style){const diffAsStr=JSON.stringify(attribute.styleDiff),unchangedAsStr=JSON.stringify(attribute._unchangedStyles);diffAsStr.length!addedIds.has(attribute.id)).filter(attribute=>this.mirror.has(attribute.id)),removes:this.removes,adds};!payload.texts.length&&!payload.attributes.length&&!payload.removes.length&&!payload.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(payload))},this.processMutation=m2=>{if(isIgnored(m2.target,this.mirror))return;let unattachedDoc;try{unattachedDoc=document.implementation.createHTMLDocument()}catch{unattachedDoc=this.doc}switch(m2.type){case"characterData":{const value=m2.target.textContent;!isBlocked(m2.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&value!==m2.oldValue&&this.texts.push({value:needMaskingText(m2.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&value?this.maskTextFn?this.maskTextFn(value):value.replace(/[\S]/g,"*"):value,node:m2.target});break}case"attributes":{const target=m2.target;let attributeName=m2.attributeName,value=m2.target.getAttribute(attributeName);if("value"===attributeName){const type=getInputType(target),tagName=target.tagName;value=getInputValue(target,tagName,type);const isInputMasked=shouldMaskInput({maskInputOptions:this.maskInputOptions,tagName,type});value=maskInputValue({isMasked:needMaskingText(m2.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,isInputMasked),element:target,value,maskInputFn:this.maskInputFn})}if(isBlocked(m2.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||value===m2.oldValue)return;let item=this.attributes.find(a=>a.node===m2.target);if("IFRAME"===target.tagName&&"src"===attributeName&&!this.keepIframeSrcFn(value)){if(target.contentDocument)return;attributeName="rr_src"}if(item||(item={node:m2.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(item)),"type"===attributeName&&"INPUT"===target.tagName&&"password"===(m2.oldValue||"").toLowerCase()&&target.setAttribute("data-rr-is-password","true"),!ignoreAttribute(target.tagName,attributeName)&&(item.attributes[attributeName]=transformAttribute(this.doc,toLowerCase(target.tagName),toLowerCase(attributeName),value,target,this.maskAttributeFn),"style"===attributeName)){const old=unattachedDoc.createElement("span");m2.oldValue&&old.setAttribute("style",m2.oldValue);for(const pname of Array.from(target.style)){const newValue=target.style.getPropertyValue(pname),newPriority=target.style.getPropertyPriority(pname);newValue!==old.style.getPropertyValue(pname)||newPriority!==old.style.getPropertyPriority(pname)?item.styleDiff[pname]=""===newPriority?newValue:[newValue,newPriority]:item._unchangedStyles[pname]=[newValue,newPriority]}for(const pname of Array.from(old.style))""===target.style.getPropertyValue(pname)&&(item.styleDiff[pname]=!1)}break}case"childList":if(isBlocked(m2.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;m2.addedNodes.forEach(n2=>this.genAdds(n2,m2.target)),m2.removedNodes.forEach(n2=>{const nodeId=this.mirror.getId(n2),parentId=isShadowRoot(m2.target)?this.mirror.getId(m2.target.host):this.mirror.getId(m2.target);isBlocked(m2.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||isIgnored(n2,this.mirror)||!function isSerialized(n2,mirror2){return-1!==mirror2.getId(n2)}(n2,this.mirror)||(this.addedSet.has(n2)?(deepDelete(this.addedSet,n2),this.droppedSet.add(n2)):this.addedSet.has(m2.target)&&-1===nodeId||isAncestorRemoved(m2.target,this.mirror)||(this.movedSet.has(n2)&&this.movedMap[moveKey(nodeId,parentId)]?deepDelete(this.movedSet,n2):this.removes.push({parentId,id:nodeId,isShadow:!(!isShadowRoot(m2.target)||!isNativeShadowDom(m2.target))||void 0})),this.mapRemoves.push(n2))})}},this.genAdds=(n2,target)=>{if(!this.processedNodeManager.inOtherBuffer(n2,this)&&!this.addedSet.has(n2)&&!this.movedSet.has(n2)){if(this.mirror.hasNode(n2)){if(isIgnored(n2,this.mirror))return;this.movedSet.add(n2);let targetId=null;target&&this.mirror.hasNode(target)&&(targetId=this.mirror.getId(target)),targetId&&-1!==targetId&&(this.movedMap[moveKey(this.mirror.getId(n2),targetId)]=!0)}else this.addedSet.add(n2),this.droppedSet.delete(n2);isBlocked(n2,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(n2.childNodes.forEach(childN=>this.genAdds(childN)),hasShadowRoot(n2)&&n2.shadowRoot.childNodes.forEach(childN=>{this.processedNodeManager.add(childN,this),this.genAdds(childN,n2)}))}}}init(options){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(key=>{this[key]=options[key]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function deepDelete(addsSet,n2){addsSet.delete(n2),n2.childNodes.forEach(childN=>deepDelete(addsSet,childN))}function isParentRemoved(removes,n2,mirror2){return 0!==removes.length&&_isParentRemoved(removes,n2,mirror2)}function _isParentRemoved(removes,n2,mirror2){const{parentNode}=n2;if(!parentNode)return!1;const parentId=mirror2.getId(parentNode);return!!removes.some(r3=>r3.id===parentId)||_isParentRemoved(removes,parentNode,mirror2)}function isAncestorInSet(set,n2){return 0!==set.size&&_isAncestorInSet(set,n2)}function _isAncestorInSet(set,n2){const{parentNode}=n2;return!!parentNode&&(!!set.has(parentNode)||_isAncestorInSet(set,parentNode))}let esm_errorHandler;const callbackWrapper=cb=>esm_errorHandler?(...rest)=>{try{return cb(...rest)}catch(error){if(esm_errorHandler&&!0===esm_errorHandler(error))return()=>{};throw error}}:cb;function _optionalChain$2(ops){let lastAccessLHS,value=ops[0],i=1;for(;ivalue.call(lastAccessLHS,...args)),lastAccessLHS=void 0)}return value}const mutationBuffers=[];function esm_getEventTarget(event){try{if("composedPath"in event){const path=event.composedPath();if(path.length)return path[0]}else if("path"in event&&event.path.length)return event.path[0]}catch{}return event&&event.target}function initMutationObserver(options,rootEl){const mutationBuffer=new MutationBuffer;mutationBuffers.push(mutationBuffer),mutationBuffer.init(options);let mutationObserverCtor=window.MutationObserver||window.__rrMutationObserver;const angularZoneSymbol=_optionalChain$2([window,"optionalAccess",_=>_.Zone,"optionalAccess",_2=>_2.__symbol__,"optionalCall",_3=>_3("MutationObserver")]);angularZoneSymbol&&window[angularZoneSymbol]&&(mutationObserverCtor=window[angularZoneSymbol]);const observer=new mutationObserverCtor(callbackWrapper(mutations=>{options.onMutation&&!1===options.onMutation(mutations)||mutationBuffer.processMutations.bind(mutationBuffer)(mutations)}));return observer.observe(rootEl,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),observer}function initScrollObserver({scrollCb,doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,sampling}){return on("scroll",callbackWrapper(throttle$1(callbackWrapper(evt=>{const target=esm_getEventTarget(evt);if(!target||isBlocked(target,blockClass,blockSelector,unblockSelector,!0))return;const id=mirror2.getId(target);if(target===doc&&doc.defaultView){const scrollLeftTop=getWindowScroll(doc.defaultView);scrollCb({id,x:scrollLeftTop.left,y:scrollLeftTop.top})}else scrollCb({id,x:target.scrollLeft,y:target.scrollTop})}),sampling.scroll||100)),doc)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({inputCb,doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,ignoreClass,ignoreSelector,maskInputOptions,maskInputFn,sampling,userTriggeredOnInput,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector}){function eventHandler(event){let target=esm_getEventTarget(event);const userTriggered=event.isTrusted,tagName=target&&toUpperCase(target.tagName);if("OPTION"===tagName&&(target=target.parentElement),!target||!tagName||INPUT_TAGS.indexOf(tagName)<0||isBlocked(target,blockClass,blockSelector,unblockSelector,!0))return;const el=target;if(el.classList.contains(ignoreClass)||ignoreSelector&&el.matches(ignoreSelector))return;const type=getInputType(target);let text=getInputValue(el,tagName,type),isChecked=!1;const isInputMasked=shouldMaskInput({maskInputOptions,tagName,type}),forceMask=needMaskingText(target,maskTextClass,maskTextSelector,unmaskTextClass,unmaskTextSelector,isInputMasked);("radio"===type||"checkbox"===type)&&(isChecked=target.checked),text=maskInputValue({isMasked:forceMask,element:target,value:text,maskInputFn}),cbWithDedup(target,userTriggeredOnInput?{text,isChecked,userTriggered}:{text,isChecked});const name=target.name;"radio"===type&&name&&isChecked&&doc.querySelectorAll(`input[type="radio"][name="${name}"]`).forEach(el2=>{if(el2!==target){const text2=maskInputValue({isMasked:forceMask,element:el2,value:getInputValue(el2,tagName,type),maskInputFn});cbWithDedup(el2,userTriggeredOnInput?{text:text2,isChecked:!isChecked,userTriggered:!1}:{text:text2,isChecked:!isChecked})}})}function cbWithDedup(target,v){const lastInputValue=lastInputValueMap.get(target);if(!lastInputValue||lastInputValue.text!==v.text||lastInputValue.isChecked!==v.isChecked){lastInputValueMap.set(target,v);const id=mirror2.getId(target);callbackWrapper(inputCb)({...v,id})}}const handlers2=("last"===sampling.input?["change"]:["input","change"]).map(eventName=>on(eventName,callbackWrapper(eventHandler),doc)),currentWindow=doc.defaultView;if(!currentWindow)return()=>{handlers2.forEach(h=>h())};const propertyDescriptor=currentWindow.Object.getOwnPropertyDescriptor(currentWindow.HTMLInputElement.prototype,"value");return propertyDescriptor&&propertyDescriptor.set&&handlers2.push(...[[currentWindow.HTMLInputElement.prototype,"value"],[currentWindow.HTMLInputElement.prototype,"checked"],[currentWindow.HTMLSelectElement.prototype,"value"],[currentWindow.HTMLTextAreaElement.prototype,"value"],[currentWindow.HTMLSelectElement.prototype,"selectedIndex"],[currentWindow.HTMLOptionElement.prototype,"selected"]].map(p=>hookSetter(p[0],p[1],{set(){callbackWrapper(eventHandler)({target:this,isTrusted:!1})}},!1,currentWindow))),callbackWrapper(()=>{handlers2.forEach(h=>h())})}function getNestedCSSRulePositions(rule){return function recurse(childRule,pos){if(hasNestedCSSRule("CSSGroupingRule")&&childRule.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&childRule.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&childRule.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&childRule.parentRule instanceof CSSConditionRule){const index=Array.from(childRule.parentRule.cssRules).indexOf(childRule);pos.unshift(index)}else if(childRule.parentStyleSheet){const index=Array.from(childRule.parentStyleSheet.cssRules).indexOf(childRule);pos.unshift(index)}return pos}(rule,[])}function getIdAndStyleId(sheet,mirror2,styleMirror){let id,styleId;return sheet?(sheet.ownerNode?id=mirror2.getId(sheet.ownerNode):styleId=styleMirror.getId(sheet),{styleId,id}):{}}function initAdoptedStyleSheetObserver({mirror:mirror2,stylesheetManager},host){let hostId=null;hostId=mirror2.getId("#document"===host.nodeName?host:host.host);const patchTarget=_optionalChain$2("#document"===host.nodeName?[host,"access",_4=>_4.defaultView,"optionalAccess",_5=>_5.Document]:[host,"access",_6=>_6.ownerDocument,"optionalAccess",_7=>_7.defaultView,"optionalAccess",_8=>_8.ShadowRoot]),originalPropertyDescriptor=_optionalChain$2([patchTarget,"optionalAccess",_9=>_9.prototype])?Object.getOwnPropertyDescriptor(_optionalChain$2([patchTarget,"optionalAccess",_10=>_10.prototype]),"adoptedStyleSheets"):void 0;return null!==hostId&&-1!==hostId&&patchTarget&&originalPropertyDescriptor?(Object.defineProperty(host,"adoptedStyleSheets",{configurable:originalPropertyDescriptor.configurable,enumerable:originalPropertyDescriptor.enumerable,get(){return _optionalChain$2([originalPropertyDescriptor,"access",_11=>_11.get,"optionalAccess",_12=>_12.call,"call",_13=>_13(this)])},set(sheets){const result=_optionalChain$2([originalPropertyDescriptor,"access",_14=>_14.set,"optionalAccess",_15=>_15.call,"call",_16=>_16(this,sheets)]);if(null!==hostId&&-1!==hostId)try{stylesheetManager.adoptStyleSheets(sheets,hostId)}catch{}return result}}),callbackWrapper(()=>{Object.defineProperty(host,"adoptedStyleSheets",{configurable:originalPropertyDescriptor.configurable,enumerable:originalPropertyDescriptor.enumerable,get:originalPropertyDescriptor.get,set:originalPropertyDescriptor.set})})):()=>{}}function initObservers(o,_hooks={}){const currentWindow=o.doc.defaultView;if(!currentWindow)return()=>{};const mutationObserver=initMutationObserver(o,o.doc),mousemoveHandler=function initMoveObserver({mousemoveCb,sampling,doc,mirror:mirror2}){if(!1===sampling.mousemove)return()=>{};const threshold="number"==typeof sampling.mousemove?sampling.mousemove:50,callbackThreshold="number"==typeof sampling.mousemoveCallback?sampling.mousemoveCallback:500;let timeBaseline,positions=[];const wrappedCb=throttle$1(callbackWrapper(source=>{const totalOffset=Date.now()-timeBaseline;mousemoveCb(positions.map(p=>(p.timeOffset-=totalOffset,p)),source),positions=[],timeBaseline=null}),callbackThreshold),updatePosition=callbackWrapper(throttle$1(callbackWrapper(evt=>{const target=esm_getEventTarget(evt),{clientX,clientY}=legacy_isTouchEvent(evt)?evt.changedTouches[0]:evt;timeBaseline||(timeBaseline=nowTimestamp()),positions.push({x:clientX,y:clientY,id:mirror2.getId(target),timeOffset:nowTimestamp()-timeBaseline}),wrappedCb(typeof DragEvent<"u"&&evt instanceof DragEvent?IncrementalSource.Drag:evt instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),threshold,{trailing:!1})),handlers2=[on("mousemove",updatePosition,doc),on("touchmove",updatePosition,doc),on("drag",updatePosition,doc)];return callbackWrapper(()=>{handlers2.forEach(h=>h())})}(o),mouseInteractionHandler=function initMouseInteractionObserver({mouseInteractionCb,doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,sampling}){if(!1===sampling.mouseInteraction)return()=>{};const disableMap=!0===sampling.mouseInteraction||void 0===sampling.mouseInteraction?{}:sampling.mouseInteraction,handlers2=[];let currentPointerType=null;return Object.keys(MouseInteractions).filter(key=>Number.isNaN(Number(key))&&!key.endsWith("_Departed")&&!1!==disableMap[key]).forEach(eventKey=>{let eventName=toLowerCase(eventKey);const handler=(eventKey=>event=>{const target=esm_getEventTarget(event);if(isBlocked(target,blockClass,blockSelector,unblockSelector,!0))return;let pointerType=null,thisEventKey=eventKey;if("pointerType"in event){switch(event.pointerType){case"mouse":pointerType=PointerTypes.Mouse;break;case"touch":pointerType=PointerTypes.Touch;break;case"pen":pointerType=PointerTypes.Pen}pointerType===PointerTypes.Touch&&(MouseInteractions[eventKey]===MouseInteractions.MouseDown?thisEventKey="TouchStart":MouseInteractions[eventKey]===MouseInteractions.MouseUp&&(thisEventKey="TouchEnd"))}else legacy_isTouchEvent(event)&&(pointerType=PointerTypes.Touch);null!==pointerType?(currentPointerType=pointerType,(thisEventKey.startsWith("Touch")&&pointerType===PointerTypes.Touch||thisEventKey.startsWith("Mouse")&&pointerType===PointerTypes.Mouse)&&(pointerType=null)):MouseInteractions[eventKey]===MouseInteractions.Click&&(pointerType=currentPointerType,currentPointerType=null);const e2=legacy_isTouchEvent(event)?event.changedTouches[0]:event;if(!e2)return;const id=mirror2.getId(target),{clientX,clientY}=e2;callbackWrapper(mouseInteractionCb)({type:MouseInteractions[thisEventKey],id,x:clientX,y:clientY,...null!==pointerType&&{pointerType}})})(eventKey);if(window.PointerEvent)switch(MouseInteractions[eventKey]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:eventName=eventName.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}handlers2.push(on(eventName,handler,doc))}),callbackWrapper(()=>{handlers2.forEach(h=>h())})}(o),scrollHandler=initScrollObserver(o),viewportResizeHandler=function initViewportResizeObserver({viewportResizeCb},{win}){let lastH=-1,lastW=-1;return on("resize",callbackWrapper(throttle$1(callbackWrapper(()=>{const height=getWindowHeight(),width=getWindowWidth();(lastH!==height||lastW!==width)&&(viewportResizeCb({width:Number(width),height:Number(height)}),lastH=height,lastW=width)}),200)),win)}(o,{win:currentWindow}),inputHandler=initInputObserver(o),mediaInteractionHandler=function initMediaInteractionObserver({mediaInteractionCb,blockClass,blockSelector,unblockSelector,mirror:mirror2,sampling,doc}){const handler=callbackWrapper(type=>throttle$1(callbackWrapper(event=>{const target=esm_getEventTarget(event);if(!target||isBlocked(target,blockClass,blockSelector,unblockSelector,!0))return;const{currentTime,volume,muted,playbackRate}=target;mediaInteractionCb({type,id:mirror2.getId(target),currentTime,volume,muted,playbackRate})}),sampling.media||500)),handlers2=[on("play",handler(0),doc),on("pause",handler(1),doc),on("seeked",handler(2),doc),on("volumechange",handler(3),doc),on("ratechange",handler(4),doc)];return callbackWrapper(()=>{handlers2.forEach(h=>h())})}(o),styleSheetObserver=function initStyleSheetObserver({styleSheetRuleCb,mirror:mirror2,stylesheetManager},{win}){if(!win.CSSStyleSheet||!win.CSSStyleSheet.prototype)return()=>{};const insertRule=win.CSSStyleSheet.prototype.insertRule;win.CSSStyleSheet.prototype.insertRule=new Proxy(insertRule,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[rule,index]=argumentsList,{id,styleId}=getIdAndStyleId(thisArg,mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleSheetRuleCb({id,styleId,adds:[{rule,index}]}),target.apply(thisArg,argumentsList)})});const deleteRule=win.CSSStyleSheet.prototype.deleteRule;let replace,replaceSync;win.CSSStyleSheet.prototype.deleteRule=new Proxy(deleteRule,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[index]=argumentsList,{id,styleId}=getIdAndStyleId(thisArg,mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleSheetRuleCb({id,styleId,removes:[{index}]}),target.apply(thisArg,argumentsList)})}),win.CSSStyleSheet.prototype.replace&&(replace=win.CSSStyleSheet.prototype.replace,win.CSSStyleSheet.prototype.replace=new Proxy(replace,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[text]=argumentsList,{id,styleId}=getIdAndStyleId(thisArg,mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleSheetRuleCb({id,styleId,replace:text}),target.apply(thisArg,argumentsList)})})),win.CSSStyleSheet.prototype.replaceSync&&(replaceSync=win.CSSStyleSheet.prototype.replaceSync,win.CSSStyleSheet.prototype.replaceSync=new Proxy(replaceSync,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[text]=argumentsList,{id,styleId}=getIdAndStyleId(thisArg,mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleSheetRuleCb({id,styleId,replaceSync:text}),target.apply(thisArg,argumentsList)})}));const supportedNestedCSSRuleTypes={};canMonkeyPatchNestedCSSRule("CSSGroupingRule")?supportedNestedCSSRuleTypes.CSSGroupingRule=win.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(supportedNestedCSSRuleTypes.CSSMediaRule=win.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(supportedNestedCSSRuleTypes.CSSConditionRule=win.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(supportedNestedCSSRuleTypes.CSSSupportsRule=win.CSSSupportsRule));const unmodifiedFunctions={};return Object.entries(supportedNestedCSSRuleTypes).forEach(([typeKey,type])=>{unmodifiedFunctions[typeKey]={insertRule:type.prototype.insertRule,deleteRule:type.prototype.deleteRule},type.prototype.insertRule=new Proxy(unmodifiedFunctions[typeKey].insertRule,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[rule,index]=argumentsList,{id,styleId}=getIdAndStyleId(thisArg.parentStyleSheet,mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleSheetRuleCb({id,styleId,adds:[{rule,index:[...getNestedCSSRulePositions(thisArg),index||0]}]}),target.apply(thisArg,argumentsList)})}),type.prototype.deleteRule=new Proxy(unmodifiedFunctions[typeKey].deleteRule,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[index]=argumentsList,{id,styleId}=getIdAndStyleId(thisArg.parentStyleSheet,mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleSheetRuleCb({id,styleId,removes:[{index:[...getNestedCSSRulePositions(thisArg),index]}]}),target.apply(thisArg,argumentsList)})})}),callbackWrapper(()=>{win.CSSStyleSheet.prototype.insertRule=insertRule,win.CSSStyleSheet.prototype.deleteRule=deleteRule,replace&&(win.CSSStyleSheet.prototype.replace=replace),replaceSync&&(win.CSSStyleSheet.prototype.replaceSync=replaceSync),Object.entries(supportedNestedCSSRuleTypes).forEach(([typeKey,type])=>{type.prototype.insertRule=unmodifiedFunctions[typeKey].insertRule,type.prototype.deleteRule=unmodifiedFunctions[typeKey].deleteRule})})}(o,{win:currentWindow}),adoptedStyleSheetObserver=initAdoptedStyleSheetObserver(o,o.doc),styleDeclarationObserver=function initStyleDeclarationObserver({styleDeclarationCb,mirror:mirror2,ignoreCSSAttributes,stylesheetManager},{win}){const setProperty=win.CSSStyleDeclaration.prototype.setProperty;win.CSSStyleDeclaration.prototype.setProperty=new Proxy(setProperty,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[property,value,priority]=argumentsList;if(ignoreCSSAttributes.has(property))return setProperty.apply(thisArg,[property,value,priority]);const{id,styleId}=getIdAndStyleId(_optionalChain$2([thisArg,"access",_17=>_17.parentRule,"optionalAccess",_18=>_18.parentStyleSheet]),mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleDeclarationCb({id,styleId,set:{property,value,priority},index:getNestedCSSRulePositions(thisArg.parentRule)}),target.apply(thisArg,argumentsList)})});const removeProperty=win.CSSStyleDeclaration.prototype.removeProperty;return win.CSSStyleDeclaration.prototype.removeProperty=new Proxy(removeProperty,{apply:callbackWrapper((target,thisArg,argumentsList)=>{const[property]=argumentsList;if(ignoreCSSAttributes.has(property))return removeProperty.apply(thisArg,[property]);const{id,styleId}=getIdAndStyleId(_optionalChain$2([thisArg,"access",_19=>_19.parentRule,"optionalAccess",_20=>_20.parentStyleSheet]),mirror2,stylesheetManager.styleMirror);return(id&&-1!==id||styleId&&-1!==styleId)&&styleDeclarationCb({id,styleId,remove:{property},index:getNestedCSSRulePositions(thisArg.parentRule)}),target.apply(thisArg,argumentsList)})}),callbackWrapper(()=>{win.CSSStyleDeclaration.prototype.setProperty=setProperty,win.CSSStyleDeclaration.prototype.removeProperty=removeProperty})}(o,{win:currentWindow}),fontObserver=o.collectFonts?function initFontObserver({fontCb,doc}){const win=doc.defaultView;if(!win)return()=>{};const handlers2=[],fontMap=new WeakMap,originalFontFace=win.FontFace;win.FontFace=function(family,source,descriptors){const fontFace=new originalFontFace(family,source,descriptors);return fontMap.set(fontFace,{family,buffer:"string"!=typeof source,descriptors,fontSource:"string"==typeof source?source:JSON.stringify(Array.from(new Uint8Array(source)))}),fontFace};const restoreHandler=patch(doc.fonts,"add",function(original){return function(fontFace){return setTimeout(callbackWrapper(()=>{const p=fontMap.get(fontFace);p&&(fontCb(p),fontMap.delete(fontFace))}),0),original.apply(this,[fontFace])}});return handlers2.push(()=>{win.FontFace=originalFontFace}),handlers2.push(restoreHandler),callbackWrapper(()=>{handlers2.forEach(h=>h())})}(o):()=>{},selectionObserver=function initSelectionObserver(param){const{doc,mirror:mirror2,blockClass,blockSelector,unblockSelector,selectionCb}=param;let collapsed=!0;const updateSelection=callbackWrapper(()=>{const selection=doc.getSelection();if(!selection||collapsed&&_optionalChain$2([selection,"optionalAccess",_21=>_21.isCollapsed]))return;collapsed=selection.isCollapsed||!1;const ranges=[],count=selection.rangeCount||0;for(let i=0;i{}}(o),pluginHandlers=[];for(const plugin of o.plugins)pluginHandlers.push(plugin.observer(plugin.callback,currentWindow,plugin.options));return callbackWrapper(()=>{mutationBuffers.forEach(b=>b.reset()),mutationObserver.disconnect(),mousemoveHandler(),mouseInteractionHandler(),scrollHandler(),viewportResizeHandler(),inputHandler(),mediaInteractionHandler(),styleSheetObserver(),adoptedStyleSheetObserver(),styleDeclarationObserver(),fontObserver(),selectionObserver(),customElementObserver(),pluginHandlers.forEach(h=>h())})}function hasNestedCSSRule(prop2){return typeof window[prop2]<"u"}function canMonkeyPatchNestedCSSRule(prop2){return!!(typeof window[prop2]<"u"&&window[prop2].prototype&&"insertRule"in window[prop2].prototype&&"deleteRule"in window[prop2].prototype)}class CrossOriginIframeMirror{constructor(generateIdFn){this.generateIdFn=generateIdFn,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(iframe,remoteId,idToRemoteMap,remoteToIdMap){const idToRemoteIdMap=idToRemoteMap||this.getIdToRemoteIdMap(iframe),remoteIdToIdMap=remoteToIdMap||this.getRemoteIdToIdMap(iframe);let id=idToRemoteIdMap.get(remoteId);return id||(id=this.generateIdFn(),idToRemoteIdMap.set(remoteId,id),remoteIdToIdMap.set(id,remoteId)),id}getIds(iframe,remoteId){const idToRemoteIdMap=this.getIdToRemoteIdMap(iframe),remoteIdToIdMap=this.getRemoteIdToIdMap(iframe);return remoteId.map(id=>this.getId(iframe,id,idToRemoteIdMap,remoteIdToIdMap))}getRemoteId(iframe,id,map2){const remoteIdToIdMap=map2||this.getRemoteIdToIdMap(iframe);return"number"!=typeof id?id:remoteIdToIdMap.get(id)||-1}getRemoteIds(iframe,ids){const remoteIdToIdMap=this.getRemoteIdToIdMap(iframe);return ids.map(id=>this.getRemoteId(iframe,id,remoteIdToIdMap))}reset(iframe){if(!iframe)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(iframe),this.iframeRemoteIdToIdMap.delete(iframe)}getIdToRemoteIdMap(iframe){let idToRemoteIdMap=this.iframeIdToRemoteIdMap.get(iframe);return idToRemoteIdMap||(idToRemoteIdMap=new Map,this.iframeIdToRemoteIdMap.set(iframe,idToRemoteIdMap)),idToRemoteIdMap}getRemoteIdToIdMap(iframe){let remoteIdToIdMap=this.iframeRemoteIdToIdMap.get(iframe);return remoteIdToIdMap||(remoteIdToIdMap=new Map,this.iframeRemoteIdToIdMap.set(iframe,remoteIdToIdMap)),remoteIdToIdMap}}function _optionalChain$1(ops){let lastAccessLHS,value=ops[0],i=1;for(;ivalue.call(lastAccessLHS,...args)),lastAccessLHS=void 0)}return value}class IframeManagerNoop{constructor(){this.crossOriginIframeMirror=new CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class IframeManager{constructor(options){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=options.mutationCb,this.wrappedEmit=options.wrappedEmit,this.stylesheetManager=options.stylesheetManager,this.recordCrossOriginIframes=options.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=options.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(iframeEl){this.iframes.set(iframeEl,!0),iframeEl.contentWindow&&this.crossOriginIframeMap.set(iframeEl.contentWindow,iframeEl)}addLoadListener(cb){this.loadListener=cb}attachIframe(iframeEl,childSn){this.mutationCb({adds:[{parentId:this.mirror.getId(iframeEl),nextId:null,node:childSn}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),_optionalChain$1([this,"access",_=>_.loadListener,"optionalCall",_2=>_2(iframeEl)]),iframeEl.contentDocument&&iframeEl.contentDocument.adoptedStyleSheets&&iframeEl.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(iframeEl.contentDocument.adoptedStyleSheets,this.mirror.getId(iframeEl.contentDocument))}handleMessage(message){const crossOriginMessageEvent=message;if("rrweb"!==crossOriginMessageEvent.data.type||crossOriginMessageEvent.origin!==crossOriginMessageEvent.data.origin||!message.source)return;const iframeEl=this.crossOriginIframeMap.get(message.source);if(!iframeEl)return;const transformedEvent=this.transformCrossOriginEvent(iframeEl,crossOriginMessageEvent.data.event);transformedEvent&&this.wrappedEmit(transformedEvent,crossOriginMessageEvent.data.isCheckout)}transformCrossOriginEvent(iframeEl,e2){switch(e2.type){case EventType.FullSnapshot:{this.crossOriginIframeMirror.reset(iframeEl),this.crossOriginIframeStyleMirror.reset(iframeEl),this.replaceIdOnNode(e2.data.node,iframeEl);const rootId=e2.data.node.id;return this.crossOriginIframeRootIdMap.set(iframeEl,rootId),this.patchRootIdOnNode(e2.data.node,rootId),{timestamp:e2.timestamp,type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(iframeEl),nextId:null,node:e2.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e2;case EventType.Custom:return this.replaceIds(e2.data.payload,iframeEl,["id","parentId","previousId","nextId"]),e2;case EventType.IncrementalSnapshot:switch(e2.data.source){case IncrementalSource.Mutation:return e2.data.adds.forEach(n2=>{this.replaceIds(n2,iframeEl,["parentId","nextId","previousId"]),this.replaceIdOnNode(n2.node,iframeEl);const rootId=this.crossOriginIframeRootIdMap.get(iframeEl);rootId&&this.patchRootIdOnNode(n2.node,rootId)}),e2.data.removes.forEach(n2=>{this.replaceIds(n2,iframeEl,["parentId","id"])}),e2.data.attributes.forEach(n2=>{this.replaceIds(n2,iframeEl,["id"])}),e2.data.texts.forEach(n2=>{this.replaceIds(n2,iframeEl,["id"])}),e2;case IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e2.data.positions.forEach(p=>{this.replaceIds(p,iframeEl,["id"])}),e2;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e2.data,iframeEl,["id"]),e2;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e2.data,iframeEl,["id"]),this.replaceStyleIds(e2.data,iframeEl,["styleId"]),e2;case IncrementalSource.Font:return e2;case IncrementalSource.Selection:return e2.data.ranges.forEach(range2=>{this.replaceIds(range2,iframeEl,["start","end"])}),e2;case IncrementalSource.AdoptedStyleSheet:return this.replaceIds(e2.data,iframeEl,["id"]),this.replaceStyleIds(e2.data,iframeEl,["styleIds"]),_optionalChain$1([e2,"access",_3=>_3.data,"access",_4=>_4.styles,"optionalAccess",_5=>_5.forEach,"call",_6=>_6(style2=>{this.replaceStyleIds(style2,iframeEl,["styleId"])})]),e2}}return!1}replace(iframeMirror,obj,iframeEl,keys){for(const key of keys)!Array.isArray(obj[key])&&"number"!=typeof obj[key]||(obj[key]=Array.isArray(obj[key])?iframeMirror.getIds(iframeEl,obj[key]):iframeMirror.getId(iframeEl,obj[key]));return obj}replaceIds(obj,iframeEl,keys){return this.replace(this.crossOriginIframeMirror,obj,iframeEl,keys)}replaceStyleIds(obj,iframeEl,keys){return this.replace(this.crossOriginIframeStyleMirror,obj,iframeEl,keys)}replaceIdOnNode(node2,iframeEl){this.replaceIds(node2,iframeEl,["id","rootId"]),"childNodes"in node2&&node2.childNodes.forEach(child2=>{this.replaceIdOnNode(child2,iframeEl)})}patchRootIdOnNode(node2,rootId){node2.type!==NodeType$1.Document&&!node2.rootId&&(node2.rootId=rootId),"childNodes"in node2&&node2.childNodes.forEach(child2=>{this.patchRootIdOnNode(child2,rootId)})}}class ShadowDomManagerNoop{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ShadowDomManager{constructor(options){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=options.mutationCb,this.scrollCb=options.scrollCb,this.bypassOptions=options.bypassOptions,this.mirror=options.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(shadowRoot,doc){if(!isNativeShadowDom(shadowRoot)||this.shadowDoms.has(shadowRoot))return;this.shadowDoms.add(shadowRoot);const observer=initMutationObserver({...this.bypassOptions,doc,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},shadowRoot);this.restoreHandlers.push(()=>observer.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:shadowRoot,mirror:this.mirror})),setTimeout(()=>{shadowRoot.adoptedStyleSheets&&shadowRoot.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(shadowRoot.adoptedStyleSheets,this.mirror.getId(shadowRoot.host)),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},shadowRoot))},0)}observeAttachShadow(iframeElement){!iframeElement.contentWindow||!iframeElement.contentDocument||this.patchAttachShadow(iframeElement.contentWindow.Element,iframeElement.contentDocument)}patchAttachShadow(element,doc){const manager=this;this.restoreHandlers.push(patch(element.prototype,"attachShadow",function(original){return function(option){const shadowRoot=original.call(this,option);return this.shadowRoot&&inDom(this)&&manager.addShadowRoot(this.shadowRoot,doc),shadowRoot}}))}reset(){this.restoreHandlers.forEach(handler=>{try{handler()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class CanvasManagerNoop{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class StylesheetManager{constructor(options){this.trackedLinkElements=new WeakSet,this.styleMirror=new StyleSheetMirror,this.mutationCb=options.mutationCb,this.adoptedStyleSheetCb=options.adoptedStyleSheetCb}attachLinkElement(linkEl,childSn){"_cssText"in childSn.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:childSn.id,attributes:childSn.attributes}]}),this.trackLinkElement(linkEl)}trackLinkElement(linkEl){this.trackedLinkElements.has(linkEl)||(this.trackedLinkElements.add(linkEl),this.trackStylesheetInLinkElement(linkEl))}adoptStyleSheets(sheets,hostId){if(0===sheets.length)return;const adoptedStyleSheetData={id:hostId,styleIds:[]},styles=[];for(const sheet of sheets){let styleId;this.styleMirror.has(sheet)?styleId=this.styleMirror.getId(sheet):(styleId=this.styleMirror.add(sheet),styles.push({styleId,rules:Array.from(sheet.rules||CSSRule,(r3,index)=>({rule:stringifyRule(r3),index}))})),adoptedStyleSheetData.styleIds.push(styleId)}styles.length>0&&(adoptedStyleSheetData.styles=styles),this.adoptedStyleSheetCb(adoptedStyleSheetData)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(linkEl){}}class ProcessedNodeManager{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function onRequestAnimationFrame(...rest){return function getRequestAnimationFrameImplementation(){if(cachedRequestAnimationFrameImplementation)return cachedRequestAnimationFrameImplementation;const document2=window.document;let requestAnimationFrameImplementation=window.requestAnimationFrame;if(document2&&"function"==typeof document2.createElement)try{const sandbox=document2.createElement("iframe");sandbox.hidden=!0,document2.head.appendChild(sandbox);const contentWindow=sandbox.contentWindow;contentWindow&&contentWindow.requestAnimationFrame&&(requestAnimationFrameImplementation=contentWindow.requestAnimationFrame),document2.head.removeChild(sandbox)}catch{}return cachedRequestAnimationFrameImplementation=requestAnimationFrameImplementation.bind(window)}()(...rest)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(node2,thisBuffer){const buffers=this.nodeMap.get(node2);return buffers&&Array.from(buffers).some(buffer=>buffer!==thisBuffer)}add(node2,buffer){this.nodeMap.set(node2,(this.nodeMap.get(node2)||new Set).add(buffer))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function wrapEvent(e2){const eWithTime=e2;return eWithTime.timestamp=nowTimestamp(),eWithTime}let _takeFullSnapshot;const mirror=function createMirror(){return new Mirror}();function record(options={}){const{emit,checkoutEveryNms,checkoutEveryNth,blockClass="rr-block",blockSelector=null,unblockSelector=null,ignoreClass="rr-ignore",ignoreSelector=null,maskAllText=!1,maskTextClass="rr-mask",unmaskTextClass=null,maskTextSelector=null,unmaskTextSelector=null,inlineStylesheet=!0,maskAllInputs,maskInputOptions:_maskInputOptions,slimDOMOptions:_slimDOMOptions,maskAttributeFn,maskInputFn,maskTextFn,maxCanvasSize=null,packFn,sampling={},dataURLOptions={},mousemoveWait,recordCanvas=!1,recordCrossOriginIframes=!1,recordAfter="DOMContentLoaded"===options.recordAfter?options.recordAfter:"load",userTriggeredOnInput=!1,collectFonts=!1,inlineImages=!1,plugins,keepIframeSrcFn=()=>!1,ignoreCSSAttributes=new Set([]),errorHandler:errorHandler2,onMutation,getCanvasManager}=options;!function registerErrorHandler(handler){esm_errorHandler=handler}(errorHandler2);const inEmittingFrame=!recordCrossOriginIframes||window.parent===window;let passEmitsToParent=!1;if(!inEmittingFrame)try{window.parent.document&&(passEmitsToParent=!1)}catch{passEmitsToParent=!0}if(inEmittingFrame&&!emit)throw new Error("emit function is required");void 0!==mousemoveWait&&void 0===sampling.mousemove&&(sampling.mousemove=mousemoveWait),mirror.reset();const maskInputOptions=!0===maskAllInputs?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==_maskInputOptions?_maskInputOptions:{},slimDOMOptions=!0===_slimDOMOptions||"all"===_slimDOMOptions?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_slimDOMOptions,headMetaDescKeywords:"all"===_slimDOMOptions}:_slimDOMOptions||{};!function polyfill(win=window){"NodeList"in win&&!win.NodeList.prototype.forEach&&(win.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in win&&!win.DOMTokenList.prototype.forEach&&(win.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...args)=>{let node2=args[0];if(!(0 in args))throw new TypeError("1 argument is required");do{if(this===node2)return!0}while(node2=node2&&node2.parentNode);return!1})}();let lastFullSnapshotEvent,incrementalSnapshotCount=0;const eventProcessor=e2=>{for(const plugin of plugins||[])plugin.eventProcessor&&(e2=plugin.eventProcessor(e2));return packFn&&!passEmitsToParent&&(e2=packFn(e2)),e2},wrappedEmit=(e2,isCheckout)=>{if(_optionalChain([mutationBuffers,"access",_=>_[0],"optionalAccess",_2=>_2.isFrozen,"call",_3=>_3()])&&e2.type!==EventType.FullSnapshot&&!(e2.type===EventType.IncrementalSnapshot&&e2.data.source===IncrementalSource.Mutation)&&mutationBuffers.forEach(buf=>buf.unfreeze()),inEmittingFrame)_optionalChain([emit,"optionalCall",_4=>_4(eventProcessor(e2),isCheckout)]);else if(passEmitsToParent){const message={type:"rrweb",event:eventProcessor(e2),origin:window.location.origin,isCheckout};window.parent.postMessage(message,"*")}if(e2.type===EventType.FullSnapshot)lastFullSnapshotEvent=e2,incrementalSnapshotCount=0;else if(e2.type===EventType.IncrementalSnapshot){if(e2.data.source===IncrementalSource.Mutation&&e2.data.isAttachIframe)return;incrementalSnapshotCount++,(checkoutEveryNth&&incrementalSnapshotCount>=checkoutEveryNth||checkoutEveryNms&&lastFullSnapshotEvent&&e2.timestamp-lastFullSnapshotEvent.timestamp>checkoutEveryNms)&&takeFullSnapshot2(!0)}},wrappedMutationEmit=m2=>{wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...m2}}))},wrappedScrollEmit=p=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...p}})),wrappedCanvasMutationEmit=p=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...p}})),stylesheetManager=new StylesheetManager({mutationCb:wrappedMutationEmit,adoptedStyleSheetCb:a=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...a}}))}),iframeManager="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new IframeManagerNoop:new IframeManager({mirror,mutationCb:wrappedMutationEmit,stylesheetManager,recordCrossOriginIframes,wrappedEmit});for(const plugin of plugins||[])plugin.getMirror&&plugin.getMirror({nodeMirror:mirror,crossOriginIframeMirror:iframeManager.crossOriginIframeMirror,crossOriginIframeStyleMirror:iframeManager.crossOriginIframeStyleMirror});const processedNodeManager=new ProcessedNodeManager,canvasManager=function _getCanvasManager(getCanvasManagerFn,options){try{return getCanvasManagerFn?getCanvasManagerFn(options):new CanvasManagerNoop}catch{return console.warn("Unable to initialize CanvasManager"),new CanvasManagerNoop}}(getCanvasManager,{mirror,win:window,mutationCb:p=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...p}})),recordCanvas,blockClass,blockSelector,unblockSelector,maxCanvasSize,sampling:sampling.canvas,dataURLOptions,errorHandler:errorHandler2}),shadowDomManager="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ShadowDomManagerNoop:new ShadowDomManager({mutationCb:wrappedMutationEmit,scrollCb:wrappedScrollEmit,bypassOptions:{onMutation,blockClass,blockSelector,unblockSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,inlineStylesheet,maskInputOptions,dataURLOptions,maskAttributeFn,maskTextFn,maskInputFn,recordCanvas,inlineImages,sampling,slimDOMOptions,iframeManager,stylesheetManager,canvasManager,keepIframeSrcFn,processedNodeManager},mirror}),takeFullSnapshot2=(isCheckout=!1)=>{wrappedEmit(wrapEvent({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}}),isCheckout),stylesheetManager.reset(),shadowDomManager.init(),mutationBuffers.forEach(buf=>buf.lock());const node2=function snapshot(n2,options){const{mirror:mirror2=new Mirror,blockClass="rr-block",blockSelector=null,unblockSelector=null,maskAllText=!1,maskTextClass="rr-mask",unmaskTextClass=null,maskTextSelector=null,unmaskTextSelector=null,inlineStylesheet=!0,inlineImages=!1,recordCanvas=!1,maskAllInputs=!1,maskAttributeFn,maskTextFn,maskInputFn,slimDOM=!1,dataURLOptions,preserveWhiteSpace,onSerialize,onIframeLoad,iframeLoadTimeout,onStylesheetLoad,stylesheetLoadTimeout,keepIframeSrcFn=()=>!1}=options||{};return serializeNodeWithId(n2,{doc:n2,mirror:mirror2,blockClass,blockSelector,unblockSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,skipChild:!1,inlineStylesheet,maskInputOptions:!0===maskAllInputs?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===maskAllInputs?{}:maskAllInputs,maskAttributeFn,maskTextFn,maskInputFn,slimDOMOptions:!0===slimDOM||"all"===slimDOM?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===slimDOM,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===slimDOM?{}:slimDOM,dataURLOptions,inlineImages,recordCanvas,preserveWhiteSpace,onSerialize,onIframeLoad,iframeLoadTimeout,onStylesheetLoad,stylesheetLoadTimeout,keepIframeSrcFn,newlyAddedElement:!1})}(document,{mirror,blockClass,blockSelector,unblockSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,inlineStylesheet,maskAllInputs:maskInputOptions,maskAttributeFn,maskInputFn,maskTextFn,slimDOM:slimDOMOptions,dataURLOptions,recordCanvas,inlineImages,onSerialize:n2=>{isSerializedIframe(n2,mirror)&&iframeManager.addIframe(n2),isSerializedStylesheet(n2,mirror)&&stylesheetManager.trackLinkElement(n2),hasShadowRoot(n2)&&shadowDomManager.addShadowRoot(n2.shadowRoot,document)},onIframeLoad:(iframe,childSn)=>{iframeManager.attachIframe(iframe,childSn),shadowDomManager.observeAttachShadow(iframe)},onStylesheetLoad:(linkEl,childSn)=>{stylesheetManager.attachLinkElement(linkEl,childSn)},keepIframeSrcFn});if(!node2)return console.warn("Failed to snapshot the document");wrappedEmit(wrapEvent({type:EventType.FullSnapshot,data:{node:node2,initialOffset:getWindowScroll(window)}})),mutationBuffers.forEach(buf=>buf.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&stylesheetManager.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))};_takeFullSnapshot=takeFullSnapshot2;try{const handlers2=[],observe2=doc=>callbackWrapper(initObservers)({onMutation,mutationCb:wrappedMutationEmit,mousemoveCb:(positions,source)=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source,positions}})),mouseInteractionCb:d=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...d}})),scrollCb:wrappedScrollEmit,viewportResizeCb:d=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...d}})),inputCb:v=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...v}})),mediaInteractionCb:p=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...p}})),styleSheetRuleCb:r3=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...r3}})),styleDeclarationCb:r3=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...r3}})),canvasMutationCb:wrappedCanvasMutationEmit,fontCb:p=>wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...p}})),selectionCb:p=>{wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...p}}))},customElementCb:c=>{wrappedEmit(wrapEvent({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...c}}))},blockClass,ignoreClass,ignoreSelector,maskAllText,maskTextClass,unmaskTextClass,maskTextSelector,unmaskTextSelector,maskInputOptions,inlineStylesheet,sampling,recordCanvas,inlineImages,userTriggeredOnInput,collectFonts,doc,maskAttributeFn,maskInputFn,maskTextFn,keepIframeSrcFn,blockSelector,unblockSelector,slimDOMOptions,dataURLOptions,mirror,iframeManager,stylesheetManager,shadowDomManager,processedNodeManager,canvasManager,ignoreCSSAttributes,plugins:_optionalChain([plugins,"optionalAccess",_5=>_5.filter,"call",_6=>_6(p=>p.observer),"optionalAccess",_7=>_7.map,"call",_8=>_8(p=>({observer:p.observer,options:p.options,callback:payload=>wrappedEmit(wrapEvent({type:EventType.Plugin,data:{plugin:p.name,payload}}))}))])||[]},{});iframeManager.addLoadListener(iframeEl=>{try{handlers2.push(observe2(iframeEl.contentDocument))}catch(error){console.warn(error)}});const init2=()=>{takeFullSnapshot2(),handlers2.push(observe2(document))};return"interactive"===document.readyState||"complete"===document.readyState?init2():(handlers2.push(on("DOMContentLoaded",()=>{wrappedEmit(wrapEvent({type:EventType.DomContentLoaded,data:{}})),"DOMContentLoaded"===recordAfter&&init2()})),handlers2.push(on("load",()=>{wrappedEmit(wrapEvent({type:EventType.Load,data:{}})),"load"===recordAfter&&init2()},window))),()=>{handlers2.forEach(h=>h()),processedNodeManager.destroy(),_takeFullSnapshot=void 0,function unregisterErrorHandler(){esm_errorHandler=void 0}()}}catch(error){console.warn(error)}}record.mirror=mirror,record.takeFullSnapshot=function takeFullSnapshot(isCheckout){if(!_takeFullSnapshot)throw new Error("please take full snapshot after start recording");_takeFullSnapshot(isCheckout)};const ReplayEventTypeIncrementalSnapshot=3;function timestampToMs(timestamp){return timestamp>9999999999?timestamp:1e3*timestamp}function timestampToS(timestamp){return timestamp>9999999999?timestamp/1e3:timestamp}function addBreadcrumbEvent(replay,breadcrumb){"sentry.transaction"!==breadcrumb.category&&(["ui.click","ui.input"].includes(breadcrumb.category)?replay.triggerUserActivity():replay.checkAndHandleExpiredSession(),replay.addUpdate(()=>(replay.throttledAddEvent({type:EventType.Custom,timestamp:1e3*(breadcrumb.timestamp||0),data:{tag:"breadcrumb",payload:normalize(breadcrumb,10,1e3)}}),"console"===breadcrumb.category)))}const INTERACTIVE_SELECTOR="button,a";function getClosestInteractive(element){return element.closest(INTERACTIVE_SELECTOR)||element}function getClickTargetNode(event){const target=getTargetNode(event);return target&&target instanceof Element?getClosestInteractive(target):target}function getTargetNode(event){return function isEventWithTarget(event){return"object"==typeof event&&!!event&&"target"in event}(event)?event.target:event}let esm_handlers;class ClickDetector{constructor(replay,slowClickConfig,_addBreadcrumbEvent=addBreadcrumbEvent){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=slowClickConfig.timeout/1e3,this._threshold=slowClickConfig.threshold/1e3,this._scollTimeout=slowClickConfig.scrollTimeout/1e3,this._replay=replay,this._ignoreSelector=slowClickConfig.ignoreSelector,this._addBreadcrumbEvent=_addBreadcrumbEvent}addListeners(){const cleanupWindowOpen=function onWindowOpen(cb){return esm_handlers||(esm_handlers=[],function monkeyPatchWindowOpen(){fill(esm_WINDOW,"open",function(originalWindowOpen){return function(...args){if(esm_handlers)try{esm_handlers.forEach(handler=>handler())}catch{}return originalWindowOpen.apply(esm_WINDOW,args)}})}()),esm_handlers.push(cb),()=>{const pos=esm_handlers?esm_handlers.indexOf(cb):-1;pos>-1&&esm_handlers.splice(pos,1)}}(()=>{this._lastMutation=nowInSeconds()});this._teardown=()=>{cleanupWindowOpen(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(breadcrumb,node2){if(function ignoreElement(node2,ignoreSelector){return!!(!SLOW_CLICK_TAGS.includes(node2.tagName)||"INPUT"===node2.tagName&&!["submit","button"].includes(node2.getAttribute("type")||"")||"A"===node2.tagName&&(node2.hasAttribute("download")||node2.hasAttribute("target")&&"_self"!==node2.getAttribute("target"))||ignoreSelector&&node2.matches(ignoreSelector))}(node2,this._ignoreSelector)||!function isClickBreadcrumb(breadcrumb){return!(!breadcrumb.data||"number"!=typeof breadcrumb.data.nodeId||!breadcrumb.timestamp)}(breadcrumb))return;const newClick={timestamp:timestampToS(breadcrumb.timestamp),clickBreadcrumb:breadcrumb,clickCount:0,node:node2};this._clicks.some(click=>click.node===newClick.node&&Math.abs(click.timestamp-newClick.timestamp)<1)||(this._clicks.push(newClick),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(timestamp=Date.now()){this._lastMutation=timestampToS(timestamp)}registerScroll(timestamp=Date.now()){this._lastScroll=timestampToS(timestamp)}registerClick(element){const node2=getClosestInteractive(element);this._handleMultiClick(node2)}_handleMultiClick(node2){this._getClicks(node2).forEach(click=>{click.clickCount++})}_getClicks(node2){return this._clicks.filter(click=>click.node===node2)}_checkClicks(){const timedOutClicks=[],now=nowInSeconds();this._clicks.forEach(click=>{!click.mutationAfter&&this._lastMutation&&(click.mutationAfter=click.timestamp<=this._lastMutation?this._lastMutation-click.timestamp:void 0),!click.scrollAfter&&this._lastScroll&&(click.scrollAfter=click.timestamp<=this._lastScroll?this._lastScroll-click.timestamp:void 0),click.timestamp+this._timeout<=now&&timedOutClicks.push(click)});for(const click of timedOutClicks){const pos=this._clicks.indexOf(click);pos>-1&&(this._generateBreadcrumbs(click),this._clicks.splice(pos,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(click){const replay=this._replay,isSlowClick=!(click.scrollAfter&&click.scrollAfter<=this._scollTimeout||click.mutationAfter&&click.mutationAfter<=this._threshold),{clickCount,clickBreadcrumb}=click;if(isSlowClick){const timeAfterClickMs=1e3*Math.min(click.mutationAfter||this._timeout,this._timeout),endReason=timeAfterClickMs<1e3*this._timeout?"mutation":"timeout",breadcrumb={type:"default",message:clickBreadcrumb.message,timestamp:clickBreadcrumb.timestamp,category:"ui.slowClickDetected",data:{...clickBreadcrumb.data,url:esm_WINDOW.location.href,route:replay.getCurrentRoute(),timeAfterClickMs,endReason,clickCount:clickCount||1}};this._addBreadcrumbEvent(replay,breadcrumb)}else if(clickCount>1){const breadcrumb={type:"default",message:clickBreadcrumb.message,timestamp:clickBreadcrumb.timestamp,category:"ui.multiClick",data:{...clickBreadcrumb.data,url:esm_WINDOW.location.href,route:replay.getCurrentRoute(),clickCount,metric:!0}};this._addBreadcrumbEvent(replay,breadcrumb)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const SLOW_CLICK_TAGS=["A","BUTTON","INPUT"];function nowInSeconds(){return Date.now()/1e3}function createBreadcrumb(breadcrumb){return{timestamp:Date.now()/1e3,type:"default",...breadcrumb}}var NodeType=function(NodeType2){return NodeType2[NodeType2.Document=0]="Document",NodeType2[NodeType2.DocumentType=1]="DocumentType",NodeType2[NodeType2.Element=2]="Element",NodeType2[NodeType2.Text=3]="Text",NodeType2[NodeType2.CDATA=4]="CDATA",NodeType2[NodeType2.Comment=5]="Comment",NodeType2}(NodeType||{});const ATTRIBUTES_TO_RECORD=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function getAttributesToRecord(attributes){const obj={};for(const key in attributes)if(ATTRIBUTES_TO_RECORD.has(key)){let normalizedKey=key;("data-testid"===key||"data-test-id"===key)&&(normalizedKey="testId"),obj[normalizedKey]=attributes[key]}return obj}function getBaseDomBreadcrumb(target,message){const nodeId=record.mirror.getId(target),node2=nodeId&&record.mirror.getNode(nodeId),meta=node2&&record.mirror.getMeta(node2),element=meta&&function esm_isElement(node2){return node2.type===NodeType.Element}(meta)?meta:null;return{message,data:element?{nodeId,node:{id:nodeId,tagName:element.tagName,textContent:Array.from(element.childNodes).map(node3=>node3.type===NodeType.Text&&node3.textContent).filter(Boolean).map(text=>text.trim()).join(""),attributes:getAttributesToRecord(element.attributes)}}:{}}}const ENTRY_TYPES={resource:function createResourceEntry(entry){const{entryType,initiatorType,name,responseEnd,startTime,decodedBodySize,encodedBodySize,responseStatus,transferSize}=entry;return["fetch","xmlhttprequest"].includes(initiatorType)?null:{type:`${entryType}.${initiatorType}`,start:esm_getAbsoluteTime(startTime),end:esm_getAbsoluteTime(responseEnd),name,data:{size:transferSize,statusCode:responseStatus,decodedBodySize,encodedBodySize}}},paint:function createPaintEntry(entry){const{duration,entryType,name,startTime}=entry,start2=esm_getAbsoluteTime(startTime);return{type:entryType,name,start:start2,end:start2+duration,data:void 0}},navigation:function createNavigationEntry(entry){const{entryType,name,decodedBodySize,duration,domComplete,encodedBodySize,domContentLoadedEventStart,domContentLoadedEventEnd,domInteractive,loadEventStart,loadEventEnd,redirectCount,startTime,transferSize,type}=entry;return 0===duration?null:{type:`${entryType}.${type}`,start:esm_getAbsoluteTime(startTime),end:esm_getAbsoluteTime(domComplete),name,data:{size:transferSize,decodedBodySize,encodedBodySize,duration,domInteractive,domContentLoadedEventStart,domContentLoadedEventEnd,loadEventStart,loadEventEnd,domComplete,redirectCount}}}};function createPerformanceEntry(entry){return ENTRY_TYPES[entry.entryType]?ENTRY_TYPES[entry.entryType](entry):null}function esm_getAbsoluteTime(time){return((browserPerformanceTimeOrigin||esm_WINDOW.performance.timeOrigin)+time)/1e3}const esm_DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function logInfo(message,shouldAddBreadcrumb){esm_DEBUG_BUILD&&(logger_logger.info(message),shouldAddBreadcrumb&&addLogBreadcrumb(message))}function logInfoNextTick(message,shouldAddBreadcrumb){esm_DEBUG_BUILD&&(logger_logger.info(message),shouldAddBreadcrumb&&setTimeout(()=>{addLogBreadcrumb(message)},0))}function addLogBreadcrumb(message){addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message},{level:"info"})}class EventBufferSizeExceededError extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class EventBufferArray{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(event){var _this=this;return asyncToGenerator_asyncToGenerator(function*(){const eventSize=JSON.stringify(event).length;if(_this._totalSize+=eventSize,_this._totalSize>2e7)throw new EventBufferSizeExceededError;_this.events.push(event)})()}finish(){return new Promise(resolve=>{const eventsRet=this.events;this.clear(),resolve(JSON.stringify(eventsRet))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const timestamp=this.events.map(event=>event.timestamp).sort()[0];return timestamp?timestampToMs(timestamp):null}}class WorkerHandler{constructor(worker){this._worker=worker,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((resolve,reject)=>{this._worker.addEventListener("message",({data})=>{data.success?resolve():reject()},{once:!0}),this._worker.addEventListener("error",error=>{reject(error)},{once:!0})})),this._ensureReadyPromise}destroy(){logInfo("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(method,arg){const id=this._getAndIncrementId();return new Promise((resolve,reject)=>{const listener=({data})=>{const response=data;if(response.method===method&&response.id===id){if(this._worker.removeEventListener("message",listener),!response.success)return esm_DEBUG_BUILD&&logger_logger.error("[Replay]",response.response),void reject(new Error("Error in compression worker"));resolve(response.response)}};this._worker.addEventListener("message",listener),this._worker.postMessage({id,method,arg})})}_getAndIncrementId(){return this._id++}}class EventBufferCompressionWorker{constructor(worker){this._worker=new WorkerHandler(worker),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(event){const timestamp=timestampToMs(event.timestamp);(!this._earliestTimestamp||timestamp2e7?Promise.reject(new EventBufferSizeExceededError):this._sendEventToWorker(data)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e2=>{esm_DEBUG_BUILD&&logger_logger.warn('[Replay] Sending "clear" message to worker failed',e2)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(data){return this._worker.postMessage("addEvent",data)}_finishRequest(){var _this2=this;return asyncToGenerator_asyncToGenerator(function*(){const response=yield _this2._worker.postMessage("finish");return _this2._earliestTimestamp=null,_this2._totalSize=0,response})()}}class EventBufferProxy{constructor(worker){this._fallback=new EventBufferArray,this._compression=new EventBufferCompressionWorker(worker),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(value){this._used.hasCheckout=value}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(event){return this._used.addEvent(event)}finish(){var _this3=this;return asyncToGenerator_asyncToGenerator(function*(){return yield _this3.ensureWorkerIsLoaded(),_this3._used.finish()})()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){var _this4=this;return asyncToGenerator_asyncToGenerator(function*(){try{yield _this4._compression.ensureReady()}catch{return void logInfo("[Replay] Failed to load the compression worker, falling back to simple buffer")}yield _this4._switchToCompressionWorker()})()}_switchToCompressionWorker(){var _this5=this;return asyncToGenerator_asyncToGenerator(function*(){const{events,hasCheckout}=_this5._fallback,addEventPromises=[];for(const event of events)addEventPromises.push(_this5._compression.addEvent(event));_this5._compression.hasCheckout=hasCheckout,_this5._used=_this5._compression;try{yield Promise.all(addEventPromises)}catch(error){esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to add events when switching buffers.",error)}})()}}function hasSessionStorage(){try{return"sessionStorage"in esm_WINDOW&&!!esm_WINDOW.sessionStorage}catch{return!1}}function isSampled(sampleRate){return void 0!==sampleRate&&Math.random()replay.getContext().initialTimestamp+replay.getOptions().maxReplayDuration&&(logInfo(`[Replay] Skipping event with timestamp ${timestampInMs} because it is after maxReplayDuration`,replay.getOptions()._experiments.traceInternals),1))}function esm_isErrorEvent(event){return!event.type}function esm_isTransactionEvent(event){return"transaction"===event.type}function isFeedbackEvent(event){return"feedback"===event.type}function handleAfterSendEvent(replay){const enforceStatusCode=function isBaseTransportSend(){const client=exports_getClient();if(!client)return!1;const transport=client.getTransport();return transport&&transport.send.__sentry__baseTransport__||!1}();return(event,sendResponse)=>{if(!replay.isEnabled()||!esm_isErrorEvent(event)&&!esm_isTransactionEvent(event))return;const statusCode=sendResponse&&sendResponse.statusCode;if(!enforceStatusCode||!(!statusCode||statusCode<200||statusCode>=300)){if(esm_isTransactionEvent(event))return void function handleTransactionEvent(replay,event){const replayContext=replay.getContext();event.contexts&&event.contexts.trace&&event.contexts.trace.trace_id&&replayContext.traceIds.size<100&&replayContext.traceIds.add(event.contexts.trace.trace_id)}(replay,event);!function handleErrorEvent(replay,event){const replayContext=replay.getContext();if(event.event_id&&replayContext.errorIds.size<100&&replayContext.errorIds.add(event.event_id),"buffer"!==replay.recordingMode||!event.tags||!event.tags.replayId)return;const{beforeErrorSampling}=replay.getOptions();"function"==typeof beforeErrorSampling&&!beforeErrorSampling(event)||setTimeout(()=>{replay.sendBufferedReplayOrFlush()})}(replay,event)}}}function createPerformanceSpans(replay,entries){return entries.map(({type,start:start2,end,name,data})=>{const response=replay.throttledAddEvent({type:EventType.Custom,timestamp:start2,data:{tag:"performanceSpan",payload:{op:type,description:name,startTimestamp:start2,endTimestamp:end,data}}});return"string"==typeof response?Promise.resolve(null):response})}function addNetworkBreadcrumb(replay,result){replay.isEnabled()&&null!==result&&(function shouldFilterRequest(replay,url){return(!esm_DEBUG_BUILD||!replay.getOptions()._experiments.traceInternals)&&function isSentryRequestUrl(url,hubOrClient){const client=hubOrClient&&function isHub(hubOrClient){return void 0!==hubOrClient.getClient}(hubOrClient)?hubOrClient.getClient():hubOrClient,dsn=client&&client.getDsn(),tunnel=client&&client.getOptions().tunnel;return function checkDsn(url,dsn){return!!dsn&&url.includes(dsn.host)}(url,dsn)||function checkTunnel(url,tunnel){return!!tunnel&&removeTrailingSlash(url)===removeTrailingSlash(tunnel)}(url,tunnel)}(url,exports_getClient())}(replay,result.name)||replay.addUpdate(()=>(createPerformanceSpans(replay,[result]),!0)))}function getBodySize(body,textEncoder){if(body)try{if("string"==typeof body)return textEncoder.encode(body).length;if(body instanceof URLSearchParams)return textEncoder.encode(body.toString()).length;if(body instanceof FormData){const formDataStr=_serializeFormData(body);return textEncoder.encode(formDataStr).length}if(body instanceof Blob)return body.size;if(body instanceof ArrayBuffer)return body.byteLength}catch{}}function parseContentLengthHeader(header){if(!header)return;const size=parseInt(header,10);return isNaN(size)?void 0:size}function getBodyString(body){try{if("string"==typeof body)return[body];if(body instanceof URLSearchParams)return[body.toString()];if(body instanceof FormData)return[_serializeFormData(body)];if(!body)return[void 0]}catch{return esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to serialize body",body),[void 0,"BODY_PARSE_ERROR"]}return esm_DEBUG_BUILD&&logger_logger.info("[Replay] Skipping network body because of body type",body),[void 0,"UNPARSEABLE_BODY_TYPE"]}function mergeWarning(info,warning){if(!info)return{headers:{},size:void 0,_meta:{warnings:[warning]}};const newMeta={...info._meta};return newMeta.warnings=[...newMeta.warnings||[],warning],info._meta=newMeta,info}function makeNetworkReplayBreadcrumb(type,data){if(!data)return null;const{startTimestamp,endTimestamp,url,method,statusCode,request,response}=data;return{type,start:startTimestamp/1e3,end:endTimestamp/1e3,name:url,data:object_dropUndefinedKeys({method,statusCode,request,response})}}function buildSkippedNetworkRequestOrResponse(bodySize){return{headers:{},size:bodySize,_meta:{warnings:["URL_SKIPPED"]}}}function buildNetworkRequestOrResponse(headers,bodySize,body){if(!bodySize&&0===Object.keys(headers).length)return;if(!bodySize)return{headers};if(!body)return{headers,size:bodySize};const info={headers,size:bodySize},{body:normalizedBody,warnings}=function normalizeNetworkBody(body){if(!body||"string"!=typeof body)return{body};const exceedsSizeLimit=body.length>NETWORK_BODY_MAX_SIZE,isProbablyJson=function _strIsProbablyJson(str){const first2=str[0],last2=str[str.length-1];return"["===first2&&"]"===last2||"{"===first2&&"}"===last2}(body);if(exceedsSizeLimit){const truncatedBody=body.slice(0,NETWORK_BODY_MAX_SIZE);return isProbablyJson?{body:truncatedBody,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${truncatedBody}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(isProbablyJson)try{return{body:JSON.parse(body)}}catch{}return{body}}(body);return info.body=normalizedBody,warnings&&warnings.length>0&&(info._meta={warnings}),info}function getAllowedHeaders(headers,allowedHeaders){return Object.keys(headers).reduce((filteredHeaders,key)=>{const normalizedKey=key.toLowerCase();return allowedHeaders.includes(normalizedKey)&&headers[key]&&(filteredHeaders[normalizedKey]=headers[key]),filteredHeaders},{})}function _serializeFormData(formData){return new URLSearchParams(formData).toString()}function urlMatches(url,urls){const fullUrl=function getFullUrl(url,baseURI=esm_WINDOW.document.baseURI){if(url.startsWith("http://")||url.startsWith("https://")||url.startsWith(esm_WINDOW.location.origin))return url;const fixedUrl=new URL(url,baseURI);if(fixedUrl.origin!==new URL(baseURI).origin)return url;const fullUrl=fixedUrl.href;return!url.endsWith("/")&&fullUrl.endsWith("/")?fullUrl.slice(0,-1):fullUrl}(url);return stringMatchesSomePattern(fullUrl,urls)}function _captureFetchBreadcrumbToReplay(){return _captureFetchBreadcrumbToReplay=asyncToGenerator_asyncToGenerator(function*(breadcrumb,hint,options){try{const data=yield function _prepareFetchData(_x7,_x8,_x9){return _prepareFetchData2.apply(this,arguments)}(breadcrumb,hint,options),result=makeNetworkReplayBreadcrumb("resource.fetch",data);addNetworkBreadcrumb(options.replay,result)}catch(error){esm_DEBUG_BUILD&&logger_logger.error("[Replay] Failed to capture fetch breadcrumb",error)}}),_captureFetchBreadcrumbToReplay.apply(this,arguments)}function _prepareFetchData2(){return _prepareFetchData2=asyncToGenerator_asyncToGenerator(function*(breadcrumb,hint,options){const now=Date.now(),{startTimestamp=now,endTimestamp=now}=hint,{url,method,status_code:statusCode=0,request_body_size:requestBodySize,response_body_size:responseBodySize}=breadcrumb.data,captureDetails=urlMatches(url,options.networkDetailAllowUrls)&&!urlMatches(url,options.networkDetailDenyUrls),request=captureDetails?function _getRequestInfo({networkCaptureBodies,networkRequestHeaders},input2,requestBodySize){const headers=input2?function getRequestHeaders(fetchArgs,allowedHeaders){return 1===fetchArgs.length&&"string"!=typeof fetchArgs[0]?getHeadersFromOptions(fetchArgs[0],allowedHeaders):2===fetchArgs.length?getHeadersFromOptions(fetchArgs[1],allowedHeaders):{}}(input2,networkRequestHeaders):{};if(!networkCaptureBodies)return buildNetworkRequestOrResponse(headers,requestBodySize,void 0);const requestBody=_getFetchRequestArgBody(input2),[bodyStr,warning]=getBodyString(requestBody),data=buildNetworkRequestOrResponse(headers,requestBodySize,bodyStr);return warning?mergeWarning(data,warning):data}(options,hint.input,requestBodySize):buildSkippedNetworkRequestOrResponse(requestBodySize),response=yield function _getResponseInfo(_x10,_x11,_x12,_x13){return _getResponseInfo2.apply(this,arguments)}(captureDetails,options,hint.response,responseBodySize);return{startTimestamp,endTimestamp,url,method,statusCode,request,response}}),_prepareFetchData2.apply(this,arguments)}function _getResponseInfo2(){return _getResponseInfo2=asyncToGenerator_asyncToGenerator(function*(captureDetails,{networkCaptureBodies,textEncoder,networkResponseHeaders},response,responseBodySize){if(!captureDetails&&void 0!==responseBodySize)return buildSkippedNetworkRequestOrResponse(responseBodySize);const headers=response?getAllHeaders(response.headers,networkResponseHeaders):{};if(!response||!networkCaptureBodies&&void 0!==responseBodySize)return buildNetworkRequestOrResponse(headers,responseBodySize,void 0);const[bodyText,warning]=yield function _parseFetchResponseBody(_x14){return _parseFetchResponseBody2.apply(this,arguments)}(response),result=function getResponseData(bodyText,{networkCaptureBodies,textEncoder,responseBodySize,captureDetails,headers}){try{const size=bodyText&&bodyText.length&&void 0===responseBodySize?getBodySize(bodyText,textEncoder):responseBodySize;return captureDetails?buildNetworkRequestOrResponse(headers,size,networkCaptureBodies?bodyText:void 0):buildSkippedNetworkRequestOrResponse(size)}catch(error){return esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to serialize response body",error),buildNetworkRequestOrResponse(headers,responseBodySize,void 0)}}(bodyText,{networkCaptureBodies,textEncoder,responseBodySize,captureDetails,headers});return warning?mergeWarning(result,warning):result}),_getResponseInfo2.apply(this,arguments)}function _parseFetchResponseBody2(){return(_parseFetchResponseBody2=asyncToGenerator_asyncToGenerator(function*(response){const res=function _tryCloneResponse(response){try{return response.clone()}catch(error){esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to clone response body",error)}}(response);if(!res)return[void 0,"BODY_PARSE_ERROR"];try{return[yield _tryGetResponseText(res)]}catch(error){return esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to get text body from response",error),[void 0,"BODY_PARSE_ERROR"]}})).apply(this,arguments)}function _getFetchRequestArgBody(fetchArgs=[]){if(2===fetchArgs.length&&"object"==typeof fetchArgs[1])return fetchArgs[1].body}function getAllHeaders(headers,allowedHeaders){const allHeaders={};return allowedHeaders.forEach(header=>{headers.get(header)&&(allHeaders[header]=headers.get(header))}),allHeaders}function getHeadersFromOptions(input2,allowedHeaders){if(!input2)return{};const headers=input2.headers;return headers?headers instanceof Headers?getAllHeaders(headers,allowedHeaders):Array.isArray(headers)?{}:getAllowedHeaders(headers,allowedHeaders):{}}function _tryGetResponseText(response){return new Promise((resolve,reject)=>{const timeout=setTimeout(()=>reject(new Error("Timeout while trying to read response body")),500);(function _getResponseText(_x15){return _getResponseText2.apply(this,arguments)})(response).then(txt=>resolve(txt),reason=>reject(reason)).finally(()=>clearTimeout(timeout))})}function _getResponseText2(){return(_getResponseText2=asyncToGenerator_asyncToGenerator(function*(response){return yield response.text()})).apply(this,arguments)}function _captureXhrBreadcrumbToReplay(){return(_captureXhrBreadcrumbToReplay=asyncToGenerator_asyncToGenerator(function*(breadcrumb,hint,options){try{const data=function _prepareXhrData(breadcrumb,hint,options){const now=Date.now(),{startTimestamp=now,endTimestamp=now,input:input2,xhr}=hint,{url,method,status_code:statusCode=0,request_body_size:requestBodySize,response_body_size:responseBodySize}=breadcrumb.data;if(!url)return null;if(!xhr||!urlMatches(url,options.networkDetailAllowUrls)||urlMatches(url,options.networkDetailDenyUrls))return{startTimestamp,endTimestamp,url,method,statusCode,request:buildSkippedNetworkRequestOrResponse(requestBodySize),response:buildSkippedNetworkRequestOrResponse(responseBodySize)};const xhrInfo=xhr[SENTRY_XHR_DATA_KEY],networkRequestHeaders=xhrInfo?getAllowedHeaders(xhrInfo.request_headers,options.networkRequestHeaders):{},networkResponseHeaders=getAllowedHeaders(function getResponseHeaders(xhr){const headers=xhr.getAllResponseHeaders();return headers?headers.split("\r\n").reduce((acc,line)=>{const[key,value]=line.split(": ");return acc[key.toLowerCase()]=value,acc},{}):{}}(xhr),options.networkResponseHeaders),[requestBody,requestWarning]=options.networkCaptureBodies?getBodyString(input2):[void 0],[responseBody,responseWarning]=options.networkCaptureBodies?function _getXhrResponseBody(xhr){const errors=[];try{return[xhr.responseText]}catch(e2){errors.push(e2)}try{return function _parseXhrResponse(body,responseType){try{if("string"==typeof body)return[body];if(body instanceof Document)return[body.body.outerHTML];if("json"===responseType&&body&&"object"==typeof body)return[JSON.stringify(body)];if(!body)return[void 0]}catch{return esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to serialize body",body),[void 0,"BODY_PARSE_ERROR"]}return esm_DEBUG_BUILD&&logger_logger.info("[Replay] Skipping network body because of body type",body),[void 0,"UNPARSEABLE_BODY_TYPE"]}(xhr.response,xhr.responseType)}catch(e2){errors.push(e2)}return esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Failed to get xhr response body",...errors),[void 0]}(xhr):[void 0],request=buildNetworkRequestOrResponse(networkRequestHeaders,requestBodySize,requestBody),response=buildNetworkRequestOrResponse(networkResponseHeaders,responseBodySize,responseBody);return{startTimestamp,endTimestamp,url,method,statusCode,request:requestWarning?mergeWarning(request,requestWarning):request,response:responseWarning?mergeWarning(response,responseWarning):response}}(breadcrumb,hint,options),result=makeNetworkReplayBreadcrumb("resource.xhr",data);addNetworkBreadcrumb(options.replay,result)}catch(error){esm_DEBUG_BUILD&&logger_logger.error("[Replay] Failed to capture xhr breadcrumb",error)}})).apply(this,arguments)}function handleNetworkBreadcrumbs(replay){const client=exports_getClient();try{const textEncoder=new TextEncoder,{networkDetailAllowUrls,networkDetailDenyUrls,networkCaptureBodies,networkRequestHeaders,networkResponseHeaders}=replay.getOptions(),options={replay,textEncoder,networkDetailAllowUrls,networkDetailDenyUrls,networkCaptureBodies,networkRequestHeaders,networkResponseHeaders};client&&client.on?client.on("beforeAddBreadcrumb",(breadcrumb,hint)=>function beforeAddNetworkBreadcrumb(options,breadcrumb,hint){if(breadcrumb.data)try{(function _isXhrBreadcrumb(breadcrumb){return"xhr"===breadcrumb.category})(breadcrumb)&&function _isXhrHint(hint){return hint&&hint.xhr}(hint)&&(function enrichXhrBreadcrumb(breadcrumb,hint,options){const{xhr,input:input2}=hint;if(!xhr)return;const reqSize=getBodySize(input2,options.textEncoder),resSize=xhr.getResponseHeader("content-length")?parseContentLengthHeader(xhr.getResponseHeader("content-length")):function _getBodySize(body,responseType,textEncoder){try{return getBodySize("json"===responseType&&body&&"object"==typeof body?JSON.stringify(body):body,textEncoder)}catch{return}}(xhr.response,xhr.responseType,options.textEncoder);void 0!==reqSize&&(breadcrumb.data.request_body_size=reqSize),void 0!==resSize&&(breadcrumb.data.response_body_size=resSize)}(breadcrumb,hint,options),function captureXhrBreadcrumbToReplay(_x16,_x17,_x18){_captureXhrBreadcrumbToReplay.apply(this,arguments)}(breadcrumb,hint,options)),function _isFetchBreadcrumb(breadcrumb){return"fetch"===breadcrumb.category}(breadcrumb)&&function _isFetchHint(hint){return hint&&hint.response}(hint)&&(function enrichFetchBreadcrumb(breadcrumb,hint,options){const{input:input2,response}=hint,reqSize=getBodySize(input2?_getFetchRequestArgBody(input2):void 0,options.textEncoder),resSize=response?parseContentLengthHeader(response.headers.get("content-length")):void 0;void 0!==reqSize&&(breadcrumb.data.request_body_size=reqSize),void 0!==resSize&&(breadcrumb.data.response_body_size=resSize)}(breadcrumb,hint,options),function captureFetchBreadcrumbToReplay(_x4,_x5,_x6){_captureFetchBreadcrumbToReplay.apply(this,arguments)}(breadcrumb,hint,options))}catch{esm_DEBUG_BUILD&&logger_logger.warn("Error when enriching network breadcrumb")}}(options,breadcrumb,hint)):(addFetchInstrumentationHandler(function handleFetchSpanListener(replay){return handlerData=>{if(!replay.isEnabled())return;const result=function handleFetch(handlerData){const{startTimestamp,endTimestamp,fetchData,response}=handlerData;if(!endTimestamp)return null;const{method,url}=fetchData;return{type:"resource.fetch",start:startTimestamp/1e3,end:endTimestamp/1e3,name:url,data:{method,statusCode:response?response.status:void 0}}}(handlerData);addNetworkBreadcrumb(replay,result)}}(replay)),addXhrInstrumentationHandler(function handleXhrSpanListener(replay){return handlerData=>{if(!replay.isEnabled())return;const result=function handleXhr(handlerData){const{startTimestamp,endTimestamp,xhr}=handlerData,sentryXhrData=xhr[SENTRY_XHR_DATA_KEY];if(!startTimestamp||!endTimestamp||!sentryXhrData)return null;const{method,url,status_code:statusCode}=sentryXhrData;return void 0===url?null:{type:"resource.xhr",name:url,start:startTimestamp/1e3,end:endTimestamp/1e3,data:{method,statusCode}}}(handlerData);addNetworkBreadcrumb(replay,result)}}(replay)))}catch{}}let _LAST_BREADCRUMB=null;function addGlobalListeners(replay){const scope=exports_getCurrentScope(),client=exports_getClient();scope.addScopeListener((replay=>scope=>{if(!replay.isEnabled())return;const result=function handleScope(scope){const newBreadcrumb=scope.getLastBreadcrumb&&scope.getLastBreadcrumb();return _LAST_BREADCRUMB===newBreadcrumb||!newBreadcrumb||(_LAST_BREADCRUMB=newBreadcrumb,!function isBreadcrumbWithCategory(breadcrumb){return!!breadcrumb.category}(newBreadcrumb)||["fetch","xhr","sentry.event","sentry.transaction"].includes(newBreadcrumb.category)||newBreadcrumb.category.startsWith("ui."))?null:"console"===newBreadcrumb.category?function normalizeConsoleBreadcrumb(breadcrumb){const args=breadcrumb.data&&breadcrumb.data.arguments;if(!Array.isArray(args)||0===args.length)return createBreadcrumb(breadcrumb);let isTruncated=!1;const normalizedArgs=args.map(arg=>{if(!arg)return arg;if("string"==typeof arg)return arg.length>5e3?(isTruncated=!0,`${arg.slice(0,5e3)}\u2026`):arg;if("object"==typeof arg)try{const normalizedArg=normalize(arg,7);return JSON.stringify(normalizedArg).length>5e3?(isTruncated=!0,`${JSON.stringify(normalizedArg,null,2).slice(0,5e3)}\u2026`):normalizedArg}catch{}return arg});return createBreadcrumb({...breadcrumb,data:{...breadcrumb.data,arguments:normalizedArgs,...isTruncated?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(newBreadcrumb):createBreadcrumb(newBreadcrumb)}(scope);result&&addBreadcrumbEvent(replay,result)})(replay)),addClickKeypressInstrumentationHandler((replay=>handlerData=>{if(!replay.isEnabled())return;const result=function handleDom(handlerData){const{target,message}=function getDomTarget(handlerData){const isClick="click"===handlerData.name;let message,target=null;try{target=isClick?getClickTargetNode(handlerData.event):getTargetNode(handlerData.event),message=htmlTreeAsString(target,{maxStringLength:200})||""}catch{message=""}return{target,message}}(handlerData);return createBreadcrumb({category:`ui.${handlerData.name}`,...getBaseDomBreadcrumb(target,message)})}(handlerData);if(!result)return;const isClick="click"===handlerData.name,event=isClick?handlerData.event:void 0;isClick&&replay.clickDetector&&event&&event.target&&!event.altKey&&!event.metaKey&&!event.ctrlKey&&!event.shiftKey&&function handleClick(clickDetector,clickBreadcrumb,node2){clickDetector.handleClick(clickBreadcrumb,node2)}(replay.clickDetector,result,getClickTargetNode(handlerData.event)),addBreadcrumbEvent(replay,result)})(replay)),addHistoryInstrumentationHandler(function handleHistorySpanListener(replay){return handlerData=>{if(!replay.isEnabled())return;const result=function handleHistory(handlerData){const{from:from2,to}=handlerData,now=Date.now()/1e3;return{type:"navigation.push",start:now,end:now,name:to,data:{previous:from2}}}(handlerData);null!==result&&(replay.getContext().urls.push(result.name),replay.triggerUserActivity(),replay.addUpdate(()=>(createPerformanceSpans(replay,[result]),!1)))}}(replay)),handleNetworkBreadcrumbs(replay);const eventProcessor=function handleGlobalEventListener(replay,includeAfterSendEventHandling=!1){const afterSendHandler=includeAfterSendEventHandling?handleAfterSendEvent(replay):void 0;return Object.assign((event,hint)=>replay.isEnabled()?function isReplayEvent(event){return"replay_event"===event.type}(event)?(delete event.breadcrumbs,event):(esm_isErrorEvent(event)||esm_isTransactionEvent(event)||isFeedbackEvent(event))&&replay.checkAndHandleExpiredSession()?isFeedbackEvent(event)?(replay.flush(),event.contexts.feedback.replay_id=replay.getSessionId(),function addFeedbackBreadcrumb(replay,event){replay.triggerUserActivity(),replay.addUpdate(()=>!event.timestamp||(replay.throttledAddEvent({type:EventType.Custom,timestamp:1e3*event.timestamp,data:{tag:"breadcrumb",payload:{timestamp:event.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:event.event_id}}}}),!1))}(replay,event),event):function isRrwebError(event,hint){return!(event.type||!event.exception||!event.exception.values||!event.exception.values.length||!hint.originalException||!hint.originalException.__rrweb__)}(event,hint)&&!replay.getOptions()._experiments.captureExceptions?(esm_DEBUG_BUILD&&logger_logger.log("[Replay] Ignoring error from rrweb internals",event),null):((function shouldSampleForBufferEvent(replay,event){return!("buffer"!==replay.recordingMode||event.message===UNABLE_TO_SEND_REPLAY||!event.exception||event.type)&&isSampled(replay.getOptions().errorSampleRate)}(replay,event)||"session"===replay.recordingMode)&&(event.tags={...event.tags,replayId:replay.getSessionId()}),afterSendHandler&&afterSendHandler(event,{statusCode:200}),event):event:event,{id:"Replay"})}(replay,!hasHooks(client));client&&client.addEventProcessor?client.addEventProcessor(eventProcessor):function addEventProcessor(callback){const client=exports_getClient();!client||!client.addEventProcessor||client.addEventProcessor(callback)}(eventProcessor),hasHooks(client)&&(client.on("beforeSendEvent",function handleBeforeSendEvent(replay){return event=>{!replay.isEnabled()||!esm_isErrorEvent(event)||function handleHydrationError(replay,event){const exceptionValue=event.exception&&event.exception.values&&event.exception.values[0].value;"string"==typeof exceptionValue&&(exceptionValue.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||exceptionValue.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&addBreadcrumbEvent(replay,createBreadcrumb({category:"replay.hydrate-error"}))}(replay,event)}}(replay)),client.on("afterSendEvent",handleAfterSendEvent(replay)),client.on("createDsc",dsc=>{const replayId=replay.getSessionId();replayId&&replay.isEnabled()&&"session"===replay.recordingMode&&replay.checkAndHandleExpiredSession()&&(dsc.replay_id=replayId)}),client.on("startTransaction",transaction=>{replay.lastTransaction=transaction}),client.on("finishTransaction",transaction=>{replay.lastTransaction=transaction}),client.on("beforeSendFeedback",(feedbackEvent,options)=>{const replayId=replay.getSessionId();options&&options.includeReplay&&replay.isEnabled()&&replayId&&feedbackEvent.contexts&&feedbackEvent.contexts.feedback&&(feedbackEvent.contexts.feedback.replay_id=replayId)}))}function hasHooks(client){return!(!client||!client.on)}function _addMemoryEntry(){return(_addMemoryEntry=asyncToGenerator_asyncToGenerator(function*(replay){try{return Promise.all(createPerformanceSpans(replay,[createMemoryEntry(esm_WINDOW.performance.memory)]))}catch{return[]}})).apply(this,arguments)}function createMemoryEntry(memoryEntry){const{jsHeapSizeLimit,totalJSHeapSize,usedJSHeapSize}=memoryEntry,time=Date.now()/1e3;return{type:"memory",name:"memory",start:time,end:time,data:{memory:{jsHeapSizeLimit,totalJSHeapSize,usedJSHeapSize}}}}function getHandleRecordingEmit(replay){let hadFirstEvent=!1;return(event,_isCheckout)=>{if(!replay.checkAndHandleExpiredSession())return void(esm_DEBUG_BUILD&&logger_logger.warn("[Replay] Received replay event after session expired."));const isCheckout=_isCheckout||!hadFirstEvent;hadFirstEvent=!0,replay.clickDetector&&function updateClickDetectorForRecordingEvent(clickDetector,event){try{if(!function isIncrementalEvent(event){return event.type===ReplayEventTypeIncrementalSnapshot}(event))return;const{source}=event.data;if(source===IncrementalSource.Mutation&&clickDetector.registerMutation(event.timestamp),source===IncrementalSource.Scroll&&clickDetector.registerScroll(event.timestamp),function isIncrementalMouseInteraction(event){return event.data.source===IncrementalSource.MouseInteraction}(event)){const{type,id}=event.data,node2=record.mirror.getNode(id);node2 instanceof HTMLElement&&type===MouseInteractions.Click&&clickDetector.registerClick(node2)}}catch{}}(replay.clickDetector,event),replay.addUpdate(()=>{if("buffer"===replay.recordingMode&&isCheckout&&replay.setInitialState(),!addEventSync(replay,event,isCheckout))return!0;if(!isCheckout)return!1;if(function addSettingsEvent(replay,isCheckout){!isCheckout||!replay.session||0!==replay.session.segmentId||addEventSync(replay,function createOptionsEvent(replay){const options=replay.getOptions();return{type:EventType.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:replay.isRecordingCanvas(),sessionSampleRate:options.sessionSampleRate,errorSampleRate:options.errorSampleRate,useCompressionOption:options.useCompression,blockAllMedia:options.blockAllMedia,maskAllText:options.maskAllText,maskAllInputs:options.maskAllInputs,useCompression:!!replay.eventBuffer&&"worker"===replay.eventBuffer.type,networkDetailHasUrls:options.networkDetailAllowUrls.length>0,networkCaptureBodies:options.networkCaptureBodies,networkRequestHasHeaders:options.networkRequestHeaders.length>0,networkResponseHasHeaders:options.networkResponseHeaders.length>0}}}}(replay),!1)}(replay,isCheckout),replay.session&&replay.session.previousSessionId)return!0;if("buffer"===replay.recordingMode&&replay.session&&replay.eventBuffer){const earliestEvent=replay.eventBuffer.getEarliestTimestamp();earliestEvent&&(logInfo(`[Replay] Updating session start time to earliest event in buffer to ${new Date(earliestEvent)}`,replay.getOptions()._experiments.traceInternals),replay.session.started=earliestEvent,replay.getOptions().stickySession&&saveSession(replay.session))}return"session"===replay.recordingMode&&replay.flush(),!0})}}function _prepareReplayEvent(){return(_prepareReplayEvent=asyncToGenerator_asyncToGenerator(function*({client,scope,replayId:event_id,event}){const eventHint={event_id,integrations:"object"!=typeof client._integrations||null===client._integrations||Array.isArray(client._integrations)?void 0:Object.keys(client._integrations)};client.emit&&client.emit("preprocessEvent",event,eventHint);const preparedEvent=yield prepareEvent(client.getOptions(),event,eventHint,scope,client,hub_getIsolationScope());if(!preparedEvent)return null;preparedEvent.platform=preparedEvent.platform||"javascript";const metadata=client.getSdkMetadata&&client.getSdkMetadata(),{name,version:version2}=metadata&&metadata.sdk||{};return preparedEvent.sdk={...preparedEvent.sdk,name:name||"sentry.javascript.unknown",version:version2||"0.0.0"},preparedEvent})).apply(this,arguments)}function _sendReplayRequest(){return _sendReplayRequest=asyncToGenerator_asyncToGenerator(function*({recordingData,replayId,segmentId:segment_id,eventContext,timestamp,session}){const preparedRecordingData=function prepareRecordingData({recordingData,headers}){let payloadWithSequence;const replayHeaders=`${JSON.stringify(headers)}\n`;if("string"==typeof recordingData)payloadWithSequence=`${replayHeaders}${recordingData}`;else{const sequence2=(new TextEncoder).encode(replayHeaders);payloadWithSequence=new Uint8Array(sequence2.length+recordingData.length),payloadWithSequence.set(sequence2),payloadWithSequence.set(recordingData,sequence2.length)}return payloadWithSequence}({recordingData,headers:{segment_id}}),{urls,errorIds,traceIds,initialTimestamp}=eventContext,client=exports_getClient(),scope=exports_getCurrentScope(),transport=client&&client.getTransport(),dsn=client&&client.getDsn();if(!(client&&transport&&dsn&&session.sampled))return;const baseEvent={type:REPLAY_EVENT_NAME,replay_start_timestamp:initialTimestamp/1e3,timestamp:timestamp/1e3,error_ids:errorIds,trace_ids:traceIds,urls,replay_id:replayId,segment_id,replay_type:session.sampled},replayEvent=yield function prepareReplayEvent(_x20){return _prepareReplayEvent.apply(this,arguments)}({scope,client,replayId,event:baseEvent});if(!replayEvent)return client.recordDroppedEvent("event_processor","replay",baseEvent),void logInfo("An event processor returned `null`, will not send event.");delete replayEvent.sdkProcessingMetadata;const envelope=function createReplayEnvelope(replayEvent,recordingData,dsn,tunnel){return createEnvelope(createEventEnvelopeHeaders(replayEvent,getSdkMetadataForEnvelopeHeader(replayEvent),tunnel,dsn),[[{type:"replay_event"},replayEvent],[{type:"replay_recording",length:"string"==typeof recordingData?(new TextEncoder).encode(recordingData).length:recordingData.length},recordingData]])}(replayEvent,preparedRecordingData,dsn,client.getOptions().tunnel);let response;try{response=yield transport.send(envelope)}catch(err){const error=new Error(UNABLE_TO_SEND_REPLAY);try{error.cause=err}catch{}throw error}if(!response)return response;if("number"==typeof response.statusCode&&(response.statusCode<200||response.statusCode>=300))throw new TransportStatusCodeError(response.statusCode);const rateLimits=updateRateLimits({},response);if(isRateLimited(rateLimits,"replay"))throw new RateLimitError(rateLimits);return response}),_sendReplayRequest.apply(this,arguments)}class TransportStatusCodeError extends Error{constructor(statusCode){super(`Transport returned status code ${statusCode}`)}}class RateLimitError extends Error{constructor(rateLimits){super("Rate limit hit"),this.rateLimits=rateLimits}}function sendReplay(_x22){return _sendReplay.apply(this,arguments)}function _sendReplay(){return _sendReplay=asyncToGenerator_asyncToGenerator(function*(replayData,retryConfig={count:0,interval:RETRY_BASE_INTERVAL}){const{recordingData,options}=replayData;if(recordingData.length)try{return yield function sendReplayRequest(_x21){return _sendReplayRequest.apply(this,arguments)}(replayData),!0}catch(err){if(err instanceof TransportStatusCodeError||err instanceof RateLimitError)throw err;if(setContext("Replays",{_retryCount:retryConfig.count}),esm_DEBUG_BUILD&&options._experiments&&options._experiments.captureExceptions&&captureException(err),retryConfig.count>=RETRY_MAX_COUNT){const error=new Error(`${UNABLE_TO_SEND_REPLAY} - max retries exceeded`);try{error.cause=err}catch{}throw error}return retryConfig.interval*=++retryConfig.count,new Promise((resolve,reject)=>{setTimeout(asyncToGenerator_asyncToGenerator(function*(){try{yield sendReplay(replayData,retryConfig),resolve(!0)}catch(err2){reject(err2)}}),retryConfig.interval)})}}),_sendReplay.apply(this,arguments)}class ReplayContainer{constructor({options,recordingOptions}){ReplayContainer.prototype.__init.call(this),ReplayContainer.prototype.__init2.call(this),ReplayContainer.prototype.__init3.call(this),ReplayContainer.prototype.__init4.call(this),ReplayContainer.prototype.__init5.call(this),ReplayContainer.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=recordingOptions,this._options=options,this._debouncedFlush=function debounce(func,wait,options){let callbackReturnValue,timerId,maxTimerId;const maxWait=options&&options.maxWait?Math.max(options.maxWait,wait):0;function invokeFunc(){return cancelTimers(),callbackReturnValue=func(),callbackReturnValue}function cancelTimers(){void 0!==timerId&&clearTimeout(timerId),void 0!==maxTimerId&&clearTimeout(maxTimerId),timerId=maxTimerId=void 0}function debounced(){return timerId&&clearTimeout(timerId),timerId=setTimeout(invokeFunc,wait),maxWait&&void 0===maxTimerId&&(maxTimerId=setTimeout(invokeFunc,maxWait)),callbackReturnValue}return debounced.cancel=cancelTimers,debounced.flush=function flush2(){return void 0!==timerId||void 0!==maxTimerId?invokeFunc():callbackReturnValue},debounced}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function throttle(fn,maxCount,durationSeconds){const counter=new Map;let isThrottled=!1;return(...rest)=>{const now=Math.floor(Date.now()/1e3);if((now=>{const threshold=now-durationSeconds;counter.forEach((_value,key)=>{keya+b,0)>=maxCount){const wasThrottled=isThrottled;return isThrottled=!0,wasThrottled?"__SKIPPED":"__THROTTLED"}isThrottled=!1;const count=counter.get(now)||0;return counter.set(now,count+1),fn(...rest)}}((event,isCheckout)=>function addEvent(replay,event,isCheckout){return shouldAddEvent(replay,event)?_addEvent(replay,event,isCheckout):Promise.resolve(null)}(this,event,isCheckout),300,5);const{slowClickTimeout,slowClickIgnoreSelectors}=this.getOptions(),slowClickConfig=slowClickTimeout?{threshold:Math.min(3e3,slowClickTimeout),timeout:slowClickTimeout,scrollTimeout:300,ignoreSelector:slowClickIgnoreSelectors?slowClickIgnoreSelectors.join(","):""}:void 0;slowClickConfig&&(this.clickDetector=new ClickDetector(this,slowClickConfig))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(previousSessionId){const{errorSampleRate,sessionSampleRate}=this._options;if(!(errorSampleRate<=0&&sessionSampleRate<=0)){if(this._initializeSessionForSampling(previousSessionId),!this.session)return void this._handleException(new Error("Unable to initialize and create session"));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",logInfoNextTick(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");logInfoNextTick("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const session=loadOrCreateSession({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=session,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");logInfoNextTick("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const session=loadOrCreateSession({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=session,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const canvasOptions=this._canvas;this._stopRecording=record({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:getHandleRecordingEmit(this),onMutation:this._onMutationHandler,...canvasOptions?{recordCanvas:canvasOptions.recordCanvas,getCanvasManager:canvasOptions.getCanvasManager,sampling:canvasOptions.sampling,dataURLOptions:canvasOptions.dataURLOptions}:{}})}catch(err){this._handleException(err)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(err){return this._handleException(err),!1}}stop({forceFlush=!1,reason}={}){var _this6=this;return asyncToGenerator_asyncToGenerator(function*(){if(_this6._isEnabled){_this6._isEnabled=!1;try{logInfo("[Replay] Stopping Replay"+(reason?` triggered by ${reason}`:""),_this6._options._experiments.traceInternals),_this6._removeListeners(),_this6.stopRecording(),_this6._debouncedFlush.cancel(),forceFlush&&(yield _this6._flush({force:!0})),_this6.eventBuffer&&_this6.eventBuffer.destroy(),_this6.eventBuffer=null,function clearSession(replay){(function deleteSession(){if(hasSessionStorage())try{esm_WINDOW.sessionStorage.removeItem(REPLAY_SESSION_KEY)}catch{}})(),replay.session=void 0}(_this6)}catch(err){_this6._handleException(err)}}})()}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),logInfo("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),logInfo("[Replay] Resuming replay",this._options._experiments.traceInternals))}sendBufferedReplayOrFlush({continueRecording=!0}={}){var _this7=this;return asyncToGenerator_asyncToGenerator(function*(){if("session"===_this7.recordingMode)return _this7.flushImmediate();const activityTime=Date.now();logInfo("[Replay] Converting buffer to session",_this7._options._experiments.traceInternals),yield _this7.flushImmediate();const hasStoppedRecording=_this7.stopRecording();!continueRecording||!hasStoppedRecording||"session"!==_this7.recordingMode&&(_this7.recordingMode="session",_this7.session&&(_this7._updateUserActivity(activityTime),_this7._updateSessionActivity(activityTime),_this7._maybeSaveSession()),_this7.startRecording())})()}addUpdate(cb){const cbResult=cb();"buffer"!==this.recordingMode&&!0!==cbResult&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&isExpired(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const url=`${esm_WINDOW.location.origin}${esm_WINDOW.location.pathname}${esm_WINDOW.location.hash}${esm_WINDOW.location.search}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=url,this._context.initialTimestamp=Date.now(),this._context.urls.push(url)}throttledAddEvent(event,isCheckout){const res=this._throttledAddEvent(event,isCheckout);if("__THROTTLED"===res){const breadcrumb=createBreadcrumb({category:"replay.throttled"});this.addUpdate(()=>!addEventSync(this,{type:5,timestamp:breadcrumb.timestamp||0,data:{tag:"breadcrumb",payload:breadcrumb,metric:!0}}))}return res}getCurrentRoute(){const lastTransaction=this.lastTransaction||exports_getCurrentScope().getTransaction(),source=(lastTransaction&&spanUtils_spanToJSON(lastTransaction).data||{})["sentry.source"];if(lastTransaction&&source&&["route","custom"].includes(source))return spanUtils_spanToJSON(lastTransaction).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function createEventBuffer({useCompression,workerUrl:customWorkerUrl}){if(useCompression&&window.Worker){const worker=function _loadWorker(customWorkerUrl){try{const workerUrl=customWorkerUrl||function _getWorkerUrl(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?function e(){const e2=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e2)}():""}();if(!workerUrl)return;logInfo("[Replay] Using compression worker"+(customWorkerUrl?` from ${customWorkerUrl}`:""));const worker=new Worker(workerUrl);return new EventBufferProxy(worker)}catch{logInfo("[Replay] Failed to create compression worker")}}(customWorkerUrl);if(worker)return worker}return logInfo("[Replay] Using simple buffer"),new EventBufferArray}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(error){esm_DEBUG_BUILD&&logger_logger.error("[Replay]",error),esm_DEBUG_BUILD&&this._options._experiments&&this._options._experiments.captureExceptions&&captureException(error)}_initializeSessionForSampling(previousSessionId){const session=loadOrCreateSession({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});this.session=session}_checkSession(){if(!this.session)return!1;const currentSession=this.session;return!shouldRefreshSession(currentSession,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(currentSession),!1)}_refreshSession(session){var _this8=this;return asyncToGenerator_asyncToGenerator(function*(){_this8._isEnabled&&(yield _this8.stop({reason:"refresh session"}),_this8.initializeSampling(session.id))})()}_addListeners(){try{esm_WINDOW.document.addEventListener("visibilitychange",this._handleVisibilityChange),esm_WINDOW.addEventListener("blur",this._handleWindowBlur),esm_WINDOW.addEventListener("focus",this._handleWindowFocus),esm_WINDOW.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(addGlobalListeners(this),this._hasInitializedCoreListeners=!0)}catch(err){this._handleException(err)}this._performanceCleanupCallback=function setupPerformanceObserver(replay){function addPerformanceEntry(entry){replay.performanceEntries.includes(entry)||replay.performanceEntries.push(entry)}function onEntries({entries}){entries.forEach(addPerformanceEntry)}const clearCallbacks=[];return["navigation","paint","resource"].forEach(type=>{clearCallbacks.push(addPerformanceInstrumentationHandler(type,onEntries))}),clearCallbacks.push(addLcpInstrumentationHandler(({metric})=>{replay.replayPerformanceEntries.push(function getLargestContentfulPaint(metric){const entries=metric.entries,lastEntry=entries[entries.length-1],element=lastEntry?lastEntry.element:void 0,value=metric.value,end=esm_getAbsoluteTime(value);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:end,end,data:{value,size:value,nodeId:element?record.mirror.getId(element):void 0}}}(metric))})),()=>{clearCallbacks.forEach(clearCallback=>clearCallback())}}(this)}_removeListeners(){try{esm_WINDOW.document.removeEventListener("visibilitychange",this._handleVisibilityChange),esm_WINDOW.removeEventListener("blur",this._handleWindowBlur),esm_WINDOW.removeEventListener("focus",this._handleWindowFocus),esm_WINDOW.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(err){this._handleException(err)}}__init(){this._handleVisibilityChange=()=>{"visible"===esm_WINDOW.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const breadcrumb=createBreadcrumb({category:"ui.blur"});this._doChangeToBackgroundTasks(breadcrumb)}}__init3(){this._handleWindowFocus=()=>{const breadcrumb=createBreadcrumb({category:"ui.focus"});this._doChangeToForegroundTasks(breadcrumb)}}__init4(){this._handleKeyboardEvent=event=>{!function handleKeyboardEvent(replay,event){if(!replay.isEnabled())return;replay.updateUserActivity();const breadcrumb=function getKeyboardBreadcrumb(event){const{metaKey,shiftKey,ctrlKey,altKey,key,target}=event;if(!target||function isInputElement(target){return"INPUT"===target.tagName||"TEXTAREA"===target.tagName||target.isContentEditable}(target)||!key)return null;if(!(metaKey||ctrlKey||altKey)&&1===key.length)return null;const message=htmlTreeAsString(target,{maxStringLength:200})||"";return createBreadcrumb({category:"ui.keyDown",message,data:{...getBaseDomBreadcrumb(target,message).data,metaKey,shiftKey,ctrlKey,altKey,key}})}(event);breadcrumb&&addBreadcrumbEvent(replay,breadcrumb)}(this,event)}}_doChangeToBackgroundTasks(breadcrumb){!this.session||isSessionExpired(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(breadcrumb&&this._createCustomBreadcrumb(breadcrumb),this.conditionalFlush())}_doChangeToForegroundTasks(breadcrumb){this.session&&(this.checkAndHandleExpiredSession()?breadcrumb&&this._createCustomBreadcrumb(breadcrumb):logInfo("[Replay] Document has become active, but session has expired"))}_updateUserActivity(_lastActivity=Date.now()){this._lastActivity=_lastActivity}_updateSessionActivity(_lastActivity=Date.now()){this.session&&(this.session.lastActivity=_lastActivity,this._maybeSaveSession())}_createCustomBreadcrumb(breadcrumb){this.addUpdate(()=>{this.throttledAddEvent({type:EventType.Custom,timestamp:breadcrumb.timestamp||0,data:{tag:"breadcrumb",payload:breadcrumb}})})}_addPerformanceEntries(){const performanceEntries=function createPerformanceEntries(entries){return entries.map(createPerformanceEntry).filter(Boolean)}(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(createPerformanceSpans(this,performanceEntries))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session,eventBuffer}=this;if(!session||!eventBuffer||session.segmentId)return;const earliestEvent=eventBuffer.getEarliestTimestamp();earliestEvent&&earliestEvent_this9._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const eventContext=_this9._popEventContext(),segmentId=_this9.session.segmentId++;_this9._maybeSaveSession();const recordingData=yield _this9.eventBuffer.finish();yield sendReplay({replayId,recordingData,segmentId,eventContext,session:_this9.session,options:_this9.getOptions(),timestamp})}catch(err){_this9._handleException(err),_this9.stop({reason:"sendReplay"});const client=exports_getClient();client&&client.recordDroppedEvent("send_error","replay")}}else esm_DEBUG_BUILD&&logger_logger.error("[Replay] No session or eventBuffer found to flush.")})()}__init5(){var _this10=this;this._flush=asyncToGenerator_asyncToGenerator(function*({force=!1}={}){if(!_this10._isEnabled&&!force)return;if(!_this10.checkAndHandleExpiredSession())return void(esm_DEBUG_BUILD&&logger_logger.error("[Replay] Attempting to finish replay event after session expired."));if(!_this10.session)return;const start2=_this10.session.started,duration=Date.now()-start2;_this10._debouncedFlush.cancel();const tooShort=duration<_this10._options.minReplayDuration;if(tooShort||duration>_this10._options.maxReplayDuration+5e3)return logInfo(`[Replay] Session duration (${Math.floor(duration/1e3)}s) is too ${tooShort?"short":"long"}, not sending replay.`,_this10._options._experiments.traceInternals),void(tooShort&&_this10._debouncedFlush());const eventBuffer=_this10.eventBuffer;if(eventBuffer&&0===_this10.session.segmentId&&!eventBuffer.hasCheckout&&logInfo("[Replay] Flushing initial segment without checkout.",_this10._options._experiments.traceInternals),!_this10._flushLock)return _this10._flushLock=_this10._runFlush(),yield _this10._flushLock,void(_this10._flushLock=void 0);try{yield _this10._flushLock}catch(err){esm_DEBUG_BUILD&&logger_logger.error(err)}finally{_this10._debouncedFlush()}})}_maybeSaveSession(){this.session&&this._options.stickySession&&saveSession(this.session)}__init6(){this._onMutationHandler=mutations=>{const count=mutations.length,mutationLimit=this._options.mutationLimit,overMutationLimit=mutationLimit&&count>mutationLimit;if(count>this._options.mutationBreadcrumbLimit||overMutationLimit){const breadcrumb=createBreadcrumb({category:"replay.mutations",data:{count,limit:overMutationLimit}});this._createCustomBreadcrumb(breadcrumb)}return!overMutationLimit||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function getOption(selectors,defaultSelectors,deprecatedClassOption,deprecatedSelectorOption){const allSelectors=[...selectors,..."string"==typeof deprecatedSelectorOption?deprecatedSelectorOption.split(","):[],...defaultSelectors];return typeof deprecatedClassOption<"u"&&("string"==typeof deprecatedClassOption&&allSelectors.push(`.${deprecatedClassOption}`),consoleSandbox(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),allSelectors.join(",")}const MEDIA_SELECTORS='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',DEFAULT_NETWORK_HEADERS=["content-length","content-type","accept"];let _initialized=!1;class Replay$1{static __initStatic(){this.id="Replay"}constructor({flushMinDelay=5e3,flushMaxDelay=5500,minReplayDuration=4999,maxReplayDuration=36e5,stickySession=!0,useCompression=!0,workerUrl,_experiments={},sessionSampleRate,errorSampleRate,maskAllText=!0,maskAllInputs=!0,blockAllMedia=!0,mutationBreadcrumbLimit=750,mutationLimit=1e4,slowClickTimeout=7e3,slowClickIgnoreSelectors=[],networkDetailAllowUrls=[],networkDetailDenyUrls=[],networkCaptureBodies=!0,networkRequestHeaders=[],networkResponseHeaders=[],mask=[],maskAttributes=["title","placeholder"],unmask=[],block=[],unblock=[],ignore=[],maskFn,beforeAddRecordingEvent,beforeErrorSampling,blockClass,blockSelector,maskInputOptions,maskTextClass,maskTextSelector,ignoreClass}={}){this.name=Replay$1.id;const privacyOptions=function getPrivacyOptions({mask,unmask,block,unblock,ignore,blockClass,blockSelector,maskTextClass,maskTextSelector,ignoreClass}){const options={maskTextSelector:getOption(mask,[".sentry-mask","[data-sentry-mask]"],maskTextClass,maskTextSelector),unmaskTextSelector:getOption(unmask,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:getOption(block,[".sentry-block","[data-sentry-block]",'base[href="/"]'],blockClass,blockSelector),unblockSelector:getOption(unblock,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:getOption(ignore,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],ignoreClass)};return blockClass instanceof RegExp&&(options.blockClass=blockClass),maskTextClass instanceof RegExp&&(options.maskTextClass=maskTextClass),options}({mask,unmask,block,unblock,ignore,blockClass,blockSelector,maskTextClass,maskTextSelector,ignoreClass});if(this._recordingOptions={maskAllInputs,maskAllText,maskInputOptions:{...maskInputOptions||{},password:!0},maskTextFn:maskFn,maskInputFn:maskFn,maskAttributeFn:(key,value,el)=>function maskAttribute({el,key,maskAttributes,maskAllText,privacyOptions,value}){return!maskAllText||privacyOptions.unmaskTextSelector&&el.matches(privacyOptions.unmaskTextSelector)?value:maskAttributes.includes(key)||"value"===key&&"INPUT"===el.tagName&&["submit","button"].includes(el.getAttribute("type")||"")?value.replace(/[\S]/g,"*"):value}({maskAttributes,maskAllText,privacyOptions,key,value,el}),...privacyOptions,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:err=>{try{err.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay,flushMaxDelay,minReplayDuration:Math.min(minReplayDuration,15e3),maxReplayDuration:Math.min(maxReplayDuration,36e5),stickySession,sessionSampleRate,errorSampleRate,useCompression,workerUrl,blockAllMedia,maskAllInputs,maskAllText,mutationBreadcrumbLimit,mutationLimit,slowClickTimeout,slowClickIgnoreSelectors,networkDetailAllowUrls,networkDetailDenyUrls,networkCaptureBodies,networkRequestHeaders:_getMergedNetworkHeaders(networkRequestHeaders),networkResponseHeaders:_getMergedNetworkHeaders(networkResponseHeaders),beforeAddRecordingEvent,beforeErrorSampling,_experiments},"number"==typeof sessionSampleRate&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${sessionSampleRate} })`),this._initialOptions.sessionSampleRate=sessionSampleRate),"number"==typeof errorSampleRate&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`),this._initialOptions.errorSampleRate=errorSampleRate),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${MEDIA_SELECTORS}`:MEDIA_SELECTORS),this._isInitialized&&isBrowser_isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return _initialized}set _isInitialized(value){_initialized=value}setupOnce(){isBrowser_isBrowser()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(options){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(options):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const finalOptions=function loadReplayOptionsFromClient(initialOptions){const client=exports_getClient(),opt=client&&client.getOptions(),finalOptions={sessionSampleRate:0,errorSampleRate:0,...object_dropUndefinedKeys(initialOptions)};return opt?(null==initialOptions.sessionSampleRate&&null==initialOptions.errorSampleRate&&null==opt.replaysSessionSampleRate&&null==opt.replaysOnErrorSampleRate&&consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"==typeof opt.replaysSessionSampleRate&&(finalOptions.sessionSampleRate=opt.replaysSessionSampleRate),"number"==typeof opt.replaysOnErrorSampleRate&&(finalOptions.errorSampleRate=opt.replaysOnErrorSampleRate),finalOptions):(consoleSandbox(()=>{console.warn("SDK client is not available.")}),finalOptions)}(this._initialOptions);this._replay=new ReplayContainer({options:finalOptions,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const canvasIntegration=exports_getClient().getIntegrationByName("ReplayCanvas");if(!canvasIntegration)return;this._replay._canvas=canvasIntegration.getOptions()}catch{}}}function _getMergedNetworkHeaders(headers){return[...DEFAULT_NETWORK_HEADERS,...headers.map(header=>header.toLowerCase())]}Replay$1.__initStatic();const integrations_esm_debug_build_DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,extraErrorDataIntegration=(options={})=>{const depth=options.depth||3,captureErrorCause=options.captureErrorCause||!1;return{name:"ExtraErrorData",setupOnce(){},processEvent:(event,hint)=>function _enhanceEventWithErrorData(event,hint={},depth,captureErrorCause){if(!hint.originalException||!isError(hint.originalException))return event;const exceptionName=hint.originalException.name||hint.originalException.constructor.name,errorData=function _extractErrorData(error,captureErrorCause){try{const nativeKeys=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],extraErrorInfo={};for(const key of Object.keys(error)){if(-1!==nativeKeys.indexOf(key))continue;const value=error[key];extraErrorInfo[key]=isError(value)?value.toString():value}if(captureErrorCause&&void 0!==error.cause&&(extraErrorInfo.cause=isError(error.cause)?error.cause.toString():error.cause),"function"==typeof error.toJSON){const serializedError=error.toJSON();for(const key of Object.keys(serializedError)){const value=serializedError[key];extraErrorInfo[key]=isError(value)?value.toString():value}}return extraErrorInfo}catch(oO){integrations_esm_debug_build_DEBUG_BUILD&&logger_logger.error("Unable to extract extra data from the Error object:",oO)}return null}(hint.originalException,captureErrorCause);if(errorData){const contexts={...event.contexts},normalizedErrorData=normalize(errorData,depth);return isPlainObject(normalizedErrorData)&&(addNonEnumerableProperty(normalizedErrorData,"__sentry_skip_normalization__",!0),contexts[exceptionName]=normalizedErrorData),{...event,contexts}}return event}(event,hint,depth,captureErrorCause)}};convertIntegrationFnToClass("ExtraErrorData",extraErrorDataIntegration);const sessionTimingIntegration=()=>{const startTime=Date.now();return{name:"SessionTiming",setupOnce(){},processEvent(event){const now=Date.now();return{...event,extra:{...event.extra,"session:start":startTime,"session:duration":now-startTime,"session:end":now}}}}},stringToByteArray$1=(convertIntegrationFnToClass("SessionTiming",sessionTimingIntegration),function(str){const out=[];let p=0;for(let i=0;i>6|192,out[p++]=63&c|128):55296==(64512&c)&&i+1>18|240,out[p++]=c>>12&63|128,out[p++]=c>>6&63|128,out[p++]=63&c|128):(out[p++]=c>>12|224,out[p++]=c>>6&63|128,out[p++]=63&c|128)}return out}),base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(input2,webSafe){if(!Array.isArray(input2))throw Error("encodeByteArray takes an array as a parameter");this.init_();const byteToCharMap=webSafe?this.byteToCharMapWebSafe_:this.byteToCharMap_,output2=[];for(let i=0;i>6,outByte4=63&byte3;haveByte3||(outByte4=64,haveByte2||(outByte3=64)),output2.push(byteToCharMap[byte1>>2],byteToCharMap[(3&byte1)<<4|byte2>>4],byteToCharMap[outByte3],byteToCharMap[outByte4])}return output2.join("")},encodeString(input2,webSafe){return this.HAS_NATIVE_SUPPORT&&!webSafe?btoa(input2):this.encodeByteArray(stringToByteArray$1(input2),webSafe)},decodeString(input2,webSafe){return this.HAS_NATIVE_SUPPORT&&!webSafe?atob(input2):function(bytes){const out=[];let pos=0,c=0;for(;pos191&&c12<224){const c22=bytes[pos++];out[c++]=String.fromCharCode((31&c12)<<6|63&c22)}else if(c12>239&&c12<365){const u2=((7&c12)<<18|(63&bytes[pos++])<<12|(63&bytes[pos++])<<6|63&bytes[pos++])-65536;out[c++]=String.fromCharCode(55296+(u2>>10)),out[c++]=String.fromCharCode(56320+(1023&u2))}else{const c22=bytes[pos++],c3=bytes[pos++];out[c++]=String.fromCharCode((15&c12)<<12|(63&c22)<<6|63&c3)}}return out.join("")}(this.decodeStringToByteArray(input2,webSafe))},decodeStringToByteArray(input2,webSafe){this.init_();const charToByteMap=webSafe?this.charToByteMapWebSafe_:this.charToByteMap_,output2=[];for(let i=0;i>4),64!==byte3&&(output2.push(byte2<<4&240|byte3>>2),64!==byte4&&output2.push(byte3<<6&192|byte4))}return output2},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let i=0;i=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64urlEncodeWithoutPadding=function(str){return function(str){const utf8Bytes=stringToByteArray$1(str);return base64.encodeByteArray(utf8Bytes,!0)}(str).replace(/\./g,"")},base64Decode=function(str){try{return base64.decodeString(str,!0)}catch(e2){console.error("base64Decode failed: ",e2)}return null},getDefaults=()=>{try{return function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const defaultsJsonString=process.env.__FIREBASE_DEFAULTS__;return defaultsJsonString?JSON.parse(defaultsJsonString):void 0})()||(()=>{if(typeof document>"u")return;let match2;try{match2=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const decoded=match2&&base64Decode(match2[1]);return decoded&&JSON.parse(decoded)})()}catch(e2){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e2}`)}},getDefaultAppConfig=()=>{var _a;return null===(_a=getDefaults())||void 0===_a?void 0:_a.config};class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((resolve,reject)=>{this.resolve=resolve,this.reject=reject})}wrapCallback(callback){return(error,value)=>{error?this.reject(error):this.resolve(value),"function"==typeof callback&&(this.promise.catch(()=>{}),1===callback.length?callback(error):callback(error,value))}}}function index_esm2017_getUA(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}class FirebaseError extends Error{constructor(code,message,customData){super(message),this.code=code,this.customData=customData,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(service,serviceName,errors){this.service=service,this.serviceName=serviceName,this.errors=errors}create(code,...data){const customData=data[0]||{},fullCode=`${this.service}/${code}`,template=this.errors[code],message=template?function replaceTemplate(template,data){return template.replace(PATTERN,(_,key)=>{const value=data[key];return null!=value?String(value):`<${key}?>`})}(template,customData):"Error";return new FirebaseError(fullCode,`${this.serviceName}: ${message} (${fullCode}).`,customData)}}const PATTERN=/\{\$([^}]+)}/g;function index_esm2017_deepEqual(a,b){if(a===b)return!0;const aKeys=Object.keys(a),bKeys=Object.keys(b);for(const k of aKeys){if(!bKeys.includes(k))return!1;const aProp=a[k],bProp=b[k];if(isObject(aProp)&&isObject(bProp)){if(!index_esm2017_deepEqual(aProp,bProp))return!1}else if(aProp!==bProp)return!1}for(const k of bKeys)if(!aKeys.includes(k))return!1;return!0}function isObject(thing){return null!==thing&&"object"==typeof thing}function index_esm2017_querystring(querystringParams){const params=[];for(const[key,value]of Object.entries(querystringParams))Array.isArray(value)?value.forEach(arrayVal=>{params.push(encodeURIComponent(key)+"="+encodeURIComponent(arrayVal))}):params.push(encodeURIComponent(key)+"="+encodeURIComponent(value));return params.length?"&"+params.join("&"):""}class ObserverProxy{constructor(executor,onNoObservers){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=onNoObservers,this.task.then(()=>{executor(this)}).catch(e2=>{this.error(e2)})}next(value){this.forEachObserver(observer=>{observer.next(value)})}error(error){this.forEachObserver(observer=>{observer.error(error)}),this.close(error)}complete(){this.forEachObserver(observer=>{observer.complete()}),this.close()}subscribe(nextOrObserver,error,complete){let observer;if(void 0===nextOrObserver&&void 0===error&&void 0===complete)throw new Error("Missing Observer.");observer=function implementsAnyMethods(obj,methods){if("object"!=typeof obj||null===obj)return!1;for(const method of methods)if(method in obj&&"function"==typeof obj[method])return!0;return!1}(nextOrObserver,["next","error","complete"])?nextOrObserver:{next:nextOrObserver,error,complete},void 0===observer.next&&(observer.next=index_esm2017_noop),void 0===observer.error&&(observer.error=index_esm2017_noop),void 0===observer.complete&&(observer.complete=index_esm2017_noop);const unsub=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?observer.error(this.finalError):observer.complete()}catch{}}),this.observers.push(observer),unsub}unsubscribeOne(i){void 0===this.observers||void 0===this.observers[i]||(delete this.observers[i],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(fn){if(!this.finalized)for(let i=0;i{if(void 0!==this.observers&&void 0!==this.observers[i])try{fn(this.observers[i])}catch(e2){typeof console<"u"&&console.error&&console.error(e2)}})}close(err){this.finalized||(this.finalized=!0,void 0!==err&&(this.finalError=err),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function index_esm2017_noop(){}function index_esm2017_getModularInstance(service){return service&&service._delegate?service._delegate:service}class index_esm2017_Component{constructor(name,instanceFactory,type){this.name=name,this.instanceFactory=instanceFactory,this.type=type,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(mode){return this.instantiationMode=mode,this}setMultipleInstances(multipleInstances){return this.multipleInstances=multipleInstances,this}setServiceProps(props){return this.serviceProps=props,this}setInstanceCreatedCallback(callback){return this.onInstanceCreated=callback,this}}class Provider{constructor(name,container){this.name=name,this.container=container,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(identifier){const normalizedIdentifier=this.normalizeInstanceIdentifier(identifier);if(!this.instancesDeferred.has(normalizedIdentifier)){const deferred=new Deferred;if(this.instancesDeferred.set(normalizedIdentifier,deferred),this.isInitialized(normalizedIdentifier)||this.shouldAutoInitialize())try{const instance=this.getOrInitializeService({instanceIdentifier:normalizedIdentifier});instance&&deferred.resolve(instance)}catch{}}return this.instancesDeferred.get(normalizedIdentifier).promise}getImmediate(options){var _a;const normalizedIdentifier=this.normalizeInstanceIdentifier(options?.identifier),optional=null!==(_a=options?.optional)&&void 0!==_a&&_a;if(!this.isInitialized(normalizedIdentifier)&&!this.shouldAutoInitialize()){if(optional)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:normalizedIdentifier})}catch(e2){if(optional)return null;throw e2}}getComponent(){return this.component}setComponent(component){if(component.name!==this.name)throw Error(`Mismatching Component ${component.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=component,this.shouldAutoInitialize()){if(function isComponentEager(component){return"EAGER"===component.instantiationMode}(component))try{this.getOrInitializeService({instanceIdentifier:"[DEFAULT]"})}catch{}for(const[instanceIdentifier,instanceDeferred]of this.instancesDeferred.entries()){const normalizedIdentifier=this.normalizeInstanceIdentifier(instanceIdentifier);try{const instance=this.getOrInitializeService({instanceIdentifier:normalizedIdentifier});instanceDeferred.resolve(instance)}catch{}}}}clearInstance(identifier="[DEFAULT]"){this.instancesDeferred.delete(identifier),this.instancesOptions.delete(identifier),this.instances.delete(identifier)}delete(){var _this=this;return asyncToGenerator_asyncToGenerator(function*(){const services=Array.from(_this.instances.values());yield Promise.all([...services.filter(service=>"INTERNAL"in service).map(service=>service.INTERNAL.delete()),...services.filter(service=>"_delete"in service).map(service=>service._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(identifier="[DEFAULT]"){return this.instances.has(identifier)}getOptions(identifier="[DEFAULT]"){return this.instancesOptions.get(identifier)||{}}initialize(opts={}){const{options={}}=opts,normalizedIdentifier=this.normalizeInstanceIdentifier(opts.instanceIdentifier);if(this.isInitialized(normalizedIdentifier))throw Error(`${this.name}(${normalizedIdentifier}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const instance=this.getOrInitializeService({instanceIdentifier:normalizedIdentifier,options});for(const[instanceIdentifier,instanceDeferred]of this.instancesDeferred.entries())normalizedIdentifier===this.normalizeInstanceIdentifier(instanceIdentifier)&&instanceDeferred.resolve(instance);return instance}onInit(callback,identifier){var _a;const normalizedIdentifier=this.normalizeInstanceIdentifier(identifier),existingCallbacks=null!==(_a=this.onInitCallbacks.get(normalizedIdentifier))&&void 0!==_a?_a:new Set;existingCallbacks.add(callback),this.onInitCallbacks.set(normalizedIdentifier,existingCallbacks);const existingInstance=this.instances.get(normalizedIdentifier);return existingInstance&&callback(existingInstance,normalizedIdentifier),()=>{existingCallbacks.delete(callback)}}invokeOnInitCallbacks(instance,identifier){const callbacks=this.onInitCallbacks.get(identifier);if(callbacks)for(const callback of callbacks)try{callback(instance,identifier)}catch{}}getOrInitializeService({instanceIdentifier,options={}}){let instance=this.instances.get(instanceIdentifier);if(!instance&&this.component&&(instance=this.component.instanceFactory(this.container,{instanceIdentifier:(identifier=instanceIdentifier,"[DEFAULT]"===identifier?void 0:identifier),options}),this.instances.set(instanceIdentifier,instance),this.instancesOptions.set(instanceIdentifier,options),this.invokeOnInitCallbacks(instance,instanceIdentifier),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,instanceIdentifier,instance)}catch{}var identifier;return instance||null}normalizeInstanceIdentifier(identifier="[DEFAULT]"){return this.component?this.component.multipleInstances?identifier:"[DEFAULT]":identifier}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class index_esm2017_ComponentContainer{constructor(name){this.name=name,this.providers=new Map}addComponent(component){const provider=this.getProvider(component.name);if(provider.isComponentSet())throw new Error(`Component ${component.name} has already been registered with ${this.name}`);provider.setComponent(component)}addOrOverwriteComponent(component){this.getProvider(component.name).isComponentSet()&&this.providers.delete(component.name),this.addComponent(component)}getProvider(name){if(this.providers.has(name))return this.providers.get(name);const provider=new Provider(name,this);return this.providers.set(name,provider),provider}getProviders(){return Array.from(this.providers.values())}}const instances=[];var LogLevel=function(LogLevel2){return LogLevel2[LogLevel2.DEBUG=0]="DEBUG",LogLevel2[LogLevel2.VERBOSE=1]="VERBOSE",LogLevel2[LogLevel2.INFO=2]="INFO",LogLevel2[LogLevel2.WARN=3]="WARN",LogLevel2[LogLevel2.ERROR=4]="ERROR",LogLevel2[LogLevel2.SILENT=5]="SILENT",LogLevel2}(LogLevel||{});const levelStringToEnum={debug:LogLevel.DEBUG,verbose:LogLevel.VERBOSE,info:LogLevel.INFO,warn:LogLevel.WARN,error:LogLevel.ERROR,silent:LogLevel.SILENT},defaultLogLevel=LogLevel.INFO,ConsoleMethod={[LogLevel.DEBUG]:"log",[LogLevel.VERBOSE]:"log",[LogLevel.INFO]:"info",[LogLevel.WARN]:"warn",[LogLevel.ERROR]:"error"},defaultLogHandler=(instance,logType,...args)=>{if(logTypeconstructors.some(c=>object instanceof c);let idbProxyableTypes,cursorAdvanceMethods;const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;let idbProxyTraps={get(target,prop2,receiver){if(target instanceof IDBTransaction){if("done"===prop2)return transactionDoneMap.get(target);if("objectStoreNames"===prop2)return target.objectStoreNames||transactionStoreNamesMap.get(target);if("store"===prop2)return receiver.objectStoreNames[1]?void 0:receiver.objectStore(receiver.objectStoreNames[0])}return wrap_idb_value_wrap(target[prop2])},set:(target,prop2,value)=>(target[prop2]=value,!0),has:(target,prop2)=>target instanceof IDBTransaction&&("done"===prop2||"store"===prop2)||prop2 in target};function transformCachableValue(value){return"function"==typeof value?function wrapFunction(func){return func!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(func)?function(...args){return func.apply(unwrap(this),args),wrap_idb_value_wrap(cursorRequestMap.get(this))}:function(...args){return wrap_idb_value_wrap(func.apply(unwrap(this),args))}:function(storeNames,...args){const tx=func.call(unwrap(this),storeNames,...args);return transactionStoreNamesMap.set(tx,storeNames.sort?storeNames.sort():[storeNames]),wrap_idb_value_wrap(tx)}}(value):(value instanceof IDBTransaction&&function cacheDonePromiseForTransaction(tx){if(transactionDoneMap.has(tx))return;const done=new Promise((resolve,reject)=>{const unlisten=()=>{tx.removeEventListener("complete",complete),tx.removeEventListener("error",error),tx.removeEventListener("abort",error)},complete=()=>{resolve(),unlisten()},error=()=>{reject(tx.error||new DOMException("AbortError","AbortError")),unlisten()};tx.addEventListener("complete",complete),tx.addEventListener("error",error),tx.addEventListener("abort",error)});transactionDoneMap.set(tx,done)}(value),instanceOfAny(value,function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(value,idbProxyTraps):value)}function wrap_idb_value_wrap(value){if(value instanceof IDBRequest)return function promisifyRequest(request){const promise=new Promise((resolve,reject)=>{const unlisten=()=>{request.removeEventListener("success",success),request.removeEventListener("error",error)},success=()=>{resolve(wrap_idb_value_wrap(request.result)),unlisten()},error=()=>{reject(request.error),unlisten()};request.addEventListener("success",success),request.addEventListener("error",error)});return promise.then(value=>{value instanceof IDBCursor&&cursorRequestMap.set(value,request)}).catch(()=>{}),reverseTransformCache.set(promise,request),promise}(value);if(transformCache.has(value))return transformCache.get(value);const newValue=transformCachableValue(value);return newValue!==value&&(transformCache.set(value,newValue),reverseTransformCache.set(newValue,value)),newValue}const unwrap=value=>reverseTransformCache.get(value),readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(target,prop2){if(!(target instanceof IDBDatabase)||prop2 in target||"string"!=typeof prop2)return;if(cachedMethods.get(prop2))return cachedMethods.get(prop2);const targetFuncName=prop2.replace(/FromIndex$/,""),useIndex=prop2!==targetFuncName,isWrite=writeMethods.includes(targetFuncName);if(!(targetFuncName in(useIndex?IDBIndex:IDBObjectStore).prototype)||!isWrite&&!readMethods.includes(targetFuncName))return;const method=function(){var _ref=asyncToGenerator_asyncToGenerator(function*(storeName,...args){const tx=this.transaction(storeName,isWrite?"readwrite":"readonly");let target2=tx.store;return useIndex&&(target2=target2.index(args.shift())),(yield Promise.all([target2[targetFuncName](...args),isWrite&&tx.done]))[0]});return function(_x){return _ref.apply(this,arguments)}}();return cachedMethods.set(prop2,method),method}!function replaceTraps(callback){idbProxyTraps=callback(idbProxyTraps)}(oldTraps=>({...oldTraps,get:(target,prop2,receiver)=>getMethod(target,prop2)||oldTraps.get(target,prop2,receiver),has:(target,prop2)=>!!getMethod(target,prop2)||oldTraps.has(target,prop2)}));class PlatformLoggerServiceImpl{constructor(container){this.container=container}getPlatformInfoString(){return this.container.getProviders().map(provider=>{if(function isVersionServiceProvider(provider){const component=provider.getComponent();return"VERSION"===component?.type}(provider)){const service=provider.getImmediate();return`${service.library}/${service.version}`}return null}).filter(logString=>logString).join(" ")}}const name$o="@firebase/app",index_esm2017_logger=new Logger("@firebase/app"),index_esm2017_DEFAULT_ENTRY_NAME="[DEFAULT]",PLATFORM_LOG_STRING={[name$o]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},_apps=new Map,_serverApps=new Map,_components=new Map;function _addComponent(app,component){try{app.container.addComponent(component)}catch(e2){index_esm2017_logger.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`,e2)}}function _registerComponent(component){const componentName=component.name;if(_components.has(componentName))return index_esm2017_logger.debug(`There were multiple attempts to register component ${componentName}.`),!1;_components.set(componentName,component);for(const app of _apps.values())_addComponent(app,component);for(const serverApp of _serverApps.values())_addComponent(serverApp,component);return!0}function index_esm2017_isFirebaseServerApp(obj){return void 0!==obj.settings}const ERROR_FACTORY=new ErrorFactory("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class FirebaseAppImpl{constructor(options,config2,container){this._isDeleted=!1,this._options=Object.assign({},options),this._config=Object.assign({},config2),this._name=config2.name,this._automaticDataCollectionEnabled=config2.automaticDataCollectionEnabled,this._container=container,this.container.addComponent(new index_esm2017_Component("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(val){this.checkDestroyed(),this._automaticDataCollectionEnabled=val}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(val){this._isDeleted=val}checkDestroyed(){if(this.isDeleted)throw ERROR_FACTORY.create("app-deleted",{appName:this._name})}}const index_esm2017_SDK_VERSION="10.11.1";function initializeApp(_options,rawConfig={}){let options=_options;"object"!=typeof rawConfig&&(rawConfig={name:rawConfig});const config2=Object.assign({name:index_esm2017_DEFAULT_ENTRY_NAME,automaticDataCollectionEnabled:!1},rawConfig),name=config2.name;if("string"!=typeof name||!name)throw ERROR_FACTORY.create("bad-app-name",{appName:String(name)});if(options||(options=getDefaultAppConfig()),!options)throw ERROR_FACTORY.create("no-options");const existingApp=_apps.get(name);if(existingApp){if(index_esm2017_deepEqual(options,existingApp.options)&&index_esm2017_deepEqual(config2,existingApp.config))return existingApp;throw ERROR_FACTORY.create("duplicate-app",{appName:name})}const container=new index_esm2017_ComponentContainer(name);for(const component of _components.values())container.addComponent(component);const newApp=new FirebaseAppImpl(options,config2,container);return _apps.set(name,newApp),newApp}function index_esm2017_getApp(name=index_esm2017_DEFAULT_ENTRY_NAME){const app=_apps.get(name);if(!app&&name===index_esm2017_DEFAULT_ENTRY_NAME&&getDefaultAppConfig())return initializeApp();if(!app)throw ERROR_FACTORY.create("no-app",{appName:name});return app}function getApps(){return Array.from(_apps.values())}function index_esm2017_registerVersion(libraryKeyOrName,version2,variant){var _a;let library=null!==(_a=PLATFORM_LOG_STRING[libraryKeyOrName])&&void 0!==_a?_a:libraryKeyOrName;variant&&(library+=`-${variant}`);const libraryMismatch=library.match(/\s|\//),versionMismatch=version2.match(/\s|\//);if(libraryMismatch||versionMismatch){const warning=[`Unable to register library "${library}" with version "${version2}":`];return libraryMismatch&&warning.push(`library name "${library}" contains illegal characters (whitespace or "/")`),libraryMismatch&&versionMismatch&&warning.push("and"),versionMismatch&&warning.push(`version name "${version2}" contains illegal characters (whitespace or "/")`),void index_esm2017_logger.warn(warning.join(" "))}_registerComponent(new index_esm2017_Component(`${library}-version`,()=>({library,version:version2}),"VERSION"))}const DB_NAME="firebase-heartbeat-database",DB_VERSION=1,STORE_NAME="firebase-heartbeat-store";let dbPromise=null;function getDbPromise(){return dbPromise||(dbPromise=function openDB(name,version2,{blocked,upgrade,blocking,terminated}={}){const request=indexedDB.open(name,version2),openPromise=wrap_idb_value_wrap(request);return upgrade&&request.addEventListener("upgradeneeded",event=>{upgrade(wrap_idb_value_wrap(request.result),event.oldVersion,event.newVersion,wrap_idb_value_wrap(request.transaction),event)}),blocked&&request.addEventListener("blocked",event=>blocked(event.oldVersion,event.newVersion,event)),openPromise.then(db=>{terminated&&db.addEventListener("close",()=>terminated()),blocking&&db.addEventListener("versionchange",event=>blocking(event.oldVersion,event.newVersion,event))}).catch(()=>{}),openPromise}(DB_NAME,DB_VERSION,{upgrade:(db,oldVersion)=>{if(0===oldVersion)try{db.createObjectStore(STORE_NAME)}catch(e2){console.warn(e2)}}}).catch(e2=>{throw ERROR_FACTORY.create("idb-open",{originalErrorMessage:e2.message})})),dbPromise}function _readHeartbeatsFromIndexedDB(){return(_readHeartbeatsFromIndexedDB=asyncToGenerator_asyncToGenerator(function*(app){try{const tx=(yield getDbPromise()).transaction(STORE_NAME),result=yield tx.objectStore(STORE_NAME).get(computeKey(app));return yield tx.done,result}catch(e2){if(e2 instanceof FirebaseError)index_esm2017_logger.warn(e2.message);else{const idbGetError=ERROR_FACTORY.create("idb-get",{originalErrorMessage:e2?.message});index_esm2017_logger.warn(idbGetError.message)}}})).apply(this,arguments)}function writeHeartbeatsToIndexedDB(_x3,_x4){return _writeHeartbeatsToIndexedDB.apply(this,arguments)}function _writeHeartbeatsToIndexedDB(){return(_writeHeartbeatsToIndexedDB=asyncToGenerator_asyncToGenerator(function*(app,heartbeatObject){try{const tx=(yield getDbPromise()).transaction(STORE_NAME,"readwrite");yield tx.objectStore(STORE_NAME).put(heartbeatObject,computeKey(app)),yield tx.done}catch(e2){if(e2 instanceof FirebaseError)index_esm2017_logger.warn(e2.message);else{const idbGetError=ERROR_FACTORY.create("idb-set",{originalErrorMessage:e2?.message});index_esm2017_logger.warn(idbGetError.message)}}})).apply(this,arguments)}function computeKey(app){return`${app.name}!${app.options.appId}`}class HeartbeatServiceImpl{constructor(container){this.container=container,this._heartbeatsCache=null;const app=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(app),this._heartbeatsCachePromise=this._storage.read().then(result=>(this._heartbeatsCache=result,result))}triggerHeartbeat(){var _this=this;return asyncToGenerator_asyncToGenerator(function*(){var _a,_b;const agent=_this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),date=getUTCDateString();if((null!=(null===(_a=_this._heartbeatsCache)||void 0===_a?void 0:_a.heartbeats)||(_this._heartbeatsCache=yield _this._heartbeatsCachePromise,null!=(null===(_b=_this._heartbeatsCache)||void 0===_b?void 0:_b.heartbeats)))&&_this._heartbeatsCache.lastSentHeartbeatDate!==date&&!_this._heartbeatsCache.heartbeats.some(singleDateHeartbeat=>singleDateHeartbeat.date===date))return _this._heartbeatsCache.heartbeats.push({date,agent}),_this._heartbeatsCache.heartbeats=_this._heartbeatsCache.heartbeats.filter(singleDateHeartbeat=>{const hbTimestamp=new Date(singleDateHeartbeat.date).valueOf();return Date.now()-hbTimestamp<=2592e6}),_this._storage.overwrite(_this._heartbeatsCache)})()}getHeartbeatsHeader(){var _this2=this;return asyncToGenerator_asyncToGenerator(function*(){var _a;if(null===_this2._heartbeatsCache&&(yield _this2._heartbeatsCachePromise),null==(null===(_a=_this2._heartbeatsCache)||void 0===_a?void 0:_a.heartbeats)||0===_this2._heartbeatsCache.heartbeats.length)return"";const date=getUTCDateString(),{heartbeatsToSend,unsentEntries}=function extractHeartbeatsForHeader(heartbeatsCache,maxSize=1024){const heartbeatsToSend=[];let unsentEntries=heartbeatsCache.slice();for(const singleDateHeartbeat of heartbeatsCache){const heartbeatEntry=heartbeatsToSend.find(hb=>hb.agent===singleDateHeartbeat.agent);if(heartbeatEntry){if(heartbeatEntry.dates.push(singleDateHeartbeat.date),countBytes(heartbeatsToSend)>maxSize){heartbeatEntry.dates.pop();break}}else if(heartbeatsToSend.push({agent:singleDateHeartbeat.agent,dates:[singleDateHeartbeat.date]}),countBytes(heartbeatsToSend)>maxSize){heartbeatsToSend.pop();break}unsentEntries=unsentEntries.slice(1)}return{heartbeatsToSend,unsentEntries}}(_this2._heartbeatsCache.heartbeats),headerString=base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:heartbeatsToSend}));return _this2._heartbeatsCache.lastSentHeartbeatDate=date,unsentEntries.length>0?(_this2._heartbeatsCache.heartbeats=unsentEntries,yield _this2._storage.overwrite(_this2._heartbeatsCache)):(_this2._heartbeatsCache.heartbeats=[],_this2._storage.overwrite(_this2._heartbeatsCache)),headerString})()}}function getUTCDateString(){return(new Date).toISOString().substring(0,10)}class HeartbeatStorageImpl{constructor(app){this.app=app,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return asyncToGenerator_asyncToGenerator(function*(){return!!function isIndexedDBAvailable(){try{return"object"==typeof indexedDB}catch{return!1}}()&&function validateIndexedDBOpenable(){return new Promise((resolve,reject)=>{try{let preExist=!0;const DB_CHECK_NAME="validate-browser-context-for-indexeddb-analytics-module",request=self.indexedDB.open(DB_CHECK_NAME);request.onsuccess=()=>{request.result.close(),preExist||self.indexedDB.deleteDatabase(DB_CHECK_NAME),resolve(!0)},request.onupgradeneeded=()=>{preExist=!1},request.onerror=()=>{var _a;reject((null===(_a=request.error)||void 0===_a?void 0:_a.message)||"")}}catch(error){reject(error)}})}().then(()=>!0).catch(()=>!1)})()}read(){var _this3=this;return asyncToGenerator_asyncToGenerator(function*(){if(yield _this3._canUseIndexedDBPromise){const idbHeartbeatObject=yield function readHeartbeatsFromIndexedDB(_x2){return _readHeartbeatsFromIndexedDB.apply(this,arguments)}(_this3.app);return idbHeartbeatObject?.heartbeats?idbHeartbeatObject:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(heartbeatsObject){var _this4=this;return asyncToGenerator_asyncToGenerator(function*(){var _a;if(yield _this4._canUseIndexedDBPromise){const existingHeartbeatsObject=yield _this4.read();return writeHeartbeatsToIndexedDB(_this4.app,{lastSentHeartbeatDate:null!==(_a=heartbeatsObject.lastSentHeartbeatDate)&&void 0!==_a?_a:existingHeartbeatsObject.lastSentHeartbeatDate,heartbeats:heartbeatsObject.heartbeats})}})()}add(heartbeatsObject){var _this5=this;return asyncToGenerator_asyncToGenerator(function*(){var _a;if(yield _this5._canUseIndexedDBPromise){const existingHeartbeatsObject=yield _this5.read();return writeHeartbeatsToIndexedDB(_this5.app,{lastSentHeartbeatDate:null!==(_a=heartbeatsObject.lastSentHeartbeatDate)&&void 0!==_a?_a:existingHeartbeatsObject.lastSentHeartbeatDate,heartbeats:[...existingHeartbeatsObject.heartbeats,...heartbeatsObject.heartbeats]})}})()}}function countBytes(heartbeatsCache){return base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:heartbeatsCache})).length}!function registerCoreComponents(variant){_registerComponent(new index_esm2017_Component("platform-logger",container=>new PlatformLoggerServiceImpl(container),"PRIVATE")),_registerComponent(new index_esm2017_Component("heartbeat",container=>new HeartbeatServiceImpl(container),"PRIVATE")),index_esm2017_registerVersion(name$o,"0.10.2",variant),index_esm2017_registerVersion(name$o,"0.10.2","esm2017"),index_esm2017_registerVersion("fire-js","")}(""),index_esm2017_registerVersion("firebase","10.11.1","app");class Action extends Subscription_Subscription{constructor(scheduler,work){super()}schedule(state2,delay2=0){return this}}const intervalProvider={setInterval(handler,timeout,...args){const{delegate}=intervalProvider;return delegate?.setInterval?delegate.setInterval(handler,timeout,...args):setInterval(handler,timeout,...args)},clearInterval(handle){const{delegate}=intervalProvider;return(delegate?.clearInterval||clearInterval)(handle)},delegate:void 0};class AsyncAction extends Action{constructor(scheduler,work){super(scheduler,work),this.scheduler=scheduler,this.work=work,this.pending=!1}schedule(state2,delay2=0){var _a;if(this.closed)return this;this.state=state2;const id=this.id,scheduler=this.scheduler;return null!=id&&(this.id=this.recycleAsyncId(scheduler,id,delay2)),this.pending=!0,this.delay=delay2,this.id=null!==(_a=this.id)&&void 0!==_a?_a:this.requestAsyncId(scheduler,this.id,delay2),this}requestAsyncId(scheduler,_id2,delay2=0){return intervalProvider.setInterval(scheduler.flush.bind(scheduler,this),delay2)}recycleAsyncId(_scheduler,id,delay2=0){if(null!=delay2&&this.delay===delay2&&!1===this.pending)return id;null!=id&&intervalProvider.clearInterval(id)}execute(state2,delay2){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const error=this._execute(state2,delay2);if(error)return error;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(state2,_delay){let errorValue,errored=!1;try{this.work(state2)}catch(e2){errored=!0,errorValue=e2||new Error("Scheduled action threw falsy error")}if(errored)return this.unsubscribe(),errorValue}unsubscribe(){if(!this.closed){const{id,scheduler}=this,{actions}=scheduler;this.work=this.state=this.scheduler=null,this.pending=!1,arrRemove(actions,this),null!=id&&(this.id=this.recycleAsyncId(scheduler,id,null)),this.delay=null,super.unsubscribe()}}}const dateTimestampProvider={now:()=>(dateTimestampProvider.delegate||Date).now(),delegate:void 0};class Scheduler{constructor(schedulerActionCtor,now=Scheduler.now){this.schedulerActionCtor=schedulerActionCtor,this.now=now}schedule(work,delay2=0,state2){return new this.schedulerActionCtor(this,work).schedule(state2,delay2)}}Scheduler.now=dateTimestampProvider.now;class AsyncScheduler extends Scheduler{constructor(SchedulerAction,now=Scheduler.now){super(SchedulerAction,now),this.actions=[],this._active=!1}flush(action){const{actions}=this;if(this._active)return void actions.push(action);let error;this._active=!0;do{if(error=action.execute(action.state,action.delay))break}while(action=actions.shift());if(this._active=!1,error){for(;action=actions.shift();)action.unsubscribe();throw error}}}const queueScheduler=new class QueueScheduler extends AsyncScheduler{}(class QueueAction extends AsyncAction{constructor(scheduler,work){super(scheduler,work),this.scheduler=scheduler,this.work=work}schedule(state2,delay2=0){return delay2>0?super.schedule(state2,delay2):(this.delay=delay2,this.state=state2,this.scheduler.flush(this),this)}execute(state2,delay2){return delay2>0||this.closed?super.execute(state2,delay2):this._execute(state2,delay2)}requestAsyncId(scheduler,id,delay2=0){return null!=delay2&&delay2>0||null==delay2&&this.delay>0?super.requestAsyncId(scheduler,id,delay2):(scheduler.flush(this),0)}}),asyncScheduler=new AsyncScheduler(AsyncAction),async_async=asyncScheduler;function tap_tap(observerOrNext,error,complete){const tapObserver=isFunction(observerOrNext)||error||complete?{next:observerOrNext,error,complete}:observerOrNext;return tapObserver?operate((source,subscriber)=>{var _a;null===(_a=tapObserver.subscribe)||void 0===_a||_a.call(tapObserver);let isUnsub=!0;source.subscribe(createOperatorSubscriber(subscriber,value=>{var _a2;null===(_a2=tapObserver.next)||void 0===_a2||_a2.call(tapObserver,value),subscriber.next(value)},()=>{var _a2;isUnsub=!1,null===(_a2=tapObserver.complete)||void 0===_a2||_a2.call(tapObserver),subscriber.complete()},err=>{var _a2;isUnsub=!1,null===(_a2=tapObserver.error)||void 0===_a2||_a2.call(tapObserver,err),subscriber.error(err)},()=>{var _a2,_b;isUnsub&&(null===(_a2=tapObserver.unsubscribe)||void 0===_a2||_a2.call(tapObserver)),null===(_b=tapObserver.finalize)||void 0===_b||_b.call(tapObserver)}))}):identity}const angular_fire_VERSION=new Version("ANGULARFIRE2_VERSION");const angular_fire_getAllInstancesOf=(identifier,app)=>{const apps=app?[app]:getApps(),instances2=[];return apps.forEach(app2=>{app2.container.getProvider(identifier).instances.forEach(instance=>{instances2.includes(instance)||instances2.push(instance)})}),instances2};class angular_fire_AppCheckInstances{constructor(){return angular_fire_getAllInstancesOf(\u0275APP_CHECK_PROVIDER_NAME)}}const \u0275APP_CHECK_PROVIDER_NAME="app-check";function angular_fire_noop(){}class \u0275ZoneScheduler{zone;delegate;constructor(zone,delegate=queueScheduler){this.zone=zone,this.delegate=delegate}now(){return this.delegate.now()}schedule(work,delay2,state2){const targetZone=this.zone;return this.delegate.schedule(function(state3){targetZone.runGuarded(()=>{work.apply(this,[state3])})},delay2,state2)}}class BlockUntilFirstOperator{zone;task=null;constructor(zone){this.zone=zone}call(subscriber,source){const unscheduleTask=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",angular_fire_noop,{},angular_fire_noop,angular_fire_noop)),source.pipe(tap_tap({next:unscheduleTask,complete:unscheduleTask,error:unscheduleTask})).subscribe(subscriber).add(unscheduleTask)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let angular_fire_AngularFireSchedulers=(()=>{class \u0275AngularFireSchedulers2{ngZone;outsideAngular;insideAngular;constructor(ngZone){this.ngZone=ngZone,this.outsideAngular=ngZone.runOutsideAngular(()=>new \u0275ZoneScheduler(Zone.current)),this.insideAngular=ngZone.run(()=>new \u0275ZoneScheduler(Zone.current,asyncScheduler)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(t){return new(t||\u0275AngularFireSchedulers2)(\u0275\u0275inject(core_NgZone))};static \u0275prov=core_defineInjectable({token:\u0275AngularFireSchedulers2,factory:\u0275AngularFireSchedulers2.\u0275fac,providedIn:"root"})}return \u0275AngularFireSchedulers2})();function getSchedulers(){const schedulers=globalThis.\u0275AngularFireScheduler;if(!schedulers)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return schedulers}function run(fn){return getSchedulers().ngZone.run(()=>fn())}function keepUnstableUntilFirst(obs$){return function \u0275keepUnstableUntilFirstFactory(schedulers){return function(obs$){return(obs$=obs$.lift(new BlockUntilFirstOperator(schedulers.ngZone))).pipe(subscribeOn(schedulers.outsideAngular),observeOn_observeOn(schedulers.insideAngular))}}(getSchedulers())(obs$)}const zoneWrapFn=(it,macrotask)=>function(){const _arguments=arguments;return macrotask&&setTimeout(()=>{"scheduled"===macrotask.state&¯otask.invoke()},10),run(()=>it.apply(void 0,_arguments))},angular_fire_zoneWrap=(it,blockUntilFirst)=>function(){let macrotask;const _arguments=arguments;for(let i=0;iZone.current.scheduleMacroTask("firebaseZoneBlock",angular_fire_noop,{},angular_fire_noop,angular_fire_noop))),_arguments[i]=zoneWrapFn(_arguments[i],macrotask));const ret=function angular_fire_runOutsideAngular(fn){return getSchedulers().ngZone.runOutsideAngular(()=>fn())}(()=>it.apply(this,_arguments));if(!blockUntilFirst){if(ret instanceof Observable_Observable){const schedulers=getSchedulers();return ret.pipe(subscribeOn(schedulers.outsideAngular),observeOn_observeOn(schedulers.insideAngular))}return run(()=>ret)}return ret instanceof Observable_Observable?ret.pipe(keepUnstableUntilFirst):ret instanceof Promise?run(()=>new Promise((resolve,reject)=>ret.then(it2=>run(()=>resolve(it2)),reason=>run(()=>reject(reason))))):"function"==typeof ret&¯otask?function(){return setTimeout(()=>{macrotask&&"scheduled"===macrotask.state&¯otask.invoke()},10),ret.apply(this,arguments)}:run(()=>ret)};class FirebaseApp{constructor(app){return app}}class angular_fire_app_FirebaseApps{constructor(){return getApps()}}const PROVIDED_FIREBASE_APPS=new InjectionToken("angularfire2._apps"),DEFAULT_FIREBASE_APP_PROVIDER={provide:FirebaseApp,useFactory:function defaultFirebaseAppFactory(provided){return provided&&1===provided.length?provided[0]:new FirebaseApp(index_esm2017_getApp())},deps:[[new core_Optional,PROVIDED_FIREBASE_APPS]]},FIREBASE_APPS_PROVIDER={provide:angular_fire_app_FirebaseApps,deps:[[new core_Optional,PROVIDED_FIREBASE_APPS]]};function firebaseAppFactory(fn){return(zone,injector)=>{const app=zone.runOutsideAngular(()=>fn(injector));return new FirebaseApp(app)}}let FirebaseAppModule=(()=>{class FirebaseAppModule2{constructor(platformId){index_esm2017_registerVersion("angularfire",angular_fire_VERSION.full,"core"),index_esm2017_registerVersion("angularfire",angular_fire_VERSION.full,"app"),index_esm2017_registerVersion("angular",core_VERSION.full,platformId.toString())}static \u0275fac=function(t){return new(t||FirebaseAppModule2)(\u0275\u0275inject(core_PLATFORM_ID))};static \u0275mod=\u0275\u0275defineNgModule({type:FirebaseAppModule2});static \u0275inj=\u0275\u0275defineInjector({providers:[DEFAULT_FIREBASE_APP_PROVIDER,FIREBASE_APPS_PROVIDER]})}return FirebaseAppModule2})();function provideFirebaseApp(fn,...deps){return{ngModule:FirebaseAppModule,providers:[{provide:PROVIDED_FIREBASE_APPS,useFactory:firebaseAppFactory(fn),multi:!0,deps:[core_NgZone,core_Injector,angular_fire_AngularFireSchedulers,...deps]}]}}const angular_fire_app_initializeApp=angular_fire_zoneWrap(initializeApp,!0);const prodErrorMap=function _prodErrorMap(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},_DEFAULT_AUTH_ERROR_FACTORY=new ErrorFactory("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),logClient=new Logger("@firebase/auth");function _logError(msg,...args){logClient.logLevel<=LogLevel.ERROR&&logClient.error(`Auth (${index_esm2017_SDK_VERSION}): ${msg}`,...args)}function _fail(authOrCode,...rest){throw createErrorInternal(authOrCode,...rest)}function _createError(authOrCode,...rest){return createErrorInternal(authOrCode,...rest)}function _errorWithCustomMessage(auth,code,message){const errorMap=Object.assign(Object.assign({},prodErrorMap()),{[code]:message});return new ErrorFactory("auth","Firebase",errorMap).create(code,{appName:auth.name})}function _serverAppCurrentUserOperationNotSupportedError(auth){return _errorWithCustomMessage(auth,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function createErrorInternal(authOrCode,...rest){if("string"!=typeof authOrCode){const code=rest[0],fullParams=[...rest.slice(1)];return fullParams[0]&&(fullParams[0].appName=authOrCode.name),authOrCode._errorFactory.create(code,...fullParams)}return _DEFAULT_AUTH_ERROR_FACTORY.create(authOrCode,...rest)}function _assert(assertion,authOrCode,...rest){if(!assertion)throw createErrorInternal(authOrCode,...rest)}function debugFail(failure){const message="INTERNAL ASSERTION FAILED: "+failure;throw _logError(message),new Error(message)}function debugAssert(assertion,message){assertion||debugFail(message)}function _getCurrentScheme(){var _a;return typeof self<"u"&&(null===(_a=self.location)||void 0===_a?void 0:_a.protocol)||null}function _isOnline(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function _isHttpOrHttps(){return"http:"===_getCurrentScheme()||"https:"===_getCurrentScheme()}()||function isBrowserExtension(){const runtime2="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof runtime2&&void 0!==runtime2.id}()||"connection"in navigator))||navigator.onLine}class Delay{constructor(shortDelay,longDelay){this.shortDelay=shortDelay,this.longDelay=longDelay,debugAssert(longDelay>shortDelay,"Short delay should be less than long delay!"),this.isMobile=function isMobileCordova(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(index_esm2017_getUA())}()||function isReactNative(){return"object"==typeof navigator&&"ReactNative"===navigator.product}()}get(){return _isOnline()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class FetchProvider{static initialize(fetchImpl,headersImpl,responseImpl){this.fetchImpl=fetchImpl,headersImpl&&(this.headersImpl=headersImpl),responseImpl&&(this.responseImpl=responseImpl)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void debugFail("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void debugFail("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void debugFail("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const SERVER_ERROR_MAP={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},DEFAULT_API_TIMEOUT_MS=new Delay(3e4,6e4);function _addTidIfNecessary(auth,request){return auth.tenantId&&!request.tenantId?Object.assign(Object.assign({},request),{tenantId:auth.tenantId}):request}function _performApiRequest(_x,_x2,_x3,_x4){return _performApiRequest2.apply(this,arguments)}function _performApiRequest2(){return(_performApiRequest2=asyncToGenerator_asyncToGenerator(function*(auth,method,path,request,customErrorMap={}){return _performFetchWithErrorHandling(auth,customErrorMap,asyncToGenerator_asyncToGenerator(function*(){let body={},params={};request&&("GET"===method?params=request:body={body:JSON.stringify(request)});const query2=index_esm2017_querystring(Object.assign({key:auth.config.apiKey},params)).slice(1),headers=yield auth._getAdditionalHeaders();return headers["Content-Type"]="application/json",auth.languageCode&&(headers["X-Firebase-Locale"]=auth.languageCode),FetchProvider.fetch()(_getFinalTarget(auth,auth.config.apiHost,path,query2),Object.assign({method,headers,referrerPolicy:"no-referrer"},body))}))})).apply(this,arguments)}function _performFetchWithErrorHandling(_x5,_x6,_x7){return _performFetchWithErrorHandling2.apply(this,arguments)}function _performFetchWithErrorHandling2(){return(_performFetchWithErrorHandling2=asyncToGenerator_asyncToGenerator(function*(auth,customErrorMap,fetchFn){auth._canInitEmulator=!1;const errorMap=Object.assign(Object.assign({},SERVER_ERROR_MAP),customErrorMap);try{const networkTimeout=new NetworkTimeout(auth),response=yield Promise.race([fetchFn(),networkTimeout.promise]);networkTimeout.clearNetworkTimeout();const json=yield response.json();if("needConfirmation"in json)throw _makeTaggedError(auth,"account-exists-with-different-credential",json);if(response.ok&&!("errorMessage"in json))return json;{const errorMessage=response.ok?json.errorMessage:json.error.message,[serverErrorCode,serverErrorMessage]=errorMessage.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===serverErrorCode)throw _makeTaggedError(auth,"credential-already-in-use",json);if("EMAIL_EXISTS"===serverErrorCode)throw _makeTaggedError(auth,"email-already-in-use",json);if("USER_DISABLED"===serverErrorCode)throw _makeTaggedError(auth,"user-disabled",json);const authError=errorMap[serverErrorCode]||serverErrorCode.toLowerCase().replace(/[_\s]+/g,"-");if(serverErrorMessage)throw _errorWithCustomMessage(auth,authError,serverErrorMessage);_fail(auth,authError)}}catch(e2){if(e2 instanceof FirebaseError)throw e2;_fail(auth,"network-request-failed",{message:String(e2)})}})).apply(this,arguments)}function _getFinalTarget(auth,host,path,query2){const base=`${host}${path}?${query2}`;return auth.config.emulator?function _emulatorUrl(config2,path){debugAssert(config2.emulator,"Emulator should always be set here");const{url}=config2.emulator;return path?`${url}${path.startsWith("/")?path.slice(1):path}`:url}(auth.config,base):`${auth.config.apiScheme}://${base}`}class NetworkTimeout{constructor(auth){this.auth=auth,this.timer=null,this.promise=new Promise((_,reject)=>{this.timer=setTimeout(()=>reject(_createError(this.auth,"network-request-failed")),DEFAULT_API_TIMEOUT_MS.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function _makeTaggedError(auth,code,response){const errorParams={appName:auth.name};response.email&&(errorParams.email=response.email),response.phoneNumber&&(errorParams.phoneNumber=response.phoneNumber);const error=_createError(auth,code,errorParams);return error.customData._tokenResponse=response,error}function _deleteAccount(){return(_deleteAccount=asyncToGenerator_asyncToGenerator(function*(auth,request){return _performApiRequest(auth,"POST","/v1/accounts:delete",request)})).apply(this,arguments)}function getAccountInfo(_x19,_x20){return _getAccountInfo.apply(this,arguments)}function _getAccountInfo(){return(_getAccountInfo=asyncToGenerator_asyncToGenerator(function*(auth,request){return _performApiRequest(auth,"POST","/v1/accounts:lookup",request)})).apply(this,arguments)}function utcTimestampToDateString(utcTimestamp){if(utcTimestamp)try{const date=new Date(Number(utcTimestamp));if(!isNaN(date.getTime()))return date.toUTCString()}catch{}}function _getIdTokenResult(){return(_getIdTokenResult=asyncToGenerator_asyncToGenerator(function*(user2,forceRefresh=!1){const userInternal=index_esm2017_getModularInstance(user2),token=yield userInternal.getIdToken(forceRefresh),claims=_parseToken(token);_assert(claims&&claims.exp&&claims.auth_time&&claims.iat,userInternal.auth,"internal-error");const firebase="object"==typeof claims.firebase?claims.firebase:void 0,signInProvider=firebase?.sign_in_provider;return{claims,token,authTime:utcTimestampToDateString(secondsStringToMilliseconds(claims.auth_time)),issuedAtTime:utcTimestampToDateString(secondsStringToMilliseconds(claims.iat)),expirationTime:utcTimestampToDateString(secondsStringToMilliseconds(claims.exp)),signInProvider:signInProvider||null,signInSecondFactor:firebase?.sign_in_second_factor||null}})).apply(this,arguments)}function secondsStringToMilliseconds(seconds){return 1e3*Number(seconds)}function _parseToken(token){const[algorithm,payload,signature]=token.split(".");if(void 0===algorithm||void 0===payload||void 0===signature)return _logError("JWT malformed, contained fewer than 3 sections"),null;try{const decoded=base64Decode(payload);return decoded?JSON.parse(decoded):(_logError("Failed to decode base64 JWT payload"),null)}catch(e2){return _logError("Caught error parsing JWT payload as JSON",e2?.toString()),null}}function _tokenExpiresIn(token){const parsedToken=_parseToken(token);return _assert(parsedToken,"internal-error"),_assert(typeof parsedToken.exp<"u","internal-error"),_assert(typeof parsedToken.iat<"u","internal-error"),Number(parsedToken.exp)-Number(parsedToken.iat)}function _logoutIfInvalidated(_x22,_x23){return _logoutIfInvalidated2.apply(this,arguments)}function _logoutIfInvalidated2(){return(_logoutIfInvalidated2=asyncToGenerator_asyncToGenerator(function*(user2,promise,bypassAuthState=!1){if(bypassAuthState)return promise;try{return yield promise}catch(e2){throw e2 instanceof FirebaseError&&function isUserInvalidated({code}){return"auth/user-disabled"===code||"auth/user-token-expired"===code}(e2)&&user2.auth.currentUser===user2&&(yield user2.auth.signOut()),e2}})).apply(this,arguments)}class ProactiveRefresh{constructor(user2){this.user=user2,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(wasError){var _a;if(wasError){const interval=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),interval}{this.errorBackoff=3e4;const interval=(null!==(_a=this.user.stsTokenManager.expirationTime)&&void 0!==_a?_a:0)-Date.now()-3e5;return Math.max(0,interval)}}schedule(wasError=!1){var _this=this;if(!this.isRunning)return;const interval=this.getInterval(wasError);this.timerId=setTimeout(asyncToGenerator_asyncToGenerator(function*(){yield _this.iteration()}),interval)}iteration(){var _this2=this;return asyncToGenerator_asyncToGenerator(function*(){try{yield _this2.user.getIdToken(!0)}catch(e2){return void("auth/network-request-failed"===e2?.code&&_this2.schedule(!0))}_this2.schedule()})()}}class UserMetadata{constructor(createdAt,lastLoginAt){this.createdAt=createdAt,this.lastLoginAt=lastLoginAt,this._initializeTime()}_initializeTime(){this.lastSignInTime=utcTimestampToDateString(this.lastLoginAt),this.creationTime=utcTimestampToDateString(this.createdAt)}_copy(metadata){this.createdAt=metadata.createdAt,this.lastLoginAt=metadata.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function _reloadWithoutSaving(_x24){return _reloadWithoutSaving2.apply(this,arguments)}function _reloadWithoutSaving2(){return(_reloadWithoutSaving2=asyncToGenerator_asyncToGenerator(function*(user2){var _a;const auth=user2.auth,idToken2=yield user2.getIdToken(),response=yield _logoutIfInvalidated(user2,getAccountInfo(auth,{idToken:idToken2}));_assert(response?.users.length,auth,"internal-error");const coreAccount=response.users[0];user2._notifyReloadListener(coreAccount);const newProviderData=null!==(_a=coreAccount.providerUserInfo)&&void 0!==_a&&_a.length?extractProviderData(coreAccount.providerUserInfo):[],providerData=function mergeProviderData(original,newData){return[...original.filter(o=>!newData.some(n2=>n2.providerId===o.providerId)),...newData]}(user2.providerData,newProviderData),isAnonymous=!!user2.isAnonymous&&!(user2.email&&coreAccount.passwordHash||providerData?.length),updates={uid:coreAccount.localId,displayName:coreAccount.displayName||null,photoURL:coreAccount.photoUrl||null,email:coreAccount.email||null,emailVerified:coreAccount.emailVerified||!1,phoneNumber:coreAccount.phoneNumber||null,tenantId:coreAccount.tenantId||null,providerData,metadata:new UserMetadata(coreAccount.createdAt,coreAccount.lastLoginAt),isAnonymous};Object.assign(user2,updates)})).apply(this,arguments)}function _reload(){return(_reload=asyncToGenerator_asyncToGenerator(function*(user2){const userInternal=index_esm2017_getModularInstance(user2);yield _reloadWithoutSaving(userInternal),yield userInternal.auth._persistUserIfCurrent(userInternal),userInternal.auth._notifyListenersIfCurrent(userInternal)})).apply(this,arguments)}function extractProviderData(providers){return providers.map(_a=>{var{providerId}=_a,provider=__rest(_a,["providerId"]);return{providerId,uid:provider.rawId||"",displayName:provider.displayName||null,email:provider.email||null,phoneNumber:provider.phoneNumber||null,photoURL:provider.photoUrl||null}})}function _requestStsToken(){return(_requestStsToken=asyncToGenerator_asyncToGenerator(function*(auth,refreshToken){const response=yield _performFetchWithErrorHandling(auth,{},asyncToGenerator_asyncToGenerator(function*(){const body=index_esm2017_querystring({grant_type:"refresh_token",refresh_token:refreshToken}).slice(1),{tokenApiHost,apiKey}=auth.config,url=_getFinalTarget(auth,tokenApiHost,"/v1/token",`key=${apiKey}`),headers=yield auth._getAdditionalHeaders();return headers["Content-Type"]="application/x-www-form-urlencoded",FetchProvider.fetch()(url,{method:"POST",headers,body})}));return{accessToken:response.access_token,expiresIn:response.expires_in,refreshToken:response.refresh_token}})).apply(this,arguments)}function _revokeToken(){return(_revokeToken=asyncToGenerator_asyncToGenerator(function*(auth,request){return _performApiRequest(auth,"POST","/v2/accounts:revokeToken",_addTidIfNecessary(auth,request))})).apply(this,arguments)}class StsTokenManager{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(response){_assert(response.idToken,"internal-error"),_assert(typeof response.idToken<"u","internal-error"),_assert(typeof response.refreshToken<"u","internal-error");const expiresIn="expiresIn"in response&&typeof response.expiresIn<"u"?Number(response.expiresIn):_tokenExpiresIn(response.idToken);this.updateTokensAndExpiration(response.idToken,response.refreshToken,expiresIn)}updateFromIdToken(idToken2){_assert(0!==idToken2.length,"internal-error");const expiresIn=_tokenExpiresIn(idToken2);this.updateTokensAndExpiration(idToken2,null,expiresIn)}getToken(auth,forceRefresh=!1){var _this3=this;return asyncToGenerator_asyncToGenerator(function*(){return forceRefresh||!_this3.accessToken||_this3.isExpired?(_assert(_this3.refreshToken,auth,"user-token-expired"),_this3.refreshToken?(yield _this3.refresh(auth,_this3.refreshToken),_this3.accessToken):null):_this3.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(auth,oldToken){var _this4=this;return asyncToGenerator_asyncToGenerator(function*(){const{accessToken,refreshToken,expiresIn}=yield function requestStsToken(_x26,_x27){return _requestStsToken.apply(this,arguments)}(auth,oldToken);_this4.updateTokensAndExpiration(accessToken,refreshToken,Number(expiresIn))})()}updateTokensAndExpiration(accessToken,refreshToken,expiresInSec){this.refreshToken=refreshToken||null,this.accessToken=accessToken||null,this.expirationTime=Date.now()+1e3*expiresInSec}static fromJSON(appName,object){const{refreshToken,accessToken,expirationTime}=object,manager=new StsTokenManager;return refreshToken&&(_assert("string"==typeof refreshToken,"internal-error",{appName}),manager.refreshToken=refreshToken),accessToken&&(_assert("string"==typeof accessToken,"internal-error",{appName}),manager.accessToken=accessToken),expirationTime&&(_assert("number"==typeof expirationTime,"internal-error",{appName}),manager.expirationTime=expirationTime),manager}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(stsTokenManager){this.accessToken=stsTokenManager.accessToken,this.refreshToken=stsTokenManager.refreshToken,this.expirationTime=stsTokenManager.expirationTime}_clone(){return Object.assign(new StsTokenManager,this.toJSON())}_performRefresh(){return debugFail("not implemented")}}function assertStringOrUndefined(assertion,appName){_assert("string"==typeof assertion||typeof assertion>"u","internal-error",{appName})}class UserImpl{constructor(_a){var{uid,auth,stsTokenManager}=_a,opt=__rest(_a,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new ProactiveRefresh(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=uid,this.auth=auth,this.stsTokenManager=stsTokenManager,this.accessToken=stsTokenManager.accessToken,this.displayName=opt.displayName||null,this.email=opt.email||null,this.emailVerified=opt.emailVerified||!1,this.phoneNumber=opt.phoneNumber||null,this.photoURL=opt.photoURL||null,this.isAnonymous=opt.isAnonymous||!1,this.tenantId=opt.tenantId||null,this.providerData=opt.providerData?[...opt.providerData]:[],this.metadata=new UserMetadata(opt.createdAt||void 0,opt.lastLoginAt||void 0)}getIdToken(forceRefresh){var _this5=this;return asyncToGenerator_asyncToGenerator(function*(){const accessToken=yield _logoutIfInvalidated(_this5,_this5.stsTokenManager.getToken(_this5.auth,forceRefresh));return _assert(accessToken,_this5.auth,"internal-error"),_this5.accessToken!==accessToken&&(_this5.accessToken=accessToken,yield _this5.auth._persistUserIfCurrent(_this5),_this5.auth._notifyListenersIfCurrent(_this5)),accessToken})()}getIdTokenResult(forceRefresh){return function getIdTokenResult(_x21){return _getIdTokenResult.apply(this,arguments)}(this,forceRefresh)}reload(){return function reload(_x25){return _reload.apply(this,arguments)}(this)}_assign(user2){this!==user2&&(_assert(this.uid===user2.uid,this.auth,"internal-error"),this.displayName=user2.displayName,this.photoURL=user2.photoURL,this.email=user2.email,this.emailVerified=user2.emailVerified,this.phoneNumber=user2.phoneNumber,this.isAnonymous=user2.isAnonymous,this.tenantId=user2.tenantId,this.providerData=user2.providerData.map(userInfo=>Object.assign({},userInfo)),this.metadata._copy(user2.metadata),this.stsTokenManager._assign(user2.stsTokenManager))}_clone(auth){const newUser=new UserImpl(Object.assign(Object.assign({},this),{auth,stsTokenManager:this.stsTokenManager._clone()}));return newUser.metadata._copy(this.metadata),newUser}_onReload(callback){_assert(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=callback,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(userInfo){this.reloadListener?this.reloadListener(userInfo):this.reloadUserInfo=userInfo}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(response,reload2=!1){var _this6=this;return asyncToGenerator_asyncToGenerator(function*(){let tokensRefreshed=!1;response.idToken&&response.idToken!==_this6.stsTokenManager.accessToken&&(_this6.stsTokenManager.updateFromServerResponse(response),tokensRefreshed=!0),reload2&&(yield _reloadWithoutSaving(_this6)),yield _this6.auth._persistUserIfCurrent(_this6),tokensRefreshed&&_this6.auth._notifyListenersIfCurrent(_this6)})()}delete(){var _this7=this;return asyncToGenerator_asyncToGenerator(function*(){if(index_esm2017_isFirebaseServerApp(_this7.auth.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(_this7.auth));const idToken2=yield _this7.getIdToken();return yield _logoutIfInvalidated(_this7,function deleteAccount(_x15,_x16){return _deleteAccount.apply(this,arguments)}(_this7.auth,{idToken:idToken2})),_this7.stsTokenManager.clearRefreshToken(),_this7.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(userInfo=>Object.assign({},userInfo)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(auth,object){var _a,_b,_c,_d,_e,_f,_g,_h;const displayName=null!==(_a=object.displayName)&&void 0!==_a?_a:void 0,email=null!==(_b=object.email)&&void 0!==_b?_b:void 0,phoneNumber=null!==(_c=object.phoneNumber)&&void 0!==_c?_c:void 0,photoURL=null!==(_d=object.photoURL)&&void 0!==_d?_d:void 0,tenantId=null!==(_e=object.tenantId)&&void 0!==_e?_e:void 0,_redirectEventId=null!==(_f=object._redirectEventId)&&void 0!==_f?_f:void 0,createdAt=null!==(_g=object.createdAt)&&void 0!==_g?_g:void 0,lastLoginAt=null!==(_h=object.lastLoginAt)&&void 0!==_h?_h:void 0,{uid,emailVerified,isAnonymous,providerData,stsTokenManager:plainObjectTokenManager}=object;_assert(uid&&plainObjectTokenManager,auth,"internal-error");const stsTokenManager=StsTokenManager.fromJSON(this.name,plainObjectTokenManager);_assert("string"==typeof uid,auth,"internal-error"),assertStringOrUndefined(displayName,auth.name),assertStringOrUndefined(email,auth.name),_assert("boolean"==typeof emailVerified,auth,"internal-error"),_assert("boolean"==typeof isAnonymous,auth,"internal-error"),assertStringOrUndefined(phoneNumber,auth.name),assertStringOrUndefined(photoURL,auth.name),assertStringOrUndefined(tenantId,auth.name),assertStringOrUndefined(_redirectEventId,auth.name),assertStringOrUndefined(createdAt,auth.name),assertStringOrUndefined(lastLoginAt,auth.name);const user2=new UserImpl({uid,auth,email,emailVerified,displayName,isAnonymous,photoURL,phoneNumber,tenantId,stsTokenManager,createdAt,lastLoginAt});return providerData&&Array.isArray(providerData)&&(user2.providerData=providerData.map(userInfo=>Object.assign({},userInfo))),_redirectEventId&&(user2._redirectEventId=_redirectEventId),user2}static _fromIdTokenResponse(auth,idTokenResponse,isAnonymous=!1){return asyncToGenerator_asyncToGenerator(function*(){const stsTokenManager=new StsTokenManager;stsTokenManager.updateFromServerResponse(idTokenResponse);const user2=new UserImpl({uid:idTokenResponse.localId,auth,stsTokenManager,isAnonymous});return yield _reloadWithoutSaving(user2),user2})()}static _fromGetAccountInfoResponse(auth,response,idToken2){return asyncToGenerator_asyncToGenerator(function*(){const coreAccount=response.users[0];_assert(void 0!==coreAccount.localId,"internal-error");const providerData=void 0!==coreAccount.providerUserInfo?extractProviderData(coreAccount.providerUserInfo):[],isAnonymous=!(coreAccount.email&&coreAccount.passwordHash||providerData?.length),stsTokenManager=new StsTokenManager;stsTokenManager.updateFromIdToken(idToken2);const user2=new UserImpl({uid:coreAccount.localId,auth,stsTokenManager,isAnonymous}),updates={uid:coreAccount.localId,displayName:coreAccount.displayName||null,photoURL:coreAccount.photoUrl||null,email:coreAccount.email||null,emailVerified:coreAccount.emailVerified||!1,phoneNumber:coreAccount.phoneNumber||null,tenantId:coreAccount.tenantId||null,providerData,metadata:new UserMetadata(coreAccount.createdAt,coreAccount.lastLoginAt),isAnonymous:!(coreAccount.email&&coreAccount.passwordHash||providerData?.length)};return Object.assign(user2,updates),user2})()}}const instanceCache=new Map;function _getInstance(cls){debugAssert(cls instanceof Function,"Expected a class definition");let instance=instanceCache.get(cls);return instance?(debugAssert(instance instanceof cls,"Instance stored in cache mismatched with class"),instance):(instance=new cls,instanceCache.set(cls,instance),instance)}const inMemoryPersistence=(()=>{class InMemoryPersistence2{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return asyncToGenerator_asyncToGenerator(function*(){return!0})()}_set(key,value){var _this8=this;return asyncToGenerator_asyncToGenerator(function*(){_this8.storage[key]=value})()}_get(key){var _this9=this;return asyncToGenerator_asyncToGenerator(function*(){const value=_this9.storage[key];return void 0===value?null:value})()}_remove(key){var _this10=this;return asyncToGenerator_asyncToGenerator(function*(){delete _this10.storage[key]})()}_addListener(_key,_listener){}_removeListener(_key,_listener){}}return InMemoryPersistence2.type="NONE",InMemoryPersistence2})();function _persistenceKeyName(key,apiKey,appName){return`firebase:${key}:${apiKey}:${appName}`}class PersistenceUserManager{constructor(persistence,auth,userKey){this.persistence=persistence,this.auth=auth,this.userKey=userKey;const{config:config2,name}=this.auth;this.fullUserKey=_persistenceKeyName(this.userKey,config2.apiKey,name),this.fullPersistenceKey=_persistenceKeyName("persistence",config2.apiKey,name),this.boundEventHandler=auth._onStorageEvent.bind(auth),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(user2){return this.persistence._set(this.fullUserKey,user2.toJSON())}getCurrentUser(){var _this11=this;return asyncToGenerator_asyncToGenerator(function*(){const blob=yield _this11.persistence._get(_this11.fullUserKey);return blob?UserImpl._fromJSON(_this11.auth,blob):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(newPersistence){var _this12=this;return asyncToGenerator_asyncToGenerator(function*(){if(_this12.persistence===newPersistence)return;const currentUser=yield _this12.getCurrentUser();return yield _this12.removeCurrentUser(),_this12.persistence=newPersistence,currentUser?_this12.setCurrentUser(currentUser):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(auth,persistenceHierarchy,userKey="authUser"){return asyncToGenerator_asyncToGenerator(function*(){if(!persistenceHierarchy.length)return new PersistenceUserManager(_getInstance(inMemoryPersistence),auth,userKey);const availablePersistences=(yield Promise.all(persistenceHierarchy.map(function(){var _ref2=asyncToGenerator_asyncToGenerator(function*(persistence){if(yield persistence._isAvailable())return persistence});return function(_x30){return _ref2.apply(this,arguments)}}()))).filter(persistence=>persistence);let selectedPersistence=availablePersistences[0]||_getInstance(inMemoryPersistence);const key=_persistenceKeyName(userKey,auth.config.apiKey,auth.name);let userToMigrate=null;for(const persistence of persistenceHierarchy)try{const blob=yield persistence._get(key);if(blob){const user2=UserImpl._fromJSON(auth,blob);persistence!==selectedPersistence&&(userToMigrate=user2),selectedPersistence=persistence;break}}catch{}const migrationHierarchy=availablePersistences.filter(p=>p._shouldAllowMigration);return selectedPersistence._shouldAllowMigration&&migrationHierarchy.length?(selectedPersistence=migrationHierarchy[0],userToMigrate&&(yield selectedPersistence._set(key,userToMigrate.toJSON())),yield Promise.all(persistenceHierarchy.map(function(){var _ref3=asyncToGenerator_asyncToGenerator(function*(persistence){if(persistence!==selectedPersistence)try{yield persistence._remove(key)}catch{}});return function(_x31){return _ref3.apply(this,arguments)}}())),new PersistenceUserManager(selectedPersistence,auth,userKey)):new PersistenceUserManager(selectedPersistence,auth,userKey)})()}}function _getBrowserName(userAgent){const ua=userAgent.toLowerCase();if(ua.includes("opera/")||ua.includes("opr/")||ua.includes("opios/"))return"Opera";if(function _isIEMobile(ua=index_esm2017_getUA()){return/iemobile/i.test(ua)}(ua))return"IEMobile";if(ua.includes("msie")||ua.includes("trident/"))return"IE";if(ua.includes("edge/"))return"Edge";if(function _isFirefox(ua=index_esm2017_getUA()){return/firefox\//i.test(ua)}(ua))return"Firefox";if(ua.includes("silk/"))return"Silk";if(function _isBlackBerry(ua=index_esm2017_getUA()){return/blackberry/i.test(ua)}(ua))return"Blackberry";if(function _isWebOS(ua=index_esm2017_getUA()){return/webos/i.test(ua)}(ua))return"Webos";if(function _isSafari(userAgent=index_esm2017_getUA()){const ua=userAgent.toLowerCase();return ua.includes("safari/")&&!ua.includes("chrome/")&&!ua.includes("crios/")&&!ua.includes("android")}(ua))return"Safari";if((ua.includes("chrome/")||function _isChromeIOS(ua=index_esm2017_getUA()){return/crios\//i.test(ua)}(ua))&&!ua.includes("edge/"))return"Chrome";if(function _isAndroid(ua=index_esm2017_getUA()){return/android/i.test(ua)}(ua))return"Android";{const matches=userAgent.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===matches?.length)return matches[1]}return"Other"}function _getClientVersion(clientPlatform,frameworks=[]){let reportedPlatform;switch(clientPlatform){case"Browser":reportedPlatform=_getBrowserName(index_esm2017_getUA());break;case"Worker":reportedPlatform=`${_getBrowserName(index_esm2017_getUA())}-${clientPlatform}`;break;default:reportedPlatform=clientPlatform}const reportedFrameworks=frameworks.length?frameworks.join(","):"FirebaseCore-web";return`${reportedPlatform}/JsCore/${index_esm2017_SDK_VERSION}/${reportedFrameworks}`}class AuthMiddlewareQueue{constructor(auth){this.auth=auth,this.queue=[]}pushCallback(callback,onAbort){const wrappedCallback=user2=>new Promise((resolve,reject)=>{try{resolve(callback(user2))}catch(e2){reject(e2)}});wrappedCallback.onAbort=onAbort,this.queue.push(wrappedCallback);const index=this.queue.length-1;return()=>{this.queue[index]=()=>Promise.resolve()}}runMiddleware(nextUser){var _this13=this;return asyncToGenerator_asyncToGenerator(function*(){if(_this13.auth.currentUser===nextUser)return;const onAbortStack=[];try{for(const beforeStateCallback of _this13.queue)yield beforeStateCallback(nextUser),beforeStateCallback.onAbort&&onAbortStack.push(beforeStateCallback.onAbort)}catch(e2){onAbortStack.reverse();for(const onAbort of onAbortStack)try{onAbort()}catch{}throw _this13.auth._errorFactory.create("login-blocked",{originalMessage:e2?.message})}})()}}function _getPasswordPolicy2(){return(_getPasswordPolicy2=asyncToGenerator_asyncToGenerator(function*(auth,request={}){return _performApiRequest(auth,"GET","/v2/passwordPolicy",_addTidIfNecessary(auth,request))})).apply(this,arguments)}class PasswordPolicyImpl{constructor(response){var _a,_b,_c,_d;const responseOptions=response.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(_a=responseOptions.minPasswordLength)&&void 0!==_a?_a:6,responseOptions.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=responseOptions.maxPasswordLength),void 0!==responseOptions.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=responseOptions.containsLowercaseCharacter),void 0!==responseOptions.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=responseOptions.containsUppercaseCharacter),void 0!==responseOptions.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=responseOptions.containsNumericCharacter),void 0!==responseOptions.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=responseOptions.containsNonAlphanumericCharacter),this.enforcementState=response.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(_c=null===(_b=response.allowedNonAlphanumericCharacters)||void 0===_b?void 0:_b.join(""))&&void 0!==_c?_c:"",this.forceUpgradeOnSignin=null!==(_d=response.forceUpgradeOnSignin)&&void 0!==_d&&_d,this.schemaVersion=response.schemaVersion}validatePassword(password){var _a,_b,_c,_d,_e,_f;const status={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(password,status),this.validatePasswordCharacterOptions(password,status),status.isValid&&(status.isValid=null===(_a=status.meetsMinPasswordLength)||void 0===_a||_a),status.isValid&&(status.isValid=null===(_b=status.meetsMaxPasswordLength)||void 0===_b||_b),status.isValid&&(status.isValid=null===(_c=status.containsLowercaseLetter)||void 0===_c||_c),status.isValid&&(status.isValid=null===(_d=status.containsUppercaseLetter)||void 0===_d||_d),status.isValid&&(status.isValid=null===(_e=status.containsNumericCharacter)||void 0===_e||_e),status.isValid&&(status.isValid=null===(_f=status.containsNonAlphanumericCharacter)||void 0===_f||_f),status}validatePasswordLengthOptions(password,status){const minPasswordLength=this.customStrengthOptions.minPasswordLength,maxPasswordLength=this.customStrengthOptions.maxPasswordLength;minPasswordLength&&(status.meetsMinPasswordLength=password.length>=minPasswordLength),maxPasswordLength&&(status.meetsMaxPasswordLength=password.length<=maxPasswordLength)}validatePasswordCharacterOptions(password,status){let passwordChar;this.updatePasswordCharacterOptionsStatuses(status,!1,!1,!1,!1);for(let i=0;i="a"&&passwordChar<="z",passwordChar>="A"&&passwordChar<="Z",passwordChar>="0"&&passwordChar<="9",this.allowedNonAlphanumericCharacters.includes(passwordChar))}updatePasswordCharacterOptionsStatuses(status,containsLowercaseCharacter,containsUppercaseCharacter,containsNumericCharacter,containsNonAlphanumericCharacter){this.customStrengthOptions.containsLowercaseLetter&&(status.containsLowercaseLetter||(status.containsLowercaseLetter=containsLowercaseCharacter)),this.customStrengthOptions.containsUppercaseLetter&&(status.containsUppercaseLetter||(status.containsUppercaseLetter=containsUppercaseCharacter)),this.customStrengthOptions.containsNumericCharacter&&(status.containsNumericCharacter||(status.containsNumericCharacter=containsNumericCharacter)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(status.containsNonAlphanumericCharacter||(status.containsNonAlphanumericCharacter=containsNonAlphanumericCharacter))}}class AuthImpl{constructor(app,heartbeatServiceProvider,appCheckServiceProvider,config2){this.app=app,this.heartbeatServiceProvider=heartbeatServiceProvider,this.appCheckServiceProvider=appCheckServiceProvider,this.config=config2,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new index_fbeda258_Subscription(this),this.idTokenSubscription=new index_fbeda258_Subscription(this),this.beforeStateQueue=new AuthMiddlewareQueue(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=_DEFAULT_AUTH_ERROR_FACTORY,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=app.name,this.clientVersion=config2.sdkClientVersion}_initializeWithPersistence(persistenceHierarchy,popupRedirectResolver){var _this14=this;return popupRedirectResolver&&(this._popupRedirectResolver=_getInstance(popupRedirectResolver)),this._initializationPromise=this.queue(asyncToGenerator_asyncToGenerator(function*(){var _a,_b;if(!_this14._deleted&&(_this14.persistenceManager=yield PersistenceUserManager.create(_this14,persistenceHierarchy),!_this14._deleted)){if(null!==(_a=_this14._popupRedirectResolver)&&void 0!==_a&&_a._shouldInitProactively)try{yield _this14._popupRedirectResolver._initialize(_this14)}catch{}yield _this14.initializeCurrentUser(popupRedirectResolver),_this14.lastNotifiedUid=(null===(_b=_this14.currentUser)||void 0===_b?void 0:_b.uid)||null,!_this14._deleted&&(_this14._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var _this15=this;return asyncToGenerator_asyncToGenerator(function*(){if(_this15._deleted)return;const user2=yield _this15.assertedPersistence.getCurrentUser();if(_this15.currentUser||user2){if(_this15.currentUser&&user2&&_this15.currentUser.uid===user2.uid)return _this15._currentUser._assign(user2),void(yield _this15.currentUser.getIdToken());yield _this15._updateCurrentUser(user2,!0)}})()}initializeCurrentUserFromIdToken(idToken2){var _this16=this;return asyncToGenerator_asyncToGenerator(function*(){try{const response=yield getAccountInfo(_this16,{idToken:idToken2}),user2=yield UserImpl._fromGetAccountInfoResponse(_this16,response,idToken2);yield _this16.directlySetCurrentUser(user2)}catch(err){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",err),yield _this16.directlySetCurrentUser(null)}})()}initializeCurrentUser(popupRedirectResolver){var _this17=this;return asyncToGenerator_asyncToGenerator(function*(){var _a;if(index_esm2017_isFirebaseServerApp(_this17.app)){const idToken2=_this17.app.settings.authIdToken;return idToken2?new Promise(resolve=>{setTimeout(()=>_this17.initializeCurrentUserFromIdToken(idToken2).then(resolve,resolve))}):_this17.directlySetCurrentUser(null)}const previouslyStoredUser=yield _this17.assertedPersistence.getCurrentUser();let futureCurrentUser=previouslyStoredUser,needsTocheckMiddleware=!1;if(popupRedirectResolver&&_this17.config.authDomain){yield _this17.getOrInitRedirectPersistenceManager();const redirectUserEventId=null===(_a=_this17.redirectUser)||void 0===_a?void 0:_a._redirectEventId,storedUserEventId=futureCurrentUser?._redirectEventId,result=yield _this17.tryRedirectSignIn(popupRedirectResolver);(!redirectUserEventId||redirectUserEventId===storedUserEventId)&&result?.user&&(futureCurrentUser=result.user,needsTocheckMiddleware=!0)}if(!futureCurrentUser)return _this17.directlySetCurrentUser(null);if(!futureCurrentUser._redirectEventId){if(needsTocheckMiddleware)try{yield _this17.beforeStateQueue.runMiddleware(futureCurrentUser)}catch(e2){futureCurrentUser=previouslyStoredUser,_this17._popupRedirectResolver._overrideRedirectResult(_this17,()=>Promise.reject(e2))}return futureCurrentUser?_this17.reloadAndSetCurrentUserOrClear(futureCurrentUser):_this17.directlySetCurrentUser(null)}return _assert(_this17._popupRedirectResolver,_this17,"argument-error"),yield _this17.getOrInitRedirectPersistenceManager(),_this17.redirectUser&&_this17.redirectUser._redirectEventId===futureCurrentUser._redirectEventId?_this17.directlySetCurrentUser(futureCurrentUser):_this17.reloadAndSetCurrentUserOrClear(futureCurrentUser)})()}tryRedirectSignIn(redirectResolver){var _this18=this;return asyncToGenerator_asyncToGenerator(function*(){let result=null;try{result=yield _this18._popupRedirectResolver._completeRedirectFn(_this18,redirectResolver,!0)}catch{yield _this18._setRedirectUser(null)}return result})()}reloadAndSetCurrentUserOrClear(user2){var _this19=this;return asyncToGenerator_asyncToGenerator(function*(){try{yield _reloadWithoutSaving(user2)}catch(e2){if("auth/network-request-failed"!==e2?.code)return _this19.directlySetCurrentUser(null)}return _this19.directlySetCurrentUser(user2)})()}useDeviceLanguage(){this.languageCode=function _getUserLanguage(){if(typeof navigator>"u")return null;const navigatorLanguage=navigator;return navigatorLanguage.languages&&navigatorLanguage.languages[0]||navigatorLanguage.language||null}()}_delete(){var _this20=this;return asyncToGenerator_asyncToGenerator(function*(){_this20._deleted=!0})()}updateCurrentUser(userExtern){var _this21=this;return asyncToGenerator_asyncToGenerator(function*(){if(index_esm2017_isFirebaseServerApp(_this21.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(_this21));const user2=userExtern?index_esm2017_getModularInstance(userExtern):null;return user2&&_assert(user2.auth.config.apiKey===_this21.config.apiKey,_this21,"invalid-user-token"),_this21._updateCurrentUser(user2&&user2._clone(_this21))})()}_updateCurrentUser(user2,skipBeforeStateCallbacks=!1){var _this22=this;return asyncToGenerator_asyncToGenerator(function*(){if(!_this22._deleted)return user2&&_assert(_this22.tenantId===user2.tenantId,_this22,"tenant-id-mismatch"),skipBeforeStateCallbacks||(yield _this22.beforeStateQueue.runMiddleware(user2)),_this22.queue(asyncToGenerator_asyncToGenerator(function*(){yield _this22.directlySetCurrentUser(user2),_this22.notifyAuthListeners()}))})()}signOut(){var _this23=this;return asyncToGenerator_asyncToGenerator(function*(){return index_esm2017_isFirebaseServerApp(_this23.app)?Promise.reject(_serverAppCurrentUserOperationNotSupportedError(_this23)):(yield _this23.beforeStateQueue.runMiddleware(null),(_this23.redirectPersistenceManager||_this23._popupRedirectResolver)&&(yield _this23._setRedirectUser(null)),_this23._updateCurrentUser(null,!0))})()}setPersistence(persistence){var _this24=this;return index_esm2017_isFirebaseServerApp(this.app)?Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this)):this.queue(asyncToGenerator_asyncToGenerator(function*(){yield _this24.assertedPersistence.setPersistence(_getInstance(persistence))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(password){var _this25=this;return asyncToGenerator_asyncToGenerator(function*(){_this25._getPasswordPolicyInternal()||(yield _this25._updatePasswordPolicy());const passwordPolicy=_this25._getPasswordPolicyInternal();return passwordPolicy.schemaVersion!==_this25.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(_this25._errorFactory.create("unsupported-password-policy-schema-version",{})):passwordPolicy.validatePassword(password)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var _this26=this;return asyncToGenerator_asyncToGenerator(function*(){const response=yield function _getPasswordPolicy(_x32){return _getPasswordPolicy2.apply(this,arguments)}(_this26),passwordPolicy=new PasswordPolicyImpl(response);null===_this26.tenantId?_this26._projectPasswordPolicy=passwordPolicy:_this26._tenantPasswordPolicies[_this26.tenantId]=passwordPolicy})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(errorMap){this._errorFactory=new ErrorFactory("auth","Firebase",errorMap())}onAuthStateChanged(nextOrObserver,error,completed){return this.registerStateListener(this.authStateSubscription,nextOrObserver,error,completed)}beforeAuthStateChanged(callback,onAbort){return this.beforeStateQueue.pushCallback(callback,onAbort)}onIdTokenChanged(nextOrObserver,error,completed){return this.registerStateListener(this.idTokenSubscription,nextOrObserver,error,completed)}authStateReady(){return new Promise((resolve,reject)=>{if(this.currentUser)resolve();else{const unsubscribe=this.onAuthStateChanged(()=>{unsubscribe(),resolve()},reject)}})}revokeAccessToken(token){var _this27=this;return asyncToGenerator_asyncToGenerator(function*(){if(_this27.currentUser){const idToken2=yield _this27.currentUser.getIdToken(),request={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token,idToken:idToken2};null!=_this27.tenantId&&(request.tenantId=_this27.tenantId),yield function revokeToken(_x28,_x29){return _revokeToken.apply(this,arguments)}(_this27,request)}})()}toJSON(){var _a;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(_a=this._currentUser)||void 0===_a?void 0:_a.toJSON()}}_setRedirectUser(user2,popupRedirectResolver){var _this28=this;return asyncToGenerator_asyncToGenerator(function*(){const redirectManager=yield _this28.getOrInitRedirectPersistenceManager(popupRedirectResolver);return null===user2?redirectManager.removeCurrentUser():redirectManager.setCurrentUser(user2)})()}getOrInitRedirectPersistenceManager(popupRedirectResolver){var _this29=this;return asyncToGenerator_asyncToGenerator(function*(){if(!_this29.redirectPersistenceManager){const resolver=popupRedirectResolver&&_getInstance(popupRedirectResolver)||_this29._popupRedirectResolver;_assert(resolver,_this29,"argument-error"),_this29.redirectPersistenceManager=yield PersistenceUserManager.create(_this29,[_getInstance(resolver._redirectPersistence)],"redirectUser"),_this29.redirectUser=yield _this29.redirectPersistenceManager.getCurrentUser()}return _this29.redirectPersistenceManager})()}_redirectUserForId(id){var _this30=this;return asyncToGenerator_asyncToGenerator(function*(){var _a,_b;return _this30._isInitialized&&(yield _this30.queue(asyncToGenerator_asyncToGenerator(function*(){}))),(null===(_a=_this30._currentUser)||void 0===_a?void 0:_a._redirectEventId)===id?_this30._currentUser:(null===(_b=_this30.redirectUser)||void 0===_b?void 0:_b._redirectEventId)===id?_this30.redirectUser:null})()}_persistUserIfCurrent(user2){var _this31=this;return asyncToGenerator_asyncToGenerator(function*(){if(user2===_this31.currentUser)return _this31.queue(asyncToGenerator_asyncToGenerator(function*(){return _this31.directlySetCurrentUser(user2)}))})()}_notifyListenersIfCurrent(user2){user2===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var _a,_b;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const currentUid=null!==(_b=null===(_a=this.currentUser)||void 0===_a?void 0:_a.uid)&&void 0!==_b?_b:null;this.lastNotifiedUid!==currentUid&&(this.lastNotifiedUid=currentUid,this.authStateSubscription.next(this.currentUser))}registerStateListener(subscription,nextOrObserver,error,completed){if(this._deleted)return()=>{};const cb="function"==typeof nextOrObserver?nextOrObserver:nextOrObserver.next.bind(nextOrObserver);let isUnsubscribed=!1;const promise=this._isInitialized?Promise.resolve():this._initializationPromise;if(_assert(promise,this,"internal-error"),promise.then(()=>{isUnsubscribed||cb(this.currentUser)}),"function"==typeof nextOrObserver){const unsubscribe=subscription.addObserver(nextOrObserver,error,completed);return()=>{isUnsubscribed=!0,unsubscribe()}}{const unsubscribe=subscription.addObserver(nextOrObserver);return()=>{isUnsubscribed=!0,unsubscribe()}}}directlySetCurrentUser(user2){var _this32=this;return asyncToGenerator_asyncToGenerator(function*(){_this32.currentUser&&_this32.currentUser!==user2&&_this32._currentUser._stopProactiveRefresh(),user2&&_this32.isProactiveRefreshEnabled&&user2._startProactiveRefresh(),_this32.currentUser=user2,user2?yield _this32.assertedPersistence.setCurrentUser(user2):yield _this32.assertedPersistence.removeCurrentUser()})()}queue(action){return this.operations=this.operations.then(action,action),this.operations}get assertedPersistence(){return _assert(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(framework){!framework||this.frameworks.includes(framework)||(this.frameworks.push(framework),this.frameworks.sort(),this.clientVersion=_getClientVersion(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var _this33=this;return asyncToGenerator_asyncToGenerator(function*(){var _a;const headers={"X-Client-Version":_this33.clientVersion};_this33.app.options.appId&&(headers["X-Firebase-gmpid"]=_this33.app.options.appId);const heartbeatsHeader=yield null===(_a=_this33.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===_a?void 0:_a.getHeartbeatsHeader();heartbeatsHeader&&(headers["X-Firebase-Client"]=heartbeatsHeader);const appCheckToken=yield _this33._getAppCheckToken();return appCheckToken&&(headers["X-Firebase-AppCheck"]=appCheckToken),headers})()}_getAppCheckToken(){var _this34=this;return asyncToGenerator_asyncToGenerator(function*(){var _a;const appCheckTokenResult=yield null===(_a=_this34.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===_a?void 0:_a.getToken();return appCheckTokenResult?.error&&function _logWarn(msg,...args){logClient.logLevel<=LogLevel.WARN&&logClient.warn(`Auth (${index_esm2017_SDK_VERSION}): ${msg}`,...args)}(`Error while retrieving App Check token: ${appCheckTokenResult.error}`),appCheckTokenResult?.token})()}}class index_fbeda258_Subscription{constructor(auth){this.auth=auth,this.observer=null,this.addObserver=function createSubscribe(executor,onNoObservers){const proxy=new ObserverProxy(executor,onNoObservers);return proxy.subscribe.bind(proxy)}(observer=>this.observer=observer)}get next(){return _assert(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let externalJSProvider={loadJS:()=>asyncToGenerator_asyncToGenerator(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};(function _generateCallbackName(prefix){return`__${prefix}${Math.floor(1e6*Math.random())}`})("rcb"),new Delay(3e4,6e4),new Delay(2e3,1e4),new Delay(3e4,6e4),new Delay(5e3,15e3),encodeURIComponent("fac");class AuthInterop{constructor(auth){this.auth=auth,this.internalListeners=new Map}getUid(){var _a;return this.assertAuthConfigured(),(null===(_a=this.auth.currentUser)||void 0===_a?void 0:_a.uid)||null}getToken(forceRefresh){var _this74=this;return asyncToGenerator_asyncToGenerator(function*(){return _this74.assertAuthConfigured(),yield _this74.auth._initializationPromise,_this74.auth.currentUser?{accessToken:yield _this74.auth.currentUser.getIdToken(forceRefresh)}:null})()}addAuthTokenListener(listener){if(this.assertAuthConfigured(),this.internalListeners.has(listener))return;const unsubscribe=this.auth.onIdTokenChanged(user2=>{listener(user2?.stsTokenManager.accessToken||null)});this.internalListeners.set(listener,unsubscribe),this.updateProactiveRefresh()}removeAuthTokenListener(listener){this.assertAuthConfigured();const unsubscribe=this.internalListeners.get(listener);unsubscribe&&(this.internalListeners.delete(listener),unsubscribe(),this.updateProactiveRefresh())}assertAuthConfigured(){_assert(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}getDefaults(),function _setExternalJSProvider(p){externalJSProvider=p}({loadJS:url=>new Promise((resolve,reject)=>{const el=document.createElement("script");el.setAttribute("src",url),el.onload=resolve,el.onerror=e2=>{const error=_createError("internal-error");error.customData=e2,reject(error)},el.type="text/javascript",el.charset="UTF-8",function getScriptParentElement(){var _a,_b;return null!==(_b=null===(_a=document.getElementsByTagName("head"))||void 0===_a?void 0:_a[0])&&void 0!==_b?_b:document}().appendChild(el)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function registerAuth(clientPlatform){_registerComponent(new index_esm2017_Component("auth",(container,{options:deps})=>{const app=container.getProvider("app").getImmediate(),heartbeatServiceProvider=container.getProvider("heartbeat"),appCheckServiceProvider=container.getProvider("app-check-internal"),{apiKey,authDomain}=app.options;_assert(apiKey&&!apiKey.includes(":"),"invalid-api-key",{appName:app.name});const config2={apiKey,authDomain,clientPlatform,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:_getClientVersion(clientPlatform)},authInstance=new AuthImpl(app,heartbeatServiceProvider,appCheckServiceProvider,config2);return function _initializeAuthInstance(auth,deps){const persistence=deps?.persistence||[],hierarchy=(Array.isArray(persistence)?persistence:[persistence]).map(_getInstance);deps?.errorMap&&auth._updateErrorMap(deps.errorMap),auth._initializeWithPersistence(hierarchy,deps?.popupRedirectResolver)}(authInstance,deps),authInstance},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((container,_instanceIdentifier,_instance)=>{container.getProvider("auth-internal").initialize()})),_registerComponent(new index_esm2017_Component("auth-internal",container=>{const auth=function _castAuth(auth){return index_esm2017_getModularInstance(auth)}(container.getProvider("auth").getImmediate());return new AuthInterop(auth)},"PRIVATE").setInstantiationMode("EXPLICIT")),index_esm2017_registerVersion("@firebase/auth","1.7.2",function getVersionForPlatform(clientPlatform){switch(clientPlatform){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(clientPlatform)),index_esm2017_registerVersion("@firebase/auth","1.7.2","esm2017")}("Browser");class AuthInstances{constructor(){return angular_fire_getAllInstancesOf("auth")}}const CONFIG_STORAGE_BUCKET_KEY="storageBucket";class StorageError extends FirebaseError{constructor(code,message,status_=0){super(prependCode(code),`Firebase Storage: ${message} (${prependCode(code)})`),this.status_=status_,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,StorageError.prototype)}get status(){return this.status_}set status(status){this.status_=status}_codeEquals(code){return prependCode(code)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(serverResponse){this.customData.serverResponse=serverResponse,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var StorageErrorCode=function(StorageErrorCode2){return StorageErrorCode2.UNKNOWN="unknown",StorageErrorCode2.OBJECT_NOT_FOUND="object-not-found",StorageErrorCode2.BUCKET_NOT_FOUND="bucket-not-found",StorageErrorCode2.PROJECT_NOT_FOUND="project-not-found",StorageErrorCode2.QUOTA_EXCEEDED="quota-exceeded",StorageErrorCode2.UNAUTHENTICATED="unauthenticated",StorageErrorCode2.UNAUTHORIZED="unauthorized",StorageErrorCode2.UNAUTHORIZED_APP="unauthorized-app",StorageErrorCode2.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",StorageErrorCode2.INVALID_CHECKSUM="invalid-checksum",StorageErrorCode2.CANCELED="canceled",StorageErrorCode2.INVALID_EVENT_NAME="invalid-event-name",StorageErrorCode2.INVALID_URL="invalid-url",StorageErrorCode2.INVALID_DEFAULT_BUCKET="invalid-default-bucket",StorageErrorCode2.NO_DEFAULT_BUCKET="no-default-bucket",StorageErrorCode2.CANNOT_SLICE_BLOB="cannot-slice-blob",StorageErrorCode2.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",StorageErrorCode2.NO_DOWNLOAD_URL="no-download-url",StorageErrorCode2.INVALID_ARGUMENT="invalid-argument",StorageErrorCode2.INVALID_ARGUMENT_COUNT="invalid-argument-count",StorageErrorCode2.APP_DELETED="app-deleted",StorageErrorCode2.INVALID_ROOT_OPERATION="invalid-root-operation",StorageErrorCode2.INVALID_FORMAT="invalid-format",StorageErrorCode2.INTERNAL_ERROR="internal-error",StorageErrorCode2.UNSUPPORTED_ENVIRONMENT="unsupported-environment",StorageErrorCode2}(StorageErrorCode||{});function prependCode(code){return"storage/"+code}function unknown(){return new StorageError(StorageErrorCode.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function invalidArgument(message){return new StorageError(StorageErrorCode.INVALID_ARGUMENT,message)}function appDeleted(){return new StorageError(StorageErrorCode.APP_DELETED,"The Firebase app was deleted.")}function invalidFormat(format,message){return new StorageError(StorageErrorCode.INVALID_FORMAT,"String does not match format '"+format+"': "+message)}function internalError(message){throw new StorageError(StorageErrorCode.INTERNAL_ERROR,"Internal error: "+message)}class index_esm2017_Location{constructor(bucket,path){this.bucket=bucket,this.path_=path}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const encode=encodeURIComponent;return"/b/"+encode(this.bucket)+"/o/"+encode(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(bucketString,host){let bucketLocation;try{bucketLocation=index_esm2017_Location.makeFromUrl(bucketString,host)}catch{return new index_esm2017_Location(bucketString,"")}if(""===bucketLocation.path)return bucketLocation;throw function invalidDefaultBucket(bucket){return new StorageError(StorageErrorCode.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+bucket+"'.")}(bucketString)}static makeFromUrl(url,host){let location2=null;const gsRegex=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function httpModify(loc){loc.path_=decodeURIComponent(loc.path)}const firebaseStorageHost=host.replace(/[.]/g,"\\."),groups=[{regex:gsRegex,indices:{bucket:1,path:3},postModify:function gsModify(loc){"/"===loc.path.charAt(loc.path.length-1)&&(loc.path_=loc.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${firebaseStorageHost}/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:httpModify},{regex:new RegExp(`^https?://${"firebasestorage.googleapis.com"===host?"(?:storage.googleapis.com|storage.cloud.google.com)":host}/([A-Za-z0-9.\\-_]+)/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:httpModify}];for(let i=0;imaxValue)throw invalidArgument(`Invalid value for '${argument}'. Expected ${maxValue} or less.`)}function makeUrl(urlPart,host,protocol){let origin=host;return null==protocol&&(origin=`https://${host}`),`${protocol}://${origin}/v0${urlPart}`}var ErrorCode=function(ErrorCode2){return ErrorCode2[ErrorCode2.NO_ERROR=0]="NO_ERROR",ErrorCode2[ErrorCode2.NETWORK_ERROR=1]="NETWORK_ERROR",ErrorCode2[ErrorCode2.ABORT=2]="ABORT",ErrorCode2}(ErrorCode||{});class NetworkRequest{constructor(url_,method_,headers_,body_,successCodes_,additionalRetryCodes_,callback_,errorCallback_,timeout_,progressCallback_,connectionFactory_,retry2=!0){this.url_=url_,this.method_=method_,this.headers_=headers_,this.body_=body_,this.successCodes_=successCodes_,this.additionalRetryCodes_=additionalRetryCodes_,this.callback_=callback_,this.errorCallback_=errorCallback_,this.timeout_=timeout_,this.progressCallback_=progressCallback_,this.connectionFactory_=connectionFactory_,this.retry=retry2,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((resolve,reject)=>{this.resolve_=resolve,this.reject_=reject,this.start_()})}start_(){const backoffDone=(requestWentThrough,status)=>{const resolve=this.resolve_,reject=this.reject_,connection=status.connection;if(status.wasSuccessCode)try{const result=this.callback_(connection,connection.getResponse());!function isJustDef(p){return void 0!==p}(result)?resolve():resolve(result)}catch(e2){reject(e2)}else if(null!==connection){const err=unknown();err.serverResponse=connection.getErrorText(),reject(this.errorCallback_?this.errorCallback_(connection,err):err)}else reject(status.canceled?this.appDelete_?appDeleted():function canceled(){return new StorageError(StorageErrorCode.CANCELED,"User canceled the upload/download.")}():function retryLimitExceeded(){return new StorageError(StorageErrorCode.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}())};this.canceled_?backoffDone(0,new RequestEndStatus(!1,null,!0)):this.backoffId_=function start(doRequest,backoffCompleteCb,timeout){let waitSeconds=1,retryTimeoutId=null,globalTimeoutId=null,hitTimeout=!1,cancelState=0;function canceled2(){return 2===cancelState}let triggeredCallback=!1;function triggerCallback(...args){triggeredCallback||(triggeredCallback=!0,backoffCompleteCb.apply(null,args))}function callWithDelay(millis){retryTimeoutId=setTimeout(()=>{retryTimeoutId=null,doRequest(responseHandler,canceled2())},millis)}function clearGlobalTimeout(){globalTimeoutId&&clearTimeout(globalTimeoutId)}function responseHandler(success,...args){if(triggeredCallback)return void clearGlobalTimeout();if(success)return clearGlobalTimeout(),void triggerCallback.call(null,success,...args);if(canceled2()||hitTimeout)return clearGlobalTimeout(),void triggerCallback.call(null,success,...args);let waitMillis;waitSeconds<64&&(waitSeconds*=2),1===cancelState?(cancelState=2,waitMillis=0):waitMillis=1e3*(waitSeconds+Math.random()),callWithDelay(waitMillis)}let stopped=!1;function stop2(wasTimeout){stopped||(stopped=!0,clearGlobalTimeout(),!triggeredCallback&&(null!==retryTimeoutId?(wasTimeout||(cancelState=2),clearTimeout(retryTimeoutId),callWithDelay(0)):wasTimeout||(cancelState=1)))}return callWithDelay(0),globalTimeoutId=setTimeout(()=>{hitTimeout=!0,stop2(!0)},timeout),stop2}((backoffCallback,canceled2)=>{if(canceled2)return void backoffCallback(!1,new RequestEndStatus(!1,null,!0));const connection=this.connectionFactory_();this.pendingConnection_=connection;const progressListener=progressEvent=>{null!==this.progressCallback_&&this.progressCallback_(progressEvent.loaded,progressEvent.lengthComputable?progressEvent.total:-1)};null!==this.progressCallback_&&connection.addUploadProgressListener(progressListener),connection.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&connection.removeUploadProgressListener(progressListener),this.pendingConnection_=null;const hitServer=connection.getErrorCode()===ErrorCode.NO_ERROR,status=connection.getStatus();if(!hitServer||function isRetryStatusCode(status,additionalRetryCodes){const isFiveHundredCode=status>=500&&status<600,isExtraRetryCode=-1!==[408,429].indexOf(status),isAdditionalRetryCode=-1!==additionalRetryCodes.indexOf(status);return isFiveHundredCode||isExtraRetryCode||isAdditionalRetryCode}(status,this.additionalRetryCodes_)&&this.retry){const wasCanceled=connection.getErrorCode()===ErrorCode.ABORT;return void backoffCallback(!1,new RequestEndStatus(!1,null,wasCanceled))}const successCode=-1!==this.successCodes_.indexOf(status);backoffCallback(!0,new RequestEndStatus(successCode,connection))})},backoffDone,this.timeout_)}getPromise(){return this.promise_}cancel(appDelete){this.canceled_=!0,this.appDelete_=appDelete||!1,null!==this.backoffId_&&function stop(id){id(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class RequestEndStatus{constructor(wasSuccessCode,connection,canceled2){this.wasSuccessCode=wasSuccessCode,this.connection=connection,this.canceled=!!canceled2}}function getBlob$1(...args){const BlobBuilder2=function getBlobBuilder(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==BlobBuilder2){const bb=new BlobBuilder2;for(let i=0;i>6,128|63&c):55296==(64512&c)?i>18,128|c>>12&63,128|c>>6&63,128|63&c)):b.push(239,191,189):56320==(64512&c)?b.push(239,191,189):b.push(224|c>>12,128|c>>6&63,128|63&c)}return new Uint8Array(b)}function base64Bytes_(format,value){switch(format){case StringFormat.BASE64:{const hasMinus=-1!==value.indexOf("-"),hasUnder=-1!==value.indexOf("_");if(hasMinus||hasUnder)throw invalidFormat(format,"Invalid character '"+(hasMinus?"-":"_")+"' found: is it base64url encoded?");break}case StringFormat.BASE64URL:{const hasPlus=-1!==value.indexOf("+"),hasSlash=-1!==value.indexOf("/");if(hasPlus||hasSlash)throw invalidFormat(format,"Invalid character '"+(hasPlus?"+":"/")+"' found: is it base64 encoded?");value=value.replace(/-/g,"+").replace(/_/g,"/");break}}let bytes;try{bytes=function decodeBase64(encoded){if(typeof atob>"u")throw function missingPolyFill(polyFill){return new StorageError(StorageErrorCode.UNSUPPORTED_ENVIRONMENT,`${polyFill} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(encoded)}(value)}catch(e2){throw e2.message.includes("polyfill")?e2:invalidFormat(format,"Invalid character found")}const array=new Uint8Array(bytes.length);for(let i=0;i][;base64],");const middle=matches[1]||null;null!=middle&&(this.base64=function endsWith(s,end){return s.length>=end.length&&s.substring(s.length-end.length)===end}(middle,";base64"),this.contentType=this.base64?middle.substring(0,middle.length-7):middle),this.rest=dataURL.substring(dataURL.indexOf(",")+1)}}class FbsBlob{constructor(data,elideCopy){let size=0,blobType="";isNativeBlob(data)?(this.data_=data,size=data.size,blobType=data.type):data instanceof ArrayBuffer?(elideCopy?this.data_=new Uint8Array(data):(this.data_=new Uint8Array(data.byteLength),this.data_.set(new Uint8Array(data))),size=this.data_.length):data instanceof Uint8Array&&(elideCopy?this.data_=data:(this.data_=new Uint8Array(data.length),this.data_.set(data)),size=data.length),this.size_=size,this.type_=blobType}size(){return this.size_}type(){return this.type_}slice(startByte,endByte){if(isNativeBlob(this.data_)){const sliced=function sliceBlob(blob,start2,end){return blob.webkitSlice?blob.webkitSlice(start2,end):blob.mozSlice?blob.mozSlice(start2,end):blob.slice?blob.slice(start2,end):null}(this.data_,startByte,endByte);return null===sliced?null:new FbsBlob(sliced)}{const slice=new Uint8Array(this.data_.buffer,startByte,endByte-startByte);return new FbsBlob(slice,!0)}}static getBlob(...args){if(isNativeBlobDefined()){const blobby=args.map(val=>val instanceof FbsBlob?val.data_:val);return new FbsBlob(getBlob$1.apply(null,blobby))}{const uint8Arrays=args.map(val=>index_esm2017_isString(val)?dataFromString(StringFormat.RAW,val).data:val.data_);let finalLength=0;uint8Arrays.forEach(array=>{finalLength+=array.byteLength});const merged=new Uint8Array(finalLength);let index=0;return uint8Arrays.forEach(array=>{for(let i=0;idata,service.maxOperationRetryTime);return requestInfo.errorHandler=function objectErrorHandler(location2){const shared=sharedErrorHandler(location2);return function errorHandler2(xhr,err){let newErr=shared(xhr,err);return 404===xhr.getStatus()&&(newErr=function objectNotFound(path){return new StorageError(StorageErrorCode.OBJECT_NOT_FOUND,"Object '"+path+"' does not exist.")}(location2.path)),newErr.serverResponse=err.serverResponse,newErr}}(location2),void 0!==maxDownloadSizeBytes&&(requestInfo.headers.Range=`bytes=0-${maxDownloadSizeBytes}`,requestInfo.successCodes=[200,206]),requestInfo}function multipartUpload(service,location2,mappings,blob,metadata){const urlPart=location2.bucketOnlyServerUrl(),headers={"X-Goog-Upload-Protocol":"multipart"},boundary=function genBoundary(){let str="";for(let i=0;i<2;i++)str+=Math.random().toString().slice(2);return str}();headers["Content-Type"]="multipart/related; boundary="+boundary;const metadata_=function metadataForUpload_(location2,blob,metadata){const metadataClone=Object.assign({},metadata);return metadataClone.fullPath=location2.path,metadataClone.size=blob.size(),metadataClone.contentType||(metadataClone.contentType=function determineContentType_(metadata,blob){return metadata&&metadata.contentType||blob&&blob.type()||"application/octet-stream"}(null,blob)),metadataClone}(location2,blob,metadata),metadataString=function toResourceString(metadata,mappings){const resource={},len=mappings.length;for(let i=0;i{this.xhr_.addEventListener("abort",()=>{this.errorCode_=ErrorCode.ABORT,resolve()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=ErrorCode.NETWORK_ERROR,resolve()}),this.xhr_.addEventListener("load",()=>{resolve()})})}send(url,method,body,headers){if(this.sent_)throw internalError("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(method,url,!0),void 0!==headers)for(const key in headers)headers.hasOwnProperty(key)&&this.xhr_.setRequestHeader(key,headers[key].toString());return void 0!==body?this.xhr_.send(body):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw internalError("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw internalError("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw internalError("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw internalError("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(header){return this.xhr_.getResponseHeader(header)}addUploadProgressListener(listener){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",listener)}removeUploadProgressListener(listener){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",listener)}}class XhrTextConnection extends XhrConnection{initXhr(){this.xhr_.responseType="text"}}function newTextConnection(){return textFactoryOverride?textFactoryOverride():new XhrTextConnection}class XhrBlobConnection extends XhrConnection{initXhr(){this.xhr_.responseType="blob"}}function newBlobConnection(){return new XhrBlobConnection}class Reference{constructor(_service,location2){this._service=_service,this._location=location2 instanceof index_esm2017_Location?location2:index_esm2017_Location.makeFromUrl(location2,_service.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(service,location2){return new Reference(service,location2)}get root(){const location2=new index_esm2017_Location(this._location.bucket,"");return this._newRef(this._service,location2)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return lastComponent(this._location.path)}get storage(){return this._service}get parent(){const newPath=function index_esm2017_parent(path){if(0===path.length)return null;const index=path.lastIndexOf("/");return-1===index?"":path.slice(0,index)}(this._location.path);if(null===newPath)return null;const location2=new index_esm2017_Location(this._location.bucket,newPath);return new Reference(this._service,location2)}_throwIfRoot(name){if(""===this._location.path)throw function invalidRootOperation(name){return new StorageError(StorageErrorCode.INVALID_ROOT_OPERATION,"The operation '"+name+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(name)}}function index_esm2017_uploadBytes$1(ref2,data,metadata){ref2._throwIfRoot("uploadBytes");const requestInfo=multipartUpload(ref2.storage,ref2._location,function getMappings(){if(mappings_)return mappings_;const mappings=[];mappings.push(new Mapping("bucket")),mappings.push(new Mapping("generation")),mappings.push(new Mapping("metageneration")),mappings.push(new Mapping("name","fullPath",!0));const nameMapping=new Mapping("name");nameMapping.xform=function mappingsXformPath(_metadata,fullPath){return function xformPath(fullPath){return!index_esm2017_isString(fullPath)||fullPath.length<2?fullPath:lastComponent(fullPath)}(fullPath)},mappings.push(nameMapping);const sizeMapping=new Mapping("size");return sizeMapping.xform=function xformSize(_metadata,size){return void 0!==size?Number(size):size},mappings.push(sizeMapping),mappings.push(new Mapping("timeCreated")),mappings.push(new Mapping("updated")),mappings.push(new Mapping("md5Hash",null,!0)),mappings.push(new Mapping("cacheControl",null,!0)),mappings.push(new Mapping("contentDisposition",null,!0)),mappings.push(new Mapping("contentEncoding",null,!0)),mappings.push(new Mapping("contentLanguage",null,!0)),mappings.push(new Mapping("contentType",null,!0)),mappings.push(new Mapping("metadata","customMetadata",!0)),mappings_=mappings,mappings_}(),new FbsBlob(data,!0),metadata);return ref2.storage.makeRequestWithTokens(requestInfo,newTextConnection).then(finalMetadata=>({metadata:finalMetadata,ref:ref2}))}function refFromPath(ref2,path){if(ref2 instanceof FirebaseStorageImpl){const service=ref2;if(null==service._bucket)throw function noDefaultBucket(){return new StorageError(StorageErrorCode.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+CONFIG_STORAGE_BUCKET_KEY+"' property when initializing the app?")}();const reference=new Reference(service,service._bucket);return null!=path?refFromPath(reference,path):reference}return void 0!==path?function _getChild$1(ref2,childPath){const newPath=function child(path,childPath){const canonicalChildPath=childPath.split("/").filter(component=>component.length>0).join("/");return 0===path.length?canonicalChildPath:path+"/"+canonicalChildPath}(ref2._location.path,childPath),location2=new index_esm2017_Location(ref2._location.bucket,newPath);return new Reference(ref2.storage,location2)}(ref2,path):ref2}function extractBucket(host,config2){const bucketString=config2?.[CONFIG_STORAGE_BUCKET_KEY];return null==bucketString?null:index_esm2017_Location.makeFromBucketSpec(bucketString,host)}class FirebaseStorageImpl{constructor(app,_authProvider,_appCheckProvider,_url,_firebaseVersion){this.app=app,this._authProvider=_authProvider,this._appCheckProvider=_appCheckProvider,this._url=_url,this._firebaseVersion=_firebaseVersion,this._bucket=null,this._host="firebasestorage.googleapis.com",this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=_url?index_esm2017_Location.makeFromBucketSpec(_url,this._host):extractBucket(this._host,this.app.options)}get host(){return this._host}set host(host){this._host=host,this._bucket=null!=this._url?index_esm2017_Location.makeFromBucketSpec(this._url,host):extractBucket(host,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(time){validateNumber("time",0,Number.POSITIVE_INFINITY,time),this._maxUploadRetryTime=time}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(time){validateNumber("time",0,Number.POSITIVE_INFINITY,time),this._maxOperationRetryTime=time}_getAuthToken(){var _this=this;return asyncToGenerator_asyncToGenerator(function*(){if(_this._overrideAuthToken)return _this._overrideAuthToken;const auth=_this._authProvider.getImmediate({optional:!0});if(auth){const tokenData=yield auth.getToken();if(null!==tokenData)return tokenData.accessToken}return null})()}_getAppCheckToken(){var _this2=this;return asyncToGenerator_asyncToGenerator(function*(){const appCheck=_this2._appCheckProvider.getImmediate({optional:!0});return appCheck?(yield appCheck.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(request=>request.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(loc){return new Reference(this,loc)}_makeRequest(requestInfo,requestFactory,authToken,appCheckToken,retry2=!0){if(this._deleted)return new FailRequest(appDeleted());{const request=function makeRequest(requestInfo,appId,authToken,appCheckToken,requestFactory,firebaseVersion,retry2=!0){const queryPart=function makeQueryString(params){const encode=encodeURIComponent;let queryPart="?";for(const key in params)params.hasOwnProperty(key)&&(queryPart=queryPart+(encode(key)+"=")+encode(params[key])+"&");return queryPart=queryPart.slice(0,-1),queryPart}(requestInfo.urlParams),url=requestInfo.url+queryPart,headers=Object.assign({},requestInfo.headers);return function addGmpidHeader_(headers,appId){appId&&(headers["X-Firebase-GMPID"]=appId)}(headers,appId),function addAuthHeader_(headers,authToken){null!==authToken&&authToken.length>0&&(headers.Authorization="Firebase "+authToken)}(headers,authToken),function addVersionHeader_(headers,firebaseVersion){headers["X-Firebase-Storage-Version"]="webjs/"+(firebaseVersion??"AppManager")}(headers,firebaseVersion),function addAppCheckHeader_(headers,appCheckToken){null!==appCheckToken&&(headers["X-Firebase-AppCheck"]=appCheckToken)}(headers,appCheckToken),new NetworkRequest(url,requestInfo.method,headers,requestInfo.body,requestInfo.successCodes,requestInfo.additionalRetryCodes,requestInfo.handler,requestInfo.errorHandler,requestInfo.timeout,requestInfo.progressCallback,requestFactory,retry2)}(requestInfo,this._appId,authToken,appCheckToken,requestFactory,this._firebaseVersion,retry2);return this._requests.add(request),request.getPromise().then(()=>this._requests.delete(request),()=>this._requests.delete(request)),request}}makeRequestWithTokens(requestInfo,requestFactory){var _this3=this;return asyncToGenerator_asyncToGenerator(function*(){const[authToken,appCheckToken]=yield Promise.all([_this3._getAuthToken(),_this3._getAppCheckToken()]);return _this3._makeRequest(requestInfo,requestFactory,authToken,appCheckToken).getPromise()})()}}function uploadString(ref2,value,format,metadata){return function uploadString$1(ref2,value,format=StringFormat.RAW,metadata){ref2._throwIfRoot("uploadString");const data=dataFromString(format,value),metadataClone=Object.assign({},metadata);return null==metadataClone.contentType&&null!=data.contentType&&(metadataClone.contentType=data.contentType),index_esm2017_uploadBytes$1(ref2,data.data,metadataClone)}(ref2=index_esm2017_getModularInstance(ref2),value,format,metadata)}function ref(serviceOrRef,pathOrUrl){return function ref$1(serviceOrRef,pathOrUrl){if(pathOrUrl&&function isUrl(path){return/^[A-Za-z]+:\/\//.test(path)}(pathOrUrl)){if(serviceOrRef instanceof FirebaseStorageImpl)return function refFromURL(service,url){return new Reference(service,url)}(serviceOrRef,pathOrUrl);throw invalidArgument("To use ref(service, url), the first argument must be a Storage instance.")}return refFromPath(serviceOrRef,pathOrUrl)}(serviceOrRef=index_esm2017_getModularInstance(serviceOrRef),pathOrUrl)}function getStorage(app=index_esm2017_getApp(),bucketUrl){const storageInstance=function index_esm2017_getProvider(app,name){const heartbeatController=app.container.getProvider("heartbeat").getImmediate({optional:!0});return heartbeatController&&heartbeatController.triggerHeartbeat(),app.container.getProvider(name)}(app=index_esm2017_getModularInstance(app),"storage").getImmediate({identifier:bucketUrl}),emulator=(productName=>{const host=(productName=>{var _a,_b;return null===(_b=null===(_a=getDefaults())||void 0===_a?void 0:_a.emulatorHosts)||void 0===_b?void 0:_b[productName]})(productName);if(!host)return;const separatorIndex=host.lastIndexOf(":");if(separatorIndex<=0||separatorIndex+1===host.length)throw new Error(`Invalid host ${host} with no separate hostname and port!`);const port=parseInt(host.substring(separatorIndex+1),10);return"["===host[0]?[host.substring(1,separatorIndex-1),port]:[host.substring(0,separatorIndex),port]})("storage");return emulator&&function connectStorageEmulator(storage,host,port,options={}){!function index_esm2017_connectStorageEmulator$1(storage,host,port,options={}){storage.host=`${host}:${port}`,storage._protocol="http";const{mockUserToken}=options;mockUserToken&&(storage._overrideAuthToken="string"==typeof mockUserToken?mockUserToken:function createMockUserToken(token,projectId){if(token.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const project=projectId||"demo-project",iat=token.iat||0,sub=token.sub||token.user_id;if(!sub)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const payload=Object.assign({iss:`https://securetoken.google.com/${project}`,aud:project,iat,exp:iat+3600,auth_time:iat,sub,user_id:sub,firebase:{sign_in_provider:"custom",identities:{}}},token);return[base64urlEncodeWithoutPadding(JSON.stringify({alg:"none",type:"JWT"})),base64urlEncodeWithoutPadding(JSON.stringify(payload)),""].join(".")}(mockUserToken,storage.app.options.projectId))}(storage,host,port,options)}(storageInstance,...emulator),storageInstance}function getBlob(ref2,maxDownloadSizeBytes){return function getBlobInternal(ref2,maxDownloadSizeBytes){ref2._throwIfRoot("getBlob");const requestInfo=index_esm2017_getBytes$1(ref2.storage,ref2._location,maxDownloadSizeBytes);return ref2.storage.makeRequestWithTokens(requestInfo,newBlobConnection).then(blob=>void 0!==maxDownloadSizeBytes?blob.slice(0,maxDownloadSizeBytes):blob)}(ref2=index_esm2017_getModularInstance(ref2),maxDownloadSizeBytes)}function factory(container,{instanceIdentifier:url}){const app=container.getProvider("app").getImmediate(),authProvider=container.getProvider("auth-internal"),appCheckProvider=container.getProvider("app-check-internal");return new FirebaseStorageImpl(app,authProvider,appCheckProvider,url,index_esm2017_SDK_VERSION)}!function registerStorage(){_registerComponent(new index_esm2017_Component("storage",factory,"PUBLIC").setMultipleInstances(!0)),index_esm2017_registerVersion("@firebase/storage","0.12.4",""),index_esm2017_registerVersion("@firebase/storage","0.12.4","esm2017")}();class Storage{constructor(auth){return auth}}const PROVIDED_STORAGE_INSTANCES=new InjectionToken("angularfire2.storage-instances");function storageInstanceFactory(fn){return(zone,injector)=>{const storage=zone.runOutsideAngular(()=>fn(injector));return new Storage(storage)}}const STORAGE_INSTANCES_PROVIDER={provide:class StorageInstances{constructor(){return angular_fire_getAllInstancesOf("storage")}},deps:[[new core_Optional,PROVIDED_STORAGE_INSTANCES]]},DEFAULT_STORAGE_INSTANCE_PROVIDER={provide:Storage,useFactory:function defaultStorageInstanceFactory(provided,defaultApp){const defaultStorage=function \u0275getDefaultInstanceOf(identifier,provided,defaultApp){if(provided){if(1===provided.length)return provided[0];const providedUsingDefaultApp=provided.filter(it=>it.app===defaultApp);if(1===providedUsingDefaultApp.length)return providedUsingDefaultApp[0]}return defaultApp.container.getProvider(identifier).getImmediate({optional:!0})}("storage",provided,defaultApp);return defaultStorage&&new Storage(defaultStorage)},deps:[[new core_Optional,PROVIDED_STORAGE_INSTANCES],FirebaseApp]};let StorageModule=(()=>{class StorageModule2{constructor(){index_esm2017_registerVersion("angularfire",angular_fire_VERSION.full,"gcs")}static \u0275fac=function(t){return new(t||StorageModule2)};static \u0275mod=\u0275\u0275defineNgModule({type:StorageModule2});static \u0275inj=\u0275\u0275defineInjector({providers:[DEFAULT_STORAGE_INSTANCE_PROVIDER,STORAGE_INSTANCES_PROVIDER]})}return StorageModule2})();function provideStorage(fn,...deps){return{ngModule:StorageModule,providers:[{provide:PROVIDED_STORAGE_INSTANCES,useFactory:storageInstanceFactory(fn),multi:!0,deps:[core_NgZone,core_Injector,angular_fire_AngularFireSchedulers,angular_fire_app_FirebaseApps,[new core_Optional,AuthInstances],[new core_Optional,angular_fire_AppCheckInstances],...deps]}]}}const angular_fire_storage_getBlob=angular_fire_zoneWrap(getBlob,!0),angular_fire_storage_getStorage=angular_fire_zoneWrap(getStorage,!0),angular_fire_storage_ref=angular_fire_zoneWrap(ref,!0),angular_fire_storage_uploadString=angular_fire_zoneWrap(uploadString,!0),{isArray}=Array,{getPrototypeOf,prototype:objectProto,keys:getKeys}=Object;function argsArgArrayOrObject(args){if(1===args.length){const first2=args[0];if(isArray(first2))return{args:first2,keys:null};if(function isPOJO(obj){return obj&&"object"==typeof obj&&getPrototypeOf(obj)===objectProto}(first2)){const keys=getKeys(first2);return{args:keys.map(key=>first2[key]),keys}}}return{args,keys:null}}const{isArray:mapOneOrManyArgs_isArray}=Array;function mapOneOrManyArgs(fn){return map_map(args=>function callOrApply(fn,args){return mapOneOrManyArgs_isArray(args)?fn(...args):fn(args)}(fn,args))}function createObject(keys,values){return keys.reduce((result,key,i)=>(result[key]=values[i],result),{})}let BaseControlValueAccessor=(()=>{class BaseControlValueAccessor2{constructor(_renderer,_elementRef){this._renderer=_renderer,this._elementRef=_elementRef,this.onChange=_=>{},this.onTouched=()=>{}}setProperty(key,value){this._renderer.setProperty(this._elementRef.nativeElement,key,value)}registerOnTouched(fn){this.onTouched=fn}registerOnChange(fn){this.onChange=fn}setDisabledState(isDisabled){this.setProperty("disabled",isDisabled)}static#_=this.\u0275fac=function(t){return new(t||BaseControlValueAccessor2)(\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(core_ElementRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:BaseControlValueAccessor2})}return BaseControlValueAccessor2})(),BuiltInControlValueAccessor=(()=>{class BuiltInControlValueAccessor2 extends BaseControlValueAccessor{static#_=this.\u0275fac=(()=>{let \u0275BuiltInControlValueAccessor_BaseFactory;return function(t){return(\u0275BuiltInControlValueAccessor_BaseFactory||(\u0275BuiltInControlValueAccessor_BaseFactory=\u0275\u0275getInheritedFactory(BuiltInControlValueAccessor2)))(t||BuiltInControlValueAccessor2)}})();static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:BuiltInControlValueAccessor2,features:[\u0275\u0275InheritDefinitionFeature]})}return BuiltInControlValueAccessor2})();const NG_VALUE_ACCESSOR=new InjectionToken(""),DEFAULT_VALUE_ACCESSOR={provide:NG_VALUE_ACCESSOR,useExisting:core_forwardRef(()=>DefaultValueAccessor),multi:!0},COMPOSITION_BUFFER_MODE=new InjectionToken("");let DefaultValueAccessor=(()=>{class DefaultValueAccessor2 extends BaseControlValueAccessor{constructor(renderer,elementRef,_compositionMode){super(renderer,elementRef),this._compositionMode=_compositionMode,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function forms_isAndroid(){const userAgent=getDOM()?getDOM().getUserAgent():"";return/android (\d+)/.test(userAgent.toLowerCase())}())}writeValue(value){this.setProperty("value",value??"")}_handleInput(value){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(value)}_compositionStart(){this._composing=!0}_compositionEnd(value){this._composing=!1,this._compositionMode&&this.onChange(value)}static#_=this.\u0275fac=function(t){return new(t||DefaultValueAccessor2)(\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(COMPOSITION_BUFFER_MODE,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:DefaultValueAccessor2,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(rf,ctx){1&rf&&\u0275\u0275listener("input",function($event){return ctx._handleInput($event.target.value)})("blur",function(){return ctx.onTouched()})("compositionstart",function(){return ctx._compositionStart()})("compositionend",function($event){return ctx._compositionEnd($event.target.value)})},features:[\u0275\u0275ProvidersFeature([DEFAULT_VALUE_ACCESSOR]),\u0275\u0275InheritDefinitionFeature]})}return DefaultValueAccessor2})();const NG_VALIDATORS=new InjectionToken(""),NG_ASYNC_VALIDATORS=new InjectionToken("");function isPresent(o){return null!=o}function toObservable(value){return isPromise(value)?from_from(value):value}function mergeErrors(arrayOfErrors){let res={};return arrayOfErrors.forEach(errors=>{res=null!=errors?{...res,...errors}:res}),0===Object.keys(res).length?null:res}function executeValidators(control,validators){return validators.map(validator=>validator(control))}function normalizeValidators(validators){return validators.map(validator=>function isValidatorFn(validator){return!validator.validate}(validator)?validator:c=>validator.validate(c))}function composeValidators(validators){return null!=validators?function compose(validators){if(!validators)return null;const presentValidators=validators.filter(isPresent);return 0==presentValidators.length?null:function(control){return mergeErrors(executeValidators(control,presentValidators))}}(normalizeValidators(validators)):null}function composeAsync(validators){if(!validators)return null;const presentValidators=validators.filter(isPresent);return 0==presentValidators.length?null:function(control){return function forkJoin(...args){const resultSelector=popResultSelector(args),{args:sources,keys}=argsArgArrayOrObject(args),result=new Observable_Observable(subscriber=>{const{length}=sources;if(!length)return void subscriber.complete();const values=new Array(length);let remainingCompletions=length,remainingEmissions=length;for(let sourceIndex=0;sourceIndex{hasValue||(hasValue=!0,remainingEmissions--),values[sourceIndex]=value},()=>remainingCompletions--,void 0,()=>{(!remainingCompletions||!hasValue)&&(remainingEmissions||subscriber.next(keys?createObject(keys,values):values),subscriber.complete())}))}});return resultSelector?result.pipe(mapOneOrManyArgs(resultSelector)):result}(executeValidators(control,presentValidators).map(toObservable)).pipe(map_map(mergeErrors))}}function composeAsyncValidators(validators){return null!=validators?composeAsync(normalizeValidators(validators)):null}function mergeValidators(controlValidators,dirValidator){return null===controlValidators?[dirValidator]:Array.isArray(controlValidators)?[...controlValidators,dirValidator]:[controlValidators,dirValidator]}function makeValidatorsArray(validators){return validators?Array.isArray(validators)?validators:[validators]:[]}function hasValidator(validators,validator){return Array.isArray(validators)?validators.includes(validator):validators===validator}function addValidators(validators,currentValidators){const current=makeValidatorsArray(currentValidators);return makeValidatorsArray(validators).forEach(v=>{hasValidator(current,v)||current.push(v)}),current}function removeValidators(validators,currentValidators){return makeValidatorsArray(currentValidators).filter(v=>!hasValidator(validators,v))}class AbstractControlDirective{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(validators){this._rawValidators=validators||[],this._composedValidatorFn=composeValidators(this._rawValidators)}_setAsyncValidators(validators){this._rawAsyncValidators=validators||[],this._composedAsyncValidatorFn=composeAsyncValidators(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(fn){this._onDestroyCallbacks.push(fn)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(fn=>fn()),this._onDestroyCallbacks=[]}reset(value=void 0){this.control&&this.control.reset(value)}hasError(errorCode,path){return!!this.control&&this.control.hasError(errorCode,path)}getError(errorCode,path){return this.control?this.control.getError(errorCode,path):null}}class ControlContainer extends AbstractControlDirective{get formDirective(){return null}get path(){return null}}class NgControl extends AbstractControlDirective{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class AbstractControlStatus{constructor(cd){this._cd=cd}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let NgControlStatus=(()=>{class NgControlStatus2 extends AbstractControlStatus{constructor(cd){super(cd)}static#_=this.\u0275fac=function(t){return new(t||NgControlStatus2)(\u0275\u0275directiveInject(NgControl,2))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgControlStatus2,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275classProp("ng-untouched",ctx.isUntouched)("ng-touched",ctx.isTouched)("ng-pristine",ctx.isPristine)("ng-dirty",ctx.isDirty)("ng-valid",ctx.isValid)("ng-invalid",ctx.isInvalid)("ng-pending",ctx.isPending)},features:[\u0275\u0275InheritDefinitionFeature]})}return NgControlStatus2})();function isOptionsObj(validatorOrOpts){return null!=validatorOrOpts&&!Array.isArray(validatorOrOpts)&&"object"==typeof validatorOrOpts}class AbstractControl{constructor(validators,asyncValidators){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(validators),this._assignAsyncValidators(asyncValidators)}get validator(){return this._composedValidatorFn}set validator(validatorFn){this._rawValidators=this._composedValidatorFn=validatorFn}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(asyncValidatorFn){this._rawAsyncValidators=this._composedAsyncValidatorFn=asyncValidatorFn}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(validators){this._assignValidators(validators)}setAsyncValidators(validators){this._assignAsyncValidators(validators)}addValidators(validators){this.setValidators(addValidators(validators,this._rawValidators))}addAsyncValidators(validators){this.setAsyncValidators(addValidators(validators,this._rawAsyncValidators))}removeValidators(validators){this.setValidators(removeValidators(validators,this._rawValidators))}removeAsyncValidators(validators){this.setAsyncValidators(removeValidators(validators,this._rawAsyncValidators))}hasValidator(validator){return hasValidator(this._rawValidators,validator)}hasAsyncValidator(validator){return hasValidator(this._rawAsyncValidators,validator)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(opts={}){this.touched=!0,this._parent&&!opts.onlySelf&&this._parent.markAsTouched(opts)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(control=>control.markAllAsTouched())}markAsUntouched(opts={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(control=>{control.markAsUntouched({onlySelf:!0})}),this._parent&&!opts.onlySelf&&this._parent._updateTouched(opts)}markAsDirty(opts={}){this.pristine=!1,this._parent&&!opts.onlySelf&&this._parent.markAsDirty(opts)}markAsPristine(opts={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(control=>{control.markAsPristine({onlySelf:!0})}),this._parent&&!opts.onlySelf&&this._parent._updatePristine(opts)}markAsPending(opts={}){this.status="PENDING",!1!==opts.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!opts.onlySelf&&this._parent.markAsPending(opts)}disable(opts={}){const skipPristineCheck=this._parentMarkedDirty(opts.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(control=>{control.disable({...opts,onlySelf:!0})}),this._updateValue(),!1!==opts.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...opts,skipPristineCheck}),this._onDisabledChange.forEach(changeFn=>changeFn(!0))}enable(opts={}){const skipPristineCheck=this._parentMarkedDirty(opts.onlySelf);this.status="VALID",this._forEachChild(control=>{control.enable({...opts,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:opts.emitEvent}),this._updateAncestors({...opts,skipPristineCheck}),this._onDisabledChange.forEach(changeFn=>changeFn(!1))}_updateAncestors(opts){this._parent&&!opts.onlySelf&&(this._parent.updateValueAndValidity(opts),opts.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(parent){this._parent=parent}getRawValue(){return this.value}updateValueAndValidity(opts={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),("VALID"===this.status||"PENDING"===this.status)&&this._runAsyncValidator(opts.emitEvent)),!1!==opts.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!opts.onlySelf&&this._parent.updateValueAndValidity(opts)}_updateTreeValidity(opts={emitEvent:!0}){this._forEachChild(ctrl=>ctrl._updateTreeValidity(opts)),this.updateValueAndValidity({onlySelf:!0,emitEvent:opts.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(emitEvent){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const obs=toObservable(this.asyncValidator(this));this._asyncValidationSubscription=obs.subscribe(errors=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(errors,{emitEvent})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(errors,opts={}){this.errors=errors,this._updateControlsErrors(!1!==opts.emitEvent)}get(path){let currPath=path;return null==currPath||(Array.isArray(currPath)||(currPath=currPath.split(".")),0===currPath.length)?null:currPath.reduce((control,name)=>control&&control._find(name),this)}getError(errorCode,path){const control=path?this.get(path):this;return control&&control.errors?control.errors[errorCode]:null}hasError(errorCode,path){return!!this.getError(errorCode,path)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(emitEvent){this.status=this._calculateStatus(),emitEvent&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(emitEvent)}_initObservables(){this.valueChanges=new core_EventEmitter,this.statusChanges=new core_EventEmitter}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(status){return this._anyControls(control=>control.status===status)}_anyControlsDirty(){return this._anyControls(control=>control.dirty)}_anyControlsTouched(){return this._anyControls(control=>control.touched)}_updatePristine(opts={}){this.pristine=!this._anyControlsDirty(),this._parent&&!opts.onlySelf&&this._parent._updatePristine(opts)}_updateTouched(opts={}){this.touched=this._anyControlsTouched(),this._parent&&!opts.onlySelf&&this._parent._updateTouched(opts)}_registerOnCollectionChange(fn){this._onCollectionChange=fn}_setUpdateStrategy(opts){isOptionsObj(opts)&&null!=opts.updateOn&&(this._updateOn=opts.updateOn)}_parentMarkedDirty(onlySelf){return!onlySelf&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(name){return null}_assignValidators(validators){this._rawValidators=Array.isArray(validators)?validators.slice():validators,this._composedValidatorFn=function coerceToValidator(validator){return Array.isArray(validator)?composeValidators(validator):validator||null}(this._rawValidators)}_assignAsyncValidators(validators){this._rawAsyncValidators=Array.isArray(validators)?validators.slice():validators,this._composedAsyncValidatorFn=function coerceToAsyncValidator(asyncValidator){return Array.isArray(asyncValidator)?composeAsyncValidators(asyncValidator):asyncValidator||null}(this._rawAsyncValidators)}}const CALL_SET_DISABLED_STATE=new InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>setDisabledStateDefault}),setDisabledStateDefault="always";function setUpControl(control,dir,callSetDisabledState=setDisabledStateDefault){(function setUpValidators(control,dir){const validators=function getControlValidators(control){return control._rawValidators}(control);null!==dir.validator?control.setValidators(mergeValidators(validators,dir.validator)):"function"==typeof validators&&control.setValidators([validators]);const asyncValidators=function getControlAsyncValidators(control){return control._rawAsyncValidators}(control);null!==dir.asyncValidator?control.setAsyncValidators(mergeValidators(asyncValidators,dir.asyncValidator)):"function"==typeof asyncValidators&&control.setAsyncValidators([asyncValidators]);const onValidatorChange=()=>control.updateValueAndValidity();registerOnValidatorChange(dir._rawValidators,onValidatorChange),registerOnValidatorChange(dir._rawAsyncValidators,onValidatorChange)})(control,dir),dir.valueAccessor.writeValue(control.value),(control.disabled||"always"===callSetDisabledState)&&dir.valueAccessor.setDisabledState?.(control.disabled),function setUpViewChangePipeline(control,dir){dir.valueAccessor.registerOnChange(newValue=>{control._pendingValue=newValue,control._pendingChange=!0,control._pendingDirty=!0,"change"===control.updateOn&&updateControl(control,dir)})}(control,dir),function setUpModelChangePipeline(control,dir){const onChange=(newValue,emitModelEvent)=>{dir.valueAccessor.writeValue(newValue),emitModelEvent&&dir.viewToModelUpdate(newValue)};control.registerOnChange(onChange),dir._registerOnDestroy(()=>{control._unregisterOnChange(onChange)})}(control,dir),function setUpBlurPipeline(control,dir){dir.valueAccessor.registerOnTouched(()=>{control._pendingTouched=!0,"blur"===control.updateOn&&control._pendingChange&&updateControl(control,dir),"submit"!==control.updateOn&&control.markAsTouched()})}(control,dir),function setUpDisabledChangeHandler(control,dir){if(dir.valueAccessor.setDisabledState){const onDisabledChange=isDisabled=>{dir.valueAccessor.setDisabledState(isDisabled)};control.registerOnDisabledChange(onDisabledChange),dir._registerOnDestroy(()=>{control._unregisterOnDisabledChange(onDisabledChange)})}}(control,dir)}function registerOnValidatorChange(validators,onChange){validators.forEach(validator=>{validator.registerOnValidatorChange&&validator.registerOnValidatorChange(onChange)})}function updateControl(control,dir){control._pendingDirty&&control.markAsDirty(),control.setValue(control._pendingValue,{emitModelToViewChange:!1}),dir.viewToModelUpdate(control._pendingValue),control._pendingChange=!1}function removeListItem(list2,el){const index=list2.indexOf(el);index>-1&&list2.splice(index,1)}function isFormControlState(formState){return"object"==typeof formState&&null!==formState&&2===Object.keys(formState).length&&"value"in formState&&"disabled"in formState}Promise.resolve();const FormControl=class extends AbstractControl{constructor(formState=null,validatorOrOpts,asyncValidator){super(function pickValidators(validatorOrOpts){return(isOptionsObj(validatorOrOpts)?validatorOrOpts.validators:validatorOrOpts)||null}(validatorOrOpts),function pickAsyncValidators(asyncValidator,validatorOrOpts){return(isOptionsObj(validatorOrOpts)?validatorOrOpts.asyncValidators:asyncValidator)||null}(asyncValidator,validatorOrOpts)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(formState),this._setUpdateStrategy(validatorOrOpts),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),isOptionsObj(validatorOrOpts)&&(validatorOrOpts.nonNullable||validatorOrOpts.initialValueIsDefault)&&(this.defaultValue=isFormControlState(formState)?formState.value:formState)}setValue(value,options={}){this.value=this._pendingValue=value,this._onChange.length&&!1!==options.emitModelToViewChange&&this._onChange.forEach(changeFn=>changeFn(this.value,!1!==options.emitViewToModelChange)),this.updateValueAndValidity(options)}patchValue(value,options={}){this.setValue(value,options)}reset(formState=this.defaultValue,options={}){this._applyFormState(formState),this.markAsPristine(options),this.markAsUntouched(options),this.setValue(this.value,options),this._pendingChange=!1}_updateValue(){}_anyControls(condition){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(fn){this._onChange.push(fn)}_unregisterOnChange(fn){removeListItem(this._onChange,fn)}registerOnDisabledChange(fn){this._onDisabledChange.push(fn)}_unregisterOnDisabledChange(fn){removeListItem(this._onDisabledChange,fn)}_forEachChild(cb){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(formState){isFormControlState(formState)?(this.value=this._pendingValue=formState.value,formState.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=formState}},formControlBinding$1={provide:NgControl,useExisting:core_forwardRef(()=>NgModel)},resolvedPromise=Promise.resolve();let hasV8BreakIterator,NgModel=(()=>{class NgModel2 extends NgControl{constructor(parent,validators,asyncValidators,valueAccessors,_changeDetectorRef,callSetDisabledState){super(),this._changeDetectorRef=_changeDetectorRef,this.callSetDisabledState=callSetDisabledState,this.control=new FormControl,this._registered=!1,this.name="",this.update=new core_EventEmitter,this._parent=parent,this._setValidators(validators),this._setAsyncValidators(asyncValidators),this.valueAccessor=function selectValueAccessor(dir,valueAccessors){if(!valueAccessors)return null;let defaultAccessor,builtinAccessor,customAccessor;return Array.isArray(valueAccessors),valueAccessors.forEach(v=>{v.constructor===DefaultValueAccessor?defaultAccessor=v:function isBuiltInAccessor(valueAccessor){return Object.getPrototypeOf(valueAccessor.constructor)===BuiltInControlValueAccessor}(v)?builtinAccessor=v:customAccessor=v}),customAccessor||builtinAccessor||defaultAccessor||null}(0,valueAccessors)}ngOnChanges(changes){if(this._checkForErrors(),!this._registered||"name"in changes){if(this._registered&&(this._checkName(),this.formDirective)){const oldName=changes.name.previousValue;this.formDirective.removeControl({name:oldName,path:this._getPath(oldName)})}this._setUpControl()}"isDisabled"in changes&&this._updateDisabled(changes),function isPropertyUpdated(changes,viewModel){if(!changes.hasOwnProperty("model"))return!1;const change=changes.model;return!!change.isFirstChange()||!Object.is(viewModel,change.currentValue)}(changes,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(newValue){this.viewModel=newValue,this.update.emit(newValue)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){setUpControl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(value){resolvedPromise.then(()=>{this.control.setValue(value,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(changes){const disabledValue=changes.isDisabled.currentValue,isDisabled=0!==disabledValue&&core_booleanAttribute(disabledValue);resolvedPromise.then(()=>{isDisabled&&!this.control.disabled?this.control.disable():!isDisabled&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(controlName){return this._parent?function controlPath(name,parent){return[...parent.path,name]}(controlName,this._parent):[controlName]}static#_=this.\u0275fac=function(t){return new(t||NgModel2)(\u0275\u0275directiveInject(ControlContainer,9),\u0275\u0275directiveInject(NG_VALIDATORS,10),\u0275\u0275directiveInject(NG_ASYNC_VALIDATORS,10),\u0275\u0275directiveInject(NG_VALUE_ACCESSOR,10),\u0275\u0275directiveInject(core_ChangeDetectorRef,8),\u0275\u0275directiveInject(CALL_SET_DISABLED_STATE,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:NgModel2,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[InputFlags.None,"disabled","isDisabled"],model:[InputFlags.None,"ngModel","model"],options:[InputFlags.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[\u0275\u0275ProvidersFeature([formControlBinding$1]),\u0275\u0275InheritDefinitionFeature,\u0275\u0275NgOnChangesFeature]})}return NgModel2})(),\u0275InternalFormsSharedModule=(()=>{class \u0275InternalFormsSharedModule2{static#_=this.\u0275fac=function(t){return new(t||\u0275InternalFormsSharedModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:\u0275InternalFormsSharedModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return \u0275InternalFormsSharedModule2})(),FormsModule=(()=>{class FormsModule2{static withConfig(opts){return{ngModule:FormsModule2,providers:[{provide:CALL_SET_DISABLED_STATE,useValue:opts.callSetDisabledState??setDisabledStateDefault}]}}static#_=this.\u0275fac=function(t){return new(t||FormsModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:FormsModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[\u0275InternalFormsSharedModule]})}return FormsModule2})();try{hasV8BreakIterator=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hasV8BreakIterator=!1}let supportsPassiveEvents,platform_Platform=(()=>{class Platform2{constructor(_platformId){this._platformId=_platformId,this.isBrowser=this._platformId?common_isPlatformBrowser(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!hasV8BreakIterator)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#_=this.\u0275fac=function(t){return new(t||Platform2)(\u0275\u0275inject(core_PLATFORM_ID))};static#_2=this.\u0275prov=core_defineInjectable({token:Platform2,factory:Platform2.\u0275fac,providedIn:"root"})}return Platform2})();function normalizePassiveListenerOptions(options){return function supportsPassiveEventListeners(){if(null==supportsPassiveEvents&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>supportsPassiveEvents=!0}))}finally{supportsPassiveEvents=supportsPassiveEvents||!1}return supportsPassiveEvents}()?options:!!options.capture}var RtlScrollAxisType=function(RtlScrollAxisType2){return RtlScrollAxisType2[RtlScrollAxisType2.NORMAL=0]="NORMAL",RtlScrollAxisType2[RtlScrollAxisType2.NEGATED=1]="NEGATED",RtlScrollAxisType2[RtlScrollAxisType2.INVERTED=2]="INVERTED",RtlScrollAxisType2}(RtlScrollAxisType||{});let rtlScrollAxisType,scrollBehaviorSupported,shadowDomIsSupported;function supportsScrollBehavior(){if(null==scrollBehaviorSupported){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return scrollBehaviorSupported=!1,scrollBehaviorSupported;if("scrollBehavior"in document.documentElement.style)scrollBehaviorSupported=!0;else{const scrollToFunction=Element.prototype.scrollTo;scrollBehaviorSupported=!!scrollToFunction&&!/\{\s*\[native code\]\s*\}/.test(scrollToFunction.toString())}}return scrollBehaviorSupported}function getRtlScrollAxisType(){if("object"!=typeof document||!document)return RtlScrollAxisType.NORMAL;if(null==rtlScrollAxisType){const scrollContainer=document.createElement("div"),containerStyle=scrollContainer.style;scrollContainer.dir="rtl",containerStyle.width="1px",containerStyle.overflow="auto",containerStyle.visibility="hidden",containerStyle.pointerEvents="none",containerStyle.position="absolute";const content=document.createElement("div"),contentStyle=content.style;contentStyle.width="2px",contentStyle.height="1px",scrollContainer.appendChild(content),document.body.appendChild(scrollContainer),rtlScrollAxisType=RtlScrollAxisType.NORMAL,0===scrollContainer.scrollLeft&&(scrollContainer.scrollLeft=1,rtlScrollAxisType=0===scrollContainer.scrollLeft?RtlScrollAxisType.NEGATED:RtlScrollAxisType.INVERTED),scrollContainer.remove()}return rtlScrollAxisType}function platform_getFocusedElementPierceShadowDom(){let activeElement=typeof document<"u"&&document?document.activeElement:null;for(;activeElement&&activeElement.shadowRoot;){const newActiveElement=activeElement.shadowRoot.activeElement;if(newActiveElement===activeElement)break;activeElement=newActiveElement}return activeElement}function _getEventTarget(event){return event.composedPath?event.composedPath()[0]:event.target}function _isTestEnvironment(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function keycodes_hasModifierKey(event,...modifiers2){return modifiers2.length?modifiers2.some(modifier=>event[modifier]):event.altKey||event.shiftKey||event.ctrlKey||event.metaKey}function debounceTime(dueTime,scheduler=asyncScheduler){return operate((source,subscriber)=>{let activeTask=null,lastValue=null,lastTime=null;const emit=()=>{if(activeTask){activeTask.unsubscribe(),activeTask=null;const value=lastValue;lastValue=null,subscriber.next(value)}};function emitWhenIdle(){const targetTime=lastTime+dueTime,now=scheduler.now();if(now{lastValue=value,lastTime=scheduler.now(),activeTask||(activeTask=scheduler.schedule(emitWhenIdle,dueTime),subscriber.add(activeTask))},()=>{emit(),subscriber.complete()},void 0,()=>{lastValue=activeTask=null}))})}const EMPTY=new Observable_Observable(subscriber=>subscriber.complete());function take_take(count){return count<=0?()=>EMPTY:operate((source,subscriber)=>{let seen=0;source.subscribe(createOperatorSubscriber(subscriber,value=>{++seen<=count&&(subscriber.next(value),count<=seen&&subscriber.complete())}))})}function skip(count){return filter_filter((_,index)=>count<=index)}function distinctUntilChanged_distinctUntilChanged(comparator,keySelector=identity){return comparator=comparator??defaultCompare,operate((source,subscriber)=>{let previousKey,first2=!0;source.subscribe(createOperatorSubscriber(subscriber,value=>{const currentKey=keySelector(value);(first2||!comparator(previousKey,currentKey))&&(first2=!1,previousKey=currentKey,subscriber.next(value))}))})}function defaultCompare(a,b){return a===b}function takeUntil_takeUntil(notifier){return operate((source,subscriber)=>{innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber,()=>subscriber.complete(),noop)),!subscriber.closed&&source.subscribe(subscriber)})}function coercion_coerceBooleanProperty(value){return null!=value&&"false"!=`${value}`}function coercion_coerceNumberProperty(value,fallbackValue=0){return function _isNumberValue(value){return!isNaN(parseFloat(value))&&!isNaN(Number(value))}(value)?Number(value):fallbackValue}function coerceArray(value){return Array.isArray(value)?value:[value]}function coerceCssPixelValue(value){return null==value?"":"string"==typeof value?value:`${value}px`}function coerceElement(elementOrRef){return elementOrRef instanceof core_ElementRef?elementOrRef.nativeElement:elementOrRef}let MutationObserverFactory=(()=>{class MutationObserverFactory2{create(callback){return typeof MutationObserver>"u"?null:new MutationObserver(callback)}static#_=this.\u0275fac=function(t){return new(t||MutationObserverFactory2)};static#_2=this.\u0275prov=core_defineInjectable({token:MutationObserverFactory2,factory:MutationObserverFactory2.\u0275fac,providedIn:"root"})}return MutationObserverFactory2})(),ContentObserver=(()=>{class ContentObserver2{constructor(_mutationObserverFactory){this._mutationObserverFactory=_mutationObserverFactory,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((_,element)=>this._cleanupObserver(element))}observe(elementOrRef){const element=coerceElement(elementOrRef);return new Observable_Observable(observer=>{const subscription=this._observeElement(element).pipe(map_map(records=>records.filter(record2=>!function shouldIgnoreRecord(record2){if("characterData"===record2.type&&record2.target instanceof Comment)return!0;if("childList"===record2.type){for(let i=0;i!!records.length)).subscribe(observer);return()=>{subscription.unsubscribe(),this._unobserveElement(element)}})}_observeElement(element){if(this._observedElements.has(element))this._observedElements.get(element).count++;else{const stream=new Subject_Subject,observer=this._mutationObserverFactory.create(mutations=>stream.next(mutations));observer&&observer.observe(element,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(element,{observer,stream,count:1})}return this._observedElements.get(element).stream}_unobserveElement(element){this._observedElements.has(element)&&(this._observedElements.get(element).count--,this._observedElements.get(element).count||this._cleanupObserver(element))}_cleanupObserver(element){if(this._observedElements.has(element)){const{observer,stream}=this._observedElements.get(element);observer&&observer.disconnect(),stream.complete(),this._observedElements.delete(element)}}static#_=this.\u0275fac=function(t){return new(t||ContentObserver2)(\u0275\u0275inject(MutationObserverFactory))};static#_2=this.\u0275prov=core_defineInjectable({token:ContentObserver2,factory:ContentObserver2.\u0275fac,providedIn:"root"})}return ContentObserver2})(),observers_CdkObserveContent=(()=>{class CdkObserveContent2{get disabled(){return this._disabled}set disabled(value){this._disabled=value,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(value){this._debounce=coercion_coerceNumberProperty(value),this._subscribe()}constructor(_contentObserver,_elementRef,_ngZone){this._contentObserver=_contentObserver,this._elementRef=_elementRef,this._ngZone=_ngZone,this.event=new core_EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const stream=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?stream.pipe(debounceTime(this.debounce)):stream).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#_=this.\u0275fac=function(t){return new(t||CdkObserveContent2)(\u0275\u0275directiveInject(ContentObserver),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_NgZone))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkObserveContent2,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[InputFlags.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",core_booleanAttribute],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[\u0275\u0275InputTransformsFeature]})}return CdkObserveContent2})(),ObserversModule=(()=>{class ObserversModule2{static#_=this.\u0275fac=function(t){return new(t||ObserversModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:ObserversModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[MutationObserverFactory]})}return ObserversModule2})();function maybeSchedule(scheduler,execute,subscription){scheduler?executeSchedule(subscription,scheduler,execute):execute()}function mergeAll_mergeAll(concurrent=1/0){return mergeMap_mergeMap(identity,concurrent)}function concat(...args){return function concatAll(){return mergeAll_mergeAll(1)}()(from_from(args,popScheduler(args)))}function startWith_startWith(...values){const scheduler=popScheduler(values);return operate((source,subscriber)=>{(scheduler?concat(values,source,scheduler):concat(values,source)).subscribe(subscriber)})}const mediaQueriesForWebkitCompatibility=new Set;let mediaQueryStyleNode,MediaMatcher=(()=>{class MediaMatcher2{constructor(_platform,_nonce){this._platform=_platform,this._nonce=_nonce,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):noopMatchMedia}matchMedia(query2){return(this._platform.WEBKIT||this._platform.BLINK)&&function createEmptyStyleRule(query2,nonce){if(!mediaQueriesForWebkitCompatibility.has(query2))try{mediaQueryStyleNode||(mediaQueryStyleNode=document.createElement("style"),nonce&&mediaQueryStyleNode.setAttribute("nonce",nonce),mediaQueryStyleNode.setAttribute("type","text/css"),document.head.appendChild(mediaQueryStyleNode)),mediaQueryStyleNode.sheet&&(mediaQueryStyleNode.sheet.insertRule(`@media ${query2} {body{ }}`,0),mediaQueriesForWebkitCompatibility.add(query2))}catch(e2){console.error(e2)}}(query2,this._nonce),this._matchMedia(query2)}static#_=this.\u0275fac=function(t){return new(t||MediaMatcher2)(\u0275\u0275inject(platform_Platform),\u0275\u0275inject(CSP_NONCE,8))};static#_2=this.\u0275prov=core_defineInjectable({token:MediaMatcher2,factory:MediaMatcher2.\u0275fac,providedIn:"root"})}return MediaMatcher2})();function noopMatchMedia(query2){return{matches:"all"===query2||""===query2,media:query2,addListener:()=>{},removeListener:()=>{}}}let BreakpointObserver=(()=>{class BreakpointObserver2{constructor(_mediaMatcher,_zone){this._mediaMatcher=_mediaMatcher,this._zone=_zone,this._queries=new Map,this._destroySubject=new Subject_Subject}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(value){return splitQueries(coerceArray(value)).some(mediaQuery=>this._registerQuery(mediaQuery).mql.matches)}observe(value){let stateObservable=function combineLatest_combineLatest(...args){const scheduler=popScheduler(args),resultSelector=popResultSelector(args),{args:observables,keys}=argsArgArrayOrObject(args);if(0===observables.length)return from_from([],scheduler);const result=new Observable_Observable(function combineLatestInit(observables,scheduler,valueTransform=identity){return subscriber=>{maybeSchedule(scheduler,()=>{const{length}=observables,values=new Array(length);let active=length,remainingFirstValues=length;for(let i=0;i{const source=from_from(observables[i],scheduler);let hasFirstValue=!1;source.subscribe(createOperatorSubscriber(subscriber,value=>{values[i]=value,hasFirstValue||(hasFirstValue=!0,remainingFirstValues--),remainingFirstValues||subscriber.next(valueTransform(values.slice()))},()=>{--active||subscriber.complete()}))},subscriber)},subscriber)}}(observables,scheduler,keys?values=>createObject(keys,values):identity));return resultSelector?result.pipe(mapOneOrManyArgs(resultSelector)):result}(splitQueries(coerceArray(value)).map(query2=>this._registerQuery(query2).observable));return stateObservable=concat(stateObservable.pipe(take_take(1)),stateObservable.pipe(skip(1),debounceTime(0))),stateObservable.pipe(map_map(breakpointStates=>{const response={matches:!1,breakpoints:{}};return breakpointStates.forEach(({matches,query:query2})=>{response.matches=response.matches||matches,response.breakpoints[query2]=matches}),response}))}_registerQuery(query2){if(this._queries.has(query2))return this._queries.get(query2);const mql=this._mediaMatcher.matchMedia(query2),output2={observable:new Observable_Observable(observer=>{const handler=e2=>this._zone.run(()=>observer.next(e2));return mql.addListener(handler),()=>{mql.removeListener(handler)}}).pipe(startWith_startWith(mql),map_map(({matches})=>({query:query2,matches})),takeUntil_takeUntil(this._destroySubject)),mql};return this._queries.set(query2,output2),output2}static#_=this.\u0275fac=function(t){return new(t||BreakpointObserver2)(\u0275\u0275inject(MediaMatcher),\u0275\u0275inject(core_NgZone))};static#_2=this.\u0275prov=core_defineInjectable({token:BreakpointObserver2,factory:BreakpointObserver2.\u0275fac,providedIn:"root"})}return BreakpointObserver2})();function splitQueries(queries){return queries.map(query2=>query2.split(",")).reduce((a1,a2)=>a1.concat(a2)).map(query2=>query2.trim())}function getAriaReferenceIds(el,attr){return el.getAttribute(attr)?.match(/\S+/g)??[]}let nextId=0,AriaDescriber=(()=>{class AriaDescriber2{constructor(_document2,_platform){this._platform=_platform,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+nextId++,this._document=_document2,this._id=core_inject(APP_ID)+"-"+nextId++}describe(hostElement,message,role){if(!this._canBeDescribed(hostElement,message))return;const key=getKey(message,role);"string"!=typeof message?(setMessageId(message,this._id),this._messageRegistry.set(key,{messageElement:message,referenceCount:0})):this._messageRegistry.has(key)||this._createMessageElement(message,role),this._isElementDescribedByMessage(hostElement,key)||this._addMessageReference(hostElement,key)}removeDescription(hostElement,message,role){if(!message||!this._isElementNode(hostElement))return;const key=getKey(message,role);if(this._isElementDescribedByMessage(hostElement,key)&&this._removeMessageReference(hostElement,key),"string"==typeof message){const registeredMessage=this._messageRegistry.get(key);registeredMessage&&0===registeredMessage.referenceCount&&this._deleteMessageElement(key)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const describedElements=this._document.querySelectorAll(`[cdk-describedby-host="${this._id}"]`);for(let i=0;i0!=id.indexOf("cdk-describedby-message"));element.setAttribute("aria-describedby",originalReferenceIds.join(" "))}_addMessageReference(element,key){const registeredMessage=this._messageRegistry.get(key);(function addAriaReferencedId(el,attr,id){const ids=getAriaReferenceIds(el,attr);id=id.trim(),!ids.some(existingId=>existingId.trim()===id)&&(ids.push(id),el.setAttribute(attr,ids.join(" ")))})(element,"aria-describedby",registeredMessage.messageElement.id),element.setAttribute("cdk-describedby-host",this._id),registeredMessage.referenceCount++}_removeMessageReference(element,key){const registeredMessage=this._messageRegistry.get(key);registeredMessage.referenceCount--,function removeAriaReferencedId(el,attr,id){const ids=getAriaReferenceIds(el,attr);id=id.trim();const filteredIds=ids.filter(val=>val!==id);filteredIds.length?el.setAttribute(attr,filteredIds.join(" ")):el.removeAttribute(attr)}(element,"aria-describedby",registeredMessage.messageElement.id),element.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(element,key){const referenceIds=getAriaReferenceIds(element,"aria-describedby"),registeredMessage=this._messageRegistry.get(key),messageId=registeredMessage&®isteredMessage.messageElement.id;return!!messageId&&-1!=referenceIds.indexOf(messageId)}_canBeDescribed(element,message){if(!this._isElementNode(element))return!1;if(message&&"object"==typeof message)return!0;const trimmedMessage=null==message?"":`${message}`.trim(),ariaLabel=element.getAttribute("aria-label");return!(!trimmedMessage||ariaLabel&&ariaLabel.trim()===trimmedMessage)}_isElementNode(element){return element.nodeType===this._document.ELEMENT_NODE}static#_=this.\u0275fac=function(t){return new(t||AriaDescriber2)(\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(platform_Platform))};static#_2=this.\u0275prov=core_defineInjectable({token:AriaDescriber2,factory:AriaDescriber2.\u0275fac,providedIn:"root"})}return AriaDescriber2})();function getKey(message,role){return"string"==typeof message?`${role||""}/${message}`:message}function setMessageId(element,serviceId){element.id||(element.id=`cdk-describedby-message-${serviceId}-${nextId++}`)}class ListKeyManager{constructor(_items,injector){this._items=_items,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Subject_Subject,this._typeaheadSubscription=Subscription_Subscription.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=item=>item.disabled,this._pressedLetters=[],this.tabOut=new Subject_Subject,this.change=new Subject_Subject,_items instanceof QueryList?this._itemChangesSubscription=_items.changes.subscribe(newItems=>this._itemsChanged(newItems.toArray())):isSignal(_items)&&(this._effectRef=effect(()=>this._itemsChanged(_items()),{injector}))}skipPredicate(predicate){return this._skipPredicateFn=predicate,this}withWrap(shouldWrap=!0){return this._wrap=shouldWrap,this}withVerticalOrientation(enabled=!0){return this._vertical=enabled,this}withHorizontalOrientation(direction){return this._horizontal=direction,this}withAllowedModifierKeys(keys){return this._allowedModifierKeys=keys,this}withTypeAhead(debounceInterval=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(tap_tap(letter=>this._pressedLetters.push(letter)),debounceTime(debounceInterval),filter_filter(()=>this._pressedLetters.length>0),map_map(()=>this._pressedLetters.join(""))).subscribe(inputString=>{const items=this._getItemsArray();for(let i=1;i!event[modifier]||this._allowedModifierKeys.indexOf(modifier)>-1);switch(keyCode){case 9:return void this.tabOut.next();case 40:if(this._vertical&&isModifierAllowed){this.setNextItemActive();break}return;case 38:if(this._vertical&&isModifierAllowed){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&isModifierAllowed){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&isModifierAllowed){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&isModifierAllowed){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&isModifierAllowed){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&isModifierAllowed){const targetIndex=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(targetIndex>0?targetIndex:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&isModifierAllowed){const targetIndex=this._activeItemIndex+this._pageUpAndDown.delta,itemsLength=this._getItemsArray().length;this._setActiveItemByIndex(targetIndex=65&&keyCode<=90||keyCode>=48&&keyCode<=57)&&this._letterKeyStream.next(String.fromCharCode(keyCode))))}this._pressedLetters=[],event.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(item){const itemArray=this._getItemsArray(),index="number"==typeof item?item:itemArray.indexOf(item);this._activeItem=itemArray[index]??null,this._activeItemIndex=index}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(delta){this._wrap?this._setActiveInWrapMode(delta):this._setActiveInDefaultMode(delta)}_setActiveInWrapMode(delta){const items=this._getItemsArray();for(let i=1;i<=items.length;i++){const index=(this._activeItemIndex+delta*i+items.length)%items.length;if(!this._skipPredicateFn(items[index]))return void this.setActiveItem(index)}}_setActiveInDefaultMode(delta){this._setActiveItemByIndex(this._activeItemIndex+delta,delta)}_setActiveItemByIndex(index,fallbackDelta){const items=this._getItemsArray();if(items[index]){for(;this._skipPredicateFn(items[index]);)if(!items[index+=fallbackDelta])return;this.setActiveItem(index)}}_getItemsArray(){return isSignal(this._items)?this._items():this._items instanceof QueryList?this._items.toArray():this._items}_itemsChanged(newItems){if(this._activeItem){const newIndex=newItems.indexOf(this._activeItem);newIndex>-1&&newIndex!==this._activeItemIndex&&(this._activeItemIndex=newIndex)}}}class FocusKeyManager extends ListKeyManager{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(origin){return this._origin=origin,this}setActiveItem(item){super.setActiveItem(item),this.activeItem&&this.activeItem.focus(this._origin)}}let InteractivityChecker=(()=>{class InteractivityChecker2{constructor(_platform){this._platform=_platform}isDisabled(element){return element.hasAttribute("disabled")}isVisible(element){return function hasGeometry(element){return!!(element.offsetWidth||element.offsetHeight||"function"==typeof element.getClientRects&&element.getClientRects().length)}(element)&&"visible"===getComputedStyle(element).visibility}isTabbable(element){if(!this._platform.isBrowser)return!1;const frameElement=function getFrameElement(window2){try{return window2.frameElement}catch{return null}}(function getWindow(node2){return node2.ownerDocument&&node2.ownerDocument.defaultView||window}(element));if(frameElement&&(-1===getTabIndexValue(frameElement)||!this.isVisible(frameElement)))return!1;let nodeName=element.nodeName.toLowerCase(),tabIndexValue=getTabIndexValue(element);return element.hasAttribute("contenteditable")?-1!==tabIndexValue:!("iframe"===nodeName||"object"===nodeName||this._platform.WEBKIT&&this._platform.IOS&&!function isPotentiallyTabbableIOS(element){let nodeName=element.nodeName.toLowerCase(),inputType="input"===nodeName&&element.type;return"text"===inputType||"password"===inputType||"select"===nodeName||"textarea"===nodeName}(element))&&("audio"===nodeName?!!element.hasAttribute("controls")&&-1!==tabIndexValue:"video"===nodeName?-1!==tabIndexValue&&(null!==tabIndexValue||this._platform.FIREFOX||element.hasAttribute("controls")):element.tabIndex>=0)}isFocusable(element,config2){return function isPotentiallyFocusable(element){return!function isHiddenInput(element){return function a11y_isInputElement(element){return"input"==element.nodeName.toLowerCase()}(element)&&"hidden"==element.type}(element)&&(function isNativeFormElement(element){let nodeName=element.nodeName.toLowerCase();return"input"===nodeName||"select"===nodeName||"button"===nodeName||"textarea"===nodeName}(element)||function isAnchorWithHref(element){return function isAnchorElement(element){return"a"==element.nodeName.toLowerCase()}(element)&&element.hasAttribute("href")}(element)||element.hasAttribute("contenteditable")||hasValidTabIndex(element))}(element)&&!this.isDisabled(element)&&(config2?.ignoreVisibility||this.isVisible(element))}static#_=this.\u0275fac=function(t){return new(t||InteractivityChecker2)(\u0275\u0275inject(platform_Platform))};static#_2=this.\u0275prov=core_defineInjectable({token:InteractivityChecker2,factory:InteractivityChecker2.\u0275fac,providedIn:"root"})}return InteractivityChecker2})();function hasValidTabIndex(element){if(!element.hasAttribute("tabindex")||void 0===element.tabIndex)return!1;let tabIndex=element.getAttribute("tabindex");return!(!tabIndex||isNaN(parseInt(tabIndex,10)))}function getTabIndexValue(element){if(!hasValidTabIndex(element))return null;const tabIndex=parseInt(element.getAttribute("tabindex")||"",10);return isNaN(tabIndex)?-1:tabIndex}class FocusTrap{get enabled(){return this._enabled}set enabled(value){this._enabled=value,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(value,this._startAnchor),this._toggleAnchorTabIndex(value,this._endAnchor))}constructor(_element,_checker,_ngZone,_document2,deferAnchors=!1){this._element=_element,this._checker=_checker,this._ngZone=_ngZone,this._document=_document2,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,deferAnchors||this.attachAnchors()}destroy(){const startAnchor=this._startAnchor,endAnchor=this._endAnchor;startAnchor&&(startAnchor.removeEventListener("focus",this.startAnchorListener),startAnchor.remove()),endAnchor&&(endAnchor.removeEventListener("focus",this.endAnchorListener),endAnchor.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(options){return new Promise(resolve=>{this._executeOnStable(()=>resolve(this.focusInitialElement(options)))})}focusFirstTabbableElementWhenReady(options){return new Promise(resolve=>{this._executeOnStable(()=>resolve(this.focusFirstTabbableElement(options)))})}focusLastTabbableElementWhenReady(options){return new Promise(resolve=>{this._executeOnStable(()=>resolve(this.focusLastTabbableElement(options)))})}_getRegionBoundary(bound){const markers=this._element.querySelectorAll(`[cdk-focus-region-${bound}], [cdkFocusRegion${bound}], [cdk-focus-${bound}]`);return"start"==bound?markers.length?markers[0]:this._getFirstTabbableElement(this._element):markers.length?markers[markers.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(options){const redirectToElement=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(redirectToElement){if(!this._checker.isFocusable(redirectToElement)){const focusableChild=this._getFirstTabbableElement(redirectToElement);return focusableChild?.focus(options),!!focusableChild}return redirectToElement.focus(options),!0}return this.focusFirstTabbableElement(options)}focusFirstTabbableElement(options){const redirectToElement=this._getRegionBoundary("start");return redirectToElement&&redirectToElement.focus(options),!!redirectToElement}focusLastTabbableElement(options){const redirectToElement=this._getRegionBoundary("end");return redirectToElement&&redirectToElement.focus(options),!!redirectToElement}hasAttached(){return this._hasAttached}_getFirstTabbableElement(root){if(this._checker.isFocusable(root)&&this._checker.isTabbable(root))return root;const children=root.children;for(let i=0;i=0;i--){const tabbableChild=children[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(children[i]):null;if(tabbableChild)return tabbableChild}return null}_createAnchor(){const anchor=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,anchor),anchor.classList.add("cdk-visually-hidden"),anchor.classList.add("cdk-focus-trap-anchor"),anchor.setAttribute("aria-hidden","true"),anchor}_toggleAnchorTabIndex(isEnabled,anchor){isEnabled?anchor.setAttribute("tabindex","0"):anchor.removeAttribute("tabindex")}toggleAnchors(enabled){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(enabled,this._startAnchor),this._toggleAnchorTabIndex(enabled,this._endAnchor))}_executeOnStable(fn){this._ngZone.isStable?fn():this._ngZone.onStable.pipe(take_take(1)).subscribe(fn)}}let FocusTrapFactory=(()=>{class FocusTrapFactory2{constructor(_checker,_ngZone,_document2){this._checker=_checker,this._ngZone=_ngZone,this._document=_document2}create(element,deferCaptureElements=!1){return new FocusTrap(element,this._checker,this._ngZone,this._document,deferCaptureElements)}static#_=this.\u0275fac=function(t){return new(t||FocusTrapFactory2)(\u0275\u0275inject(InteractivityChecker),\u0275\u0275inject(core_NgZone),\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:FocusTrapFactory2,factory:FocusTrapFactory2.\u0275fac,providedIn:"root"})}return FocusTrapFactory2})();function isFakeMousedownFromScreenReader(event){return 0===event.buttons||0===event.detail}function isFakeTouchstartFromScreenReader(event){const touch=event.touches&&event.touches[0]||event.changedTouches&&event.changedTouches[0];return!(!touch||-1!==touch.identifier||null!=touch.radiusX&&1!==touch.radiusX||null!=touch.radiusY&&1!==touch.radiusY)}const INPUT_MODALITY_DETECTOR_OPTIONS=new InjectionToken("cdk-input-modality-detector-options"),INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS={ignoreKeys:[18,17,224,91,16]},modalityEventListenerOptions=normalizePassiveListenerOptions({passive:!0,capture:!0});let InputModalityDetector=(()=>{class InputModalityDetector2{get mostRecentModality(){return this._modality.value}constructor(_platform,ngZone,document2,options){this._platform=_platform,this._mostRecentTarget=null,this._modality=new BehaviorSubject_BehaviorSubject(null),this._lastTouchMs=0,this._onKeydown=event=>{this._options?.ignoreKeys?.some(keyCode=>keyCode===event.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=_getEventTarget(event))},this._onMousedown=event=>{Date.now()-this._lastTouchMs<650||(this._modality.next(isFakeMousedownFromScreenReader(event)?"keyboard":"mouse"),this._mostRecentTarget=_getEventTarget(event))},this._onTouchstart=event=>{isFakeTouchstartFromScreenReader(event)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=_getEventTarget(event))},this._options={...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,...options},this.modalityDetected=this._modality.pipe(skip(1)),this.modalityChanged=this.modalityDetected.pipe(distinctUntilChanged_distinctUntilChanged()),_platform.isBrowser&&ngZone.runOutsideAngular(()=>{document2.addEventListener("keydown",this._onKeydown,modalityEventListenerOptions),document2.addEventListener("mousedown",this._onMousedown,modalityEventListenerOptions),document2.addEventListener("touchstart",this._onTouchstart,modalityEventListenerOptions)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,modalityEventListenerOptions),document.removeEventListener("mousedown",this._onMousedown,modalityEventListenerOptions),document.removeEventListener("touchstart",this._onTouchstart,modalityEventListenerOptions))}static#_=this.\u0275fac=function(t){return new(t||InputModalityDetector2)(\u0275\u0275inject(platform_Platform),\u0275\u0275inject(core_NgZone),\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(INPUT_MODALITY_DETECTOR_OPTIONS,8))};static#_2=this.\u0275prov=core_defineInjectable({token:InputModalityDetector2,factory:InputModalityDetector2.\u0275fac,providedIn:"root"})}return InputModalityDetector2})();const LIVE_ANNOUNCER_ELEMENT_TOKEN=new InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY(){return null}}),LIVE_ANNOUNCER_DEFAULT_OPTIONS=new InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let uniqueIds=0,LiveAnnouncer=(()=>{class LiveAnnouncer2{constructor(elementToken,_ngZone,_document2,_defaultOptions){this._ngZone=_ngZone,this._defaultOptions=_defaultOptions,this._document=_document2,this._liveElement=elementToken||this._createLiveElement()}announce(message,...args){const defaultOptions=this._defaultOptions;let politeness,duration;return 1===args.length&&"number"==typeof args[0]?duration=args[0]:[politeness,duration]=args,this.clear(),clearTimeout(this._previousTimeout),politeness||(politeness=defaultOptions&&defaultOptions.politeness?defaultOptions.politeness:"polite"),null==duration&&defaultOptions&&(duration=defaultOptions.duration),this._liveElement.setAttribute("aria-live",politeness),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(resolve=>this._currentResolve=resolve)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=message,"number"==typeof duration&&(this._previousTimeout=setTimeout(()=>this.clear(),duration)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const previousElements=this._document.getElementsByClassName("cdk-live-announcer-element"),liveEl=this._document.createElement("div");for(let i=0;i .cdk-overlay-container [aria-modal="true"]');for(let i=0;i{class FocusMonitor2{constructor(_ngZone,_platform,_inputModalityDetector,document2,options){this._ngZone=_ngZone,this._platform=_platform,this._inputModalityDetector=_inputModalityDetector,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Subject_Subject,this._rootNodeFocusAndBlurListener=event=>{for(let element=_getEventTarget(event);element;element=element.parentElement)"focus"===event.type?this._onFocus(event,element):this._onBlur(event,element)},this._document=document2,this._detectionMode=options?.detectionMode||FocusMonitorDetectionMode.IMMEDIATE}monitor(element,checkChildren=!1){const nativeElement=coerceElement(element);if(!this._platform.isBrowser||1!==nativeElement.nodeType)return of_of();const rootNode=function _getShadowRoot(element){if(function _supportsShadowDom(){if(null==shadowDomIsSupported){const head=typeof document<"u"?document.head:null;shadowDomIsSupported=!(!head||!head.createShadowRoot&&!head.attachShadow)}return shadowDomIsSupported}()){const rootNode=element.getRootNode?element.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&rootNode instanceof ShadowRoot)return rootNode}return null}(nativeElement)||this._getDocument(),cachedInfo=this._elementInfo.get(nativeElement);if(cachedInfo)return checkChildren&&(cachedInfo.checkChildren=!0),cachedInfo.subject;const info={checkChildren,subject:new Subject_Subject,rootNode};return this._elementInfo.set(nativeElement,info),this._registerGlobalListeners(info),info.subject}stopMonitoring(element){const nativeElement=coerceElement(element),elementInfo=this._elementInfo.get(nativeElement);elementInfo&&(elementInfo.subject.complete(),this._setClasses(nativeElement),this._elementInfo.delete(nativeElement),this._removeGlobalListeners(elementInfo))}focusVia(element,origin,options){const nativeElement=coerceElement(element);nativeElement===this._getDocument().activeElement?this._getClosestElementsInfo(nativeElement).forEach(([currentElement,info])=>this._originChanged(currentElement,origin,info)):(this._setOrigin(origin),"function"==typeof nativeElement.focus&&nativeElement.focus(options))}ngOnDestroy(){this._elementInfo.forEach((_info,element)=>this.stopMonitoring(element))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(focusEventTarget){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(focusEventTarget)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:focusEventTarget&&this._isLastInteractionFromInputLabel(focusEventTarget)?"mouse":"program"}_shouldBeAttributedToTouch(focusEventTarget){return this._detectionMode===FocusMonitorDetectionMode.EVENTUAL||!!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(element,origin){element.classList.toggle("cdk-focused",!!origin),element.classList.toggle("cdk-touch-focused","touch"===origin),element.classList.toggle("cdk-keyboard-focused","keyboard"===origin),element.classList.toggle("cdk-mouse-focused","mouse"===origin),element.classList.toggle("cdk-program-focused","program"===origin)}_setOrigin(origin,isFromInteraction=!1){this._ngZone.runOutsideAngular(()=>{this._origin=origin,this._originFromTouchInteraction="touch"===origin&&isFromInteraction,this._detectionMode===FocusMonitorDetectionMode.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(event,element){const elementInfo=this._elementInfo.get(element),focusEventTarget=_getEventTarget(event);!elementInfo||!elementInfo.checkChildren&&element!==focusEventTarget||this._originChanged(element,this._getFocusOrigin(focusEventTarget),elementInfo)}_onBlur(event,element){const elementInfo=this._elementInfo.get(element);!elementInfo||elementInfo.checkChildren&&event.relatedTarget instanceof Node&&element.contains(event.relatedTarget)||(this._setClasses(element),this._emitOrigin(elementInfo,null))}_emitOrigin(info,origin){info.subject.observers.length&&this._ngZone.run(()=>info.subject.next(origin))}_registerGlobalListeners(elementInfo){if(!this._platform.isBrowser)return;const rootNode=elementInfo.rootNode,rootNodeFocusListeners=this._rootNodeFocusListenerCount.get(rootNode)||0;rootNodeFocusListeners||this._ngZone.runOutsideAngular(()=>{rootNode.addEventListener("focus",this._rootNodeFocusAndBlurListener,captureEventListenerOptions),rootNode.addEventListener("blur",this._rootNodeFocusAndBlurListener,captureEventListenerOptions)}),this._rootNodeFocusListenerCount.set(rootNode,rootNodeFocusListeners+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(takeUntil_takeUntil(this._stopInputModalityDetector)).subscribe(modality=>{this._setOrigin(modality,!0)}))}_removeGlobalListeners(elementInfo){const rootNode=elementInfo.rootNode;if(this._rootNodeFocusListenerCount.has(rootNode)){const rootNodeFocusListeners=this._rootNodeFocusListenerCount.get(rootNode);rootNodeFocusListeners>1?this._rootNodeFocusListenerCount.set(rootNode,rootNodeFocusListeners-1):(rootNode.removeEventListener("focus",this._rootNodeFocusAndBlurListener,captureEventListenerOptions),rootNode.removeEventListener("blur",this._rootNodeFocusAndBlurListener,captureEventListenerOptions),this._rootNodeFocusListenerCount.delete(rootNode))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(element,origin,elementInfo){this._setClasses(element,origin),this._emitOrigin(elementInfo,origin),this._lastFocusOrigin=origin}_getClosestElementsInfo(element){const results=[];return this._elementInfo.forEach((info,currentElement)=>{(currentElement===element||info.checkChildren&¤tElement.contains(element))&&results.push([currentElement,info])}),results}_isLastInteractionFromInputLabel(focusEventTarget){const{_mostRecentTarget:mostRecentTarget,mostRecentModality}=this._inputModalityDetector;if("mouse"!==mostRecentModality||!mostRecentTarget||mostRecentTarget===focusEventTarget||"INPUT"!==focusEventTarget.nodeName&&"TEXTAREA"!==focusEventTarget.nodeName||focusEventTarget.disabled)return!1;const labels=focusEventTarget.labels;if(labels)for(let i=0;i{class CdkMonitorFocus2{constructor(_elementRef,_focusMonitor){this._elementRef=_elementRef,this._focusMonitor=_focusMonitor,this._focusOrigin=null,this.cdkFocusChange=new core_EventEmitter}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const element=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(element,1===element.nodeType&&element.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(origin=>{this._focusOrigin=origin,this.cdkFocusChange.emit(origin)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#_=this.\u0275fac=function(t){return new(t||CdkMonitorFocus2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(FocusMonitor))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkMonitorFocus2,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return CdkMonitorFocus2})();var HighContrastMode=function(HighContrastMode2){return HighContrastMode2[HighContrastMode2.NONE=0]="NONE",HighContrastMode2[HighContrastMode2.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",HighContrastMode2[HighContrastMode2.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",HighContrastMode2}(HighContrastMode||{});let HighContrastModeDetector=(()=>{class HighContrastModeDetector2{constructor(_platform,document2){this._platform=_platform,this._document=document2,this._breakpointSubscription=core_inject(BreakpointObserver).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return HighContrastMode.NONE;const testElement=this._document.createElement("div");testElement.style.backgroundColor="rgb(1,2,3)",testElement.style.position="absolute",this._document.body.appendChild(testElement);const documentWindow=this._document.defaultView||window,computedStyle=documentWindow&&documentWindow.getComputedStyle?documentWindow.getComputedStyle(testElement):null,computedColor=(computedStyle&&computedStyle.backgroundColor||"").replace(/ /g,"");switch(testElement.remove(),computedColor){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return HighContrastMode.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return HighContrastMode.BLACK_ON_WHITE}return HighContrastMode.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const bodyClasses=this._document.body.classList;bodyClasses.remove("cdk-high-contrast-active","cdk-high-contrast-black-on-white","cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const mode=this.getHighContrastMode();mode===HighContrastMode.BLACK_ON_WHITE?bodyClasses.add("cdk-high-contrast-active","cdk-high-contrast-black-on-white"):mode===HighContrastMode.WHITE_ON_BLACK&&bodyClasses.add("cdk-high-contrast-active","cdk-high-contrast-white-on-black")}}static#_=this.\u0275fac=function(t){return new(t||HighContrastModeDetector2)(\u0275\u0275inject(platform_Platform),\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:HighContrastModeDetector2,factory:HighContrastModeDetector2.\u0275fac,providedIn:"root"})}return HighContrastModeDetector2})(),A11yModule=(()=>{class A11yModule2{constructor(highContrastModeDetector){highContrastModeDetector._applyBodyHighContrastModeCssClasses()}static#_=this.\u0275fac=function(t){return new(t||A11yModule2)(\u0275\u0275inject(HighContrastModeDetector))};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:A11yModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[ObserversModule]})}return A11yModule2})();const DIR_DOCUMENT=new InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function DIR_DOCUMENT_FACTORY(){return core_inject(common_DOCUMENT)}}),RTL_LOCALE_PATTERN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Directionality=(()=>{class Directionality2{constructor(_document2){this.value="ltr",this.change=new core_EventEmitter,_document2&&(this.value=function _resolveDirectionality(rawValue){const value=rawValue?.toLowerCase()||"";return"auto"===value&&typeof navigator<"u"&&navigator?.language?RTL_LOCALE_PATTERN.test(navigator.language)?"rtl":"ltr":"rtl"===value?"rtl":"ltr"}((_document2.body?_document2.body.dir:null)||(_document2.documentElement?_document2.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#_=this.\u0275fac=function(t){return new(t||Directionality2)(\u0275\u0275inject(DIR_DOCUMENT,8))};static#_2=this.\u0275prov=core_defineInjectable({token:Directionality2,factory:Directionality2.\u0275fac,providedIn:"root"})}return Directionality2})(),BidiModule=(()=>{class BidiModule2{static#_=this.\u0275fac=function(t){return new(t||BidiModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:BidiModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return BidiModule2})();const MATERIAL_SANITY_CHECKS=new InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function MATERIAL_SANITY_CHECKS_FACTORY(){return!0}});let MatCommonModule=(()=>{class MatCommonModule2{constructor(highContrastModeDetector,_sanityChecks,_document2){this._sanityChecks=_sanityChecks,this._document=_document2,this._hasDoneGlobalChecks=!1,highContrastModeDetector._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(name){return!_isTestEnvironment()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[name])}static#_=this.\u0275fac=function(t){return new(t||MatCommonModule2)(\u0275\u0275inject(HighContrastModeDetector),\u0275\u0275inject(MATERIAL_SANITY_CHECKS,8),\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatCommonModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[BidiModule,BidiModule]})}return MatCommonModule2})();var RippleState=function(RippleState2){return RippleState2[RippleState2.FADING_IN=0]="FADING_IN",RippleState2[RippleState2.VISIBLE=1]="VISIBLE",RippleState2[RippleState2.FADING_OUT=2]="FADING_OUT",RippleState2[RippleState2.HIDDEN=3]="HIDDEN",RippleState2}(RippleState||{});class RippleRef{constructor(_renderer,element,config2,_animationForciblyDisabledThroughCss=!1){this._renderer=_renderer,this.element=element,this.config=config2,this._animationForciblyDisabledThroughCss=_animationForciblyDisabledThroughCss,this.state=RippleState.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const passiveCapturingEventOptions$1=normalizePassiveListenerOptions({passive:!0,capture:!0});class RippleEventManager{constructor(){this._events=new Map,this._delegateEventHandler=event=>{const target=_getEventTarget(event);target&&this._events.get(event.type)?.forEach((handlers2,element)=>{(element===target||element.contains(target))&&handlers2.forEach(handler=>handler.handleEvent(event))})}}addHandler(ngZone,name,element,handler){const handlersForEvent=this._events.get(name);if(handlersForEvent){const handlersForElement=handlersForEvent.get(element);handlersForElement?handlersForElement.add(handler):handlersForEvent.set(element,new Set([handler]))}else this._events.set(name,new Map([[element,new Set([handler])]])),ngZone.runOutsideAngular(()=>{document.addEventListener(name,this._delegateEventHandler,passiveCapturingEventOptions$1)})}removeHandler(name,element,handler){const handlersForEvent=this._events.get(name);if(!handlersForEvent)return;const handlersForElement=handlersForEvent.get(element);handlersForElement&&(handlersForElement.delete(handler),0===handlersForElement.size&&handlersForEvent.delete(element),0===handlersForEvent.size&&(this._events.delete(name),document.removeEventListener(name,this._delegateEventHandler,passiveCapturingEventOptions$1)))}}const defaultRippleAnimationConfig={enterDuration:225,exitDuration:150},passiveCapturingEventOptions=normalizePassiveListenerOptions({passive:!0,capture:!0}),pointerDownEvents=["mousedown","touchstart"],pointerUpEvents=["mouseup","mouseleave","touchend","touchcancel"];class RippleRenderer{static#_=this._eventManager=new RippleEventManager;constructor(_target,_ngZone,elementOrElementRef,_platform){this._target=_target,this._ngZone=_ngZone,this._platform=_platform,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,_platform.isBrowser&&(this._containerElement=coerceElement(elementOrElementRef))}fadeInRipple(x,y,config2={}){const containerRect=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),animationConfig={...defaultRippleAnimationConfig,...config2.animation};config2.centered&&(x=containerRect.left+containerRect.width/2,y=containerRect.top+containerRect.height/2);const radius=config2.radius||function distanceToFurthestCorner(x,y,rect){const distX=Math.max(Math.abs(x-rect.left),Math.abs(x-rect.right)),distY=Math.max(Math.abs(y-rect.top),Math.abs(y-rect.bottom));return Math.sqrt(distX*distX+distY*distY)}(x,y,containerRect),offsetX=x-containerRect.left,offsetY=y-containerRect.top,enterDuration=animationConfig.enterDuration,ripple=document.createElement("div");ripple.classList.add("mat-ripple-element"),ripple.style.left=offsetX-radius+"px",ripple.style.top=offsetY-radius+"px",ripple.style.height=2*radius+"px",ripple.style.width=2*radius+"px",null!=config2.color&&(ripple.style.backgroundColor=config2.color),ripple.style.transitionDuration=`${enterDuration}ms`,this._containerElement.appendChild(ripple);const computedStyles=window.getComputedStyle(ripple),userTransitionDuration=computedStyles.transitionDuration,animationForciblyDisabledThroughCss="none"===computedStyles.transitionProperty||"0s"===userTransitionDuration||"0s, 0s"===userTransitionDuration||0===containerRect.width&&0===containerRect.height,rippleRef=new RippleRef(this,ripple,config2,animationForciblyDisabledThroughCss);ripple.style.transform="scale3d(1, 1, 1)",rippleRef.state=RippleState.FADING_IN,config2.persistent||(this._mostRecentTransientRipple=rippleRef);let eventListeners=null;return!animationForciblyDisabledThroughCss&&(enterDuration||animationConfig.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const onTransitionEnd=()=>this._finishRippleTransition(rippleRef),onTransitionCancel=()=>this._destroyRipple(rippleRef);ripple.addEventListener("transitionend",onTransitionEnd),ripple.addEventListener("transitioncancel",onTransitionCancel),eventListeners={onTransitionEnd,onTransitionCancel}}),this._activeRipples.set(rippleRef,eventListeners),(animationForciblyDisabledThroughCss||!enterDuration)&&this._finishRippleTransition(rippleRef),rippleRef}fadeOutRipple(rippleRef){if(rippleRef.state===RippleState.FADING_OUT||rippleRef.state===RippleState.HIDDEN)return;const rippleEl=rippleRef.element,animationConfig={...defaultRippleAnimationConfig,...rippleRef.config.animation};rippleEl.style.transitionDuration=`${animationConfig.exitDuration}ms`,rippleEl.style.opacity="0",rippleRef.state=RippleState.FADING_OUT,(rippleRef._animationForciblyDisabledThroughCss||!animationConfig.exitDuration)&&this._finishRippleTransition(rippleRef)}fadeOutAll(){this._getActiveRipples().forEach(ripple=>ripple.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ripple=>{ripple.config.persistent||ripple.fadeOut()})}setupTriggerEvents(elementOrElementRef){const element=coerceElement(elementOrElementRef);!this._platform.isBrowser||!element||element===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=element,pointerDownEvents.forEach(type=>{RippleRenderer._eventManager.addHandler(this._ngZone,type,element,this)}))}handleEvent(event){"mousedown"===event.type?this._onMousedown(event):"touchstart"===event.type?this._onTouchStart(event):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{pointerUpEvents.forEach(type=>{this._triggerElement.addEventListener(type,this,passiveCapturingEventOptions)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(rippleRef){rippleRef.state===RippleState.FADING_IN?this._startFadeOutTransition(rippleRef):rippleRef.state===RippleState.FADING_OUT&&this._destroyRipple(rippleRef)}_startFadeOutTransition(rippleRef){const isMostRecentTransientRipple=rippleRef===this._mostRecentTransientRipple,{persistent}=rippleRef.config;rippleRef.state=RippleState.VISIBLE,!persistent&&(!isMostRecentTransientRipple||!this._isPointerDown)&&rippleRef.fadeOut()}_destroyRipple(rippleRef){const eventListeners=this._activeRipples.get(rippleRef)??null;this._activeRipples.delete(rippleRef),this._activeRipples.size||(this._containerRect=null),rippleRef===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),rippleRef.state=RippleState.HIDDEN,null!==eventListeners&&(rippleRef.element.removeEventListener("transitionend",eventListeners.onTransitionEnd),rippleRef.element.removeEventListener("transitioncancel",eventListeners.onTransitionCancel)),rippleRef.element.remove()}_onMousedown(event){const isFakeMousedown=isFakeMousedownFromScreenReader(event),isSyntheticEvent2=this._lastTouchStartEvent&&Date.now(){!ripple.config.persistent&&(ripple.state===RippleState.VISIBLE||ripple.config.terminateOnPointerUp&&ripple.state===RippleState.FADING_IN)&&ripple.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const trigger2=this._triggerElement;trigger2&&(pointerDownEvents.forEach(type=>RippleRenderer._eventManager.removeHandler(type,trigger2,this)),this._pointerUpEventsRegistered&&pointerUpEvents.forEach(type=>trigger2.removeEventListener(type,this,passiveCapturingEventOptions)))}}const core_MAT_RIPPLE_GLOBAL_OPTIONS=new InjectionToken("mat-ripple-global-options");let core_MatRipple=(()=>{class MatRipple2{get disabled(){return this._disabled}set disabled(value){value&&this.fadeOutAllNonPersistent(),this._disabled=value,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(trigger2){this._trigger=trigger2,this._setupTriggerEventsIfEnabled()}constructor(_elementRef,ngZone,platform,globalOptions,_animationMode){this._elementRef=_elementRef,this._animationMode=_animationMode,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=globalOptions||{},this._rippleRenderer=new RippleRenderer(this,ngZone,_elementRef,platform)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(configOrX,y=0,config2){return"number"==typeof configOrX?this._rippleRenderer.fadeInRipple(configOrX,y,{...this.rippleConfig,...config2}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...configOrX})}static#_=this.\u0275fac=function(t){return new(t||MatRipple2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(core_MAT_RIPPLE_GLOBAL_OPTIONS,8),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatRipple2,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275classProp("mat-ripple-unbounded",ctx.unbounded)},inputs:{color:[InputFlags.None,"matRippleColor","color"],unbounded:[InputFlags.None,"matRippleUnbounded","unbounded"],centered:[InputFlags.None,"matRippleCentered","centered"],radius:[InputFlags.None,"matRippleRadius","radius"],animation:[InputFlags.None,"matRippleAnimation","animation"],disabled:[InputFlags.None,"matRippleDisabled","disabled"],trigger:[InputFlags.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return MatRipple2})(),MatRippleModule=(()=>{class MatRippleModule2{static#_=this.\u0275fac=function(t){return new(t||MatRippleModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatRippleModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[MatCommonModule,MatCommonModule]})}return MatRippleModule2})();const core_eventListenerOptions={capture:!0},rippleInteractionEvents=["focus","click","mouseenter","touchstart"];let MatRippleLoader=(()=>{class MatRippleLoader2{constructor(){this._document=core_inject(common_DOCUMENT,{optional:!0}),this._animationMode=core_inject(core_ANIMATION_MODULE_TYPE,{optional:!0}),this._globalRippleOptions=core_inject(core_MAT_RIPPLE_GLOBAL_OPTIONS,{optional:!0}),this._platform=core_inject(platform_Platform),this._ngZone=core_inject(core_NgZone),this._hosts=new Map,this._onInteraction=event=>{if(!(event.target instanceof HTMLElement))return;const element=event.target.closest("[mat-ripple-loader-uninitialized]");element&&this._createRipple(element)},this._ngZone.runOutsideAngular(()=>{for(const event of rippleInteractionEvents)this._document?.addEventListener(event,this._onInteraction,core_eventListenerOptions)})}ngOnDestroy(){const hosts=this._hosts.keys();for(const host of hosts)this.destroyRipple(host);for(const event of rippleInteractionEvents)this._document?.removeEventListener(event,this._onInteraction,core_eventListenerOptions)}configureRipple(host,config2){host.setAttribute("mat-ripple-loader-uninitialized",""),(config2.className||!host.hasAttribute("mat-ripple-loader-class-name"))&&host.setAttribute("mat-ripple-loader-class-name",config2.className||""),config2.centered&&host.setAttribute("mat-ripple-loader-centered",""),config2.disabled&&host.setAttribute("mat-ripple-loader-disabled","")}getRipple(host){return this._hosts.get(host)||this._createRipple(host)}setDisabled(host,disabled){const ripple=this._hosts.get(host);ripple?ripple.disabled=disabled:disabled?host.setAttribute("mat-ripple-loader-disabled",""):host.removeAttribute("mat-ripple-loader-disabled")}_createRipple(host){if(!this._document)return;const existingRipple=this._hosts.get(host);if(existingRipple)return existingRipple;host.querySelector(".mat-ripple")?.remove();const rippleEl=this._document.createElement("span");rippleEl.classList.add("mat-ripple",host.getAttribute("mat-ripple-loader-class-name")),host.append(rippleEl);const ripple=new core_MatRipple(new core_ElementRef(rippleEl),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return ripple._isInitialized=!0,ripple.trigger=host,ripple.centered=host.hasAttribute("mat-ripple-loader-centered"),ripple.disabled=host.hasAttribute("mat-ripple-loader-disabled"),this.attachRipple(host,ripple),ripple}attachRipple(host,ripple){host.removeAttribute("mat-ripple-loader-uninitialized"),this._hosts.set(host,ripple)}destroyRipple(host){const ripple=this._hosts.get(host);ripple&&(ripple.ngOnDestroy(),this._hosts.delete(host))}static#_=this.\u0275fac=function(t){return new(t||MatRippleLoader2)};static#_2=this.\u0275prov=core_defineInjectable({token:MatRippleLoader2,factory:MatRippleLoader2.\u0275fac,providedIn:"root"})}return MatRippleLoader2})();const button_c0=["mat-button",""],button_c1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],button_c2=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],_c8=["mat-icon-button",""],_c9=["*"],MAT_BUTTON_CONFIG=new InjectionToken("MAT_BUTTON_CONFIG"),HOST_SELECTOR_MDC_CLASS_PAIR=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let MatButtonBase=(()=>{class MatButtonBase2{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(v){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,v)}get disableRipple(){return this._disableRipple}set disableRipple(value){this._disableRipple=value,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(value){this._disabled=value,this._updateRippleDisabled()}constructor(_elementRef,_platform,_ngZone,_animationMode){this._elementRef=_elementRef,this._platform=_platform,this._ngZone=_ngZone,this._animationMode=_animationMode,this._focusMonitor=core_inject(FocusMonitor),this._rippleLoader=core_inject(MatRippleLoader),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const config2=core_inject(MAT_BUTTON_CONFIG,{optional:!0}),element=_elementRef.nativeElement,classList=element.classList;this.disabledInteractive=config2?.disabledInteractive??!1,this._rippleLoader?.configureRipple(element,{className:"mat-mdc-button-ripple"});for(const{attribute,mdcClasses}of HOST_SELECTOR_MDC_CLASS_PAIR)element.hasAttribute(attribute)&&classList.add(...mdcClasses)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(origin="program",options){origin?this._focusMonitor.focusVia(this._elementRef.nativeElement,origin,options):this._elementRef.nativeElement.focus(options)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#_=this.\u0275fac=function(t){\u0275\u0275invalidFactory()};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatButtonBase2,inputs:{color:"color",disableRipple:[InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",core_booleanAttribute],disabled:[InputFlags.HasDecoratorInputTransform,"disabled","disabled",core_booleanAttribute],ariaDisabled:[InputFlags.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",core_booleanAttribute],disabledInteractive:[InputFlags.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",core_booleanAttribute]},features:[\u0275\u0275InputTransformsFeature]})}return MatButtonBase2})(),MatButton=(()=>{class MatButton2 extends MatButtonBase{constructor(elementRef,platform,ngZone,animationMode){super(elementRef,platform,ngZone,animationMode)}static#_=this.\u0275fac=function(t){return new(t||MatButton2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatButton2,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(rf,ctx){2&rf&&(\u0275\u0275attribute("disabled",ctx._getDisabledAttribute())("aria-disabled",ctx._getAriaDisabled()),\u0275\u0275classMap(ctx.color?"mat-"+ctx.color:""),\u0275\u0275classProp("mat-mdc-button-disabled",ctx.disabled)("mat-mdc-button-disabled-interactive",ctx.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===ctx._animationMode)("mat-unthemed",!ctx.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],attrs:button_c0,ngContentSelectors:button_c2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(rf,ctx){1&rf&&(\u0275\u0275projectionDef(button_c1),\u0275\u0275element(0,"span",0),\u0275\u0275projection(1),\u0275\u0275elementStart(2,"span",1),\u0275\u0275projection(3,1),\u0275\u0275elementEnd(),\u0275\u0275projection(4,2),\u0275\u0275element(5,"span",2)(6,"span",3)),2&rf&&\u0275\u0275classProp("mdc-button__ripple",!ctx._isFab)("mdc-fab__ripple",ctx._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return MatButton2})(),MatIconButton=(()=>{class MatIconButton2 extends MatButtonBase{constructor(elementRef,platform,ngZone,animationMode){super(elementRef,platform,ngZone,animationMode),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#_=this.\u0275fac=function(t){return new(t||MatIconButton2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatIconButton2,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(rf,ctx){2&rf&&(\u0275\u0275attribute("disabled",ctx._getDisabledAttribute())("aria-disabled",ctx._getAriaDisabled()),\u0275\u0275classMap(ctx.color?"mat-"+ctx.color:""),\u0275\u0275classProp("mat-mdc-button-disabled",ctx.disabled)("mat-mdc-button-disabled-interactive",ctx.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===ctx._animationMode)("mat-unthemed",!ctx.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],attrs:_c8,ngContentSelectors:_c9,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(rf,ctx){1&rf&&(\u0275\u0275projectionDef(),\u0275\u0275element(0,"span",0),\u0275\u0275projection(1),\u0275\u0275element(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return MatIconButton2})(),MatButtonModule=(()=>{class MatButtonModule2{static#_=this.\u0275fac=function(t){return new(t||MatButtonModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatButtonModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[MatCommonModule,MatRippleModule,MatCommonModule]})}return MatButtonModule2})();const nodeEventEmitterMethods=["addListener","removeListener"],eventTargetMethods=["addEventListener","removeEventListener"],jqueryMethods=["on","off"];function fromEvent_fromEvent(target,eventName,options,resultSelector){if(isFunction(options)&&(resultSelector=options,options=void 0),resultSelector)return fromEvent_fromEvent(target,eventName,options).pipe(mapOneOrManyArgs(resultSelector));const[add,remove2]=function isEventTarget(target){return isFunction(target.addEventListener)&&isFunction(target.removeEventListener)}(target)?eventTargetMethods.map(methodName=>handler=>target[methodName](eventName,handler,options)):function isNodeStyleEventEmitter(target){return isFunction(target.addListener)&&isFunction(target.removeListener)}(target)?nodeEventEmitterMethods.map(toCommonHandlerRegistry(target,eventName)):function isJQueryStyleEventEmitter(target){return isFunction(target.on)&&isFunction(target.off)}(target)?jqueryMethods.map(toCommonHandlerRegistry(target,eventName)):[];if(!add&&isArrayLike(target))return mergeMap_mergeMap(subTarget=>fromEvent_fromEvent(subTarget,eventName,options))(innerFrom(target));if(!add)throw new TypeError("Invalid event target");return new Observable_Observable(subscriber=>{const handler=(...args)=>subscriber.next(1remove2(handler)})}function toCommonHandlerRegistry(target,eventName){return methodName=>handler=>target[methodName](eventName,handler)}const animationFrameProvider={schedule(callback){let request=requestAnimationFrame,cancel=cancelAnimationFrame;const{delegate}=animationFrameProvider;delegate&&(request=delegate.requestAnimationFrame,cancel=delegate.cancelAnimationFrame);const handle=request(timestamp=>{cancel=void 0,callback(timestamp)});return new Subscription_Subscription(()=>cancel?.(handle))},requestAnimationFrame(...args){const{delegate}=animationFrameProvider;return(delegate?.requestAnimationFrame||requestAnimationFrame)(...args)},cancelAnimationFrame(...args){const{delegate}=animationFrameProvider;return(delegate?.cancelAnimationFrame||cancelAnimationFrame)(...args)},delegate:void 0};new class AnimationFrameScheduler extends AsyncScheduler{flush(action){this._active=!0;const flushId=this._scheduled;this._scheduled=void 0;const{actions}=this;let error;action=action||actions.shift();do{if(error=action.execute(action.state,action.delay))break}while((action=actions[0])&&action.id===flushId&&actions.shift());if(this._active=!1,error){for(;(action=actions[0])&&action.id===flushId&&actions.shift();)action.unsubscribe();throw error}}}(class AnimationFrameAction extends AsyncAction{constructor(scheduler,work){super(scheduler,work),this.scheduler=scheduler,this.work=work}requestAsyncId(scheduler,id,delay2=0){return null!==delay2&&delay2>0?super.requestAsyncId(scheduler,id,delay2):(scheduler.actions.push(this),scheduler._scheduled||(scheduler._scheduled=animationFrameProvider.requestAnimationFrame(()=>scheduler.flush(void 0))))}recycleAsyncId(scheduler,id,delay2=0){var _a;if(null!=delay2?delay2>0:this.delay>0)return super.recycleAsyncId(scheduler,id,delay2);const{actions}=scheduler;null!=id&&(null===(_a=actions[actions.length-1])||void 0===_a?void 0:_a.id)!==id&&(animationFrameProvider.cancelAnimationFrame(id),scheduler._scheduled=void 0)}});let resolved,nextHandle=1;const activeHandles={};function findAndClearHandle(handle){return handle in activeHandles&&(delete activeHandles[handle],!0)}const Immediate={setImmediate(cb){const handle=nextHandle++;return activeHandles[handle]=!0,resolved||(resolved=Promise.resolve()),resolved.then(()=>findAndClearHandle(handle)&&cb()),handle},clearImmediate(handle){findAndClearHandle(handle)}},{setImmediate,clearImmediate}=Immediate,immediateProvider={setImmediate(...args){const{delegate}=immediateProvider;return(delegate?.setImmediate||setImmediate)(...args)},clearImmediate(handle){const{delegate}=immediateProvider;return(delegate?.clearImmediate||clearImmediate)(handle)},delegate:void 0};new class AsapScheduler extends AsyncScheduler{flush(action){this._active=!0;const flushId=this._scheduled;this._scheduled=void 0;const{actions}=this;let error;action=action||actions.shift();do{if(error=action.execute(action.state,action.delay))break}while((action=actions[0])&&action.id===flushId&&actions.shift());if(this._active=!1,error){for(;(action=actions[0])&&action.id===flushId&&actions.shift();)action.unsubscribe();throw error}}}(class AsapAction extends AsyncAction{constructor(scheduler,work){super(scheduler,work),this.scheduler=scheduler,this.work=work}requestAsyncId(scheduler,id,delay2=0){return null!==delay2&&delay2>0?super.requestAsyncId(scheduler,id,delay2):(scheduler.actions.push(this),scheduler._scheduled||(scheduler._scheduled=immediateProvider.setImmediate(scheduler.flush.bind(scheduler,void 0))))}recycleAsyncId(scheduler,id,delay2=0){var _a;if(null!=delay2?delay2>0:this.delay>0)return super.recycleAsyncId(scheduler,id,delay2);const{actions}=scheduler;null!=id&&(null===(_a=actions[actions.length-1])||void 0===_a?void 0:_a.id)!==id&&(immediateProvider.clearImmediate(id),scheduler._scheduled===id&&(scheduler._scheduled=void 0))}});function timer_timer(dueTime=0,intervalOrScheduler,scheduler=async_async){let intervalDuration=-1;return null!=intervalOrScheduler&&(isScheduler(intervalOrScheduler)?scheduler=intervalOrScheduler:intervalDuration=intervalOrScheduler),new Observable_Observable(subscriber=>{let due=function isValidDate(value){return value instanceof Date&&!isNaN(value)}(dueTime)?+dueTime-scheduler.now():dueTime;due<0&&(due=0);let n2=0;return scheduler.schedule(function(){subscriber.closed||(subscriber.next(n2++),0<=intervalDuration?this.schedule(void 0,intervalDuration):subscriber.complete())},due)})}function auditTime_auditTime(duration,scheduler=asyncScheduler){return function audit(durationSelector){return operate((source,subscriber)=>{let hasValue=!1,lastValue=null,durationSubscriber=null,isComplete=!1;const endDuration=()=>{if(durationSubscriber?.unsubscribe(),durationSubscriber=null,hasValue){hasValue=!1;const value=lastValue;lastValue=null,subscriber.next(value)}isComplete&&subscriber.complete()},cleanupDuration=()=>{durationSubscriber=null,isComplete&&subscriber.complete()};source.subscribe(createOperatorSubscriber(subscriber,value=>{hasValue=!0,lastValue=value,durationSubscriber||innerFrom(durationSelector(value)).subscribe(durationSubscriber=createOperatorSubscriber(subscriber,endDuration,cleanupDuration))},()=>{isComplete=!0,(!hasValue||!durationSubscriber||durationSubscriber.closed)&&subscriber.complete()}))})}(()=>timer_timer(duration,scheduler))}let ScrollDispatcher=(()=>{class ScrollDispatcher2{constructor(_ngZone,_platform,document2){this._ngZone=_ngZone,this._platform=_platform,this._scrolled=new Subject_Subject,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=document2}register(scrollable){this.scrollContainers.has(scrollable)||this.scrollContainers.set(scrollable,scrollable.elementScrolled().subscribe(()=>this._scrolled.next(scrollable)))}deregister(scrollable){const scrollableReference=this.scrollContainers.get(scrollable);scrollableReference&&(scrollableReference.unsubscribe(),this.scrollContainers.delete(scrollable))}scrolled(auditTimeInMs=20){return this._platform.isBrowser?new Observable_Observable(observer=>{this._globalSubscription||this._addGlobalListener();const subscription=auditTimeInMs>0?this._scrolled.pipe(auditTime_auditTime(auditTimeInMs)).subscribe(observer):this._scrolled.subscribe(observer);return this._scrolledCount++,()=>{subscription.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):of_of()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((_,container)=>this.deregister(container)),this._scrolled.complete()}ancestorScrolled(elementOrElementRef,auditTimeInMs){const ancestors=this.getAncestorScrollContainers(elementOrElementRef);return this.scrolled(auditTimeInMs).pipe(filter_filter(target=>!target||ancestors.indexOf(target)>-1))}getAncestorScrollContainers(elementOrElementRef){const scrollingContainers=[];return this.scrollContainers.forEach((_subscription,scrollable)=>{this._scrollableContainsElement(scrollable,elementOrElementRef)&&scrollingContainers.push(scrollable)}),scrollingContainers}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(scrollable,elementOrElementRef){let element=coerceElement(elementOrElementRef),scrollableElement=scrollable.getElementRef().nativeElement;do{if(element==scrollableElement)return!0}while(element=element.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>fromEvent_fromEvent(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#_=this.\u0275fac=function(t){return new(t||ScrollDispatcher2)(\u0275\u0275inject(core_NgZone),\u0275\u0275inject(platform_Platform),\u0275\u0275inject(common_DOCUMENT,8))};static#_2=this.\u0275prov=core_defineInjectable({token:ScrollDispatcher2,factory:ScrollDispatcher2.\u0275fac,providedIn:"root"})}return ScrollDispatcher2})(),CdkScrollable=(()=>{class CdkScrollable2{constructor(elementRef,scrollDispatcher,ngZone,dir){this.elementRef=elementRef,this.scrollDispatcher=scrollDispatcher,this.ngZone=ngZone,this.dir=dir,this._destroyed=new Subject_Subject,this._elementScrolled=new Observable_Observable(observer=>this.ngZone.runOutsideAngular(()=>fromEvent_fromEvent(this.elementRef.nativeElement,"scroll").pipe(takeUntil_takeUntil(this._destroyed)).subscribe(observer)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(options){const el=this.elementRef.nativeElement,isRtl=this.dir&&"rtl"==this.dir.value;null==options.left&&(options.left=isRtl?options.end:options.start),null==options.right&&(options.right=isRtl?options.start:options.end),null!=options.bottom&&(options.top=el.scrollHeight-el.clientHeight-options.bottom),isRtl&&getRtlScrollAxisType()!=RtlScrollAxisType.NORMAL?(null!=options.left&&(options.right=el.scrollWidth-el.clientWidth-options.left),getRtlScrollAxisType()==RtlScrollAxisType.INVERTED?options.left=options.right:getRtlScrollAxisType()==RtlScrollAxisType.NEGATED&&(options.left=options.right?-options.right:options.right)):null!=options.right&&(options.left=el.scrollWidth-el.clientWidth-options.right),this._applyScrollToOptions(options)}_applyScrollToOptions(options){const el=this.elementRef.nativeElement;supportsScrollBehavior()?el.scrollTo(options):(null!=options.top&&(el.scrollTop=options.top),null!=options.left&&(el.scrollLeft=options.left))}measureScrollOffset(from2){const el=this.elementRef.nativeElement;if("top"==from2)return el.scrollTop;if("bottom"==from2)return el.scrollHeight-el.clientHeight-el.scrollTop;const isRtl=this.dir&&"rtl"==this.dir.value;return"start"==from2?from2=isRtl?"right":"left":"end"==from2&&(from2=isRtl?"left":"right"),isRtl&&getRtlScrollAxisType()==RtlScrollAxisType.INVERTED?"left"==from2?el.scrollWidth-el.clientWidth-el.scrollLeft:el.scrollLeft:isRtl&&getRtlScrollAxisType()==RtlScrollAxisType.NEGATED?"left"==from2?el.scrollLeft+el.scrollWidth-el.clientWidth:-el.scrollLeft:"left"==from2?el.scrollLeft:el.scrollWidth-el.clientWidth-el.scrollLeft}static#_=this.\u0275fac=function(t){return new(t||CdkScrollable2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(ScrollDispatcher),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(Directionality,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkScrollable2,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return CdkScrollable2})(),ViewportRuler=(()=>{class ViewportRuler2{constructor(_platform,ngZone,document2){this._platform=_platform,this._change=new Subject_Subject,this._changeListener=event=>{this._change.next(event)},this._document=document2,ngZone.runOutsideAngular(()=>{if(_platform.isBrowser){const window2=this._getWindow();window2.addEventListener("resize",this._changeListener),window2.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const window2=this._getWindow();window2.removeEventListener("resize",this._changeListener),window2.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const output2={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),output2}getViewportRect(){const scrollPosition=this.getViewportScrollPosition(),{width,height}=this.getViewportSize();return{top:scrollPosition.top,left:scrollPosition.left,bottom:scrollPosition.top+height,right:scrollPosition.left+width,height,width}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const document2=this._document,window2=this._getWindow(),documentElement2=document2.documentElement,documentRect=documentElement2.getBoundingClientRect();return{top:-documentRect.top||document2.body.scrollTop||window2.scrollY||documentElement2.scrollTop||0,left:-documentRect.left||document2.body.scrollLeft||window2.scrollX||documentElement2.scrollLeft||0}}change(throttleTime=20){return throttleTime>0?this._change.pipe(auditTime_auditTime(throttleTime)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const window2=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:window2.innerWidth,height:window2.innerHeight}:{width:0,height:0}}static#_=this.\u0275fac=function(t){return new(t||ViewportRuler2)(\u0275\u0275inject(platform_Platform),\u0275\u0275inject(core_NgZone),\u0275\u0275inject(common_DOCUMENT,8))};static#_2=this.\u0275prov=core_defineInjectable({token:ViewportRuler2,factory:ViewportRuler2.\u0275fac,providedIn:"root"})}return ViewportRuler2})(),CdkScrollableModule=(()=>{class CdkScrollableModule2{static#_=this.\u0275fac=function(t){return new(t||CdkScrollableModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:CdkScrollableModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return CdkScrollableModule2})(),ScrollingModule=(()=>{class ScrollingModule2{static#_=this.\u0275fac=function(t){return new(t||ScrollingModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:ScrollingModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[BidiModule,CdkScrollableModule,BidiModule,CdkScrollableModule]})}return ScrollingModule2})();class Portal{attach(host){return this._attachedHost=host,host.attach(this)}detach(){let host=this._attachedHost;null!=host&&(this._attachedHost=null,host.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(host){this._attachedHost=host}}class ComponentPortal extends Portal{constructor(component,viewContainerRef,injector,componentFactoryResolver,projectableNodes){super(),this.component=component,this.viewContainerRef=viewContainerRef,this.injector=injector,this.componentFactoryResolver=componentFactoryResolver,this.projectableNodes=projectableNodes}}class portal_TemplatePortal extends Portal{constructor(templateRef,viewContainerRef,context2,injector){super(),this.templateRef=templateRef,this.viewContainerRef=viewContainerRef,this.context=context2,this.injector=injector}get origin(){return this.templateRef.elementRef}attach(host,context2=this.context){return this.context=context2,super.attach(host)}detach(){return this.context=void 0,super.detach()}}class DomPortal extends Portal{constructor(element){super(),this.element=element instanceof core_ElementRef?element.nativeElement:element}}class BasePortalOutlet{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(portal){return portal instanceof ComponentPortal?(this._attachedPortal=portal,this.attachComponentPortal(portal)):portal instanceof portal_TemplatePortal?(this._attachedPortal=portal,this.attachTemplatePortal(portal)):this.attachDomPortal&&portal instanceof DomPortal?(this._attachedPortal=portal,this.attachDomPortal(portal)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(fn){this._disposeFn=fn}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class DomPortalOutlet extends BasePortalOutlet{constructor(outletElement,_componentFactoryResolver,_appRef,_defaultInjector,_document2){super(),this.outletElement=outletElement,this._componentFactoryResolver=_componentFactoryResolver,this._appRef=_appRef,this._defaultInjector=_defaultInjector,this.attachDomPortal=portal=>{const element=portal.element,anchorNode=this._document.createComment("dom-portal");element.parentNode.insertBefore(anchorNode,element),this.outletElement.appendChild(element),this._attachedPortal=portal,super.setDisposeFn(()=>{anchorNode.parentNode&&anchorNode.parentNode.replaceChild(element,anchorNode)})},this._document=_document2}attachComponentPortal(portal){const componentFactory=(portal.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(portal.component);let componentRef;return portal.viewContainerRef?(componentRef=portal.viewContainerRef.createComponent(componentFactory,portal.viewContainerRef.length,portal.injector||portal.viewContainerRef.injector,portal.projectableNodes||void 0),this.setDisposeFn(()=>componentRef.destroy())):(componentRef=componentFactory.create(portal.injector||this._defaultInjector||core_Injector.NULL),this._appRef.attachView(componentRef.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(componentRef.hostView),componentRef.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(componentRef)),this._attachedPortal=portal,componentRef}attachTemplatePortal(portal){let viewContainer=portal.viewContainerRef,viewRef=viewContainer.createEmbeddedView(portal.templateRef,portal.context,{injector:portal.injector});return viewRef.rootNodes.forEach(rootNode=>this.outletElement.appendChild(rootNode)),viewRef.detectChanges(),this.setDisposeFn(()=>{let index=viewContainer.indexOf(viewRef);-1!==index&&viewContainer.remove(index)}),this._attachedPortal=portal,viewRef}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(componentRef){return componentRef.hostView.rootNodes[0]}}let CdkPortal=(()=>{class CdkPortal2 extends portal_TemplatePortal{constructor(templateRef,viewContainerRef){super(templateRef,viewContainerRef)}static#_=this.\u0275fac=function(t){return new(t||CdkPortal2)(\u0275\u0275directiveInject(core_TemplateRef),\u0275\u0275directiveInject(core_ViewContainerRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkPortal2,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[\u0275\u0275InheritDefinitionFeature]})}return CdkPortal2})(),CdkPortalOutlet=(()=>{class CdkPortalOutlet2 extends BasePortalOutlet{constructor(_componentFactoryResolver,_viewContainerRef,_document2){super(),this._componentFactoryResolver=_componentFactoryResolver,this._viewContainerRef=_viewContainerRef,this._isInitialized=!1,this.attached=new core_EventEmitter,this.attachDomPortal=portal=>{const element=portal.element,anchorNode=this._document.createComment("dom-portal");portal.setAttachedHost(this),element.parentNode.insertBefore(anchorNode,element),this._getRootNode().appendChild(element),this._attachedPortal=portal,super.setDisposeFn(()=>{anchorNode.parentNode&&anchorNode.parentNode.replaceChild(element,anchorNode)})},this._document=_document2}get portal(){return this._attachedPortal}set portal(portal){this.hasAttached()&&!portal&&!this._isInitialized||(this.hasAttached()&&super.detach(),portal&&super.attach(portal),this._attachedPortal=portal||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(portal){portal.setAttachedHost(this);const viewContainerRef=null!=portal.viewContainerRef?portal.viewContainerRef:this._viewContainerRef,componentFactory=(portal.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(portal.component),ref2=viewContainerRef.createComponent(componentFactory,viewContainerRef.length,portal.injector||viewContainerRef.injector,portal.projectableNodes||void 0);return viewContainerRef!==this._viewContainerRef&&this._getRootNode().appendChild(ref2.hostView.rootNodes[0]),super.setDisposeFn(()=>ref2.destroy()),this._attachedPortal=portal,this._attachedRef=ref2,this.attached.emit(ref2),ref2}attachTemplatePortal(portal){portal.setAttachedHost(this);const viewRef=this._viewContainerRef.createEmbeddedView(portal.templateRef,portal.context,{injector:portal.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=portal,this._attachedRef=viewRef,this.attached.emit(viewRef),viewRef}_getRootNode(){const nativeElement=this._viewContainerRef.element.nativeElement;return nativeElement.nodeType===nativeElement.ELEMENT_NODE?nativeElement:nativeElement.parentNode}static#_=this.\u0275fac=function(t){return new(t||CdkPortalOutlet2)(\u0275\u0275directiveInject(ComponentFactoryResolver$1),\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(common_DOCUMENT))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkPortalOutlet2,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[InputFlags.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[\u0275\u0275InheritDefinitionFeature]})}return CdkPortalOutlet2})(),PortalModule=(()=>{class PortalModule2{static#_=this.\u0275fac=function(t){return new(t||PortalModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:PortalModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return PortalModule2})();function merge_merge(...args){const scheduler=popScheduler(args),concurrent=function popNumber(args,defaultValue){return"number"==typeof last(args)?args.pop():defaultValue}(args,1/0),sources=args;return sources.length?1===sources.length?innerFrom(sources[0]):mergeAll_mergeAll(concurrent)(from_from(sources,scheduler)):EMPTY}const overlay_scrollBehaviorSupported=supportsScrollBehavior();class BlockScrollStrategy{constructor(_viewportRuler,document2){this._viewportRuler=_viewportRuler,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=document2}attach(){}enable(){if(this._canBeEnabled()){const root=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=root.style.left||"",this._previousHTMLStyles.top=root.style.top||"",root.style.left=coerceCssPixelValue(-this._previousScrollPosition.left),root.style.top=coerceCssPixelValue(-this._previousScrollPosition.top),root.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const html=this._document.documentElement,htmlStyle=html.style,bodyStyle=this._document.body.style,previousHtmlScrollBehavior=htmlStyle.scrollBehavior||"",previousBodyScrollBehavior=bodyStyle.scrollBehavior||"";this._isEnabled=!1,htmlStyle.left=this._previousHTMLStyles.left,htmlStyle.top=this._previousHTMLStyles.top,html.classList.remove("cdk-global-scrollblock"),overlay_scrollBehaviorSupported&&(htmlStyle.scrollBehavior=bodyStyle.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),overlay_scrollBehaviorSupported&&(htmlStyle.scrollBehavior=previousHtmlScrollBehavior,bodyStyle.scrollBehavior=previousBodyScrollBehavior)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const body=this._document.body,viewport=this._viewportRuler.getViewportSize();return body.scrollHeight>viewport.height||body.scrollWidth>viewport.width}}class CloseScrollStrategy{constructor(_scrollDispatcher,_ngZone,_viewportRuler,_config){this._scrollDispatcher=_scrollDispatcher,this._ngZone=_ngZone,this._viewportRuler=_viewportRuler,this._config=_config,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(overlayRef){this._overlayRef=overlayRef}enable(){if(this._scrollSubscription)return;const stream=this._scrollDispatcher.scrolled(0).pipe(filter_filter(scrollable=>!scrollable||!this._overlayRef.overlayElement.contains(scrollable.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=stream.subscribe(()=>{const scrollPosition=this._viewportRuler.getViewportScrollPosition().top;Math.abs(scrollPosition-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=stream.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class NoopScrollStrategy{enable(){}disable(){}attach(){}}function isElementScrolledOutsideView(element,scrollContainers){return scrollContainers.some(containerBounds=>element.bottomcontainerBounds.bottom||element.rightcontainerBounds.right)}function isElementClippedByScrolling(element,scrollContainers){return scrollContainers.some(scrollContainerRect=>element.topscrollContainerRect.bottom||element.leftscrollContainerRect.right)}class RepositionScrollStrategy{constructor(_scrollDispatcher,_viewportRuler,_ngZone,_config){this._scrollDispatcher=_scrollDispatcher,this._viewportRuler=_viewportRuler,this._ngZone=_ngZone,this._config=_config,this._scrollSubscription=null}attach(overlayRef){this._overlayRef=overlayRef}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const overlayRect=this._overlayRef.overlayElement.getBoundingClientRect(),{width,height}=this._viewportRuler.getViewportSize();isElementScrolledOutsideView(overlayRect,[{width,height,bottom:height,right:width,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ScrollStrategyOptions=(()=>{class ScrollStrategyOptions2{constructor(_scrollDispatcher,_viewportRuler,_ngZone,document2){this._scrollDispatcher=_scrollDispatcher,this._viewportRuler=_viewportRuler,this._ngZone=_ngZone,this.noop=()=>new NoopScrollStrategy,this.close=config2=>new CloseScrollStrategy(this._scrollDispatcher,this._ngZone,this._viewportRuler,config2),this.block=()=>new BlockScrollStrategy(this._viewportRuler,this._document),this.reposition=config2=>new RepositionScrollStrategy(this._scrollDispatcher,this._viewportRuler,this._ngZone,config2),this._document=document2}static#_=this.\u0275fac=function(t){return new(t||ScrollStrategyOptions2)(\u0275\u0275inject(ScrollDispatcher),\u0275\u0275inject(ViewportRuler),\u0275\u0275inject(core_NgZone),\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:ScrollStrategyOptions2,factory:ScrollStrategyOptions2.\u0275fac,providedIn:"root"})}return ScrollStrategyOptions2})();class OverlayConfig{constructor(config2){if(this.scrollStrategy=new NoopScrollStrategy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,config2){const configKeys=Object.keys(config2);for(const key of configKeys)void 0!==config2[key]&&(this[key]=config2[key])}}}class ConnectedOverlayPositionChange{constructor(connectionPair,scrollableViewProperties){this.connectionPair=connectionPair,this.scrollableViewProperties=scrollableViewProperties}}let BaseOverlayDispatcher=(()=>{class BaseOverlayDispatcher2{constructor(document2){this._attachedOverlays=[],this._document=document2}ngOnDestroy(){this.detach()}add(overlayRef){this.remove(overlayRef),this._attachedOverlays.push(overlayRef)}remove(overlayRef){const index=this._attachedOverlays.indexOf(overlayRef);index>-1&&this._attachedOverlays.splice(index,1),0===this._attachedOverlays.length&&this.detach()}static#_=this.\u0275fac=function(t){return new(t||BaseOverlayDispatcher2)(\u0275\u0275inject(common_DOCUMENT))};static#_2=this.\u0275prov=core_defineInjectable({token:BaseOverlayDispatcher2,factory:BaseOverlayDispatcher2.\u0275fac,providedIn:"root"})}return BaseOverlayDispatcher2})(),OverlayKeyboardDispatcher=(()=>{class OverlayKeyboardDispatcher2 extends BaseOverlayDispatcher{constructor(document2,_ngZone){super(document2),this._ngZone=_ngZone,this._keydownListener=event=>{const overlays=this._attachedOverlays;for(let i=overlays.length-1;i>-1;i--)if(overlays[i]._keydownEvents.observers.length>0){const keydownEvents=overlays[i]._keydownEvents;this._ngZone?this._ngZone.run(()=>keydownEvents.next(event)):keydownEvents.next(event);break}}}add(overlayRef){super.add(overlayRef),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#_=this.\u0275fac=function(t){return new(t||OverlayKeyboardDispatcher2)(\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(core_NgZone,8))};static#_2=this.\u0275prov=core_defineInjectable({token:OverlayKeyboardDispatcher2,factory:OverlayKeyboardDispatcher2.\u0275fac,providedIn:"root"})}return OverlayKeyboardDispatcher2})(),OverlayOutsideClickDispatcher=(()=>{class OverlayOutsideClickDispatcher2 extends BaseOverlayDispatcher{constructor(document2,_platform,_ngZone){super(document2),this._platform=_platform,this._ngZone=_ngZone,this._cursorStyleIsSet=!1,this._pointerDownListener=event=>{this._pointerDownEventTarget=_getEventTarget(event)},this._clickListener=event=>{const target=_getEventTarget(event),origin="click"===event.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:target;this._pointerDownEventTarget=null;const overlays=this._attachedOverlays.slice();for(let i=overlays.length-1;i>-1;i--){const overlayRef=overlays[i];if(overlayRef._outsidePointerEvents.observers.length<1||!overlayRef.hasAttached())continue;if(overlayRef.overlayElement.contains(target)||overlayRef.overlayElement.contains(origin))break;const outsidePointerEvents=overlayRef._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>outsidePointerEvents.next(event)):outsidePointerEvents.next(event)}}}add(overlayRef){if(super.add(overlayRef),!this._isAttached){const body=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(body)):this._addEventListeners(body),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=body.style.cursor,body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const body=this._document.body;body.removeEventListener("pointerdown",this._pointerDownListener,!0),body.removeEventListener("click",this._clickListener,!0),body.removeEventListener("auxclick",this._clickListener,!0),body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(body){body.addEventListener("pointerdown",this._pointerDownListener,!0),body.addEventListener("click",this._clickListener,!0),body.addEventListener("auxclick",this._clickListener,!0),body.addEventListener("contextmenu",this._clickListener,!0)}static#_=this.\u0275fac=function(t){return new(t||OverlayOutsideClickDispatcher2)(\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(platform_Platform),\u0275\u0275inject(core_NgZone,8))};static#_2=this.\u0275prov=core_defineInjectable({token:OverlayOutsideClickDispatcher2,factory:OverlayOutsideClickDispatcher2.\u0275fac,providedIn:"root"})}return OverlayOutsideClickDispatcher2})(),OverlayContainer=(()=>{class OverlayContainer2{constructor(document2,_platform){this._platform=_platform,this._document=document2}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||_isTestEnvironment()){const oppositePlatformContainers=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let i=0;ithis._backdropClick.next(event),this._backdropTransitionendHandler=event=>{this._disposeBackdrop(event.target)},this._keydownEvents=new Subject_Subject,this._outsidePointerEvents=new Subject_Subject,_config.scrollStrategy&&(this._scrollStrategy=_config.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=_config.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(portal){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const attachResult=this._portalOutlet.attach(portal);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(take_take(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof attachResult?.onDestroy&&attachResult.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),attachResult}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const detachmentResult=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),detachmentResult}dispose(){const isAttached=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,isAttached&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(strategy){strategy!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=strategy,this.hasAttached()&&(strategy.attach(this),this.updatePosition()))}updateSize(sizeConfig){this._config={...this._config,...sizeConfig},this._updateElementSize()}setDirection(dir){this._config={...this._config,direction:dir},this._updateElementDirection()}addPanelClass(classes){this._pane&&this._toggleClasses(this._pane,classes,!0)}removePanelClass(classes){this._pane&&this._toggleClasses(this._pane,classes,!1)}getDirection(){const direction=this._config.direction;return direction?"string"==typeof direction?direction:direction.value:"ltr"}updateScrollStrategy(strategy){strategy!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=strategy,this.hasAttached()&&(strategy.attach(this),strategy.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const style2=this._pane.style;style2.width=coerceCssPixelValue(this._config.width),style2.height=coerceCssPixelValue(this._config.height),style2.minWidth=coerceCssPixelValue(this._config.minWidth),style2.minHeight=coerceCssPixelValue(this._config.minHeight),style2.maxWidth=coerceCssPixelValue(this._config.maxWidth),style2.maxHeight=coerceCssPixelValue(this._config.maxHeight)}_togglePointerEvents(enablePointer){this._pane.style.pointerEvents=enablePointer?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const backdropToDetach=this._backdropElement;if(backdropToDetach){if(this._animationsDisabled)return void this._disposeBackdrop(backdropToDetach);backdropToDetach.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{backdropToDetach.addEventListener("transitionend",this._backdropTransitionendHandler)}),backdropToDetach.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(backdropToDetach)},500))}}_toggleClasses(element,cssClasses,isAdd){const classes=coerceArray(cssClasses||[]).filter(c=>!!c);classes.length&&(isAdd?element.classList.add(...classes):element.classList.remove(...classes))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const subscription=this._ngZone.onStable.pipe(takeUntil_takeUntil(merge_merge(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),subscription.unsubscribe())})})}_disposeScrollStrategy(){const scrollStrategy=this._scrollStrategy;scrollStrategy&&(scrollStrategy.disable(),scrollStrategy.detach&&scrollStrategy.detach())}_disposeBackdrop(backdrop){backdrop&&(backdrop.removeEventListener("click",this._backdropClickHandler),backdrop.removeEventListener("transitionend",this._backdropTransitionendHandler),backdrop.remove(),this._backdropElement===backdrop&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const cssUnitPattern=/([A-Za-z%]+)$/;class FlexibleConnectedPositionStrategy{get positions(){return this._preferredPositions}constructor(connectedTo,_viewportRuler,_document2,_platform,_overlayContainer){this._viewportRuler=_viewportRuler,this._document=_document2,this._platform=_platform,this._overlayContainer=_overlayContainer,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Subject_Subject,this._resizeSubscription=Subscription_Subscription.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(connectedTo)}attach(overlayRef){this._validatePositions(),overlayRef.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=overlayRef,this._boundingBox=overlayRef.hostElement,this._pane=overlayRef.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const originRect=this._originRect,overlayRect=this._overlayRect,viewportRect=this._viewportRect,containerRect=this._containerRect,flexibleFits=[];let fallback;for(let pos of this._preferredPositions){let originPoint=this._getOriginPoint(originRect,containerRect,pos),overlayPoint=this._getOverlayPoint(originPoint,overlayRect,pos),overlayFit=this._getOverlayFit(overlayPoint,overlayRect,viewportRect,pos);if(overlayFit.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(pos,originPoint);this._canFitWithFlexibleDimensions(overlayFit,overlayPoint,viewportRect)?flexibleFits.push({position:pos,origin:originPoint,overlayRect,boundingBoxRect:this._calculateBoundingBoxRect(originPoint,pos)}):(!fallback||fallback.overlayFit.visibleAreabestScore&&(bestScore=score,bestFit=fit)}return this._isPushed=!1,void this._applyPosition(bestFit.position,bestFit.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(fallback.position,fallback.originPoint);this._applyPosition(fallback.position,fallback.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&extendStyles(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const lastPosition=this._lastPosition;if(lastPosition){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const originPoint=this._getOriginPoint(this._originRect,this._containerRect,lastPosition);this._applyPosition(lastPosition,originPoint)}else this.apply()}withScrollableContainers(scrollables){return this._scrollables=scrollables,this}withPositions(positions){return this._preferredPositions=positions,-1===positions.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(margin){return this._viewportMargin=margin,this}withFlexibleDimensions(flexibleDimensions=!0){return this._hasFlexibleDimensions=flexibleDimensions,this}withGrowAfterOpen(growAfterOpen=!0){return this._growAfterOpen=growAfterOpen,this}withPush(canPush=!0){return this._canPush=canPush,this}withLockedPosition(isLocked=!0){return this._positionLocked=isLocked,this}setOrigin(origin){return this._origin=origin,this}withDefaultOffsetX(offset){return this._offsetX=offset,this}withDefaultOffsetY(offset){return this._offsetY=offset,this}withTransformOriginOn(selector){return this._transformOriginSelector=selector,this}_getOriginPoint(originRect,containerRect,pos){let x,y;if("center"==pos.originX)x=originRect.left+originRect.width/2;else{const startX=this._isRtl()?originRect.right:originRect.left,endX=this._isRtl()?originRect.left:originRect.right;x="start"==pos.originX?startX:endX}return containerRect.left<0&&(x-=containerRect.left),y="center"==pos.originY?originRect.top+originRect.height/2:"top"==pos.originY?originRect.top:originRect.bottom,containerRect.top<0&&(y-=containerRect.top),{x,y}}_getOverlayPoint(originPoint,overlayRect,pos){let overlayStartX,overlayStartY;return overlayStartX="center"==pos.overlayX?-overlayRect.width/2:"start"===pos.overlayX?this._isRtl()?-overlayRect.width:0:this._isRtl()?0:-overlayRect.width,overlayStartY="center"==pos.overlayY?-overlayRect.height/2:"top"==pos.overlayY?0:-overlayRect.height,{x:originPoint.x+overlayStartX,y:originPoint.y+overlayStartY}}_getOverlayFit(point,rawOverlayRect,viewport,position){const overlay=getRoundedBoundingClientRect(rawOverlayRect);let{x,y}=point,offsetX=this._getOffset(position,"x"),offsetY=this._getOffset(position,"y");offsetX&&(x+=offsetX),offsetY&&(y+=offsetY);let topOverflow=0-y,bottomOverflow=y+overlay.height-viewport.height,visibleWidth=this._subtractOverflows(overlay.width,0-x,x+overlay.width-viewport.width),visibleHeight=this._subtractOverflows(overlay.height,topOverflow,bottomOverflow),visibleArea=visibleWidth*visibleHeight;return{visibleArea,isCompletelyWithinViewport:overlay.width*overlay.height===visibleArea,fitsInViewportVertically:visibleHeight===overlay.height,fitsInViewportHorizontally:visibleWidth==overlay.width}}_canFitWithFlexibleDimensions(fit,point,viewport){if(this._hasFlexibleDimensions){const availableHeight=viewport.bottom-point.y,availableWidth=viewport.right-point.x,minHeight=getPixelValue(this._overlayRef.getConfig().minHeight),minWidth=getPixelValue(this._overlayRef.getConfig().minWidth);return(fit.fitsInViewportVertically||null!=minHeight&&minHeight<=availableHeight)&&(fit.fitsInViewportHorizontally||null!=minWidth&&minWidth<=availableWidth)}return!1}_pushOverlayOnScreen(start2,rawOverlayRect,scrollPosition){if(this._previousPushAmount&&this._positionLocked)return{x:start2.x+this._previousPushAmount.x,y:start2.y+this._previousPushAmount.y};const overlay=getRoundedBoundingClientRect(rawOverlayRect),viewport=this._viewportRect,overflowRight=Math.max(start2.x+overlay.width-viewport.width,0),overflowBottom=Math.max(start2.y+overlay.height-viewport.height,0),overflowTop=Math.max(viewport.top-scrollPosition.top-start2.y,0),overflowLeft=Math.max(viewport.left-scrollPosition.left-start2.x,0);let pushX=0,pushY=0;return pushX=overlay.width<=viewport.width?overflowLeft||-overflowRight:start2.xpreviousHeight&&!this._isInitialRender&&!this._growAfterOpen&&(top2=origin.y-previousHeight/2)}if("end"===position.overlayX&&!isRtl||"start"===position.overlayX&&isRtl)right=viewport.width-origin.x+2*this._viewportMargin,width=origin.x-this._viewportMargin;else if("start"===position.overlayX&&!isRtl||"end"===position.overlayX&&isRtl)left=origin.x,width=viewport.right-origin.x;else{const smallestDistanceToViewportEdge=Math.min(viewport.right-origin.x+viewport.left,origin.x),previousWidth=this._lastBoundingBoxSize.width;width=2*smallestDistanceToViewportEdge,left=origin.x-smallestDistanceToViewportEdge,width>previousWidth&&!this._isInitialRender&&!this._growAfterOpen&&(left=origin.x-previousWidth/2)}return{top:top2,left,bottom,right,width,height}}_setBoundingBoxStyles(origin,position){const boundingBoxRect=this._calculateBoundingBoxRect(origin,position);!this._isInitialRender&&!this._growAfterOpen&&(boundingBoxRect.height=Math.min(boundingBoxRect.height,this._lastBoundingBoxSize.height),boundingBoxRect.width=Math.min(boundingBoxRect.width,this._lastBoundingBoxSize.width));const styles={};if(this._hasExactPosition())styles.top=styles.left="0",styles.bottom=styles.right=styles.maxHeight=styles.maxWidth="",styles.width=styles.height="100%";else{const maxHeight=this._overlayRef.getConfig().maxHeight,maxWidth=this._overlayRef.getConfig().maxWidth;styles.height=coerceCssPixelValue(boundingBoxRect.height),styles.top=coerceCssPixelValue(boundingBoxRect.top),styles.bottom=coerceCssPixelValue(boundingBoxRect.bottom),styles.width=coerceCssPixelValue(boundingBoxRect.width),styles.left=coerceCssPixelValue(boundingBoxRect.left),styles.right=coerceCssPixelValue(boundingBoxRect.right),styles.alignItems="center"===position.overlayX?"center":"end"===position.overlayX?"flex-end":"flex-start",styles.justifyContent="center"===position.overlayY?"center":"bottom"===position.overlayY?"flex-end":"flex-start",maxHeight&&(styles.maxHeight=coerceCssPixelValue(maxHeight)),maxWidth&&(styles.maxWidth=coerceCssPixelValue(maxWidth))}this._lastBoundingBoxSize=boundingBoxRect,extendStyles(this._boundingBox.style,styles)}_resetBoundingBoxStyles(){extendStyles(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){extendStyles(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(originPoint,position){const styles={},hasExactPosition=this._hasExactPosition(),hasFlexibleDimensions=this._hasFlexibleDimensions,config2=this._overlayRef.getConfig();if(hasExactPosition){const scrollPosition=this._viewportRuler.getViewportScrollPosition();extendStyles(styles,this._getExactOverlayY(position,originPoint,scrollPosition)),extendStyles(styles,this._getExactOverlayX(position,originPoint,scrollPosition))}else styles.position="static";let transformString="",offsetX=this._getOffset(position,"x"),offsetY=this._getOffset(position,"y");offsetX&&(transformString+=`translateX(${offsetX}px) `),offsetY&&(transformString+=`translateY(${offsetY}px)`),styles.transform=transformString.trim(),config2.maxHeight&&(hasExactPosition?styles.maxHeight=coerceCssPixelValue(config2.maxHeight):hasFlexibleDimensions&&(styles.maxHeight="")),config2.maxWidth&&(hasExactPosition?styles.maxWidth=coerceCssPixelValue(config2.maxWidth):hasFlexibleDimensions&&(styles.maxWidth="")),extendStyles(this._pane.style,styles)}_getExactOverlayY(position,originPoint,scrollPosition){let styles={top:"",bottom:""},overlayPoint=this._getOverlayPoint(originPoint,this._overlayRect,position);return this._isPushed&&(overlayPoint=this._pushOverlayOnScreen(overlayPoint,this._overlayRect,scrollPosition)),"bottom"===position.overlayY?styles.bottom=this._document.documentElement.clientHeight-(overlayPoint.y+this._overlayRect.height)+"px":styles.top=coerceCssPixelValue(overlayPoint.y),styles}_getExactOverlayX(position,originPoint,scrollPosition){let horizontalStyleProperty,styles={left:"",right:""},overlayPoint=this._getOverlayPoint(originPoint,this._overlayRect,position);return this._isPushed&&(overlayPoint=this._pushOverlayOnScreen(overlayPoint,this._overlayRect,scrollPosition)),horizontalStyleProperty=this._isRtl()?"end"===position.overlayX?"left":"right":"end"===position.overlayX?"right":"left","right"===horizontalStyleProperty?styles.right=this._document.documentElement.clientWidth-(overlayPoint.x+this._overlayRect.width)+"px":styles.left=coerceCssPixelValue(overlayPoint.x),styles}_getScrollVisibility(){const originBounds=this._getOriginRect(),overlayBounds=this._pane.getBoundingClientRect(),scrollContainerBounds=this._scrollables.map(scrollable=>scrollable.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:isElementClippedByScrolling(originBounds,scrollContainerBounds),isOriginOutsideView:isElementScrolledOutsideView(originBounds,scrollContainerBounds),isOverlayClipped:isElementClippedByScrolling(overlayBounds,scrollContainerBounds),isOverlayOutsideView:isElementScrolledOutsideView(overlayBounds,scrollContainerBounds)}}_subtractOverflows(length,...overflows){return overflows.reduce((currentValue,currentOverflow)=>currentValue-Math.max(currentOverflow,0),length)}_getNarrowedViewportRect(){const width=this._document.documentElement.clientWidth,height=this._document.documentElement.clientHeight,scrollPosition=this._viewportRuler.getViewportScrollPosition();return{top:scrollPosition.top+this._viewportMargin,left:scrollPosition.left+this._viewportMargin,right:scrollPosition.left+width-this._viewportMargin,bottom:scrollPosition.top+height-this._viewportMargin,width:width-2*this._viewportMargin,height:height-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(position,axis){return"x"===axis?null==position.offsetX?this._offsetX:position.offsetX:null==position.offsetY?this._offsetY:position.offsetY}_validatePositions(){}_addPanelClasses(cssClasses){this._pane&&coerceArray(cssClasses).forEach(cssClass=>{""!==cssClass&&-1===this._appliedPanelClasses.indexOf(cssClass)&&(this._appliedPanelClasses.push(cssClass),this._pane.classList.add(cssClass))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(cssClass=>{this._pane.classList.remove(cssClass)}),this._appliedPanelClasses=[])}_getOriginRect(){const origin=this._origin;if(origin instanceof core_ElementRef)return origin.nativeElement.getBoundingClientRect();if(origin instanceof Element)return origin.getBoundingClientRect();const width=origin.width||0,height=origin.height||0;return{top:origin.y,bottom:origin.y+height,left:origin.x,right:origin.x+width,height,width}}}function extendStyles(destination,source){for(let key in source)source.hasOwnProperty(key)&&(destination[key]=source[key]);return destination}function getPixelValue(input2){if("number"!=typeof input2&&null!=input2){const[value,units]=input2.split(cssUnitPattern);return units&&"px"!==units?null:parseFloat(value)}return input2||null}function getRoundedBoundingClientRect(clientRect){return{top:Math.floor(clientRect.top),right:Math.floor(clientRect.right),bottom:Math.floor(clientRect.bottom),left:Math.floor(clientRect.left),width:Math.floor(clientRect.width),height:Math.floor(clientRect.height)}}class GlobalPositionStrategy{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(overlayRef){const config2=overlayRef.getConfig();this._overlayRef=overlayRef,this._width&&!config2.width&&overlayRef.updateSize({width:this._width}),this._height&&!config2.height&&overlayRef.updateSize({height:this._height}),overlayRef.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(value=""){return this._bottomOffset="",this._topOffset=value,this._alignItems="flex-start",this}left(value=""){return this._xOffset=value,this._xPosition="left",this}bottom(value=""){return this._topOffset="",this._bottomOffset=value,this._alignItems="flex-end",this}right(value=""){return this._xOffset=value,this._xPosition="right",this}start(value=""){return this._xOffset=value,this._xPosition="start",this}end(value=""){return this._xOffset=value,this._xPosition="end",this}width(value=""){return this._overlayRef?this._overlayRef.updateSize({width:value}):this._width=value,this}height(value=""){return this._overlayRef?this._overlayRef.updateSize({height:value}):this._height=value,this}centerHorizontally(offset=""){return this.left(offset),this._xPosition="center",this}centerVertically(offset=""){return this.top(offset),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const styles=this._overlayRef.overlayElement.style,parentStyles=this._overlayRef.hostElement.style,config2=this._overlayRef.getConfig(),{width,height,maxWidth,maxHeight}=config2,shouldBeFlushHorizontally=!("100%"!==width&&"100vw"!==width||maxWidth&&"100%"!==maxWidth&&"100vw"!==maxWidth),shouldBeFlushVertically=!("100%"!==height&&"100vh"!==height||maxHeight&&"100%"!==maxHeight&&"100vh"!==maxHeight),xPosition=this._xPosition,xOffset=this._xOffset,isRtl="rtl"===this._overlayRef.getConfig().direction;let marginLeft="",marginRight="",justifyContent="";shouldBeFlushHorizontally?justifyContent="flex-start":"center"===xPosition?(justifyContent="center",isRtl?marginRight=xOffset:marginLeft=xOffset):isRtl?"left"===xPosition||"end"===xPosition?(justifyContent="flex-end",marginLeft=xOffset):("right"===xPosition||"start"===xPosition)&&(justifyContent="flex-start",marginRight=xOffset):"left"===xPosition||"start"===xPosition?(justifyContent="flex-start",marginLeft=xOffset):("right"===xPosition||"end"===xPosition)&&(justifyContent="flex-end",marginRight=xOffset),styles.position=this._cssPosition,styles.marginLeft=shouldBeFlushHorizontally?"0":marginLeft,styles.marginTop=shouldBeFlushVertically?"0":this._topOffset,styles.marginBottom=this._bottomOffset,styles.marginRight=shouldBeFlushHorizontally?"0":marginRight,parentStyles.justifyContent=justifyContent,parentStyles.alignItems=shouldBeFlushVertically?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const styles=this._overlayRef.overlayElement.style,parent=this._overlayRef.hostElement,parentStyles=parent.style;parent.classList.remove("cdk-global-overlay-wrapper"),parentStyles.justifyContent=parentStyles.alignItems=styles.marginTop=styles.marginBottom=styles.marginLeft=styles.marginRight=styles.position="",this._overlayRef=null,this._isDisposed=!0}}let OverlayPositionBuilder=(()=>{class OverlayPositionBuilder2{constructor(_viewportRuler,_document2,_platform,_overlayContainer){this._viewportRuler=_viewportRuler,this._document=_document2,this._platform=_platform,this._overlayContainer=_overlayContainer}global(){return new GlobalPositionStrategy}flexibleConnectedTo(origin){return new FlexibleConnectedPositionStrategy(origin,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#_=this.\u0275fac=function(t){return new(t||OverlayPositionBuilder2)(\u0275\u0275inject(ViewportRuler),\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(platform_Platform),\u0275\u0275inject(OverlayContainer))};static#_2=this.\u0275prov=core_defineInjectable({token:OverlayPositionBuilder2,factory:OverlayPositionBuilder2.\u0275fac,providedIn:"root"})}return OverlayPositionBuilder2})(),nextUniqueId=0,Overlay=(()=>{class Overlay2{constructor(scrollStrategies,_overlayContainer,_componentFactoryResolver,_positionBuilder,_keyboardDispatcher,_injector,_ngZone,_document2,_directionality,_location,_outsideClickDispatcher,_animationsModuleType){this.scrollStrategies=scrollStrategies,this._overlayContainer=_overlayContainer,this._componentFactoryResolver=_componentFactoryResolver,this._positionBuilder=_positionBuilder,this._keyboardDispatcher=_keyboardDispatcher,this._injector=_injector,this._ngZone=_ngZone,this._document=_document2,this._directionality=_directionality,this._location=_location,this._outsideClickDispatcher=_outsideClickDispatcher,this._animationsModuleType=_animationsModuleType}create(config2){const host=this._createHostElement(),pane=this._createPaneElement(host),portalOutlet=this._createPortalOutlet(pane),overlayConfig=new OverlayConfig(config2);return overlayConfig.direction=overlayConfig.direction||this._directionality.value,new OverlayRef(portalOutlet,host,pane,overlayConfig,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(host){const pane=this._document.createElement("div");return pane.id="cdk-overlay-"+nextUniqueId++,pane.classList.add("cdk-overlay-pane"),host.appendChild(pane),pane}_createHostElement(){const host=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(host),host}_createPortalOutlet(pane){return this._appRef||(this._appRef=this._injector.get(core_ApplicationRef)),new DomPortalOutlet(pane,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#_=this.\u0275fac=function(t){return new(t||Overlay2)(\u0275\u0275inject(ScrollStrategyOptions),\u0275\u0275inject(OverlayContainer),\u0275\u0275inject(ComponentFactoryResolver$1),\u0275\u0275inject(OverlayPositionBuilder),\u0275\u0275inject(OverlayKeyboardDispatcher),\u0275\u0275inject(core_Injector),\u0275\u0275inject(core_NgZone),\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(Directionality),\u0275\u0275inject(Location),\u0275\u0275inject(OverlayOutsideClickDispatcher),\u0275\u0275inject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275prov=core_defineInjectable({token:Overlay2,factory:Overlay2.\u0275fac,providedIn:"root"})}return Overlay2})();const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER={provide:new InjectionToken("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const overlay=core_inject(Overlay);return()=>overlay.scrollStrategies.reposition()}}),deps:[Overlay],useFactory:function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay){return()=>overlay.scrollStrategies.reposition()}};let OverlayModule=(()=>{class OverlayModule2{static#_=this.\u0275fac=function(t){return new(t||OverlayModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:OverlayModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[Overlay,CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],imports:[BidiModule,PortalModule,ScrollingModule,ScrollingModule]})}return OverlayModule2})();function defer(observableFactory){return new Observable_Observable(subscriber=>{innerFrom(observableFactory()).subscribe(subscriber)})}function CdkDialogContainer_ng_template_0_Template(rf,ctx){}class DialogConfig{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let CdkDialogContainer=(()=>{class CdkDialogContainer2 extends BasePortalOutlet{constructor(_elementRef,_focusTrapFactory,_document2,_config,_interactivityChecker,_ngZone,_overlayRef,_focusMonitor){super(),this._elementRef=_elementRef,this._focusTrapFactory=_focusTrapFactory,this._config=_config,this._interactivityChecker=_interactivityChecker,this._ngZone=_ngZone,this._overlayRef=_overlayRef,this._focusMonitor=_focusMonitor,this._platform=core_inject(platform_Platform),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=core_inject(core_ChangeDetectorRef),this.attachDomPortal=portal=>{this._portalOutlet.hasAttached();const result=this._portalOutlet.attachDomPortal(portal);return this._contentAttached(),result},this._document=_document2,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(id){this._ariaLabelledByQueue.push(id),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(id){const index=this._ariaLabelledByQueue.indexOf(id);index>-1&&(this._ariaLabelledByQueue.splice(index,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(portal){this._portalOutlet.hasAttached();const result=this._portalOutlet.attachComponentPortal(portal);return this._contentAttached(),result}attachTemplatePortal(portal){this._portalOutlet.hasAttached();const result=this._portalOutlet.attachTemplatePortal(portal);return this._contentAttached(),result}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(element,options){this._interactivityChecker.isFocusable(element)||(element.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const callback=()=>{element.removeEventListener("blur",callback),element.removeEventListener("mousedown",callback),element.removeAttribute("tabindex")};element.addEventListener("blur",callback),element.addEventListener("mousedown",callback)})),element.focus(options)}_focusByCssSelector(selector,options){let elementToFocus=this._elementRef.nativeElement.querySelector(selector);elementToFocus&&this._forceFocus(elementToFocus,options)}_trapFocus(){const element=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||element.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(focusedSuccessfully=>{focusedSuccessfully||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const focusConfig=this._config.restoreFocus;let focusTargetElement=null;if("string"==typeof focusConfig?focusTargetElement=this._document.querySelector(focusConfig):"boolean"==typeof focusConfig?focusTargetElement=focusConfig?this._elementFocusedBeforeDialogWasOpened:null:focusConfig&&(focusTargetElement=focusConfig),this._config.restoreFocus&&focusTargetElement&&"function"==typeof focusTargetElement.focus){const activeElement=platform_getFocusedElementPierceShadowDom(),element=this._elementRef.nativeElement;(!activeElement||activeElement===this._document.body||activeElement===element||element.contains(activeElement))&&(this._focusMonitor?(this._focusMonitor.focusVia(focusTargetElement,this._closeInteractionType),this._closeInteractionType=null):focusTargetElement.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const element=this._elementRef.nativeElement,activeElement=platform_getFocusedElementPierceShadowDom();return element===activeElement||element.contains(activeElement)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=platform_getFocusedElementPierceShadowDom()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#_=this.\u0275fac=function(t){return new(t||CdkDialogContainer2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(FocusTrapFactory),\u0275\u0275directiveInject(common_DOCUMENT,8),\u0275\u0275directiveInject(DialogConfig),\u0275\u0275directiveInject(InteractivityChecker),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(OverlayRef),\u0275\u0275directiveInject(FocusMonitor))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:CdkDialogContainer2,selectors:[["cdk-dialog-container"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(CdkPortalOutlet,7),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._portalOutlet=_t.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275attribute("id",ctx._config.id||null)("role",ctx._config.role)("aria-modal",ctx._config.ariaModal)("aria-labelledby",ctx._config.ariaLabel?null:ctx._ariaLabelledByQueue[0])("aria-label",ctx._config.ariaLabel)("aria-describedby",ctx._config.ariaDescribedBy||null)},standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(rf,ctx){1&rf&&\u0275\u0275template(0,CdkDialogContainer_ng_template_0_Template,0,0,"ng-template",0)},dependencies:[CdkPortalOutlet],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return CdkDialogContainer2})();class DialogRef{constructor(overlayRef,config2){this.overlayRef=overlayRef,this.config=config2,this.closed=new Subject_Subject,this.disableClose=config2.disableClose,this.backdropClick=overlayRef.backdropClick(),this.keydownEvents=overlayRef.keydownEvents(),this.outsidePointerEvents=overlayRef.outsidePointerEvents(),this.id=config2.id,this.keydownEvents.subscribe(event=>{27===event.keyCode&&!this.disableClose&&!keycodes_hasModifierKey(event)&&(event.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=overlayRef.detachments().subscribe(()=>{!1!==config2.closeOnOverlayDetachments&&this.close()})}close(result,options){if(this.containerInstance){const closedSubject=this.closed;this.containerInstance._closeInteractionType=options?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),closedSubject.next(result),closedSubject.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(width="",height=""){return this.overlayRef.updateSize({width,height}),this}addPanelClass(classes){return this.overlayRef.addPanelClass(classes),this}removePanelClass(classes){return this.overlayRef.removePanelClass(classes),this}}const DIALOG_SCROLL_STRATEGY=new InjectionToken("DialogScrollStrategy",{providedIn:"root",factory:()=>{const overlay=core_inject(Overlay);return()=>overlay.scrollStrategies.block()}}),DIALOG_DATA=new InjectionToken("DialogData"),DEFAULT_DIALOG_CONFIG=new InjectionToken("DefaultDialogConfig");let uniqueId=0,Dialog=(()=>{class Dialog2{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(_overlay,_injector,_defaultOptions,_parentDialog,_overlayContainer,scrollStrategy){this._overlay=_overlay,this._injector=_injector,this._defaultOptions=_defaultOptions,this._parentDialog=_parentDialog,this._overlayContainer=_overlayContainer,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Subject_Subject,this._afterOpenedAtThisLevel=new Subject_Subject,this._ariaHiddenElements=new Map,this.afterAllClosed=defer(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(startWith_startWith(void 0))),this._scrollStrategy=scrollStrategy}open(componentOrTemplateRef,config2){(config2={...this._defaultOptions||new DialogConfig,...config2}).id=config2.id||"cdk-dialog-"+uniqueId++,config2.id&&this.getDialogById(config2.id);const overlayConfig=this._getOverlayConfig(config2),overlayRef=this._overlay.create(overlayConfig),dialogRef=new DialogRef(overlayRef,config2),dialogContainer=this._attachContainer(overlayRef,dialogRef,config2);return dialogRef.containerInstance=dialogContainer,this._attachDialogContent(componentOrTemplateRef,dialogRef,dialogContainer,config2),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(dialogRef),dialogRef.closed.subscribe(()=>this._removeOpenDialog(dialogRef,!0)),this.afterOpened.next(dialogRef),dialogRef}closeAll(){reverseForEach(this.openDialogs,dialog=>dialog.close())}getDialogById(id){return this.openDialogs.find(dialog=>dialog.id===id)}ngOnDestroy(){reverseForEach(this._openDialogsAtThisLevel,dialog=>{!1===dialog.config.closeOnDestroy&&this._removeOpenDialog(dialog,!1)}),reverseForEach(this._openDialogsAtThisLevel,dialog=>dialog.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(config2){const state2=new OverlayConfig({positionStrategy:config2.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:config2.scrollStrategy||this._scrollStrategy(),panelClass:config2.panelClass,hasBackdrop:config2.hasBackdrop,direction:config2.direction,minWidth:config2.minWidth,minHeight:config2.minHeight,maxWidth:config2.maxWidth,maxHeight:config2.maxHeight,width:config2.width,height:config2.height,disposeOnNavigation:config2.closeOnNavigation});return config2.backdropClass&&(state2.backdropClass=config2.backdropClass),state2}_attachContainer(overlay,dialogRef,config2){const userInjector=config2.injector||config2.viewContainerRef?.injector,providers=[{provide:DialogConfig,useValue:config2},{provide:DialogRef,useValue:dialogRef},{provide:OverlayRef,useValue:overlay}];let containerType;config2.container?"function"==typeof config2.container?containerType=config2.container:(containerType=config2.container.type,providers.push(...config2.container.providers(config2))):containerType=CdkDialogContainer;const containerPortal=new ComponentPortal(containerType,config2.viewContainerRef,core_Injector.create({parent:userInjector||this._injector,providers}),config2.componentFactoryResolver);return overlay.attach(containerPortal).instance}_attachDialogContent(componentOrTemplateRef,dialogRef,dialogContainer,config2){if(componentOrTemplateRef instanceof core_TemplateRef){const injector=this._createInjector(config2,dialogRef,dialogContainer,void 0);let context2={$implicit:config2.data,dialogRef};config2.templateContext&&(context2={...context2,..."function"==typeof config2.templateContext?config2.templateContext():config2.templateContext}),dialogContainer.attachTemplatePortal(new portal_TemplatePortal(componentOrTemplateRef,null,context2,injector))}else{const injector=this._createInjector(config2,dialogRef,dialogContainer,this._injector),contentRef=dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef,config2.viewContainerRef,injector,config2.componentFactoryResolver));dialogRef.componentRef=contentRef,dialogRef.componentInstance=contentRef.instance}}_createInjector(config2,dialogRef,dialogContainer,fallbackInjector){const userInjector=config2.injector||config2.viewContainerRef?.injector,providers=[{provide:DIALOG_DATA,useValue:config2.data},{provide:DialogRef,useValue:dialogRef}];return config2.providers&&("function"==typeof config2.providers?providers.push(...config2.providers(dialogRef,config2,dialogContainer)):providers.push(...config2.providers)),config2.direction&&(!userInjector||!userInjector.get(Directionality,null,{optional:!0}))&&providers.push({provide:Directionality,useValue:{value:config2.direction,change:of_of()}}),core_Injector.create({parent:userInjector||fallbackInjector,providers})}_removeOpenDialog(dialogRef,emitEvent){const index=this.openDialogs.indexOf(dialogRef);index>-1&&(this.openDialogs.splice(index,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((previousValue,element)=>{previousValue?element.setAttribute("aria-hidden",previousValue):element.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),emitEvent&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const overlayContainer=this._overlayContainer.getContainerElement();if(overlayContainer.parentElement){const siblings=overlayContainer.parentElement.children;for(let i=siblings.length-1;i>-1;i--){const sibling=siblings[i];sibling!==overlayContainer&&"SCRIPT"!==sibling.nodeName&&"STYLE"!==sibling.nodeName&&!sibling.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(sibling,sibling.getAttribute("aria-hidden")),sibling.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const parent=this._parentDialog;return parent?parent._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#_=this.\u0275fac=function(t){return new(t||Dialog2)(\u0275\u0275inject(Overlay),\u0275\u0275inject(core_Injector),\u0275\u0275inject(DEFAULT_DIALOG_CONFIG,8),\u0275\u0275inject(Dialog2,12),\u0275\u0275inject(OverlayContainer),\u0275\u0275inject(DIALOG_SCROLL_STRATEGY))};static#_2=this.\u0275prov=core_defineInjectable({token:Dialog2,factory:Dialog2.\u0275fac,providedIn:"root"})}return Dialog2})();function reverseForEach(items,callback){let i=items.length;for(;i--;)callback(items[i])}let DialogModule=(()=>{class DialogModule2{static#_=this.\u0275fac=function(t){return new(t||DialogModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:DialogModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[Dialog],imports:[OverlayModule,PortalModule,A11yModule,PortalModule]})}return DialogModule2})();var AnimationMetadataType=function(AnimationMetadataType2){return AnimationMetadataType2[AnimationMetadataType2.State=0]="State",AnimationMetadataType2[AnimationMetadataType2.Transition=1]="Transition",AnimationMetadataType2[AnimationMetadataType2.Sequence=2]="Sequence",AnimationMetadataType2[AnimationMetadataType2.Group=3]="Group",AnimationMetadataType2[AnimationMetadataType2.Animate=4]="Animate",AnimationMetadataType2[AnimationMetadataType2.Keyframes=5]="Keyframes",AnimationMetadataType2[AnimationMetadataType2.Style=6]="Style",AnimationMetadataType2[AnimationMetadataType2.Trigger=7]="Trigger",AnimationMetadataType2[AnimationMetadataType2.Reference=8]="Reference",AnimationMetadataType2[AnimationMetadataType2.AnimateChild=9]="AnimateChild",AnimationMetadataType2[AnimationMetadataType2.AnimateRef=10]="AnimateRef",AnimationMetadataType2[AnimationMetadataType2.Query=11]="Query",AnimationMetadataType2[AnimationMetadataType2.Stagger=12]="Stagger",AnimationMetadataType2}(AnimationMetadataType||{});function animations_trigger(name,definitions){return{type:AnimationMetadataType.Trigger,name,definitions,options:{}}}function animations_animate(timings,styles=null){return{type:AnimationMetadataType.Animate,styles,timings}}function animations_style(tokens){return{type:AnimationMetadataType.Style,styles:tokens,offset:null}}function state(name,styles,options){return{type:AnimationMetadataType.State,name,styles,options}}function animations_transition(stateChangeExpr,steps,options=null){return{type:AnimationMetadataType.Transition,expr:stateChangeExpr,animation:steps,options}}class NoopAnimationPlayer{constructor(duration=0,delay2=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=duration+delay2}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fn=>fn()),this._onDoneFns=[])}onStart(fn){this._originalOnStartFns.push(fn),this._onStartFns.push(fn)}onDone(fn){this._originalOnDoneFns.push(fn),this._onDoneFns.push(fn)}onDestroy(fn){this._onDestroyFns.push(fn)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(fn=>fn()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(fn=>fn()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(position){this._position=this.totalTime?position*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(phaseName){const methods="start"==phaseName?this._onStartFns:this._onDoneFns;methods.forEach(fn=>fn()),methods.length=0}}class AnimationGroupPlayer{constructor(_players){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=_players;let doneCount=0,destroyCount=0,startCount=0;const total=this.players.length;0==total?queueMicrotask(()=>this._onFinish()):this.players.forEach(player=>{player.onDone(()=>{++doneCount==total&&this._onFinish()}),player.onDestroy(()=>{++destroyCount==total&&this._onDestroy()}),player.onStart(()=>{++startCount==total&&this._onStart()})}),this.totalTime=this.players.reduce((time,player)=>Math.max(time,player.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fn=>fn()),this._onDoneFns=[])}init(){this.players.forEach(player=>player.init())}onStart(fn){this._onStartFns.push(fn)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(fn=>fn()),this._onStartFns=[])}onDone(fn){this._onDoneFns.push(fn)}onDestroy(fn){this._onDestroyFns.push(fn)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(player=>player.play())}pause(){this.players.forEach(player=>player.pause())}restart(){this.players.forEach(player=>player.restart())}finish(){this._onFinish(),this.players.forEach(player=>player.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(player=>player.destroy()),this._onDestroyFns.forEach(fn=>fn()),this._onDestroyFns=[])}reset(){this.players.forEach(player=>player.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(p){const timeAtPosition=p*this.totalTime;this.players.forEach(player=>{const position=player.totalTime?Math.min(1,timeAtPosition/player.totalTime):1;player.setPosition(position)})}getPosition(){const longestPlayer=this.players.reduce((longestSoFar,player)=>null===longestSoFar||player.totalTime>longestSoFar.totalTime?player:longestSoFar,null);return null!=longestPlayer?longestPlayer.getPosition():0}beforeDestroy(){this.players.forEach(player=>{player.beforeDestroy&&player.beforeDestroy()})}triggerCallback(phaseName){const methods="start"==phaseName?this._onStartFns:this._onDoneFns;methods.forEach(fn=>fn()),methods.length=0}}function MatDialogContainer_ng_template_2_Template(rf,ctx){}class MatDialogConfig{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let MatDialogContainer=(()=>{class MatDialogContainer2 extends CdkDialogContainer{constructor(elementRef,focusTrapFactory,_document2,dialogConfig,interactivityChecker,ngZone,overlayRef,_animationMode,focusMonitor){super(elementRef,focusTrapFactory,_document2,dialogConfig,interactivityChecker,ngZone,overlayRef,focusMonitor),this._animationMode=_animationMode,this._animationStateChanged=new core_EventEmitter,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?parseCssTime(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?parseCssTime(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(TRANSITION_DURATION_PROPERTY,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add("mdc-dialog--opening","mdc-dialog--open")),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add("mdc-dialog--open"),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove("mdc-dialog--open"),this._animationsEnabled?(this._hostElement.style.setProperty(TRANSITION_DURATION_PROPERTY,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add("mdc-dialog--closing")),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(delta){this._actionSectionCount+=delta,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove("mdc-dialog--opening","mdc-dialog--closing")}_waitForAnimationToComplete(duration,callback){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(callback,duration)}_requestAnimationFrame(callback){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(callback):callback()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(totalTime){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(portal){const ref2=super.attachComponentPortal(portal);return ref2.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),ref2}static#_=this.\u0275fac=function(t){return new(t||MatDialogContainer2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(FocusTrapFactory),\u0275\u0275directiveInject(common_DOCUMENT,8),\u0275\u0275directiveInject(MatDialogConfig),\u0275\u0275directiveInject(InteractivityChecker),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(OverlayRef),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8),\u0275\u0275directiveInject(FocusMonitor))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatDialogContainer2,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(rf,ctx){2&rf&&(\u0275\u0275hostProperty("id",ctx._config.id),\u0275\u0275attribute("aria-modal",ctx._config.ariaModal)("role",ctx._config.role)("aria-labelledby",ctx._config.ariaLabel?null:ctx._ariaLabelledByQueue[0])("aria-label",ctx._config.ariaLabel)("aria-describedby",ctx._config.ariaDescribedBy||null),\u0275\u0275classProp("_mat-animation-noopable",!ctx._animationsEnabled)("mat-mdc-dialog-container-with-actions",ctx._actionSectionCount>0))},standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(rf,ctx){1&rf&&(\u0275\u0275elementStart(0,"div",0)(1,"div",1),\u0275\u0275template(2,MatDialogContainer_ng_template_2_Template,0,0,"ng-template",2),\u0275\u0275elementEnd()())},dependencies:[CdkPortalOutlet],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0;transform:scale(0.8)}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--closing .mdc-dialog__surface{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{opacity:1}.mdc-dialog--open .mdc-dialog__surface{transform:none}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition:opacity linear var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container .mdc-dialog__surface{transition:transform var(--mat-dialog-transition-duration, 0ms) 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container,.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__surface{transition:none}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-title{padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return MatDialogContainer2})();const TRANSITION_DURATION_PROPERTY="--mat-dialog-transition-duration";function parseCssTime(time){return null==time?null:"number"==typeof time?time:time.endsWith("ms")?coercion_coerceNumberProperty(time.substring(0,time.length-2)):time.endsWith("s")?1e3*coercion_coerceNumberProperty(time.substring(0,time.length-1)):"0"===time?0:null}var MatDialogState=function(MatDialogState2){return MatDialogState2[MatDialogState2.OPEN=0]="OPEN",MatDialogState2[MatDialogState2.CLOSING=1]="CLOSING",MatDialogState2[MatDialogState2.CLOSED=2]="CLOSED",MatDialogState2}(MatDialogState||{});class MatDialogRef{constructor(_ref,config2,_containerInstance){this._ref=_ref,this._containerInstance=_containerInstance,this._afterOpened=new Subject_Subject,this._beforeClosed=new Subject_Subject,this._state=MatDialogState.OPEN,this.disableClose=config2.disableClose,this.id=_ref.id,_ref.addPanelClass("mat-mdc-dialog-panel"),_containerInstance._animationStateChanged.pipe(filter_filter(event=>"opened"===event.state),take_take(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),_containerInstance._animationStateChanged.pipe(filter_filter(event=>"closed"===event.state),take_take(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),_ref.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),merge_merge(this.backdropClick(),this.keydownEvents().pipe(filter_filter(event=>27===event.keyCode&&!this.disableClose&&!keycodes_hasModifierKey(event)))).subscribe(event=>{this.disableClose||(event.preventDefault(),_closeDialogVia(this,"keydown"===event.type?"keyboard":"mouse"))})}close(dialogResult){this._result=dialogResult,this._containerInstance._animationStateChanged.pipe(filter_filter(event=>"closing"===event.state),take_take(1)).subscribe(event=>{this._beforeClosed.next(dialogResult),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),event.totalTime+100)}),this._state=MatDialogState.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(position){let strategy=this._ref.config.positionStrategy;return position&&(position.left||position.right)?position.left?strategy.left(position.left):strategy.right(position.right):strategy.centerHorizontally(),position&&(position.top||position.bottom)?position.top?strategy.top(position.top):strategy.bottom(position.bottom):strategy.centerVertically(),this._ref.updatePosition(),this}updateSize(width="",height=""){return this._ref.updateSize(width,height),this}addPanelClass(classes){return this._ref.addPanelClass(classes),this}removePanelClass(classes){return this._ref.removePanelClass(classes),this}getState(){return this._state}_finishDialogClose(){this._state=MatDialogState.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function _closeDialogVia(ref2,interactionType,result){return ref2._closeInteractionType=interactionType,ref2.close(result)}const MAT_DIALOG_DATA=new InjectionToken("MatMdcDialogData"),MAT_DIALOG_DEFAULT_OPTIONS=new InjectionToken("mat-mdc-dialog-default-options"),MAT_DIALOG_SCROLL_STRATEGY=new InjectionToken("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const overlay=core_inject(Overlay);return()=>overlay.scrollStrategies.block()}});let dialog_uniqueId=0,MatDialog=(()=>{class MatDialog2{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const parent=this._parentDialog;return parent?parent._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(_overlay,injector,location2,_defaultOptions,_scrollStrategy,_parentDialog,_overlayContainer,_animationMode){this._overlay=_overlay,this._defaultOptions=_defaultOptions,this._scrollStrategy=_scrollStrategy,this._parentDialog=_parentDialog,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Subject_Subject,this._afterOpenedAtThisLevel=new Subject_Subject,this.dialogConfigClass=MatDialogConfig,this.afterAllClosed=defer(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(startWith_startWith(void 0))),this._dialog=injector.get(Dialog),this._dialogRefConstructor=MatDialogRef,this._dialogContainerType=MatDialogContainer,this._dialogDataToken=MAT_DIALOG_DATA}open(componentOrTemplateRef,config2){let dialogRef;(config2={...this._defaultOptions||new MatDialogConfig,...config2}).id=config2.id||"mat-mdc-dialog-"+dialog_uniqueId++,config2.scrollStrategy=config2.scrollStrategy||this._scrollStrategy();const cdkRef=this._dialog.open(componentOrTemplateRef,{...config2,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:config2},{provide:DialogConfig,useValue:config2}]},templateContext:()=>({dialogRef}),providers:(ref2,cdkConfig,dialogContainer)=>(dialogRef=new this._dialogRefConstructor(ref2,config2,dialogContainer),dialogRef.updatePosition(config2?.position),[{provide:this._dialogContainerType,useValue:dialogContainer},{provide:this._dialogDataToken,useValue:cdkConfig.data},{provide:this._dialogRefConstructor,useValue:dialogRef}])});return dialogRef.componentRef=cdkRef.componentRef,dialogRef.componentInstance=cdkRef.componentInstance,this.openDialogs.push(dialogRef),this.afterOpened.next(dialogRef),dialogRef.afterClosed().subscribe(()=>{const index=this.openDialogs.indexOf(dialogRef);index>-1&&(this.openDialogs.splice(index,1),this.openDialogs.length||this._getAfterAllClosed().next())}),dialogRef}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(id){return this.openDialogs.find(dialog=>dialog.id===id)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(dialogs){let i=dialogs.length;for(;i--;)dialogs[i].close()}static#_=this.\u0275fac=function(t){return new(t||MatDialog2)(\u0275\u0275inject(Overlay),\u0275\u0275inject(core_Injector),\u0275\u0275inject(Location,8),\u0275\u0275inject(MAT_DIALOG_DEFAULT_OPTIONS,8),\u0275\u0275inject(MAT_DIALOG_SCROLL_STRATEGY),\u0275\u0275inject(MatDialog2,12),\u0275\u0275inject(OverlayContainer),\u0275\u0275inject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275prov=core_defineInjectable({token:MatDialog2,factory:MatDialog2.\u0275fac,providedIn:"root"})}return MatDialog2})(),dialogElementUid=0,MatDialogClose=(()=>{class MatDialogClose2{constructor(dialogRef,_elementRef,_dialog){this.dialogRef=dialogRef,this._elementRef=_elementRef,this._dialog=_dialog,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=getClosestDialog(this._elementRef,this._dialog.openDialogs))}ngOnChanges(changes){const proxiedChange=changes._matDialogClose||changes._matDialogCloseResult;proxiedChange&&(this.dialogResult=proxiedChange.currentValue)}_onButtonClick(event){_closeDialogVia(this.dialogRef,0===event.screenX&&0===event.screenY?"keyboard":"mouse",this.dialogResult)}static#_=this.\u0275fac=function(t){return new(t||MatDialogClose2)(\u0275\u0275directiveInject(MatDialogRef,8),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(MatDialog))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatDialogClose2,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(rf,ctx){1&rf&&\u0275\u0275listener("click",function($event){return ctx._onButtonClick($event)}),2&rf&&\u0275\u0275attribute("aria-label",ctx.ariaLabel||null)("type",ctx.type)},inputs:{ariaLabel:[InputFlags.None,"aria-label","ariaLabel"],type:"type",dialogResult:[InputFlags.None,"mat-dialog-close","dialogResult"],_matDialogClose:[InputFlags.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[\u0275\u0275NgOnChangesFeature]})}return MatDialogClose2})(),MatDialogLayoutSection=(()=>{class MatDialogLayoutSection2{constructor(_dialogRef,_elementRef,_dialog){this._dialogRef=_dialogRef,this._elementRef=_elementRef,this._dialog=_dialog}ngOnInit(){this._dialogRef||(this._dialogRef=getClosestDialog(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static#_=this.\u0275fac=function(t){return new(t||MatDialogLayoutSection2)(\u0275\u0275directiveInject(MatDialogRef,8),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(MatDialog))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatDialogLayoutSection2,standalone:!0})}return MatDialogLayoutSection2})(),MatDialogTitle=(()=>{class MatDialogTitle2 extends MatDialogLayoutSection{constructor(){super(...arguments),this.id="mat-mdc-dialog-title-"+dialogElementUid++}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static#_=this.\u0275fac=(()=>{let \u0275MatDialogTitle_BaseFactory;return function(t){return(\u0275MatDialogTitle_BaseFactory||(\u0275MatDialogTitle_BaseFactory=\u0275\u0275getInheritedFactory(MatDialogTitle2)))(t||MatDialogTitle2)}})();static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatDialogTitle2,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275hostProperty("id",ctx.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[\u0275\u0275InheritDefinitionFeature]})}return MatDialogTitle2})(),MatDialogContent=(()=>{class MatDialogContent2{static#_=this.\u0275fac=function(t){return new(t||MatDialogContent2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatDialogContent2,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0})}return MatDialogContent2})();function getClosestDialog(element,openDialogs){let parent=element.nativeElement.parentElement;for(;parent&&!parent.classList.contains("mat-mdc-dialog-container");)parent=parent.parentElement;return parent?openDialogs.find(dialog=>dialog.id===parent.id):null}let MatDialogModule=(()=>{class MatDialogModule2{static#_=this.\u0275fac=function(t){return new(t||MatDialogModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatDialogModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[MatDialog],imports:[DialogModule,OverlayModule,PortalModule,MatCommonModule,MatCommonModule]})}return MatDialogModule2})();function throwError_throwError(errorOrErrorFactory,scheduler){const errorFactory=isFunction(errorOrErrorFactory)?errorOrErrorFactory:()=>errorOrErrorFactory,init2=subscriber=>subscriber.error(errorFactory());return new Observable_Observable(scheduler?subscriber=>scheduler.schedule(init2,0,subscriber):init2)}function catchError_catchError(selector){return operate((source,subscriber)=>{let handledResult,innerSub=null,syncUnsub=!1;innerSub=source.subscribe(createOperatorSubscriber(subscriber,void 0,void 0,err=>{handledResult=innerFrom(selector(err,catchError_catchError(selector)(source))),innerSub?(innerSub.unsubscribe(),innerSub=null,handledResult.subscribe(subscriber)):syncUnsub=!0})),syncUnsub&&(innerSub.unsubscribe(),innerSub=null,handledResult.subscribe(subscriber))})}function handleReset(reset,on2,...args){if(!0===on2)return void reset();if(!1===on2)return;const onSubscriber=new SafeSubscriber({next:()=>{onSubscriber.unsubscribe(),reset()}});return innerFrom(on2(...args)).subscribe(onSubscriber)}let MatIconModule=(()=>{class MatIconModule2{static#_=this.\u0275fac=function(t){return new(t||MatIconModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatIconModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[MatCommonModule,MatCommonModule]})}return MatIconModule2})();const progress_spinner_c0=["determinateSpinner"];function MatProgressSpinner_ng_template_0_Template(rf,ctx){if(1&rf&&(\u0275\u0275namespaceSVG(),\u0275\u0275elementStart(0,"svg",11),\u0275\u0275element(1,"circle",12),\u0275\u0275elementEnd()),2&rf){const ctx_r0=\u0275\u0275nextContext();\u0275\u0275attribute("viewBox",ctx_r0._viewBox()),\u0275\u0275advance(),\u0275\u0275styleProp("stroke-dasharray",ctx_r0._strokeCircumference(),"px")("stroke-dashoffset",ctx_r0._strokeCircumference()/2,"px")("stroke-width",ctx_r0._circleStrokeWidth(),"%"),\u0275\u0275attribute("r",ctx_r0._circleRadius())}}const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS=new InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(){return{diameter:BASE_SIZE}}}),BASE_SIZE=100;let MatProgressSpinner=(()=>{class MatProgressSpinner2{get color(){return this._color||this._defaultColor}set color(value){this._color=value}constructor(_elementRef,animationMode,defaults2){this._elementRef=_elementRef,this._defaultColor="primary",this._value=0,this._diameter=BASE_SIZE,this._noopAnimations="NoopAnimations"===animationMode&&!!defaults2&&!defaults2._forceAnimations,this.mode="mat-spinner"===_elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",defaults2&&(defaults2.color&&(this.color=this._defaultColor=defaults2.color),defaults2.diameter&&(this.diameter=defaults2.diameter),defaults2.strokeWidth&&(this.strokeWidth=defaults2.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(v){this._value=Math.max(0,Math.min(100,v||0))}get diameter(){return this._diameter}set diameter(size){this._diameter=size||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(value){this._strokeWidth=value||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const viewBox=2*this._circleRadius()+this.strokeWidth;return`0 0 ${viewBox} ${viewBox}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#_=this.\u0275fac=function(t){return new(t||MatProgressSpinner2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8),\u0275\u0275directiveInject(MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatProgressSpinner2,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(progress_spinner_c0,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._determinateCircle=_t.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(rf,ctx){2&rf&&(\u0275\u0275attribute("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===ctx.mode?ctx.value:null)("mode",ctx.mode),\u0275\u0275classMap("mat-"+ctx.color),\u0275\u0275styleProp("width",ctx.diameter,"px")("height",ctx.diameter,"px")("--mdc-circular-progress-size",ctx.diameter+"px")("--mdc-circular-progress-active-indicator-width",ctx.diameter+"px"),\u0275\u0275classProp("_mat-animation-noopable",ctx._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===ctx.mode))},inputs:{color:"color",mode:"mode",value:[InputFlags.HasDecoratorInputTransform,"value","value",core_numberAttribute],diameter:[InputFlags.HasDecoratorInputTransform,"diameter","diameter",core_numberAttribute],strokeWidth:[InputFlags.HasDecoratorInputTransform,"strokeWidth","strokeWidth",core_numberAttribute]},exportAs:["matProgressSpinner"],standalone:!0,features:[\u0275\u0275InputTransformsFeature,\u0275\u0275StandaloneFeature],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(rf,ctx){if(1&rf&&(\u0275\u0275template(0,MatProgressSpinner_ng_template_0_Template,2,8,"ng-template",null,0,\u0275\u0275templateRefExtractor),\u0275\u0275elementStart(2,"div",2,1),\u0275\u0275namespaceSVG(),\u0275\u0275elementStart(4,"svg",3),\u0275\u0275element(5,"circle",4),\u0275\u0275elementEnd()(),\u0275\u0275namespaceHTML(),\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),\u0275\u0275elementContainer(9,8),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"div",9),\u0275\u0275elementContainer(11,8),\u0275\u0275elementEnd(),\u0275\u0275elementStart(12,"div",10),\u0275\u0275elementContainer(13,8),\u0275\u0275elementEnd()()()),2&rf){const circle_r2=\u0275\u0275reference(1);\u0275\u0275advance(4),\u0275\u0275attribute("viewBox",ctx._viewBox()),\u0275\u0275advance(),\u0275\u0275styleProp("stroke-dasharray",ctx._strokeCircumference(),"px")("stroke-dashoffset",ctx._strokeDashOffset(),"px")("stroke-width",ctx._circleStrokeWidth(),"%"),\u0275\u0275attribute("r",ctx._circleRadius()),\u0275\u0275advance(4),\u0275\u0275property("ngTemplateOutlet",circle_r2),\u0275\u0275advance(2),\u0275\u0275property("ngTemplateOutlet",circle_r2),\u0275\u0275advance(2),\u0275\u0275property("ngTemplateOutlet",circle_r2)}},dependencies:[NgTemplateOutlet],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return MatProgressSpinner2})(),MatProgressSpinnerModule=(()=>{class MatProgressSpinnerModule2{static#_=this.\u0275fac=function(t){return new(t||MatProgressSpinnerModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatProgressSpinnerModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[common_CommonModule,MatCommonModule]})}return MatProgressSpinnerModule2})();function SimpleSnackBar_Conditional_2_Template(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"button",2),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(\u0275\u0275nextContext().action())}),\u0275\u0275text(2),\u0275\u0275elementEnd()()}if(2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",ctx_r1.data.action," ")}}const snack_bar_c0=["label"];function MatSnackBarContainer_ng_template_4_Template(rf,ctx){}const MAX_TIMEOUT=Math.pow(2,31)-1;class MatSnackBarRef{constructor(containerInstance,_overlayRef){this._overlayRef=_overlayRef,this._afterDismissed=new Subject_Subject,this._afterOpened=new Subject_Subject,this._onAction=new Subject_Subject,this._dismissedByAction=!1,this.containerInstance=containerInstance,containerInstance._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(duration){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(duration,MAX_TIMEOUT))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const MAT_SNACK_BAR_DATA=new InjectionToken("MatSnackBarData");class MatSnackBarConfig{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let MatSnackBarLabel=(()=>{class MatSnackBarLabel2{static#_=this.\u0275fac=function(t){return new(t||MatSnackBarLabel2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatSnackBarLabel2,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}return MatSnackBarLabel2})(),MatSnackBarActions=(()=>{class MatSnackBarActions2{static#_=this.\u0275fac=function(t){return new(t||MatSnackBarActions2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatSnackBarActions2,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}return MatSnackBarActions2})(),MatSnackBarAction=(()=>{class MatSnackBarAction2{static#_=this.\u0275fac=function(t){return new(t||MatSnackBarAction2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatSnackBarAction2,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}return MatSnackBarAction2})(),SimpleSnackBar=(()=>{class SimpleSnackBar2{constructor(snackBarRef,data){this.snackBarRef=snackBarRef,this.data=data}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#_=this.\u0275fac=function(t){return new(t||SimpleSnackBar2)(\u0275\u0275directiveInject(MatSnackBarRef),\u0275\u0275directiveInject(MAT_SNACK_BAR_DATA))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:SimpleSnackBar2,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(rf,ctx){1&rf&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275template(2,SimpleSnackBar_Conditional_2_Template,3,1,"div",1)),2&rf&&(\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx.data.message,"\n"),\u0275\u0275advance(),\u0275\u0275conditional(2,ctx.hasAction?2:-1))},dependencies:[MatButton,MatSnackBarLabel,MatSnackBarActions,MatSnackBarAction],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return SimpleSnackBar2})();const matSnackBarAnimations={snackBarState:animations_trigger("state",[state("void, hidden",animations_style({transform:"scale(0.8)",opacity:0})),state("visible",animations_style({transform:"scale(1)",opacity:1})),animations_transition("* => visible",animations_animate("150ms cubic-bezier(0, 0, 0.2, 1)")),animations_transition("* => void, * => hidden",animations_animate("75ms cubic-bezier(0.4, 0.0, 1, 1)",animations_style({opacity:0})))])};let snack_bar_uniqueId=0,MatSnackBarContainer=(()=>{class MatSnackBarContainer2 extends BasePortalOutlet{constructor(_ngZone,_elementRef,_changeDetectorRef,_platform,snackBarConfig){super(),this._ngZone=_ngZone,this._elementRef=_elementRef,this._changeDetectorRef=_changeDetectorRef,this._platform=_platform,this.snackBarConfig=snackBarConfig,this._document=core_inject(common_DOCUMENT),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Subject_Subject,this._onExit=new Subject_Subject,this._onEnter=new Subject_Subject,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+snack_bar_uniqueId++,this.attachDomPortal=portal=>{this._assertNotAttached();const result=this._portalOutlet.attachDomPortal(portal);return this._afterPortalAttached(),result},this._live="assertive"!==snackBarConfig.politeness||snackBarConfig.announcementMessage?"off"===snackBarConfig.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(portal){this._assertNotAttached();const result=this._portalOutlet.attachComponentPortal(portal);return this._afterPortalAttached(),result}attachTemplatePortal(portal){this._assertNotAttached();const result=this._portalOutlet.attachTemplatePortal(portal);return this._afterPortalAttached(),result}onAnimationEnd(event){const{fromState,toState}=event;if(("void"===toState&&"void"!==fromState||"hidden"===toState)&&this._completeExit(),"visible"===toState){const onEnter2=this._onEnter;this._ngZone.run(()=>{onEnter2.next(),onEnter2.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const element=this._elementRef.nativeElement,panelClasses=this.snackBarConfig.panelClass;panelClasses&&(Array.isArray(panelClasses)?panelClasses.forEach(cssClass=>element.classList.add(cssClass)):element.classList.add(panelClasses)),this._exposeToModals();const label=this._label.nativeElement;label.classList.toggle("mdc-snackbar__label",!label.querySelector(".mdc-snackbar__label"))}_exposeToModals(){const id=this._liveElementId,modals=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let i=0;i{const ariaOwns=modal.getAttribute("aria-owns");if(ariaOwns){const newValue=ariaOwns.replace(this._liveElementId,"").trim();newValue.length>0?modal.setAttribute("aria-owns",newValue):modal.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const inertElement=this._elementRef.nativeElement.querySelector("[aria-hidden]"),liveElement=this._elementRef.nativeElement.querySelector("[aria-live]");if(inertElement&&liveElement){let focusedElement=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&inertElement.contains(document.activeElement)&&(focusedElement=document.activeElement),inertElement.removeAttribute("aria-hidden"),liveElement.appendChild(inertElement),focusedElement?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#_=this.\u0275fac=function(t){return new(t||MatSnackBarContainer2)(\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(MatSnackBarConfig))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatSnackBarContainer2,selectors:[["mat-snack-bar-container"]],viewQuery:function(rf,ctx){if(1&rf&&(\u0275\u0275viewQuery(CdkPortalOutlet,7),\u0275\u0275viewQuery(snack_bar_c0,7)),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._portalOutlet=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._label=_t.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(rf,ctx){1&rf&&\u0275\u0275syntheticHostListener("@state.done",function($event){return ctx.onAnimationEnd($event)}),2&rf&&\u0275\u0275syntheticHostProperty("@state",ctx._animationState)},standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(rf,ctx){1&rf&&(\u0275\u0275elementStart(0,"div",1)(1,"div",2,0)(3,"div",3),\u0275\u0275template(4,MatSnackBarContainer_ng_template_4_Template,0,0,"ng-template",4),\u0275\u0275elementEnd(),\u0275\u0275element(5,"div"),\u0275\u0275elementEnd()()),2&rf&&(\u0275\u0275advance(5),\u0275\u0275attribute("aria-live",ctx._live)("role",ctx._role)("id",ctx._liveElementId))},dependencies:[CdkPortalOutlet],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[matSnackBarAnimations.snackBarState]}})}return MatSnackBarContainer2})();const MAT_SNACK_BAR_DEFAULT_OPTIONS=new InjectionToken("mat-snack-bar-default-options",{providedIn:"root",factory:function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(){return new MatSnackBarConfig}});let MatSnackBar=(()=>{class MatSnackBar2{get _openedSnackBarRef(){const parent=this._parentSnackBar;return parent?parent._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(value){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=value:this._snackBarRefAtThisLevel=value}constructor(_overlay,_live,_injector,_breakpointObserver,_parentSnackBar,_defaultConfig){this._overlay=_overlay,this._live=_live,this._injector=_injector,this._breakpointObserver=_breakpointObserver,this._parentSnackBar=_parentSnackBar,this._defaultConfig=_defaultConfig,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=SimpleSnackBar,this.snackBarContainerComponent=MatSnackBarContainer,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(component,config2){return this._attach(component,config2)}openFromTemplate(template,config2){return this._attach(template,config2)}open(message,action="",config2){const _config={...this._defaultConfig,...config2};return _config.data={message,action},_config.announcementMessage===message&&(_config.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_config)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(overlayRef,config2){const injector=core_Injector.create({parent:config2&&config2.viewContainerRef&&config2.viewContainerRef.injector||this._injector,providers:[{provide:MatSnackBarConfig,useValue:config2}]}),containerPortal=new ComponentPortal(this.snackBarContainerComponent,config2.viewContainerRef,injector),containerRef=overlayRef.attach(containerPortal);return containerRef.instance.snackBarConfig=config2,containerRef.instance}_attach(content,userConfig){const config2={...new MatSnackBarConfig,...this._defaultConfig,...userConfig},overlayRef=this._createOverlay(config2),container=this._attachSnackBarContainer(overlayRef,config2),snackBarRef=new MatSnackBarRef(container,overlayRef);if(content instanceof core_TemplateRef){const portal=new portal_TemplatePortal(content,null,{$implicit:config2.data,snackBarRef});snackBarRef.instance=container.attachTemplatePortal(portal)}else{const injector=this._createInjector(config2,snackBarRef),portal=new ComponentPortal(content,void 0,injector),contentRef=container.attachComponentPortal(portal);snackBarRef.instance=contentRef.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(takeUntil_takeUntil(overlayRef.detachments())).subscribe(state2=>{overlayRef.overlayElement.classList.toggle(this.handsetCssClass,state2.matches)}),config2.announcementMessage&&container._onAnnounce.subscribe(()=>{this._live.announce(config2.announcementMessage,config2.politeness)}),this._animateSnackBar(snackBarRef,config2),this._openedSnackBarRef=snackBarRef,this._openedSnackBarRef}_animateSnackBar(snackBarRef,config2){snackBarRef.afterDismissed().subscribe(()=>{this._openedSnackBarRef==snackBarRef&&(this._openedSnackBarRef=null),config2.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{snackBarRef.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):snackBarRef.containerInstance.enter(),config2.duration&&config2.duration>0&&snackBarRef.afterOpened().subscribe(()=>snackBarRef._dismissAfter(config2.duration))}_createOverlay(config2){const overlayConfig=new OverlayConfig;overlayConfig.direction=config2.direction;let positionStrategy=this._overlay.position().global();const isRtl="rtl"===config2.direction,isLeft="left"===config2.horizontalPosition||"start"===config2.horizontalPosition&&!isRtl||"end"===config2.horizontalPosition&&isRtl,isRight=!isLeft&&"center"!==config2.horizontalPosition;return isLeft?positionStrategy.left("0"):isRight?positionStrategy.right("0"):positionStrategy.centerHorizontally(),"top"===config2.verticalPosition?positionStrategy.top("0"):positionStrategy.bottom("0"),overlayConfig.positionStrategy=positionStrategy,this._overlay.create(overlayConfig)}_createInjector(config2,snackBarRef){return core_Injector.create({parent:config2&&config2.viewContainerRef&&config2.viewContainerRef.injector||this._injector,providers:[{provide:MatSnackBarRef,useValue:snackBarRef},{provide:MAT_SNACK_BAR_DATA,useValue:config2.data}]})}static#_=this.\u0275fac=function(t){return new(t||MatSnackBar2)(\u0275\u0275inject(Overlay),\u0275\u0275inject(LiveAnnouncer),\u0275\u0275inject(core_Injector),\u0275\u0275inject(BreakpointObserver),\u0275\u0275inject(MatSnackBar2,12),\u0275\u0275inject(MAT_SNACK_BAR_DEFAULT_OPTIONS))};static#_2=this.\u0275prov=core_defineInjectable({token:MatSnackBar2,factory:MatSnackBar2.\u0275fac,providedIn:"root"})}return MatSnackBar2})(),MatSnackBarModule=(()=>{class MatSnackBarModule2{static#_=this.\u0275fac=function(t){return new(t||MatSnackBarModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatSnackBarModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[MatSnackBar],imports:[OverlayModule,PortalModule,MatButtonModule,MatCommonModule,SimpleSnackBar,MatCommonModule]})}return MatSnackBarModule2})();const tabs_c0=["*"];function MatTab_ng_template_0_Template(rf,ctx){1&rf&&\u0275\u0275projection(0)}const tabs_c1=["tabListContainer"],tabs_c2=["tabList"],tabs_c3=["tabListInner"],tabs_c4=["nextPaginator"],tabs_c5=["previousPaginator"],tabs_c6=a0=>({animationDuration:a0}),tabs_c7=(a0,a1)=>({value:a0,params:a1});function MatTabBody_ng_template_2_Template(rf,ctx){}const tabs_c8=["tabBodyWrapper"],tabs_c9=["tabHeader"];function MatTabGroup_For_3_Conditional_6_ng_template_0_Template(rf,ctx){}function MatTabGroup_For_3_Conditional_6_Template(rf,ctx){1&rf&&\u0275\u0275template(0,MatTabGroup_For_3_Conditional_6_ng_template_0_Template,0,0,"ng-template",12),2&rf&&\u0275\u0275property("cdkPortalOutlet",\u0275\u0275nextContext().$implicit.templateLabel)}function MatTabGroup_For_3_Conditional_7_Template(rf,ctx){1&rf&&\u0275\u0275text(0),2&rf&&\u0275\u0275textInterpolate(\u0275\u0275nextContext().$implicit.textLabel)}function MatTabGroup_For_3_Template(rf,ctx){if(1&rf){const _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",7,2),\u0275\u0275listener("click",function(){const ctx_r2=\u0275\u0275restoreView(_r2),tab_r4=ctx_r2.$implicit,i_r5=ctx_r2.$index,ctx_r5=\u0275\u0275nextContext(),tabHeader_r7=\u0275\u0275reference(1);return \u0275\u0275resetView(ctx_r5._handleClick(tab_r4,tabHeader_r7,i_r5))})("cdkFocusChange",function($event){const i_r5=\u0275\u0275restoreView(_r2).$index;return \u0275\u0275resetView(\u0275\u0275nextContext()._tabFocusChanged($event,i_r5))}),\u0275\u0275element(2,"span",8)(3,"div",9),\u0275\u0275elementStart(4,"span",10)(5,"span",11),\u0275\u0275template(6,MatTabGroup_For_3_Conditional_6_Template,1,1,null,12)(7,MatTabGroup_For_3_Conditional_7_Template,1,1),\u0275\u0275elementEnd()()()}if(2&rf){const tab_r4=ctx.$implicit,i_r5=ctx.$index,tabNode_r8=\u0275\u0275reference(1),ctx_r5=\u0275\u0275nextContext();\u0275\u0275classMap(tab_r4.labelClass),\u0275\u0275classProp("mdc-tab--active",ctx_r5.selectedIndex===i_r5),\u0275\u0275property("id",ctx_r5._getTabLabelId(i_r5))("disabled",tab_r4.disabled)("fitInkBarToContent",ctx_r5.fitInkBarToContent),\u0275\u0275attribute("tabIndex",ctx_r5._getTabIndex(i_r5))("aria-posinset",i_r5+1)("aria-setsize",ctx_r5._tabs.length)("aria-controls",ctx_r5._getTabContentId(i_r5))("aria-selected",ctx_r5.selectedIndex===i_r5)("aria-label",tab_r4.ariaLabel||null)("aria-labelledby",!tab_r4.ariaLabel&&tab_r4.ariaLabelledby?tab_r4.ariaLabelledby:null),\u0275\u0275advance(3),\u0275\u0275property("matRippleTrigger",tabNode_r8)("matRippleDisabled",tab_r4.disabled||ctx_r5.disableRipple),\u0275\u0275advance(3),\u0275\u0275conditional(6,tab_r4.templateLabel?6:7)}}function MatTabGroup_Conditional_4_Template(rf,ctx){1&rf&&\u0275\u0275projection(0)}function MatTabGroup_For_8_Template(rf,ctx){if(1&rf){const _r9=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-tab-body",13),\u0275\u0275listener("_onCentered",function(){return \u0275\u0275restoreView(_r9),\u0275\u0275resetView(\u0275\u0275nextContext()._removeTabBodyWrapperHeight())})("_onCentering",function($event){return \u0275\u0275restoreView(_r9),\u0275\u0275resetView(\u0275\u0275nextContext()._setTabBodyWrapperHeight($event))}),\u0275\u0275elementEnd()}if(2&rf){const tab_r10=ctx.$implicit,i_r11=ctx.$index,ctx_r5=\u0275\u0275nextContext();\u0275\u0275classMap(tab_r10.bodyClass),\u0275\u0275classProp("mat-mdc-tab-body-active",ctx_r5.selectedIndex===i_r11),\u0275\u0275property("id",ctx_r5._getTabContentId(i_r11))("content",tab_r10.content)("position",tab_r10.position)("origin",tab_r10.origin)("animationDuration",ctx_r5.animationDuration)("preserveContent",ctx_r5.preserveContent),\u0275\u0275attribute("tabindex",null!=ctx_r5.contentTabIndex&&ctx_r5.selectedIndex===i_r11?ctx_r5.contentTabIndex:null)("aria-labelledby",ctx_r5._getTabLabelId(i_r11))("aria-hidden",ctx_r5.selectedIndex!==i_r11)}}const MAT_TAB_CONTENT=new InjectionToken("MatTabContent");let MatTabContent=(()=>{class MatTabContent2{constructor(template){this.template=template}static#_=this.\u0275fac=function(t){return new(t||MatTabContent2)(\u0275\u0275directiveInject(core_TemplateRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTabContent2,selectors:[["","matTabContent",""]],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:MAT_TAB_CONTENT,useExisting:MatTabContent2}])]})}return MatTabContent2})();const MAT_TAB_LABEL=new InjectionToken("MatTabLabel"),MAT_TAB=new InjectionToken("MAT_TAB");let MatTabLabel=(()=>{class MatTabLabel2 extends CdkPortal{constructor(templateRef,viewContainerRef,_closestTab){super(templateRef,viewContainerRef),this._closestTab=_closestTab}static#_=this.\u0275fac=function(t){return new(t||MatTabLabel2)(\u0275\u0275directiveInject(core_TemplateRef),\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(MAT_TAB,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTabLabel2,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:MAT_TAB_LABEL,useExisting:MatTabLabel2}]),\u0275\u0275InheritDefinitionFeature]})}return MatTabLabel2})();const MAT_TAB_GROUP=new InjectionToken("MAT_TAB_GROUP");let MatTab=(()=>{class MatTab2{get templateLabel(){return this._templateLabel}set templateLabel(value){this._setTemplateLabelInput(value)}get content(){return this._contentPortal}constructor(_viewContainerRef,_closestTabGroup){this._viewContainerRef=_viewContainerRef,this._closestTabGroup=_closestTabGroup,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new Subject_Subject,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(changes){(changes.hasOwnProperty("textLabel")||changes.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new portal_TemplatePortal(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(value){value&&value._closestTab===this&&(this._templateLabel=value)}static#_=this.\u0275fac=function(t){return new(t||MatTab2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(MAT_TAB_GROUP,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatTab2,selectors:[["mat-tab"]],contentQueries:function(rf,ctx,dirIndex){if(1&rf&&(\u0275\u0275contentQuery(dirIndex,MatTabLabel,5),\u0275\u0275contentQuery(dirIndex,MatTabContent,7,core_TemplateRef)),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.templateLabel=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._explicitContent=_t.first)}},viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(core_TemplateRef,7),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._implicitContent=_t.first)}},hostAttrs:["hidden",""],inputs:{disabled:[InputFlags.HasDecoratorInputTransform,"disabled","disabled",core_booleanAttribute],textLabel:[InputFlags.None,"label","textLabel"],ariaLabel:[InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[InputFlags.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:MAT_TAB,useExisting:MatTab2}]),\u0275\u0275InputTransformsFeature,\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:tabs_c0,decls:1,vars:0,template:function(rf,ctx){1&rf&&(\u0275\u0275projectionDef(),\u0275\u0275template(0,MatTab_ng_template_0_Template,1,0,"ng-template"))},encapsulation:2})}return MatTab2})();const ACTIVE_CLASS="mdc-tab-indicator--active";class MatInkBar{constructor(_items){this._items=_items}hide(){this._items.forEach(item=>item.deactivateInkBar())}alignToElement(element){const correspondingItem=this._items.find(item=>item.elementRef.nativeElement===element),currentItem=this._currentItem;if(correspondingItem!==currentItem&&(currentItem?.deactivateInkBar(),correspondingItem)){const domRect=currentItem?.elementRef.nativeElement.getBoundingClientRect?.();correspondingItem.activateInkBar(domRect),this._currentItem=correspondingItem}}}let InkBarItem=(()=>{class InkBarItem2{constructor(){this._elementRef=core_inject(core_ElementRef),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(newValue){this._fitToContent!==newValue&&(this._fitToContent=newValue,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(previousIndicatorClientRect){const element=this._elementRef.nativeElement;if(!previousIndicatorClientRect||!element.getBoundingClientRect||!this._inkBarContentElement)return void element.classList.add(ACTIVE_CLASS);const currentClientRect=element.getBoundingClientRect(),widthDelta=previousIndicatorClientRect.width/currentClientRect.width,xPosition=previousIndicatorClientRect.left-currentClientRect.left;element.classList.add("mdc-tab-indicator--no-transition"),this._inkBarContentElement.style.setProperty("transform",`translateX(${xPosition}px) scaleX(${widthDelta})`),element.getBoundingClientRect(),element.classList.remove("mdc-tab-indicator--no-transition"),element.classList.add(ACTIVE_CLASS),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ACTIVE_CLASS)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const documentNode=this._elementRef.nativeElement.ownerDocument||document,inkBarElement=this._inkBarElement=documentNode.createElement("span"),inkBarContentElement=this._inkBarContentElement=documentNode.createElement("span");inkBarElement.className="mdc-tab-indicator",inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#_=this.\u0275fac=function(t){return new(t||InkBarItem2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:InkBarItem2,inputs:{fitInkBarToContent:[InputFlags.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",core_booleanAttribute]},features:[\u0275\u0275InputTransformsFeature]})}return InkBarItem2})(),MatTabLabelWrapper=(()=>{class MatTabLabelWrapper2 extends InkBarItem{constructor(elementRef){super(),this.elementRef=elementRef,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#_=this.\u0275fac=function(t){return new(t||MatTabLabelWrapper2)(\u0275\u0275directiveInject(core_ElementRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTabLabelWrapper2,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(rf,ctx){2&rf&&(\u0275\u0275attribute("aria-disabled",!!ctx.disabled),\u0275\u0275classProp("mat-mdc-tab-disabled",ctx.disabled))},inputs:{disabled:[InputFlags.HasDecoratorInputTransform,"disabled","disabled",core_booleanAttribute]},standalone:!0,features:[\u0275\u0275InputTransformsFeature,\u0275\u0275InheritDefinitionFeature]})}return MatTabLabelWrapper2})();const passiveEventListenerOptions=normalizePassiveListenerOptions({passive:!0});let MatPaginatedTabHeader=(()=>{class MatPaginatedTabHeader2{get selectedIndex(){return this._selectedIndex}set selectedIndex(v){const value=isNaN(v)?0:v;this._selectedIndex!=value&&(this._selectedIndexChanged=!0,this._selectedIndex=value,this._keyManager&&this._keyManager.updateActiveItem(value))}constructor(_elementRef,_changeDetectorRef,_viewportRuler,_dir,_ngZone,_platform,_animationMode){this._elementRef=_elementRef,this._changeDetectorRef=_changeDetectorRef,this._viewportRuler=_viewportRuler,this._dir=_dir,this._ngZone=_ngZone,this._platform=_platform,this._animationMode=_animationMode,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Subject_Subject,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Subject_Subject,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new core_EventEmitter,this.indexFocused=new core_EventEmitter,_ngZone.runOutsideAngular(()=>{fromEvent_fromEvent(_elementRef.nativeElement,"mouseleave").pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){fromEvent_fromEvent(this._previousPaginator.nativeElement,"touchstart",passiveEventListenerOptions).pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),fromEvent_fromEvent(this._nextPaginator.nativeElement,"touchstart",passiveEventListenerOptions).pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const dirChange=this._dir?this._dir.change:of_of("ltr"),resize=this._viewportRuler.change(150),realign=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new FocusKeyManager(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(take_take(1)).subscribe(realign),merge_merge(dirChange,resize,this._items.changes,this._itemsResized()).pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),realign()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(newFocusIndex=>{this.indexFocused.emit(newFocusIndex),this._setTabFocus(newFocusIndex)})}_itemsResized(){return"function"!=typeof ResizeObserver?EMPTY:this._items.changes.pipe(startWith_startWith(this._items),switchMap_switchMap(tabItems=>new Observable_Observable(observer=>this._ngZone.runOutsideAngular(()=>{const resizeObserver=new ResizeObserver(entries=>observer.next(entries));return tabItems.forEach(item=>resizeObserver.observe(item.elementRef.nativeElement)),()=>{resizeObserver.disconnect()}}))),skip(1),filter_filter(entries=>entries.some(e2=>e2.contentRect.width>0&&e2.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(event){if(!keycodes_hasModifierKey(event))switch(event.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const item=this._items.get(this.focusIndex);item&&!item.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(event))}break;default:this._keyManager.onKeydown(event)}}_onContentChanges(){const textContent=this._elementRef.nativeElement.textContent;textContent!==this._currentTextContent&&(this._currentTextContent=textContent||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(value){!this._isValidIndex(value)||this.focusIndex===value||!this._keyManager||this._keyManager.setActiveItem(value)}_isValidIndex(index){return!this._items||!!this._items.toArray()[index]}_setTabFocus(tabIndex){if(this._showPaginationControls&&this._scrollToLabel(tabIndex),this._items&&this._items.length){this._items.toArray()[tabIndex].focus();const containerEl=this._tabListContainer.nativeElement;containerEl.scrollLeft="ltr"==this._getLayoutDirection()?0:containerEl.scrollWidth-containerEl.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const scrollDistance=this.scrollDistance,translateX="ltr"===this._getLayoutDirection()?-scrollDistance:scrollDistance;this._tabList.nativeElement.style.transform=`translateX(${Math.round(translateX)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(value){this._scrollTo(value)}_scrollHeader(direction){return this._scrollTo(this._scrollDistance+("before"==direction?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(direction){this._stopInterval(),this._scrollHeader(direction)}_scrollToLabel(labelIndex){if(this.disablePagination)return;const selectedLabel=this._items?this._items.toArray()[labelIndex]:null;if(!selectedLabel)return;const viewLength=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft,offsetWidth}=selectedLabel.elementRef.nativeElement;let labelBeforePos,labelAfterPos;"ltr"==this._getLayoutDirection()?(labelBeforePos=offsetLeft,labelAfterPos=labelBeforePos+offsetWidth):(labelAfterPos=this._tabListInner.nativeElement.offsetWidth-offsetLeft,labelBeforePos=labelAfterPos-offsetWidth);const beforeVisiblePos=this.scrollDistance,afterVisiblePos=this.scrollDistance+viewLength;labelBeforePosafterVisiblePos&&(this.scrollDistance+=Math.min(labelAfterPos-afterVisiblePos,labelBeforePos-beforeVisiblePos))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const isEnabled=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;isEnabled||(this.scrollDistance=0),isEnabled!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=isEnabled}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const selectedItem=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,selectedLabelWrapper=selectedItem?selectedItem.elementRef.nativeElement:null;selectedLabelWrapper?this._inkBar.alignToElement(selectedLabelWrapper):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(direction,mouseEvent){mouseEvent&&null!=mouseEvent.button&&0!==mouseEvent.button||(this._stopInterval(),timer_timer(650,100).pipe(takeUntil_takeUntil(merge_merge(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance,distance}=this._scrollHeader(direction);(0===distance||distance>=maxScrollDistance)&&this._stopInterval()}))}_scrollTo(position){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const maxScrollDistance=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(maxScrollDistance,position)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance,distance:this._scrollDistance}}static#_=this.\u0275fac=function(t){return new(t||MatPaginatedTabHeader2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(ViewportRuler),\u0275\u0275directiveInject(Directionality,8),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatPaginatedTabHeader2,inputs:{disablePagination:[InputFlags.HasDecoratorInputTransform,"disablePagination","disablePagination",core_booleanAttribute],selectedIndex:[InputFlags.HasDecoratorInputTransform,"selectedIndex","selectedIndex",core_numberAttribute]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[\u0275\u0275InputTransformsFeature]})}return MatPaginatedTabHeader2})(),MatTabHeader=(()=>{class MatTabHeader2 extends MatPaginatedTabHeader{constructor(elementRef,changeDetectorRef,viewportRuler,dir,ngZone,platform,animationMode){super(elementRef,changeDetectorRef,viewportRuler,dir,ngZone,platform,animationMode),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new MatInkBar(this._items),super.ngAfterContentInit()}_itemSelected(event){event.preventDefault()}static#_=this.\u0275fac=function(t){return new(t||MatTabHeader2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(ViewportRuler),\u0275\u0275directiveInject(Directionality,8),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatTabHeader2,selectors:[["mat-tab-header"]],contentQueries:function(rf,ctx,dirIndex){if(1&rf&&\u0275\u0275contentQuery(dirIndex,MatTabLabelWrapper,4),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._items=_t)}},viewQuery:function(rf,ctx){if(1&rf&&(\u0275\u0275viewQuery(tabs_c1,7),\u0275\u0275viewQuery(tabs_c2,7),\u0275\u0275viewQuery(tabs_c3,7),\u0275\u0275viewQuery(tabs_c4,5),\u0275\u0275viewQuery(tabs_c5,5)),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._tabListContainer=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._tabList=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._tabListInner=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._nextPaginator=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._previousPaginator=_t.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275classProp("mat-mdc-tab-header-pagination-controls-enabled",ctx._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ctx._getLayoutDirection())},inputs:{disableRipple:[InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",core_booleanAttribute]},standalone:!0,features:[\u0275\u0275InputTransformsFeature,\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:tabs_c0,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"button",5,0),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handlePaginatorClick("before"))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handlePaginatorPress("before",$event))})("touchend",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._stopInterval())}),\u0275\u0275element(2,"div",6),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"div",7,1),\u0275\u0275listener("keydown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeydown($event))}),\u0275\u0275elementStart(5,"div",8,2),\u0275\u0275listener("cdkObserveContent",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._onContentChanges())}),\u0275\u0275elementStart(7,"div",9,3),\u0275\u0275projection(9),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(10,"button",10,4),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handlePaginatorPress("after",$event))})("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handlePaginatorClick("after"))})("touchend",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._stopInterval())}),\u0275\u0275element(12,"div",6),\u0275\u0275elementEnd()}2&rf&&(\u0275\u0275classProp("mat-mdc-tab-header-pagination-disabled",ctx._disableScrollBefore),\u0275\u0275property("matRippleDisabled",ctx._disableScrollBefore||ctx.disableRipple)("disabled",ctx._disableScrollBefore||null),\u0275\u0275advance(3),\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ctx._animationMode),\u0275\u0275advance(7),\u0275\u0275classProp("mat-mdc-tab-header-pagination-disabled",ctx._disableScrollAfter),\u0275\u0275property("matRippleDisabled",ctx._disableScrollAfter||ctx.disableRipple)("disabled",ctx._disableScrollAfter||null))},dependencies:[core_MatRipple,observers_CdkObserveContent],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return MatTabHeader2})();const MAT_TABS_CONFIG=new InjectionToken("MAT_TABS_CONFIG"),matTabsAnimations={translateTab:animations_trigger("translateTab",[state("center, void, left-origin-center, right-origin-center",animations_style({transform:"none"})),state("left",animations_style({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),state("right",animations_style({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),animations_transition("* => left, * => right, left => center, right => center",animations_animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),animations_transition("void => left-origin-center",[animations_style({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),animations_animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),animations_transition("void => right-origin-center",[animations_style({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),animations_animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let MatTabBodyPortal=(()=>{class MatTabBodyPortal2 extends CdkPortalOutlet{constructor(componentFactoryResolver,viewContainerRef,_host,_document2){super(componentFactoryResolver,viewContainerRef,_document2),this._host=_host,this._centeringSub=Subscription_Subscription.EMPTY,this._leavingSub=Subscription_Subscription.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(startWith_startWith(this._host._isCenterPosition(this._host._position))).subscribe(isCentering=>{isCentering&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#_=this.\u0275fac=function(t){return new(t||MatTabBodyPortal2)(\u0275\u0275directiveInject(ComponentFactoryResolver$1),\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_forwardRef(()=>MatTabBody)),\u0275\u0275directiveInject(common_DOCUMENT))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTabBodyPortal2,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[\u0275\u0275InheritDefinitionFeature]})}return MatTabBodyPortal2})(),MatTabBody=(()=>{class MatTabBody2{set position(position){this._positionIndex=position,this._computePositionAnimationState()}constructor(_elementRef,_dir,changeDetectorRef){this._elementRef=_elementRef,this._dir=_dir,this._dirChangeSubscription=Subscription_Subscription.EMPTY,this._translateTabComplete=new Subject_Subject,this._onCentering=new core_EventEmitter,this._beforeCentering=new core_EventEmitter,this._afterLeavingCenter=new core_EventEmitter,this._onCentered=new core_EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,_dir&&(this._dirChangeSubscription=_dir.change.subscribe(dir=>{this._computePositionAnimationState(dir),changeDetectorRef.markForCheck()})),this._translateTabComplete.pipe(distinctUntilChanged_distinctUntilChanged((x,y)=>x.fromState===y.fromState&&x.toState===y.toState)).subscribe(event=>{this._isCenterPosition(event.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(event.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(event){const isCentering=this._isCenterPosition(event.toState);this._beforeCentering.emit(isCentering),isCentering&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(position){return"center"==position||"left-origin-center"==position||"right-origin-center"==position}_computePositionAnimationState(dir=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==dir?"left":"right":this._positionIndex>0?"ltr"==dir?"right":"left":"center"}_computePositionFromOrigin(origin){const dir=this._getLayoutDirection();return"ltr"==dir&&origin<=0||"rtl"==dir&&origin>0?"left-origin-center":"right-origin-center"}static#_=this.\u0275fac=function(t){return new(t||MatTabBody2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(Directionality,8),\u0275\u0275directiveInject(core_ChangeDetectorRef))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatTabBody2,selectors:[["mat-tab-body"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(CdkPortalOutlet,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._portalHost=_t.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[InputFlags.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1,0),\u0275\u0275listener("@translateTab.start",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._onTranslateTabStarted($event))})("@translateTab.done",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._translateTabComplete.next($event))}),\u0275\u0275template(2,MatTabBody_ng_template_2_Template,0,0,"ng-template",2),\u0275\u0275elementEnd()}2&rf&&\u0275\u0275property("@translateTab",\u0275\u0275pureFunction2(3,tabs_c7,ctx._position,\u0275\u0275pureFunction1(1,tabs_c6,ctx.animationDuration)))},dependencies:[MatTabBodyPortal,CdkScrollable],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[matTabsAnimations.translateTab]}})}return MatTabBody2})(),tabs_nextId=0,MatTabGroup=(()=>{class MatTabGroup2{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(value){this._fitInkBarToContent=value,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(value){this._indexToSelect=isNaN(value)?null:value}get animationDuration(){return this._animationDuration}set animationDuration(value){const stringValue=value+"";this._animationDuration=/^\d+$/.test(stringValue)?value+"ms":stringValue}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(value){this._contentTabIndex=isNaN(value)?null:value}get backgroundColor(){return this._backgroundColor}set backgroundColor(value){const classList=this._elementRef.nativeElement.classList;classList.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),value&&classList.add("mat-tabs-with-background",`mat-background-${value}`),this._backgroundColor=value}constructor(_elementRef,_changeDetectorRef,defaultConfig,_animationMode){this._elementRef=_elementRef,this._changeDetectorRef=_changeDetectorRef,this._animationMode=_animationMode,this._tabs=new QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Subscription_Subscription.EMPTY,this._tabLabelSubscription=Subscription_Subscription.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new core_EventEmitter,this.focusChange=new core_EventEmitter,this.animationDone=new core_EventEmitter,this.selectedTabChange=new core_EventEmitter(!0),this._isServer=!core_inject(platform_Platform).isBrowser,this._groupId=tabs_nextId++,this.animationDuration=defaultConfig&&defaultConfig.animationDuration?defaultConfig.animationDuration:"500ms",this.disablePagination=!(!defaultConfig||null==defaultConfig.disablePagination)&&defaultConfig.disablePagination,this.dynamicHeight=!(!defaultConfig||null==defaultConfig.dynamicHeight)&&defaultConfig.dynamicHeight,null!=defaultConfig?.contentTabIndex&&(this.contentTabIndex=defaultConfig.contentTabIndex),this.preserveContent=!!defaultConfig?.preserveContent,this.fitInkBarToContent=!(!defaultConfig||null==defaultConfig.fitInkBarToContent)&&defaultConfig.fitInkBarToContent,this.stretchTabs=!defaultConfig||null==defaultConfig.stretchTabs||defaultConfig.stretchTabs}ngAfterContentChecked(){const indexToSelect=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=indexToSelect){const isFirstRun=null==this._selectedIndex;if(!isFirstRun){this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));const wrapper=this._tabBodyWrapper.nativeElement;wrapper.style.minHeight=wrapper.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((tab,index)=>tab.isActive=index===indexToSelect),isFirstRun||(this.selectedIndexChange.emit(indexToSelect),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((tab,index)=>{tab.position=index-indexToSelect,null!=this._selectedIndex&&0==tab.position&&!tab.origin&&(tab.origin=indexToSelect-this._selectedIndex)}),this._selectedIndex!==indexToSelect&&(this._selectedIndex=indexToSelect,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const indexToSelect=this._clampTabIndex(this._indexToSelect);if(indexToSelect===this._selectedIndex){const tabs=this._tabs.toArray();let selectedTab;for(let i=0;i{tabs[indexToSelect].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(indexToSelect))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(startWith_startWith(this._allTabs)).subscribe(tabs=>{this._tabs.reset(tabs.filter(tab=>tab._closestTabGroup===this||!tab._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(index){const header=this._tabHeader;header&&(header.focusIndex=index)}_focusChanged(index){this._lastFocusedTabIndex=index,this.focusChange.emit(this._createChangeEvent(index))}_createChangeEvent(index){const event=new MatTabChangeEvent;return event.index=index,this._tabs&&this._tabs.length&&(event.tab=this._tabs.toArray()[index]),event}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=merge_merge(...this._tabs.map(tab=>tab._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(index){return Math.min(this._tabs.length-1,Math.max(index||0,0))}_getTabLabelId(i){return`mat-tab-label-${this._groupId}-${i}`}_getTabContentId(i){return`mat-tab-content-${this._groupId}-${i}`}_setTabBodyWrapperHeight(tabHeight){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;const wrapper=this._tabBodyWrapper.nativeElement;wrapper.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(wrapper.style.height=tabHeight+"px")}_removeTabBodyWrapperHeight(){const wrapper=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=wrapper.clientHeight,wrapper.style.height="",this.animationDone.emit()}_handleClick(tab,tabHeader,index){tabHeader.focusIndex=index,tab.disabled||(this.selectedIndex=index)}_getTabIndex(index){return index===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(focusOrigin,index){focusOrigin&&"mouse"!==focusOrigin&&"touch"!==focusOrigin&&(this._tabHeader.focusIndex=index)}static#_=this.\u0275fac=function(t){return new(t||MatTabGroup2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(MAT_TABS_CONFIG,8),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatTabGroup2,selectors:[["mat-tab-group"]],contentQueries:function(rf,ctx,dirIndex){if(1&rf&&\u0275\u0275contentQuery(dirIndex,MatTab,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._allTabs=_t)}},viewQuery:function(rf,ctx){if(1&rf&&(\u0275\u0275viewQuery(tabs_c8,5),\u0275\u0275viewQuery(tabs_c9,5)),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._tabBodyWrapper=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._tabHeader=_t.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(rf,ctx){2&rf&&(\u0275\u0275classMap("mat-"+(ctx.color||"primary")),\u0275\u0275styleProp("--mat-tab-animation-duration",ctx.animationDuration),\u0275\u0275classProp("mat-mdc-tab-group-dynamic-height",ctx.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ctx.headerPosition)("mat-mdc-tab-group-stretch-tabs",ctx.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[InputFlags.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",core_booleanAttribute],stretchTabs:[InputFlags.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",core_booleanAttribute],dynamicHeight:[InputFlags.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",core_booleanAttribute],selectedIndex:[InputFlags.HasDecoratorInputTransform,"selectedIndex","selectedIndex",core_numberAttribute],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[InputFlags.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",core_numberAttribute],disablePagination:[InputFlags.HasDecoratorInputTransform,"disablePagination","disablePagination",core_booleanAttribute],disableRipple:[InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",core_booleanAttribute],preserveContent:[InputFlags.HasDecoratorInputTransform,"preserveContent","preserveContent",core_booleanAttribute],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:MAT_TAB_GROUP,useExisting:MatTabGroup2}]),\u0275\u0275InputTransformsFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:tabs_c0,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"mat-tab-header",3,0),\u0275\u0275listener("indexFocused",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._focusChanged($event))})("selectFocusedIndex",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.selectedIndex=$event)}),\u0275\u0275repeaterCreate(2,MatTabGroup_For_3_Template,8,17,"div",4,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(4,MatTabGroup_Conditional_4_Template,1,0),\u0275\u0275elementStart(5,"div",5,1),\u0275\u0275repeaterCreate(7,MatTabGroup_For_8_Template,1,13,"mat-tab-body",6,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()}2&rf&&(\u0275\u0275property("selectedIndex",ctx.selectedIndex||0)("disableRipple",ctx.disableRipple)("disablePagination",ctx.disablePagination),\u0275\u0275advance(2),\u0275\u0275repeater(ctx._tabs),\u0275\u0275advance(2),\u0275\u0275conditional(4,ctx._isServer?4:-1),\u0275\u0275advance(),\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ctx._animationMode),\u0275\u0275advance(2),\u0275\u0275repeater(ctx._tabs))},dependencies:[MatTabHeader,MatTabLabelWrapper,CdkMonitorFocus,core_MatRipple,CdkPortalOutlet,MatTabBody],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return MatTabGroup2})();class MatTabChangeEvent{}let MatTabsModule=(()=>{class MatTabsModule2{static#_=this.\u0275fac=function(t){return new(t||MatTabsModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatTabsModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[MatCommonModule,MatCommonModule]})}return MatTabsModule2})();const tooltip_c0=["tooltip"],MAT_TOOLTIP_SCROLL_STRATEGY=new InjectionToken("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const overlay=core_inject(Overlay);return()=>overlay.scrollStrategies.reposition({scrollThrottle:20})}}),MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER={provide:MAT_TOOLTIP_SCROLL_STRATEGY,deps:[Overlay],useFactory:function MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay){return()=>overlay.scrollStrategies.reposition({scrollThrottle:20})}},MAT_TOOLTIP_DEFAULT_OPTIONS=new InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),passiveListenerOptions=normalizePassiveListenerOptions({passive:!0});let MatTooltip=(()=>{class MatTooltip2{get position(){return this._position}set position(value){value!==this._position&&(this._position=value,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(value){this._positionAtOrigin=coercion_coerceBooleanProperty(value),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(value){this._disabled=coercion_coerceBooleanProperty(value),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(value){this._showDelay=coercion_coerceNumberProperty(value)}get hideDelay(){return this._hideDelay}set hideDelay(value){this._hideDelay=coercion_coerceNumberProperty(value),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(value){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=value?String(value).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(value){this._tooltipClass=value,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(_overlay,_elementRef,_scrollDispatcher,_viewContainerRef,_ngZone,_platform,_ariaDescriber,_focusMonitor,scrollStrategy,_dir,_defaultOptions,_document2){this._overlay=_overlay,this._elementRef=_elementRef,this._scrollDispatcher=_scrollDispatcher,this._viewContainerRef=_viewContainerRef,this._ngZone=_ngZone,this._platform=_platform,this._ariaDescriber=_ariaDescriber,this._focusMonitor=_focusMonitor,this._dir=_dir,this._defaultOptions=_defaultOptions,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=TooltipComponent,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Subject_Subject,this._scrollStrategy=scrollStrategy,this._document=_document2,_defaultOptions&&(this._showDelay=_defaultOptions.showDelay,this._hideDelay=_defaultOptions.hideDelay,_defaultOptions.position&&(this.position=_defaultOptions.position),_defaultOptions.positionAtOrigin&&(this.positionAtOrigin=_defaultOptions.positionAtOrigin),_defaultOptions.touchGestures&&(this.touchGestures=_defaultOptions.touchGestures)),_dir.change.pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(takeUntil_takeUntil(this._destroyed)).subscribe(origin=>{origin?"keyboard"===origin&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const nativeElement=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([event,listener])=>{nativeElement.removeEventListener(event,listener,passiveListenerOptions)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(nativeElement,this.message,"tooltip"),this._focusMonitor.stopMonitoring(nativeElement)}show(delay2=this.showDelay,origin){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const overlayRef=this._createOverlay(origin);this._detach(),this._portal=this._portal||new ComponentPortal(this._tooltipComponent,this._viewContainerRef);const instance=this._tooltipInstance=overlayRef.attach(this._portal).instance;instance._triggerElement=this._elementRef.nativeElement,instance._mouseLeaveHideDelay=this._hideDelay,instance.afterHidden().pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),instance.show(delay2)}hide(delay2=this.hideDelay){const instance=this._tooltipInstance;instance&&(instance.isVisible()?instance.hide(delay2):(instance._cancelPendingAnimations(),this._detach()))}toggle(origin){this._isTooltipVisible()?this.hide():this.show(void 0,origin)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(origin){if(this._overlayRef){const existingStrategy=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!origin)&&existingStrategy._origin instanceof core_ElementRef)return this._overlayRef;this._detach()}const scrollableAncestors=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),strategy=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&origin||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(scrollableAncestors);return strategy.positionChanges.pipe(takeUntil_takeUntil(this._destroyed)).subscribe(change=>{this._updateCurrentPositionClass(change.connectionPair),this._tooltipInstance&&change.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:strategy,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(takeUntil_takeUntil(this._destroyed)).subscribe(event=>{this._isTooltipVisible()&&27===event.keyCode&&!keycodes_hasModifierKey(event)&&(event.preventDefault(),event.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(overlayRef){const position=overlayRef.getConfig().positionStrategy,origin=this._getOrigin(),overlay=this._getOverlayPosition();position.withPositions([this._addOffset({...origin.main,...overlay.main}),this._addOffset({...origin.fallback,...overlay.fallback})])}_addOffset(position){const isLtr=!this._dir||"ltr"==this._dir.value;return"top"===position.originY?position.offsetY=-8:"bottom"===position.originY?position.offsetY=8:"start"===position.originX?position.offsetX=isLtr?-8:8:"end"===position.originX&&(position.offsetX=isLtr?8:-8),position}_getOrigin(){const isLtr=!this._dir||"ltr"==this._dir.value,position=this.position;let originPosition;"above"==position||"below"==position?originPosition={originX:"center",originY:"above"==position?"top":"bottom"}:"before"==position||"left"==position&&isLtr||"right"==position&&!isLtr?originPosition={originX:"start",originY:"center"}:("after"==position||"right"==position&&isLtr||"left"==position&&!isLtr)&&(originPosition={originX:"end",originY:"center"});const{x,y}=this._invertPosition(originPosition.originX,originPosition.originY);return{main:originPosition,fallback:{originX:x,originY:y}}}_getOverlayPosition(){const isLtr=!this._dir||"ltr"==this._dir.value,position=this.position;let overlayPosition;"above"==position?overlayPosition={overlayX:"center",overlayY:"bottom"}:"below"==position?overlayPosition={overlayX:"center",overlayY:"top"}:"before"==position||"left"==position&&isLtr||"right"==position&&!isLtr?overlayPosition={overlayX:"end",overlayY:"center"}:("after"==position||"right"==position&&isLtr||"left"==position&&!isLtr)&&(overlayPosition={overlayX:"start",overlayY:"center"});const{x,y}=this._invertPosition(overlayPosition.overlayX,overlayPosition.overlayY);return{main:overlayPosition,fallback:{overlayX:x,overlayY:y}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(take_take(1),takeUntil_takeUntil(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(tooltipClass){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=tooltipClass,this._tooltipInstance._markForCheck())}_invertPosition(x,y){return"above"===this.position||"below"===this.position?"top"===y?y="bottom":"bottom"===y&&(y="top"):"end"===x?x="start":"start"===x&&(x="end"),{x,y}}_updateCurrentPositionClass(connectionPair){const{overlayY,originX,originY}=connectionPair;let newPosition;if(newPosition="center"===overlayY?this._dir&&"rtl"===this._dir.value?"end"===originX?"left":"right":"start"===originX?"left":"right":"bottom"===overlayY&&"top"===originY?"above":"below",newPosition!==this._currentPosition){const overlayRef=this._overlayRef;if(overlayRef){const classPrefix=`${this._cssClassPrefix}-tooltip-panel-`;overlayRef.removePanelClass(classPrefix+this._currentPosition),overlayRef.addPanelClass(classPrefix+newPosition)}this._currentPosition=newPosition}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",event=>{let point;this._setupPointerExitEventsIfNeeded(),void 0!==event.x&&void 0!==event.y&&(point=event),this.show(void 0,point)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",event=>{const touch=event.targetTouches?.[0],origin=touch?{x:touch.clientX,y:touch.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,origin),this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const exitListeners=[];if(this._platformSupportsMouseEvents())exitListeners.push(["mouseleave",event=>{const newTarget=event.relatedTarget;(!newTarget||!this._overlayRef?.overlayElement.contains(newTarget))&&this.hide()}],["wheel",event=>this._wheelListener(event)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const touchendListener=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};exitListeners.push(["touchend",touchendListener],["touchcancel",touchendListener])}this._addListeners(exitListeners),this._passiveListeners.push(...exitListeners)}_addListeners(listeners){listeners.forEach(([event,listener])=>{this._elementRef.nativeElement.addEventListener(event,listener,passiveListenerOptions)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(event){if(this._isTooltipVisible()){const elementUnderPointer=this._document.elementFromPoint(event.clientX,event.clientY),element=this._elementRef.nativeElement;elementUnderPointer!==element&&!element.contains(elementUnderPointer)&&this.hide()}}_disableNativeGesturesIfNecessary(){const gestures=this.touchGestures;if("off"!==gestures){const element=this._elementRef.nativeElement,style2=element.style;("on"===gestures||"INPUT"!==element.nodeName&&"TEXTAREA"!==element.nodeName)&&(style2.userSelect=style2.msUserSelect=style2.webkitUserSelect=style2.MozUserSelect="none"),("on"===gestures||!element.draggable)&&(style2.webkitUserDrag="none"),style2.touchAction="none",style2.webkitTapHighlightColor="transparent"}}static#_=this.\u0275fac=function(t){return new(t||MatTooltip2)(\u0275\u0275directiveInject(Overlay),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(ScrollDispatcher),\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(platform_Platform),\u0275\u0275directiveInject(AriaDescriber),\u0275\u0275directiveInject(FocusMonitor),\u0275\u0275directiveInject(MAT_TOOLTIP_SCROLL_STRATEGY),\u0275\u0275directiveInject(Directionality),\u0275\u0275directiveInject(MAT_TOOLTIP_DEFAULT_OPTIONS,8),\u0275\u0275directiveInject(common_DOCUMENT))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTooltip2,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275classProp("mat-mdc-tooltip-disabled",ctx.disabled)},inputs:{position:[InputFlags.None,"matTooltipPosition","position"],positionAtOrigin:[InputFlags.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[InputFlags.None,"matTooltipDisabled","disabled"],showDelay:[InputFlags.None,"matTooltipShowDelay","showDelay"],hideDelay:[InputFlags.None,"matTooltipHideDelay","hideDelay"],touchGestures:[InputFlags.None,"matTooltipTouchGestures","touchGestures"],message:[InputFlags.None,"matTooltip","message"],tooltipClass:[InputFlags.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return MatTooltip2})(),TooltipComponent=(()=>{class TooltipComponent2{constructor(_changeDetectorRef,_elementRef,animationMode){this._changeDetectorRef=_changeDetectorRef,this._elementRef=_elementRef,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Subject_Subject,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===animationMode}show(delay2){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},delay2)}hide(delay2){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},delay2)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget}){(!relatedTarget||!this._triggerElement.contains(relatedTarget))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const rect=this._elementRef.nativeElement.getBoundingClientRect();return rect.height>24&&rect.width>=200}_handleAnimationEnd({animationName}){(animationName===this._showAnimation||animationName===this._hideAnimation)&&this._finalizeAnimation(animationName===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(toVisible){toVisible?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(isVisible){const tooltip=this._tooltip.nativeElement,showClass=this._showAnimation,hideClass=this._hideAnimation;if(tooltip.classList.remove(isVisible?hideClass:showClass),tooltip.classList.add(isVisible?showClass:hideClass),this._isVisible=isVisible,isVisible&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const styles=getComputedStyle(tooltip);("0s"===styles.getPropertyValue("animation-duration")||"none"===styles.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}isVisible&&this._onShow(),this._animationsDisabled&&(tooltip.classList.add("_mat-animation-noopable"),this._finalizeAnimation(isVisible))}static#_=this.\u0275fac=function(t){return new(t||TooltipComponent2)(\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ANIMATION_MODULE_TYPE,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:TooltipComponent2,selectors:[["mat-tooltip-component"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(tooltip_c0,7),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._tooltip=_t.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(rf,ctx){1&rf&&\u0275\u0275listener("mouseleave",function($event){return ctx._handleMouseLeave($event)}),2&rf&&\u0275\u0275styleProp("zoom",ctx.isVisible()?1:null)},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1,0),\u0275\u0275listener("animationend",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleAnimationEnd($event))}),\u0275\u0275elementStart(2,"div",2),\u0275\u0275text(3),\u0275\u0275elementEnd()()}2&rf&&(\u0275\u0275classProp("mdc-tooltip--multiline",ctx._isMultiline),\u0275\u0275property("ngClass",ctx.tooltipClass),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.message))},dependencies:[NgClass],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return TooltipComponent2})(),MatTooltipModule=(()=>{class MatTooltipModule2{static#_=this.\u0275fac=function(t){return new(t||MatTooltipModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatTooltipModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER],imports:[A11yModule,common_CommonModule,OverlayModule,MatCommonModule,MatCommonModule,CdkScrollableModule]})}return MatTooltipModule2})();class ConnectableObservable extends Observable_Observable{constructor(source,subjectFactory){super(),this.source=source,this.subjectFactory=subjectFactory,this._subject=null,this._refCount=0,this._connection=null,hasLift(source)&&(this.lift=source.lift)}_subscribe(subscriber){return this.getSubject().subscribe(subscriber)}getSubject(){const subject=this._subject;return(!subject||subject.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection}=this;this._subject=this._connection=null,_connection?.unsubscribe()}connect(){let connection=this._connection;if(!connection){connection=this._connection=new Subscription_Subscription;const subject=this.getSubject();connection.add(this.source.subscribe(createOperatorSubscriber(subject,void 0,()=>{this._teardown(),subject.complete()},err=>{this._teardown(),subject.error(err)},()=>this._teardown()))),connection.closed&&(this._connection=null,connection=Subscription_Subscription.EMPTY)}return connection}refCount(){return function refCount(){return operate((source,subscriber)=>{let connection=null;source._refCount++;const refCounter=createOperatorSubscriber(subscriber,void 0,void 0,void 0,()=>{if(!source||source._refCount<=0||0<--source._refCount)return void(connection=null);const sharedConnection=source._connection,conn=connection;connection=null,sharedConnection&&(!conn||sharedConnection===conn)&&sharedConnection.unsubscribe(),subscriber.unsubscribe()});source.subscribe(refCounter),refCounter.closed||(connection=source.connect())})}()(this)}}function isObservable_isObservable(obj){return!!obj&&(obj instanceof Observable_Observable||isFunction(obj.lift)&&isFunction(obj.subscribe))}class DataSource{}class SelectionModel{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(_multiple=!1,initiallySelectedValues,_emitChanges=!0,compareWith){this._multiple=_multiple,this._emitChanges=_emitChanges,this.compareWith=compareWith,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Subject_Subject,initiallySelectedValues&&initiallySelectedValues.length&&(_multiple?initiallySelectedValues.forEach(value=>this._markSelected(value)):this._markSelected(initiallySelectedValues[0]),this._selectedToEmit.length=0)}select(...values){this._verifyValueAssignment(values),values.forEach(value=>this._markSelected(value));const changed=this._hasQueuedChanges();return this._emitChangeEvent(),changed}deselect(...values){this._verifyValueAssignment(values),values.forEach(value=>this._unmarkSelected(value));const changed=this._hasQueuedChanges();return this._emitChangeEvent(),changed}setSelection(...values){this._verifyValueAssignment(values);const oldValues=this.selected,newSelectedSet=new Set(values);values.forEach(value=>this._markSelected(value)),oldValues.filter(value=>!newSelectedSet.has(this._getConcreteValue(value,newSelectedSet))).forEach(value=>this._unmarkSelected(value));const changed=this._hasQueuedChanges();return this._emitChangeEvent(),changed}toggle(value){return this.isSelected(value)?this.deselect(value):this.select(value)}clear(flushEvent=!0){this._unmarkAll();const changed=this._hasQueuedChanges();return flushEvent&&this._emitChangeEvent(),changed}isSelected(value){return this._selection.has(this._getConcreteValue(value))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(predicate){this._multiple&&this.selected&&this._selected.sort(predicate)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(value){value=this._getConcreteValue(value),this.isSelected(value)||(this._multiple||this._unmarkAll(),this.isSelected(value)||this._selection.add(value),this._emitChanges&&this._selectedToEmit.push(value))}_unmarkSelected(value){value=this._getConcreteValue(value),this.isSelected(value)&&(this._selection.delete(value),this._emitChanges&&this._deselectedToEmit.push(value))}_unmarkAll(){this.isEmpty()||this._selection.forEach(value=>this._unmarkSelected(value))}_verifyValueAssignment(values){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(inputValue,selection){if(this.compareWith){selection=selection??this._selection;for(let selectedValue of selection)if(this.compareWith(inputValue,selectedValue))return selectedValue;return inputValue}return inputValue}}class BaseTreeControl{constructor(){this.expansionModel=new SelectionModel(!0)}toggle(dataNode){this.expansionModel.toggle(this._trackByValue(dataNode))}expand(dataNode){this.expansionModel.select(this._trackByValue(dataNode))}collapse(dataNode){this.expansionModel.deselect(this._trackByValue(dataNode))}isExpanded(dataNode){return this.expansionModel.isSelected(this._trackByValue(dataNode))}toggleDescendants(dataNode){this.expansionModel.isSelected(this._trackByValue(dataNode))?this.collapseDescendants(dataNode):this.expandDescendants(dataNode)}collapseAll(){this.expansionModel.clear()}expandDescendants(dataNode){let toBeProcessed=[dataNode];toBeProcessed.push(...this.getDescendants(dataNode)),this.expansionModel.select(...toBeProcessed.map(value=>this._trackByValue(value)))}collapseDescendants(dataNode){let toBeProcessed=[dataNode];toBeProcessed.push(...this.getDescendants(dataNode)),this.expansionModel.deselect(...toBeProcessed.map(value=>this._trackByValue(value)))}_trackByValue(value){return this.trackBy?this.trackBy(value):value}}class NestedTreeControl extends BaseTreeControl{constructor(getChildren,options){super(),this.getChildren=getChildren,this.options=options,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const allNodes=this.dataNodes.reduce((accumulator,dataNode)=>[...accumulator,...this.getDescendants(dataNode),dataNode],[]);this.expansionModel.select(...allNodes.map(node2=>this._trackByValue(node2)))}getDescendants(dataNode){const descendants=[];return this._getDescendants(descendants,dataNode),descendants.splice(1)}_getDescendants(descendants,dataNode){descendants.push(dataNode);const childrenNodes=this.getChildren(dataNode);Array.isArray(childrenNodes)?childrenNodes.forEach(child2=>this._getDescendants(descendants,child2)):isObservable_isObservable(childrenNodes)&&childrenNodes.pipe(take_take(1),filter_filter(Boolean)).subscribe(children=>{for(const child2 of children)this._getDescendants(descendants,child2)})}}const CDK_TREE_NODE_OUTLET_NODE=new InjectionToken("CDK_TREE_NODE_OUTLET_NODE");let CdkTreeNodeOutlet=(()=>{class CdkTreeNodeOutlet2{constructor(viewContainer,_node){this.viewContainer=viewContainer,this._node=_node}static#_=this.\u0275fac=function(t){return new(t||CdkTreeNodeOutlet2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(CDK_TREE_NODE_OUTLET_NODE,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkTreeNodeOutlet2,selectors:[["","cdkTreeNodeOutlet",""]],standalone:!0})}return CdkTreeNodeOutlet2})();class CdkTreeNodeOutletContext{constructor(data){this.$implicit=data}}let CdkTreeNodeDef=(()=>{class CdkTreeNodeDef2{constructor(template){this.template=template}static#_=this.\u0275fac=function(t){return new(t||CdkTreeNodeDef2)(\u0275\u0275directiveInject(core_TemplateRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkTreeNodeDef2,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[InputFlags.None,"cdkTreeNodeDefWhen","when"]},standalone:!0})}return CdkTreeNodeDef2})(),CdkTree=(()=>{class CdkTree2{get dataSource(){return this._dataSource}set dataSource(dataSource){this._dataSource!==dataSource&&this._switchDataSource(dataSource)}constructor(_differs,_changeDetectorRef){this._differs=_differs,this._changeDetectorRef=_changeDetectorRef,this._onDestroy=new Subject_Subject,this._levels=new Map,this.viewChange=new BehaviorSubject_BehaviorSubject({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const defaultNodeDefs=this._nodeDefs.filter(def=>!def.when);this._defaultNodeDef=defaultNodeDefs[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(dataSource){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),dataSource||this._nodeOutlet.viewContainer.clear(),this._dataSource=dataSource,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let dataStream;!function collections_isDataSource(value){return value&&"function"==typeof value.connect&&!(value instanceof ConnectableObservable)}(this._dataSource)?isObservable_isObservable(this._dataSource)?dataStream=this._dataSource:Array.isArray(this._dataSource)&&(dataStream=of_of(this._dataSource)):dataStream=this._dataSource.connect(this),dataStream&&(this._dataSubscription=dataStream.pipe(takeUntil_takeUntil(this._onDestroy)).subscribe(data=>this.renderNodeChanges(data)))}renderNodeChanges(data,dataDiffer=this._dataDiffer,viewContainer=this._nodeOutlet.viewContainer,parentData){const changes=dataDiffer.diff(data);changes&&(changes.forEachOperation((item,adjustedPreviousIndex,currentIndex)=>{if(null==item.previousIndex)this.insertNode(data[currentIndex],currentIndex,viewContainer,parentData);else if(null==currentIndex)viewContainer.remove(adjustedPreviousIndex),this._levels.delete(item.item);else{const view=viewContainer.get(adjustedPreviousIndex);viewContainer.move(view,currentIndex)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(data,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(def=>def.when&&def.when(i,data))||this._defaultNodeDef}insertNode(nodeData,index,viewContainer,parentData){const node2=this._getNodeDef(nodeData,index),context2=new CdkTreeNodeOutletContext(nodeData);context2.level=this.treeControl.getLevel?this.treeControl.getLevel(nodeData):typeof parentData<"u"&&this._levels.has(parentData)?this._levels.get(parentData)+1:0,this._levels.set(nodeData,context2.level),(viewContainer||this._nodeOutlet.viewContainer).createEmbeddedView(node2.template,context2,index),CdkTreeNode.mostRecentTreeNode&&(CdkTreeNode.mostRecentTreeNode.data=nodeData)}static#_=this.\u0275fac=function(t){return new(t||CdkTree2)(\u0275\u0275directiveInject(IterableDiffers),\u0275\u0275directiveInject(core_ChangeDetectorRef))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:CdkTree2,selectors:[["cdk-tree"]],contentQueries:function(rf,ctx,dirIndex){if(1&rf&&\u0275\u0275contentQuery(dirIndex,CdkTreeNodeDef,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._nodeDefs=_t)}},viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(CdkTreeNodeOutlet,7),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._nodeOutlet=_t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(rf,ctx){1&rf&&\u0275\u0275elementContainer(0,0)},dependencies:[CdkTreeNodeOutlet],encapsulation:2})}return CdkTree2})(),CdkTreeNode=(()=>{class CdkTreeNode2{get role(){return"treeitem"}set role(_role){this._elementRef.nativeElement.setAttribute("role",_role)}static#_=this.mostRecentTreeNode=null;get data(){return this._data}set data(value){value!==this._data&&(this._data=value,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(_elementRef,_tree){this._elementRef=_elementRef,this._tree=_tree,this._destroyed=new Subject_Subject,this._dataChanges=new Subject_Subject,CdkTreeNode2.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function getParentNodeAriaLevel(nodeElement){let parent=nodeElement.parentElement;for(;parent&&!isNodeElement(parent);)parent=parent.parentElement;return parent?parent.classList.contains("cdk-nested-tree-node")?core_numberAttribute(parent.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){CdkTreeNode2.mostRecentTreeNode===this&&(CdkTreeNode2.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}static#_2=this.\u0275fac=function(t){return new(t||CdkTreeNode2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(CdkTree))};static#_3=this.\u0275dir=\u0275\u0275defineDirective({type:CdkTreeNode2,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(rf,ctx){2&rf&&\u0275\u0275attribute("aria-expanded",ctx.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"],standalone:!0})}return CdkTreeNode2})();function isNodeElement(element){const classList=element.classList;return!(!classList?.contains("cdk-nested-tree-node")&&!classList?.contains("cdk-tree"))}let CdkNestedTreeNode=(()=>{class CdkNestedTreeNode2 extends CdkTreeNode{constructor(elementRef,tree2,_differs){super(elementRef,tree2),this._differs=_differs}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const childrenNodes=this._tree.treeControl.getChildren(this.data);Array.isArray(childrenNodes)?this.updateChildrenNodes(childrenNodes):isObservable_isObservable(childrenNodes)&&childrenNodes.pipe(takeUntil_takeUntil(this._destroyed)).subscribe(result=>this.updateChildrenNodes(result)),this.nodeOutlet.changes.pipe(takeUntil_takeUntil(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(children){const outlet=this._getNodeOutlet();children&&(this._children=children),outlet&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,outlet.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const outlet=this._getNodeOutlet();outlet&&(outlet.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const outlets=this.nodeOutlet;return outlets&&outlets.find(outlet=>!outlet._node||outlet._node===this)}static#_=this.\u0275fac=function(t){return new(t||CdkNestedTreeNode2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(CdkTree),\u0275\u0275directiveInject(IterableDiffers))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkNestedTreeNode2,selectors:[["cdk-nested-tree-node"]],contentQueries:function(rf,ctx,dirIndex){if(1&rf&&\u0275\u0275contentQuery(dirIndex,CdkTreeNodeOutlet,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.nodeOutlet=_t)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkTreeNode,useExisting:CdkNestedTreeNode2},{provide:CDK_TREE_NODE_OUTLET_NODE,useExisting:CdkNestedTreeNode2}]),\u0275\u0275InheritDefinitionFeature]})}return CdkNestedTreeNode2})(),CdkTreeNodeToggle=(()=>{class CdkTreeNodeToggle2{constructor(_tree,_treeNode){this._tree=_tree,this._treeNode=_treeNode,this.recursive=!1}_toggle(event){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),event.stopPropagation()}static#_=this.\u0275fac=function(t){return new(t||CdkTreeNodeToggle2)(\u0275\u0275directiveInject(CdkTree),\u0275\u0275directiveInject(CdkTreeNode))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:CdkTreeNodeToggle2,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(rf,ctx){1&rf&&\u0275\u0275listener("click",function($event){return ctx._toggle($event)})},inputs:{recursive:[InputFlags.HasDecoratorInputTransform,"cdkTreeNodeToggleRecursive","recursive",core_booleanAttribute]},standalone:!0,features:[\u0275\u0275InputTransformsFeature]})}return CdkTreeNodeToggle2})(),CdkTreeModule=(()=>{class CdkTreeModule2{static#_=this.\u0275fac=function(t){return new(t||CdkTreeModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:CdkTreeModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({})}return CdkTreeModule2})(),MatTreeNode=(()=>{class MatTreeNode2 extends CdkTreeNode{constructor(elementRef,tree2,tabIndex){super(elementRef,tree2),this.disabled=!1,this.tabIndex=Number(tabIndex)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static#_=this.\u0275fac=function(t){return new(t||MatTreeNode2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(CdkTree),\u0275\u0275injectAttribute("tabindex"))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTreeNode2,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{disabled:[InputFlags.HasDecoratorInputTransform,"disabled","disabled",core_booleanAttribute],tabIndex:[InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",value=>null==value?0:core_numberAttribute(value)]},exportAs:["matTreeNode"],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkTreeNode,useExisting:MatTreeNode2}]),\u0275\u0275InputTransformsFeature,\u0275\u0275InheritDefinitionFeature]})}return MatTreeNode2})(),MatTreeNodeDef=(()=>{class MatTreeNodeDef2 extends CdkTreeNodeDef{static#_=this.\u0275fac=(()=>{let \u0275MatTreeNodeDef_BaseFactory;return function(t){return(\u0275MatTreeNodeDef_BaseFactory||(\u0275MatTreeNodeDef_BaseFactory=\u0275\u0275getInheritedFactory(MatTreeNodeDef2)))(t||MatTreeNodeDef2)}})();static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTreeNodeDef2,selectors:[["","matTreeNodeDef",""]],inputs:{when:[InputFlags.None,"matTreeNodeDefWhen","when"],data:[InputFlags.None,"matTreeNode","data"]},standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkTreeNodeDef,useExisting:MatTreeNodeDef2}]),\u0275\u0275InheritDefinitionFeature]})}return MatTreeNodeDef2})(),MatNestedTreeNode=(()=>{class MatNestedTreeNode2 extends CdkNestedTreeNode{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(value){this._tabIndex=value??0}constructor(elementRef,tree2,differs,tabIndex){super(elementRef,tree2,differs),this.disabled=!1,this.tabIndex=Number(tabIndex)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static#_=this.\u0275fac=function(t){return new(t||MatNestedTreeNode2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(CdkTree),\u0275\u0275directiveInject(IterableDiffers),\u0275\u0275injectAttribute("tabindex"))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatNestedTreeNode2,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[InputFlags.None,"matNestedTreeNode","node"],disabled:[InputFlags.HasDecoratorInputTransform,"disabled","disabled",core_booleanAttribute],tabIndex:"tabIndex"},exportAs:["matNestedTreeNode"],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkNestedTreeNode,useExisting:MatNestedTreeNode2},{provide:CdkTreeNode,useExisting:MatNestedTreeNode2},{provide:CDK_TREE_NODE_OUTLET_NODE,useExisting:MatNestedTreeNode2}]),\u0275\u0275InputTransformsFeature,\u0275\u0275InheritDefinitionFeature]})}return MatNestedTreeNode2})(),MatTreeNodeOutlet=(()=>{class MatTreeNodeOutlet2{constructor(viewContainer,_node){this.viewContainer=viewContainer,this._node=_node}static#_=this.\u0275fac=function(t){return new(t||MatTreeNodeOutlet2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(CDK_TREE_NODE_OUTLET_NODE,8))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTreeNodeOutlet2,selectors:[["","matTreeNodeOutlet",""]],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkTreeNodeOutlet,useExisting:MatTreeNodeOutlet2}])]})}return MatTreeNodeOutlet2})(),MatTree=(()=>{class MatTree2 extends CdkTree{constructor(){super(...arguments),this._nodeOutlet=void 0}static#_=this.\u0275fac=(()=>{let \u0275MatTree_BaseFactory;return function(t){return(\u0275MatTree_BaseFactory||(\u0275MatTree_BaseFactory=\u0275\u0275getInheritedFactory(MatTree2)))(t||MatTree2)}})();static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:MatTree2,selectors:[["mat-tree"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(MatTreeNodeOutlet,7),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._nodeOutlet=_t.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkTree,useExisting:MatTree2}]),\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(rf,ctx){1&rf&&\u0275\u0275elementContainer(0,0)},dependencies:[MatTreeNodeOutlet],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2})}return MatTree2})(),MatTreeNodeToggle=(()=>{class MatTreeNodeToggle2 extends CdkTreeNodeToggle{static#_=this.\u0275fac=(()=>{let \u0275MatTreeNodeToggle_BaseFactory;return function(t){return(\u0275MatTreeNodeToggle_BaseFactory||(\u0275MatTreeNodeToggle_BaseFactory=\u0275\u0275getInheritedFactory(MatTreeNodeToggle2)))(t||MatTreeNodeToggle2)}})();static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:MatTreeNodeToggle2,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[InputFlags.None,"matTreeNodeToggleRecursive","recursive"]},standalone:!0,features:[\u0275\u0275ProvidersFeature([{provide:CdkTreeNodeToggle,useExisting:MatTreeNodeToggle2}]),\u0275\u0275InheritDefinitionFeature]})}return MatTreeNodeToggle2})(),MatTreeModule=(()=>{class MatTreeModule2{static#_=this.\u0275fac=function(t){return new(t||MatTreeModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:MatTreeModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[CdkTreeModule,MatCommonModule,MatCommonModule]})}return MatTreeModule2})();class MatTreeNestedDataSource extends DataSource{constructor(){super(...arguments),this._data=new BehaviorSubject_BehaviorSubject([])}get data(){return this._data.value}set data(value){this._data.next(value)}connect(collectionViewer){return merge_merge(collectionViewer.viewChange,this._data).pipe(map_map(()=>this.data))}disconnect(){}}function invalidTimingValue(exp){return new RuntimeError(3e3,!1)}function optimizeGroupPlayer(players){switch(players.length){case 0:return new NoopAnimationPlayer;case 1:return players[0];default:return new AnimationGroupPlayer(players)}}function normalizeKeyframes$1(normalizer,keyframes2,preStyles=new Map,postStyles=new Map){const errors=[],normalizedKeyframes=[];let previousOffset=-1,previousKeyframe=null;if(keyframes2.forEach(kf=>{const offset=kf.get("offset"),isSameOffset=offset==previousOffset,normalizedKeyframe=isSameOffset&&previousKeyframe||new Map;kf.forEach((val,prop2)=>{let normalizedProp=prop2,normalizedValue=val;if("offset"!==prop2)switch(normalizedProp=normalizer.normalizePropertyName(normalizedProp,errors),normalizedValue){case"!":normalizedValue=preStyles.get(prop2);break;case"*":normalizedValue=postStyles.get(prop2);break;default:normalizedValue=normalizer.normalizeStyleValue(prop2,normalizedProp,normalizedValue,errors)}normalizedKeyframe.set(normalizedProp,normalizedValue)}),isSameOffset||normalizedKeyframes.push(normalizedKeyframe),previousKeyframe=normalizedKeyframe,previousOffset=offset}),errors.length)throw function animationFailed(errors){return new RuntimeError(3502,!1)}();return normalizedKeyframes}function listenOnPlayer(player,eventName,event,callback){switch(eventName){case"start":player.onStart(()=>callback(event&©AnimationEvent(event,"start",player)));break;case"done":player.onDone(()=>callback(event&©AnimationEvent(event,"done",player)));break;case"destroy":player.onDestroy(()=>callback(event&©AnimationEvent(event,"destroy",player)))}}function copyAnimationEvent(e2,phaseName,player){const event=makeAnimationEvent(e2.element,e2.triggerName,e2.fromState,e2.toState,phaseName||e2.phaseName,player.totalTime??e2.totalTime,!!player.disabled),data=e2._data;return null!=data&&(event._data=data),event}function makeAnimationEvent(element,triggerName,fromState,toState,phaseName="",totalTime=0,disabled){return{element,triggerName,fromState,toState,phaseName,totalTime,disabled:!!disabled}}function getOrSetDefaultValue(map2,key,defaultValue){let value=map2.get(key);return value||map2.set(key,value=defaultValue),value}function parseTimelineCommand(command){const separatorPos=command.indexOf(":");return[command.substring(1,separatorPos),command.slice(separatorPos+1)]}const documentElement=typeof document>"u"?null:document.documentElement;function getParentElement(element){const parent=element.parentNode||element.host||null;return parent===documentElement?null:parent}let _CACHED_BODY=null,_IS_WEBKIT=!1;function containsElement(elm1,elm2){for(;elm2;){if(elm2===elm1)return!0;elm2=getParentElement(elm2)}return!1}function invokeQuery(element,selector,multi){if(multi)return Array.from(element.querySelectorAll(selector));const elem=element.querySelector(selector);return elem?[elem]:[]}let NoopAnimationDriver=(()=>{class NoopAnimationDriver2{validateStyleProperty(prop2){return function validateStyleProperty(prop2){_CACHED_BODY||(_CACHED_BODY=function getBodyNode(){return typeof document<"u"?document.body:null}()||{},_IS_WEBKIT=!!_CACHED_BODY.style&&"WebkitAppearance"in _CACHED_BODY.style);let result=!0;return _CACHED_BODY.style&&!function containsVendorPrefix(prop2){return"ebkit"==prop2.substring(1,6)}(prop2)&&(result=prop2 in _CACHED_BODY.style,!result&&_IS_WEBKIT&&(result="Webkit"+prop2.charAt(0).toUpperCase()+prop2.slice(1)in _CACHED_BODY.style)),result}(prop2)}matchesElement(_element,_selector){return!1}containsElement(elm1,elm2){return containsElement(elm1,elm2)}getParentElement(element){return getParentElement(element)}query(element,selector,multi){return invokeQuery(element,selector,multi)}computeStyle(element,prop2,defaultValue){return defaultValue||""}animate(element,keyframes2,duration,delay2,easing,previousPlayers=[],scrubberAccessRequested){return new NoopAnimationPlayer(duration,delay2)}static#_=this.\u0275fac=function(t){return new(t||NoopAnimationDriver2)};static#_2=this.\u0275prov=core_defineInjectable({token:NoopAnimationDriver2,factory:NoopAnimationDriver2.\u0275fac})}return NoopAnimationDriver2})();class AnimationDriver{static#_=this.NOOP=new NoopAnimationDriver}class AnimationStyleNormalizer{}const ONE_SECOND=1e3;function resolveTimingValue(value){if("number"==typeof value)return value;const matches=value.match(/^(-?[\.\d]+)(m?s)/);return!matches||matches.length<2?0:_convertTimeValueToMS(parseFloat(matches[1]),matches[2])}function _convertTimeValueToMS(value,unit){return"s"===unit?value*ONE_SECOND:value}function resolveTiming(timings,errors,allowNegativeValues){return timings.hasOwnProperty("duration")?timings:function parseTimeExpression(exp,errors,allowNegativeValues){let duration,delay2=0,easing="";if("string"==typeof exp){const matches=exp.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===matches)return errors.push(invalidTimingValue()),{duration:0,delay:0,easing:""};duration=_convertTimeValueToMS(parseFloat(matches[1]),matches[2]);const delayMatch=matches[3];null!=delayMatch&&(delay2=_convertTimeValueToMS(parseFloat(delayMatch),matches[4]));const easingVal=matches[5];easingVal&&(easing=easingVal)}else duration=exp;if(!allowNegativeValues){let containsErrors=!1,startIndex=errors.length;duration<0&&(errors.push(function negativeStepValue(){return new RuntimeError(3100,!1)}()),containsErrors=!0),delay2<0&&(errors.push(function negativeDelayValue(){return new RuntimeError(3101,!1)}()),containsErrors=!0),containsErrors&&errors.splice(startIndex,0,invalidTimingValue())}return{duration,delay:delay2,easing}}(timings,errors,allowNegativeValues)}function setStyles(element,styles,formerStyles){styles.forEach((val,prop2)=>{const camelProp=dashCaseToCamelCase(prop2);formerStyles&&!formerStyles.has(prop2)&&formerStyles.set(prop2,element.style[camelProp]),element.style[camelProp]=val})}function eraseStyles(element,styles){styles.forEach((_,prop2)=>{const camelProp=dashCaseToCamelCase(prop2);element.style[camelProp]=""})}function normalizeAnimationEntry(steps){return Array.isArray(steps)?1==steps.length?steps[0]:function sequence(steps,options=null){return{type:AnimationMetadataType.Sequence,steps,options}}(steps):steps}const PARAM_REGEX=new RegExp("{{\\s*(.+?)\\s*}}","g");function extractStyleParams(value){let params=[];if("string"==typeof value){let match2;for(;match2=PARAM_REGEX.exec(value);)params.push(match2[1]);PARAM_REGEX.lastIndex=0}return params}function interpolateParams(value,params,errors){const original=`${value}`,str=original.replace(PARAM_REGEX,(_,varName)=>{let localVal=params[varName];return null==localVal&&(errors.push(function invalidParamValue(varName){return new RuntimeError(3003,!1)}()),localVal=""),localVal.toString()});return str==original?value:str}const DASH_CASE_REGEXP=/-+([a-z0-9])/g;function dashCaseToCamelCase(input2){return input2.replace(DASH_CASE_REGEXP,(...m2)=>m2[1].toUpperCase())}function visitDslNode(visitor,node2,context2){switch(node2.type){case AnimationMetadataType.Trigger:return visitor.visitTrigger(node2,context2);case AnimationMetadataType.State:return visitor.visitState(node2,context2);case AnimationMetadataType.Transition:return visitor.visitTransition(node2,context2);case AnimationMetadataType.Sequence:return visitor.visitSequence(node2,context2);case AnimationMetadataType.Group:return visitor.visitGroup(node2,context2);case AnimationMetadataType.Animate:return visitor.visitAnimate(node2,context2);case AnimationMetadataType.Keyframes:return visitor.visitKeyframes(node2,context2);case AnimationMetadataType.Style:return visitor.visitStyle(node2,context2);case AnimationMetadataType.Reference:return visitor.visitReference(node2,context2);case AnimationMetadataType.AnimateChild:return visitor.visitAnimateChild(node2,context2);case AnimationMetadataType.AnimateRef:return visitor.visitAnimateRef(node2,context2);case AnimationMetadataType.Query:return visitor.visitQuery(node2,context2);case AnimationMetadataType.Stagger:return visitor.visitStagger(node2,context2);default:throw function invalidNodeType(nodeType){return new RuntimeError(3004,!1)}()}}function computeStyle(element,prop2){return window.getComputedStyle(element)[prop2]}const DIMENSIONAL_PROP_SET=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer{normalizePropertyName(propertyName,errors){return dashCaseToCamelCase(propertyName)}normalizeStyleValue(userProvidedProperty,normalizedProperty,value,errors){let unit="";const strVal=value.toString().trim();if(DIMENSIONAL_PROP_SET.has(normalizedProperty)&&0!==value&&"0"!==value)if("number"==typeof value)unit="px";else{const valAndSuffixMatch=value.match(/^[+-]?[\d\.]+([a-z]*)$/);valAndSuffixMatch&&0==valAndSuffixMatch[1].length&&errors.push(function invalidCssUnitValue(userProvidedProperty,value){return new RuntimeError(3005,!1)}())}return strVal+unit}}const ANY_STATE="*";const TRUE_BOOLEAN_VALUES=new Set(["true","1"]),FALSE_BOOLEAN_VALUES=new Set(["false","0"]);function makeLambdaFromStates(lhs,rhs){const LHS_MATCH_BOOLEAN=TRUE_BOOLEAN_VALUES.has(lhs)||FALSE_BOOLEAN_VALUES.has(lhs),RHS_MATCH_BOOLEAN=TRUE_BOOLEAN_VALUES.has(rhs)||FALSE_BOOLEAN_VALUES.has(rhs);return(fromState,toState)=>{let lhsMatch=lhs==ANY_STATE||lhs==fromState,rhsMatch=rhs==ANY_STATE||rhs==toState;return!lhsMatch&&LHS_MATCH_BOOLEAN&&"boolean"==typeof fromState&&(lhsMatch=fromState?TRUE_BOOLEAN_VALUES.has(lhs):FALSE_BOOLEAN_VALUES.has(lhs)),!rhsMatch&&RHS_MATCH_BOOLEAN&&"boolean"==typeof toState&&(rhsMatch=toState?TRUE_BOOLEAN_VALUES.has(rhs):FALSE_BOOLEAN_VALUES.has(rhs)),lhsMatch&&rhsMatch}}const SELF_TOKEN_REGEX=new RegExp("s*:selfs*,?","g");function buildAnimationAst(driver,metadata,errors,warnings){return new AnimationAstBuilderVisitor(driver).build(metadata,errors,warnings)}class AnimationAstBuilderVisitor{constructor(_driver){this._driver=_driver}build(metadata,errors,warnings){const context2=new AnimationAstBuilderContext(errors);return this._resetContextStyleTimingState(context2),visitDslNode(this,normalizeAnimationEntry(metadata),context2)}_resetContextStyleTimingState(context2){context2.currentQuerySelector="",context2.collectedStyles=new Map,context2.collectedStyles.set("",new Map),context2.currentTime=0}visitTrigger(metadata,context2){let queryCount=context2.queryCount=0,depCount=context2.depCount=0;const states=[],transitions=[];return"@"==metadata.name.charAt(0)&&context2.errors.push(function invalidTrigger(){return new RuntimeError(3006,!1)}()),metadata.definitions.forEach(def=>{if(this._resetContextStyleTimingState(context2),def.type==AnimationMetadataType.State){const stateDef=def,name=stateDef.name;name.toString().split(/\s*,\s*/).forEach(n2=>{stateDef.name=n2,states.push(this.visitState(stateDef,context2))}),stateDef.name=name}else if(def.type==AnimationMetadataType.Transition){const transition2=this.visitTransition(def,context2);queryCount+=transition2.queryCount,depCount+=transition2.depCount,transitions.push(transition2)}else context2.errors.push(function invalidDefinition(){return new RuntimeError(3007,!1)}())}),{type:AnimationMetadataType.Trigger,name:metadata.name,states,transitions,queryCount,depCount,options:null}}visitState(metadata,context2){const styleAst=this.visitStyle(metadata.styles,context2),astParams=metadata.options&&metadata.options.params||null;if(styleAst.containsDynamicStyles){const missingSubs=new Set,params=astParams||{};styleAst.styles.forEach(style2=>{style2 instanceof Map&&style2.forEach(value=>{extractStyleParams(value).forEach(sub=>{params.hasOwnProperty(sub)||missingSubs.add(sub)})})}),missingSubs.size&&context2.errors.push(function invalidState(metadataName,missingSubs){return new RuntimeError(3008,!1)}(0,missingSubs.values()))}return{type:AnimationMetadataType.State,name:metadata.name,style:styleAst,options:astParams?{params:astParams}:null}}visitTransition(metadata,context2){context2.queryCount=0,context2.depCount=0;const animation2=visitDslNode(this,normalizeAnimationEntry(metadata.animation),context2),matchers=function parseTransitionExpr(transitionValue,errors){const expressions=[];return"string"==typeof transitionValue?transitionValue.split(/\s*,\s*/).forEach(str=>function parseInnerTransitionStr(eventStr,expressions,errors){if(":"==eventStr[0]){const result=function parseAnimationAlias(alias,errors){switch(alias){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(fromState,toState)=>parseFloat(toState)>parseFloat(fromState);case":decrement":return(fromState,toState)=>parseFloat(toState) *"}}(eventStr,errors);if("function"==typeof result)return void expressions.push(result);eventStr=result}const match2=eventStr.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==match2||match2.length<4)return errors.push(function invalidExpression(expr){return new RuntimeError(3015,!1)}()),expressions;const fromState=match2[1],separator=match2[2],toState=match2[3];expressions.push(makeLambdaFromStates(fromState,toState)),"<"==separator[0]&&(fromState!=ANY_STATE||toState!=ANY_STATE)&&expressions.push(makeLambdaFromStates(toState,fromState))}(str,expressions,errors)):expressions.push(transitionValue),expressions}(metadata.expr,context2.errors);return{type:AnimationMetadataType.Transition,matchers,animation:animation2,queryCount:context2.queryCount,depCount:context2.depCount,options:normalizeAnimationOptions(metadata.options)}}visitSequence(metadata,context2){return{type:AnimationMetadataType.Sequence,steps:metadata.steps.map(s=>visitDslNode(this,s,context2)),options:normalizeAnimationOptions(metadata.options)}}visitGroup(metadata,context2){const currentTime=context2.currentTime;let furthestTime=0;const steps=metadata.steps.map(step=>{context2.currentTime=currentTime;const innerAst=visitDslNode(this,step,context2);return furthestTime=Math.max(furthestTime,context2.currentTime),innerAst});return context2.currentTime=furthestTime,{type:AnimationMetadataType.Group,steps,options:normalizeAnimationOptions(metadata.options)}}visitAnimate(metadata,context2){const timingAst=function constructTimingAst(value,errors){if(value.hasOwnProperty("duration"))return value;if("number"==typeof value)return makeTimingAst(resolveTiming(value,errors).duration,0,"");const strValue=value;if(strValue.split(/\s+/).some(v=>"{"==v.charAt(0)&&"{"==v.charAt(1))){const ast=makeTimingAst(0,0,"");return ast.dynamic=!0,ast.strValue=strValue,ast}const timings=resolveTiming(strValue,errors);return makeTimingAst(timings.duration,timings.delay,timings.easing)}(metadata.timings,context2.errors);context2.currentAnimateTimings=timingAst;let styleAst,styleMetadata=metadata.styles?metadata.styles:animations_style({});if(styleMetadata.type==AnimationMetadataType.Keyframes)styleAst=this.visitKeyframes(styleMetadata,context2);else{let styleMetadata2=metadata.styles,isEmpty2=!1;if(!styleMetadata2){isEmpty2=!0;const newStyleData={};timingAst.easing&&(newStyleData.easing=timingAst.easing),styleMetadata2=animations_style(newStyleData)}context2.currentTime+=timingAst.duration+timingAst.delay;const _styleAst=this.visitStyle(styleMetadata2,context2);_styleAst.isEmptyStep=isEmpty2,styleAst=_styleAst}return context2.currentAnimateTimings=null,{type:AnimationMetadataType.Animate,timings:timingAst,style:styleAst,options:null}}visitStyle(metadata,context2){const ast=this._makeStyleAst(metadata,context2);return this._validateStyleAst(ast,context2),ast}_makeStyleAst(metadata,context2){const styles=[],metadataStyles=Array.isArray(metadata.styles)?metadata.styles:[metadata.styles];for(let styleTuple of metadataStyles)"string"==typeof styleTuple?"*"===styleTuple?styles.push(styleTuple):context2.errors.push(new RuntimeError(3002,!1)):styles.push(new Map(Object.entries(styleTuple)));let containsDynamicStyles=!1,collectedEasing=null;return styles.forEach(styleData=>{if(styleData instanceof Map&&(styleData.has("easing")&&(collectedEasing=styleData.get("easing"),styleData.delete("easing")),!containsDynamicStyles))for(let value of styleData.values())if(value.toString().indexOf("{{")>=0){containsDynamicStyles=!0;break}}),{type:AnimationMetadataType.Style,styles,easing:collectedEasing,offset:metadata.offset,containsDynamicStyles,options:null}}_validateStyleAst(ast,context2){const timings=context2.currentAnimateTimings;let endTime=context2.currentTime,startTime=context2.currentTime;timings&&startTime>0&&(startTime-=timings.duration+timings.delay),ast.styles.forEach(tuple=>{"string"!=typeof tuple&&tuple.forEach((value,prop2)=>{const collectedStyles=context2.collectedStyles.get(context2.currentQuerySelector),collectedEntry=collectedStyles.get(prop2);let updateCollectedStyle=!0;collectedEntry&&(startTime!=endTime&&startTime>=collectedEntry.startTime&&endTime<=collectedEntry.endTime&&(context2.errors.push(function invalidParallelAnimation(prop2,firstStart,firstEnd,secondStart,secondEnd){return new RuntimeError(3010,!1)}()),updateCollectedStyle=!1),startTime=collectedEntry.startTime),updateCollectedStyle&&collectedStyles.set(prop2,{startTime,endTime}),context2.options&&function validateStyleParams(value,options,errors){const params=options.params||{},matches=extractStyleParams(value);matches.length&&matches.forEach(varName=>{params.hasOwnProperty(varName)||errors.push(function invalidStyleParams(varName){return new RuntimeError(3001,!1)}())})}(value,context2.options,context2.errors)})})}visitKeyframes(metadata,context2){const ast={type:AnimationMetadataType.Keyframes,styles:[],options:null};if(!context2.currentAnimateTimings)return context2.errors.push(function invalidKeyframes(){return new RuntimeError(3011,!1)}()),ast;let totalKeyframesWithOffsets=0;const offsets=[];let offsetsOutOfOrder=!1,keyframesOutOfRange=!1,previousOffset=0;const keyframes2=metadata.steps.map(styles=>{const style2=this._makeStyleAst(styles,context2);let offsetVal=null!=style2.offset?style2.offset:function consumeOffset(styles){if("string"==typeof styles)return null;let offset=null;if(Array.isArray(styles))styles.forEach(styleTuple=>{if(styleTuple instanceof Map&&styleTuple.has("offset")){const obj=styleTuple;offset=parseFloat(obj.get("offset")),obj.delete("offset")}});else if(styles instanceof Map&&styles.has("offset")){const obj=styles;offset=parseFloat(obj.get("offset")),obj.delete("offset")}return offset}(style2.styles),offset=0;return null!=offsetVal&&(totalKeyframesWithOffsets++,offset=style2.offset=offsetVal),keyframesOutOfRange=keyframesOutOfRange||offset<0||offset>1,offsetsOutOfOrder=offsetsOutOfOrder||offset0&&totalKeyframesWithOffsets{const offset=generatedOffset>0?i==limit?1:generatedOffset*i:offsets[i],durationUpToThisFrame=offset*animateDuration;context2.currentTime=currentTime+currentAnimateTimings.delay+durationUpToThisFrame,currentAnimateTimings.duration=durationUpToThisFrame,this._validateStyleAst(kf,context2),kf.offset=offset,ast.styles.push(kf)}),ast}visitReference(metadata,context2){return{type:AnimationMetadataType.Reference,animation:visitDslNode(this,normalizeAnimationEntry(metadata.animation),context2),options:normalizeAnimationOptions(metadata.options)}}visitAnimateChild(metadata,context2){return context2.depCount++,{type:AnimationMetadataType.AnimateChild,options:normalizeAnimationOptions(metadata.options)}}visitAnimateRef(metadata,context2){return{type:AnimationMetadataType.AnimateRef,animation:this.visitReference(metadata.animation,context2),options:normalizeAnimationOptions(metadata.options)}}visitQuery(metadata,context2){const parentSelector=context2.currentQuerySelector,options=metadata.options||{};context2.queryCount++,context2.currentQuery=metadata;const[selector,includeSelf]=function normalizeSelector(selector){const hasAmpersand=!!selector.split(/\s*,\s*/).find(token=>":self"==token);return hasAmpersand&&(selector=selector.replace(SELF_TOKEN_REGEX,"")),[selector=selector.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,match2=>".ng-trigger-"+match2.slice(1)).replace(/:animating/g,".ng-animating"),hasAmpersand]}(metadata.selector);context2.currentQuerySelector=parentSelector.length?parentSelector+" "+selector:selector,getOrSetDefaultValue(context2.collectedStyles,context2.currentQuerySelector,new Map);const animation2=visitDslNode(this,normalizeAnimationEntry(metadata.animation),context2);return context2.currentQuery=null,context2.currentQuerySelector=parentSelector,{type:AnimationMetadataType.Query,selector,limit:options.limit||0,optional:!!options.optional,includeSelf,animation:animation2,originalSelector:metadata.selector,options:normalizeAnimationOptions(metadata.options)}}visitStagger(metadata,context2){context2.currentQuery||context2.errors.push(function invalidStagger(){return new RuntimeError(3013,!1)}());const timings="full"===metadata.timings?{duration:0,delay:0,easing:"full"}:resolveTiming(metadata.timings,context2.errors,!0);return{type:AnimationMetadataType.Stagger,animation:visitDslNode(this,normalizeAnimationEntry(metadata.animation),context2),timings,options:null}}}class AnimationAstBuilderContext{constructor(errors){this.errors=errors,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function normalizeAnimationOptions(options){return options?(options={...options}).params&&(options.params=function normalizeParams(obj){return obj?{...obj}:null}(options.params)):options={},options}function makeTimingAst(duration,delay2,easing){return{duration,delay:delay2,easing}}function createTimelineInstruction(element,keyframes2,preStyleProps,postStyleProps,duration,delay2,easing=null,subTimeline=!1){return{type:1,element,keyframes:keyframes2,preStyleProps,postStyleProps,duration,delay:delay2,totalTime:duration+delay2,easing,subTimeline}}class ElementInstructionMap{constructor(){this._map=new Map}get(element){return this._map.get(element)||[]}append(element,instructions){let existingInstructions=this._map.get(element);existingInstructions||this._map.set(element,existingInstructions=[]),existingInstructions.push(...instructions)}has(element){return this._map.has(element)}clear(){this._map.clear()}}const ENTER_TOKEN_REGEX=new RegExp(":enter","g"),LEAVE_TOKEN_REGEX=new RegExp(":leave","g");function buildAnimationTimelines(driver,rootElement,ast,enterClassName,leaveClassName,startingStyles=new Map,finalStyles=new Map,options,subInstructions,errors=[]){return(new AnimationTimelineBuilderVisitor).buildKeyframes(driver,rootElement,ast,enterClassName,leaveClassName,startingStyles,finalStyles,options,subInstructions,errors)}class AnimationTimelineBuilderVisitor{buildKeyframes(driver,rootElement,ast,enterClassName,leaveClassName,startingStyles,finalStyles,options,subInstructions,errors=[]){subInstructions=subInstructions||new ElementInstructionMap;const context2=new AnimationTimelineContext(driver,rootElement,subInstructions,enterClassName,leaveClassName,errors,[]);context2.options=options;const delay2=options.delay?resolveTimingValue(options.delay):0;context2.currentTimeline.delayNextStep(delay2),context2.currentTimeline.setStyles([startingStyles],null,context2.errors,options),visitDslNode(this,ast,context2);const timelines=context2.timelines.filter(timeline=>timeline.containsAnimation());if(timelines.length&&finalStyles.size){let lastRootTimeline;for(let i=timelines.length-1;i>=0;i--){const timeline=timelines[i];if(timeline.element===rootElement){lastRootTimeline=timeline;break}}lastRootTimeline&&!lastRootTimeline.allowOnlyTimelineStyles()&&lastRootTimeline.setStyles([finalStyles],null,context2.errors,options)}return timelines.length?timelines.map(timeline=>timeline.buildKeyframes()):[createTimelineInstruction(rootElement,[],[],[],0,delay2,"",!1)]}visitTrigger(ast,context2){}visitState(ast,context2){}visitTransition(ast,context2){}visitAnimateChild(ast,context2){const elementInstructions=context2.subInstructions.get(context2.element);if(elementInstructions){const innerContext=context2.createSubContext(ast.options),startTime=context2.currentTimeline.currentTime,endTime=this._visitSubInstructions(elementInstructions,innerContext,innerContext.options);startTime!=endTime&&context2.transformIntoNewTimeline(endTime)}context2.previousNode=ast}visitAnimateRef(ast,context2){const innerContext=context2.createSubContext(ast.options);innerContext.transformIntoNewTimeline(),this._applyAnimationRefDelays([ast.options,ast.animation.options],context2,innerContext),this.visitReference(ast.animation,innerContext),context2.transformIntoNewTimeline(innerContext.currentTimeline.currentTime),context2.previousNode=ast}_applyAnimationRefDelays(animationsRefsOptions,context2,innerContext){for(const animationRefOptions of animationsRefsOptions){const animationDelay=animationRefOptions?.delay;if(animationDelay){const animationDelayValue="number"==typeof animationDelay?animationDelay:resolveTimingValue(interpolateParams(animationDelay,animationRefOptions?.params??{},context2.errors));innerContext.delayNextStep(animationDelayValue)}}}_visitSubInstructions(instructions,context2,options){let furthestTime=context2.currentTimeline.currentTime;const duration=null!=options.duration?resolveTimingValue(options.duration):null,delay2=null!=options.delay?resolveTimingValue(options.delay):null;return 0!==duration&&instructions.forEach(instruction=>{const instructionTimings=context2.appendInstructionToTimeline(instruction,duration,delay2);furthestTime=Math.max(furthestTime,instructionTimings.duration+instructionTimings.delay)}),furthestTime}visitReference(ast,context2){context2.updateOptions(ast.options,!0),visitDslNode(this,ast.animation,context2),context2.previousNode=ast}visitSequence(ast,context2){const subContextCount=context2.subContextCount;let ctx=context2;const options=ast.options;if(options&&(options.params||options.delay)&&(ctx=context2.createSubContext(options),ctx.transformIntoNewTimeline(),null!=options.delay)){ctx.previousNode.type==AnimationMetadataType.Style&&(ctx.currentTimeline.snapshotCurrentStyles(),ctx.previousNode=DEFAULT_NOOP_PREVIOUS_NODE);const delay2=resolveTimingValue(options.delay);ctx.delayNextStep(delay2)}ast.steps.length&&(ast.steps.forEach(s=>visitDslNode(this,s,ctx)),ctx.currentTimeline.applyStylesToKeyframe(),ctx.subContextCount>subContextCount&&ctx.transformIntoNewTimeline()),context2.previousNode=ast}visitGroup(ast,context2){const innerTimelines=[];let furthestTime=context2.currentTimeline.currentTime;const delay2=ast.options&&ast.options.delay?resolveTimingValue(ast.options.delay):0;ast.steps.forEach(s=>{const innerContext=context2.createSubContext(ast.options);delay2&&innerContext.delayNextStep(delay2),visitDslNode(this,s,innerContext),furthestTime=Math.max(furthestTime,innerContext.currentTimeline.currentTime),innerTimelines.push(innerContext.currentTimeline)}),innerTimelines.forEach(timeline=>context2.currentTimeline.mergeTimelineCollectedStyles(timeline)),context2.transformIntoNewTimeline(furthestTime),context2.previousNode=ast}_visitTiming(ast,context2){if(ast.dynamic){const strValue=ast.strValue;return resolveTiming(context2.params?interpolateParams(strValue,context2.params,context2.errors):strValue,context2.errors)}return{duration:ast.duration,delay:ast.delay,easing:ast.easing}}visitAnimate(ast,context2){const timings=context2.currentAnimateTimings=this._visitTiming(ast.timings,context2),timeline=context2.currentTimeline;timings.delay&&(context2.incrementTime(timings.delay),timeline.snapshotCurrentStyles());const style2=ast.style;style2.type==AnimationMetadataType.Keyframes?this.visitKeyframes(style2,context2):(context2.incrementTime(timings.duration),this.visitStyle(style2,context2),timeline.applyStylesToKeyframe()),context2.currentAnimateTimings=null,context2.previousNode=ast}visitStyle(ast,context2){const timeline=context2.currentTimeline,timings=context2.currentAnimateTimings;!timings&&timeline.hasCurrentStyleProperties()&&timeline.forwardFrame();const easing=timings&&timings.easing||ast.easing;ast.isEmptyStep?timeline.applyEmptyStep(easing):timeline.setStyles(ast.styles,easing,context2.errors,context2.options),context2.previousNode=ast}visitKeyframes(ast,context2){const currentAnimateTimings=context2.currentAnimateTimings,startTime=context2.currentTimeline.duration,duration=currentAnimateTimings.duration,innerTimeline=context2.createSubContext().currentTimeline;innerTimeline.easing=currentAnimateTimings.easing,ast.styles.forEach(step=>{innerTimeline.forwardTime((step.offset||0)*duration),innerTimeline.setStyles(step.styles,step.easing,context2.errors,context2.options),innerTimeline.applyStylesToKeyframe()}),context2.currentTimeline.mergeTimelineCollectedStyles(innerTimeline),context2.transformIntoNewTimeline(startTime+duration),context2.previousNode=ast}visitQuery(ast,context2){const startTime=context2.currentTimeline.currentTime,options=ast.options||{},delay2=options.delay?resolveTimingValue(options.delay):0;delay2&&(context2.previousNode.type===AnimationMetadataType.Style||0==startTime&&context2.currentTimeline.hasCurrentStyleProperties())&&(context2.currentTimeline.snapshotCurrentStyles(),context2.previousNode=DEFAULT_NOOP_PREVIOUS_NODE);let furthestTime=startTime;const elms=context2.invokeQuery(ast.selector,ast.originalSelector,ast.limit,ast.includeSelf,!!options.optional,context2.errors);context2.currentQueryTotal=elms.length;let sameElementTimeline=null;elms.forEach((element,i)=>{context2.currentQueryIndex=i;const innerContext=context2.createSubContext(ast.options,element);delay2&&innerContext.delayNextStep(delay2),element===context2.element&&(sameElementTimeline=innerContext.currentTimeline),visitDslNode(this,ast.animation,innerContext),innerContext.currentTimeline.applyStylesToKeyframe(),furthestTime=Math.max(furthestTime,innerContext.currentTimeline.currentTime)}),context2.currentQueryIndex=0,context2.currentQueryTotal=0,context2.transformIntoNewTimeline(furthestTime),sameElementTimeline&&(context2.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline),context2.currentTimeline.snapshotCurrentStyles()),context2.previousNode=ast}visitStagger(ast,context2){const parentContext=context2.parentContext,tl=context2.currentTimeline,timings=ast.timings,duration=Math.abs(timings.duration),maxTime=duration*(context2.currentQueryTotal-1);let delay2=duration*context2.currentQueryIndex;switch(timings.duration<0?"reverse":timings.easing){case"reverse":delay2=maxTime-delay2;break;case"full":delay2=parentContext.currentStaggerTime}const timeline=context2.currentTimeline;delay2&&timeline.delayNextStep(delay2);const startingTime=timeline.currentTime;visitDslNode(this,ast.animation,context2),context2.previousNode=ast,parentContext.currentStaggerTime=tl.currentTime-startingTime+(tl.startTime-parentContext.currentTimeline.startTime)}}const DEFAULT_NOOP_PREVIOUS_NODE={};class AnimationTimelineContext{constructor(_driver,element,subInstructions,_enterClassName,_leaveClassName,errors,timelines,initialTimeline){this._driver=_driver,this.element=element,this.subInstructions=subInstructions,this._enterClassName=_enterClassName,this._leaveClassName=_leaveClassName,this.errors=errors,this.timelines=timelines,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=DEFAULT_NOOP_PREVIOUS_NODE,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=initialTimeline||new TimelineBuilder(this._driver,element,0),timelines.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(options,skipIfExists){if(!options)return;const newOptions=options;let optionsToUpdate=this.options;null!=newOptions.duration&&(optionsToUpdate.duration=resolveTimingValue(newOptions.duration)),null!=newOptions.delay&&(optionsToUpdate.delay=resolveTimingValue(newOptions.delay));const newParams=newOptions.params;if(newParams){let paramsToUpdate=optionsToUpdate.params;paramsToUpdate||(paramsToUpdate=this.options.params={}),Object.keys(newParams).forEach(name=>{(!skipIfExists||!paramsToUpdate.hasOwnProperty(name))&&(paramsToUpdate[name]=interpolateParams(newParams[name],paramsToUpdate,this.errors))})}}_copyOptions(){const options={};if(this.options){const oldParams=this.options.params;if(oldParams){const params=options.params={};Object.keys(oldParams).forEach(name=>{params[name]=oldParams[name]})}}return options}createSubContext(options=null,element,newTime){const target=element||this.element,context2=new AnimationTimelineContext(this._driver,target,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(target,newTime||0));return context2.previousNode=this.previousNode,context2.currentAnimateTimings=this.currentAnimateTimings,context2.options=this._copyOptions(),context2.updateOptions(options),context2.currentQueryIndex=this.currentQueryIndex,context2.currentQueryTotal=this.currentQueryTotal,context2.parentContext=this,this.subContextCount++,context2}transformIntoNewTimeline(newTime){return this.previousNode=DEFAULT_NOOP_PREVIOUS_NODE,this.currentTimeline=this.currentTimeline.fork(this.element,newTime),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(instruction,duration,delay2){const updatedTimings={duration:duration??instruction.duration,delay:this.currentTimeline.currentTime+(delay2??0)+instruction.delay,easing:""},builder=new SubTimelineBuilder(this._driver,instruction.element,instruction.keyframes,instruction.preStyleProps,instruction.postStyleProps,updatedTimings,instruction.stretchStartingKeyframe);return this.timelines.push(builder),updatedTimings}incrementTime(time){this.currentTimeline.forwardTime(this.currentTimeline.duration+time)}delayNextStep(delay2){delay2>0&&this.currentTimeline.delayNextStep(delay2)}invokeQuery(selector,originalSelector,limit,includeSelf,optional,errors){let results=[];if(includeSelf&&results.push(this.element),selector.length>0){selector=(selector=selector.replace(ENTER_TOKEN_REGEX,"."+this._enterClassName)).replace(LEAVE_TOKEN_REGEX,"."+this._leaveClassName);let elements=this._driver.query(this.element,selector,1!=limit);0!==limit&&(elements=limit<0?elements.slice(elements.length+limit,elements.length):elements.slice(0,limit)),results.push(...elements)}return!optional&&0==results.length&&errors.push(function invalidQuery(selector){return new RuntimeError(3014,!1)}()),results}}class TimelineBuilder{constructor(_driver,element,startTime,_elementTimelineStylesLookup){this._driver=_driver,this.element=element,this.startTime=startTime,this._elementTimelineStylesLookup=_elementTimelineStylesLookup,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(element),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(element,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(delay2){const hasPreStyleStep=1===this._keyframes.size&&this._pendingStyles.size;this.duration||hasPreStyleStep?(this.forwardTime(this.currentTime+delay2),hasPreStyleStep&&this.snapshotCurrentStyles()):this.startTime+=delay2}fork(element,currentTime){return this.applyStylesToKeyframe(),new TimelineBuilder(this._driver,element,currentTime||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(time){this.applyStylesToKeyframe(),this.duration=time,this._loadKeyframe()}_updateStyle(prop2,value){this._localTimelineStyles.set(prop2,value),this._globalTimelineStyles.set(prop2,value),this._styleSummary.set(prop2,{time:this.currentTime,value})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(easing){easing&&this._previousKeyframe.set("easing",easing);for(let[prop2,value]of this._globalTimelineStyles)this._backFill.set(prop2,value||"*"),this._currentKeyframe.set(prop2,"*");this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(input2,easing,errors,options){easing&&this._previousKeyframe.set("easing",easing);const params=options&&options.params||{},styles=function flattenStyles(input2,allStyles){const styles=new Map;let allProperties;return input2.forEach(token=>{if("*"===token){allProperties??=allStyles.keys();for(let prop2 of allProperties)styles.set(prop2,"*")}else for(let[prop2,val]of token)styles.set(prop2,val)}),styles}(input2,this._globalTimelineStyles);for(let[prop2,value]of styles){const val=interpolateParams(value,params,errors);this._pendingStyles.set(prop2,val),this._localTimelineStyles.has(prop2)||this._backFill.set(prop2,this._globalTimelineStyles.get(prop2)??"*"),this._updateStyle(prop2,val)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((val,prop2)=>{this._currentKeyframe.set(prop2,val)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((val,prop2)=>{this._currentKeyframe.has(prop2)||this._currentKeyframe.set(prop2,val)}))}snapshotCurrentStyles(){for(let[prop2,val]of this._localTimelineStyles)this._pendingStyles.set(prop2,val),this._updateStyle(prop2,val)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const properties=[];for(let prop2 in this._currentKeyframe)properties.push(prop2);return properties}mergeTimelineCollectedStyles(timeline){timeline._styleSummary.forEach((details1,prop2)=>{const details0=this._styleSummary.get(prop2);(!details0||details1.time>details0.time)&&this._updateStyle(prop2,details1.value)})}buildKeyframes(){this.applyStylesToKeyframe();const preStyleProps=new Set,postStyleProps=new Set,isEmpty2=1===this._keyframes.size&&0===this.duration;let finalKeyframes=[];this._keyframes.forEach((keyframe,time)=>{const finalKeyframe=new Map([...this._backFill,...keyframe]);finalKeyframe.forEach((value,prop2)=>{"!"===value?preStyleProps.add(prop2):"*"===value&&postStyleProps.add(prop2)}),isEmpty2||finalKeyframe.set("offset",time/this.duration),finalKeyframes.push(finalKeyframe)});const preProps=[...preStyleProps.values()],postProps=[...postStyleProps.values()];if(isEmpty2){const kf0=finalKeyframes[0],kf1=new Map(kf0);kf0.set("offset",0),kf1.set("offset",1),finalKeyframes=[kf0,kf1]}return createTimelineInstruction(this.element,finalKeyframes,preProps,postProps,this.duration,this.startTime,this.easing,!1)}}class SubTimelineBuilder extends TimelineBuilder{constructor(driver,element,keyframes2,preStyleProps,postStyleProps,timings,_stretchStartingKeyframe=!1){super(driver,element,timings.delay),this.keyframes=keyframes2,this.preStyleProps=preStyleProps,this.postStyleProps=postStyleProps,this._stretchStartingKeyframe=_stretchStartingKeyframe,this.timings={duration:timings.duration,delay:timings.delay,easing:timings.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let keyframes2=this.keyframes,{delay:delay2,duration,easing}=this.timings;if(this._stretchStartingKeyframe&&delay2){const newKeyframes=[],totalTime=duration+delay2,startingGap=delay2/totalTime,newFirstKeyframe=new Map(keyframes2[0]);newFirstKeyframe.set("offset",0),newKeyframes.push(newFirstKeyframe);const oldFirstKeyframe=new Map(keyframes2[0]);oldFirstKeyframe.set("offset",roundOffset(startingGap)),newKeyframes.push(oldFirstKeyframe);const limit=keyframes2.length-1;for(let i=1;i<=limit;i++){let kf=new Map(keyframes2[i]);const oldOffset=kf.get("offset");kf.set("offset",roundOffset((delay2+oldOffset*duration)/totalTime)),newKeyframes.push(kf)}duration=totalTime,delay2=0,easing="",keyframes2=newKeyframes}return createTimelineInstruction(this.element,keyframes2,this.preStyleProps,this.postStyleProps,duration,delay2,easing,!0)}}function roundOffset(offset,decimalPoints=3){const mult=Math.pow(10,decimalPoints-1);return Math.round(offset*mult)/mult}function createTransitionInstruction(element,triggerName,fromState,toState,isRemovalTransition,fromStyles,toStyles,timelines,queriedElements,preStyleProps,postStyleProps,totalTime,errors){return{type:0,element,triggerName,isRemovalTransition,fromState,fromStyles,toState,toStyles,timelines,queriedElements,preStyleProps,postStyleProps,totalTime,errors}}const EMPTY_OBJECT={};class AnimationTransitionFactory{constructor(_triggerName,ast,_stateStyles){this._triggerName=_triggerName,this.ast=ast,this._stateStyles=_stateStyles}match(currentState,nextState,element,params){return function oneOrMoreTransitionsMatch(matchFns,currentState,nextState,element,params){return matchFns.some(fn=>fn(currentState,nextState,element,params))}(this.ast.matchers,currentState,nextState,element,params)}buildStyles(stateName,params,errors){let styler=this._stateStyles.get("*");return void 0!==stateName&&(styler=this._stateStyles.get(stateName?.toString())||styler),styler?styler.buildStyles(params,errors):new Map}build(driver,element,currentState,nextState,enterClassName,leaveClassName,currentOptions,nextOptions,subInstructions,skipAstBuild){const errors=[],transitionAnimationParams=this.ast.options&&this.ast.options.params||EMPTY_OBJECT,currentStateStyles=this.buildStyles(currentState,currentOptions&¤tOptions.params||EMPTY_OBJECT,errors),nextAnimationParams=nextOptions&&nextOptions.params||EMPTY_OBJECT,nextStateStyles=this.buildStyles(nextState,nextAnimationParams,errors),queriedElements=new Set,preStyleMap=new Map,postStyleMap=new Map,isRemoval="void"===nextState,animationOptions={params:applyParamDefaults(nextAnimationParams,transitionAnimationParams),delay:this.ast.options?.delay},timelines=skipAstBuild?[]:buildAnimationTimelines(driver,element,this.ast.animation,enterClassName,leaveClassName,currentStateStyles,nextStateStyles,animationOptions,subInstructions,errors);let totalTime=0;return timelines.forEach(tl=>{totalTime=Math.max(tl.duration+tl.delay,totalTime)}),errors.length?createTransitionInstruction(element,this._triggerName,currentState,nextState,isRemoval,currentStateStyles,nextStateStyles,[],[],preStyleMap,postStyleMap,totalTime,errors):(timelines.forEach(tl=>{const elm=tl.element,preProps=getOrSetDefaultValue(preStyleMap,elm,new Set);tl.preStyleProps.forEach(prop2=>preProps.add(prop2));const postProps=getOrSetDefaultValue(postStyleMap,elm,new Set);tl.postStyleProps.forEach(prop2=>postProps.add(prop2)),elm!==element&&queriedElements.add(elm)}),createTransitionInstruction(element,this._triggerName,currentState,nextState,isRemoval,currentStateStyles,nextStateStyles,timelines,[...queriedElements.values()],preStyleMap,postStyleMap,totalTime))}}function applyParamDefaults(userParams,defaults2){const result={...defaults2};return Object.entries(userParams).forEach(([key,value])=>{null!=value&&(result[key]=value)}),result}class AnimationStateStyles{constructor(styles,defaultParams,normalizer){this.styles=styles,this.defaultParams=defaultParams,this.normalizer=normalizer}buildStyles(params,errors){const finalStyles=new Map,combinedParams=applyParamDefaults(params,this.defaultParams);return this.styles.styles.forEach(value=>{"string"!=typeof value&&value.forEach((val,prop2)=>{val&&(val=interpolateParams(val,combinedParams,errors));const normalizedProp=this.normalizer.normalizePropertyName(prop2,errors);val=this.normalizer.normalizeStyleValue(prop2,normalizedProp,val,errors),finalStyles.set(prop2,val)})}),finalStyles}}class AnimationTrigger{constructor(name,ast,_normalizer){this.name=name,this.ast=ast,this._normalizer=_normalizer,this.transitionFactories=[],this.states=new Map,ast.states.forEach(ast2=>{this.states.set(ast2.name,new AnimationStateStyles(ast2.style,ast2.options&&ast2.options.params||{},_normalizer))}),balanceProperties(this.states,"true","1"),balanceProperties(this.states,"false","0"),ast.transitions.forEach(ast2=>{this.transitionFactories.push(new AnimationTransitionFactory(name,ast2,this.states))}),this.fallbackTransition=function createFallbackTransition(triggerName,states,normalizer){return new AnimationTransitionFactory(triggerName,{type:AnimationMetadataType.Transition,animation:{type:AnimationMetadataType.Sequence,steps:[],options:null},matchers:[(fromState,toState)=>!0],options:null,queryCount:0,depCount:0},states)}(name,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(currentState,nextState,element,params){return this.transitionFactories.find(f=>f.match(currentState,nextState,element,params))||null}matchStyles(currentState,params,errors){return this.fallbackTransition.buildStyles(currentState,params,errors)}}function balanceProperties(stateMap,key1,key2){stateMap.has(key1)?stateMap.has(key2)||stateMap.set(key2,stateMap.get(key1)):stateMap.has(key2)&&stateMap.set(key1,stateMap.get(key2))}const EMPTY_INSTRUCTION_MAP=new ElementInstructionMap;class TimelineAnimationEngine{constructor(bodyNode,_driver,_normalizer){this.bodyNode=bodyNode,this._driver=_driver,this._normalizer=_normalizer,this._animations=new Map,this._playersById=new Map,this.players=[]}register(id,metadata){const errors=[],ast=buildAnimationAst(this._driver,metadata,errors,[]);if(errors.length)throw function registerFailed(errors){return new RuntimeError(3503,!1)}();this._animations.set(id,ast)}_buildPlayer(i,preStyles,postStyles){const element=i.element,keyframes2=normalizeKeyframes$1(this._normalizer,i.keyframes,preStyles,postStyles);return this._driver.animate(element,keyframes2,i.duration,i.delay,i.easing,[],!0)}create(id,element,options={}){const errors=[],ast=this._animations.get(id);let instructions;const autoStylesMap=new Map;if(ast?(instructions=buildAnimationTimelines(this._driver,element,ast,"ng-enter","ng-leave",new Map,new Map,options,EMPTY_INSTRUCTION_MAP,errors),instructions.forEach(inst=>{const styles=getOrSetDefaultValue(autoStylesMap,inst.element,new Map);inst.postStyleProps.forEach(prop2=>styles.set(prop2,null))})):(errors.push(function missingOrDestroyedAnimation(){return new RuntimeError(3300,!1)}()),instructions=[]),errors.length)throw function createAnimationFailed(errors){return new RuntimeError(3504,!1)}();autoStylesMap.forEach((styles,element2)=>{styles.forEach((_,prop2)=>{styles.set(prop2,this._driver.computeStyle(element2,prop2,"*"))})});const player=optimizeGroupPlayer(instructions.map(i=>{const styles=autoStylesMap.get(i.element);return this._buildPlayer(i,new Map,styles)}));return this._playersById.set(id,player),player.onDestroy(()=>this.destroy(id)),this.players.push(player),player}destroy(id){const player=this._getPlayer(id);player.destroy(),this._playersById.delete(id);const index=this.players.indexOf(player);index>=0&&this.players.splice(index,1)}_getPlayer(id){const player=this._playersById.get(id);if(!player)throw function missingPlayer(id){return new RuntimeError(3301,!1)}();return player}listen(id,element,eventName,callback){const baseEvent=makeAnimationEvent(element,"","","");return listenOnPlayer(this._getPlayer(id),eventName,baseEvent,callback),()=>{}}command(id,element,command,args){if("register"==command)return void this.register(id,args[0]);if("create"==command)return void this.create(id,element,args[0]||{});const player=this._getPlayer(id);switch(command){case"play":player.play();break;case"pause":player.pause();break;case"reset":player.reset();break;case"restart":player.restart();break;case"finish":player.finish();break;case"init":player.init();break;case"setPosition":player.setPosition(parseFloat(args[0]));break;case"destroy":this.destroy(id)}}}const EMPTY_PLAYER_ARRAY=[],NULL_REMOVAL_STATE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NULL_REMOVED_QUERIED_STATE={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class StateValue{get params(){return this.options.params}constructor(input2,namespaceId=""){this.namespaceId=namespaceId;const isObj=input2&&input2.hasOwnProperty("value");if(this.value=function normalizeTriggerValue(value){return value??null}(isObj?input2.value:input2),isObj){const{value:value2,...options}=input2;this.options=options}else this.options={};this.options.params||(this.options.params={})}absorbOptions(options){const newParams=options.params;if(newParams){const oldParams=this.options.params;Object.keys(newParams).forEach(prop2=>{null==oldParams[prop2]&&(oldParams[prop2]=newParams[prop2])})}}}const DEFAULT_STATE_VALUE=new StateValue("void");class AnimationTransitionNamespace{constructor(id,hostElement,_engine){this.id=id,this.hostElement=hostElement,this._engine=_engine,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+id,addClass(hostElement,this._hostClassName)}listen(element,name,phase,callback){if(!this._triggers.has(name))throw function missingTrigger(phase,name){return new RuntimeError(3302,!1)}();if(null==phase||0==phase.length)throw function missingEvent(name){return new RuntimeError(3303,!1)}();if(!function isTriggerEventValid(eventName){return"start"==eventName||"done"==eventName}(phase))throw function unsupportedTriggerEvent(phase,name){return new RuntimeError(3400,!1)}();const listeners=getOrSetDefaultValue(this._elementListeners,element,[]),data={name,phase,callback};listeners.push(data);const triggersWithStates=getOrSetDefaultValue(this._engine.statesByElement,element,new Map);return triggersWithStates.has(name)||(addClass(element,"ng-trigger"),addClass(element,"ng-trigger-"+name),triggersWithStates.set(name,DEFAULT_STATE_VALUE)),()=>{this._engine.afterFlush(()=>{const index=listeners.indexOf(data);index>=0&&listeners.splice(index,1),this._triggers.has(name)||triggersWithStates.delete(name)})}}register(name,ast){return!this._triggers.has(name)&&(this._triggers.set(name,ast),!0)}_getTrigger(name){const trigger2=this._triggers.get(name);if(!trigger2)throw function unregisteredTrigger(name){return new RuntimeError(3401,!1)}();return trigger2}trigger(element,triggerName,value,defaultToFallback=!0){const trigger2=this._getTrigger(triggerName),player=new TransitionAnimationPlayer(this.id,triggerName,element);let triggersWithStates=this._engine.statesByElement.get(element);triggersWithStates||(addClass(element,"ng-trigger"),addClass(element,"ng-trigger-"+triggerName),this._engine.statesByElement.set(element,triggersWithStates=new Map));let fromState=triggersWithStates.get(triggerName);const toState=new StateValue(value,this.id);if(!(value&&value.hasOwnProperty("value"))&&fromState&&toState.absorbOptions(fromState.options),triggersWithStates.set(triggerName,toState),fromState||(fromState=DEFAULT_STATE_VALUE),"void"!==toState.value&&fromState.value===toState.value){if(!function objEquals(a,b){const k1=Object.keys(a),k2=Object.keys(b);if(k1.length!=k2.length)return!1;for(let i=0;i{eraseStyles(element,fromStyles),setStyles(element,toStyles)})}return}const playersOnElement=getOrSetDefaultValue(this._engine.playersByElement,element,[]);playersOnElement.forEach(player2=>{player2.namespaceId==this.id&&player2.triggerName==triggerName&&player2.queued&&player2.destroy()});let transition2=trigger2.matchTransition(fromState.value,toState.value,element,toState.params),isFallbackTransition=!1;if(!transition2){if(!defaultToFallback)return;transition2=trigger2.fallbackTransition,isFallbackTransition=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element,triggerName,transition:transition2,fromState,toState,player,isFallbackTransition}),isFallbackTransition||(addClass(element,"ng-animate-queued"),player.onStart(()=>{removeClass(element,"ng-animate-queued")})),player.onDone(()=>{let index=this.players.indexOf(player);index>=0&&this.players.splice(index,1);const players=this._engine.playersByElement.get(element);if(players){let index2=players.indexOf(player);index2>=0&&players.splice(index2,1)}}),this.players.push(player),playersOnElement.push(player),player}deregister(name){this._triggers.delete(name),this._engine.statesByElement.forEach(stateMap=>stateMap.delete(name)),this._elementListeners.forEach((listeners,element)=>{this._elementListeners.set(element,listeners.filter(entry=>entry.name!=name))})}clearElementCache(element){this._engine.statesByElement.delete(element),this._elementListeners.delete(element);const elementPlayers=this._engine.playersByElement.get(element);elementPlayers&&(elementPlayers.forEach(player=>player.destroy()),this._engine.playersByElement.delete(element))}_signalRemovalForInnerTriggers(rootElement,context2){const elements=this._engine.driver.query(rootElement,".ng-trigger",!0);elements.forEach(elm=>{if(elm.__ng_removed)return;const namespaces=this._engine.fetchNamespacesByElement(elm);namespaces.size?namespaces.forEach(ns=>ns.triggerLeaveAnimation(elm,context2,!1,!0)):this.clearElementCache(elm)}),this._engine.afterFlushAnimationsDone(()=>elements.forEach(elm=>this.clearElementCache(elm)))}triggerLeaveAnimation(element,context2,destroyAfterComplete,defaultToFallback){const triggerStates=this._engine.statesByElement.get(element),previousTriggersValues=new Map;if(triggerStates){const players=[];if(triggerStates.forEach((state2,triggerName)=>{if(previousTriggersValues.set(triggerName,state2.value),this._triggers.has(triggerName)){const player=this.trigger(element,triggerName,"void",defaultToFallback);player&&players.push(player)}}),players.length)return this._engine.markElementAsRemoved(this.id,element,!0,context2,previousTriggersValues),destroyAfterComplete&&optimizeGroupPlayer(players).onDone(()=>this._engine.processLeaveNode(element)),!0}return!1}prepareLeaveAnimationListeners(element){const listeners=this._elementListeners.get(element),elementStates=this._engine.statesByElement.get(element);if(listeners&&elementStates){const visitedTriggers=new Set;listeners.forEach(listener=>{const triggerName=listener.name;if(visitedTriggers.has(triggerName))return;visitedTriggers.add(triggerName);const transition2=this._triggers.get(triggerName).fallbackTransition,fromState=elementStates.get(triggerName)||DEFAULT_STATE_VALUE,toState=new StateValue("void"),player=new TransitionAnimationPlayer(this.id,triggerName,element);this._engine.totalQueuedPlayers++,this._queue.push({element,triggerName,transition:transition2,fromState,toState,player,isFallbackTransition:!0})})}}removeNode(element,context2){const engine=this._engine;if(element.childElementCount&&this._signalRemovalForInnerTriggers(element,context2),this.triggerLeaveAnimation(element,context2,!0))return;let containsPotentialParentTransition=!1;if(engine.totalAnimations){const currentPlayers=engine.players.length?engine.playersByQueriedElement.get(element):[];if(currentPlayers&¤tPlayers.length)containsPotentialParentTransition=!0;else{let parent=element;for(;parent=parent.parentNode;)if(engine.statesByElement.get(parent)){containsPotentialParentTransition=!0;break}}}if(this.prepareLeaveAnimationListeners(element),containsPotentialParentTransition)engine.markElementAsRemoved(this.id,element,!1,context2);else{const removalFlag=element.__ng_removed;(!removalFlag||removalFlag===NULL_REMOVAL_STATE)&&(engine.afterFlush(()=>this.clearElementCache(element)),engine.destroyInnerAnimations(element),engine._onRemovalComplete(element,context2))}}insertNode(element,parent){addClass(element,this._hostClassName)}drainQueuedTransitions(microtaskId){const instructions=[];return this._queue.forEach(entry=>{const player=entry.player;if(player.destroyed)return;const element=entry.element,listeners=this._elementListeners.get(element);listeners&&listeners.forEach(listener=>{if(listener.name==entry.triggerName){const baseEvent=makeAnimationEvent(element,entry.triggerName,entry.fromState.value,entry.toState.value);baseEvent._data=microtaskId,listenOnPlayer(entry.player,listener.phase,baseEvent,listener.callback)}}),player.markedForDestroy?this._engine.afterFlush(()=>{player.destroy()}):instructions.push(entry)}),this._queue=[],instructions.sort((a,b)=>{const d0=a.transition.ast.depCount,d1=b.transition.ast.depCount;return 0==d0||0==d1?d0-d1:this._engine.driver.containsElement(a.element,b.element)?1:-1})}destroy(context2){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,context2)}}class TransitionAnimationEngine{_onRemovalComplete(element,context2){this.onRemovalComplete(element,context2)}constructor(bodyNode,driver,_normalizer,scheduler){this.bodyNode=bodyNode,this.driver=driver,this._normalizer=_normalizer,this.scheduler=scheduler,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(element,context2)=>{}}get queuedPlayers(){const players=[];return this._namespaceList.forEach(ns=>{ns.players.forEach(player=>{player.queued&&players.push(player)})}),players}createNamespace(namespaceId,hostElement){const ns=new AnimationTransitionNamespace(namespaceId,hostElement,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,hostElement)?this._balanceNamespaceList(ns,hostElement):(this.newHostElements.set(hostElement,ns),this.collectEnterElement(hostElement)),this._namespaceLookup[namespaceId]=ns}_balanceNamespaceList(ns,hostElement){const namespaceList=this._namespaceList,namespacesByHostElement=this.namespacesByHostElement;if(namespaceList.length-1>=0){let found=!1,ancestor=this.driver.getParentElement(hostElement);for(;ancestor;){const ancestorNs=namespacesByHostElement.get(ancestor);if(ancestorNs){const index=namespaceList.indexOf(ancestorNs);namespaceList.splice(index+1,0,ns),found=!0;break}ancestor=this.driver.getParentElement(ancestor)}found||namespaceList.unshift(ns)}else namespaceList.push(ns);return namespacesByHostElement.set(hostElement,ns),ns}register(namespaceId,hostElement){let ns=this._namespaceLookup[namespaceId];return ns||(ns=this.createNamespace(namespaceId,hostElement)),ns}registerTrigger(namespaceId,name,trigger2){let ns=this._namespaceLookup[namespaceId];ns&&ns.register(name,trigger2)&&this.totalAnimations++}destroy(namespaceId,context2){namespaceId&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const ns=this._fetchNamespace(namespaceId);this.namespacesByHostElement.delete(ns.hostElement);const index=this._namespaceList.indexOf(ns);index>=0&&this._namespaceList.splice(index,1),ns.destroy(context2),delete this._namespaceLookup[namespaceId]}))}_fetchNamespace(id){return this._namespaceLookup[id]}fetchNamespacesByElement(element){const namespaces=new Set,elementStates=this.statesByElement.get(element);if(elementStates)for(let stateValue of elementStates.values())if(stateValue.namespaceId){const ns=this._fetchNamespace(stateValue.namespaceId);ns&&namespaces.add(ns)}return namespaces}trigger(namespaceId,element,name,value){if(isElementNode(element)){const ns=this._fetchNamespace(namespaceId);if(ns)return ns.trigger(element,name,value),!0}return!1}insertNode(namespaceId,element,parent,insertBefore){if(!isElementNode(element))return;const details=element.__ng_removed;if(details&&details.setForRemoval){details.setForRemoval=!1,details.setForMove=!0;const index=this.collectedLeaveElements.indexOf(element);index>=0&&this.collectedLeaveElements.splice(index,1)}if(namespaceId){const ns=this._fetchNamespace(namespaceId);ns&&ns.insertNode(element,parent)}insertBefore&&this.collectEnterElement(element)}collectEnterElement(element){this.collectedEnterElements.push(element)}markElementAsDisabled(element,value){value?this.disabledNodes.has(element)||(this.disabledNodes.add(element),addClass(element,"ng-animate-disabled")):this.disabledNodes.has(element)&&(this.disabledNodes.delete(element),removeClass(element,"ng-animate-disabled"))}removeNode(namespaceId,element,context2){if(isElementNode(element)){this.scheduler?.notify();const ns=namespaceId?this._fetchNamespace(namespaceId):null;ns?ns.removeNode(element,context2):this.markElementAsRemoved(namespaceId,element,!1,context2);const hostNS=this.namespacesByHostElement.get(element);hostNS&&hostNS.id!==namespaceId&&hostNS.removeNode(element,context2)}else this._onRemovalComplete(element,context2)}markElementAsRemoved(namespaceId,element,hasAnimation,context2,previousTriggersValues){this.collectedLeaveElements.push(element),element.__ng_removed={namespaceId,setForRemoval:context2,hasAnimation,removedBeforeQueried:!1,previousTriggersValues}}listen(namespaceId,element,name,phase,callback){return isElementNode(element)?this._fetchNamespace(namespaceId).listen(element,name,phase,callback):()=>{}}_buildInstruction(entry,subTimelines,enterClassName,leaveClassName,skipBuildAst){return entry.transition.build(this.driver,entry.element,entry.fromState.value,entry.toState.value,enterClassName,leaveClassName,entry.fromState.options,entry.toState.options,subTimelines,skipBuildAst)}destroyInnerAnimations(containerElement){let elements=this.driver.query(containerElement,".ng-trigger",!0);elements.forEach(element=>this.destroyActiveAnimationsForElement(element)),0!=this.playersByQueriedElement.size&&(elements=this.driver.query(containerElement,".ng-animating",!0),elements.forEach(element=>this.finishActiveQueriedAnimationOnElement(element)))}destroyActiveAnimationsForElement(element){const players=this.playersByElement.get(element);players&&players.forEach(player=>{player.queued?player.markedForDestroy=!0:player.destroy()})}finishActiveQueriedAnimationOnElement(element){const players=this.playersByQueriedElement.get(element);players&&players.forEach(player=>player.finish())}whenRenderingDone(){return new Promise(resolve=>{if(this.players.length)return optimizeGroupPlayer(this.players).onDone(()=>resolve());resolve()})}processLeaveNode(element){const details=element.__ng_removed;if(details&&details.setForRemoval){if(element.__ng_removed=NULL_REMOVAL_STATE,details.namespaceId){this.destroyInnerAnimations(element);const ns=this._fetchNamespace(details.namespaceId);ns&&ns.clearElementCache(element)}this._onRemovalComplete(element,details.setForRemoval)}element.classList?.contains("ng-animate-disabled")&&this.markElementAsDisabled(element,!1),this.driver.query(element,".ng-animate-disabled",!0).forEach(node2=>{this.markElementAsDisabled(node2,!1)})}flush(microtaskId=-1){let players=[];if(this.newHostElements.size&&(this.newHostElements.forEach((ns,element)=>this._balanceNamespaceList(ns,element)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ifn()),this._flushFns=[],this._whenQuietFns.length){const quietFns=this._whenQuietFns;this._whenQuietFns=[],players.length?optimizeGroupPlayer(players).onDone(()=>{quietFns.forEach(fn=>fn())}):quietFns.forEach(fn=>fn())}}reportError(errors){throw function triggerTransitionsFailed(errors){return new RuntimeError(3402,!1)}()}_flushAnimations(cleanupFns,microtaskId){const subTimelines=new ElementInstructionMap,skippedPlayers=[],skippedPlayersMap=new Map,queuedInstructions=[],queriedElements=new Map,allPreStyleElements=new Map,allPostStyleElements=new Map,disabledElementsSet=new Set;this.disabledNodes.forEach(node2=>{disabledElementsSet.add(node2);const nodesThatAreDisabled=this.driver.query(node2,".ng-animate-queued",!0);for(let i6=0;i6{const className="ng-enter"+i++;enterNodeMapIds.set(root,className),nodes.forEach(node2=>addClass(node2,className))});const allLeaveNodes=[],mergedLeaveNodes=new Set,leaveNodesWithoutAnimations=new Set;for(let i6=0;i6mergedLeaveNodes.add(elm)):leaveNodesWithoutAnimations.add(element))}const leaveNodeMapIds=new Map,leaveNodeMap=buildRootMap(allTriggerElements,Array.from(mergedLeaveNodes));leaveNodeMap.forEach((nodes,root)=>{const className="ng-leave"+i++;leaveNodeMapIds.set(root,className),nodes.forEach(node2=>addClass(node2,className))}),cleanupFns.push(()=>{enterNodeMap.forEach((nodes,root)=>{const className=enterNodeMapIds.get(root);nodes.forEach(node2=>removeClass(node2,className))}),leaveNodeMap.forEach((nodes,root)=>{const className=leaveNodeMapIds.get(root);nodes.forEach(node2=>removeClass(node2,className))}),allLeaveNodes.forEach(element=>{this.processLeaveNode(element)})});const allPlayers=[],erroneousTransitions=[];for(let i6=this._namespaceList.length-1;i6>=0;i6--)this._namespaceList[i6].drainQueuedTransitions(microtaskId).forEach(entry=>{const player=entry.player,element=entry.element;if(allPlayers.push(player),this.collectedEnterElements.length){const details=element.__ng_removed;if(details&&details.setForMove){if(details.previousTriggersValues&&details.previousTriggersValues.has(entry.triggerName)){const previousValue=details.previousTriggersValues.get(entry.triggerName),triggersWithStates=this.statesByElement.get(entry.element);if(triggersWithStates&&triggersWithStates.has(entry.triggerName)){const state2=triggersWithStates.get(entry.triggerName);state2.value=previousValue,triggersWithStates.set(entry.triggerName,state2)}}return void player.destroy()}}const nodeIsOrphaned=!bodyNode||!this.driver.containsElement(bodyNode,element),leaveClassName=leaveNodeMapIds.get(element),enterClassName=enterNodeMapIds.get(element),instruction=this._buildInstruction(entry,subTimelines,enterClassName,leaveClassName,nodeIsOrphaned);if(instruction.errors&&instruction.errors.length)return void erroneousTransitions.push(instruction);if(nodeIsOrphaned)return player.onStart(()=>eraseStyles(element,instruction.fromStyles)),player.onDestroy(()=>setStyles(element,instruction.toStyles)),void skippedPlayers.push(player);if(entry.isFallbackTransition)return player.onStart(()=>eraseStyles(element,instruction.fromStyles)),player.onDestroy(()=>setStyles(element,instruction.toStyles)),void skippedPlayers.push(player);const timelines=[];instruction.timelines.forEach(tl=>{tl.stretchStartingKeyframe=!0,this.disabledNodes.has(tl.element)||timelines.push(tl)}),instruction.timelines=timelines,subTimelines.append(element,instruction.timelines),queuedInstructions.push({instruction,player,element}),instruction.queriedElements.forEach(element2=>getOrSetDefaultValue(queriedElements,element2,[]).push(player)),instruction.preStyleProps.forEach((stringMap,element2)=>{if(stringMap.size){let setVal=allPreStyleElements.get(element2);setVal||allPreStyleElements.set(element2,setVal=new Set),stringMap.forEach((_,prop2)=>setVal.add(prop2))}}),instruction.postStyleProps.forEach((stringMap,element2)=>{let setVal=allPostStyleElements.get(element2);setVal||allPostStyleElements.set(element2,setVal=new Set),stringMap.forEach((_,prop2)=>setVal.add(prop2))})});if(erroneousTransitions.length){const errors=[];erroneousTransitions.forEach(instruction=>{errors.push(function transitionFailed(name,errors){return new RuntimeError(3505,!1)}())}),allPlayers.forEach(player=>player.destroy()),this.reportError(errors)}const allPreviousPlayersMap=new Map,animationElementMap=new Map;queuedInstructions.forEach(entry=>{const element=entry.element;subTimelines.has(element)&&(animationElementMap.set(element,element),this._beforeAnimationBuild(entry.player.namespaceId,entry.instruction,allPreviousPlayersMap))}),skippedPlayers.forEach(player=>{const element=player.element;this._getPreviousPlayers(element,!1,player.namespaceId,player.triggerName,null).forEach(prevPlayer=>{getOrSetDefaultValue(allPreviousPlayersMap,element,[]).push(prevPlayer),prevPlayer.destroy()})});const replaceNodes=allLeaveNodes.filter(node2=>replacePostStylesAsPre(node2,allPreStyleElements,allPostStyleElements)),postStylesMap=new Map;cloakAndComputeStyles(postStylesMap,this.driver,leaveNodesWithoutAnimations,allPostStyleElements,"*").forEach(node2=>{replacePostStylesAsPre(node2,allPreStyleElements,allPostStyleElements)&&replaceNodes.push(node2)});const preStylesMap=new Map;enterNodeMap.forEach((nodes,root)=>{cloakAndComputeStyles(preStylesMap,this.driver,new Set(nodes),allPreStyleElements,"!")}),replaceNodes.forEach(node2=>{const post=postStylesMap.get(node2),pre=preStylesMap.get(node2);postStylesMap.set(node2,new Map([...post?.entries()??[],...pre?.entries()??[]]))});const rootPlayers=[],subPlayers=[],NO_PARENT_ANIMATION_ELEMENT_DETECTED={};queuedInstructions.forEach(entry=>{const{element,player,instruction}=entry;if(subTimelines.has(element)){if(disabledElementsSet.has(element))return player.onDestroy(()=>setStyles(element,instruction.toStyles)),player.disabled=!0,player.overrideTotalTime(instruction.totalTime),void skippedPlayers.push(player);let parentWithAnimation=NO_PARENT_ANIMATION_ELEMENT_DETECTED;if(animationElementMap.size>1){let elm=element;const parentsToAdd=[];for(;elm=elm.parentNode;){const detectedParent=animationElementMap.get(elm);if(detectedParent){parentWithAnimation=detectedParent;break}parentsToAdd.push(elm)}parentsToAdd.forEach(parent=>animationElementMap.set(parent,parentWithAnimation))}const innerPlayer=this._buildAnimation(player.namespaceId,instruction,allPreviousPlayersMap,skippedPlayersMap,preStylesMap,postStylesMap);if(player.setRealPlayer(innerPlayer),parentWithAnimation===NO_PARENT_ANIMATION_ELEMENT_DETECTED)rootPlayers.push(player);else{const parentPlayers=this.playersByElement.get(parentWithAnimation);parentPlayers&&parentPlayers.length&&(player.parentPlayer=optimizeGroupPlayer(parentPlayers)),skippedPlayers.push(player)}}else eraseStyles(element,instruction.fromStyles),player.onDestroy(()=>setStyles(element,instruction.toStyles)),subPlayers.push(player),disabledElementsSet.has(element)&&skippedPlayers.push(player)}),subPlayers.forEach(player=>{const playersForElement=skippedPlayersMap.get(player.element);if(playersForElement&&playersForElement.length){const innerPlayer=optimizeGroupPlayer(playersForElement);player.setRealPlayer(innerPlayer)}}),skippedPlayers.forEach(player=>{player.parentPlayer?player.syncPlayerEvents(player.parentPlayer):player.destroy()});for(let i6=0;i6!p.destroyed);activePlayers.length?removeNodesAfterAnimationDone(this,element,activePlayers):this.processLeaveNode(element)}return allLeaveNodes.length=0,rootPlayers.forEach(player=>{this.players.push(player),player.onDone(()=>{player.destroy();const index=this.players.indexOf(player);this.players.splice(index,1)}),player.play()}),rootPlayers}afterFlush(callback){this._flushFns.push(callback)}afterFlushAnimationsDone(callback){this._whenQuietFns.push(callback)}_getPreviousPlayers(element,isQueriedElement,namespaceId,triggerName,toStateValue){let players=[];if(isQueriedElement){const queriedElementPlayers=this.playersByQueriedElement.get(element);queriedElementPlayers&&(players=queriedElementPlayers)}else{const elementPlayers=this.playersByElement.get(element);if(elementPlayers){const isRemovalAnimation=!toStateValue||"void"==toStateValue;elementPlayers.forEach(player=>{player.queued||!isRemovalAnimation&&player.triggerName!=triggerName||players.push(player)})}}return(namespaceId||triggerName)&&(players=players.filter(player=>!(namespaceId&&namespaceId!=player.namespaceId||triggerName&&triggerName!=player.triggerName))),players}_beforeAnimationBuild(namespaceId,instruction,allPreviousPlayersMap){const rootElement=instruction.element,targetNameSpaceId=instruction.isRemovalTransition?void 0:namespaceId,targetTriggerName=instruction.isRemovalTransition?void 0:instruction.triggerName;for(const timelineInstruction of instruction.timelines){const element=timelineInstruction.element,isQueriedElement=element!==rootElement,players=getOrSetDefaultValue(allPreviousPlayersMap,element,[]);this._getPreviousPlayers(element,isQueriedElement,targetNameSpaceId,targetTriggerName,instruction.toState).forEach(player=>{const realPlayer=player.getRealPlayer();realPlayer.beforeDestroy&&realPlayer.beforeDestroy(),player.destroy(),players.push(player)})}eraseStyles(rootElement,instruction.fromStyles)}_buildAnimation(namespaceId,instruction,allPreviousPlayersMap,skippedPlayersMap,preStylesMap,postStylesMap){const triggerName=instruction.triggerName,rootElement=instruction.element,allQueriedPlayers=[],allConsumedElements=new Set,allSubElements=new Set,allNewPlayers=instruction.timelines.map(timelineInstruction=>{const element=timelineInstruction.element;allConsumedElements.add(element);const details=element.__ng_removed;if(details&&details.removedBeforeQueried)return new NoopAnimationPlayer(timelineInstruction.duration,timelineInstruction.delay);const isQueriedElement=element!==rootElement,previousPlayers=function flattenGroupPlayers(players){const finalPlayers=[];return _flattenGroupPlayersRecur(players,finalPlayers),finalPlayers}((allPreviousPlayersMap.get(element)||EMPTY_PLAYER_ARRAY).map(p=>p.getRealPlayer())).filter(p=>!!p.element&&p.element===element),preStyles=preStylesMap.get(element),postStyles=postStylesMap.get(element),keyframes2=normalizeKeyframes$1(this._normalizer,timelineInstruction.keyframes,preStyles,postStyles),player2=this._buildPlayer(timelineInstruction,keyframes2,previousPlayers);if(timelineInstruction.subTimeline&&skippedPlayersMap&&allSubElements.add(element),isQueriedElement){const wrappedPlayer=new TransitionAnimationPlayer(namespaceId,triggerName,element);wrappedPlayer.setRealPlayer(player2),allQueriedPlayers.push(wrappedPlayer)}return player2});allQueriedPlayers.forEach(player2=>{getOrSetDefaultValue(this.playersByQueriedElement,player2.element,[]).push(player2),player2.onDone(()=>function deleteOrUnsetInMap(map2,key,value){let currentValues=map2.get(key);if(currentValues){if(currentValues.length){const index=currentValues.indexOf(value);currentValues.splice(index,1)}0==currentValues.length&&map2.delete(key)}return currentValues}(this.playersByQueriedElement,player2.element,player2))}),allConsumedElements.forEach(element=>addClass(element,"ng-animating"));const player=optimizeGroupPlayer(allNewPlayers);return player.onDestroy(()=>{allConsumedElements.forEach(element=>removeClass(element,"ng-animating")),setStyles(rootElement,instruction.toStyles)}),allSubElements.forEach(element=>{getOrSetDefaultValue(skippedPlayersMap,element,[]).push(player)}),player}_buildPlayer(instruction,keyframes2,previousPlayers){return keyframes2.length>0?this.driver.animate(instruction.element,keyframes2,instruction.duration,instruction.delay,instruction.easing,previousPlayers):new NoopAnimationPlayer(instruction.duration,instruction.delay)}}class TransitionAnimationPlayer{constructor(namespaceId,triggerName,element){this.namespaceId=namespaceId,this.triggerName=triggerName,this.element=element,this._player=new NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(player){this._containsRealPlayer||(this._player=player,this._queuedCallbacks.forEach((callbacks,phase)=>{callbacks.forEach(callback=>listenOnPlayer(player,phase,void 0,callback))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(player.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(totalTime){this.totalTime=totalTime}syncPlayerEvents(player){const p=this._player;p.triggerCallback&&player.onStart(()=>p.triggerCallback("start")),player.onDone(()=>this.finish()),player.onDestroy(()=>this.destroy())}_queueEvent(name,callback){getOrSetDefaultValue(this._queuedCallbacks,name,[]).push(callback)}onDone(fn){this.queued&&this._queueEvent("done",fn),this._player.onDone(fn)}onStart(fn){this.queued&&this._queueEvent("start",fn),this._player.onStart(fn)}onDestroy(fn){this.queued&&this._queueEvent("destroy",fn),this._player.onDestroy(fn)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(p){this.queued||this._player.setPosition(p)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(phaseName){const p=this._player;p.triggerCallback&&p.triggerCallback(phaseName)}}function isElementNode(node2){return node2&&1===node2.nodeType}function cloakElement(element,value){const oldValue=element.style.display;return element.style.display=value??"none",oldValue}function cloakAndComputeStyles(valuesMap,driver,elements,elementPropsMap,defaultStyle){const cloakVals=[];elements.forEach(element=>cloakVals.push(cloakElement(element)));const failedElements=[];elementPropsMap.forEach((props,element)=>{const styles=new Map;props.forEach(prop2=>{const value=driver.computeStyle(element,prop2,defaultStyle);styles.set(prop2,value),(!value||0==value.length)&&(element.__ng_removed=NULL_REMOVED_QUERIED_STATE,failedElements.push(element))}),valuesMap.set(element,styles)});let i=0;return elements.forEach(element=>cloakElement(element,cloakVals[i++])),failedElements}function buildRootMap(roots,nodes){const rootMap=new Map;if(roots.forEach(root=>rootMap.set(root,[])),0==nodes.length)return rootMap;const nodeSet=new Set(nodes),localRootMap=new Map;function getRoot(node2){if(!node2)return 1;let root=localRootMap.get(node2);if(root)return root;const parent=node2.parentNode;return root=rootMap.has(parent)?parent:nodeSet.has(parent)?1:getRoot(parent),localRootMap.set(node2,root),root}return nodes.forEach(node2=>{const root=getRoot(node2);1!==root&&rootMap.get(root).push(node2)}),rootMap}function addClass(element,className){element.classList?.add(className)}function removeClass(element,className){element.classList?.remove(className)}function removeNodesAfterAnimationDone(engine,element,players){optimizeGroupPlayer(players).onDone(()=>engine.processLeaveNode(element))}function _flattenGroupPlayersRecur(players,finalPlayers){for(let i=0;ipreEntry.add(data)):allPreStyleElements.set(element,postEntry),allPostStyleElements.delete(element),!0}class AnimationEngine{constructor(doc,_driver,_normalizer,scheduler){this._driver=_driver,this._normalizer=_normalizer,this._triggerCache={},this.onRemovalComplete=(element,context2)=>{},this._transitionEngine=new TransitionAnimationEngine(doc.body,_driver,_normalizer,scheduler),this._timelineEngine=new TimelineAnimationEngine(doc.body,_driver,_normalizer),this._transitionEngine.onRemovalComplete=(element,context2)=>this.onRemovalComplete(element,context2)}registerTrigger(componentId,namespaceId,hostElement,name,metadata){const cacheKey=componentId+"-"+name;let trigger2=this._triggerCache[cacheKey];if(!trigger2){const errors=[],ast=buildAnimationAst(this._driver,metadata,errors,[]);if(errors.length)throw function triggerBuildFailed(name,errors){return new RuntimeError(3404,!1)}();trigger2=function buildTrigger(name,ast,normalizer){return new AnimationTrigger(name,ast,normalizer)}(name,ast,this._normalizer),this._triggerCache[cacheKey]=trigger2}this._transitionEngine.registerTrigger(namespaceId,name,trigger2)}register(namespaceId,hostElement){this._transitionEngine.register(namespaceId,hostElement)}destroy(namespaceId,context2){this._transitionEngine.destroy(namespaceId,context2)}onInsert(namespaceId,element,parent,insertBefore){this._transitionEngine.insertNode(namespaceId,element,parent,insertBefore)}onRemove(namespaceId,element,context2){this._transitionEngine.removeNode(namespaceId,element,context2)}disableAnimations(element,disable){this._transitionEngine.markElementAsDisabled(element,disable)}process(namespaceId,element,property,value){if("@"==property.charAt(0)){const[id,action]=parseTimelineCommand(property);this._timelineEngine.command(id,element,action,value)}else this._transitionEngine.trigger(namespaceId,element,property,value)}listen(namespaceId,element,eventName,eventPhase,callback){if("@"==eventName.charAt(0)){const[id,action]=parseTimelineCommand(eventName);return this._timelineEngine.listen(id,element,action,callback)}return this._transitionEngine.listen(namespaceId,element,eventName,eventPhase,callback)}flush(microtaskId=-1){this._transitionEngine.flush(microtaskId)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(cb){this._transitionEngine.afterFlushAnimationsDone(cb)}}class SpecialCasedStyles{static#_=this.initialStylesByElement=new WeakMap;constructor(_element,_startStyles,_endStyles){this._element=_element,this._startStyles=_startStyles,this._endStyles=_endStyles,this._state=0;let initialStyles=SpecialCasedStyles.initialStylesByElement.get(_element);initialStyles||SpecialCasedStyles.initialStylesByElement.set(_element,initialStyles=new Map),this._initialStyles=initialStyles}start(){this._state<1&&(this._startStyles&&setStyles(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(setStyles(this._element,this._initialStyles),this._endStyles&&(setStyles(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(SpecialCasedStyles.initialStylesByElement.delete(this._element),this._startStyles&&(eraseStyles(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(eraseStyles(this._element,this._endStyles),this._endStyles=null),setStyles(this._element,this._initialStyles),this._state=3)}}function filterNonAnimatableStyles(styles){let result=null;return styles.forEach((val,prop2)=>{(function isNonAnimatableStyle(prop2){return"display"===prop2||"position"===prop2})(prop2)&&(result=result||new Map,result.set(prop2,val))}),result}class WebAnimationsPlayer{constructor(element,keyframes2,options,_specialStyles){this.element=element,this.keyframes=keyframes2,this.options=options,this._specialStyles=_specialStyles,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=options.duration,this._delay=options.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fn=>fn()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const keyframes2=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,keyframes2,this.options),this._finalKeyframe=keyframes2.length?keyframes2[keyframes2.length-1]:new Map;const onFinish=()=>this._onFinish();this.domPlayer.addEventListener("finish",onFinish),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",onFinish)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(keyframes2){const kfs=[];return keyframes2.forEach(frame=>{kfs.push(Object.fromEntries(frame))}),kfs}_triggerWebAnimation(element,keyframes2,options){return element.animate(this._convertKeyframesToObject(keyframes2),options)}onStart(fn){this._originalOnStartFns.push(fn),this._onStartFns.push(fn)}onDone(fn){this._originalOnDoneFns.push(fn),this._onDoneFns.push(fn)}onDestroy(fn){this._onDestroyFns.push(fn)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(fn=>fn()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(fn=>fn()),this._onDestroyFns=[])}setPosition(p){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=p*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const styles=new Map;this.hasStarted()&&this._finalKeyframe.forEach((val,prop2)=>{"offset"!==prop2&&styles.set(prop2,this._finished?val:computeStyle(this.element,prop2))}),this.currentSnapshot=styles}triggerCallback(phaseName){const methods="start"===phaseName?this._onStartFns:this._onDoneFns;methods.forEach(fn=>fn()),methods.length=0}}class WebAnimationsDriver{validateStyleProperty(prop2){return!0}validateAnimatableStyleProperty(prop2){return!0}matchesElement(_element,_selector){return!1}containsElement(elm1,elm2){return containsElement(elm1,elm2)}getParentElement(element){return getParentElement(element)}query(element,selector,multi){return invokeQuery(element,selector,multi)}computeStyle(element,prop2,defaultValue){return computeStyle(element,prop2)}animate(element,keyframes2,duration,delay2,easing,previousPlayers=[]){const playerOptions={duration,delay:delay2,fill:0==delay2?"both":"forwards"};easing&&(playerOptions.easing=easing);const previousStyles=new Map,previousWebAnimationPlayers=previousPlayers.filter(player=>player instanceof WebAnimationsPlayer);(function allowPreviousPlayerStylesMerge(duration,delay2){return 0===duration||0===delay2})(duration,delay2)&&previousWebAnimationPlayers.forEach(player=>{player.currentSnapshot.forEach((val,prop2)=>previousStyles.set(prop2,val))});let _keyframes=function normalizeKeyframes(keyframes2){return keyframes2.length?keyframes2[0]instanceof Map?keyframes2:keyframes2.map(kf=>new Map(Object.entries(kf))):[]}(keyframes2).map(styles=>new Map(styles));_keyframes=function balancePreviousStylesIntoKeyframes(element,keyframes2,previousStyles){if(previousStyles.size&&keyframes2.length){let startingKeyframe=keyframes2[0],missingStyleProps=[];if(previousStyles.forEach((val,prop2)=>{startingKeyframe.has(prop2)||missingStyleProps.push(prop2),startingKeyframe.set(prop2,val)}),missingStyleProps.length)for(let i=1;ikf.set(prop2,computeStyle(element,prop2)))}}return keyframes2}(element,_keyframes,previousStyles);const specialStyles=function packageNonAnimatableStyles(element,styles){let startStyles=null,endStyles=null;return Array.isArray(styles)&&styles.length?(startStyles=filterNonAnimatableStyles(styles[0]),styles.length>1&&(endStyles=filterNonAnimatableStyles(styles[styles.length-1]))):styles instanceof Map&&(startStyles=filterNonAnimatableStyles(styles)),startStyles||endStyles?new SpecialCasedStyles(element,startStyles,endStyles):null}(element,_keyframes);return new WebAnimationsPlayer(element,_keyframes,playerOptions,specialStyles)}}class BaseAnimationRenderer{constructor(namespaceId,delegate,engine,_onDestroy){this.namespaceId=namespaceId,this.delegate=delegate,this.engine=engine,this._onDestroy=_onDestroy,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(node2){this.delegate.destroyNode?.(node2)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(name,namespace){return this.delegate.createElement(name,namespace)}createComment(value){return this.delegate.createComment(value)}createText(value){return this.delegate.createText(value)}appendChild(parent,newChild){this.delegate.appendChild(parent,newChild),this.engine.onInsert(this.namespaceId,newChild,parent,!1)}insertBefore(parent,newChild,refChild,isMove=!0){this.delegate.insertBefore(parent,newChild,refChild),this.engine.onInsert(this.namespaceId,newChild,parent,isMove)}removeChild(parent,oldChild,isHostElement){this.engine.onRemove(this.namespaceId,oldChild,this.delegate)}selectRootElement(selectorOrNode,preserveContent){return this.delegate.selectRootElement(selectorOrNode,preserveContent)}parentNode(node2){return this.delegate.parentNode(node2)}nextSibling(node2){return this.delegate.nextSibling(node2)}setAttribute(el,name,value,namespace){this.delegate.setAttribute(el,name,value,namespace)}removeAttribute(el,name,namespace){this.delegate.removeAttribute(el,name,namespace)}addClass(el,name){this.delegate.addClass(el,name)}removeClass(el,name){this.delegate.removeClass(el,name)}setStyle(el,style2,value,flags){this.delegate.setStyle(el,style2,value,flags)}removeStyle(el,style2,flags){this.delegate.removeStyle(el,style2,flags)}setProperty(el,name,value){"@"==name.charAt(0)&&"@.disabled"==name?this.disableAnimations(el,!!value):this.delegate.setProperty(el,name,value)}setValue(node2,value){this.delegate.setValue(node2,value)}listen(target,eventName,callback){return this.delegate.listen(target,eventName,callback)}disableAnimations(element,value){this.engine.disableAnimations(element,value)}}class AnimationRenderer extends BaseAnimationRenderer{constructor(factory2,namespaceId,delegate,engine,onDestroy){super(namespaceId,delegate,engine,onDestroy),this.factory=factory2,this.namespaceId=namespaceId}setProperty(el,name,value){"@"==name.charAt(0)?"."==name.charAt(1)&&"@.disabled"==name?this.disableAnimations(el,value=void 0===value||!!value):this.engine.process(this.namespaceId,el,name.slice(1),value):this.delegate.setProperty(el,name,value)}listen(target,eventName,callback){if("@"==eventName.charAt(0)){const element=function resolveElementFromTarget(target){switch(target){case"body":return document.body;case"document":return document;case"window":return window;default:return target}}(target);let name=eventName.slice(1),phase="";return"@"!=name.charAt(0)&&([name,phase]=function parseTriggerCallbackName(triggerName){const dotIndex=triggerName.indexOf(".");return[triggerName.substring(0,dotIndex),triggerName.slice(dotIndex+1)]}(name)),this.engine.listen(this.namespaceId,element,name,phase,event=>{this.factory.scheduleListenerCallback(event._data||-1,callback,event)})}return this.delegate.listen(target,eventName,callback)}}class AnimationRendererFactory{constructor(delegate,engine,_zone){this.delegate=delegate,this.engine=engine,this._zone=_zone,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,engine.onRemovalComplete=(element,delegate2)=>{const parentNode=delegate2?.parentNode(element);parentNode&&delegate2.removeChild(parentNode,element)}}createRenderer(hostElement,type){const delegate=this.delegate.createRenderer(hostElement,type);if(!hostElement||!type?.data?.animation){const cache=this._rendererCache;let renderer=cache.get(delegate);return renderer||(renderer=new BaseAnimationRenderer("",delegate,this.engine,()=>cache.delete(delegate)),cache.set(delegate,renderer)),renderer}const componentId=type.id,namespaceId=type.id+"-"+this._currentId;this._currentId++,this.engine.register(namespaceId,hostElement);const registerTrigger=trigger2=>{Array.isArray(trigger2)?trigger2.forEach(registerTrigger):this.engine.registerTrigger(componentId,namespaceId,hostElement,trigger2.name,trigger2)};return type.data.animation.forEach(registerTrigger),new AnimationRenderer(this,namespaceId,delegate,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(count,fn,data){if(count>=0&&countfn(data));const animationCallbacksBuffer=this._animationCallbacksBuffer;0==animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{animationCallbacksBuffer.forEach(tuple=>{const[fn2,data2]=tuple;fn2(data2)}),this._animationCallbacksBuffer=[]})}),animationCallbacksBuffer.push([fn,data])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const SHARED_ANIMATION_PROVIDERS=[{provide:AnimationStyleNormalizer,useFactory:function instantiateDefaultStyleNormalizer(){return new WebAnimationsStyleNormalizer}},{provide:AnimationEngine,useClass:(()=>{class InjectableAnimationEngine2 extends AnimationEngine{constructor(doc,driver,normalizer){super(doc,driver,normalizer,core_inject(ChangeDetectionScheduler,{optional:!0}))}ngOnDestroy(){this.flush()}static#_=this.\u0275fac=function(t){return new(t||InjectableAnimationEngine2)(\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(AnimationDriver),\u0275\u0275inject(AnimationStyleNormalizer))};static#_2=this.\u0275prov=core_defineInjectable({token:InjectableAnimationEngine2,factory:InjectableAnimationEngine2.\u0275fac})}return InjectableAnimationEngine2})()},{provide:RendererFactory2,useFactory:function instantiateRendererFactory(renderer,engine,zone){return new AnimationRendererFactory(renderer,engine,zone)},deps:[DomRendererFactory2,AnimationEngine,core_NgZone]}],BROWSER_ANIMATIONS_PROVIDERS=[{provide:AnimationDriver,useFactory:()=>new WebAnimationsDriver},{provide:core_ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...SHARED_ANIMATION_PROVIDERS],BROWSER_NOOP_ANIMATIONS_PROVIDERS=[{provide:AnimationDriver,useClass:NoopAnimationDriver},{provide:core_ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...SHARED_ANIMATION_PROVIDERS];let BrowserAnimationsModule=(()=>{class BrowserAnimationsModule2{static withConfig(config2){return{ngModule:BrowserAnimationsModule2,providers:config2.disableAnimations?BROWSER_NOOP_ANIMATIONS_PROVIDERS:BROWSER_ANIMATIONS_PROVIDERS}}static#_=this.\u0275fac=function(t){return new(t||BrowserAnimationsModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:BrowserAnimationsModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:BROWSER_ANIMATIONS_PROVIDERS,imports:[platform_browser_BrowserModule]})}return BrowserAnimationsModule2})();const materia_ui_ngx_monaco_editor_c0=["editor"];let MonacoEditorLoaderService=(()=>{class MonacoEditorLoaderService2{constructor(ngZone,monacoPathConfig){this.ngZone=ngZone,this.monacoPathConfig=monacoPathConfig,this.isMonacoLoaded$=new BehaviorSubject_BehaviorSubject(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?ngZone.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(value){value&&(this._monacoPath=value)}loadMonaco(){const onGotAmdLoader=()=>{let vsPath=this._monacoPath;window.amdRequire=window.require;const isElectron3=!!this.nodeRequire,isPathUrl=vsPath.includes("http");isElectron3&&(window.require=this.nodeRequire,isPathUrl||(vsPath=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:vsPath}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},error=>console.error("Error loading monaco-editor: ",error))};if(window.amdRequire)return onGotAmdLoader();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const loaderScript=document.createElement("script");loaderScript.type="text/javascript",loaderScript.src=`${this._monacoPath}/loader.js`,loaderScript.addEventListener("load",onGotAmdLoader),document.body.appendChild(loaderScript)}addElectronFixScripts(){const electronFixScript=document.createElement("script"),inlineScript=document.createTextNode("self.module = undefined;"),inlineScript2=document.createTextNode("self.process.browser = true;");electronFixScript.appendChild(inlineScript),electronFixScript.appendChild(inlineScript2),document.body.appendChild(electronFixScript)}}return MonacoEditorLoaderService2.\u0275fac=function(t){return new(t||MonacoEditorLoaderService2)(\u0275\u0275inject(core_NgZone),\u0275\u0275inject("MONACO_PATH",8))},MonacoEditorLoaderService2.\u0275prov=core_defineInjectable({token:MonacoEditorLoaderService2,factory:MonacoEditorLoaderService2.\u0275fac,providedIn:"root"}),MonacoEditorLoaderService2})(),MonacoEditorComponent=(()=>{class MonacoEditorComponent2{constructor(monacoLoader){this.monacoLoader=monacoLoader,this.init=new core_EventEmitter,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(filter_filter(isLoaded=>isLoaded),take_take(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(changes){if(this.editor&&changes.options&&!changes.options.firstChange){const{language:toLanguage,theme:toTheme,...options}=changes.options.currentValue,{language:fromLanguage,theme:fromTheme}=changes.options.previousValue;fromLanguage!==toLanguage&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),fromTheme!==toTheme&&monaco.editor.setTheme(toTheme),this.editor.updateOptions(options)}if(this.editor&&changes.uri){const toUri=changes.uri.currentValue,fromUri=changes.uri.previousValue;if(fromUri&&!toUri||!fromUri&&toUri||toUri&&fromUri&&toUri.path!==fromUri.path){const value=this.editor.getValue();let existingModel;this.modelUriInstance&&this.modelUriInstance.dispose(),toUri&&(existingModel=monaco.editor.getModels().find(model2=>model2.uri.path===toUri.path)),this.modelUriInstance=existingModel||monaco.editor.createModel(value,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(value){this.value=value,this.editor&&value?this.editor.setValue(value):this.editor&&this.editor.setValue("")}registerOnChange(fn){this.propagateChange=fn}registerOnTouched(fn){this.onTouched=fn}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(fn){this.onErrorStatusChange=fn}initEditor(){const options={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?{...options,...this.options}:options),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const currentParsedError=this.modelMarkers.map(({message})=>message).join("|");this.parsedError!==currentParsedError&&(this.parsedError=currentParsedError,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return MonacoEditorComponent2.\u0275fac=function(t){return new(t||MonacoEditorComponent2)(\u0275\u0275directiveInject(MonacoEditorLoaderService))},MonacoEditorComponent2.\u0275cmp=\u0275\u0275defineComponent({type:MonacoEditorComponent2,selectors:[["ngx-monaco-editor"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(materia_ui_ngx_monaco_editor_c0,7),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.editorContent=_t.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[\u0275\u0275ProvidersFeature([{provide:NG_VALUE_ACCESSOR,useExisting:core_forwardRef(()=>MonacoEditorComponent2),multi:!0},{provide:NG_VALIDATORS,useExisting:core_forwardRef(()=>MonacoEditorComponent2),multi:!0}]),\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["container",""],["editor",""],["fxFlex","",1,"editor-container"],[1,"monaco-editor"]],template:function(rf,ctx){1&rf&&(\u0275\u0275elementStart(0,"div",2,0),\u0275\u0275element(2,"div",3,1),\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),MonacoEditorComponent2})(),MonacoEditorModule=(()=>{class MonacoEditorModule2{}return MonacoEditorModule2.\u0275fac=function(t){return new(t||MonacoEditorModule2)},MonacoEditorModule2.\u0275mod=\u0275\u0275defineNgModule({type:MonacoEditorModule2}),MonacoEditorModule2.\u0275inj=\u0275\u0275defineInjector({imports:[[]]}),MonacoEditorModule2})();class CompRef{constructor(options){this.options=options,options.vcr?this.ref=options.vcr.createComponent(options.component,{index:options.vcr.length,injector:options.injector||options.vcr.injector}):(this.ref=function createComponent(component,options){const componentDef=getComponentDef(component),elementInjector=options.elementInjector||getNullInjector();return new ComponentFactory(componentDef).create(elementInjector,options.projectableNodes,options.hostElement,options.environmentInjector)}(options.component,{elementInjector:options.injector,environmentInjector:options.environmentInjector}),options.appRef.attachView(this.ref.hostView))}setInput(input2,value){return this.ref.setInput(input2,value),this}setInputs(inputs){return Object.keys(inputs).forEach(input2=>{this.ref.setInput(input2,inputs[input2])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(context2){return this.options.contextSignal?.set(context2),this}appendTo(container){return container.appendChild(this.getElement()),this}removeFrom(container){return container.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}}function isTemplateRef(value){return value instanceof core_TemplateRef}function ngneat_overview_isComponent(value){return"function"==typeof value}function ngneat_overview_isString(value){return"string"==typeof value}class TplRef{constructor(args){this.args=args,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:args.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},args.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){const rootNodes=this.ref.rootNodes;return 1===rootNodes.length&&rootNodes[0]===Node.ELEMENT_NODE?this.element=rootNodes[0]:(this.element=document.createElement("div"),this.element.append(...rootNodes)),this.element}destroy(){1!==this.ref.rootNodes[0]&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(context2){return Object.assign(this.ref.context,context2),this}}class StringRef{constructor(value){this.value=value}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}}const VIEW_CONTEXT=new InjectionToken("Component context");let ViewService=(()=>{class ViewService2{constructor(){this.injector=core_inject(core_Injector),this.appRef=core_inject(core_ApplicationRef),this.environmentInjector=core_inject(core_EnvironmentInjector)}createComponent(component,options={}){let contextSignal,injector=options.injector??this.injector;return options.context&&(contextSignal=signal(options.context),injector=core_Injector.create({providers:[{provide:VIEW_CONTEXT,useValue:contextSignal.asReadonly()}],parent:injector})),new CompRef({component,vcr:options.vcr,injector,appRef:this.appRef,environmentInjector:options.environmentInjector||this.environmentInjector,contextSignal})}createTemplate(tpl,options={}){return new TplRef({vcr:options.vcr,appRef:this.appRef,tpl,context:options.context,injector:options.injector})}createView(content,viewOptions={}){if(isTemplateRef(content))return this.createTemplate(content,viewOptions);if(ngneat_overview_isComponent(content))return this.createComponent(content,viewOptions);if(ngneat_overview_isString(content))return new StringRef(content);throw"Type of content is not supported"}static#_=this.\u0275fac=function(t){return new(t||ViewService2)};static#_2=this.\u0275prov=core_defineInjectable({token:ViewService2,factory:ViewService2.\u0275fac,providedIn:"root"})}return ViewService2})(),DynamicViewComponent=(()=>{class DynamicViewComponent2{static#_=this.\u0275fac=function(t){return new(t||DynamicViewComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:DynamicViewComponent2,selectors:[["dynamic-view"]],inputs:{content:"content"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(rf,ctx){1&rf&&\u0275\u0275element(0,"div",0),2&rf&&\u0275\u0275property("innerHTML",ctx.content,\u0275\u0275sanitizeHtml)},encapsulation:2})}return DynamicViewComponent2})(),DynamicViewDirective=(()=>{class DynamicViewDirective2{constructor(){this.defaultTpl=core_inject(core_TemplateRef),this.vcr=core_inject(core_ViewContainerRef),this.viewService=core_inject(ViewService)}ngOnInit(){this.resolveContentType()}ngOnChanges(changes){const viewChanged=changes.view&&!changes.view.isFirstChange(),contextChanged=changes.context&&!changes.context.isFirstChange(),inputsChanged=changes.inputs&&!changes.inputs.isFirstChange();viewChanged?this.resolveContentType():contextChanged?this.viewRef.updateContext(this.context):ngneat_overview_isComponent(this.view)&&inputsChanged&&this.viewRef.setInputs(this.inputs||{})}resolveContentType(){this.viewRef?.destroy(),ngneat_overview_isString(this.view)?(this.viewRef=this.viewService.createComponent(DynamicViewComponent,{vcr:this.vcr,injector:this.injector}),this.viewRef.setInput("content",this.view).detectChanges()):ngneat_overview_isComponent(this.view)?(this.viewRef=this.viewService.createComponent(this.view,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context}),this.inputs&&this.viewRef.setInputs(this.inputs)):this.viewRef=this.viewService.createView(this.view||this.defaultTpl,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context})}ngOnDestroy(){this.viewRef?.destroy()}static#_=this.\u0275fac=function(t){return new(t||DynamicViewDirective2)};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:DynamicViewDirective2,selectors:[["","dynamicView",""]],inputs:{view:[InputFlags.None,"dynamicView","view"],injector:[InputFlags.None,"dynamicViewInjector","injector"],context:[InputFlags.None,"dynamicViewContext","context"],inputs:[InputFlags.None,"dynamicViewInputs","inputs"]},standalone:!0,features:[\u0275\u0275NgOnChangesFeature]})}return DynamicViewDirective2})();const{isArray:argsOrArgArray_isArray}=Array;function race(...sources){return 1===(sources=function argsOrArgArray(args){return 1===args.length&&argsOrArgArray_isArray(args[0])?args[0]:args}(sources)).length?innerFrom(sources[0]):new Observable_Observable(function raceInit(sources){return subscriber=>{let subscriptions=[];for(let i=0;subscriptions&&!subscriber.closed&&i{if(subscriptions){for(let s=0;s({"border-color":a0,"border-right-color":a1});function IndicatorComponent_Conditional_0_Conditional_3_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275element(1,"hot-toast-loader",1),\u0275\u0275text(2,"\n ")),2&rf){const ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("theme",ctx_r0.theme)}}function IndicatorComponent_Conditional_0_Conditional_4_Case_5_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div"),\u0275\u0275text(2,"\n "),\u0275\u0275element(3,"hot-toast-error",1),\u0275\u0275text(4,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n ")),2&rf){const ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("theme",ctx_r0.theme)}}function IndicatorComponent_Conditional_0_Conditional_4_Case_6_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div"),\u0275\u0275text(2,"\n "),\u0275\u0275element(3,"hot-toast-checkmark",1),\u0275\u0275text(4,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n ")),2&rf){const ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("theme",ctx_r0.theme)}}function IndicatorComponent_Conditional_0_Conditional_4_Case_7_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div"),\u0275\u0275text(2,"\n "),\u0275\u0275element(3,"hot-toast-warning",1),\u0275\u0275text(4,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n ")),2&rf){const ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("theme",ctx_r0.theme)}}function IndicatorComponent_Conditional_0_Conditional_4_Case_8_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div"),\u0275\u0275text(2,"\n "),\u0275\u0275element(3,"hot-toast-info",1),\u0275\u0275text(4,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n ")),2&rf){const ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("theme",ctx_r0.theme)}}function IndicatorComponent_Conditional_0_Conditional_4_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div",2),\u0275\u0275text(2,"\n "),\u0275\u0275elementStart(3,"div"),\u0275\u0275text(4,"\n "),\u0275\u0275template(5,IndicatorComponent_Conditional_0_Conditional_4_Case_5_Template,6,1)(6,IndicatorComponent_Conditional_0_Conditional_4_Case_6_Template,6,1)(7,IndicatorComponent_Conditional_0_Conditional_4_Case_7_Template,6,1)(8,IndicatorComponent_Conditional_0_Conditional_4_Case_8_Template,6,1),\u0275\u0275text(9,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(10,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(11,"\n ")),2&rf){let tmp_2_0;const ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(5),\u0275\u0275conditional(5,"error"===(tmp_2_0=ctx_r0.type)?5:"success"===tmp_2_0?6:"warning"===tmp_2_0?7:"info"===tmp_2_0?8:-1)}}function IndicatorComponent_Conditional_0_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n"),\u0275\u0275elementStart(1,"div",0),\u0275\u0275text(2,"\n "),\u0275\u0275template(3,IndicatorComponent_Conditional_0_Conditional_3_Template,3,1)(4,IndicatorComponent_Conditional_0_Conditional_4_Template,12,1),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n")),2&rf){const ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(3),\u0275\u0275conditional(3,"loading"===ctx_r0.type?3:-1),\u0275\u0275advance(),\u0275\u0275conditional(4,"loading"!==ctx_r0.type?4:-1)}}const ngxpert_hot_toast_c1=["*"],ngxpert_hot_toast_c2=["hotToastBarBase"];function HotToastGroupItemComponent_Conditional_9_Conditional_1_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"hot-toast-animated-icon",7),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275text(3,"\n ")),2&rf){const ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("iconTheme",ctx_r1.toast.iconTheme),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.toast.icon)}}function HotToastGroupItemComponent_Conditional_9_Conditional_2_ng_container_3_Template(rf,ctx){1&rf&&\u0275\u0275elementContainer(0)}function HotToastGroupItemComponent_Conditional_9_Conditional_2_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div"),\u0275\u0275text(2,"\n "),\u0275\u0275template(3,HotToastGroupItemComponent_Conditional_9_Conditional_2_ng_container_3_Template,1,0,"ng-container",8),\u0275\u0275text(4,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n ")),2&rf){const ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(3),\u0275\u0275property("dynamicView",ctx_r1.toast.icon)}}function HotToastGroupItemComponent_Conditional_9_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0," "),\u0275\u0275template(1,HotToastGroupItemComponent_Conditional_9_Conditional_1_Template,4,2)(2,HotToastGroupItemComponent_Conditional_9_Conditional_2_Template,6,1)),2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275conditional(1,ctx_r1.isIconString?1:2)}}function HotToastGroupItemComponent_Conditional_10_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275element(1,"hot-toast-indicator",9),\u0275\u0275text(2,"\n ")),2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("theme",ctx_r1.toast.iconTheme)("type",ctx_r1.toast.type)}}function HotToastGroupItemComponent_ng_container_14_Template(rf,ctx){1&rf&&\u0275\u0275elementContainer(0)}function HotToastGroupItemComponent_Conditional_17_Template(rf,ctx){if(1&rf){const _r3=\u0275\u0275getCurrentView();\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"button",10),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView(\u0275\u0275nextContext().close())}),\u0275\u0275elementEnd(),\u0275\u0275text(2,"\n ")}if(2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngStyle",ctx_r1.toast.closeStyle)}}const _forTrack0=($index,$item)=>$item.id;function HotToastComponent_Conditional_9_Conditional_1_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"hot-toast-animated-icon",8),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275text(3,"\n ")),2&rf){const ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("iconTheme",ctx_r1.toast.iconTheme),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.toast.icon)}}function HotToastComponent_Conditional_9_Conditional_2_ng_container_3_Template(rf,ctx){1&rf&&\u0275\u0275elementContainer(0)}function HotToastComponent_Conditional_9_Conditional_2_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"div"),\u0275\u0275text(2,"\n "),\u0275\u0275template(3,HotToastComponent_Conditional_9_Conditional_2_ng_container_3_Template,1,0,"ng-container",9),\u0275\u0275text(4,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(5,"\n ")),2&rf){const ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(3),\u0275\u0275property("dynamicView",ctx_r1.toast.icon)}}function HotToastComponent_Conditional_9_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0," "),\u0275\u0275template(1,HotToastComponent_Conditional_9_Conditional_1_Template,4,2)(2,HotToastComponent_Conditional_9_Conditional_2_Template,6,1)),2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275conditional(1,ctx_r1.isIconString?1:2)}}function HotToastComponent_Conditional_10_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0,"\n "),\u0275\u0275element(1,"hot-toast-indicator",10),\u0275\u0275text(2,"\n ")),2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("theme",ctx_r1.toast.iconTheme)("type",ctx_r1.toast.type)}}function HotToastComponent_ng_container_14_Template(rf,ctx){1&rf&&\u0275\u0275elementContainer(0)}function HotToastComponent_Conditional_17_Template(rf,ctx){if(1&rf){const _r3=\u0275\u0275getCurrentView();\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"button",11),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView(\u0275\u0275nextContext().toggleToastGroup())}),\u0275\u0275elementEnd(),\u0275\u0275text(2,"\n ")}if(2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275classProp("expanded",ctx_r1.isExpanded),\u0275\u0275property("ngStyle",ctx_r1.toast.group.btnStyle),\u0275\u0275attribute("aria-label",ctx_r1.isExpanded?"Collapse":"Expand")}}function HotToastComponent_Conditional_18_Template(rf,ctx){if(1&rf){const _r4=\u0275\u0275getCurrentView();\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"button",12),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r4),\u0275\u0275resetView(\u0275\u0275nextContext().close())}),\u0275\u0275elementEnd(),\u0275\u0275text(2,"\n ")}if(2&rf){const ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngStyle",ctx_r1.toast.closeStyle)}}function HotToastComponent_For_23_Template(rf,ctx){if(1&rf){const _r5=\u0275\u0275getCurrentView();\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"hot-toast-group-item",13),\u0275\u0275listener("height",function($event){const item_r6=\u0275\u0275restoreView(_r5).$implicit;return \u0275\u0275resetView(\u0275\u0275nextContext().updateHeight($event,item_r6))})("beforeClosed",function(){const item_r6=\u0275\u0275restoreView(_r5).$implicit;return \u0275\u0275resetView(\u0275\u0275nextContext().beforeClosedGroupItem(item_r6))})("afterClosed",function($event){return \u0275\u0275restoreView(_r5),\u0275\u0275resetView(\u0275\u0275nextContext().afterClosedGroupItem($event))}),\u0275\u0275elementEnd(),\u0275\u0275text(2,"\n ")}if(2&rf){const item_r6=ctx.$implicit,$index_r7=ctx.$index,ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("toast",item_r6)("offset",ctx_r1.calculateOffset(item_r6.id))("toastRef",ctx_r1.toastRef.groupRefs[$index_r7])("toastsAfter",(item_r6.autoClose?ctx_r1.groupChildrenToasts.length:ctx_r1.visibleToasts.length)-1-$index_r7)("defaultConfig",ctx_r1.defaultConfig)("isShowingAllToasts",ctx_r1.isShowingAllToasts)}}function HotToastContainerComponent_For_7_Conditional_1_Template(rf,ctx){}function HotToastContainerComponent_For_7_Conditional_2_Template(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275text(0,"\n "),\u0275\u0275elementStart(1,"hot-toast",2),\u0275\u0275listener("showAllToasts",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(\u0275\u0275nextContext(2).showAllToasts($event))})("height",function($event){\u0275\u0275restoreView(_r1);const toast_r3=\u0275\u0275nextContext().$implicit;return \u0275\u0275resetView(\u0275\u0275nextContext().updateHeight($event,toast_r3))})("beforeClosed",function(){\u0275\u0275restoreView(_r1);const toast_r3=\u0275\u0275nextContext().$implicit;return \u0275\u0275resetView(\u0275\u0275nextContext().beforeClosed(toast_r3))})("afterClosed",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(\u0275\u0275nextContext(2).afterClosed($event))})("toggleGroup",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(\u0275\u0275nextContext(2).toggleGroup($event))}),\u0275\u0275elementEnd(),\u0275\u0275text(2,"\n ")}if(2&rf){const ctx_r3=\u0275\u0275nextContext(),toast_r3=ctx_r3.$implicit,i_r5=ctx_r3.$index,ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("toast",toast_r3)("offset",ctx_r1.calculateOffset(toast_r3.id,toast_r3.position))("toastRef",ctx_r1.toastRefs[i_r5])("toastsAfter",(toast_r3.autoClose?ctx_r1.toasts.length:ctx_r1.getVisibleToasts(toast_r3.position).length)-1-i_r5)("defaultConfig",ctx_r1.defaultConfig)("isShowingAllToasts",ctx_r1.isShowingAllToasts)}}function HotToastContainerComponent_For_7_Template(rf,ctx){if(1&rf&&(\u0275\u0275text(0," "),\u0275\u0275template(1,HotToastContainerComponent_For_7_Conditional_1_Template,0,0)(2,HotToastContainerComponent_For_7_Conditional_2_Template,3,6)),2&rf){const toast_r3=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275conditional(1,null!=toast_r3.group&&toast_r3.group.parent?1:2)}}const HOT_TOAST_DEFAULT_TIMEOUTS={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3};class HotToastRef{constructor(toast){this.toast=toast,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new Subject_Subject,this._onGroupToggle=new Subject_Subject}set data(data){this.toast.data=data}get data(){return this.toast.data}set dispose(value){this._dispose=value}getToast(){return this.toast}appendTo(container,skipAttachToParent){const{dispose,updateMessage,updateToast,afterClosed,afterGroupToggled,afterGroupRefsAttached}=container.addToast(this,skipAttachToParent);return this.dispose=dispose,this.updateMessage=updateMessage,this.updateToast=updateToast,this.afterClosed=race(this._onClosed.asObservable(),afterClosed),this.afterGroupToggled=race(this._onGroupToggle.asObservable(),afterGroupToggled),this.afterGroupRefsAttached=afterGroupRefsAttached,this}close(closeData={dismissedByAction:!1}){this.groupRefs.forEach(ref2=>ref2.close()),this._dispose(),this._onClosed.next({dismissedByAction:closeData.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(eventData={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:eventData.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}}const ngxpert_hot_toast_animate=(element,value)=>{element.style.animation=value};let LoaderComponent=(()=>{class LoaderComponent2{static#_=this.\u0275fac=function(t){return new(t||LoaderComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:LoaderComponent2,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(rf,ctx){1&rf&&(\u0275\u0275element(0,"div",0),\u0275\u0275text(1,"\n")),2&rf&&\u0275\u0275property("ngStyle",\u0275\u0275pureFunction2(1,ngxpert_hot_toast_c0,null==ctx.theme?null:ctx.theme.primary,null==ctx.theme?null:ctx.theme.secondary))},dependencies:[common_CommonModule,NgStyle],encapsulation:2,changeDetection:0})}return LoaderComponent2})(),ErrorComponent=(()=>{class ErrorComponent2{static#_=this.\u0275fac=function(t){return new(t||ErrorComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:ErrorComponent2,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(rf,ctx){1&rf&&(\u0275\u0275element(0,"div",0),\u0275\u0275text(1,"\n")),2&rf&&\u0275\u0275styleProp("--error-primary",null==ctx.theme?null:ctx.theme.primary)("--error-secondary",null==ctx.theme?null:ctx.theme.secondary)},encapsulation:2,changeDetection:0})}return ErrorComponent2})(),CheckMarkComponent=(()=>{class CheckMarkComponent2{static#_=this.\u0275fac=function(t){return new(t||CheckMarkComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:CheckMarkComponent2,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(rf,ctx){1&rf&&(\u0275\u0275element(0,"div",0),\u0275\u0275text(1,"\n")),2&rf&&\u0275\u0275styleProp("--check-primary",null==ctx.theme?null:ctx.theme.primary)("--check-secondary",null==ctx.theme?null:ctx.theme.secondary)},encapsulation:2,changeDetection:0})}return CheckMarkComponent2})(),WarningComponent=(()=>{class WarningComponent2{static#_=this.\u0275fac=function(t){return new(t||WarningComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:WarningComponent2,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(rf,ctx){1&rf&&(\u0275\u0275element(0,"div",0),\u0275\u0275text(1,"\n")),2&rf&&\u0275\u0275styleProp("--warn-primary",null==ctx.theme?null:ctx.theme.primary)("--warn-secondary",null==ctx.theme?null:ctx.theme.secondary)},encapsulation:2,changeDetection:0})}return WarningComponent2})(),InfoComponent=(()=>{class InfoComponent2{static#_=this.\u0275fac=function(t){return new(t||InfoComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:InfoComponent2,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(rf,ctx){1&rf&&(\u0275\u0275element(0,"div",0),\u0275\u0275text(1,"\n")),2&rf&&\u0275\u0275styleProp("--warn-primary",null==ctx.theme?null:ctx.theme.primary)("--warn-secondary",null==ctx.theme?null:ctx.theme.secondary)},encapsulation:2,changeDetection:0})}return InfoComponent2})(),IndicatorComponent=(()=>{class IndicatorComponent2{static#_=this.\u0275fac=function(t){return new(t||IndicatorComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:IndicatorComponent2,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(rf,ctx){1&rf&&\u0275\u0275template(0,IndicatorComponent_Conditional_0_Template,6,2),2&rf&&\u0275\u0275conditional(0,"blank"!==ctx.type?0:-1)},dependencies:[LoaderComponent,ErrorComponent,CheckMarkComponent,WarningComponent,InfoComponent],encapsulation:2,changeDetection:0})}return IndicatorComponent2})(),AnimatedIconComponent=(()=>{class AnimatedIconComponent2{static#_=this.\u0275fac=function(t){return new(t||AnimatedIconComponent2)};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:AnimatedIconComponent2,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},standalone:!0,features:[\u0275\u0275StandaloneFeature],ngContentSelectors:ngxpert_hot_toast_c1,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(rf,ctx){1&rf&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275text(1,"\n "),\u0275\u0275projection(2),\u0275\u0275text(3,"\n"),\u0275\u0275elementEnd(),\u0275\u0275text(4,"\n")),2&rf&&\u0275\u0275styleProp("color",null==ctx.iconTheme?null:ctx.iconTheme.primary)},encapsulation:2,changeDetection:0})}return AnimatedIconComponent2})(),HotToastGroupItemComponent=(()=>{class HotToastGroupItemComponent2{get toastsAfter(){return this._toastsAfter}set toastsAfter(value){this._toastsAfter=value}constructor(injector,renderer,ngZone,cdr){this.injector=injector,this.renderer=renderer,this.ngZone=ngZone,this.cdr=cdr,this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new core_EventEmitter,this.beforeClosed=new core_EventEmitter,this.afterClosed=new core_EventEmitter,this.showAllToasts=new core_EventEmitter,this.toggleGroup=new core_EventEmitter,this.isManualClose=!1,this.unlisteners=[],this.softClosed=!1}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return"vertical"===this.defaultConfig.stacking||this.isShowingAllToasts?1:-.05*this.toastsAfter+1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){return{transform:"translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",...this.top?{top:0}:{bottom:0},...this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"}}}get toastBarBaseStyles(){const enterAnimation=`hotToastEnterAnimation${this.top?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;return{...this.toast.style,animation:this.toast.autoClose?`${enterAnimation}, hotToastExitAnimation${this.top?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`:enterAnimation}}get isIconString(){return"string"==typeof this.toast.icon}get groupChildrenToastRefs(){return this.toastRef.groupRefs}set groupChildrenToastRefs(value){this.toastRef.groupRefs=value}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(ref2=>ref2.getToast())}get groupHeight(){return this.visibleToasts.map(t=>t.height).reduce((prev,curr)=>prev+curr,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(changes){changes.toast&&!changes.toast.firstChange&&changes.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){isTemplateRef(this.toast.message)&&(this.context={$implicit:this.toastRef}),ngneat_overview_isComponent(this.toast.message)&&(this.toastComponentInjector=core_Injector.create({providers:[{provide:HotToastRef,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){const nativeElement=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(nativeElement.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(nativeElement,"animationstart",event=>{this.isExitAnimation(event)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(nativeElement,"animationend",event=>{this.isExitAnimation(event)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}softClose(){ngxpert_hot_toast_animate(this.toastBarBase.nativeElement,`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`),this.softClosed=!0}softOpen(){const softEnterAnimation=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;ngxpert_hot_toast_animate(this.toastBarBase.nativeElement,softEnterAnimation),this.softClosed=!1}close(){this.isManualClose=!0,ngxpert_hot_toast_animate(this.toastBarBase.nativeElement,`hotToastExitAnimation${this.top?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`)}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(ev){return ev.animationName.includes("hotToastExitAnimation")}setToastAttributes(){const toastAttributes=this.toast.attributes;for(const[key,value]of Object.entries(toastAttributes))this.renderer.setAttribute(this.toastBarBase.nativeElement,key,value)}get visibleToasts(){return this.groupChildrenToasts.filter(t=>t.visible)}static#_=this.\u0275fac=function(t){return new(t||HotToastGroupItemComponent2)(\u0275\u0275directiveInject(core_Injector),\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_ChangeDetectorRef))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:HotToastGroupItemComponent2,selectors:[["hot-toast-group-item"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(ngxpert_hot_toast_c2,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.toastBarBase=_t.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],decls:21,vars:21,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click","ngStyle"]],template:function(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1),\u0275\u0275text(1,"\n "),\u0275\u0275elementStart(2,"div",2),\u0275\u0275listener("mouseenter",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.handleMouseEnter())})("mouseleave",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.handleMouseLeave())}),\u0275\u0275text(3,"\n "),\u0275\u0275elementStart(4,"div",3,0),\u0275\u0275text(6,"\n "),\u0275\u0275elementStart(7,"div",4),\u0275\u0275text(8,"\n "),\u0275\u0275template(9,HotToastGroupItemComponent_Conditional_9_Template,3,1)(10,HotToastGroupItemComponent_Conditional_10_Template,3,2),\u0275\u0275elementEnd(),\u0275\u0275text(11,"\n "),\u0275\u0275elementStart(12,"div",5),\u0275\u0275text(13,"\n "),\u0275\u0275template(14,HotToastGroupItemComponent_ng_container_14_Template,1,0,"ng-container",6),\u0275\u0275text(15,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(16,"\n "),\u0275\u0275template(17,HotToastGroupItemComponent_Conditional_17_Template,3,1),\u0275\u0275elementEnd(),\u0275\u0275text(18,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(19,"\n"),\u0275\u0275elementEnd(),\u0275\u0275text(20,"\n")}2&rf&&(\u0275\u0275styleProp("--hot-toast-scale",ctx.scale)("--hot-toast-translate-y",ctx.translateY),\u0275\u0275property("ngStyle",ctx.containerPositionStyle)("ngClass","hot-toast-theme-"+ctx.toast.theme),\u0275\u0275advance(4),\u0275\u0275styleProp("--hot-toast-animation-state",ctx.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",ctx.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",ctx.exitAnimationDelay),\u0275\u0275property("ngStyle",ctx.toastBarBaseStyles)("ngClass",ctx.toast.className),\u0275\u0275attribute("aria-live",ctx.toast.ariaLive)("role",ctx.toast.role),\u0275\u0275advance(5),\u0275\u0275conditional(9,void 0!==ctx.toast.icon?9:10),\u0275\u0275advance(5),\u0275\u0275property("dynamicView",ctx.toast.message)("dynamicViewContext",ctx.context)("dynamicViewInjector",ctx.toastComponentInjector),\u0275\u0275advance(3),\u0275\u0275conditional(17,ctx.toast.dismissible?17:-1))},dependencies:[NgClass,NgStyle,AnimatedIconComponent,IndicatorComponent,DynamicViewDirective],encapsulation:2,changeDetection:0})}return HotToastGroupItemComponent2})(),HotToastComponent=(()=>{class HotToastComponent2{get toastsAfter(){return this._toastsAfter}set toastsAfter(value){this._toastsAfter=value,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(value>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}constructor(injector,renderer,ngZone,cdr){this.injector=injector,this.renderer=renderer,this.ngZone=ngZone,this.cdr=cdr,this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new core_EventEmitter,this.beforeClosed=new core_EventEmitter,this.afterClosed=new core_EventEmitter,this.showAllToasts=new core_EventEmitter,this.toggleGroup=new core_EventEmitter,this.isManualClose=!1,this.isExpanded=!1,this.unlisteners=[],this.softClosed=!1,this.groupRefs=[]}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return"vertical"===this.defaultConfig.stacking||this.isShowingAllToasts?1:-.05*this.toastsAfter+1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){return{transform:"translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",...this.top?{top:0}:{bottom:0},...this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"}}}get toastBarBaseStyles(){const enterAnimation=`hotToastEnterAnimation${this.top?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;return{...this.toast.style,animation:this.toast.autoClose?`${enterAnimation}, hotToastExitAnimation${this.top?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`:enterAnimation}}get isIconString(){return"string"==typeof this.toast.icon}get groupChildrenToastRefs(){return this.groupRefs}set groupChildrenToastRefs(value){this.groupRefs=value,this.toastRef.groupRefs=value}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(ref2=>ref2.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(t=>t.height).reduce((prev,curr)=>prev+curr,0)}get visibleToasts(){return this.groupChildrenToasts.filter(t=>t.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.detectChanges(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.detectChanges(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(changes){changes.toast&&!changes.toast.firstChange&&changes.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){isTemplateRef(this.toast.message)&&(this.context={$implicit:this.toastRef}),ngneat_overview_isComponent(this.toast.message)&&(this.toastComponentInjector=core_Injector.create({providers:[{provide:HotToastRef,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){const nativeElement=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(nativeElement.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(nativeElement,"animationstart",event=>{this.isExitAnimation(event)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(nativeElement,"animationend",event=>{this.isExitAnimation(event)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}softClose(){ngxpert_hot_toast_animate(this.toastBarBase.nativeElement,`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){const softEnterAnimation=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;ngxpert_hot_toast_animate(this.toastBarBase.nativeElement,softEnterAnimation),this.softClosed=!1}close(){this.isManualClose=!0,ngxpert_hot_toast_animate(this.toastBarBase.nativeElement,`hotToastExitAnimation${this.top?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`)}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(ev){return ev.animationName.includes("hotToastExitAnimation")}setToastAttributes(){const toastAttributes=this.toast.attributes;for(const[key,value]of Object.entries(toastAttributes))this.renderer.setAttribute(this.toastBarBase.nativeElement,key,value)}calculateOffset(toastId){const visibleToasts=this.visibleToasts,index=visibleToasts.findIndex(toast=>toast.id===toastId);return-1!==index?visibleToasts.slice(...this.defaultConfig.reverseOrder?[index+1]:[0,index]).reduce((acc,t,i)=>0!==this.defaultConfig.visibleToasts&&it.id===closeToast.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(t=>t.getToast().id!==closeToast.id),this.cdr.detectChanges())}toggleToastGroup(){const event=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event,id:this.toast.id}),this.emiHeightWithGroup("expand"===event)}emiHeightWithGroup(isExpanded){requestAnimationFrame(isExpanded?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}static#_=this.\u0275fac=function(t){return new(t||HotToastComponent2)(\u0275\u0275directiveInject(core_Injector),\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_ChangeDetectorRef))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:HotToastComponent2,selectors:[["hot-toast"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(ngxpert_hot_toast_c2,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.toastBarBase=_t.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],decls:27,vars:27,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],["role","list",1,"hot-toast-bar-base-group",3,"ngClass"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click","ngStyle"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click","ngStyle"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1),\u0275\u0275text(1,"\n "),\u0275\u0275elementStart(2,"div",2),\u0275\u0275listener("mouseenter",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.handleMouseEnter())})("mouseleave",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.handleMouseLeave())}),\u0275\u0275text(3,"\n "),\u0275\u0275elementStart(4,"div",3,0),\u0275\u0275text(6,"\n "),\u0275\u0275elementStart(7,"div",4),\u0275\u0275text(8,"\n "),\u0275\u0275template(9,HotToastComponent_Conditional_9_Template,3,1)(10,HotToastComponent_Conditional_10_Template,3,2),\u0275\u0275elementEnd(),\u0275\u0275text(11,"\n\n "),\u0275\u0275elementStart(12,"div",5),\u0275\u0275text(13,"\n "),\u0275\u0275template(14,HotToastComponent_ng_container_14_Template,1,0,"ng-container",6),\u0275\u0275text(15,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(16,"\n\n "),\u0275\u0275template(17,HotToastComponent_Conditional_17_Template,3,4)(18,HotToastComponent_Conditional_18_Template,3,1),\u0275\u0275elementEnd(),\u0275\u0275text(19,"\n\n "),\u0275\u0275elementStart(20,"div",7),\u0275\u0275text(21,"\n "),\u0275\u0275repeaterCreate(22,HotToastComponent_For_23_Template,3,6,null,null,_forTrack0),\u0275\u0275elementEnd(),\u0275\u0275text(24,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(25,"\n"),\u0275\u0275elementEnd(),\u0275\u0275text(26,"\n")}2&rf&&(\u0275\u0275styleProp("--hot-toast-scale",ctx.scale)("--hot-toast-translate-y",ctx.translateY),\u0275\u0275property("ngStyle",ctx.containerPositionStyle)("ngClass","hot-toast-theme-"+ctx.toast.theme),\u0275\u0275advance(2),\u0275\u0275classProp("expanded",ctx.isExpanded),\u0275\u0275advance(2),\u0275\u0275styleProp("--hot-toast-animation-state",ctx.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",ctx.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",ctx.exitAnimationDelay),\u0275\u0275property("ngStyle",ctx.toastBarBaseStyles)("ngClass",ctx.toast.className),\u0275\u0275attribute("aria-live",ctx.toast.ariaLive)("role",ctx.toast.role),\u0275\u0275advance(5),\u0275\u0275conditional(9,void 0!==ctx.toast.icon?9:10),\u0275\u0275advance(5),\u0275\u0275property("dynamicView",ctx.toast.message)("dynamicViewContext",ctx.context)("dynamicViewInjector",ctx.toastComponentInjector),\u0275\u0275advance(3),\u0275\u0275conditional(17,null!=ctx.toast.group&&ctx.toast.group.expandAndCollapsible&&null!=ctx.toast.group&&ctx.toast.group.children&&ctx.visibleToasts.length>0?17:-1),\u0275\u0275advance(),\u0275\u0275conditional(18,ctx.toast.dismissible?18:-1),\u0275\u0275advance(2),\u0275\u0275styleProp("--hot-toast-group-height",ctx.groupHeight+"px"),\u0275\u0275property("ngClass",null==ctx.toast.group?null:ctx.toast.group.className),\u0275\u0275advance(2),\u0275\u0275repeater(ctx.groupChildrenToasts))},dependencies:[common_CommonModule,NgClass,NgStyle,DynamicViewDirective,IndicatorComponent,AnimatedIconComponent,HotToastGroupItemComponent],encapsulation:2,changeDetection:0})}return HotToastComponent2})(),HotToastContainerComponent=(()=>{class HotToastContainerComponent2{constructor(cdr,toastService){this.cdr=cdr,this.toastService=toastService,this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new Subject_Subject,this._onGroupToggle=new Subject_Subject,this._onGroupRefAttached=new Subject_Subject,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable()}trackById(index,toast){return toast.id}getVisibleToasts(position){return this.unGroupedToasts.filter(t=>t.visible&&t.position===position)}get unGroupedToasts(){return this.toasts.filter(t=>void 0===t.group?.parent||void 0===t.group?.children||0===t.group?.children.length)}calculateOffset(toastId,position){const visibleToasts=this.getVisibleToasts(position),index=visibleToasts.findIndex(toast=>toast.id===toastId);return-1!==index?visibleToasts.slice(...this.defaultConfig.reverseOrder?[index+1]:[0,index]).reduce((acc,t,i)=>0!==this.defaultConfig.visibleToasts&&ithis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(t=>{t.autoClose&&this.closeToast(t.id)}),this.cdr.detectChanges(),this.attachGroupRefs(toast,ref2,skipAttachToParent),{dispose:()=>{this.closeToast(toast.id)},updateMessage:message=>{toast.message=message,this.updateToasts(toast),this.cdr.detectChanges()},updateToast:options=>{this.updateToasts(toast,options),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(toast),afterGroupToggled:this.getAfterGroupToggled(toast),afterGroupRefsAttached:this.getAfterGroupRefsAttached(toast).pipe(map_map(v=>v.groupRefs))}}attachGroupRefs(toast,ref2,skipAttachToParent){var _this=this;return asyncToGenerator_asyncToGenerator(function*(){let groupRefs=[];if(toast.group)if(toast.group.children){groupRefs=yield _this.createGroupRefs(toast,ref2);const toastIndex=_this.toastRefs.findIndex(t=>t.getToast().id===toast.id);toastIndex>-1&&(_this.toastRefs[toastIndex].groupRefs=groupRefs,_this.cdr.detectChanges(),_this._onGroupRefAttached.next({groupRefs,id:toast.id}))}else if(toast.group.parent&&!skipAttachToParent){const parentToast=toast.group.parent.getToast(),parentToastRefIndex=_this.toastRefs.findIndex(t=>t.getToast().id===parentToast.id),parentToastIndex=_this.toasts.findIndex(t=>t.id===parentToast.id);if(parentToastRefIndex>-1&&parentToastIndex>-1){_this.toastRefs[parentToastRefIndex].groupRefs.push(ref2);const existingGroup=_this.toasts[parentToastRefIndex].group??{},existingChildren=_this.toasts[parentToastRefIndex].group?.children??[];existingChildren.push({options:{...toast,type:toast.type,message:toast.message}}),existingGroup.children=existingChildren,_this.toasts[parentToastRefIndex].group={...existingGroup},_this.cdr.detectChanges(),_this._onGroupRefAttached.next({groupRefs,id:parentToast.id})}}})()}createGroupRefs(toast,ref2){return new Promise(resolve=>{const allPromises=toast.group.children.map(item=>new Promise(innerResolve=>{item.options.group={parent:ref2},setTimeout(()=>{const itemRef=this.toastService.show(item.options.message,item.options,!0);innerResolve(itemRef)})}));Promise.all(allPromises).then(refs=>resolve(refs))})}closeToast(id){if(id){const comp=this.hotToastComponentList.find(item=>item.toast.id===id);comp&&comp.close()}else this.hotToastComponentList.forEach(comp=>comp.close())}beforeClosed(toast){toast.visible=!1}afterClosed(closeToast){this.toasts.findIndex(t=>t.id===closeToast.id)>-1&&(this._onClosed.next(closeToast),this.toasts=this.toasts.filter(t=>t.id!==closeToast.id),this.toastRefs=this.toastRefs.filter(t=>t.getToast().id!==closeToast.id),this.cdr.detectChanges())}toggleGroup(groupEvent){const toastIndex=this.toastRefs.findIndex(t=>t.getToast().id===groupEvent.id);toastIndex>-1&&(this._onGroupToggle.next(groupEvent),this.toastRefs[toastIndex].groupExpanded="expand"===groupEvent.event,this.cdr.detectChanges())}hasToast(id){return this.toasts.findIndex(t=>t.id===id)>-1}showAllToasts(show){this.isShowingAllToasts=show}getAfterClosed(toast){return this.onClosed$.pipe(filter_filter(v=>v.id===toast.id))}getAfterGroupToggled(toast){return this.onGroupToggle$.pipe(filter_filter(v=>v.id===toast.id))}getAfterGroupRefsAttached(toast){return this.onGroupRefAttached$.pipe(filter_filter(v=>v.id===toast.id))}updateToasts(toast,options){this.toasts=this.toasts.map(t=>({...t,...t.id===toast.id&&{...toast,...options}}))}static#_=this.\u0275fac=function(t){return new(t||HotToastContainerComponent2)(\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(HotToastService))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:HotToastContainerComponent2,selectors:[["hot-toast-container"]],viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(HotToastComponent,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.hotToastComponentList=_t)}},inputs:{defaultConfig:"defaultConfig"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:11,vars:0,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(rf,ctx){1&rf&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275text(1,"\n "),\u0275\u0275elementStart(2,"div",1),\u0275\u0275text(3,"\n "),\u0275\u0275elementStart(4,"div"),\u0275\u0275text(5,"\n "),\u0275\u0275repeaterCreate(6,HotToastContainerComponent_For_7_Template,3,1,null,null,ctx.trackById,!0),\u0275\u0275elementEnd(),\u0275\u0275text(8,"\n "),\u0275\u0275elementEnd(),\u0275\u0275text(9,"\n"),\u0275\u0275elementEnd(),\u0275\u0275text(10,"\n")),2&rf&&(\u0275\u0275advance(6),\u0275\u0275repeater(ctx.toasts))},dependencies:[HotToastComponent],encapsulation:2,changeDetection:0})}return HotToastContainerComponent2})();class ToastConfig{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}}class ToastPersistConfig{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}}let HotToastService=(()=>{class HotToastService2{constructor(_viewService,platformId,globalConfig){this._viewService=_viewService,this.platformId=platformId,this._isInitialized=!1,this._defaultGlobalConfig=new ToastConfig,this._defaultPersistConfig=new ToastPersistConfig,globalConfig&&(this._defaultGlobalConfig={...this._defaultGlobalConfig,...globalConfig})}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(config2){this._defaultGlobalConfig={...this._defaultGlobalConfig,...config2},this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(message,options,skipAttachToParent){return this.createToast({message:message||this._defaultGlobalConfig.blank.content,type:options?.type??"blank",options:{...this._defaultGlobalConfig,...options},skipAttachToParent})}error(message,options){return this.createToast({message:message||this._defaultGlobalConfig.error.content,type:"error",options:{...this._defaultGlobalConfig,...this._defaultGlobalConfig?.error,...options}})}success(message,options){return this.createToast({message:message||this._defaultGlobalConfig.success.content,type:"success",options:{...this._defaultGlobalConfig,...this._defaultGlobalConfig?.success,...options}})}loading(message,options){return this.createToast({message:message||this._defaultGlobalConfig.loading.content,type:"loading",options:{...this._defaultGlobalConfig,...this._defaultGlobalConfig?.loading,...options}})}warning(message,options){return this.createToast({message:message||this._defaultGlobalConfig.warning.content,type:"warning",options:{...this._defaultGlobalConfig,...this._defaultGlobalConfig?.warning,...options}})}info(message,options){return this.createToast({message:message||this._defaultGlobalConfig.info.content,type:"info",options:{...this._defaultGlobalConfig,...this._defaultGlobalConfig?.info,...options}})}observe(messages){return source=>{let toastRef,start2=0;const loadingContent=messages.loading??this._defaultGlobalConfig.loading?.content,successContent=messages.success??this._defaultGlobalConfig.success?.content,errorContent=messages.error??this._defaultGlobalConfig.error?.content;return defer(()=>(loadingContent&&(toastRef=this.createLoadingToast(loadingContent),start2=Date.now()),source.pipe(tap_tap({...successContent&&{next:val=>{toastRef=this.createOrUpdateToast(messages,val,toastRef,"success",0===start2?start2:Date.now()-start2)}},...errorContent&&{error:e2=>{toastRef=this.createOrUpdateToast(messages,e2,toastRef,"error",0===start2?start2:Date.now()-start2)}}}))))}}close(id){this._componentRef&&this._componentRef.ref.instance.closeToast(id)}init(){common_isPlatformServer(this.platformId)||(this._componentRef=this._viewService.createComponent(HotToastContainerComponent).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body))}createOrUpdateToast(messages,val,toastRef,type,diff){try{let content=null,options={};if(({content,options}=this.getContentAndOptions(type,messages[type]||(this._defaultGlobalConfig[type]?this._defaultGlobalConfig[type].content:""))),arg=val,content=(arg=>"function"==typeof arg&&arg.decorators&&arg.decorators.some(decorator=>decorator.type===Component))(valOrFunction=content)?valOrFunction:(valOrFunction=>"function"==typeof valOrFunction)(valOrFunction)?valOrFunction(arg):valOrFunction,toastRef){options.data&&(toastRef.data=options.data),toastRef.updateMessage(content);const updatedOptions={type,duration:diff+HOT_TOAST_DEFAULT_TIMEOUTS[type],...options,...options.duration&&{duration:diff+options.duration}};toastRef.updateToast(updatedOptions)}else this.createToast({message:content,type,options});return toastRef}catch(error){console.error(error)}var valOrFunction,arg}createToast({message,type,options,observableMessages,skipAttachToParent}){this._isInitialized||(this._isInitialized=!0,this.init());const now=Date.now(),id=options?.id??now.toString();if(!this.isDuplicate(id)&&(!options.persist?.enabled||options.persist?.enabled&&this.handleStorageValue(id,options))){const toast={ariaLive:options?.ariaLive??"polite",createdAt:now,duration:options?.duration??HOT_TOAST_DEFAULT_TIMEOUTS[type],id,message,role:options?.role??"status",type,visible:!0,observableMessages:observableMessages??void 0,...options};return new HotToastRef(toast).appendTo(this._componentRef.ref.instance,skipAttachToParent)}}isDuplicate(id){return this._componentRef.ref.instance.hasToast(id)}handleStorageValue(id,options){let count=1;const persist={...this._defaultPersistConfig,...options.persist},storage="local"===persist.storage?localStorage:sessionStorage,key=persist.key.replace(/\${id}/g,id);let item=storage.getItem(key);return item?(item=parseInt(item,10),count=item>0?item-1:item):count=persist.count,storage.setItem(key,count.toString()),count}getContentAndOptions(toastType,message){let content,options={...this._defaultGlobalConfig,...this._defaultGlobalConfig[toastType]};if("string"==typeof message||isTemplateRef(message)||ngneat_overview_isComponent(message))content=message;else{let restOptions;({content,...restOptions}=message),options={...options,...restOptions}}return{content,options}}createLoadingToast(messages){let content=null,options={};return({content,options}=this.getContentAndOptions("loading",messages)),this.loading(content,options)}static#_=this.\u0275fac=function(t){return new(t||HotToastService2)(\u0275\u0275inject(ViewService),\u0275\u0275inject(core_PLATFORM_ID),\u0275\u0275inject(ToastConfig,8))};static#_2=this.\u0275prov=core_defineInjectable({token:HotToastService2,factory:HotToastService2.\u0275fac,providedIn:"root"})}return HotToastService2})();function provideHotToastConfig(config2){return core_makeEnvironmentProviders([{provide:ToastConfig,useValue:config2}])}const angular_split_c0=["gutterEls"],angular_split_c1=["*"],angular_split_c2=(a0,a1,a2,a3,a4,a5)=>({areaBefore:a0,areaAfter:a1,gutterNum:a2,first:a3,last:a4,isDragged:a5});function SplitComponent_ng_template_1_div_0_ng_container_2_ng_container_1_ng_container_1_Template(rf,ctx){1&rf&&\u0275\u0275elementContainer(0)}function SplitComponent_ng_template_1_div_0_ng_container_2_ng_container_1_Template(rf,ctx){if(1&rf&&(\u0275\u0275elementContainerStart(0),\u0275\u0275template(1,SplitComponent_ng_template_1_div_0_ng_container_2_ng_container_1_ng_container_1_Template,1,0,"ng-container",7),\u0275\u0275elementContainerEnd()),2&rf){const injector_r4=ctx.$implicit,ctx_r4=\u0275\u0275nextContext(3),area_r6=ctx_r4.$implicit,index_r2=ctx_r4.index,first_r7=ctx_r4.first,ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",ctx_r2.customGutter.template)("ngTemplateOutletContext",\u0275\u0275pureFunction6(3,angular_split_c2,area_r6,ctx_r2.displayedAreas[index_r2+1],index_r2+1,first_r7,index_r2===ctx_r2.displayedAreas.length-2,ctx_r2.draggedGutterNum===index_r2+1))("ngTemplateOutletInjector",injector_r4)}}function SplitComponent_ng_template_1_div_0_ng_container_2_Template(rf,ctx){if(1&rf&&(\u0275\u0275elementContainerStart(0),\u0275\u0275template(1,SplitComponent_ng_template_1_div_0_ng_container_2_ng_container_1_Template,2,10,"ng-container",6),\u0275\u0275elementContainerEnd()),2&rf){const index_r2=\u0275\u0275nextContext(2).index;\u0275\u0275advance(),\u0275\u0275property("asSplitGutterDynamicInjector",index_r2+1)}}function SplitComponent_ng_template_1_div_0_ng_template_3_Template(rf,ctx){1&rf&&\u0275\u0275element(0,"div",8)}function SplitComponent_ng_template_1_div_0_Template(rf,ctx){if(1&rf){const _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",4,0),\u0275\u0275listener("keydown",function($event){\u0275\u0275restoreView(_r1);const index_r2=\u0275\u0275nextContext().index;return \u0275\u0275resetView(\u0275\u0275nextContext().startKeyboardDrag($event,2*index_r2+1,index_r2+1))})("mousedown",function($event){\u0275\u0275restoreView(_r1);const index_r2=\u0275\u0275nextContext().index;return \u0275\u0275resetView(\u0275\u0275nextContext().startMouseDrag($event,2*index_r2+1,index_r2+1))})("touchstart",function($event){\u0275\u0275restoreView(_r1);const index_r2=\u0275\u0275nextContext().index;return \u0275\u0275resetView(\u0275\u0275nextContext().startMouseDrag($event,2*index_r2+1,index_r2+1))})("mouseup",function($event){\u0275\u0275restoreView(_r1);const index_r2=\u0275\u0275nextContext().index;return \u0275\u0275resetView(\u0275\u0275nextContext().clickGutter($event,index_r2+1))})("touchend",function($event){\u0275\u0275restoreView(_r1);const index_r2=\u0275\u0275nextContext().index;return \u0275\u0275resetView(\u0275\u0275nextContext().clickGutter($event,index_r2+1))}),\u0275\u0275template(2,SplitComponent_ng_template_1_div_0_ng_container_2_Template,2,1,"ng-container",5)(3,SplitComponent_ng_template_1_div_0_ng_template_3_Template,1,0,"ng-template",null,1,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()}if(2&rf){const defaultGutterTpl_r8=\u0275\u0275reference(4),ctx_r4=\u0275\u0275nextContext(),area_r6=ctx_r4.$implicit,index_r2=ctx_r4.index,ctx_r2=\u0275\u0275nextContext();\u0275\u0275styleProp("flex-basis",ctx_r2.gutterSize,"px")("order",2*index_r2+1),\u0275\u0275classProp("as-dragged",ctx_r2.draggedGutterNum===index_r2+1),\u0275\u0275attribute("aria-label",ctx_r2.gutterAriaLabel)("aria-orientation",ctx_r2.direction)("aria-valuemin",area_r6.minSize)("aria-valuemax",area_r6.maxSize)("aria-valuenow","*"===area_r6.size?null:area_r6.size)("aria-valuetext",ctx_r2.getAriaAreaSizeText(area_r6.size)),\u0275\u0275advance(2),\u0275\u0275property("ngIf",null==ctx_r2.customGutter?null:ctx_r2.customGutter.template)("ngIfElse",defaultGutterTpl_r8)}}function SplitComponent_ng_template_1_Template(rf,ctx){1&rf&&\u0275\u0275template(0,SplitComponent_ng_template_1_div_0_Template,5,14,"div",3),2&rf&&\u0275\u0275property("ngIf",!1===ctx.last)}function getPointFromEvent(event){if(void 0!==event.changedTouches&&event.changedTouches.length>0)return{x:event.changedTouches[0].clientX,y:event.changedTouches[0].clientY};if(void 0!==event.clientX&&void 0!==event.clientY)return{x:event.clientX,y:event.clientY};if(void 0!==event.currentTarget){const gutterEl=event.currentTarget;return{x:gutterEl.offsetLeft,y:gutterEl.offsetTop}}return null}function pointDeltaEquals(lhs,rhs,deltaPx){return Math.abs(lhs.x-rhs.x)<=deltaPx&&Math.abs(lhs.y-rhs.y)<=deltaPx}function getElementPixelSize(elRef,direction){const rect=elRef.nativeElement.getBoundingClientRect();return"horizontal"===direction?rect.width:rect.height}function getInputBoolean(v){return"boolean"==typeof v?v:"false"!==v}function getInputPositiveNumber(v,defaultValue){return null==v?defaultValue:(v=Number(v),!isNaN(v)&&v>=0?v:defaultValue)}function isUserSizesValid(unit,sizes){if("percent"===unit){const total=sizes.reduce((total2,s)=>"*"!==s?total2+s:total2,0),wildcardSizeAreas=sizes.filter(size=>"*"===size);return!(wildcardSizeAreas.length>1)&&(1===wildcardSizeAreas.length||total>99.9)&&total<100.1}if("pixel"===unit)return 1===sizes.filter(s=>"*"===s).length}function getAreaMinSize(a){return"*"===a.size?null:!0===a.component.lockSize?a.size:null===a.component.minSize?null:a.component.minSize}function getAreaMaxSize(a){return"*"===a.size?null:!0===a.component.lockSize?a.size:null===a.component.maxSize?null:a.component.maxSize{const res=function getAreaAbsorptionCapacity(unit,areaSnapshot,pixels,allAreasSizePixel){return 0===pixels?{areaSnapshot,pixelAbsorb:0,percentAfterAbsorption:areaSnapshot.sizePercentAtStart,pixelRemain:0}:0===areaSnapshot.sizePixelAtStart&&pixels<0?{areaSnapshot,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:pixels}:"percent"===unit?function getAreaAbsorptionCapacityPercent(areaSnapshot,pixels,allAreasSizePixel){const tempPercentSize=(areaSnapshot.sizePixelAtStart+pixels)/allAreasSizePixel*100;if(pixels>0){if(null!==areaSnapshot.area.maxSize&&tempPercentSize>areaSnapshot.area.maxSize){const maxSizePixel=areaSnapshot.area.maxSize/100*allAreasSizePixel;return{areaSnapshot,pixelAbsorb:maxSizePixel,percentAfterAbsorption:areaSnapshot.area.maxSize,pixelRemain:areaSnapshot.sizePixelAtStart+pixels-maxSizePixel}}return{areaSnapshot,pixelAbsorb:pixels,percentAfterAbsorption:tempPercentSize>100?100:tempPercentSize,pixelRemain:0}}if(pixels<0){if(null!==areaSnapshot.area.minSize&&tempPercentSize0?null!==areaSnapshot.area.maxSize&&tempPixelSize>areaSnapshot.area.maxSize?{areaSnapshot,pixelAbsorb:areaSnapshot.area.maxSize-areaSnapshot.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:tempPixelSize-areaSnapshot.area.maxSize}:{areaSnapshot,pixelAbsorb:pixels,percentAfterAbsorption:-1,pixelRemain:0}:pixels<0?null!==areaSnapshot.area.minSize&&tempPixelSize{class SplitGutterDirective2{constructor(template){this.template=template,this.gutterToHandleElementMap=new Map,this.gutterToExcludeDragElementMap=new Map}canStartDragging(originElement,gutterNum){return(!this.gutterToExcludeDragElementMap.has(gutterNum)||!this.gutterToExcludeDragElementMap.get(gutterNum).some(gutterExcludeElement=>gutterExcludeElement.nativeElement.contains(originElement)))&&(!this.gutterToHandleElementMap.has(gutterNum)||this.gutterToHandleElementMap.get(gutterNum).some(gutterHandleElement=>gutterHandleElement.nativeElement.contains(originElement)))}addToMap(map2,gutterNum,elementRef){map2.has(gutterNum)?map2.get(gutterNum).push(elementRef):map2.set(gutterNum,[elementRef])}removedFromMap(map2,gutterNum,elementRef){const elements=map2.get(gutterNum);elements.splice(elements.indexOf(elementRef),1),0===elements.length&&map2.delete(gutterNum)}static ngTemplateContextGuard(dir,ctx){return!0}static#_=this.\u0275fac=function(t){return new(t||SplitGutterDirective2)(\u0275\u0275directiveInject(core_TemplateRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:SplitGutterDirective2,selectors:[["","asSplitGutter",""]]})}return SplitGutterDirective2})();const GUTTER_NUM_TOKEN=new InjectionToken("Gutter num");let SplitGutterDynamicInjectorDirective=(()=>{class SplitGutterDynamicInjectorDirective2{set gutterNum(value){this.vcr.clear();const injector=core_Injector.create({providers:[{provide:GUTTER_NUM_TOKEN,useValue:value}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:injector})}constructor(vcr,templateRef){this.vcr=vcr,this.templateRef=templateRef}static ngTemplateContextGuard(dir,ctx){return!0}static#_=this.\u0275fac=function(t){return new(t||SplitGutterDynamicInjectorDirective2)(\u0275\u0275directiveInject(core_ViewContainerRef),\u0275\u0275directiveInject(core_TemplateRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:SplitGutterDynamicInjectorDirective2,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:[InputFlags.None,"asSplitGutterDynamicInjector","gutterNum"]}})}return SplitGutterDynamicInjectorDirective2})(),SplitComponent=(()=>{class SplitComponent2{set direction(v){this._direction="vertical"===v?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(v){this._unit="pixel"===v?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(v){this._gutterSize=getInputPositiveNumber(v,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(v){this._gutterStep=getInputPositiveNumber(v,1)}get gutterStep(){return this._gutterStep}set restrictMove(v){this._restrictMove=getInputBoolean(v)}get restrictMove(){return this._restrictMove}set useTransition(v){this._useTransition=getInputBoolean(v),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(v){this._disabled=getInputBoolean(v),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(v){this._dir="rtl"===v?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(v){this._gutterDblClickDuration=getInputPositiveNumber(v,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new Observable_Observable(subscriber=>this.transitionEndSubscriber=subscriber).pipe(debounceTime(20))}constructor(ngZone,elRef,cdRef,renderer,globalConfig){this.ngZone=ngZone,this.elRef=elRef,this.cdRef=cdRef,this.renderer=renderer,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new core_EventEmitter(!1),this.dragEnd=new core_EventEmitter(!1),this.gutterClick=new core_EventEmitter(!1),this.gutterDblClick=new core_EventEmitter(!1),this.dragProgressSubject=new Subject_Subject,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.draggedGutterNum=void 0,this.direction=this._direction,this._config=globalConfig?Object.assign(this._config,globalConfig):this._config,Object.keys(this._config).forEach(property=>{this[property]=this._config[property]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(component){const newArea={component,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===component.visible?(this.displayedAreas.push(newArea),this.build(!0,!0)):this.hiddenAreas.push(newArea)}removeArea(component){if(this.displayedAreas.some(a=>a.component===component)){const area=this.displayedAreas.find(a=>a.component===component);this.displayedAreas.splice(this.displayedAreas.indexOf(area),1),this.build(!0,!0)}else if(this.hiddenAreas.some(a=>a.component===component)){const area=this.hiddenAreas.find(a=>a.component===component);this.hiddenAreas.splice(this.hiddenAreas.indexOf(area),1)}}updateArea(component,resetOrders,resetSizes){!0===component.visible&&this.build(resetOrders,resetSizes)}showArea(component){const area=this.hiddenAreas.find(a=>a.component===component);if(void 0===area)return;const areas=this.hiddenAreas.splice(this.hiddenAreas.indexOf(area),1);this.displayedAreas.push(...areas),this.build(!0,!0)}hideArea(comp){const area=this.displayedAreas.find(a=>a.component===comp);if(void 0===area)return;const areas=this.displayedAreas.splice(this.displayedAreas.indexOf(area),1);areas.forEach(item=>{item.order=0,item.size=0}),this.hiddenAreas.push(...areas),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(a=>a.size)}setVisibleAreaSizes(sizes){if(sizes.length!==this.displayedAreas.length)return!1;const formattedSizes=sizes.map(s=>getInputPositiveNumber(s,"*"));return!1!==isUserSizesValid(this.unit,formattedSizes)&&(this.displayedAreas.forEach((area,i)=>area.component.size=formattedSizes[i]),this.build(!1,!0),!0)}build(resetOrders,resetSizes){if(this.stopDragging(),!0===resetOrders&&(this.displayedAreas.every(a=>null!==a.component.order)&&this.displayedAreas.sort((a,b)=>a.component.order-b.component.order),this.displayedAreas.forEach((area,i)=>{area.order=2*i,area.component.setStyleOrder(area.order)})),!0===resetSizes){const useUserSizes=isUserSizesValid(this.unit,this.displayedAreas.map(a=>a.component.size));switch(this.unit){case"percent":{const defaultSize=100/this.displayedAreas.length;this.displayedAreas.forEach(area=>{area.size=useUserSizes?area.component.size:defaultSize,area.minSize=getAreaMinSize(area),area.maxSize=getAreaMaxSize(area)});break}case"pixel":if(useUserSizes)this.displayedAreas.forEach(area=>{area.size=area.component.size,area.minSize=getAreaMinSize(area),area.maxSize=getAreaMaxSize(area)});else{const wildcardSizeAreas=this.displayedAreas.filter(a=>"*"===a.component.size);if(0===wildcardSizeAreas.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((area,i)=>{area.size=0===i?"*":area.component.size,area.minSize=0===i?area.component.minSize:getAreaMinSize(area),area.maxSize=0===i?null:getAreaMaxSize(area)});else if(wildcardSizeAreas.length>1){let alreadyGotOne=!1;this.displayedAreas.forEach(area=>{"*"===area.component.size?!1===alreadyGotOne?(area.size="*",area.minSize=null,area.maxSize=null,alreadyGotOne=!0):(area.size=100,area.minSize=null,area.maxSize=null):(area.size=area.component.size,area.minSize=getAreaMinSize(area),area.maxSize=getAreaMaxSize(area))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const sumGutterSize=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(area=>{"*"===area.size?area.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):area.component.setStyleFlex(0,0,`calc( ${area.size}% - ${area.size/100*sumGutterSize}px )`,null!==area.minSize&&area.minSize===area.size,null!==area.maxSize&&area.maxSize===area.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(area=>{"*"===area.size?area.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?area.component.setStyleFlex(0,0,"100%",!1,!1):area.component.setStyleFlex(0,0,`${area.size}px`,null!==area.minSize&&area.minSize===area.size,null!==area.maxSize&&area.maxSize===area.size)})}clickGutter(event,gutterNum){const tempPoint=getPointFromEvent(event);this.startPoint&&pointDeltaEquals(this.startPoint,tempPoint,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",gutterNum),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",gutterNum),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(event,gutterOrder,gutterNum){if(!0===this.disabled||!0===this.isWaitingClear)return;const endPoint=function getKeyboardEndpoint(event,direction){if("horizontal"===direction)switch(event.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===direction)switch(event.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const gutterEl=event.currentTarget,offset="PageUp"===event.key||"PageDown"===event.key?500:50;let offsetX=gutterEl.offsetLeft,offsetY=gutterEl.offsetTop;switch(event.key){case"ArrowLeft":offsetX-=offset;break;case"ArrowRight":offsetX+=offset;break;case"ArrowUp":offsetY-=offset;break;case"ArrowDown":offsetY+=offset;break;case"PageUp":"vertical"===direction?offsetY-=offset:offsetX+=offset;break;case"PageDown":"vertical"===direction?offsetY+=offset:offsetX-=offset;break;default:return null}return{x:offsetX,y:offsetY}}(event,this.direction);null!==endPoint&&(this.endPoint=endPoint,this.startPoint=getPointFromEvent(event),event.preventDefault(),event.stopPropagation(),this.setupForDragEvent(gutterOrder,gutterNum),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(event,gutterOrder,gutterNum){this.customGutter&&!this.customGutter.canStartDragging(event.target,gutterNum)||(event.preventDefault(),event.stopPropagation(),this.startPoint=getPointFromEvent(event),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(gutterOrder,gutterNum),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging()))}setupForDragEvent(gutterOrder,gutterNum){if(this.snapshot={gutterNum,lastSteppedOffset:0,allAreasSizePixel:getElementPixelSize(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(area=>{const areaSnapshot={area,sizePixelAtStart:getElementPixelSize(area.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?area.size:-1};area.ordergutterOrder&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[areaSnapshot]):this.snapshot.areasAfterGutter.push(areaSnapshot))}),this.restrictMove&&"percent"===this.unit){const areaSnapshotBefore=this.snapshot.areasBeforeGutter[0],areaSnapshotAfter=this.snapshot.areasAfterGutter[0];if("*"===areaSnapshotBefore.area.size||"*"===areaSnapshotAfter.area.size){const notInvolvedAreasSizesPercent=this.displayedAreas.reduce((accum,area)=>areaSnapshotBefore.area!==area&&areaSnapshotAfter.area!==area?accum+area.size:accum,0);this.snapshot.allInvolvedAreasSizePercent=100-notInvolvedAreasSizesPercent}else this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((t,a)=>t+a.sizePercentAtStart,0)}}startDragging(){this.displayedAreas.forEach(area=>area.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(event){event.preventDefault(),event.stopPropagation();const tempPoint=getPointFromEvent(event);null!==this._clickTimeout&&!pointDeltaEquals(this.startPoint,tempPoint,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=getPointFromEvent(event),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=this.snapshot.gutterNum,this.cdRef.markForCheck(),this.notify("start",this.snapshot.gutterNum)})}let offset="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(offset=-offset);const steppedOffset=Math.round(offset/this.gutterStep)*this.gutterStep;if(steppedOffset===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=steppedOffset;let areasBefore=getGutterSideAbsorptionCapacity(this.unit,this.snapshot.areasBeforeGutter,-steppedOffset,this.snapshot.allAreasSizePixel),areasAfter=getGutterSideAbsorptionCapacity(this.unit,this.snapshot.areasAfterGutter,steppedOffset,this.snapshot.allAreasSizePixel);if(0!==areasBefore.remain&&0!==areasAfter.remain?Math.abs(areasBefore.remain)===Math.abs(areasAfter.remain)||(Math.abs(areasBefore.remain)>Math.abs(areasAfter.remain)?areasAfter=getGutterSideAbsorptionCapacity(this.unit,this.snapshot.areasAfterGutter,steppedOffset+areasBefore.remain,this.snapshot.allAreasSizePixel):areasBefore=getGutterSideAbsorptionCapacity(this.unit,this.snapshot.areasBeforeGutter,-(steppedOffset-areasAfter.remain),this.snapshot.allAreasSizePixel)):0!==areasBefore.remain?areasAfter=getGutterSideAbsorptionCapacity(this.unit,this.snapshot.areasAfterGutter,steppedOffset+areasBefore.remain,this.snapshot.allAreasSizePixel):0!==areasAfter.remain&&(areasBefore=getGutterSideAbsorptionCapacity(this.unit,this.snapshot.areasBeforeGutter,-(steppedOffset-areasAfter.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const all=[...areasBefore.list,...areasAfter.list],areaToReset=all.find(a=>"*"===a.percentAfterAbsorption)??all.find(a=>0!==a.percentAfterAbsorption&&a.percentAfterAbsorption!==a.areaSnapshot.area.minSize&&a.percentAfterAbsorption!==a.areaSnapshot.area.maxSize);areaToReset&&(areaToReset.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-all.filter(a=>a!==areaToReset).reduce((total,a)=>total+a.percentAfterAbsorption,0))}areasBefore.list.forEach(item=>updateAreaSize(this.unit,item)),areasAfter.list.forEach(item=>updateAreaSize(this.unit,item)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(event){if(event&&(event.preventDefault(),event.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(area=>area.component.unlockEvents());this.dragListeners.length>0;){const fct=this.dragListeners.pop();fct&&fct()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=void 0,this.cdRef.markForCheck(),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(type,gutterNum){const sizes=this.getVisibleAreaSizes();"start"===type?this.dragStart.emit({gutterNum,sizes}):"end"===type?this.dragEnd.emit({gutterNum,sizes}):"click"===type?this.gutterClick.emit({gutterNum,sizes}):"dblclick"===type?this.gutterDblClick.emit({gutterNum,sizes}):"transitionEnd"===type?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(sizes)):"progress"===type&&this.dragProgressSubject.next({gutterNum,sizes})}ngOnDestroy(){this.stopDragging()}collapseArea(comp,newSize,gutter){const area=this.displayedAreas.find(a=>a.component===comp);if(void 0===area)return;const whichGutter="right"===gutter?1:-1;area.sizeBeforeCollapse||(area.sizeBeforeCollapse=area.size,area.gutterBeforeCollapse=whichGutter),area.size=newSize;const gtr=this.gutterEls.find(f=>f.nativeElement.style.order===`${area.order+whichGutter}`);gtr&&this.renderer.addClass(gtr.nativeElement,"as-split-gutter-collapsed"),this.updateArea(comp,!1,!1)}expandArea(comp){const area=this.displayedAreas.find(a=>a.component===comp);if(void 0===area||!area.sizeBeforeCollapse)return;area.size=area.sizeBeforeCollapse,area.sizeBeforeCollapse=null;const gtr=this.gutterEls.find(f=>f.nativeElement.style.order===`${area.order+area.gutterBeforeCollapse}`);gtr&&this.renderer.removeClass(gtr.nativeElement,"as-split-gutter-collapsed"),this.updateArea(comp,!1,!1)}getAriaAreaSizeText(size){return"*"===size?null:size.toFixed(0)+" "+this.unit}static#_=this.\u0275fac=function(t){return new(t||SplitComponent2)(\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(core_ChangeDetectorRef),\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(ANGULAR_SPLIT_DEFAULT_OPTIONS,8))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:SplitComponent2,selectors:[["as-split"]],contentQueries:function(rf,ctx,dirIndex){if(1&rf&&\u0275\u0275contentQuery(dirIndex,SplitGutterDirective,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.customGutter=_t.first)}},viewQuery:function(rf,ctx){if(1&rf&&\u0275\u0275viewQuery(angular_split_c0,5),2&rf){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.gutterEls=_t)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:angular_split_c1,decls:2,vars:1,consts:[["gutterEls",""],["defaultGutterTpl",""],["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"as-dragged","flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],[4,"ngIf","ngIfElse"],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[1,"as-split-gutter-icon"]],template:function(rf,ctx){1&rf&&(\u0275\u0275projectionDef(),\u0275\u0275projection(0),\u0275\u0275template(1,SplitComponent_ng_template_1_Template,1,1,"ng-template",2)),2&rf&&(\u0275\u0275advance(),\u0275\u0275property("ngForOf",ctx.displayedAreas))},dependencies:[NgForOf,NgIf,NgTemplateOutlet,SplitGutterDynamicInjectorDirective],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return SplitComponent2})(),SplitAreaDirective=(()=>{class SplitAreaDirective2{set order(v){this._order=getInputPositiveNumber(v,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(v){this._size=getInputPositiveNumber(v,"*"),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(v){this._minSize=getInputPositiveNumber(v,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(v){this._maxSize=getInputPositiveNumber(v,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(v){this._lockSize=getInputBoolean(v),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(v){this._visible=getInputBoolean(v),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(ngZone,renderer,split2,elRef){this.ngZone=ngZone,this.renderer=renderer,this.split=split2,this.elRef=elRef,this._order=null,this._size="*",this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",event=>{"flex-basis"===event.propertyName&&this.split.notify("transitionEnd",-1)})});const iframeFixDiv=this.renderer.createElement("div");this.renderer.addClass(iframeFixDiv,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,iframeFixDiv)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,iframeFixDiv)})}setStyleOrder(value){this.renderer.setStyle(this.elRef.nativeElement,"order",value)}setStyleFlex(grow,shrink,basis,isMin,isMax){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",grow),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",shrink),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",basis),!0===isMin?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===isMax?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const fct=this.lockListeners.pop();fct&&fct()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(newSize=0,gutter="right"){this.split.collapseArea(this,newSize,gutter)}expand(){this.split.expandArea(this)}static#_=this.\u0275fac=function(t){return new(t||SplitAreaDirective2)(\u0275\u0275directiveInject(core_NgZone),\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(SplitComponent),\u0275\u0275directiveInject(core_ElementRef))};static#_2=this.\u0275dir=\u0275\u0275defineDirective({type:SplitAreaDirective2,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return SplitAreaDirective2})(),AngularSplitModule=(()=>{class AngularSplitModule2{static#_=this.\u0275fac=function(t){return new(t||AngularSplitModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:AngularSplitModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[common_CommonModule]})}return AngularSplitModule2})();const angular_svg_icon_c0=["*"];class SvgLoader{}let SvgHttpLoader=(()=>{class SvgHttpLoader2 extends SvgLoader{constructor(http){super(),this.http=http}getSvg(url){return this.http.get(url,{responseType:"text"})}static#_=this.\u0275fac=function(t){return new(t||SvgHttpLoader2)(\u0275\u0275inject(HttpClient))};static#_2=this.\u0275prov=core_defineInjectable({token:SvgHttpLoader2,factory:SvgHttpLoader2.\u0275fac})}return SvgHttpLoader2})();const SERVER_URL=new InjectionToken("SERVER_URL");let SvgIconRegistryService=(()=>{class SvgIconRegistryService2{constructor(loader,platformId,serverUrl,_document2){this.loader=loader,this.platformId=platformId,this.serverUrl=serverUrl,this._document=_document2,this.iconsByUrl=new Map,this.iconsLoadingByUrl=new Map,this.document=this._document}addSvg(name,data){if(!this.iconsByUrl.has(name)){const div=this.document.createElement("DIV");div.innerHTML=data;const svg=div.querySelector("svg");this.iconsByUrl.set(name,svg)}}loadSvg(url,name=url){if(this.serverUrl&&null===url.match(/^(http(s)?):/)&&(name=url=this.serverUrl+url),this.iconsByUrl.has(name))return of_of(this.iconsByUrl.get(name));if(this.iconsLoadingByUrl.has(name))return this.iconsLoadingByUrl.get(name);const o=this.loader.getSvg(url).pipe(map_map(svg=>{const div=this.document.createElement("DIV");return div.innerHTML=svg,div.querySelector("svg")}),tap_tap(svg=>this.iconsByUrl.set(name,svg)),catchError_catchError(err=>(console.error(err),throwError_throwError(err))),finalize(()=>this.iconsLoadingByUrl.delete(name)),function share(options={}){const{connector=()=>new Subject_Subject,resetOnError=!0,resetOnComplete=!0,resetOnRefCountZero=!0}=options;return wrapperSource=>{let connection,resetConnection,subject,refCount2=0,hasCompleted=!1,hasErrored=!1;const cancelReset=()=>{resetConnection?.unsubscribe(),resetConnection=void 0},reset=()=>{cancelReset(),connection=subject=void 0,hasCompleted=hasErrored=!1},resetAndUnsubscribe=()=>{const conn=connection;reset(),conn?.unsubscribe()};return operate((source,subscriber)=>{refCount2++,!hasErrored&&!hasCompleted&&cancelReset();const dest=subject=subject??connector();subscriber.add(()=>{refCount2--,0===refCount2&&!hasErrored&&!hasCompleted&&(resetConnection=handleReset(resetAndUnsubscribe,resetOnRefCountZero))}),dest.subscribe(subscriber),!connection&&refCount2>0&&(connection=new SafeSubscriber({next:value=>dest.next(value),error:err=>{hasErrored=!0,cancelReset(),resetConnection=handleReset(reset,resetOnError,err),dest.error(err)},complete:()=>{hasCompleted=!0,cancelReset(),resetConnection=handleReset(reset,resetOnComplete),dest.complete()}}),innerFrom(source).subscribe(connection))})(wrapperSource)}}());return this.iconsLoadingByUrl.set(name,o),o}getSvgByName(name){return this.iconsByUrl.has(name)?of_of(this.iconsByUrl.get(name)):this.iconsLoadingByUrl.has(name)?this.iconsLoadingByUrl.get(name):throwError_throwError(`No svg with name '${name}' has been loaded`)}unloadSvg(url){this.iconsByUrl.has(url)&&this.iconsByUrl.delete(url)}static#_=this.\u0275fac=function(t){return new(t||SvgIconRegistryService2)(\u0275\u0275inject(SvgLoader),\u0275\u0275inject(core_PLATFORM_ID),\u0275\u0275inject(SERVER_URL,8),\u0275\u0275inject(common_DOCUMENT,8))};static#_2=this.\u0275prov=core_defineInjectable({token:SvgIconRegistryService2,factory:SvgIconRegistryService2.\u0275fac})}return SvgIconRegistryService2})();const SVG_ICON_REGISTRY_PROVIDER={provide:SvgIconRegistryService,deps:[[new core_Optional,new core_SkipSelf,SvgIconRegistryService],SvgLoader,[core_PLATFORM_ID],[new core_Optional,SERVER_URL],[new core_Optional,common_DOCUMENT]],useFactory:function SVG_ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry,loader,platformId,serverUrl,document2){return parentRegistry||new SvgIconRegistryService(loader,platformId,serverUrl,document2)}};class SvgIconHelper{constructor(){this.loaded=!1}}let SvgIconComponent=(()=>{class SvgIconComponent2{set svgStyle(values){this._svgStyle=values,!this.helper.differ&&values&&(this.helper.differ=this.differs.find(values).create())}constructor(element,differs,renderer,iconReg,cdr){this.element=element,this.differs=differs,this.renderer=renderer,this.iconReg=iconReg,this.cdr=cdr,this.stretch=!1,this.applyClass=!1,this.applyCss=!1,this.helper=new SvgIconHelper,this._svgStyle=null}ngOnInit(){this.init()}ngOnDestroy(){this.destroy()}ngOnChanges(changeRecord){const elemSvg=this.element.nativeElement.firstChild;(changeRecord.src||changeRecord.name)&&(this.helper.loaded&&this.destroy(),this.init()),changeRecord.stretch&&this.stylize(),changeRecord.applyClass&&(this.applyClass?this.setClass(elemSvg,null,this.klass):this.setClass(elemSvg,this.klass,null)),changeRecord.svgClass&&this.setClass(elemSvg,changeRecord.svgClass.previousValue,changeRecord.svgClass.currentValue),changeRecord.klass&&(this.setClass(this.element.nativeElement,changeRecord.klass.previousValue,changeRecord.klass.currentValue),this.setClass(elemSvg,changeRecord.klass.previousValue,this.applyClass?changeRecord.klass.currentValue:null)),changeRecord.viewBox&&(this.helper.loaded&&this.destroy(),this.init()),changeRecord.applyCss&&(console.warn("applyCss deprecated since 9.1.0, will be removed in 10.0.0"),console.warn("use applyClass instead")),changeRecord.svgAriaLabel&&this.doAria(changeRecord.svgAriaLabel.currentValue)}ngDoCheck(){if(this.helper.svg&&this.helper.differ){const changes=this.helper.differ.diff(this._svgStyle);changes&&this.applyChanges(changes)}}init(){if(this.name){const svgObs=this.iconReg.getSvgByName(this.name);svgObs&&(this.helper.icnSub=svgObs.subscribe(svg=>this.initSvg(svg)))}else if(this.src){const svgObs=this.iconReg.loadSvg(this.src);svgObs&&(this.helper.icnSub=svgObs.subscribe(svg=>this.initSvg(svg)))}else this.element.nativeElement.innerHTML="",this.cdr.markForCheck()}initSvg(svg){!this.helper.loaded&&svg&&(this.setSvg(svg),this.resetDiffer())}destroy(){this.helper.icnSub&&this.helper.icnSub.unsubscribe(),this.helper=new SvgIconHelper}resetDiffer(){this._svgStyle&&!this.helper.differ&&(this.helper.differ=this.differs.find(this._svgStyle).create())}setSvg(svg){if(!this.helper.loaded&&svg){this.helper.svg=svg;const icon=svg.cloneNode(!0),elem=this.element.nativeElement;if(elem.innerHTML="",this.renderer.appendChild(elem,icon),this.helper.loaded=!0,this.copyNgContentAttribute(elem,icon),this.klass&&this.applyClass&&this.setClass(elem.firstChild,null,this.klass),this.svgClass&&this.setClass(elem.firstChild,null,this.svgClass),this.viewBox)if("auto"===this.viewBox){const w=icon.getAttribute("width"),h=icon.getAttribute("height");h&&w&&(this.renderer.setAttribute(icon,"viewBox",`0 0 ${w} ${h}`),this.renderer.removeAttribute(icon,"width"),this.renderer.removeAttribute(icon,"height"))}else""!==this.viewBox&&(this.renderer.setAttribute(icon,"viewBox",this.viewBox),this.renderer.removeAttribute(icon,"width"),this.renderer.removeAttribute(icon,"height"));this.stylize(),void 0===this.svgAriaLabel&&elem.firstChild.hasAttribute("aria-label")||this.doAria(this.svgAriaLabel||""),this.cdr.markForCheck()}}copyNgContentAttribute(hostElem,icon){const attributes=hostElem.attributes,len=attributes.length;for(let i=0;ithis.setStyle(record2.key,null)),changes.forEachAddedItem(record2=>this.setStyle(record2.key,record2.currentValue)),changes.forEachChangedItem(record2=>this.setStyle(record2.key,record2.currentValue))}setStyle(nameAndUnit,value){const[name,unit]=nameAndUnit.split("."),svg=this.element.nativeElement.firstChild;null!==(value=null!==value&&unit?`${value}${unit}`:value)?this.renderer.setStyle(svg,name,value):this.renderer.removeStyle(svg,name)}setClass(target,previous,current){if(target){if(previous){const klasses=(Array.isArray(previous)?previous:previous.split(" ")).filter(klass=>klass);for(const k of klasses)this.renderer.removeClass(target,k)}if(current){const klasses=(Array.isArray(current)?current:current.split(" ")).filter(klass=>klass);for(const k of klasses)this.renderer.addClass(target,k)}}}doAria(label){const svg=this.element.nativeElement.firstChild;svg&&(""===label?(this.renderer.setAttribute(svg,"aria-hidden","true"),this.renderer.removeAttribute(svg,"aria-label")):(this.renderer.removeAttribute(svg,"aria-hidden"),this.renderer.setAttribute(svg,"aria-label",label)))}static#_=this.\u0275fac=function(t){return new(t||SvgIconComponent2)(\u0275\u0275directiveInject(core_ElementRef),\u0275\u0275directiveInject(KeyValueDiffers),\u0275\u0275directiveInject(core_Renderer2),\u0275\u0275directiveInject(SvgIconRegistryService),\u0275\u0275directiveInject(core_ChangeDetectorRef))};static#_2=this.\u0275cmp=\u0275\u0275defineComponent({type:SvgIconComponent2,selectors:[["svg-icon"]],inputs:{src:"src",name:"name",stretch:"stretch",applyClass:"applyClass",applyCss:"applyCss",svgClass:"svgClass",klass:[InputFlags.None,"class","klass"],viewBox:"viewBox",svgAriaLabel:"svgAriaLabel",svgStyle:"svgStyle"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:angular_svg_icon_c0,decls:1,vars:0,template:function(rf,ctx){1&rf&&(\u0275\u0275projectionDef(),\u0275\u0275projection(0))},dependencies:[common_CommonModule],encapsulation:2})}return SvgIconComponent2})(),AngularSvgIconModule=(()=>{class AngularSvgIconModule2{static forRoot(config2={}){return{ngModule:AngularSvgIconModule2,providers:[SVG_ICON_REGISTRY_PROVIDER,config2.loader||{provide:SvgLoader,useClass:SvgHttpLoader}]}}static#_=this.\u0275fac=function(t){return new(t||AngularSvgIconModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:AngularSvgIconModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({imports:[SvgIconComponent]})}return AngularSvgIconModule2})();const EmptyError=createErrorClass(_super=>function(){_super(this),this.name="EmptyError",this.message="no elements in sequence"});function throwIfEmpty(errorFactory=defaultErrorFactory){return operate((source,subscriber)=>{let hasValue=!1;source.subscribe(createOperatorSubscriber(subscriber,value=>{hasValue=!0,subscriber.next(value)},()=>hasValue?subscriber.complete():subscriber.error(errorFactory())))})}function defaultErrorFactory(){return new EmptyError}function first_first(predicate,defaultValue){const hasDefaultValue=arguments.length>=2;return source=>source.pipe(predicate?filter_filter((v,i)=>predicate(v,i,source)):identity,take_take(1),hasDefaultValue?function defaultIfEmpty(defaultValue){return operate((source,subscriber)=>{let hasValue=!1;source.subscribe(createOperatorSubscriber(subscriber,value=>{hasValue=!0,subscriber.next(value)},()=>{hasValue||subscriber.next(defaultValue),subscriber.complete()}))})}(defaultValue):throwIfEmpty(()=>new EmptyError))}function repeat(countOrConfig){let delay2,count=1/0;return null!=countOrConfig&&("object"==typeof countOrConfig?({count=1/0,delay:delay2}=countOrConfig):count=countOrConfig),count<=0?()=>EMPTY:operate((source,subscriber)=>{let sourceSub,soFar=0;const resubscribe=()=>{if(sourceSub?.unsubscribe(),sourceSub=null,null!=delay2){const notifier="number"==typeof delay2?timer_timer(delay2):innerFrom(delay2(soFar)),notifierSubscriber=createOperatorSubscriber(subscriber,()=>{notifierSubscriber.unsubscribe(),subscribeToSource()});notifier.subscribe(notifierSubscriber)}else subscribeToSource()},subscribeToSource=()=>{let syncUnsub=!1;sourceSub=source.subscribe(createOperatorSubscriber(subscriber,void 0,()=>{++soFar{const{leading=!0,trailing=!1}=config2??{};let hasValue=!1,sendValue=null,throttled=null,isComplete=!1;const endThrottling=()=>{throttled?.unsubscribe(),throttled=null,trailing&&(send(),isComplete&&subscriber.complete())},cleanupThrottling=()=>{throttled=null,isComplete&&subscriber.complete()},startThrottle=value=>throttled=innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber,endThrottling,cleanupThrottling)),send=()=>{if(hasValue){hasValue=!1;const value=sendValue;sendValue=null,subscriber.next(value),!isComplete&&startThrottle(value)}};source.subscribe(createOperatorSubscriber(subscriber,value=>{hasValue=!0,sendValue=value,(!throttled||throttled.closed)&&(leading?send():startThrottle(value))},()=>{isComplete=!0,(!(trailing&&hasValue&&throttled)||throttled.closed)&&subscriber.complete()}))})}function ng_keyboard_shortcuts_isFunction(x){return"function"==typeof x}const any=(fn,list2)=>{let idx=0;for(;idxx,isMac=typeof navigator<"u"&&navigator.userAgent.includes("Mac OS"),modifiers={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",cmd:isMac?"metaKey":"ctrlKey",command:isMac?"metaKey":"ctrlKey",meta:isMac?"metaKey":"ctrlKey","left command":"metaKey","right command":"MetaRight","\u2318":isMac?"metaKey":"ctrlKey",option:"altKey",ctl:"ctrlKey",control:"ctrlKey"},_SPECIAL_CASES={plus:"+"},_MAP={8:"backspace",9:"tab",13:"enter",16:"shift",17:["ctrl","control"],18:"alt",20:"capslock",27:["esc","escape"],32:["space","spc"],33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:["meta","cmd","command"],93:["meta","cmd","command"],224:["meta","cmd","command"]},_KEYCODE_MAP={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},_SHIFT_MAP={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},_INVERTED_SHIFT_MAP=function invert(obj){const new_obj={};for(const prop2 in obj)obj.hasOwnProperty(prop2)&&(new_obj[obj[prop2]]=prop2);return new_obj}(_SHIFT_MAP);for(let i=1;i<20;++i)_MAP[111+i]="f"+i;for(let i=0;i<=9;++i)_MAP[i+96]=i.toString();var AllowIn=function(AllowIn2){return AllowIn2.Textarea="TEXTAREA",AllowIn2.Input="INPUT",AllowIn2.Select="SELECT",AllowIn2.ContentEditable="CONTENT-EDITABLE",AllowIn2}(AllowIn||{});let guid=0,KeyboardShortcutsService=(()=>{class KeyboardShortcutsService2{constructor(document2){this.document=document2,this._shortcuts=[],this._sequences=[],this.throttleTime=0,this._pressed=new Subject_Subject,this.pressed$=this._pressed.asObservable(),this.disabled=!1,this._shortcutsSub=new BehaviorSubject_BehaviorSubject([]),this.shortcuts$=this._shortcutsSub.pipe(filter_filter(shortcuts=>!!shortcuts.length)),this._ignored=[AllowIn.Input,AllowIn.Textarea,AllowIn.Select,AllowIn.ContentEditable],this.isAllowed=shortcut=>{const target=shortcut.event.target,isContentEditable=!!target.getAttribute("contenteditable"),nodeName=isContentEditable?AllowIn.ContentEditable:target.nodeName;return target===shortcut.target||(shortcut.allowIn.length?!(first2=this._ignored,second=shortcut.allowIn,first2.filter(item=>!second.includes(item))).includes(nodeName):!isContentEditable&&!this._ignored.includes(target.nodeName));var first2,second},this.mapEvent=event=>this._shortcuts.filter(shortcut=>!shortcut.isSequence).map(shortcut=>Object.assign({},shortcut,{predicates:any(ng_keyboard_shortcuts_identity,shortcut.predicates.map(predicates=>{return(preds=predicates,(...args)=>{let idx=0;const len=preds.length;for(;idxshortcut.predicates).reduce((acc,shortcut)=>acc.priority>shortcut.priority?acc:shortcut,{priority:0}),this.subscriptions=[],this.keydown$=fromEvent_fromEvent(this.document,"keydown"),this.ignore$=this.pressed$.pipe(filter_filter(e2=>e2.event.defaultPrevented),switchMap_switchMap(()=>this.clicks$.pipe(first_first())),tap_tap(e2=>{e2.preventDefault(),e2.stopPropagation()}),repeat()),this.clicks$=fromEvent_fromEvent(this.document,"click",{capture:!0}),this.keyup$=fromEvent_fromEvent(this.document,"keyup"),this.keydownCombo$=this.keydown$.pipe(filter_filter(_=>!this.disabled),map_map(this.mapEvent),filter_filter(shortcut=>!shortcut.target||shortcut.event.target===shortcut.target),filter_filter(shortcut=>ng_keyboard_shortcuts_isFunction(shortcut.command)),filter_filter(shortcut=>this.isAllowed(shortcut)),tap_tap(shortcut=>{shortcut.preventDefault&&(shortcut.event.preventDefault(),shortcut.event.stopPropagation())}),throttle_throttle(shortcut=>timer_timer(shortcut.throttleTime)),tap_tap(shortcut=>shortcut.command({event:shortcut.event,key:shortcut.key})),tap_tap(shortcut=>this._pressed.next({event:shortcut.event,key:shortcut.key})),takeUntil_takeUntil(this.keyup$),repeat(),catchError_catchError(error=>throwError_throwError(error))),this.timer$=new Subject_Subject,this.resetCounter$=this.timer$.asObservable().pipe(switchMap_switchMap(()=>timer_timer(KeyboardShortcutsService2.TIMEOUT_SEQUENCE))),this.keydownSequence$=this.keydown$.pipe(map_map(event=>({event,sequences:this._sequences})),function scan(accumulator,seed){return operate(function scanInternals(accumulator,seed,hasSeed,emitOnNext,emitBeforeComplete){return(source,subscriber)=>{let hasState=hasSeed,state2=seed,index=0;source.subscribe(createOperatorSubscriber(subscriber,value=>{const i=index++;state2=hasState?accumulator(state2,value,i):(hasState=!0,value),emitOnNext&&subscriber.next(state2)},emitBeforeComplete&&(()=>{hasState&&subscriber.next(state2),subscriber.complete()})))}}(accumulator,seed,arguments.length>=2,!0))}((acc,arg)=>{const{event}=arg,currentLength=acc.events.length,sequences=currentLength?acc.sequences:arg.sequences,[characters]=this.characterFromEvent(event),allChars=Array.isArray(characters)?[...characters,event.key]:[characters,event.key],result=sequences.map(sequence2=>{const sequences2=sequence2.sequence.filter(seque=>allChars.some(key=>(_SPECIAL_CASES[seque[currentLength]]||seque[currentLength])===key)),partialMatch=sequences2.length>0;return sequence2.fullMatch?sequence2:{...sequence2,sequence:sequences2,partialMatch,event,fullMatch:partialMatch&&this.isFullMatch({command:sequence2,events:acc.events})}}).filter(sequences2=>sequences2.partialMatch||sequences2.fullMatch),[match2]=result;if(!match2||this.modifiersOn(event))return{events:[],sequences:this._sequences};const guess=result.reduce((acc,curr)=>{const propFn=(prop2=property,object=>object[prop2]);var prop2;return propFn(curr)>propFn(acc)?curr:acc},{[property="priority"]:0});var property;return result.length>1&&guess.fullMatch?{events:[],command:guess,sequences:this._sequences}:result.length>1?{events:[...acc.events,event],command:result,sequences:result}:match2.fullMatch?{events:[],command:match2,sequences:this._sequences}:{events:[...acc.events,event],command:result,sequences:result}},{events:[],sequences:[]}),switchMap_switchMap(({command})=>Array.isArray(command)?timer_timer(500).pipe(map_map(()=>({command:command.filter(command2=>command2.fullMatch)[0]}))):of_of({command})),takeUntil_takeUntil(this.pressed$),filter_filter(({command})=>command&&command.fullMatch),map_map(({command})=>command),filter_filter(shortcut=>ng_keyboard_shortcuts_isFunction(shortcut.command)),filter_filter(shortcut=>!shortcut.target||shortcut.event.target===shortcut.target),filter_filter(this.isAllowed),tap_tap(shortcut=>!shortcut.preventDefault||shortcut.event.preventDefault()),throttle_throttle(shortcut=>timer_timer(shortcut.throttleTime)),tap_tap(shortcut=>shortcut.command({event:shortcut.event,key:shortcut.key})),tap_tap(shortcut=>this._pressed.next({event:shortcut.event,key:shortcut.key})),takeUntil_takeUntil(this.resetCounter$),repeat()),this.getKeys=keys=>keys.map(key=>key.trim()).filter(key=>"+"!==key).map(key=>modifiers.hasOwnProperty(key=_SPECIAL_CASES[key]||key)?event=>!!event[modifiers[key]]:event=>{const isUpper=key===key.toUpperCase(),isNonAlpha=/[^a-zA-Z\d\s:]/.test(key),inShiftMap=_INVERTED_SHIFT_MAP[key],[characters]=this.characterFromEvent(event),hasModifiers=Object.keys(modifiers).map(key2=>modifiers[key2]).some(modifier=>event[modifier]),result=Array.isArray(characters)?[...characters,event.key]:[characters,event.key];return!(hasModifiers&&(!isUpper||isNonAlpha)&&!inShiftMap&&1===keys.length)&&result.some(char=>!(char!==key||!isUpper)||key===char)}),this.subscriptions.push(this.keydownSequence$.subscribe(),this.keydownCombo$.subscribe())}isFullMatch({command,events}){return!!command&&command.sequence.some(sequence2=>sequence2.length===events.length+1)}get shortcuts(){return this._shortcuts}_characterFromEvent(event){return"number"!=typeof event.which&&(event.which=event.keyCode),_SPECIAL_CASES[event.which]?[_SPECIAL_CASES[event.which],event.shiftKey]:_MAP[event.which]?[_MAP[event.which],event.shiftKey]:_KEYCODE_MAP[event.which]?[_KEYCODE_MAP[event.which],event.shiftKey]:String.fromCharCode(event.which).toLowerCase()!==event.key?[String.fromCharCode(event.which).toLowerCase(),event.shiftKey]:[event.key,event.shiftKey]}characterFromEvent(event){const[key,shiftKey]=this._characterFromEvent(event);return shiftKey&&_SHIFT_MAP[key]?[_SHIFT_MAP[key],shiftKey]:[key,shiftKey]}ngOnDestroy(){this.subscriptions.forEach(sub=>sub.unsubscribe())}isSequence(shortcuts){return!shortcuts.some(shortcut=>shortcut.includes("+")||1===shortcut.length)}add(shortcuts){shortcuts=Array.isArray(shortcuts)?shortcuts:[shortcuts];const commands=this.parseCommand(shortcuts);return commands.forEach(command=>{command.isSequence?this._sequences.push(command):this._shortcuts.push(command)}),setTimeout(()=>{this._shortcutsSub.next([...this._shortcuts,...this._sequences])}),commands.map(command=>command.id)}remove(ids){return ids=Array.isArray(ids)?ids:[ids],this._shortcuts=this._shortcuts.filter(shortcut=>!ids.includes(shortcut.id)),this._sequences=this._sequences.filter(shortcut=>!ids.includes(shortcut.id)),setTimeout(()=>{this._shortcutsSub.next([...this._shortcuts,...this._sequences])}),this}select(key){return this.pressed$.pipe(filter_filter(({key:eventKeys})=>!!(eventKeys=Array.isArray(eventKeys)?eventKeys:[eventKeys]).find(eventKey=>eventKey===key)))}modifiersOn(event){return["metaKey","altKey","ctrlKey"].some(mod=>event[mod])}parseCommand(command){return(Array.isArray(command)?command:[command]).map(command2=>{const keys=Array.isArray(command2.key)?command2.key:[command2.key],priority=Math.max(...keys.map(key=>key.split(" ").filter(ng_keyboard_shortcuts_identity).length)),predicates=keys.map(key=>this.getKeys(key.split(" ").filter(ng_keyboard_shortcuts_identity))),isSequence=this.isSequence(keys),sequence2=isSequence?keys.map(key=>key.split(" ").filter(ng_keyboard_shortcuts_identity).map(key2=>key2.trim())):[];return{...command2,isSequence,sequence:isSequence?sequence2:[],allowIn:command2.allowIn||[],key:keys,id:""+guid++,throttle:(x=command2.throttleTime,null==x?this.throttleTime:command2.throttleTime),priority,predicates};var x})}}return KeyboardShortcutsService2.TIMEOUT_SEQUENCE=1e3,KeyboardShortcutsService2.\u0275fac=function(t){return new(t||KeyboardShortcutsService2)(\u0275\u0275inject(common_DOCUMENT))},KeyboardShortcutsService2.\u0275prov=core_defineInjectable({token:KeyboardShortcutsService2,factory:KeyboardShortcutsService2.\u0275fac,providedIn:"root"}),KeyboardShortcutsService2})(),KeyboardShortcutsComponent=(()=>{class KeyboardShortcutsComponent2{constructor(keyboard){this.keyboard=keyboard,this.shortcuts=[],this.clearIds=[],this._disabled=!1}set disabled(value){this._disabled=value,this.clearIds&&(this.keyboard.remove(this.clearIds),this.clearIds=[]),!value&&(this.clearIds=this.keyboard.add(this.shortcuts))}select(key){return this.keyboard.select(key)}ngOnChanges(changes){!changes.shortcuts||!changes.shortcuts.currentValue||(this.clearIds&&this.keyboard.remove(this.clearIds),this._disabled||setTimeout(()=>this.clearIds=this.keyboard.add(changes.shortcuts.currentValue)))}ngOnDestroy(){this.keyboard.remove(this.clearIds)}}return KeyboardShortcutsComponent2.\u0275fac=function(t){return new(t||KeyboardShortcutsComponent2)(\u0275\u0275directiveInject(KeyboardShortcutsService))},KeyboardShortcutsComponent2.\u0275cmp=\u0275\u0275defineComponent({type:KeyboardShortcutsComponent2,selectors:[["ng-keyboard-shortcuts"]],inputs:{shortcuts:"shortcuts",disabled:"disabled"},features:[\u0275\u0275NgOnChangesFeature],decls:0,vars:0,template:function(rf,ctx){},encapsulation:2}),KeyboardShortcutsComponent2})(),KeyboardShortcutsHelpService=(()=>{class KeyboardShortcutsHelpService2{constructor(keyboard){this.keyboard=keyboard,this.shortcuts$=this.keyboard.shortcuts$.pipe(map_map(shortcuts=>shortcuts.filter(shortcut=>!!shortcut.label&&!!shortcut.description).map(({key,label,description})=>({key,label,description}))))}}return KeyboardShortcutsHelpService2.\u0275fac=function(t){return new(t||KeyboardShortcutsHelpService2)(\u0275\u0275inject(KeyboardShortcutsService))},KeyboardShortcutsHelpService2.\u0275prov=core_defineInjectable({token:KeyboardShortcutsHelpService2,factory:KeyboardShortcutsHelpService2.\u0275fac,providedIn:"root"}),KeyboardShortcutsHelpService2})(),KeyboardShortcutsSelectService=(()=>{class KeyboardShortcutsSelectService2{constructor(keyboardService){this.keyboardService=keyboardService}select(key){return this.keyboardService.select(key)}}return KeyboardShortcutsSelectService2.\u0275fac=function(t){return new(t||KeyboardShortcutsSelectService2)(\u0275\u0275inject(KeyboardShortcutsService))},KeyboardShortcutsSelectService2.\u0275prov=core_defineInjectable({token:KeyboardShortcutsSelectService2,factory:KeyboardShortcutsSelectService2.\u0275fac,providedIn:"root"}),KeyboardShortcutsSelectService2})(),KeyboardShortcutsPlugin=(()=>{class KeyboardShortcutsPlugin2{constructor(ngZone,keyboard){this.ngZone=ngZone,this.keyboard=keyboard}supports(eventName){return eventName.split(".").includes("shortcut")}addEventListener(element,eventName,originalHandler){const shortcut=eventName.split("."),preventDefault2=shortcut.includes("prevent");if(0===shortcut.length)throw new Error("please provide a shortcut");const[,key,description,label]=shortcut,id=this.keyboard.add({key,command(event){originalHandler(event)},description,preventDefault:preventDefault2,label});return()=>{this.keyboard.remove(id)}}}return KeyboardShortcutsPlugin2.\u0275fac=function(t){return new(t||KeyboardShortcutsPlugin2)(\u0275\u0275inject(core_NgZone),\u0275\u0275inject(KeyboardShortcutsService))},KeyboardShortcutsPlugin2.\u0275prov=core_defineInjectable({token:KeyboardShortcutsPlugin2,factory:KeyboardShortcutsPlugin2.\u0275fac}),KeyboardShortcutsPlugin2})(),KeyboardShortcutsModule=(()=>{class KeyboardShortcutsModule2{static forRoot(){return{ngModule:KeyboardShortcutsModule2,providers:[KeyboardShortcutsService,KeyboardShortcutsHelpService,KeyboardShortcutsSelectService,{multi:!0,provide:EVENT_MANAGER_PLUGINS,useClass:KeyboardShortcutsPlugin}]}}}return KeyboardShortcutsModule2.\u0275fac=function(t){return new(t||KeyboardShortcutsModule2)},KeyboardShortcutsModule2.\u0275mod=\u0275\u0275defineNgModule({type:KeyboardShortcutsModule2}),KeyboardShortcutsModule2.\u0275inj=\u0275\u0275defineInjector({imports:[[common_CommonModule]]}),KeyboardShortcutsModule2})();typeof Element>"u"||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){let el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode}while(null!==el&&1===el.nodeType);return null})),Array.prototype.flat||(Array.prototype.flat=function(depth){var flattend=[];return function flat(array,depth2){for(let el of array)Array.isArray(el)&&depth2>0?flat(el,depth2-1):flattend.push(el)}(this,Math.floor(depth)||1),flattend}),Array.prototype.flatMap||(Array.prototype.flatMap=function(){return Array.prototype.map.apply(this,arguments).flat(1)}),Error;const NGX_GOOGLE_ANALYTICS_SETTINGS_TOKEN=new InjectionToken("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),NGX_WINDOW=new InjectionToken("ngx-window",{providedIn:"root",factory:()=>{const{defaultView}=core_inject(common_DOCUMENT);if(!defaultView)throw new Error("Window is not available");return defaultView}}),NGX_DATA_LAYER=new InjectionToken("ngx-data-layer",{providedIn:"root",factory:()=>function getDataLayerFn(window2){return window2?window2.dataLayer=window2.dataLayer||[]:null}(core_inject(NGX_WINDOW))}),NGX_GTAG_FN=new InjectionToken("ngx-gtag-fn",{providedIn:"root",factory:()=>function getGtagFn(window2,dataLayer){return window2?window2.gtag=window2.gtag||function(){dataLayer.push(arguments)}:null}(core_inject(NGX_WINDOW),core_inject(NGX_DATA_LAYER))});let GoogleAnalyticsService=(()=>{class GoogleAnalyticsService2{constructor(settings,_document2,_gtag){this.settings=settings,this._document=_document2,this._gtag=_gtag}get document(){return this._document}throw(err){this.settings.enableTracing&&console&&console.error&&console.error(err)}toKeyValue(map2){return map2.size>0?Array.from(map2).reduce((obj,[key,value])=>Object.defineProperty(obj,key,{value,enumerable:!0}),{}):void 0}gtag(...args){try{this._gtag(...args.filter(x=>void 0!==x))}catch(err){this.throw(err)}}event(action,category,label,value,interaction,options){try{const opt=new Map;category&&opt.set("event_category",category),label&&opt.set("event_label",label),value&&opt.set("value",value),void 0!==interaction&&opt.set("interaction",interaction),options&&Object.entries(options).map(([key,value2])=>opt.set(key,value2));const params=this.toKeyValue(opt);params?this.gtag("event",action,params):this.gtag("event",action)}catch(error){this.throw(error)}}pageView(path,title,location2,options){try{const opt=new Map([["page_path",path]]);title&&opt.set("page_title",title),(location2||this.document)&&opt.set("page_location",location2||this.document.location.href),options&&Object.entries(options).map(([key,value])=>opt.set(key,value)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(opt))}catch(error){this.throw(error)}}appView(screen,appName,appId,appVersion,installerId){try{const opt=new Map([["screen_name",screen],["app_name",appName]]);appId&&opt.set("app_id",appId),appVersion&&opt.set("app_version",appVersion),installerId&&opt.set("app_installer_id",installerId),this.gtag("event","screen_view",this.toKeyValue(opt))}catch(error){this.throw(error)}}set(...options){try{this._gtag("set",...options)}catch(err){this.throw(err)}}exception(description,fatal){try{const opt=new Map;description&&opt.set("description",description),fatal&&opt.set("fatal",fatal),this.toKeyValue(opt)?this.gtag("event","exception",this.toKeyValue(opt)):this.gtag("event","exception")}catch(error){this.throw(error)}}}return GoogleAnalyticsService2.\u0275fac=function(t){return new(t||GoogleAnalyticsService2)(\u0275\u0275inject(NGX_GOOGLE_ANALYTICS_SETTINGS_TOKEN),\u0275\u0275inject(common_DOCUMENT),\u0275\u0275inject(NGX_GTAG_FN))},GoogleAnalyticsService2.\u0275prov=core_defineInjectable({token:GoogleAnalyticsService2,factory:GoogleAnalyticsService2.\u0275fac,providedIn:"root"}),GoogleAnalyticsService2})();const NGX_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER={provide:core_APP_INITIALIZER,multi:!0,useFactory:function GoogleAnalyticsInitializer(settings,gtag,document2){return asyncToGenerator_asyncToGenerator(function*(){if(!settings.trackingCode)return void console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule.");if(!gtag)return void console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface.");document2||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),settings.uri=settings.uri||`https://www.googletagmanager.com/gtag/js?id=${settings.trackingCode}`,settings.initCommands=settings?.initCommands??[],settings.initCommands.find(x=>"config"===x.command)||settings.initCommands.unshift({command:"config",values:[settings.trackingCode]}),settings.initCommands.find(x=>"js"===x.command)||settings.initCommands.unshift({command:"js",values:[new Date]});for(const command of settings.initCommands)gtag(command.command,...command.values);const s=document2.createElement("script");s.async=!0,s.src=settings.uri,settings.nonce&&s.setAttribute("nonce",settings.nonce),document2.getElementsByTagName("head")[0].appendChild(s)})},deps:[NGX_GOOGLE_ANALYTICS_SETTINGS_TOKEN,NGX_GTAG_FN,common_DOCUMENT]};new InjectionToken("ngx-google-analytics-routing-settings",{factory:()=>({})});let NgxGoogleAnalyticsModule=(()=>{class NgxGoogleAnalyticsModule2{static forRoot(trackingCode,initCommands=[],uri,enableTracing,nonce){return{ngModule:NgxGoogleAnalyticsModule2,providers:[{provide:NGX_GOOGLE_ANALYTICS_SETTINGS_TOKEN,useValue:{trackingCode,initCommands,uri,enableTracing,nonce}},NGX_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER]}}}return NgxGoogleAnalyticsModule2.\u0275fac=function(t){return new(t||NgxGoogleAnalyticsModule2)},NgxGoogleAnalyticsModule2.\u0275mod=\u0275\u0275defineNgModule({type:NgxGoogleAnalyticsModule2}),NgxGoogleAnalyticsModule2.\u0275inj=\u0275\u0275defineInjector({}),NgxGoogleAnalyticsModule2})();const NEVER=new Observable_Observable(noop),DEFAULT_CONFIG={connector:()=>new Subject_Subject};function connect(selector,config2=DEFAULT_CONFIG){const{connector}=config2;return operate((source,subscriber)=>{const subject=connector();innerFrom(selector(function fromSubscribable(subscribable){return new Observable_Observable(subscriber=>subscribable.subscribe(subscriber))}(subject))).subscribe(subscriber),subscriber.add(source.subscribe(subject))})}function delayWhen(delayDurationSelector,subscriptionDelay){return subscriptionDelay?source=>concat(subscriptionDelay.pipe(take_take(1),function ignoreElements(){return operate((source,subscriber)=>{source.subscribe(createOperatorSubscriber(subscriber,noop))})}()),source.pipe(delayWhen(delayDurationSelector))):mergeMap_mergeMap((value,index)=>innerFrom(delayDurationSelector(value,index)).pipe(take_take(1),function mapTo(value){return map_map(()=>value)}(value)))}const ERR_SW_NOT_SUPPORTED="Service workers are disabled or not supported by this browser";class NgswCommChannel{constructor(serviceWorker){if(this.serviceWorker=serviceWorker,serviceWorker){const controllerChanges=fromEvent_fromEvent(serviceWorker,"controllerchange").pipe(map_map(()=>serviceWorker.controller)),controllerWithChanges=concat(defer(()=>of_of(serviceWorker.controller)),controllerChanges);this.worker=controllerWithChanges.pipe(filter_filter(c=>!!c)),this.registration=this.worker.pipe(switchMap_switchMap(()=>serviceWorker.getRegistration()));const events=fromEvent_fromEvent(serviceWorker,"message").pipe(map_map(event=>event.data)).pipe(filter_filter(event=>event&&event.type)).pipe(function publish(selector){return selector?source=>connect(selector)(source):source=>function multicast(subjectOrSubjectFactory,selector){const subjectFactory=isFunction(subjectOrSubjectFactory)?subjectOrSubjectFactory:()=>subjectOrSubjectFactory;return isFunction(selector)?connect(selector,{connector:subjectFactory}):source=>new ConnectableObservable(source,subjectFactory)}(new Subject_Subject)(source)}());events.connect(),this.events=events}else this.worker=this.events=this.registration=function errorObservable(message){return defer(()=>throwError_throwError(new Error(message)))}(ERR_SW_NOT_SUPPORTED)}postMessage(action,payload){return this.worker.pipe(take_take(1),tap_tap(sw=>{sw.postMessage({action,...payload})})).toPromise().then(()=>{})}postMessageWithOperation(type,payload,operationNonce){const waitForOperationCompleted=this.waitForOperationCompleted(operationNonce),postMessage=this.postMessage(type,payload);return Promise.all([postMessage,waitForOperationCompleted]).then(([,result])=>result)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(type){let filterFn;return filterFn="string"==typeof type?event=>event.type===type:event=>type.includes(event.type),this.events.pipe(filter_filter(filterFn))}nextEventOfType(type){return this.eventsOfType(type).pipe(take_take(1))}waitForOperationCompleted(nonce){return this.eventsOfType("OPERATION_COMPLETED").pipe(filter_filter(event=>event.nonce===nonce),take_take(1),map_map(event=>{if(void 0!==event.result)return event.result;throw new Error(event.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let SwPush=(()=>{class SwPush2{get isEnabled(){return this.sw.isEnabled}constructor(sw){if(this.sw=sw,this.pushManager=null,this.subscriptionChanges=new Subject_Subject,!sw.isEnabled)return this.messages=NEVER,this.notificationClicks=NEVER,void(this.subscription=NEVER);this.messages=this.sw.eventsOfType("PUSH").pipe(map_map(message=>message.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(map_map(message=>message.data)),this.pushManager=this.sw.registration.pipe(map_map(registration=>registration.pushManager));const workerDrivenSubscriptions=this.pushManager.pipe(switchMap_switchMap(pm=>pm.getSubscription()));this.subscription=merge_merge(workerDrivenSubscriptions,this.subscriptionChanges)}requestSubscription(options){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ERR_SW_NOT_SUPPORTED));const pushOptions={userVisibleOnly:!0};let key=this.decodeBase64(options.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),applicationServerKey=new Uint8Array(new ArrayBuffer(key.length));for(let i=0;ipm.subscribe(pushOptions)),take_take(1)).toPromise().then(sub=>(this.subscriptionChanges.next(sub),sub))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(take_take(1),switchMap_switchMap(sub=>{if(null===sub)throw new Error("Not subscribed to push notifications.");return sub.unsubscribe().then(success=>{if(!success)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ERR_SW_NOT_SUPPORTED))}decodeBase64(input2){return atob(input2)}static#_=this.\u0275fac=function(t){return new(t||SwPush2)(\u0275\u0275inject(NgswCommChannel))};static#_2=this.\u0275prov=core_defineInjectable({token:SwPush2,factory:SwPush2.\u0275fac})}return SwPush2})(),SwUpdate=(()=>{class SwUpdate2{get isEnabled(){return this.sw.isEnabled}constructor(sw){if(this.sw=sw,!sw.isEnabled)return this.versionUpdates=NEVER,void(this.unrecoverable=NEVER);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ERR_SW_NOT_SUPPORTED));const nonce=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce},nonce)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ERR_SW_NOT_SUPPORTED));const nonce=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce},nonce)}static#_=this.\u0275fac=function(t){return new(t||SwUpdate2)(\u0275\u0275inject(NgswCommChannel))};static#_2=this.\u0275prov=core_defineInjectable({token:SwUpdate2,factory:SwUpdate2.\u0275fac})}return SwUpdate2})();const SCRIPT=new InjectionToken("");function ngswAppInitializer(injector,script,options,platformId){return()=>{if(!common_isPlatformBrowser(platformId)||!("serviceWorker"in navigator)||!1===options.enabled)return;let readyToRegister$;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof options.registrationStrategy)readyToRegister$=options.registrationStrategy();else{const[strategy,...args]=(options.registrationStrategy||"registerWhenStable:30000").split(":");switch(strategy){case"registerImmediately":readyToRegister$=of_of(null);break;case"registerWithDelay":readyToRegister$=delayWithTimeout(+args[0]||0);break;case"registerWhenStable":readyToRegister$=args[0]?merge_merge(service_worker_whenStable(injector),delayWithTimeout(+args[0])):service_worker_whenStable(injector);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${options.registrationStrategy}`)}}injector.get(core_NgZone).runOutsideAngular(()=>readyToRegister$.pipe(take_take(1)).subscribe(()=>navigator.serviceWorker.register(script,{scope:options.scope}).catch(err=>console.error("Service worker registration failed with:",err))))}}function delayWithTimeout(timeout){return of_of(null).pipe(function delay(due,scheduler=asyncScheduler){const duration=timer_timer(due,scheduler);return delayWhen(()=>duration)}(timeout))}function service_worker_whenStable(injector){return injector.get(core_ApplicationRef).isStable.pipe(filter_filter(stable=>stable))}function ngswCommChannelFactory(opts,platformId){return new NgswCommChannel(common_isPlatformBrowser(platformId)&&!1!==opts.enabled?navigator.serviceWorker:void 0)}class SwRegistrationOptions{}function provideServiceWorker(script,options={}){return core_makeEnvironmentProviders([SwPush,SwUpdate,{provide:SCRIPT,useValue:script},{provide:SwRegistrationOptions,useValue:options},{provide:NgswCommChannel,useFactory:ngswCommChannelFactory,deps:[SwRegistrationOptions,core_PLATFORM_ID]},{provide:core_APP_INITIALIZER,useFactory:ngswAppInitializer,deps:[core_Injector,SCRIPT,SwRegistrationOptions,core_PLATFORM_ID],multi:!0}])}let ServiceWorkerModule=(()=>{class ServiceWorkerModule2{static register(script,options={}){return{ngModule:ServiceWorkerModule2,providers:[provideServiceWorker(script,options)]}}static#_=this.\u0275fac=function(t){return new(t||ServiceWorkerModule2)};static#_2=this.\u0275mod=\u0275\u0275defineNgModule({type:ServiceWorkerModule2});static#_3=this.\u0275inj=\u0275\u0275defineInjector({providers:[SwPush,SwUpdate]})}return ServiceWorkerModule2})();const environment_firebase={apiKey:"AIzaSyD_6fjI7Vsm4RQS6EJZSZ_an7Zehjz9YwQ",authDomain:"portugol-webstudio.firebaseapp.com",projectId:"portugol-webstudio",storageBucket:"portugol-webstudio.appspot.com",messagingSenderId:"845512624544",appId:"1:845512624544:web:b1d4787cafd265429dfcc5",measurementId:"G-BM3QGZS096"};class PortugolCodeError extends Error{constructor(message,context2,startLine,startCol,endLine,endCol){super(message),this.message=message,this.context=context2,this.startLine=startLine,this.startCol=startCol,this.endLine=endLine,this.endCol=endCol}static fromContext(ctx,message){let possibleContext=ctx;if(!ctx.hasOwnProperty("start")&&!ctx.hasOwnProperty("stop")&&ctx.parent&&(possibleContext=ctx.parent),possibleContext.hasOwnProperty("start")&&possibleContext.hasOwnProperty("stop")&&"object"==typeof possibleContext.start&&"object"==typeof possibleContext.stop){const{start:start2,stop:stop2}=possibleContext,{line:startLine,column:startCol}=start2;let{line:endLine,column:endCol}=stop2;return startLine===endLine&&startCol===endCol&&(endCol+=ctx.getText().length-1),new PortugolCodeError(message,ctx,startLine,startCol,endLine,endCol)}const possibleSymbol=ctx.getPayload();if(possibleSymbol&&possibleSymbol.hasOwnProperty("column")&&possibleSymbol.hasOwnProperty("line")){const{line,column}=possibleSymbol;return new PortugolCodeError(message,ctx,line,column,line,column+ctx.getText().length)}return new PortugolCodeError(message,ctx,1,1,1,2+ctx.getText().length)}}class PortugolErrorListener{constructor(){this.errors=[]}syntaxError(_recognizer,offendingSymbol,line,charPositionInLine,msg,e2){const endColumn=offendingSymbol&&offendingSymbol.text?charPositionInLine+offendingSymbol.text.length:charPositionInLine;this.errors.push(new PortugolCodeError(msg,e2?.ctx||offendingSymbol||null,line,charPositionInLine,line,endColumn))}getErrors(){return this.errors}reset(){this.errors=[]}reportAmbiguity(_recognizer,_dfa,_startIndex,_stopIndex,_exact,_ambigAlts,_configs){}reportAttemptingFullContext(_recognizer,_dfa,_startIndex,_stopIndex,_conflictingAlts,_configs){}reportContextSensitivity(_recognizer,_dfa,_startIndex,_stopIndex,_prediction,_configs){}}var IntStream,IntStream2,Token,Token2,__defProp=Object.defineProperty,__name=(target,value)=>__defProp(target,"name",{value,configurable:!0});(IntStream2=IntStream||(IntStream={})).EOF=-1,IntStream2.UNKNOWN_SOURCE_NAME="",(Token2=Token||(Token={})).INVALID_TYPE=0,Token2.EPSILON=-2,Token2.MIN_USER_TOKEN_TYPE=1,Token2.EOF=IntStream.EOF,Token2.DEFAULT_CHANNEL=0,Token2.HIDDEN_CHANNEL=1,Token2.MIN_USER_CHANNEL_VALUE=2;var isToken=__name(candidate=>void 0!==candidate.tokenSource&&void 0!==candidate.channel,"isToken"),Interval=class _Interval{static#_=__name(this,"Interval");static INVALID_INTERVAL=new _Interval(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;start;stop;static#cache=[];#cachedHashCode;constructor(start2,stop2){this.start=start2,this.stop=stop2,this.#cachedHashCode=Math.imul(651+start2,31)+stop2}static of(a,b){return a!==b||a<0||a>_Interval.INTERVAL_POOL_MAX_VALUE?new _Interval(a,b):(_Interval.#cache[a]||(_Interval.#cache[a]=new _Interval(a,a)),_Interval.#cache[a])}equals(o){return this.start===o.start&&this.stop===o.stop}hashCode(){return this.#cachedHashCode}startsBeforeDisjoint(other){return this.start=other.start}startsAfter(other){return this.start>other.start}startsAfterDisjoint(other){return this.start>other.stop}startsAfterNonDisjoint(other){return this.start>other.start&&this.start<=other.stop}disjoint(other){return this.startsBeforeDisjoint(other)||this.startsAfterDisjoint(other)}adjacent(other){return this.start===other.stop+1||this.stop===other.start-1}properlyContains(other){return other.start>=this.start&&other.stop<=this.stop}union(other){return _Interval.of(Math.min(this.start,other.start),Math.max(this.stop,other.stop))}intersection(other){return _Interval.of(Math.max(this.start,other.start),Math.min(this.stop,other.stop))}differenceNotProperlyContained(other){let diff=null;return other.startsBeforeNonDisjoint(this)?diff=_Interval.of(Math.max(this.start,other.stop+1),this.stop):other.startsAfterNonDisjoint(this)&&(diff=_Interval.of(this.start,other.start-1)),diff}toString(){return this.start===this.stop?this.start.toString():this.start.toString()+".."+this.stop.toString()}get length(){return this.stop0){const firstChar=tokenName.charAt(0);if("'"===firstChar){symbolicNames[i]=null;continue}if(firstChar.toUpperCase()===firstChar){literalNames[i]=null;continue}}literalNames[i]=null,symbolicNames[i]=null}}return new _Vocabulary(literalNames,symbolicNames,tokenNames)}getMaxTokenType(){return this.maxTokenType}getLiteralName(tokenType){return tokenType>=0&&tokenType=0&&tokenType=0&&tokenType>>17,hash=(hash^=value=Math.imul(value,461845907))<<13|hash>>>19,Math.imul(hash,5)+3864292196}static finish=(hash,entryCount)=>(hash^=4*entryCount,hash^=hash>>>16,hash=Math.imul(hash,2246822507),hash^=hash>>>13,(hash=Math.imul(hash,3266489909))^hash>>>16);static hashCode=(value,seed)=>_MurmurHash.finish(_MurmurHash.update(seed??_MurmurHash.#defaultSeed,value),1)},IntervalSet=class _IntervalSet{static#_=__name(this,"IntervalSet");#intervals=[];#cachedHashCode;constructor(set){set&&this.addSet(set)}static of(a,b){const s=new _IntervalSet;return s.addRange(a,b),s}[Symbol.iterator](){return this.#intervals[Symbol.iterator]()}get(index){return this.#intervals[index]}get minElement(){return 0===this.#intervals.length?Token.INVALID_TYPE:this.#intervals[0].start}get maxElement(){return 0===this.#intervals.length?Token.INVALID_TYPE:this.#intervals[this.#intervals.length-1].stop}clear(){this.#cachedHashCode=void 0,this.#intervals=[]}addOne(v){this.addInterval(new Interval(v,v))}addRange(l,h){this.addInterval(new Interval(l,h))}addInterval(addition){if(this.#cachedHashCode=void 0,0===this.#intervals.length)this.#intervals.push(addition);else{for(let pos=0;posthis.addInterval(toAdd),this),this}complementWithVocabulary(vocabulary){const result=new _IntervalSet;return vocabulary&&0!==vocabulary.length?(result.addSet(vocabulary),result.subtract(this)):result}complement(minElement,maxElement){const result=new _IntervalSet;return result.addInterval(new Interval(minElement,maxElement)),result.subtract(this)}or(sets){const result=new _IntervalSet;return result.addSet(this),sets.forEach(set=>result.addSet(set)),result}and(other){if(0===other.length)return new _IntervalSet;const myIntervals=this.#intervals,theirIntervals=other.#intervals;let intersection;const mySize=myIntervals.length,theirSize=theirIntervals.length;let i=0,j=0;for(;iresultInterval.stop){resultI++;continue}let beforeCurrent,afterCurrent;rightInterval.start>resultInterval.start&&(beforeCurrent=new Interval(resultInterval.start,rightInterval.start-1)),rightInterval.stopel))return!0;r3=m2-1}}return!1}removeRange(toRemove){if(this.#cachedHashCode=void 0,toRemove.start===toRemove.stop)this.removeOne(toRemove.start);else if(null!==this.#intervals){let pos=0;for(const existing of this.#intervals){if(toRemove.stop<=existing.start)return;if(toRemove.start>existing.start&&toRemove.stop=existing.stop?(this.#intervals.splice(pos,1),pos-=1):toRemove.start1&&(result+="{");for(let i=0;i":elementsAreChar?"'"+String.fromCodePoint(start2)+"'":start2:elementsAreChar?"'"+String.fromCodePoint(start2)+"'..'"+String.fromCodePoint(stop2)+"'":start2+".."+stop2,i1&&(result+="}"),result}toStringWithVocabulary(vocabulary){if(0===this.#intervals.length)return"{}";let result="";this.length>1&&(result+="{");for(let i=0;i":this.elementName(vocabulary,start2);else for(let i22=start2;i22<=stop2;++i22)i22>start2&&(result+=", "),result+=this.elementName(vocabulary,i22);i1&&(result+="}"),result}toStringWithRuleNames(ruleNames){if(0===this.#intervals.length)return"{}";let result="";this.length>1&&(result+="{");const vocabulary=Vocabulary.fromTokenNames(ruleNames);for(let i=0;i":this.elementName(vocabulary,start2);else for(let i22=start2;i22<=stop2;++i22)i22>start2&&(result+=", "),result+=this.elementName(vocabulary,i22);i1&&(result+="}"),result}toArray(){const data=[];for(const interval of this.#intervals)for(let j=interval.start;j<=interval.stop;j++)data.push(j);return data}get length(){let result=0;if(1===this.#intervals.length){const firstInterval=this.#intervals[0];return firstInterval.stop-firstInterval.start+1}for(const interval of this.#intervals)result+=interval.length;return result}elementName(vocabulary,token){return token===Token.EOF?"":token===Token.EPSILON?"":vocabulary.getDisplayName(token)}},Transition=class{static#_=__name(this,"Transition");static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(target){this.target=target}get isEpsilon(){return!1}get label(){return null}},SetTransition=class extends Transition{static#_=__name(this,"SetTransition");set;constructor(target,set){super(target),this.set=set||IntervalSet.of(Token.INVALID_TYPE,Token.INVALID_TYPE)}get transitionType(){return Transition.SET}get label(){return this.set}matches(symbol,_minVocabSymbol,_maxVocabSymbol){return this.set.contains(symbol)}toString(){return this.set.toString()}},NotSetTransition=class extends SetTransition{static#_=__name(this,"NotSetTransition");get transitionType(){return Transition.NOT_SET}matches(symbol,minVocabSymbol,maxVocabSymbol){return symbol>=minVocabSymbol&&symbol<=maxVocabSymbol&&!super.matches(symbol,minVocabSymbol,maxVocabSymbol)}toString(){return"~"+super.toString()}},PredictionContext=class _PredictionContext{static#_=__name(this,"PredictionContext");static EMPTY_RETURN_STATE=2147483647;static EMPTY;static traceATNSimulator=!1;#cachedHashCode;constructor(cachedHashCode){this.#cachedHashCode=cachedHashCode}static calculateEmptyHashCode(){let hash=MurmurHash.initialize(31);return hash=MurmurHash.finish(hash,0),hash}static calculateHashCodeSingle(parent,returnState){let hash=MurmurHash.initialize(31);return hash=MurmurHash.updateFromComparable(hash,parent),hash=MurmurHash.update(hash,returnState),hash=MurmurHash.finish(hash,2),hash}static calculateHashCodeList(parents,returnStates){let hash=MurmurHash.initialize(31);for(const parent of parents)hash=MurmurHash.updateFromComparable(hash,parent);for(const returnState of returnStates)hash=MurmurHash.update(hash,returnState);return hash=MurmurHash.finish(hash,2*parents.length),hash}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===_PredictionContext.EMPTY_RETURN_STATE}hashCode(){return this.#cachedHashCode}toString(_recog){return""}},dist_valueToString=__name(v=>null===v?"null":v,"valueToString"),arrayToString=__name(value=>Array.isArray(value)?"["+value.map(dist_valueToString).join(", ")+"]":"null","arrayToString"),equalArrays=__name((a,b)=>{if(a===b)return!0;if(a.length!==b.length)return!1;for(let i=0;i{if(a===b)return!0;if(a.length!==b.length)return!1;for(let i=0;i(s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),escapeSpaces&&(s=s.replace(/ /g,"\xb7")),s),"escapeWhitespace"),ArrayPredictionContext=class _ArrayPredictionContext extends PredictionContext{static#_=__name(this,"ArrayPredictionContext");parents=[];returnStates=[];constructor(parents,returnStates){return super(PredictionContext.calculateHashCodeList(parents,returnStates)),this.parents=parents,this.returnStates=returnStates,this}isEmpty(){return this.returnStates[0]===PredictionContext.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(index){return this.parents[index]}getReturnState(index){return this.returnStates[index]}equals(other){return this===other||other instanceof _ArrayPredictionContext&&this.hashCode()===other.hashCode()&&equalNumberArrays(this.returnStates,other.returnStates)&&equalArrays(this.parents,other.parents)}toString(){if(this.isEmpty())return"[]";const entries=[];for(let i=0;i":this.symbol?.text??""}toStringTree(){return this.toString()}},ErrorNode=class extends TerminalNode{static#_=__name(this,"ErrorNode");accept(visitor){return visitor.visitErrorNode(this)}},Trees=class _Trees{static#_=__name(this,"Trees");static toStringTree(tree2,ruleNames,recog){ruleNames=ruleNames??null,null!==(recog=recog??null)&&(ruleNames=recog.ruleNames);let s=_Trees.getNodeText(tree2,ruleNames);s=escapeWhitespace(s,!1);const c=tree2.getChildCount();if(0===c)return s;let res="("+s+" ";c>0&&(s=_Trees.toStringTree(tree2.getChild(0),ruleNames),res=res.concat(s));for(let i=1;i{child2 instanceof ErrorNode&&(this.children.push(child2),child2.parent=this)})}enterRule(_listener){}exitRule(_listener){}addChild(child2){return this.children.push(child2),child2}removeLastChild(){this.children.pop()}addTokenNode(token){const node2=new TerminalNode(token);return this.children.push(node2),node2.parent=this,node2}addErrorNode(errorNode){return errorNode.parent=this,this.children.push(errorNode),errorNode}getChild(i,type){if(i<0||i>=this.children.length)return null;if(!type)return this.children[i];for(const child2 of this.children)if(child2 instanceof type){if(0===i)return child2;i-=1}return null}getToken(ttype,i){if(i<0||i>=this.children.length)return null;for(const child2 of this.children)if("symbol"in child2&&child2.symbol?.type===ttype){if(0===i)return child2;i-=1}return null}getTokens(ttype){const tokens=[];for(const child2 of this.children)"symbol"in child2&&child2.symbol?.type===ttype&&tokens.push(child2);return tokens}getRuleContext(index,ctxType){return this.getChild(index,ctxType)}getRuleContexts(ctxType){const contexts=[];for(const child2 of this.children)child2 instanceof ctxType&&contexts.push(child2);return contexts}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start||null===this.stop?Interval.INVALID_INTERVAL:new Interval(this.start.tokenIndex,this.stop.tokenIndex)}get parent(){return this.#parent}set parent(parent){this.#parent=parent}depth(){let n2=0,p=this;for(;null!==p;)p=p.parent,n2+=1;return n2}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map(child2=>child2.getText()).join("")}getAltNumber(){return ATN.INVALID_ALT_NUMBER}setAltNumber(_altNumber){}accept(visitor){return visitor.visitChildren(this)}toStringTree(...args){return 1===args.length?Trees.toStringTree(this,null,args[0]):Trees.toStringTree(this,args[0],args[1])}toString(ruleNames,stop2){ruleNames=ruleNames??null,stop2=stop2??null;let p=this,s="[";for(;null!==p&&p!==stop2;){if(null===ruleNames)p.isEmpty()||(s+=p.invokingState);else{const ri=p.ruleIndex;s+=ri>=0&&rithis.#threshold&&this.expand();const b=this.getBucket(o);let bucket=this.#buckets[b];if(!bucket)return bucket=[o],this.#buckets[b]=bucket,++this.#itemCount,o;for(const existing of bucket)if(this.#comparator.equals(existing,o))return existing;return bucket.push(o),++this.#itemCount,o}get(o){if(null==o)return o;const b=this.getBucket(o),bucket=this.#buckets[b];if(bucket)for(const e2 of bucket)if(this.#comparator.equals(e2,o))return e2}hashCode(){let hash=MurmurHash.initialize();for(const bucket of this.#buckets)if(null!=bucket)for(const o of bucket){if(null==o)break;hash=MurmurHash.update(hash,this.#comparator.hashCode(o))}return hash=MurmurHash.finish(hash,this.size),hash}equals(o){return o===this||o instanceof _HashSet&&o.size===this.size&&this.containsAll(o)}add(t){return this.getOrAdd(t)===t}contains(o){return this.containsFast(o)}containsFast(obj){return null!=obj&&void 0!==this.get(obj)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const a=new Array(this.size);let i=0;for(const bucket of this.#buckets)if(null!=bucket)for(const o of bucket){if(null==o)break;a[i++]=o}return a}containsAll(collection){if(collection instanceof _HashSet){for(const bucket of collection.#buckets)if(null!=bucket)for(const o of bucket){if(null==o)break;if(!this.containsFast(o))return!1}}else for(const o of collection)if(!this.containsFast(o))return!1;return!0}addAll(c){let changed=!1;for(const o of c)this.getOrAdd(o)!==o&&(changed=!0);return changed}clear(){this.#buckets=this.createBuckets(_HashSet.#initialCapacity),this.#itemCount=0,this.#threshold=Math.floor(_HashSet.#initialCapacity*_HashSet.#defaultLoadFactor)}toString(){if(0===this.size)return"{}";let buf="{",first2=!0;for(const bucket of this.#buckets)if(null!=bucket)for(const o of bucket){if(null==o)break;first2?first2=!1:buf+=", ",buf+=o.toString()}return buf+="}",buf}toTableString(){let buf="";for(const bucket of this.#buckets){if(null==bucket){buf+="null\n";continue}buf+="[";let first2=!0;for(const o of bucket)first2?first2=!1:buf+=" ",buf+=null==o?"_":o.toString();buf+="]\n"}return buf}getBucket(o){return this.#comparator.hashCode(o)&this.#buckets.length-1}expand(){const old=this.#buckets,newCapacity=2*this.#buckets.length,newTable=this.createBuckets(newCapacity);this.#buckets=newTable,this.#threshold=Math.floor(newCapacity*_HashSet.#defaultLoadFactor);for(const bucket of old)if(bucket)for(const o of bucket){const b=this.getBucket(o);let newBucket=this.#buckets[b];newBucket||(newBucket=[],this.#buckets[b]=newBucket),newBucket.push(o)}}get size(){return this.#itemCount}get isEmpty(){return 0===this.#itemCount}createBuckets(capacity){return new Array(capacity)}},MapKeyEqualityComparator=class{static#_=__name(this,"MapKeyEqualityComparator");keyComparator;constructor(keyComparator){this.keyComparator=keyComparator}hashCode(obj){return this.keyComparator.hashCode(obj.key)}equals(a,b){return this.keyComparator.equals(a.key,b.key)}},HashMap=class _HashMap{static#_=__name(this,"HashMap");backingStore;constructor(keyComparer){this.backingStore=new HashSet(keyComparer instanceof _HashMap?keyComparer.backingStore:new MapKeyEqualityComparator(keyComparer))}clear(){this.backingStore.clear()}containsKey(key){return this.backingStore.contains({key})}get(key){const bucket=this.backingStore.get({key});if(bucket)return bucket.value}get isEmpty(){return this.backingStore.isEmpty}set(key,value){const element=this.backingStore.get({key,value});let result;return element?(result=element.value,element.value=value):this.backingStore.add({key,value}),result}setIfAbsent(key,value){const element=this.backingStore.get({key,value});let result;return element?result=element.value:this.backingStore.add({key,value}),result}values(){return this.backingStore.toArray().map(bucket=>bucket.value)}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(o){return this.backingStore.equals(o.backingStore)}},predictionContextFromRuleContext=__name((atn,outerContext)=>{if(outerContext||(outerContext=ParserRuleContext.empty),!outerContext.parent||outerContext===ParserRuleContext.empty)return PredictionContext.EMPTY;const parent=predictionContextFromRuleContext(atn,outerContext.parent);return SingletonPredictionContext.create(parent,atn.states[outerContext.invokingState].transitions[0].followState.stateNumber)},"predictionContextFromRuleContext"),getCachedPredictionContext=__name((context2,contextCache,visited)=>{if(context2.isEmpty())return context2;let existing=visited.get(context2);if(existing)return existing;if(existing=contextCache.get(context2),existing)return visited.set(context2,existing),existing;let updated,changed=!1,parents=[];for(let i=0;i{if(a===b)return a;if(a instanceof SingletonPredictionContext&&b instanceof SingletonPredictionContext)return mergeSingletons(a,b,rootIsWildcard,mergeCache);if(rootIsWildcard){if(a instanceof EmptyPredictionContext)return a;if(b instanceof EmptyPredictionContext)return b}return a instanceof SingletonPredictionContext&&(a=new ArrayPredictionContext([a.parent],[a.returnState])),b instanceof SingletonPredictionContext&&(b=new ArrayPredictionContext([b.parent],[b.returnState])),mergeArrays(a,b,rootIsWildcard,mergeCache)},"merge"),mergeArrays=__name((a,b,rootIsWildcard,mergeCache)=>{if(mergeCache){let previous=mergeCache.get(a,b);if(previous||(previous=mergeCache.get(b,a),previous))return previous}let i=0,j=0,k=0,mergedReturnStates=new Array(a.returnStates.length+b.returnStates.length).fill(0),mergedParents=new Array(a.returnStates.length+b.returnStates.length).fill(null);for(;i a"),a):merged.equals(b)?(null!==mergeCache&&mergeCache.set(a,b,b),b):(combineCommonParents(mergedParents),null!==mergeCache&&mergeCache.set(a,b,merged),PredictionContext.traceATNSimulator&&console.log("mergeArrays a="+a+",b="+b+" -> "+merged),merged)},"mergeArrays"),combineCommonParents=__name(parents=>{const uniqueParents=new HashMap(ObjectEqualityComparator.instance);for(const parent of parents)parent&&(uniqueParents.containsKey(parent)||uniqueParents.set(parent,parent));for(let q=0;q{if(null!==mergeCache){let previous=mergeCache.get(a,b);if(null!==previous||(previous=mergeCache.get(b,a),null!==previous))return previous}const rootMerge=mergeRoot(a,b,rootIsWildcard);if(null!==rootMerge)return null!==mergeCache&&mergeCache.set(a,b,rootMerge),rootMerge;if(a.returnState===b.returnState){const parent=dist_merge(a.parent,b.parent,rootIsWildcard,mergeCache);if(parent===a.parent)return a;if(parent===b.parent)return b;const spc=SingletonPredictionContext.create(parent,a.returnState);return null!==mergeCache&&mergeCache.set(a,b,spc),spc}{let singleParent=null;if((a===b||null!==a.parent&&a.parent===b.parent)&&(singleParent=a.parent),null!==singleParent){const payloads2=[a.returnState,b.returnState];a.returnState>b.returnState&&(payloads2[0]=b.returnState,payloads2[1]=a.returnState);const apc=new ArrayPredictionContext([singleParent,singleParent],payloads2);return null!==mergeCache&&mergeCache.set(a,b,apc),apc}const payloads=[a.returnState,b.returnState];let parents=[a.parent,b.parent];a.returnState>b.returnState&&(payloads[0]=b.returnState,payloads[1]=a.returnState,parents=[b.parent,a.parent]);const aNew=new ArrayPredictionContext(parents,payloads);return null!==mergeCache&&mergeCache.set(a,b,aNew),aNew}},"mergeSingletons"),mergeRoot=__name((a,b,rootIsWildcard)=>{if(rootIsWildcard){if(a===PredictionContext.EMPTY||b===PredictionContext.EMPTY)return PredictionContext.EMPTY}else{if(a===PredictionContext.EMPTY&&b===PredictionContext.EMPTY)return PredictionContext.EMPTY;if(a===PredictionContext.EMPTY)return new ArrayPredictionContext([b.parent,null],[b.returnState,PredictionContext.EMPTY_RETURN_STATE]);if(b===PredictionContext.EMPTY)return new ArrayPredictionContext([a.parent,null],[a.returnState,PredictionContext.EMPTY_RETURN_STATE])}return null},"mergeRoot"),BitSet=class{static#_=__name(this,"BitSet");data;constructor(data){this.data=data?new Uint32Array(data.map(value=>value>>>0)):new Uint32Array(1)}[Symbol.iterator](){const length=this.data.length;let currentIndex=0,currentWord=this.data[currentIndex];const words=this.data;return{[Symbol.iterator](){return this},next:()=>{for(;currentIndex>>5]&=~(1<>>5;return!(slot>=this.data.length||!(this.data[slot]&1<fromIndex)return index}set(index){if(index<0)throw new RangeError("index cannot be negative");this.resize(index),this.data[index>>>5]|=1<>>5;if(count<=this.data.length)return;const data=new Uint32Array(count);data.set(this.data),data.fill(0,this.data.length),this.data=data}bitCount(v){return v=(v=(858993459&(v-=v>>1&1431655765))+(v>>2&858993459))+(v>>4)&252645135,63&(v+=v>>8)+(v>>16)}},ATNState=class _ATNState{static#_=__name(this,"ATNState");static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=_ATNState.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(other){return this.stateNumber===other.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(index,transition2){0===this.transitions.length?this.epsilonOnlyTransitions=transition2.isEpsilon:this.epsilonOnlyTransitions!==transition2.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(index,1,transition2)}addTransition(transition2){0===this.transitions.length?this.epsilonOnlyTransitions=transition2.isEpsilon:this.epsilonOnlyTransitions!==transition2.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(transition2)}setTransition(i,e2){this.transitions.splice(i,1,e2)}removeTransition(index){return this.transitions.splice(index,1)[0]}},SemanticContext=class _SemanticContext{static#_=__name(this,"SemanticContext");cachedHashCode;static andContext(a,b){if(null===a||a===_SemanticContext.NONE)return b;if(null===b||b===_SemanticContext.NONE)return a;const result=new AND(a,b);return 1===result.operands.length?result.operands[0]:result}static orContext(a,b){if(null===a)return b;if(null===b)return a;if(a===_SemanticContext.NONE||b===_SemanticContext.NONE)return _SemanticContext.NONE;const result=new OR(a,b);return 1===result.operands.length?result.operands[0]:result}static filterPrecedencePredicates(set){const result=[];for(const context2 of set)context2 instanceof _SemanticContext.PrecedencePredicate&&result.push(context2);return result}evalPrecedence(_parser,_parserCallStack){return this}},AND=class _AND extends SemanticContext{static#_=__name(this,"AND");operands;constructor(a,b){super();const operands=new HashSet;a instanceof _AND?a.operands.forEach(o=>{operands.add(o)}):operands.add(a),b instanceof _AND?b.operands.forEach(o=>{operands.add(o)}):operands.add(b);const precedencePredicates=SemanticContext.filterPrecedencePredicates(operands);if(precedencePredicates.length>0){let reduced=null;precedencePredicates.forEach(p=>{(null===reduced||p.precedence{result=null===result?o:SemanticContext.andContext(result,o)}),result}toString(){const s=this.operands.map(o=>o.toString());return(s.length>3?s.slice(3):s).join("&&")}},OR=class _OR extends SemanticContext{static#_=__name(this,"OR");operands;constructor(a,b){super();const operands=new HashSet;a instanceof _OR?a.operands.forEach(o=>{operands.add(o)}):operands.add(a),b instanceof _OR?b.operands.forEach(o=>{operands.add(o)}):operands.add(b);const precedencePredicates=SemanticContext.filterPrecedencePredicates(operands);if(precedencePredicates.length>0){const s=precedencePredicates.sort((a2,b2)=>a2.compareTo(b2));operands.add(s[s.length-1])}this.operands=operands.toArray()}equals(other){return this===other||other instanceof _OR&&equalArrays(this.operands,other.operands)}hashCode(){if(void 0===this.cachedHashCode){let hash=MurmurHash.initialize();for(const operand of this.operands)hash=MurmurHash.updateFromComparable(hash,operand);hash=MurmurHash.update(hash,3383313031),this.cachedHashCode=MurmurHash.finish(hash,this.operands.length+1)}return this.cachedHashCode}evaluate(parser,parserCallStack){for(const operand of this.operands)if(operand.evaluate(parser,parserCallStack))return!0;return!1}evalPrecedence(parser,parserCallStack){let differs=!1;const operands=[];for(const context2 of this.operands){const evaluated=context2.evalPrecedence(parser,parserCallStack);if(differs||=evaluated!==context2,evaluated===SemanticContext.NONE)return SemanticContext.NONE;null!==evaluated&&operands.push(evaluated)}if(!differs)return this;if(0===operands.length)return null;let result=null;return operands.forEach(o=>{result=null===result?o:SemanticContext.orContext(result,o)}),result}toString(){const s=this.operands.map(o=>o.toString());return(s.length>3?s.slice(3):s).join("||")}};(SemanticContext2=>{class Predicate extends SemanticContext2{static#_=__name(this,"Predicate");ruleIndex;predIndex;isCtxDependent;constructor(ruleIndex,predIndex,isCtxDependent){super(),this.ruleIndex=ruleIndex??-1,this.predIndex=predIndex??-1,this.isCtxDependent=isCtxDependent??!1}evaluate(parser,outerContext){return parser.sempred(this.isCtxDependent?outerContext:null,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let hashCode=MurmurHash.initialize();hashCode=MurmurHash.update(hashCode,this.ruleIndex),hashCode=MurmurHash.update(hashCode,this.predIndex),hashCode=MurmurHash.update(hashCode,this.isCtxDependent?1:0),hashCode=MurmurHash.finish(hashCode,3),this.cachedHashCode=hashCode}return this.cachedHashCode}equals(other){return this===other||this.ruleIndex===other.ruleIndex&&this.predIndex===other.predIndex&&this.isCtxDependent===other.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}SemanticContext2.Predicate=Predicate;class PrecedencePredicate extends SemanticContext2{static#_=__name(this,"PrecedencePredicate");precedence;constructor(precedence){super(),this.precedence=precedence??0}evaluate(parser,outerContext){return parser.precpred(outerContext,this.precedence)}evalPrecedence(parser,outerContext){return parser.precpred(outerContext??null,this.precedence)?SemanticContext2.NONE:null}compareTo(other){return this.precedence-other.precedence}hashCode(){return 31+this.precedence}equals(other){return this===other||this.precedence===other.precedence}toString(){return"{"+this.precedence+">=prec}?"}}SemanticContext2.PrecedencePredicate=PrecedencePredicate,SemanticContext2.NONE=new Predicate})(SemanticContext||(SemanticContext={}));var PredPrediction,ATNConfig=class _ATNConfig{static#_=__name(this,"ATNConfig");state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#semanticContext}cachedHashCode;#context=null;#semanticContext;constructor(c,state2,context2,semanticContext){this.state=state2,this.alt=c.alt,this.context=context2,this.#semanticContext=semanticContext??SemanticContext.NONE,this.reachesIntoOuterContext=c.reachesIntoOuterContext,void 0!==c.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=c.precedenceFilterSuppressed)}static duplicate(old,semanticContext){return new _ATNConfig(old,old.state,old.context,semanticContext??old.semanticContext)}static createWithContext(state2,alt,context2,semanticContext){return new _ATNConfig({alt},state2,context2,semanticContext)}static createWithConfig(state2,config2,context2){return new _ATNConfig(config2,state2,context2??config2.context,config2.semanticContext)}static createWithSemanticContext(state2,c,semanticContext){return new _ATNConfig(c,state2??c.state,c.context,semanticContext)}hashCode(){if(void 0===this.cachedHashCode){let hashCode=MurmurHash.initialize(7);hashCode=MurmurHash.update(hashCode,this.state.stateNumber),hashCode=MurmurHash.update(hashCode,this.alt),hashCode=MurmurHash.updateFromComparable(hashCode,this.#context),hashCode=MurmurHash.updateFromComparable(hashCode,this.semanticContext),hashCode=MurmurHash.finish(hashCode,4),this.cachedHashCode=hashCode}return this.cachedHashCode}get context(){return this.#context}set context(context2){this.#context=context2,this.cachedHashCode=void 0}equals(other){return this===other||this.state.stateNumber===other.state.stateNumber&&this.alt===other.alt&&(null===this.context?null===other.context:this.context.equals(other.context))&&this.semanticContext.equals(other.semanticContext)&&this.precedenceFilterSuppressed===other.precedenceFilterSuppressed}toString(_recog,showAlt=!0){let alt="";return showAlt&&(alt=","+this.alt),"("+this.state+alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==SemanticContext.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},LL1Analyzer=class _LL1Analyzer{static#_=__name(this,"LL1Analyzer");static hitPredicate=Token.INVALID_TYPE;#atn;getDecisionLookahead(s){if(!s)return;const count=s.transitions.length,look=new Array(count);for(let alt=0;alt0&&!set.contains(_LL1Analyzer.hitPredicate)&&(look[alt]=set)}return look}look(atn,s,stopState,ctx){this.#atn=atn;const r3=new IntervalSet,lookContext=ctx?predictionContextFromRuleContext(atn,ctx):null;return this.doLook(s,stopState,lookContext,r3,new HashSet,new BitSet,!0,!0),r3}doLook(s,stopState,ctx,look,lookBusy,calledRuleStack,seeThruPreds,addEOF){const c=ATNConfig.createWithContext(s,0,ctx);if(!lookBusy.get(c)){if(lookBusy.add(c),s===stopState){if(!ctx)return void look.addOne(Token.EPSILON);if(ctx.isEmpty()&&addEOF)return void look.addOne(Token.EOF)}if(s.constructor.stateType===ATNState.RULE_STOP){if(!ctx)return void look.addOne(Token.EPSILON);if(ctx.isEmpty()&&addEOF)return void look.addOne(Token.EOF);if(ctx!==PredictionContext.EMPTY){const removed=calledRuleStack.get(s.ruleIndex);try{calledRuleStack.clear(s.ruleIndex);for(let i=0;i=this.states.length)throw new Error("Invalid state number.");let following=this.nextTokens(this.states[stateNumber]);if(!following.contains(Token.EPSILON))return following;let ctx=context2;const expected=new IntervalSet;for(expected.addSet(following),expected.removeOne(Token.EPSILON);null!==ctx&&ctx.invokingState>=0&&following.contains(Token.EPSILON);)following=this.nextTokens(this.states[ctx.invokingState].transitions[0].followState),expected.addSet(following),expected.removeOne(Token.EPSILON),ctx=ctx.parent;return following.contains(Token.EPSILON)&&expected.addOne(Token.EOF),expected}},KeyTypeEqualityComparer=class _KeyTypeEqualityComparer{static#_=__name(this,"KeyTypeEqualityComparer");static instance=new _KeyTypeEqualityComparer;hashCode(config2){let hashCode=7;return hashCode=31*hashCode+config2.state.stateNumber,hashCode=31*hashCode+config2.alt,hashCode=31*hashCode+config2.semanticContext.hashCode(),hashCode}equals(a,b){return a===b||a.state.stateNumber===b.state.stateNumber&&a.alt===b.alt&&a.semanticContext.equals(b.semanticContext)}},ATNConfigSet=class{static#_=__name(this,"ATNConfigSet");configLookup=new HashSet(KeyTypeEqualityComparer.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#cachedHashCode=-1;constructor(fullCtxOrOldSet){if(void 0!==fullCtxOrOldSet)if("boolean"==typeof fullCtxOrOldSet)this.fullCtx=fullCtxOrOldSet??!0;else{const old=fullCtxOrOldSet;this.addAll(old.configs),this.uniqueAlt=old.uniqueAlt,this.conflictingAlts=old.conflictingAlts,this.hasSemanticContext=old.hasSemanticContext,this.dipsIntoOuterContext=old.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(config2,mergeCache=null){if(this.readOnly)throw new Error("This set is readonly");!this.firstStopState&&config2.state.constructor.stateType===ATNState.RULE_STOP&&(this.firstStopState=config2),this.hasSemanticContext||=config2.semanticContext!==SemanticContext.NONE,this.dipsIntoOuterContext||=config2.reachesIntoOuterContext;const existing=this.configLookup.getOrAdd(config2);if(existing===config2)return this.#cachedHashCode=-1,void this.configs.push(config2);const merged=dist_merge(existing.context,config2.context,!this.fullCtx,mergeCache);existing.reachesIntoOuterContext||=config2.reachesIntoOuterContext,existing.precedenceFilterSuppressed||=config2.precedenceFilterSuppressed,existing.context=merged}get elements(){return this.configs}getAlts(){const alts=new BitSet;for(const config2 of this.configs)alts.set(config2.alt);return alts}getPredicates(){const preds=[];for(const config2 of this.configs)config2.semanticContext!==SemanticContext.NONE&&preds.push(config2.semanticContext);return preds}getStates(){const states=new HashSet;for(const config2 of this.configs)states.add(config2.state);return states}optimizeConfigs(interpreter){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const config2 of this.configs)config2.context=interpreter.getCachedContext(config2.context)}addAll(coll){for(const config2 of coll)this.add(config2);return!1}equals(other){return!!(this===other||this.fullCtx===other.fullCtx&&this.uniqueAlt===other.uniqueAlt&&this.conflictingAlts===other.conflictingAlts&&this.hasSemanticContext===other.hasSemanticContext&&this.dipsIntoOuterContext===other.dipsIntoOuterContext&&equalArrays(this.configs,other.configs))}hashCode(){return-1===this.#cachedHashCode&&(this.#cachedHashCode=this.computeHashCode()),this.#cachedHashCode}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(item){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(item)}containsFast(item){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(item)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#cachedHashCode=-1,this.configLookup=new HashSet(KeyTypeEqualityComparer.instance)}setReadonly(readOnly){this.readOnly=readOnly,readOnly&&(this.configLookup=null)}toString(){return arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==ATN.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let hash=MurmurHash.initialize();return this.configs.forEach(config2=>{hash=MurmurHash.update(hash,config2.hashCode())}),hash=MurmurHash.finish(hash,this.configs.length),hash}},BasicState=class extends ATNState{static#_=__name(this,"BasicState");static stateType=ATNState.BASIC},DecisionState=class extends ATNState{static#_=__name(this,"DecisionState");decision=-1;nonGreedy=!1},BlockStartState=class extends DecisionState{static#_=__name(this,"BlockStartState");endState},BlockEndState=class extends ATNState{static#_=__name(this,"BlockEndState");static stateType=ATNState.BLOCK_END;startState},LoopEndState=class extends ATNState{static#_=__name(this,"LoopEndState");static stateType=ATNState.LOOP_END;loopBackState},RuleStartState=class extends ATNState{static#_=__name(this,"RuleStartState");static stateType=ATNState.RULE_START;stopState;isLeftRecursiveRule=!1;isPrecedenceRule=!1},RuleStopState=class extends ATNState{static#_=__name(this,"RuleStopState");static stateType=ATNState.RULE_STOP},TokensStartState=class extends DecisionState{static#_=__name(this,"TokensStartState");static stateType=ATNState.TOKEN_START},PlusLoopbackState=class extends DecisionState{static#_=__name(this,"PlusLoopbackState");static stateType=ATNState.PLUS_LOOP_BACK},StarLoopbackState=class extends ATNState{static#_=__name(this,"StarLoopbackState");static stateType=ATNState.STAR_LOOP_BACK},StarLoopEntryState=class extends DecisionState{static#_=__name(this,"StarLoopEntryState");static stateType=ATNState.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},PlusBlockStartState=class extends BlockStartState{static#_=__name(this,"PlusBlockStartState");static stateType=ATNState.PLUS_BLOCK_START;loopBackState},StarBlockStartState=class extends BlockStartState{static#_=__name(this,"StarBlockStartState");static stateType=ATNState.STAR_BLOCK_START},BasicBlockStartState=class extends BlockStartState{static#_=__name(this,"BasicBlockStartState");static stateType=ATNState.BLOCK_START},AtomTransition=class extends Transition{static#_=__name(this,"AtomTransition");labelValue;#label;constructor(target,label){super(target),this.labelValue=label,this.#label=IntervalSet.of(label,label)}get label(){return this.#label}get transitionType(){return Transition.ATOM}matches(symbol){return this.labelValue===symbol}toString(){return this.labelValue.toString()}},RuleTransition=class extends Transition{static#_=__name(this,"RuleTransition");ruleIndex;precedence;followState;constructor(ruleStart,ruleIndex,precedence,followState){super(ruleStart),this.ruleIndex=ruleIndex,this.precedence=precedence,this.followState=followState}get isEpsilon(){return!0}get transitionType(){return Transition.RULE}matches(_symbol,_minVocabSymbol,_maxVocabSymbol){return!1}},RangeTransition=class extends Transition{static#_=__name(this,"RangeTransition");start;stop;#label=new IntervalSet;constructor(target,start2,stop2){super(target),this.start=start2,this.stop=stop2,this.#label.addRange(start2,stop2)}get label(){return this.#label}get transitionType(){return Transition.RANGE}matches(symbol,_minVocabSymbol,_maxVocabSymbol){return symbol>=this.start&&symbol<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},ActionTransition=class extends Transition{static#_=__name(this,"ActionTransition");ruleIndex;actionIndex;isCtxDependent;constructor(target,ruleIndex,actionIndex,isCtxDependent){super(target),this.ruleIndex=ruleIndex,this.actionIndex=void 0===actionIndex?-1:actionIndex,this.isCtxDependent=void 0!==isCtxDependent&&isCtxDependent}get isEpsilon(){return!0}get transitionType(){return Transition.ACTION}matches(_symbol,_minVocabSymbol,_maxVocabSymbol){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},EpsilonTransition=class extends Transition{static#_=__name(this,"EpsilonTransition");#outermostPrecedenceReturn;constructor(target,outermostPrecedenceReturn=-1){super(target),this.#outermostPrecedenceReturn=outermostPrecedenceReturn}get outermostPrecedenceReturn(){return this.#outermostPrecedenceReturn}get isEpsilon(){return!0}get transitionType(){return Transition.EPSILON}matches(){return!1}toString(){return"epsilon"}},WildcardTransition=class extends Transition{static#_=__name(this,"WildcardTransition");get transitionType(){return Transition.WILDCARD}matches(symbol,minVocabSymbol,maxVocabSymbol){return symbol>=minVocabSymbol&&symbol<=maxVocabSymbol}toString(){return"."}},AbstractPredicateTransition=class extends Transition{static#_=__name(this,"AbstractPredicateTransition");constructor(target){super(target)}},PredicateTransition=class extends AbstractPredicateTransition{static#_=__name(this,"PredicateTransition");ruleIndex;predIndex;isCtxDependent;constructor(target,ruleIndex,predIndex,isCtxDependent){super(target),this.ruleIndex=ruleIndex,this.predIndex=predIndex,this.isCtxDependent=isCtxDependent}get isEpsilon(){return!0}matches(_symbol,_minVocabSymbol,_maxVocabSymbol){return!1}get transitionType(){return Transition.PREDICATE}getPredicate(){return new SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},PrecedencePredicateTransition=class extends AbstractPredicateTransition{static#_=__name(this,"PrecedencePredicateTransition");precedence;constructor(target,precedence){super(target),this.precedence=precedence}get isEpsilon(){return!0}matches(_symbol,_minVocabSymbol,_maxVocabSymbol){return!1}getPredicate(){return new SemanticContext.PrecedencePredicate(this.precedence)}get transitionType(){return Transition.PRECEDENCE}toString(){return this.precedence+" >= _p"}},LexerSkipAction=class _LexerSkipAction{static#_=__name(this,"LexerSkipAction");static instance=new _LexerSkipAction;actionType;isPositionDependent=!1;constructor(){this.actionType=6}equals(obj){return obj===this}hashCode(){return 6}execute(lexer){lexer.skip()}toString(){return"skip"}},LexerChannelAction=class _LexerChannelAction{static#_=__name(this,"LexerChannelAction");channel;actionType;isPositionDependent=!1;#cachedHashCode;constructor(channel){this.actionType=0,this.channel=channel}execute(lexer){lexer.channel=this.channel}hashCode(){if(void 0===this.#cachedHashCode){let hash=MurmurHash.initialize();hash=MurmurHash.update(hash,this.actionType),hash=MurmurHash.update(hash,this.channel),this.#cachedHashCode=MurmurHash.finish(hash,2)}return this.#cachedHashCode}equals(other){return this===other||other instanceof _LexerChannelAction&&this.channel===other.channel}toString(){return"channel("+this.channel+")"}},LexerCustomAction=class _LexerCustomAction{static#_=__name(this,"LexerCustomAction");ruleIndex;actionIndex;actionType;isPositionDependent=!0;#cachedHashCode;constructor(ruleIndex,actionIndex){this.actionType=1,this.ruleIndex=ruleIndex,this.actionIndex=actionIndex}execute(lexer){lexer.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.#cachedHashCode){let hash=MurmurHash.initialize();hash=MurmurHash.update(hash,this.actionType),hash=MurmurHash.update(hash,this.ruleIndex),hash=MurmurHash.update(hash,this.actionIndex),this.#cachedHashCode=MurmurHash.finish(hash,3)}return this.#cachedHashCode}equals(other){return this===other||other instanceof _LexerCustomAction&&this.ruleIndex===other.ruleIndex&&this.actionIndex===other.actionIndex}},LexerMoreAction=class _LexerMoreAction{static#_=__name(this,"LexerMoreAction");static instance=new _LexerMoreAction;actionType;isPositionDependent=!1;constructor(){this.actionType=3}equals(obj){return obj===this}hashCode(){return 3}execute(lexer){lexer.more()}toString(){return"more"}},LexerTypeAction=class _LexerTypeAction{static#_=__name(this,"LexerTypeAction");type;actionType;isPositionDependent=!1;#cachedHashCode;constructor(type){this.actionType=7,this.type=type}execute(lexer){lexer.type=this.type}hashCode(){if(void 0===this.#cachedHashCode){let hash=MurmurHash.initialize();hash=MurmurHash.update(hash,this.actionType),hash=MurmurHash.update(hash,this.type),this.#cachedHashCode=MurmurHash.finish(hash,2)}return this.#cachedHashCode}equals(other){return this===other||other instanceof _LexerTypeAction&&this.type===other.type}toString(){return"type("+this.type+")"}},LexerPushModeAction=class _LexerPushModeAction{static#_=__name(this,"LexerPushModeAction");mode;actionType;isPositionDependent=!1;#cachedHashCode;constructor(mode){this.actionType=5,this.mode=mode}execute(lexer){lexer.pushMode(this.mode)}hashCode(){if(void 0===this.#cachedHashCode){let hash=MurmurHash.initialize();hash=MurmurHash.update(hash,this.actionType),hash=MurmurHash.update(hash,this.mode),this.#cachedHashCode=MurmurHash.finish(hash,2)}return this.#cachedHashCode}equals(other){return this===other||other instanceof _LexerPushModeAction&&this.mode===other.mode}toString(){return"pushMode("+this.mode+")"}},LexerPopModeAction=class _LexerPopModeAction{static#_=__name(this,"LexerPopModeAction");static instance=new _LexerPopModeAction;actionType;isPositionDependent=!1;constructor(){this.actionType=4}equals(obj){return obj===this}hashCode(){return 4}execute(lexer){lexer.popMode()}toString(){return"popMode"}},LexerModeAction=class _LexerModeAction{static#_=__name(this,"LexerModeAction");mode;actionType;isPositionDependent=!1;#cachedHashCode;constructor(mode){this.actionType=2,this.mode=mode}execute(lexer){lexer.mode=this.mode}hashCode(){if(void 0===this.#cachedHashCode){let hash=MurmurHash.initialize();hash=MurmurHash.update(hash,this.actionType),hash=MurmurHash.update(hash,this.mode),this.#cachedHashCode=MurmurHash.finish(hash,2)}return this.#cachedHashCode}equals(other){return this===other||other instanceof _LexerModeAction&&this.mode===other.mode}toString(){return"mode("+this.mode+")"}},ATNDeserializer=class _ATNDeserializer{static#_=__name(this,"ATNDeserializer");static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[ATNState.INVALID_TYPE,void 0],[ATNState.BASIC,BasicState],[ATNState.RULE_START,RuleStartState],[ATNState.BLOCK_START,BasicBlockStartState],[ATNState.PLUS_BLOCK_START,PlusBlockStartState],[ATNState.STAR_BLOCK_START,StarBlockStartState],[ATNState.TOKEN_START,TokensStartState],[ATNState.RULE_STOP,RuleStopState],[ATNState.BLOCK_END,BlockEndState],[ATNState.STAR_LOOP_BACK,StarLoopbackState],[ATNState.STAR_LOOP_ENTRY,StarLoopEntryState],[ATNState.PLUS_LOOP_BACK,PlusLoopbackState],[ATNState.LOOP_END,LoopEndState]]);static lexerActionFactoryMapper=new Map([[0,data1=>new LexerChannelAction(data1)],[1,(data1,data2)=>new LexerCustomAction(data1,data2)],[2,data1=>new LexerModeAction(data1)],[3,()=>LexerMoreAction.instance],[4,()=>LexerPopModeAction.instance],[5,data1=>new LexerPushModeAction(data1)],[6,()=>LexerSkipAction.instance],[7,data1=>new LexerTypeAction(data1)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(options){options||(options={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=options}deserialize(data){this.data=data,this.checkVersion();const atn=this.readATN();this.readStates(atn),this.readRules(atn),this.readModes(atn);const sets=[];return this.readSets(atn,sets),this.readEdges(atn,sets),this.readDecisions(atn),this.readLexerActions(atn),this.markPrecedenceDecisions(atn),this.verifyATN(atn),this.deserializationOptions.generateRuleBypassTransitions&&atn.grammarType===ATN.PARSER&&(this.generateRuleBypassTransitions(atn),this.verifyATN(atn)),atn}checkVersion(){const version2=this.data[this.pos++];if(version2!==_ATNDeserializer.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+version2+" (expected "+_ATNDeserializer.SERIALIZED_VERSION+").")}readATN(){const grammarType=this.data[this.pos++],maxTokenType=this.data[this.pos++];return new ATN(grammarType,maxTokenType)}readStates(atn){let j,stateNumber;const loopBackStateNumbers=[],endStateNumbers=[],stateCount=this.data[this.pos++];for(let i=0;i0;)bypassStart.addTransition(ruleToStartState.transitions[count-1]),ruleToStartState.transitions=ruleToStartState.transitions.slice(-1);atn.ruleToStartState[idx].addTransition(new EpsilonTransition(bypassStart)),endState&&bypassStop.addTransition(new EpsilonTransition(endState));const matchState=new BasicState;atn.addState(matchState),matchState.addTransition(new AtomTransition(bypassStop,atn.ruleToTokenType[idx])),bypassStart.addTransition(new EpsilonTransition(matchState))}stateIsEndStateFor(state2,idx){if(state2.ruleIndex!==idx||!(state2 instanceof StarLoopEntryState))return null;const maybeLoopEndState=state2.transitions[state2.transitions.length-1].target;return maybeLoopEndState instanceof LoopEndState&&maybeLoopEndState.epsilonOnlyTransitions&&maybeLoopEndState.transitions[0].target instanceof RuleStopState?state2:null}markPrecedenceDecisions(atn){for(const state2 of atn.states)if(state2 instanceof StarLoopEntryState&&atn.ruleToStartState[state2.ruleIndex].isPrecedenceRule){const maybeLoopEndState=state2.transitions[state2.transitions.length-1].target;maybeLoopEndState instanceof LoopEndState&&maybeLoopEndState.epsilonOnlyTransitions&&maybeLoopEndState.transitions[0].target instanceof RuleStopState&&(state2.precedenceRuleDecision=!0)}}verifyATN(atn){if(this.deserializationOptions.verifyATN)for(const state2 of atn.states)if(null!==state2)if(this.checkCondition(state2.epsilonOnlyTransitions||state2.transitions.length<=1),state2 instanceof PlusBlockStartState)this.checkCondition(null!==state2.loopBackState);else if(state2 instanceof StarLoopEntryState)if(this.checkCondition(null!==state2.loopBackState),this.checkCondition(2===state2.transitions.length),state2.transitions[0].target instanceof StarBlockStartState)this.checkCondition(state2.transitions[1].target instanceof LoopEndState),this.checkCondition(!state2.nonGreedy);else{if(!(state2.transitions[0].target instanceof LoopEndState))throw new Error("IllegalState");this.checkCondition(state2.transitions[1].target instanceof StarBlockStartState),this.checkCondition(state2.nonGreedy)}else state2 instanceof StarLoopbackState?(this.checkCondition(1===state2.transitions.length),this.checkCondition(state2.transitions[0].target instanceof StarLoopEntryState)):this.checkCondition(state2 instanceof LoopEndState?null!==state2.loopBackState:state2 instanceof RuleStartState?null!==state2.stopState:state2 instanceof BlockStartState?null!==state2.endState:state2 instanceof BlockEndState?null!==state2.startState:state2 instanceof DecisionState?state2.transitions.length<=1||state2.decision>=0:state2.transitions.length<=1||state2 instanceof RuleStopState)}checkCondition(condition,message){if(!condition)throw null==message&&(message="IllegalState"),message}edgeFactory(atn,type,trg,arg1,arg2,arg3,sets){const target=atn.states[trg];switch(type){case Transition.EPSILON:return new EpsilonTransition(target);case Transition.RANGE:return new RangeTransition(target,0!==arg3?Token.EOF:arg1,arg2);case Transition.RULE:return new RuleTransition(atn.states[arg1],arg2,arg3,target);case Transition.PREDICATE:return new PredicateTransition(target,arg1,arg2,0!==arg3);case Transition.PRECEDENCE:return new PrecedencePredicateTransition(target,arg1);case Transition.ATOM:return new AtomTransition(target,0!==arg3?Token.EOF:arg1);case Transition.ACTION:return new ActionTransition(target,arg1,arg2,0!==arg3);case Transition.SET:return new SetTransition(target,sets[arg1]);case Transition.NOT_SET:return new NotSetTransition(target,sets[arg1]);case Transition.WILDCARD:return new WildcardTransition(target);default:throw new Error("The specified transition type: "+type+" is not valid.")}}stateFactory(type,ruleIndex){const ctor=_ATNDeserializer.stateTypeMapper.get(type);if(!ctor)throw new Error("The specified state type "+type+" is not valid.");const s=new ctor;return s.ruleIndex=ruleIndex,s}lexerActionFactory(type,data1,data2){const factory2=_ATNDeserializer.lexerActionFactoryMapper.get(type);if(!factory2)throw new Error("The specified lexer action type "+type+" is not valid.");return factory2(data1,data2)}},OrderedHashMap=class _OrderedHashMap extends HashMap{static#_=__name(this,"OrderedHashMap");#keys=[];clear(){super.clear(),this.#keys=[]}get(key){return super.get(key)}set(key,value){const result=super.set(key,value);return void 0===result&&this.#keys.push(key),result}setIfAbsent(key,value){const result=super.setIfAbsent(key,value);return void 0===result&&this.#keys.push(key),result}values(){return{[Symbol.iterator]:()=>{let index=0;return{next:()=>index0)for(const modeStartState of this.atn.modeToStartState)this.data.push(modeStartState.stateNumber)}addRuleStatesAndLexerTokenTypes(){const ruleCount=this.atn.ruleToStartState.length;this.data.push(ruleCount);for(let r3=0;r3",buf+=this.predicates?arrayToString(this.predicates):this.prediction),buf.toString()}}),ATNSimulator=class{static#_=__name(this,"ATNSimulator");static ERROR=DFAState.fromState(2147483647);atn;sharedContextCache;constructor(atn,sharedContextCache){return this.atn=atn,this.sharedContextCache=sharedContextCache,this}getCachedContext(context2){if(!this.sharedContextCache)return context2;const visited=new HashMap(ObjectEqualityComparator.instance);return getCachedPredictionContext(context2,this.sharedContextCache,visited)}},DecisionInfo=(class _CodePointTransitions{static#_=__name(this,"CodePointTransitions");static createWithCodePoint(target,codePoint){return _CodePointTransitions.createWithCodePointRange(target,codePoint,codePoint)}static createWithCodePointRange(target,codePointFrom,codePointTo){return codePointFrom===codePointTo?new AtomTransition(target,codePointFrom):new RangeTransition(target,codePointFrom,codePointTo)}},class{static#_=__name(this,"DecisionInfo");decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(decision){this.decision=decision,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString1(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),LexerATNConfig=class _LexerATNConfig extends ATNConfig{static#_=__name(this,"LexerATNConfig");lexerActionExecutor;passedThroughNonGreedyDecision;constructor(config2,state2,context2,lexerActionExecutor){return super(config2,state2,context2??config2.context,context2?SemanticContext.NONE:config2.semanticContext),this.lexerActionExecutor=context2?lexerActionExecutor:config2.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=_LexerATNConfig.checkNonGreedyDecision(config2,this.state),this}static createWithExecutor(config2,state2,lexerActionExecutor){return new _LexerATNConfig(config2,state2,config2.context,lexerActionExecutor)}static createWithConfig(state2,config2,context2){return new _LexerATNConfig(config2,state2,context2??null,config2.lexerActionExecutor)}static createWithContext(state2,alt,context2){return new _LexerATNConfig({alt},state2,context2,null)}static checkNonGreedyDecision(source,target){return source.passedThroughNonGreedyDecision||"nonGreedy"in target&&target.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let hashCode=MurmurHash.initialize(7);hashCode=MurmurHash.update(hashCode,this.state.stateNumber),hashCode=MurmurHash.update(hashCode,this.alt),hashCode=MurmurHash.updateFromComparable(hashCode,this.context),hashCode=MurmurHash.updateFromComparable(hashCode,this.semanticContext),hashCode=MurmurHash.update(hashCode,this.passedThroughNonGreedyDecision?1:0),hashCode=MurmurHash.updateFromComparable(hashCode,this.lexerActionExecutor),hashCode=MurmurHash.finish(hashCode,6),this.cachedHashCode=hashCode}return this.cachedHashCode}equals(other){return this===other||this.passedThroughNonGreedyDecision===other.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&other.lexerActionExecutor?this.lexerActionExecutor.equals(other.lexerActionExecutor):!other.lexerActionExecutor)&&super.equals(other)}},BaseErrorListener=class{static#_=__name(this,"BaseErrorListener");syntaxError(recognizer,offendingSymbol,line,column,msg,e2){}reportAmbiguity(recognizer,dfa,startIndex,stopIndex,exact,ambigAlts,configs){}reportAttemptingFullContext(recognizer,dfa,startIndex,stopIndex,conflictingAlts,configs){}reportContextSensitivity(recognizer,dfa,startIndex,stopIndex,prediction,configs){}},ConsoleErrorListener=class _ConsoleErrorListener extends BaseErrorListener{static#_=__name(this,"ConsoleErrorListener");static instance=new _ConsoleErrorListener;syntaxError(recognizer,offendingSymbol,line,charPositionInLine,msg,_e){console.error("line "+line+":"+charPositionInLine+" "+msg)}},ProxyErrorListener=class extends BaseErrorListener{constructor(delegates){return super(),this.delegates=delegates,this}static#_=__name(this,"ProxyErrorListener");syntaxError(recognizer,offendingSymbol,line,column,msg,e2){this.delegates.forEach(d=>{d.syntaxError(recognizer,offendingSymbol,line,column,msg,e2)})}reportAmbiguity(recognizer,dfa,startIndex,stopIndex,exact,ambigAlts,configs){this.delegates.forEach(d=>{d.reportAmbiguity(recognizer,dfa,startIndex,stopIndex,exact,ambigAlts,configs)})}reportAttemptingFullContext(recognizer,dfa,startIndex,stopIndex,conflictingAlts,configs){this.delegates.forEach(d=>{d.reportAttemptingFullContext(recognizer,dfa,startIndex,stopIndex,conflictingAlts,configs)})}reportContextSensitivity(recognizer,dfa,startIndex,stopIndex,prediction,configs){this.delegates.forEach(d=>{d.reportContextSensitivity(recognizer,dfa,startIndex,stopIndex,prediction,configs)})}},dist_Recognizer=class _Recognizer{static#_=__name(this,"Recognizer");static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;#listeners=[ConsoleErrorListener.instance];#stateNumber=-1;checkVersion(toolVersion){"4.13.1"!==toolVersion&&console.error("ANTLR runtime and generated code versions disagree: 4.13.1!="+toolVersion)}addErrorListener(listener){this.#listeners.push(listener)}removeErrorListeners(){this.#listeners=[]}removeErrorListener(listener){for(let i=0;iresult.set(ruleName,idx)),_Recognizer.ruleIndexMapCache.set(ruleNames,result)),result}getTokenType(tokenName){return this.getTokenTypeMap().get(tokenName)||Token.INVALID_TYPE}getErrorHeader(e2){const line=e2.offendingToken?.line,column=e2.offendingToken?.column;return"line "+line+":"+column}get errorListenerDispatch(){return new ProxyErrorListener(this.#listeners)}sempred(_localctx,_ruleIndex,_actionIndex){return!0}precpred(_localctx,_precedence){return!0}action(_localctx,_ruleIndex,_actionIndex){}get atn(){return this.interpreter.atn}get state(){return this.#stateNumber}set state(state2){this.#stateNumber=state2}getSerializedATN(){throw new Error("there is no serialized ATN")}getParseInfo(){return null}},CommonToken=class _CommonToken{static#_=__name(this,"CommonToken");static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#text;constructor(details){this.type=details.type,this.source=details.source,this.tokenIndex=details.tokenIndex??-1,this.line=details.line??0,this.column=details.column??-1,this.channel=details.channel??Token.DEFAULT_CHANNEL,this.start=details.start??0,this.stop=details.stop??0,this.#text=details.text,null!==details.source[0]&&(this.line=details.source[0].line,this.column=details.source[0].column)}static fromToken(token){let source;return source="source"in token?token.source:[token.tokenSource,token.inputStream],new _CommonToken({type:token.type,line:token.line,tokenIndex:token.tokenIndex,column:token.column,channel:token.channel,start:token.start,stop:token.stop,text:token.text,source})}static fromType(type,text){return new _CommonToken({type,text,source:_CommonToken.EMPTY_SOURCE})}static fromSource(source,type,channel,start2,stop2){return new _CommonToken({type,channel,start:start2,stop:stop2,source})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}clone(){return new _CommonToken({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#text})}toString(recognizer){let channelStr="";this.channel>0&&(channelStr=",channel="+this.channel);let text=this.text;text?(text=text.replace(/\n/g,"\\n"),text=text.replace(/\r/g,"\\r"),text=text.replace(/\t/g,"\\t")):text="";let typeString=String(this.type);return recognizer&&(typeString=recognizer.vocabulary.getDisplayName(this.type)??""),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+text+"',<"+typeString+">"+channelStr+","+this.line+":"+this.column+"]"}get text(){if(this.#text)return this.#text;const input2=this.inputStream;if(!input2)return;const n2=input2.size;return this.start"}set text(text){this.#text=text}setText(text){this.#text=text}setType(ttype){this.type=ttype}setLine(line){this.line=line}setCharPositionInLine(pos){this.column=pos}setChannel(channel){this.channel=channel}setTokenIndex(index){this.tokenIndex=index}},CommonTokenFactory=class _CommonTokenFactory{static#_=__name(this,"CommonTokenFactory");static DEFAULT=new _CommonTokenFactory;copyText=!1;constructor(copyText){this.copyText=copyText??!1}create(source,type,text,channel,start2,stop2,line,column){const t=CommonToken.fromSource(source,type,channel,start2,stop2);return t.line=line,t.column=column,text?t.text=text:this.copyText&&null!==source[1]&&(t.text=source[1].getTextFromRange(start2,stop2)),t}},RecognitionException=class _RecognitionException extends Error{static#_=__name(this,"RecognitionException");ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(params){super(params.message),Error.captureStackTrace&&Error.captureStackTrace(this,_RecognitionException),this.message=params.message,this.recognizer=params.recognizer,this.input=params.input,this.ctx=params.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},LexerNoViableAltException=class extends RecognitionException{static#_=__name(this,"LexerNoViableAltException");startIndex;deadEndConfigs;constructor(lexer,input2,startIndex,deadEndConfigs){super({message:"",recognizer:lexer,input:input2,ctx:null}),this.startIndex=startIndex,this.deadEndConfigs=deadEndConfigs}toString(){let symbol="";return this.input&&this.startIndex>=0&&this.startIndex