From e471dd2ddff5898803c545bf2ed78a1d03f714da Mon Sep 17 00:00:00 2001 From: mgdigital Date: Tue, 6 Feb 2024 18:56:15 +0000 Subject: [PATCH] Use budgeted count for aggregations (#128) This PR introduces a significant optimisation of aggregations (counts). It takes advantage of the fact that a Postgres query plan can tell you the cost of a query up-front, along with a rough estimate of the count based on indexes. All count queries now have a "budget", defaulting to 5,000. If the budget is exceeded according to the query plan, then the estimate will be returned (and the UI will display an estimate symbol `~` next to the associated count), otherwise the query will be executed and an exact count will be returned. The accuracy of the estimate seems to be within 10-20% of the exact count in most cases - though accuracy depends on selected filter criteria and what is being counted, I've noticed bigger discrepancies but overall it seems like an acceptable trade-off. The background cache warmer has been removed and aggregations are now real time again (the cache warmer was at best a short term mitigation while I figured out a better solution). The cache TTL has been reduced to 10 minutes. It was previously increased to allow the cache warmer to be run less frequently. There are also some adjustments to the indexes that improve performance and the accuracy of estimations. For large indexes the migration may take a while to run: in my tests on 12 million torrents it took 15 minutes. --- .../TorrentContentSearchResult.graphql | 10 + graphql/schema/search.graphqls | 11 + internal/database/cache/config.go | 2 +- internal/database/dao/budgeted_count.go | 24 + internal/database/dao/content.gen.go | 6 +- internal/database/dao/torrent_contents.go | 15 + internal/database/databasefx/module.go | 3 - internal/database/gen/gen.go | 1 + internal/database/migrations/logger.go | 2 +- internal/database/migrations/migrator.go | 12 +- internal/database/query/facets.go | 109 ++- internal/database/query/options.go | 7 + internal/database/query/params.go | 66 +- internal/database/query/query.go | 56 +- .../database/search/facet_release_year.go | 67 +- .../search/facet_torrent_content_attribute.go | 42 +- .../facet_torrent_content_collection.go | 72 +- .../search/facet_torrent_content_genre.go | 2 +- .../search/facet_torrent_content_language.go | 36 +- .../search/facet_torrent_content_type.go | 37 +- .../search/facet_torrent_content_video_3d.go | 15 +- .../facet_torrent_content_video_codec.go | 15 +- .../facet_torrent_content_video_modifier.go | 15 +- .../facet_torrent_content_video_resolution.go | 15 +- .../facet_torrent_content_video_source.go | 15 +- .../search/facet_torrent_file_type.go | 124 +--- .../database/search/facet_torrent_source.go | 75 +- internal/database/search/facet_torrent_tag.go | 67 +- internal/database/search/warmer/config.go | 15 - internal/database/search/warmer/factory.go | 55 -- internal/database/search/warmer/warmer.go | 95 --- internal/gql/gql.gen.go | 682 +++++++++++++++++- internal/gql/gqlgen.yml | 1 + internal/gql/gqlmodel/facet.go | 42 +- internal/gql/gqlmodel/gen/model.gen.go | 63 +- internal/gql/gqlmodel/torrent_content.go | 18 +- internal/model/null.go | 73 ++ migrations/00010_budgeted_count.sql | 32 + migrations/00011_indexes.sql | 27 + webui/dist/bitmagnet/index.html | 4 +- webui/dist/bitmagnet/main.b93d3476d106fc6d.js | 228 ++++++ webui/dist/bitmagnet/main.b9db37cab9a35084.js | 218 ------ webui/src/app/graphql/generated/index.ts | 25 +- .../app/paginator/paginator.component.html | 2 +- .../src/app/paginator/paginator.component.ts | 7 +- webui/src/app/search/torrent-content/facet.ts | 1 + .../torrent-content-search.engine.ts | 115 ++- .../torrent-content.component.html | 21 +- .../torrent-content.component.ts | 4 - webui/tsconfig.json | 6 +- 50 files changed, 1583 insertions(+), 1072 deletions(-) create mode 100644 internal/database/dao/budgeted_count.go create mode 100644 internal/database/dao/torrent_contents.go delete mode 100644 internal/database/search/warmer/config.go delete mode 100644 internal/database/search/warmer/factory.go delete mode 100644 internal/database/search/warmer/warmer.go create mode 100644 migrations/00010_budgeted_count.sql create mode 100644 migrations/00011_indexes.sql create mode 100644 webui/dist/bitmagnet/main.b93d3476d106fc6d.js delete mode 100644 webui/dist/bitmagnet/main.b9db37cab9a35084.js diff --git a/graphql/fragments/TorrentContentSearchResult.graphql b/graphql/fragments/TorrentContentSearchResult.graphql index cf357093..9f39c90c 100644 --- a/graphql/fragments/TorrentContentSearchResult.graphql +++ b/graphql/fragments/TorrentContentSearchResult.graphql @@ -5,52 +5,62 @@ fragment TorrentContentSearchResult on TorrentContentSearchResult { ...TorrentContent } totalCount + totalCountIsEstimate hasNextPage aggregations { contentType { value label count + isEstimate } torrentSource { value label count + isEstimate } torrentTag { value label count + isEstimate } torrentFileType { value label count + isEstimate } language { value label count + isEstimate } genre { value label count + isEstimate } releaseYear { value label count + isEstimate } videoResolution { value label count + isEstimate } videoSource { value label count + isEstimate } } } diff --git a/graphql/schema/search.graphqls b/graphql/schema/search.graphqls index 3ada8022..b6e6d26f 100644 --- a/graphql/schema/search.graphqls +++ b/graphql/schema/search.graphqls @@ -8,6 +8,7 @@ input SearchQueryInput { """ hasNextPage: Boolean cached: Boolean + aggregationBudget: Float } input ContentTypeFacetInput { @@ -75,54 +76,63 @@ type ContentTypeAgg { value: ContentType label: String! count: Int! + isEstimate: Boolean! } type TorrentSourceAgg { value: String! label: String! count: Int! + isEstimate: Boolean! } type TorrentTagAgg { value: String! label: String! count: Int! + isEstimate: Boolean! } type TorrentFileTypeAgg { value: FileType! label: String! count: Int! + isEstimate: Boolean! } type LanguageAgg { value: Language! label: String! count: Int! + isEstimate: Boolean! } type GenreAgg { value: String! label: String! count: Int! + isEstimate: Boolean! } type ReleaseYearAgg { value: Year label: String! count: Int! + isEstimate: Boolean! } type VideoResolutionAgg { value: VideoResolution label: String! count: Int! + isEstimate: Boolean! } type VideoSourceAgg { value: VideoSource label: String! count: Int! + isEstimate: Boolean! } type TorrentContentAggregations { @@ -139,6 +149,7 @@ type TorrentContentAggregations { type TorrentContentSearchResult { totalCount: Int! + totalCountIsEstimate: Boolean! """ hasNextPage is true if there are more results to fetch """ diff --git a/internal/database/cache/config.go b/internal/database/cache/config.go index ef5e54bb..4b4d0e3e 100644 --- a/internal/database/cache/config.go +++ b/internal/database/cache/config.go @@ -16,7 +16,7 @@ func NewDefaultConfig() Config { // if I can get time to understand the problem better I may open an issue in https://github.com/go-gorm/caches, though they // don't seem very responsive to issues, hence why bitmagnet uses a forked version of this library... EaserEnabled: false, - Ttl: time.Minute * 60, + Ttl: time.Minute * 10, MaxKeys: 1000, } } diff --git a/internal/database/dao/budgeted_count.go b/internal/database/dao/budgeted_count.go new file mode 100644 index 00000000..019a21b2 --- /dev/null +++ b/internal/database/dao/budgeted_count.go @@ -0,0 +1,24 @@ +package dao + +import ( + "gorm.io/gorm" +) + +func ToSQL(db *gorm.DB) string { + return db.ToSQL(func(tx *gorm.DB) *gorm.DB { + return tx.Find(&[]interface{}{}) + }) +} + +type BudgetedCountResult struct { + Count int64 + Cost float64 + BudgetExceeded bool +} + +func BudgetedCount(db *gorm.DB, budget float64) (BudgetedCountResult, error) { + row := db.Raw("SELECT count, cost, budget_exceeded from budgeted_count(?, ?)", ToSQL(db), budget).Row() + result := BudgetedCountResult{} + err := row.Scan(&result.Count, &result.Cost, &result.BudgetExceeded) + return result, err +} diff --git a/internal/database/dao/content.gen.go b/internal/database/dao/content.gen.go index cf584877..bdb8fe10 100644 --- a/internal/database/dao/content.gen.go +++ b/internal/database/dao/content.gen.go @@ -32,7 +32,7 @@ func newContent(db *gorm.DB, opts ...gen.DOOption) content { _content.ID = field.NewString(tableName, "id") _content.Title = field.NewString(tableName, "title") _content.ReleaseDate = field.NewTime(tableName, "release_date") - _content.ReleaseYear = field.NewField(tableName, "release_year") + _content.ReleaseYear = field.NewUint16(tableName, "release_year") _content.Adult = field.NewField(tableName, "adult") _content.OriginalLanguage = field.NewField(tableName, "original_language") _content.OriginalTitle = field.NewField(tableName, "original_title") @@ -86,7 +86,7 @@ type content struct { ID field.String Title field.String ReleaseDate field.Time - ReleaseYear field.Field + ReleaseYear field.Uint16 Adult field.Field OriginalLanguage field.Field OriginalTitle field.Field @@ -124,7 +124,7 @@ func (c *content) updateTableName(table string) *content { c.ID = field.NewString(table, "id") c.Title = field.NewString(table, "title") c.ReleaseDate = field.NewTime(table, "release_date") - c.ReleaseYear = field.NewField(table, "release_year") + c.ReleaseYear = field.NewUint16(table, "release_year") c.Adult = field.NewField(table, "adult") c.OriginalLanguage = field.NewField(table, "original_language") c.OriginalTitle = field.NewField(table, "original_title") diff --git a/internal/database/dao/torrent_contents.go b/internal/database/dao/torrent_contents.go new file mode 100644 index 00000000..ffdc5821 --- /dev/null +++ b/internal/database/dao/torrent_contents.go @@ -0,0 +1,15 @@ +package dao + +import ( + "fmt" + "gorm.io/gorm/callbacks" +) + +func (t torrentContent) CountEstimate() (int64, error) { + db := t.UnderlyingDB() + callbacks.BuildQuerySQL(db) + query := db.Statement.SQL.String() + args := db.Statement.Vars + fmt.Printf("query: %s, args: %v", query, args) + return 0, nil +} diff --git a/internal/database/databasefx/module.go b/internal/database/databasefx/module.go index 3c94b2b8..46f0c1de 100644 --- a/internal/database/databasefx/module.go +++ b/internal/database/databasefx/module.go @@ -9,7 +9,6 @@ import ( "github.com/bitmagnet-io/bitmagnet/internal/database/migrations" "github.com/bitmagnet-io/bitmagnet/internal/database/postgres" "github.com/bitmagnet-io/bitmagnet/internal/database/search" - "github.com/bitmagnet-io/bitmagnet/internal/database/search/warmer" "go.uber.org/fx" ) @@ -18,7 +17,6 @@ func New() fx.Option { "database", configfx.NewConfigModule[postgres.Config]("postgres", postgres.NewDefaultConfig()), configfx.NewConfigModule[cache.Config]("gorm_cache", cache.NewDefaultConfig()), - configfx.NewConfigModule[warmer.Config]("search_warmer", warmer.NewDefaultConfig()), fx.Provide( cache.NewInMemoryCacher, cache.NewPlugin, @@ -28,7 +26,6 @@ func New() fx.Option { migrations.New, postgres.New, search.New, - warmer.New, ), fx.Decorate( cache.NewDecorator, diff --git a/internal/database/gen/gen.go b/internal/database/gen/gen.go index 13024723..ed83c5fa 100644 --- a/internal/database/gen/gen.go +++ b/internal/database/gen/gen.go @@ -254,6 +254,7 @@ func BuildGenerator(db *gorm.DB) *gen.Generator { gen.FieldType("release_date", "Date"), gen.FieldGenType("release_date", "Time"), gen.FieldType("release_year", "Year"), + gen.FieldGenType("release_year", "Uint16"), gen.FieldType("original_language", "NullLanguage"), gen.FieldType("popularity", "NullFloat32"), gen.FieldType("vote_average", "NullFloat32"), diff --git a/internal/database/migrations/logger.go b/internal/database/migrations/logger.go index 9ba9a644..60530754 100644 --- a/internal/database/migrations/logger.go +++ b/internal/database/migrations/logger.go @@ -27,7 +27,7 @@ func (l gooseLogger) Println(v ...interface{}) { func (l gooseLogger) Printf(format string, v ...interface{}) { fn := l.l.Debugf - if strings.HasPrefix(format, "goose: successfully migrated") { + if strings.HasPrefix(format, "goose: successfully migrated") || strings.HasPrefix(format, "goose: no migrations to run") { fn = l.l.Infof } fn(strings.TrimSpace(format), v...) diff --git a/internal/database/migrations/migrator.go b/internal/database/migrations/migrator.go index 03b36dc9..6e043098 100644 --- a/internal/database/migrations/migrator.go +++ b/internal/database/migrations/migrator.go @@ -33,16 +33,18 @@ func New(p Params) Result { if err != nil { return nil, err } - initGoose(p.Logger) + logger := p.Logger.Named("migrator") + initGoose(logger) return &migrator{ - db: db, + db: db, + logger: logger, }, nil }), } } func initGoose(logger *zap.SugaredLogger) { - goose.SetLogger(gooseLogger{logger.Named("migrator")}) + goose.SetLogger(gooseLogger{logger}) goose.SetBaseFS(migrationssql.FS) err := goose.SetDialect("postgres") if err != nil { @@ -58,10 +60,12 @@ type Migrator interface { } type migrator struct { - db *sql.DB + db *sql.DB + logger *zap.SugaredLogger } func (m *migrator) Up(ctx context.Context) error { + m.logger.Info("checking and applying migrations...") return goose.UpContext(ctx, m.db, ".") } diff --git a/internal/database/query/facets.go b/internal/database/query/facets.go index bf88954b..b9264201 100644 --- a/internal/database/query/facets.go +++ b/internal/database/query/facets.go @@ -22,8 +22,8 @@ type FacetConfig interface { type Facet interface { FacetConfig - Aggregate(ctx FacetContext) (AggregationItems, error) - Criteria() []Criteria + Values(ctx FacetContext) (map[string]string, error) + Criteria(filter FacetFilter) []Criteria } type FacetFilter map[string]struct{} @@ -38,6 +38,11 @@ func (f FacetFilter) Values() []string { return values } +func (f FacetFilter) HasKey(key string) bool { + _, ok := f[key] + return ok +} + type facetConfig struct { key string label string @@ -58,8 +63,9 @@ func NewFacetConfig(options ...FacetOption) FacetConfig { } type AggregationItem struct { - Label string - Count uint + Label string + Count uint + IsEstimate bool } type AggregationItems = map[string]AggregationItem @@ -189,7 +195,7 @@ func (c facetConfig) Filter() FacetFilter { func (b optionBuilder) createFacetsFilterCriteria() (c Criteria, err error) { cs := make([]Criteria, 0, len(b.facets)) for _, facet := range b.facets { - cr := facet.Criteria() + cr := facet.Criteria(facet.Filter()) switch facet.Logic() { case model.FacetLogicAnd: cs = append(cs, AndCriteria{cr}) @@ -211,39 +217,90 @@ func withCurrentFacet(facetKey string) Option { func (b optionBuilder) calculateAggregations(ctx context.Context) (Aggregations, error) { aggregations := make(Aggregations, len(b.facets)) - wg := sync.WaitGroup{} - wg.Add(len(b.facets)) + wgOuter := sync.WaitGroup{} + wgOuter.Add(len(b.facets)) mtx := sync.Mutex{} var errs []error + addErr := func(err error) { + mtx.Lock() + defer mtx.Unlock() + errs = append(errs, err) + } + addAggregation := func(key string, aggregation AggregationGroup) { + mtx.Lock() + defer mtx.Unlock() + aggregations[key] = aggregation + } for _, facet := range b.facets { go (func(facet Facet) { - defer wg.Done() + defer wgOuter.Done() if !facet.IsAggregated() { return } - aggBuilder, aggBuilderErr := Options(facet.AggregationOption, withCurrentFacet(facet.Key()))(b) - if aggBuilderErr != nil { - errs = append(errs, fmt.Errorf("failed to create aggregation option for key '%s': %w", facet.Key(), aggBuilderErr)) + values, valuesErr := facet.Values(facetContext{ + optionBuilder: b, + ctx: ctx, + }) + if valuesErr != nil { + addErr(fmt.Errorf("failed to get values for key '%s': %w", facet.Key(), valuesErr)) return } - aggCtx := facetContext{ - optionBuilder: aggBuilder, - ctx: ctx, + filter := facet.Filter() + items := make(AggregationItems, len(values)) + addItem := func(key string, item AggregationItem) { + mtx.Lock() + defer mtx.Unlock() + items[key] = item } - aggregation, aggregateErr := facet.Aggregate(aggCtx) - mtx.Lock() - defer mtx.Unlock() - if aggregateErr != nil { - errs = append(errs, fmt.Errorf("failed to aggregate key '%s': %w", facet.Key(), aggregateErr)) - } else { - aggregations[facet.Key()] = AggregationGroup{ - Label: facet.Label(), - Logic: facet.Logic(), - Items: aggregation, - } + wgInner := sync.WaitGroup{} + wgInner.Add(len(values)) + for key, label := range values { + go func(key, label string) { + defer wgInner.Done() + criterias := facet.Criteria(FacetFilter{key: struct{}{}}) + var criteria Criteria + switch facet.Logic() { + case model.FacetLogicAnd: + criteria = AndCriteria{criterias} + case model.FacetLogicOr: + criteria = OrCriteria{criterias} + } + aggBuilder, aggBuilderErr := Options( + facet.AggregationOption, + withCurrentFacet(facet.Key()), + Where(criteria), + )(b) + if aggBuilderErr != nil { + addErr(fmt.Errorf("failed to create aggregation option for key '%s': %w", facet.Key(), aggBuilderErr)) + return + } + q := aggBuilder.NewSubQuery(ctx) + if preErr := aggBuilder.applyPre(q); preErr != nil { + addErr(fmt.Errorf("failed to apply pre for key '%s': %w", facet.Key(), preErr)) + return + } + countResult, countErr := dao.BudgetedCount(q.UnderlyingDB(), b.aggregationBudget) + if countErr != nil { + addErr(fmt.Errorf("failed to get count for key '%s': %w", facet.Key(), countErr)) + return + } + if countResult.Count > 0 || countResult.BudgetExceeded || filter.HasKey(key) { + addItem(key, AggregationItem{ + Label: label, + Count: uint(countResult.Count), + IsEstimate: countResult.BudgetExceeded, + }) + } + }(key, label) } + wgInner.Wait() + addAggregation(facet.Key(), AggregationGroup{ + Label: facet.Label(), + Logic: facet.Logic(), + Items: items, + }) })(facet) } - wg.Wait() + wgOuter.Wait() return aggregations, errors.Join(errs...) } diff --git a/internal/database/query/options.go b/internal/database/query/options.go index 7a91e897..b2a9f0c5 100644 --- a/internal/database/query/options.go +++ b/internal/database/query/options.go @@ -17,6 +17,7 @@ type Option = func(ctx OptionBuilder) (OptionBuilder, error) func DefaultOption() Option { return Options( Limit(10), + WithAggregationBudget(5_000), ) } @@ -183,6 +184,12 @@ func WithHasNextPage(bl bool) Option { } } +func WithAggregationBudget(budget float64) Option { + return func(ctx OptionBuilder) (OptionBuilder, error) { + return ctx.WithAggregationBudget(budget), nil + } +} + func Context(fn func(ctx context.Context) context.Context) Option { return func(b OptionBuilder) (OptionBuilder, error) { return b.Context(fn), nil diff --git a/internal/database/query/params.go b/internal/database/query/params.go index 61e093b4..5a9c511f 100644 --- a/internal/database/query/params.go +++ b/internal/database/query/params.go @@ -1,41 +1,45 @@ package query import ( - "github.com/bitmagnet-io/bitmagnet/internal/model" + "github.com/bitmagnet-io/bitmagnet/internal/model" ) type SearchParams struct { - QueryString model.NullString - Limit model.NullUint - Offset model.NullUint - TotalCount model.NullBool - HasNextPage model.NullBool - Cached model.NullBool + QueryString model.NullString + Limit model.NullUint + Offset model.NullUint + TotalCount model.NullBool + HasNextPage model.NullBool + Cached model.NullBool + AggregationBudget model.NullFloat64 } func (s SearchParams) Option() Option { - var options []Option - if s.QueryString.Valid { - options = append(options, QueryString(s.QueryString.String), OrderByQueryStringRank()) - } - if s.Limit.Valid { - options = append(options, Limit(s.Limit.Uint)) - } - if s.Offset.Valid { - options = append(options, Offset(s.Offset.Uint)) - } - if s.TotalCount.Valid { - options = append(options, WithTotalCount(s.TotalCount.Bool)) - } - if s.HasNextPage.Valid { - options = append(options, WithHasNextPage(s.HasNextPage.Bool)) - } - if s.Cached.Valid { - if s.Cached.Bool { - options = append(options, Cached()) - } else { - options = append(options, CacheWarm()) - } - } - return Options(options...) + var options []Option + if s.QueryString.Valid { + options = append(options, QueryString(s.QueryString.String), OrderByQueryStringRank()) + } + if s.Limit.Valid { + options = append(options, Limit(s.Limit.Uint)) + } + if s.Offset.Valid { + options = append(options, Offset(s.Offset.Uint)) + } + if s.TotalCount.Valid { + options = append(options, WithTotalCount(s.TotalCount.Bool)) + } + if s.HasNextPage.Valid { + options = append(options, WithHasNextPage(s.HasNextPage.Bool)) + } + if s.Cached.Valid { + if s.Cached.Bool { + options = append(options, Cached()) + } else { + options = append(options, CacheWarm()) + } + } + if s.AggregationBudget.Valid { + options = append(options, WithAggregationBudget(s.AggregationBudget.Float64)) + } + return Options(options...) } diff --git a/internal/database/query/query.go b/internal/database/query/query.go index fe4661e9..7db298e9 100644 --- a/internal/database/query/query.go +++ b/internal/database/query/query.go @@ -20,10 +20,11 @@ type ResultItem struct { } type GenericResult[T interface{}] struct { - TotalCount uint - HasNextPage bool - Items []T - Aggregations Aggregations + TotalCount uint + TotalCountIsEstimate bool + HasNextPage bool + Items []T + Aggregations Aggregations } type SubQueryFactory = func(context.Context, *dao.Query) SubQuery @@ -72,10 +73,11 @@ func GenericQuery[T interface{}]( addErr(sqErr) return } - if tc, countErr := sq.Count(); countErr != nil { + if countResult, countErr := dao.BudgetedCount(sq.UnderlyingDB(), builder.AggregationBudget()); countErr != nil { addErr(countErr) } else { - r.TotalCount = uint(tc) + r.TotalCount = uint(countResult.Count) + r.TotalCountIsEstimate = countResult.BudgetExceeded } } })() @@ -222,6 +224,8 @@ type OptionBuilder interface { calculateAggregations(context.Context) (Aggregations, error) WithTotalCount(bool) OptionBuilder WithHasNextPage(bool) OptionBuilder + WithAggregationBudget(float64) OptionBuilder + AggregationBudget() float64 withTotalCount() bool applyCallbacks(context.Context, any) error hasZeroLimit() bool @@ -233,21 +237,22 @@ type OptionBuilder interface { type optionBuilder struct { dbContext - joins map[string]TableJoin - requiredJoins maps.InsertMap[string, struct{}] - scopes []Scope - selections []clause.Expr - groupBy []clause.Column - orderBy []clause.OrderByColumn - limit model.NullUint - nextPage bool - offset uint - facets []Facet - currentFacet string - preloads []field.RelationField - totalCount bool - callbacks []Callback - contextFn func(context.Context) context.Context + joins map[string]TableJoin + requiredJoins maps.InsertMap[string, struct{}] + scopes []Scope + selections []clause.Expr + groupBy []clause.Column + orderBy []clause.OrderByColumn + limit model.NullUint + nextPage bool + offset uint + facets []Facet + currentFacet string + preloads []field.RelationField + totalCount bool + aggregationBudget float64 + callbacks []Callback + contextFn func(context.Context) context.Context } type RawJoin struct { @@ -385,6 +390,15 @@ func (b optionBuilder) hasNextPage(nItems int) bool { return nItems > int(b.limit.Uint) } +func (b optionBuilder) WithAggregationBudget(budget float64) OptionBuilder { + b.aggregationBudget = budget + return b +} + +func (b optionBuilder) AggregationBudget() float64 { + return b.aggregationBudget +} + func (b optionBuilder) withCurrentFacet(facet string) OptionBuilder { b.currentFacet = facet return b diff --git a/internal/database/search/facet_release_year.go b/internal/database/search/facet_release_year.go index 85dee9f7..41ac0856 100644 --- a/internal/database/search/facet_release_year.go +++ b/internal/database/search/facet_release_year.go @@ -1,9 +1,9 @@ package search import ( - "database/sql/driver" "fmt" "github.com/bitmagnet-io/bitmagnet/internal/database/query" + "github.com/bitmagnet-io/bitmagnet/internal/maps" "github.com/bitmagnet-io/bitmagnet/internal/model" "gorm.io/gen/field" "strconv" @@ -34,46 +34,12 @@ type yearFacet struct { field string } -func (r yearFacet) Aggregate(ctx query.FacetContext) (query.AggregationItems, error) { - var results []struct { - Year string - Count uint - } - q, qErr := ctx.NewAggregationQuery() - if qErr != nil { - return nil, qErr - } - if txErr := q.UnderlyingDB().Select( - fmt.Sprintf("%s.%s as year", ctx.TableName(), r.field), - "count(*) as count", - ).Group( - "year", - ).Find(&results).Error; txErr != nil { - return nil, txErr - } - agg := make(query.AggregationItems, len(results)) - for _, item := range results { - key := item.Year - label := item.Year - if key == "" { - key = "null" - label = "Unknown" - } - agg[key] = query.AggregationItem{ - Label: label, - Count: item.Count, - } - } - return agg, nil -} - -func (r yearFacet) Criteria() []query.Criteria { +func (r yearFacet) Criteria(filter query.FacetFilter) []query.Criteria { return []query.Criteria{ query.GenCriteria(func(ctx query.DbContext) (query.Criteria, error) { - filter := r.Filter().Values() years := make([]uint16, 0, len(filter)) hasNull := false - for _, v := range filter { + for _, v := range filter.Values() { if v == "null" { hasNull = true continue @@ -88,15 +54,18 @@ func (r yearFacet) Criteria() []query.Criteria { years = append(years, uint16(vInt)) } yearField := ctx.Query().Content.ReleaseYear + joins := maps.NewInsertMap(maps.MapEntry[string, struct{}]{Key: model.TableNameContent}) var or []query.Criteria if len(years) > 0 { or = append(or, query.RawCriteria{ Query: ctx.Query().Content.UnderlyingDB().Where(yearCondition(yearField, years...).RawExpr()), + Joins: joins, }) } if hasNull { or = append(or, query.RawCriteria{ Query: ctx.Query().Content.UnderlyingDB().Where(yearField.IsNull().RawExpr()), + Joins: joins, }) } return query.Or(or...), nil @@ -104,10 +73,24 @@ func (r yearFacet) Criteria() []query.Criteria { } } -func yearCondition(target field.Field, years ...uint16) field.Expr { - valuers := make([]driver.Valuer, 0, len(years)) - for _, year := range years { - valuers = append(valuers, model.NewNullUint16(year)) +func yearCondition(target field.Uint16, years ...uint16) field.Expr { + return target.In(years...) +} + +func (yearFacet) Values(ctx query.FacetContext) (map[string]string, error) { + q := ctx.Query().Content + var years []model.Year + err := q.WithContext(ctx.Context()).Where( + q.ReleaseYear.Gte(1000), + q.ReleaseYear.Lte(9999), + ).Distinct(q.ReleaseYear).Pluck(q.ReleaseYear, &years) + if err != nil { + return nil, err + } + values := make(map[string]string, len(years)+1) + values["null"] = "Unknown" + for _, y := range years { + values[y.String()] = y.String() } - return target.In(valuers...) + return values, nil } diff --git a/internal/database/search/facet_torrent_content_attribute.go b/internal/database/search/facet_torrent_content_attribute.go index a7e1cffe..db6452e7 100644 --- a/internal/database/search/facet_torrent_content_attribute.go +++ b/internal/database/search/facet_torrent_content_attribute.go @@ -22,51 +22,17 @@ type attribute interface { Label() string } -func (f torrentContentAttributeFacet[T]) Aggregate(ctx query.FacetContext) (query.AggregationItems, error) { - var results []struct { - Value *T - Count uint - } - q, qErr := ctx.NewAggregationQuery() - if qErr != nil { - return nil, qErr - } - fld := f.field(ctx.Query()) - if err := q.UnderlyingDB().Select( - ctx.TableName()+"."+string(fld.ColumnName())+" as value", - "count(*) as count", - ).Group( - "value", - ).Find(&results).Error; err != nil { - return nil, fmt.Errorf("failed to aggregate: %w", err) - } - agg := make(query.AggregationItems, len(results)) - for _, item := range results { - var key, label string - if item.Value == nil { - key = "null" - label = "Unknown" - } else { - vV := *item.Value - key = vV.String() - label = vV.Label() - } - agg[key] = query.AggregationItem{ - Label: label, - Count: item.Count, - } - } - return agg, nil +func (torrentContentAttributeFacet[T]) Values(query.FacetContext) (map[string]string, error) { + return map[string]string{}, nil } -func (f torrentContentAttributeFacet[T]) Criteria() []query.Criteria { +func (f torrentContentAttributeFacet[T]) Criteria(filter query.FacetFilter) []query.Criteria { return []query.Criteria{ query.GenCriteria(func(ctx query.DbContext) (query.Criteria, error) { fld := f.field(ctx.Query()) - filter := f.Filter().Values() values := make([]driver.Valuer, 0, len(filter)) hasNull := false - for _, v := range filter { + for _, v := range filter.Values() { if v == "null" { hasNull = true continue diff --git a/internal/database/search/facet_torrent_content_collection.go b/internal/database/search/facet_torrent_content_collection.go index c999f7b7..8ce98e27 100644 --- a/internal/database/search/facet_torrent_content_collection.go +++ b/internal/database/search/facet_torrent_content_collection.go @@ -1,74 +1,34 @@ package search import ( - "github.com/bitmagnet-io/bitmagnet/internal/database/dao" "github.com/bitmagnet-io/bitmagnet/internal/database/query" "github.com/bitmagnet-io/bitmagnet/internal/model" - "gorm.io/gen/field" "strings" ) -type contentCollectionFacet struct { +type torrentContentCollectionFacet struct { query.FacetConfig collectionType string } -func (r contentCollectionFacet) Aggregate(ctx query.FacetContext) (items query.AggregationItems, err error) { - var results []struct { - ConcatId string - Name string - Count uint +func (f torrentContentCollectionFacet) Values(ctx query.FacetContext) (map[string]string, error) { + q := ctx.Query().ContentCollection + colls, err := ctx.Query().ContentCollection.WithContext(ctx.Context()).Where( + q.Type.Eq(f.collectionType), + ).Find() + if err != nil { + return nil, err } - sq, sqErr := ctx.NewAggregationQuery( - query.Table(model.TableNameContentCollectionContent), - query.Join(func(q *dao.Query) []query.TableJoin { - return []query.TableJoin{ - { - Table: q.TorrentContent, - On: []field.Expr{ - q.TorrentContent.ContentType.EqCol(q.ContentCollectionContent.ContentType), - q.TorrentContent.ContentSource.EqCol(q.ContentCollectionContent.ContentSource), - q.TorrentContent.ContentID.EqCol(q.ContentCollectionContent.ContentID), - }, - Type: query.TableJoinTypeInner, - }, - } - }), - query.RequireJoin(model.TableNameContentCollection), - query.Where(query.RawCriteria{ - Query: "content_collections_content.content_collection_type = ?", - Args: []interface{}{r.collectionType}, - }), - ) - if sqErr != nil { - err = sqErr - return - } - tx := sq.UnderlyingDB().Select( - "(content_collections_content.content_collection_source || ':' ||content_collections_content.content_collection_id) as concat_id", - "MIN(content_collections.name) as name", - "count(distinct(content_collections_content.content_source, content_collections_content.content_id)) as count", - ).Group( - "concat_id", - ).Find(&results) - if tx.Error != nil { - err = tx.Error - return - } - agg := make(query.AggregationItems, len(results)) - for _, item := range results { - agg[item.ConcatId] = query.AggregationItem{ - Label: item.Name, - Count: item.Count, - } + values := make(map[string]string, len(colls)) + for _, coll := range colls { + values[coll.Source+":"+coll.ID] = coll.Name } - return agg, nil + return values, nil } -func (r contentCollectionFacet) Criteria() []query.Criteria { +func (f torrentContentCollectionFacet) Criteria(filter query.FacetFilter) []query.Criteria { sourceMap := make(map[string]map[string]struct{}) - filter := r.Filter().Values() - for _, value := range filter { + for _, value := range filter.Values() { parts := strings.Split(value, ":") if len(parts) != 2 { continue @@ -84,12 +44,12 @@ func (r contentCollectionFacet) Criteria() []query.Criteria { refs := make([]model.ContentCollectionRef, 0, len(idMap)) for id := range idMap { refs = append(refs, model.ContentCollectionRef{ - Type: r.collectionType, + Type: f.collectionType, Source: source, ID: id, }) } - switch r.Logic() { + switch f.Logic() { case model.FacetLogicOr: criteria = append(criteria, ContentCollectionCriteria(refs...)) case model.FacetLogicAnd: diff --git a/internal/database/search/facet_torrent_content_genre.go b/internal/database/search/facet_torrent_content_genre.go index 5b3a23ac..55ca9525 100644 --- a/internal/database/search/facet_torrent_content_genre.go +++ b/internal/database/search/facet_torrent_content_genre.go @@ -8,7 +8,7 @@ import ( const ContentGenreFacetKey = "content_genre" func TorrentContentGenreFacet(options ...query.FacetOption) query.Facet { - return contentCollectionFacet{ + return torrentContentCollectionFacet{ FacetConfig: query.NewFacetConfig( append([]query.FacetOption{ query.FacetHasKey(ContentGenreFacetKey), diff --git a/internal/database/search/facet_torrent_content_language.go b/internal/database/search/facet_torrent_content_language.go index 245e176f..ff31f53d 100644 --- a/internal/database/search/facet_torrent_content_language.go +++ b/internal/database/search/facet_torrent_content_language.go @@ -26,40 +26,20 @@ type torrentContentLanguageFacet struct { query.FacetConfig } -func (f torrentContentLanguageFacet) Aggregate(ctx query.FacetContext) (query.AggregationItems, error) { - var results []struct { - Language model.Language - Count uint +func (torrentContentLanguageFacet) Values(query.FacetContext) (map[string]string, error) { + languageValues := model.LanguageValues() + values := make(map[string]string, len(languageValues)) + for _, l := range languageValues { + values[l.Id()] = l.Name() } - q, qErr := ctx.NewAggregationQuery() - if qErr != nil { - return nil, qErr - } - tx := q.UnderlyingDB().Select( - "jsonb_array_elements(torrent_contents.languages) as language", - "count(*) as count", - ).Group( - "language", - ).Find(&results) - if tx.Error != nil { - return nil, fmt.Errorf("failed to aggregate languages: %w", tx.Error) - } - agg := make(query.AggregationItems, len(results)) - for _, item := range results { - agg[item.Language.Id()] = query.AggregationItem{ - Label: item.Language.Name(), - Count: item.Count, - } - } - return agg, nil + return values, nil } -func (f torrentContentLanguageFacet) Criteria() []query.Criteria { +func (f torrentContentLanguageFacet) Criteria(filter query.FacetFilter) []query.Criteria { return []query.Criteria{ query.GenCriteria(func(ctx query.DbContext) (query.Criteria, error) { - filter := f.Filter().Values() langs := make([]model.Language, 0, len(filter)) - for _, v := range filter { + for _, v := range filter.Values() { lang := model.ParseLanguage(v) if !lang.Valid { return nil, errors.New("invalid language filter specified") diff --git a/internal/database/search/facet_torrent_content_type.go b/internal/database/search/facet_torrent_content_type.go index f70f29ec..37d4bd88 100644 --- a/internal/database/search/facet_torrent_content_type.go +++ b/internal/database/search/facet_torrent_content_type.go @@ -10,17 +10,32 @@ import ( const TorrentContentTypeFacetKey = "content_type" func TorrentContentTypeFacet(options ...query.FacetOption) query.Facet { - return torrentContentAttributeFacet[model.ContentType]{ - FacetConfig: query.NewFacetConfig( - append([]query.FacetOption{ - query.FacetHasKey(TorrentContentTypeFacetKey), - query.FacetHasLabel("Content Type"), - query.FacetUsesOrLogic(), - }, options...)..., - ), - field: func(q *dao.Query) field.Field { - return field.Field(q.TorrentContent.ContentType) + return torrentContentTypeFacet{ + torrentContentAttributeFacet[model.ContentType]{ + FacetConfig: query.NewFacetConfig( + append([]query.FacetOption{ + query.FacetHasKey(TorrentContentTypeFacetKey), + query.FacetHasLabel("Content Type"), + query.FacetUsesOrLogic(), + }, options...)..., + ), + field: func(q *dao.Query) field.Field { + return field.Field(q.TorrentContent.ContentType) + }, + parse: model.ParseContentType, }, - parse: model.ParseContentType, } } + +type torrentContentTypeFacet struct { + torrentContentAttributeFacet[model.ContentType] +} + +func (f torrentContentTypeFacet) Values(query.FacetContext) (map[string]string, error) { + values := make(map[string]string) + values["null"] = "Unknown" + for _, contentType := range model.ContentTypeValues() { + values[string(contentType)] = contentType.Label() + } + return values, nil +} diff --git a/internal/database/search/facet_torrent_content_video_3d.go b/internal/database/search/facet_torrent_content_video_3d.go index 5dd984bb..507edeeb 100644 --- a/internal/database/search/facet_torrent_content_video_3d.go +++ b/internal/database/search/facet_torrent_content_video_3d.go @@ -14,7 +14,7 @@ func video3dField(q *dao.Query) field.Field { } func Video3dFacet(options ...query.FacetOption) query.Facet { - return torrentContentAttributeFacet[model.Video3d]{ + return video3dFacet{torrentContentAttributeFacet[model.Video3d]{ FacetConfig: query.NewFacetConfig( append([]query.FacetOption{ query.FacetHasKey(Video3dFacetKey), @@ -24,5 +24,18 @@ func Video3dFacet(options ...query.FacetOption) query.Facet { ), field: video3dField, parse: model.ParseVideo3d, + }} +} + +type video3dFacet struct { + torrentContentAttributeFacet[model.Video3d] +} + +func (f video3dFacet) Values(query.FacetContext) (map[string]string, error) { + v3ds := model.Video3dValues() + values := make(map[string]string, len(v3ds)) + for _, vr := range v3ds { + values[vr.String()] = vr.Label() } + return values, nil } diff --git a/internal/database/search/facet_torrent_content_video_codec.go b/internal/database/search/facet_torrent_content_video_codec.go index b1319ddf..59209527 100644 --- a/internal/database/search/facet_torrent_content_video_codec.go +++ b/internal/database/search/facet_torrent_content_video_codec.go @@ -10,7 +10,7 @@ import ( const VideoCodecFacetKey = "video_codec" func VideoCodecFacet(options ...query.FacetOption) query.Facet { - return torrentContentAttributeFacet[model.VideoCodec]{ + return videoCodecFacet{torrentContentAttributeFacet[model.VideoCodec]{ FacetConfig: query.NewFacetConfig( append([]query.FacetOption{ query.FacetHasKey(VideoCodecFacetKey), @@ -22,5 +22,18 @@ func VideoCodecFacet(options ...query.FacetOption) query.Facet { return q.TorrentContent.VideoCodec }, parse: model.ParseVideoCodec, + }} +} + +type videoCodecFacet struct { + torrentContentAttributeFacet[model.VideoCodec] +} + +func (f videoCodecFacet) Values(query.FacetContext) (map[string]string, error) { + vcs := model.VideoCodecValues() + values := make(map[string]string, len(vcs)) + for _, vr := range vcs { + values[vr.String()] = vr.Label() } + return values, nil } diff --git a/internal/database/search/facet_torrent_content_video_modifier.go b/internal/database/search/facet_torrent_content_video_modifier.go index 029a56b5..47ce51d4 100644 --- a/internal/database/search/facet_torrent_content_video_modifier.go +++ b/internal/database/search/facet_torrent_content_video_modifier.go @@ -10,7 +10,7 @@ import ( const VideoModifierFacetKey = "video_modifier" func VideoModifierFacet(options ...query.FacetOption) query.Facet { - return torrentContentAttributeFacet[model.VideoModifier]{ + return videoModifierFacet{torrentContentAttributeFacet[model.VideoModifier]{ FacetConfig: query.NewFacetConfig( append([]query.FacetOption{ query.FacetHasKey(VideoModifierFacetKey), @@ -22,5 +22,18 @@ func VideoModifierFacet(options ...query.FacetOption) query.Facet { return q.TorrentContent.VideoModifier }, parse: model.ParseVideoModifier, + }} +} + +type videoModifierFacet struct { + torrentContentAttributeFacet[model.VideoModifier] +} + +func (f videoModifierFacet) Values(query.FacetContext) (map[string]string, error) { + vms := model.VideoModifierValues() + values := make(map[string]string, len(vms)) + for _, vr := range vms { + values[vr.String()] = vr.Label() } + return values, nil } diff --git a/internal/database/search/facet_torrent_content_video_resolution.go b/internal/database/search/facet_torrent_content_video_resolution.go index 7433e470..8f0d166b 100644 --- a/internal/database/search/facet_torrent_content_video_resolution.go +++ b/internal/database/search/facet_torrent_content_video_resolution.go @@ -14,7 +14,7 @@ func videoResolutionField(q *dao.Query) field.Field { } func VideoResolutionFacet(options ...query.FacetOption) query.Facet { - return torrentContentAttributeFacet[model.VideoResolution]{ + return videoResolutionFacet{torrentContentAttributeFacet[model.VideoResolution]{ FacetConfig: query.NewFacetConfig( append([]query.FacetOption{ query.FacetHasKey(VideoResolutionFacetKey), @@ -24,5 +24,18 @@ func VideoResolutionFacet(options ...query.FacetOption) query.Facet { ), field: videoResolutionField, parse: model.ParseVideoResolution, + }} +} + +type videoResolutionFacet struct { + torrentContentAttributeFacet[model.VideoResolution] +} + +func (f videoResolutionFacet) Values(query.FacetContext) (map[string]string, error) { + vrs := model.VideoResolutionValues() + values := make(map[string]string, len(vrs)) + for _, vr := range vrs { + values[vr.String()] = vr.Label() } + return values, nil } diff --git a/internal/database/search/facet_torrent_content_video_source.go b/internal/database/search/facet_torrent_content_video_source.go index 638205aa..119b7655 100644 --- a/internal/database/search/facet_torrent_content_video_source.go +++ b/internal/database/search/facet_torrent_content_video_source.go @@ -10,7 +10,7 @@ import ( const VideoSourceFacetKey = "video_source" func VideoSourceFacet(options ...query.FacetOption) query.Facet { - return torrentContentAttributeFacet[model.VideoSource]{ + return videoSourceFacet{torrentContentAttributeFacet[model.VideoSource]{ FacetConfig: query.NewFacetConfig( append([]query.FacetOption{ query.FacetHasKey(VideoSourceFacetKey), @@ -22,5 +22,18 @@ func VideoSourceFacet(options ...query.FacetOption) query.Facet { return q.TorrentContent.VideoSource }, parse: model.ParseVideoSource, + }} +} + +type videoSourceFacet struct { + torrentContentAttributeFacet[model.VideoSource] +} + +func (f videoSourceFacet) Values(query.FacetContext) (map[string]string, error) { + vsrcs := model.VideoSourceValues() + values := make(map[string]string, len(vsrcs)) + for _, vr := range vsrcs { + values[vr.String()] = vr.Label() } + return values, nil } diff --git a/internal/database/search/facet_torrent_file_type.go b/internal/database/search/facet_torrent_file_type.go index fcb128eb..0531dda2 100644 --- a/internal/database/search/facet_torrent_file_type.go +++ b/internal/database/search/facet_torrent_file_type.go @@ -2,12 +2,8 @@ package search import ( "errors" - "github.com/bitmagnet-io/bitmagnet/internal/database/dao" "github.com/bitmagnet-io/bitmagnet/internal/database/query" "github.com/bitmagnet-io/bitmagnet/internal/model" - "gorm.io/gen/field" - "strings" - "sync" ) const TorrentFileTypeFacetKey = "file_type" @@ -29,126 +25,22 @@ type torrentFileTypeFacet struct { query.FacetConfig } -func (f torrentFileTypeFacet) Aggregate(ctx query.FacetContext) (query.AggregationItems, error) { - type result struct { - FileType model.FileType - Count uint +func (torrentFileTypeFacet) Values(query.FacetContext) (map[string]string, error) { + fts := model.FileTypeValues() + values := make(map[string]string, len(fts)) + for _, vr := range fts { + values[vr.String()] = vr.Label() } - var allExts []string - ftFieldTemplate := "case " - for _, ft := range model.FileTypeValues() { - exts := ft.Extensions() - allExts = append(allExts, exts...) - ftFieldTemplate += "when {table}.extension in " + makeStringList(exts...) + " then '" + ft.String() + "' " - } - ftFieldTemplate += "end as file_type" - var fileResults []result - var torrentResults []result - var errs []error - // we need to gather aggregations from both the torrent_files table and the torrents table (for the case when the torrent is a single file) - wg := sync.WaitGroup{} - wg.Add(2) - go func() { - defer wg.Done() - q, qErr := ctx.NewAggregationQuery( - query.Table(model.TableNameTorrentFile), - query.Join(func(q *dao.Query) []query.TableJoin { - return []query.TableJoin{ - { - Table: q.TorrentContent, - On: []field.Expr{ - q.TorrentContent.InfoHash.EqCol(q.TorrentFile.InfoHash), - }, - Type: query.TableJoinTypeInner, - }, - } - }), - ) - if qErr != nil { - errs = append(errs, qErr) - return - } - if err := q.UnderlyingDB().Select( - strings.Replace(ftFieldTemplate, "{table}", "torrent_files", -1), - "count(distinct(torrent_files.info_hash)) as count", - ).Where("torrent_files.extension in " + makeStringList(allExts...)).Group( - "file_type", - ).Find(&fileResults).Error; err != nil { - errs = append(errs, err) - } - }() - go func() { - defer wg.Done() - q, qErr := ctx.NewAggregationQuery( - query.Table(model.TableNameTorrent), - query.Join(func(q *dao.Query) []query.TableJoin { - return []query.TableJoin{ - { - Table: q.TorrentContent, - On: []field.Expr{ - q.TorrentContent.InfoHash.EqCol(q.Torrent.InfoHash), - }, - Type: query.TableJoinTypeInner, - }, - } - }), - ) - if qErr != nil { - errs = append(errs, qErr) - return - } - if err := q.UnderlyingDB().Select( - strings.Replace(ftFieldTemplate, "{table}", "torrents", -1), - "count(*) as count", - ).Where("torrents.extension in " + makeStringList(allExts...)).Group( - "file_type", - ).Find(&torrentResults).Error; err != nil { - errs = append(errs, err) - } - }() - wg.Wait() - if len(errs) > 0 { - return nil, errors.Join(errs...) - } - allResults := make([]result, 0, len(fileResults)+len(torrentResults)) - allResults = append(allResults, fileResults...) - allResults = append(allResults, torrentResults...) - agg := make(query.AggregationItems, len(allResults)) - for _, item := range allResults { - key := item.FileType.String() - if existing, ok := agg[key]; !ok { - agg[key] = query.AggregationItem{ - Label: item.FileType.Label(), - Count: item.Count, - } - } else { - existing.Count += item.Count - agg[key] = existing - } - } - return agg, nil -} - -func makeStringList(values ...string) string { - strs := "(" - for i, ext := range values { - if i > 0 { - strs += "," - } - strs += "'" + ext + "'" - } - strs += ")" - return strs + return values, nil } -func (f torrentFileTypeFacet) Criteria() []query.Criteria { +func (f torrentFileTypeFacet) Criteria(filter query.FacetFilter) []query.Criteria { return []query.Criteria{query.GenCriteria(func(ctx query.DbContext) (query.Criteria, error) { - filter := f.Filter().Values() if len(filter) == 0 { return query.AndCriteria{}, nil } fileTypes := make([]model.FileType, 0, len(filter)) - for _, v := range filter { + for _, v := range filter.Values() { ft, ftErr := model.ParseFileType(v) if ftErr != nil { return nil, errors.New("invalid file type filter specified") diff --git a/internal/database/search/facet_torrent_source.go b/internal/database/search/facet_torrent_source.go index 4e16ccb9..13fbf095 100644 --- a/internal/database/search/facet_torrent_source.go +++ b/internal/database/search/facet_torrent_source.go @@ -1,12 +1,8 @@ package search import ( - "fmt" - "github.com/bitmagnet-io/bitmagnet/internal/database/dao" "github.com/bitmagnet-io/bitmagnet/internal/database/query" - "github.com/bitmagnet-io/bitmagnet/internal/model" "gorm.io/gen" - "gorm.io/gen/field" ) const TorrentSourceFacetKey = "torrent_source" @@ -27,74 +23,25 @@ type torrentSourceFacet struct { query.FacetConfig } -func (f torrentSourceFacet) Aggregate(ctx query.FacetContext) (query.AggregationItems, error) { - var results []struct { - Value string - Count uint +func (torrentSourceFacet) Values(ctx query.FacetContext) (map[string]string, error) { + q := ctx.Query().TorrentSource + sources, sourcesErr := q.WithContext(ctx.Context()).Find() + if sourcesErr != nil { + return nil, sourcesErr } - q, qErr := ctx.NewAggregationQuery( - query.Table(model.TableNameTorrentsTorrentSource), - query.Join(func(daoQ *dao.Query) []query.TableJoin { - return []query.TableJoin{ - { - Table: daoQ.Torrent, - On: []field.Expr{ - daoQ.Torrent.InfoHash.EqCol(daoQ.TorrentsTorrentSource.InfoHash), - }, - Type: query.TableJoinTypeInner, - }, - { - Table: daoQ.TorrentContent, - On: []field.Expr{ - daoQ.TorrentContent.InfoHash.EqCol(daoQ.TorrentsTorrentSource.InfoHash), - }, - Type: query.TableJoinTypeInner, - }, - } - }), - ) - if qErr != nil { - return nil, qErr + values := make(map[string]string, len(sources)) + for _, s := range sources { + values[s.Key] = s.Name } - if err := q.UnderlyingDB().Select( - fmt.Sprintf("%s.source as value", model.TableNameTorrentsTorrentSource), - "count(*) as count", - ).Group( - "value", - ).Find(&results).Error; err != nil { - return nil, err - } - agg := make(query.AggregationItems, len(results)) - var values []string - for _, item := range results { - agg[item.Value] = query.AggregationItem{ - Count: item.Count, - } - values = append(values, item.Value) - } - if len(values) > 0 { - sources, sourcesErr := ctx.Query().TorrentSource.WithContext(ctx.Context()).Where( - ctx.Query().TorrentSource.Key.In(values...), - ).Find() - if sourcesErr != nil { - return nil, sourcesErr - } - for _, source := range sources { - thisAgg := agg[source.Key] - thisAgg.Label = source.Name - agg[source.Key] = thisAgg - } - } - return agg, nil + return values, nil } -func (f torrentSourceFacet) Criteria() []query.Criteria { - filter := f.Filter().Values() +func (f torrentSourceFacet) Criteria(filter query.FacetFilter) []query.Criteria { if len(filter) == 0 { return []query.Criteria{} } return []query.Criteria{ - TorrentSourceCriteria(filter...), + TorrentSourceCriteria(filter.Values()...), } } diff --git a/internal/database/search/facet_torrent_tag.go b/internal/database/search/facet_torrent_tag.go index 172970fc..a26d17dc 100644 --- a/internal/database/search/facet_torrent_tag.go +++ b/internal/database/search/facet_torrent_tag.go @@ -1,11 +1,8 @@ package search import ( - "fmt" - "github.com/bitmagnet-io/bitmagnet/internal/database/dao" "github.com/bitmagnet-io/bitmagnet/internal/database/query" "github.com/bitmagnet-io/bitmagnet/internal/model" - "gorm.io/gen/field" ) const TorrentTagFacetKey = "torrent_tag" @@ -27,64 +24,22 @@ type torrentTagFacet struct { query.FacetConfig } -func (f torrentTagFacet) Aggregate(ctx query.FacetContext) (query.AggregationItems, error) { - var results []struct { - Value string - Count uint +func (torrentTagFacet) Values(ctx query.FacetContext) (map[string]string, error) { + q := ctx.Query().TorrentTag + tags, tagsErr := q.WithContext(ctx.Context()).Distinct(q.Name).Find() + if tagsErr != nil { + return nil, tagsErr } - q, qErr := ctx.NewAggregationQuery( - query.Table(model.TableNameTorrentTag), - query.Join(func(daoQ *dao.Query) []query.TableJoin { - return []query.TableJoin{ - { - Table: daoQ.TorrentContent, - On: []field.Expr{ - daoQ.TorrentContent.InfoHash.EqCol(daoQ.TorrentTag.InfoHash), - }, - Type: query.TableJoinTypeInner, - }, - } - }), - ) - if qErr != nil { - return nil, qErr + values := make(map[string]string, len(tags)) + for _, tag := range tags { + values[tag.Name] = tag.Name } - if err := q.UnderlyingDB().Select( - fmt.Sprintf("%s.name as value", model.TableNameTorrentTag), - "count(*) as count", - ).Group( - "value", - ).Find(&results).Error; err != nil { - return nil, err - } - agg := make(query.AggregationItems, len(results)) - var values []string - for _, item := range results { - agg[item.Value] = query.AggregationItem{ - Count: item.Count, - } - values = append(values, item.Value) - } - if len(values) > 0 { - tags, tagsErr := ctx.Query().TorrentTag.WithContext(ctx.Context()).Where( - ctx.Query().TorrentTag.Name.In(values...), - ).Find() - if tagsErr != nil { - return nil, tagsErr - } - for _, tag := range tags { - thisAgg := agg[tag.Name] - thisAgg.Label = tag.Name - agg[tag.Name] = thisAgg - } - } - return agg, nil + return values, nil } -func (f torrentTagFacet) Criteria() []query.Criteria { - filter := f.Filter().Values() +func (f torrentTagFacet) Criteria(filter query.FacetFilter) []query.Criteria { criteria := make([]query.Criteria, len(filter)) - for i, tag := range filter { + for i, tag := range filter.Values() { criteria[i] = TorrentTagCriteria(tag) } return criteria diff --git a/internal/database/search/warmer/config.go b/internal/database/search/warmer/config.go deleted file mode 100644 index 935de99e..00000000 --- a/internal/database/search/warmer/config.go +++ /dev/null @@ -1,15 +0,0 @@ -package warmer - -import "time" - -type Config struct { - Enabled bool - Interval time.Duration -} - -func NewDefaultConfig() Config { - return Config{ - Enabled: true, - Interval: 50 * time.Minute, - } -} diff --git a/internal/database/search/warmer/factory.go b/internal/database/search/warmer/factory.go deleted file mode 100644 index 0123cb88..00000000 --- a/internal/database/search/warmer/factory.go +++ /dev/null @@ -1,55 +0,0 @@ -package warmer - -import ( - "context" - "github.com/bitmagnet-io/bitmagnet/internal/boilerplate/lazy" - "github.com/bitmagnet-io/bitmagnet/internal/boilerplate/worker" - "github.com/bitmagnet-io/bitmagnet/internal/database/search" - "go.uber.org/fx" - "go.uber.org/zap" -) - -type DecoratorParams struct { - fx.In - Config Config - Search lazy.Lazy[search.Search] - Logger *zap.SugaredLogger -} - -type DecoratorResult struct { - fx.Out - Decorator worker.Decorator `group:"worker_decorators"` -} - -func New(params DecoratorParams) DecoratorResult { - var w warmer - return DecoratorResult{ - Decorator: worker.Decorator{ - Key: "http_server", - Decorate: func(hook fx.Hook) fx.Hook { - return fx.Hook{ - OnStart: func(ctx context.Context) error { - s, err := params.Search.Get() - if err != nil { - return err - } - w = warmer{ - stopped: make(chan struct{}), - interval: params.Config.Interval, - search: s, - logger: params.Logger.Named("search_warmer"), - } - go w.start() - return hook.OnStart(ctx) - }, - OnStop: func(ctx context.Context) error { - if w.stopped != nil { - close(w.stopped) - } - return hook.OnStop(ctx) - }, - } - }, - }, - } -} diff --git a/internal/database/search/warmer/warmer.go b/internal/database/search/warmer/warmer.go deleted file mode 100644 index 563d59f5..00000000 --- a/internal/database/search/warmer/warmer.go +++ /dev/null @@ -1,95 +0,0 @@ -package warmer - -import ( - "context" - "github.com/bitmagnet-io/bitmagnet/internal/database/query" - "github.com/bitmagnet-io/bitmagnet/internal/database/search" - "github.com/bitmagnet-io/bitmagnet/internal/maps" - "github.com/bitmagnet-io/bitmagnet/internal/model" - "go.uber.org/zap" - "time" -) - -type warmer struct { - stopped chan struct{} - interval time.Duration - search search.Search - logger *zap.SugaredLogger -} - -func (w warmer) start() { - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - ticker := time.NewTicker(w.interval) - go func() { - for { - warmed := make(chan struct{}) - go func() { - w.warm(ctx) - close(warmed) - }() - // wait for warming to complete - select { - case <-ctx.Done(): - return - case <-warmed: - } - // then wait for the next tick - select { - case <-ctx.Done(): - return - case <-ticker.C: - } - } - }() - <-w.stopped -} - -func (w warmer) warm(ctx context.Context) { - for _, e := range warmers.Entries() { - w.logger.Debugw("warming", "warmer", e.Key) - if _, err := w.search.TorrentContent( - ctx, - query.Limit(0), - search.TorrentContentCoreJoins(), - e.Value, - query.CacheWarm(), - ); err != nil { - w.logger.Errorw("error warming", "warmer", e.Key, "error", err) - } - } -} - -var warmers = maps.NewInsertMap[string, query.Option]() - -func init() { - - facets := maps.NewInsertMap[string, func(options ...query.FacetOption) query.Facet]() - facets.Set(search.TorrentContentTypeFacetKey, search.TorrentContentTypeFacet) - facets.Set(search.ContentGenreFacetKey, search.TorrentContentGenreFacet) - facets.Set(search.LanguageFacetKey, search.TorrentContentLanguageFacet) - facets.Set(search.Video3dFacetKey, search.Video3dFacet) - facets.Set(search.VideoCodecFacetKey, search.VideoCodecFacet) - facets.Set(search.VideoModifierFacetKey, search.VideoModifierFacet) - facets.Set(search.VideoResolutionFacetKey, search.VideoResolutionFacet) - facets.Set(search.VideoSourceFacetKey, search.VideoSourceFacet) - facets.Set(search.TorrentFileTypeFacetKey, search.TorrentFileTypeFacet) - facets.Set(search.TorrentSourceFacetKey, search.TorrentSourceFacet) - facets.Set(search.TorrentTagFacetKey, search.TorrentTagsFacet) - - // All the top-level facets should be warmed: - for _, f := range facets.Entries() { - warmers.Set("aggs:"+f.Key, query.WithFacet( - f.Value(query.FacetIsAggregated()), - )) - } - // All the top-level facets within each content type should be warmed: - for _, ct := range model.ContentTypeValues() { - for _, f := range facets.Entries()[1:] { - warmers.Set("aggs:"+ct.String()+"/"+f.Key, query.Options(query.WithFacet( - search.TorrentContentTypeFacet(query.FacetHasFilter(query.FacetFilter{ - ct.String(): struct{}{}, - }))), query.WithFacet(f.Value(query.FacetIsAggregated())))) - } - } -} diff --git a/internal/gql/gql.gen.go b/internal/gql/gql.gen.go index 4fec8bf6..29c6ca25 100644 --- a/internal/gql/gql.gen.go +++ b/internal/gql/gql.gen.go @@ -98,9 +98,10 @@ type ComplexityRoot struct { } ContentTypeAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } Episodes struct { @@ -114,15 +115,17 @@ type ComplexityRoot struct { } GenreAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } LanguageAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } LanguageInfo struct { @@ -145,9 +148,10 @@ type ComplexityRoot struct { } ReleaseYearAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } Season struct { @@ -219,10 +223,11 @@ type ComplexityRoot struct { } TorrentContentSearchResult struct { - Aggregations func(childComplexity int) int - HasNextPage func(childComplexity int) int - Items func(childComplexity int) int - TotalCount func(childComplexity int) int + Aggregations func(childComplexity int) int + HasNextPage func(childComplexity int) int + Items func(childComplexity int) int + TotalCount func(childComplexity int) int + TotalCountIsEstimate func(childComplexity int) int } TorrentFile struct { @@ -237,9 +242,10 @@ type ComplexityRoot struct { } TorrentFileTypeAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } TorrentMutation struct { @@ -262,9 +268,10 @@ type ComplexityRoot struct { } TorrentSourceAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } TorrentSuggestTagsResult struct { @@ -272,21 +279,24 @@ type ComplexityRoot struct { } TorrentTagAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } VideoResolutionAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } VideoSourceAgg struct { - Count func(childComplexity int) int - Label func(childComplexity int) int - Value func(childComplexity int) int + Count func(childComplexity int) int + IsEstimate func(childComplexity int) int + Label func(childComplexity int) int + Value func(childComplexity int) int } } @@ -567,6 +577,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ContentTypeAgg.Count(childComplexity), true + case "ContentTypeAgg.isEstimate": + if e.complexity.ContentTypeAgg.IsEstimate == nil { + break + } + + return e.complexity.ContentTypeAgg.IsEstimate(childComplexity), true + case "ContentTypeAgg.label": if e.complexity.ContentTypeAgg.Label == nil { break @@ -616,6 +633,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.GenreAgg.Count(childComplexity), true + case "GenreAgg.isEstimate": + if e.complexity.GenreAgg.IsEstimate == nil { + break + } + + return e.complexity.GenreAgg.IsEstimate(childComplexity), true + case "GenreAgg.label": if e.complexity.GenreAgg.Label == nil { break @@ -637,6 +661,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.LanguageAgg.Count(childComplexity), true + case "LanguageAgg.isEstimate": + if e.complexity.LanguageAgg.IsEstimate == nil { + break + } + + return e.complexity.LanguageAgg.IsEstimate(childComplexity), true + case "LanguageAgg.label": if e.complexity.LanguageAgg.Label == nil { break @@ -707,6 +738,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ReleaseYearAgg.Count(childComplexity), true + case "ReleaseYearAgg.isEstimate": + if e.complexity.ReleaseYearAgg.IsEstimate == nil { + break + } + + return e.complexity.ReleaseYearAgg.IsEstimate(childComplexity), true + case "ReleaseYearAgg.label": if e.complexity.ReleaseYearAgg.Label == nil { break @@ -1104,6 +1142,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.TorrentContentSearchResult.TotalCount(childComplexity), true + case "TorrentContentSearchResult.totalCountIsEstimate": + if e.complexity.TorrentContentSearchResult.TotalCountIsEstimate == nil { + break + } + + return e.complexity.TorrentContentSearchResult.TotalCountIsEstimate(childComplexity), true + case "TorrentFile.createdAt": if e.complexity.TorrentFile.CreatedAt == nil { break @@ -1167,6 +1212,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.TorrentFileTypeAgg.Count(childComplexity), true + case "TorrentFileTypeAgg.isEstimate": + if e.complexity.TorrentFileTypeAgg.IsEstimate == nil { + break + } + + return e.complexity.TorrentFileTypeAgg.IsEstimate(childComplexity), true + case "TorrentFileTypeAgg.label": if e.complexity.TorrentFileTypeAgg.Label == nil { break @@ -1283,6 +1335,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.TorrentSourceAgg.Count(childComplexity), true + case "TorrentSourceAgg.isEstimate": + if e.complexity.TorrentSourceAgg.IsEstimate == nil { + break + } + + return e.complexity.TorrentSourceAgg.IsEstimate(childComplexity), true + case "TorrentSourceAgg.label": if e.complexity.TorrentSourceAgg.Label == nil { break @@ -1311,6 +1370,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.TorrentTagAgg.Count(childComplexity), true + case "TorrentTagAgg.isEstimate": + if e.complexity.TorrentTagAgg.IsEstimate == nil { + break + } + + return e.complexity.TorrentTagAgg.IsEstimate(childComplexity), true + case "TorrentTagAgg.label": if e.complexity.TorrentTagAgg.Label == nil { break @@ -1332,6 +1398,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.VideoResolutionAgg.Count(childComplexity), true + case "VideoResolutionAgg.isEstimate": + if e.complexity.VideoResolutionAgg.IsEstimate == nil { + break + } + + return e.complexity.VideoResolutionAgg.IsEstimate(childComplexity), true + case "VideoResolutionAgg.label": if e.complexity.VideoResolutionAgg.Label == nil { break @@ -1353,6 +1426,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.VideoSourceAgg.Count(childComplexity), true + case "VideoSourceAgg.isEstimate": + if e.complexity.VideoSourceAgg.IsEstimate == nil { + break + } + + return e.complexity.VideoSourceAgg.IsEstimate(childComplexity), true + case "VideoSourceAgg.label": if e.complexity.VideoSourceAgg.Label == nil { break @@ -1815,6 +1895,7 @@ scalar Year """ hasNextPage: Boolean cached: Boolean + aggregationBudget: Float } input ContentTypeFacetInput { @@ -1882,54 +1963,63 @@ type ContentTypeAgg { value: ContentType label: String! count: Int! + isEstimate: Boolean! } type TorrentSourceAgg { value: String! label: String! count: Int! + isEstimate: Boolean! } type TorrentTagAgg { value: String! label: String! count: Int! + isEstimate: Boolean! } type TorrentFileTypeAgg { value: FileType! label: String! count: Int! + isEstimate: Boolean! } type LanguageAgg { value: Language! label: String! count: Int! + isEstimate: Boolean! } type GenreAgg { value: String! label: String! count: Int! + isEstimate: Boolean! } type ReleaseYearAgg { value: Year label: String! count: Int! + isEstimate: Boolean! } type VideoResolutionAgg { value: VideoResolution label: String! count: Int! + isEstimate: Boolean! } type VideoSourceAgg { value: VideoSource label: String! count: Int! + isEstimate: Boolean! } type TorrentContentAggregations { @@ -1946,6 +2036,7 @@ type TorrentContentAggregations { type TorrentContentSearchResult { totalCount: Int! + totalCountIsEstimate: Boolean! """ hasNextPage is true if there are more results to fetch """ @@ -3751,6 +3842,50 @@ func (ec *executionContext) fieldContext_ContentTypeAgg_count(ctx context.Contex return fc, nil } +func (ec *executionContext) _ContentTypeAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.ContentTypeAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContentTypeAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContentTypeAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContentTypeAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Episodes_label(ctx context.Context, field graphql.CollectedField, obj *gqlmodel.Episodes) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Episodes_label(ctx, field) if err != nil { @@ -4071,6 +4206,50 @@ func (ec *executionContext) fieldContext_GenreAgg_count(ctx context.Context, fie return fc, nil } +func (ec *executionContext) _GenreAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.GenreAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GenreAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GenreAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GenreAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _LanguageAgg_value(ctx context.Context, field graphql.CollectedField, obj *gen.LanguageAgg) (ret graphql.Marshaler) { fc, err := ec.fieldContext_LanguageAgg_value(ctx, field) if err != nil { @@ -4203,6 +4382,50 @@ func (ec *executionContext) fieldContext_LanguageAgg_count(ctx context.Context, return fc, nil } +func (ec *executionContext) _LanguageAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.LanguageAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LanguageAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LanguageAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LanguageAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _LanguageInfo_id(ctx context.Context, field graphql.CollectedField, obj *model.Language) (ret graphql.Marshaler) { fc, err := ec.fieldContext_LanguageInfo_id(ctx, field) if err != nil { @@ -4787,6 +5010,50 @@ func (ec *executionContext) fieldContext_ReleaseYearAgg_count(ctx context.Contex return fc, nil } +func (ec *executionContext) _ReleaseYearAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.ReleaseYearAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ReleaseYearAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ReleaseYearAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ReleaseYearAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Season_season(ctx context.Context, field graphql.CollectedField, obj *model.Season) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Season_season(ctx, field) if err != nil { @@ -6651,6 +6918,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_contentType( return ec.fieldContext_ContentTypeAgg_label(ctx, field) case "count": return ec.fieldContext_ContentTypeAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_ContentTypeAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ContentTypeAgg", field.Name) }, @@ -6700,6 +6969,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_torrentSourc return ec.fieldContext_TorrentSourceAgg_label(ctx, field) case "count": return ec.fieldContext_TorrentSourceAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_TorrentSourceAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type TorrentSourceAgg", field.Name) }, @@ -6749,6 +7020,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_torrentTag(c return ec.fieldContext_TorrentTagAgg_label(ctx, field) case "count": return ec.fieldContext_TorrentTagAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_TorrentTagAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type TorrentTagAgg", field.Name) }, @@ -6798,6 +7071,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_torrentFileT return ec.fieldContext_TorrentFileTypeAgg_label(ctx, field) case "count": return ec.fieldContext_TorrentFileTypeAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_TorrentFileTypeAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type TorrentFileTypeAgg", field.Name) }, @@ -6847,6 +7122,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_language(ctx return ec.fieldContext_LanguageAgg_label(ctx, field) case "count": return ec.fieldContext_LanguageAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_LanguageAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type LanguageAgg", field.Name) }, @@ -6896,6 +7173,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_genre(ctx co return ec.fieldContext_GenreAgg_label(ctx, field) case "count": return ec.fieldContext_GenreAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_GenreAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type GenreAgg", field.Name) }, @@ -6945,6 +7224,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_releaseYear( return ec.fieldContext_ReleaseYearAgg_label(ctx, field) case "count": return ec.fieldContext_ReleaseYearAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_ReleaseYearAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ReleaseYearAgg", field.Name) }, @@ -6994,6 +7275,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_videoResolut return ec.fieldContext_VideoResolutionAgg_label(ctx, field) case "count": return ec.fieldContext_VideoResolutionAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_VideoResolutionAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type VideoResolutionAgg", field.Name) }, @@ -7043,6 +7326,8 @@ func (ec *executionContext) fieldContext_TorrentContentAggregations_videoSource( return ec.fieldContext_VideoSourceAgg_label(ctx, field) case "count": return ec.fieldContext_VideoSourceAgg_count(ctx, field) + case "isEstimate": + return ec.fieldContext_VideoSourceAgg_isEstimate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type VideoSourceAgg", field.Name) }, @@ -7091,6 +7376,8 @@ func (ec *executionContext) fieldContext_TorrentContentQuery_search(ctx context. switch field.Name { case "totalCount": return ec.fieldContext_TorrentContentSearchResult_totalCount(ctx, field) + case "totalCountIsEstimate": + return ec.fieldContext_TorrentContentSearchResult_totalCountIsEstimate(ctx, field) case "hasNextPage": return ec.fieldContext_TorrentContentSearchResult_hasNextPage(ctx, field) case "items": @@ -7159,6 +7446,50 @@ func (ec *executionContext) fieldContext_TorrentContentSearchResult_totalCount(c return fc, nil } +func (ec *executionContext) _TorrentContentSearchResult_totalCountIsEstimate(ctx context.Context, field graphql.CollectedField, obj *gqlmodel.TorrentContentSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TorrentContentSearchResult_totalCountIsEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCountIsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TorrentContentSearchResult_totalCountIsEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TorrentContentSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _TorrentContentSearchResult_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *gqlmodel.TorrentContentSearchResult) (ret graphql.Marshaler) { fc, err := ec.fieldContext_TorrentContentSearchResult_hasNextPage(ctx, field) if err != nil { @@ -7824,6 +8155,50 @@ func (ec *executionContext) fieldContext_TorrentFileTypeAgg_count(ctx context.Co return fc, nil } +func (ec *executionContext) _TorrentFileTypeAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.TorrentFileTypeAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TorrentFileTypeAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TorrentFileTypeAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TorrentFileTypeAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _TorrentMutation_delete(ctx context.Context, field graphql.CollectedField, obj *gqlmodel.TorrentMutation) (ret graphql.Marshaler) { fc, err := ec.fieldContext_TorrentMutation_delete(ctx, field) if err != nil { @@ -8434,6 +8809,50 @@ func (ec *executionContext) fieldContext_TorrentSourceAgg_count(ctx context.Cont return fc, nil } +func (ec *executionContext) _TorrentSourceAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.TorrentSourceAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TorrentSourceAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TorrentSourceAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TorrentSourceAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _TorrentSuggestTagsResult_suggestions(ctx context.Context, field graphql.CollectedField, obj *search.TorrentSuggestTagsResult) (ret graphql.Marshaler) { fc, err := ec.fieldContext_TorrentSuggestTagsResult_suggestions(ctx, field) if err != nil { @@ -8616,6 +9035,50 @@ func (ec *executionContext) fieldContext_TorrentTagAgg_count(ctx context.Context return fc, nil } +func (ec *executionContext) _TorrentTagAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.TorrentTagAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TorrentTagAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TorrentTagAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TorrentTagAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _VideoResolutionAgg_value(ctx context.Context, field graphql.CollectedField, obj *gen.VideoResolutionAgg) (ret graphql.Marshaler) { fc, err := ec.fieldContext_VideoResolutionAgg_value(ctx, field) if err != nil { @@ -8745,6 +9208,50 @@ func (ec *executionContext) fieldContext_VideoResolutionAgg_count(ctx context.Co return fc, nil } +func (ec *executionContext) _VideoResolutionAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.VideoResolutionAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VideoResolutionAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_VideoResolutionAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VideoResolutionAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _VideoSourceAgg_value(ctx context.Context, field graphql.CollectedField, obj *gen.VideoSourceAgg) (ret graphql.Marshaler) { fc, err := ec.fieldContext_VideoSourceAgg_value(ctx, field) if err != nil { @@ -8874,6 +9381,50 @@ func (ec *executionContext) fieldContext_VideoSourceAgg_count(ctx context.Contex return fc, nil } +func (ec *executionContext) _VideoSourceAgg_isEstimate(ctx context.Context, field graphql.CollectedField, obj *gen.VideoSourceAgg) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VideoSourceAgg_isEstimate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEstimate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_VideoSourceAgg_isEstimate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VideoSourceAgg", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { fc, err := ec.fieldContext___Directive_name(ctx, field) if err != nil { @@ -10797,7 +11348,7 @@ func (ec *executionContext) unmarshalInputSearchQueryInput(ctx context.Context, asMap[k] = v } - fieldsInOrder := [...]string{"queryString", "limit", "offset", "totalCount", "hasNextPage", "cached"} + fieldsInOrder := [...]string{"queryString", "limit", "offset", "totalCount", "hasNextPage", "cached", "aggregationBudget"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -10846,6 +11397,13 @@ func (ec *executionContext) unmarshalInputSearchQueryInput(ctx context.Context, return it, err } it.Cached = data + case "aggregationBudget": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("aggregationBudget")) + data, err := ec.unmarshalOFloat2githubᚗcomᚋbitmagnetᚑioᚋbitmagnetᚋinternalᚋmodelᚐNullFloat64(ctx, v) + if err != nil { + return it, err + } + it.AggregationBudget = data } } @@ -11459,6 +12017,11 @@ func (ec *executionContext) _ContentTypeAgg(ctx context.Context, sel ast.Selecti if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._ContentTypeAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -11596,6 +12159,11 @@ func (ec *executionContext) _GenreAgg(ctx context.Context, sel ast.SelectionSet, if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._GenreAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -11645,6 +12213,11 @@ func (ec *executionContext) _LanguageAgg(ctx context.Context, sel ast.SelectionS if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._LanguageAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -11922,6 +12495,11 @@ func (ec *executionContext) _ReleaseYearAgg(ctx context.Context, sel ast.Selecti if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._ReleaseYearAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -12390,6 +12968,11 @@ func (ec *executionContext) _TorrentContentSearchResult(ctx context.Context, sel if out.Values[i] == graphql.Null { out.Invalids++ } + case "totalCountIsEstimate": + out.Values[i] = ec._TorrentContentSearchResult_totalCountIsEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "hasNextPage": out.Values[i] = ec._TorrentContentSearchResult_hasNextPage(ctx, field, obj) case "items": @@ -12519,6 +13102,11 @@ func (ec *executionContext) _TorrentFileTypeAgg(ctx context.Context, sel ast.Sel if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._TorrentFileTypeAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -12854,6 +13442,11 @@ func (ec *executionContext) _TorrentSourceAgg(ctx context.Context, sel ast.Selec if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._TorrentSourceAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -12942,6 +13535,11 @@ func (ec *executionContext) _TorrentTagAgg(ctx context.Context, sel ast.Selectio if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._TorrentTagAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -12988,6 +13586,11 @@ func (ec *executionContext) _VideoResolutionAgg(ctx context.Context, sel ast.Sel if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._VideoResolutionAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -13034,6 +13637,11 @@ func (ec *executionContext) _VideoSourceAgg(ctx context.Context, sel ast.Selecti if out.Values[i] == graphql.Null { out.Invalids++ } + case "isEstimate": + out.Values[i] = ec._VideoSourceAgg_isEstimate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -14613,6 +15221,16 @@ func (ec *executionContext) marshalOFloat2githubᚗcomᚋbitmagnetᚑioᚋbitmag return v } +func (ec *executionContext) unmarshalOFloat2githubᚗcomᚋbitmagnetᚑioᚋbitmagnetᚋinternalᚋmodelᚐNullFloat64(ctx context.Context, v interface{}) (model.NullFloat64, error) { + var res model.NullFloat64 + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOFloat2githubᚗcomᚋbitmagnetᚑioᚋbitmagnetᚋinternalᚋmodelᚐNullFloat64(ctx context.Context, sel ast.SelectionSet, v model.NullFloat64) graphql.Marshaler { + return v +} + func (ec *executionContext) marshalOGenreAgg2ᚕgithubᚗcomᚋbitmagnetᚑioᚋbitmagnetᚋinternalᚋgqlᚋgqlmodelᚋgenᚐGenreAggᚄ(ctx context.Context, sel ast.SelectionSet, v []gen.GenreAgg) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/internal/gql/gqlgen.yml b/internal/gql/gqlgen.yml index 86b9524d..eb99241b 100644 --- a/internal/gql/gqlgen.yml +++ b/internal/gql/gqlgen.yml @@ -99,6 +99,7 @@ models: model: - github.com/99designs/gqlgen/graphql.Float - github.com/bitmagnet-io/bitmagnet/internal/model.NullFloat32 + - github.com/bitmagnet-io/bitmagnet/internal/model.NullFloat64 Boolean: model: - github.com/99designs/gqlgen/graphql.Boolean diff --git a/internal/gql/gqlmodel/facet.go b/internal/gql/gqlmodel/facet.go index 82b4fe3d..270db946 100644 --- a/internal/gql/gqlmodel/facet.go +++ b/internal/gql/gqlmodel/facet.go @@ -137,7 +137,7 @@ func videoSourceFacet(input gen.VideoSourceFacetInput) q.Facet { func aggs[T any, Agg comparable]( items q.AggregationItems, parse func(string) (T, error), - newAgg func(value *T, label string, count uint) Agg, + newAgg func(value *T, label string, count uint, isEstimate bool) Agg, ) ([]Agg, error) { r := make([]Agg, 0, len(items)) labelMap := make(map[Agg]string, len(items)) @@ -147,7 +147,7 @@ func aggs[T any, Agg comparable]( if err != nil { return nil, fmt.Errorf("error parsing aggregation item: %w", err) } - agg := newAgg(&v, item.Label, item.Count) + agg := newAgg(&v, item.Label, item.Count, item.IsEstimate) r = append(r, agg) labelMap[agg] = item.Label } @@ -156,32 +156,32 @@ func aggs[T any, Agg comparable]( return natsort.Compare(labelMap[r[i]], labelMap[r[j]]) }) if null, nullOk := items["null"]; nullOk { - r = append(r, newAgg(nil, null.Label, null.Count)) + r = append(r, newAgg(nil, null.Label, null.Count, null.IsEstimate)) } return r, nil } func contentTypeAggs(items q.AggregationItems) ([]gen.ContentTypeAgg, error) { - return aggs(items, model.ParseContentType, func(value *model.ContentType, label string, count uint) gen.ContentTypeAgg { - return gen.ContentTypeAgg{Value: value, Label: label, Count: int(count)} + return aggs(items, model.ParseContentType, func(value *model.ContentType, label string, count uint, isEstimate bool) gen.ContentTypeAgg { + return gen.ContentTypeAgg{Value: value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func torrentSourceAggs(items q.AggregationItems) ([]gen.TorrentSourceAgg, error) { - return aggs(items, func(s string) (string, error) { return s, nil }, func(value *string, label string, count uint) gen.TorrentSourceAgg { - return gen.TorrentSourceAgg{Value: *value, Label: label, Count: int(count)} + return aggs(items, func(s string) (string, error) { return s, nil }, func(value *string, label string, count uint, isEstimate bool) gen.TorrentSourceAgg { + return gen.TorrentSourceAgg{Value: *value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func torrentTagAggs(items q.AggregationItems) ([]gen.TorrentTagAgg, error) { - return aggs(items, func(s string) (string, error) { return s, nil }, func(value *string, label string, count uint) gen.TorrentTagAgg { - return gen.TorrentTagAgg{Value: *value, Label: label, Count: int(count)} + return aggs(items, func(s string) (string, error) { return s, nil }, func(value *string, label string, count uint, isEstimate bool) gen.TorrentTagAgg { + return gen.TorrentTagAgg{Value: *value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func torrentFileTypeAggs(items q.AggregationItems) ([]gen.TorrentFileTypeAgg, error) { - return aggs(items, model.ParseFileType, func(value *model.FileType, label string, count uint) gen.TorrentFileTypeAgg { - return gen.TorrentFileTypeAgg{Value: *value, Label: label, Count: int(count)} + return aggs(items, model.ParseFileType, func(value *model.FileType, label string, count uint, isEstimate bool) gen.TorrentFileTypeAgg { + return gen.TorrentFileTypeAgg{Value: *value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } @@ -192,31 +192,31 @@ func languageAggs(items q.AggregationItems) ([]gen.LanguageAgg, error) { return "", errors.New("invalid language") } return lang.Language, nil - }, func(value *model.Language, label string, count uint) gen.LanguageAgg { - return gen.LanguageAgg{Value: *value, Label: label, Count: int(count)} + }, func(value *model.Language, label string, count uint, isEstimate bool) gen.LanguageAgg { + return gen.LanguageAgg{Value: *value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func genreAggs(items q.AggregationItems) ([]gen.GenreAgg, error) { - return aggs(items, func(s string) (string, error) { return s, nil }, func(value *string, label string, count uint) gen.GenreAgg { - return gen.GenreAgg{Value: *value, Label: label, Count: int(count)} + return aggs(items, func(s string) (string, error) { return s, nil }, func(value *string, label string, count uint, isEstimate bool) gen.GenreAgg { + return gen.GenreAgg{Value: *value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func releaseYearAggs(items q.AggregationItems) ([]gen.ReleaseYearAgg, error) { - return aggs(items, model.ParseYear, func(value *model.Year, label string, count uint) gen.ReleaseYearAgg { - return gen.ReleaseYearAgg{Value: value, Label: label, Count: int(count)} + return aggs(items, model.ParseYear, func(value *model.Year, label string, count uint, isEstimate bool) gen.ReleaseYearAgg { + return gen.ReleaseYearAgg{Value: value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func videoResolutionAggs(items q.AggregationItems) ([]gen.VideoResolutionAgg, error) { - return aggs(items, model.ParseVideoResolution, func(value *model.VideoResolution, label string, count uint) gen.VideoResolutionAgg { - return gen.VideoResolutionAgg{Value: value, Label: label, Count: int(count)} + return aggs(items, model.ParseVideoResolution, func(value *model.VideoResolution, label string, count uint, isEstimate bool) gen.VideoResolutionAgg { + return gen.VideoResolutionAgg{Value: value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } func videoSourceAggs(items q.AggregationItems) ([]gen.VideoSourceAgg, error) { - return aggs(items, model.ParseVideoSource, func(value *model.VideoSource, label string, count uint) gen.VideoSourceAgg { - return gen.VideoSourceAgg{Value: value, Label: label, Count: int(count)} + return aggs(items, model.ParseVideoSource, func(value *model.VideoSource, label string, count uint, isEstimate bool) gen.VideoSourceAgg { + return gen.VideoSourceAgg{Value: value, Label: label, Count: int(count), IsEstimate: isEstimate} }) } diff --git a/internal/gql/gqlmodel/gen/model.gen.go b/internal/gql/gqlmodel/gen/model.gen.go index bac24f0d..1bf7fedd 100644 --- a/internal/gql/gqlmodel/gen/model.gen.go +++ b/internal/gql/gqlmodel/gen/model.gen.go @@ -8,9 +8,10 @@ import ( ) type ContentTypeAgg struct { - Value *model.ContentType `json:"value,omitempty"` - Label string `json:"label"` - Count int `json:"count"` + Value *model.ContentType `json:"value,omitempty"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type ContentTypeFacetInput struct { @@ -19,9 +20,10 @@ type ContentTypeFacetInput struct { } type GenreAgg struct { - Value string `json:"value"` - Label string `json:"label"` - Count int `json:"count"` + Value string `json:"value"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type GenreFacetInput struct { @@ -31,9 +33,10 @@ type GenreFacetInput struct { } type LanguageAgg struct { - Value model.Language `json:"value"` - Label string `json:"label"` - Count int `json:"count"` + Value model.Language `json:"value"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type LanguageFacetInput struct { @@ -48,9 +51,10 @@ type Query struct { } type ReleaseYearAgg struct { - Value *model.Year `json:"value,omitempty"` - Label string `json:"label"` - Count int `json:"count"` + Value *model.Year `json:"value,omitempty"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type ReleaseYearFacetInput struct { @@ -88,9 +92,10 @@ type TorrentContentFacetsInput struct { } type TorrentFileTypeAgg struct { - Value model.FileType `json:"value"` - Label string `json:"label"` - Count int `json:"count"` + Value model.FileType `json:"value"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type TorrentFileTypeFacetInput struct { @@ -100,9 +105,10 @@ type TorrentFileTypeFacetInput struct { } type TorrentSourceAgg struct { - Value string `json:"value"` - Label string `json:"label"` - Count int `json:"count"` + Value string `json:"value"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type TorrentSourceFacetInput struct { @@ -112,9 +118,10 @@ type TorrentSourceFacetInput struct { } type TorrentTagAgg struct { - Value string `json:"value"` - Label string `json:"label"` - Count int `json:"count"` + Value string `json:"value"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type TorrentTagFacetInput struct { @@ -124,9 +131,10 @@ type TorrentTagFacetInput struct { } type VideoResolutionAgg struct { - Value *model.VideoResolution `json:"value,omitempty"` - Label string `json:"label"` - Count int `json:"count"` + Value *model.VideoResolution `json:"value,omitempty"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type VideoResolutionFacetInput struct { @@ -135,9 +143,10 @@ type VideoResolutionFacetInput struct { } type VideoSourceAgg struct { - Value *model.VideoSource `json:"value,omitempty"` - Label string `json:"label"` - Count int `json:"count"` + Value *model.VideoSource `json:"value,omitempty"` + Label string `json:"label"` + Count int `json:"count"` + IsEstimate bool `json:"isEstimate"` } type VideoSourceFacetInput struct { diff --git a/internal/gql/gqlmodel/torrent_content.go b/internal/gql/gqlmodel/torrent_content.go index a6f5fb03..1d3cdee9 100644 --- a/internal/gql/gqlmodel/torrent_content.go +++ b/internal/gql/gqlmodel/torrent_content.go @@ -98,10 +98,11 @@ func TorrentSourcesFromTorrent(t model.Torrent) []TorrentSource { } type TorrentContentSearchResult struct { - TotalCount uint - HasNextPage bool - Items []TorrentContent - Aggregations gen.TorrentContentAggregations + TotalCount uint + TotalCountIsEstimate bool + HasNextPage bool + Items []TorrentContent + Aggregations gen.TorrentContentAggregations } func (t TorrentContentQuery) Search(ctx context.Context, query *q.SearchParams, facets *gen.TorrentContentFacetsInput) (TorrentContentSearchResult, error) { @@ -159,10 +160,11 @@ func transformTorrentContentSearchResult(result q.GenericResult[search.TorrentCo items = append(items, NewTorrentContentFromResultItem(item)) } return TorrentContentSearchResult{ - TotalCount: result.TotalCount, - HasNextPage: result.HasNextPage, - Items: items, - Aggregations: aggs, + TotalCount: result.TotalCount, + TotalCountIsEstimate: result.TotalCountIsEstimate, + HasNextPage: result.HasNextPage, + Items: items, + Aggregations: aggs, }, nil } diff --git a/internal/model/null.go b/internal/model/null.go index e9b28b44..10a45347 100644 --- a/internal/model/null.go +++ b/internal/model/null.go @@ -245,6 +245,79 @@ func (n NullFloat32) MarshalGQL(w io.Writer) { _, _ = fmt.Fprintf(w, "%f", n.Float32) } +// NullFloat64 - nullable float64 +type NullFloat64 struct { + Float64 float64 + Valid bool // Valid is true if Float64 is not NULL +} + +func NewNullFloat64(f float64) NullFloat64 { + return NullFloat64{ + Float64: f, + Valid: true, + } +} + +func (n *NullFloat64) Scan(value interface{}) error { + v, ok := value.(float64) + if !ok { + n.Valid = false + } else { + n.Float64 = v + n.Valid = true + } + return nil +} + +func (n NullFloat64) Value() (driver.Value, error) { + if !n.Valid { + return nil, nil + } + return n.Float64, nil +} + +func (n *NullFloat64) UnmarshalGQL(v interface{}) error { + if v == nil { + n.Valid = false + return nil + } + switch v := v.(type) { + case int: + n.Float64 = float64(v) + case int32: + n.Float64 = float64(v) + case int64: + n.Float64 = float64(v) + case uint: + n.Float64 = float64(v) + case uint32: + n.Float64 = float64(v) + case uint64: + n.Float64 = float64(v) + case float32: + n.Float64 = float64(v) + case float64: + n.Float64 = v + case string: + _, err := fmt.Sscanf(v, "%f", &n.Float64) + if err != nil { + return err + } + default: + return fmt.Errorf("wrong type") + } + n.Valid = true + return nil +} + +func (n NullFloat64) MarshalGQL(w io.Writer) { + if !n.Valid { + _, _ = w.Write([]byte("null")) + return + } + _, _ = fmt.Fprintf(w, "%f", n.Float64) +} + // NullUint64 - nullable uint64 type NullUint64 struct { Uint64 uint64 diff --git a/migrations/00010_budgeted_count.sql b/migrations/00010_budgeted_count.sql new file mode 100644 index 00000000..6105771e --- /dev/null +++ b/migrations/00010_budgeted_count.sql @@ -0,0 +1,32 @@ +-- +goose Up +-- +goose StatementBegin + +CREATE OR REPLACE FUNCTION budgeted_count( + query text, + budget double precision, + OUT count integer, + OUT cost double precision, + OUT budget_exceeded boolean, + OUT plan jsonb +) LANGUAGE plpgsql AS $$ +BEGIN + EXECUTE 'EXPLAIN (FORMAT JSON) ' || query INTO plan; + cost := plan->0->'Plan'->'Total Cost'; + IF cost > budget THEN + count := plan->0->'Plan'->'Plan Rows'; + budget_exceeded := true; + ELSE + EXECUTE 'SELECT count(*) FROM (' || query || ') AS subquery' INTO count; + budget_exceeded := false; + END IF; +END; +$$; + +-- +goose StatementEnd + +-- +goose Down +-- +goose StatementBegin + +drop function if exists budgeted_count(text, double precision, OUT integer, OUT double precision, OUT boolean, OUT jsonb); + +-- +goose StatementEnd diff --git a/migrations/00011_indexes.sql b/migrations/00011_indexes.sql new file mode 100644 index 00000000..ad998e32 --- /dev/null +++ b/migrations/00011_indexes.sql @@ -0,0 +1,27 @@ +-- +goose Up +-- +goose StatementBegin + +drop index if exists torrent_contents_id_idx; +drop index if exists torrent_contents_languages_idx; +drop index if exists torrent_contents_tsv_idx; + +create extension if not exists btree_gin; + +create index on torrent_contents using gin(content_type, tsv); +create index on torrent_contents using gin(content_type, languages); + +-- +goose StatementEnd + +-- +goose Down +-- +goose StatementBegin + +drop index if exists torrent_contents_content_type_tsv_idx; +drop index if exists torrent_contents_content_type_languages_idx; + +CREATE INDEX on torrent_contents USING gist (id gist_trgm_ops); +create index on torrent_contents (languages); +CREATE INDEX on torrent_contents USING GIN(tsv); + +drop extension if exists btree_gin; + +-- +goose StatementEnd diff --git a/webui/dist/bitmagnet/index.html b/webui/dist/bitmagnet/index.html index e0feee90..22746d79 100644 --- a/webui/dist/bitmagnet/index.html +++ b/webui/dist/bitmagnet/index.html @@ -8,9 +8,9 @@ - + - + diff --git a/webui/dist/bitmagnet/main.b93d3476d106fc6d.js b/webui/dist/bitmagnet/main.b93d3476d106fc6d.js new file mode 100644 index 00000000..2629a210 --- /dev/null +++ b/webui/dist/bitmagnet/main.b93d3476d106fc6d.js @@ -0,0 +1,228 @@ +(self.webpackChunkbitmagnet=self.webpackChunkbitmagnet||[]).push([[179],{701:(yc,xo,xs)=>{"use strict";function Re(e){return"function"==typeof e}function wc(e){const i=e(n=>{Error.call(n),n.stack=(new Error).stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const Cs=wc(e=>function(i){e(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i});function Ei(e,t){if(e){const i=e.indexOf(t);0<=i&&e.splice(i,1)}}class Ae{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const o of i)o.remove(this);else i.remove(this);const{initialTeardown:n}=this;if(Re(n))try{n()}catch(o){t=o instanceof Cs?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Wd(o)}catch(s){t=t??[],s instanceof Cs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Cs(t)}}add(t){var i;if(t&&t!==this)if(this.closed)Wd(t);else{if(t instanceof Ae){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&Ei(i,t)}remove(t){const{_finalizers:i}=this;i&&Ei(i,t),t instanceof Ae&&t._removeParent(this)}}Ae.EMPTY=(()=>{const e=new Ae;return e.closed=!0,e})();const Gd=Ae.EMPTY;function Co(e){return e instanceof Ae||e&&"closed"in e&&Re(e.remove)&&Re(e.add)&&Re(e.unsubscribe)}function Wd(e){Re(e)?e():e.unsubscribe()}const ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hr={setTimeout(e,t,...i){const{delegate:n}=hr;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){const{delegate:t}=hr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Qd(e){hr.setTimeout(()=>{const{onUnhandledError:t}=ur;if(!t)throw e;t(e)})}function Do(){}const mm=Eo("C",void 0,void 0);function Eo(e,t,i){return{kind:e,value:t,error:i}}let Si=null;function ki(e){if(ur.useDeprecatedSynchronousErrorHandling){const t=!Si;if(t&&(Si={errorThrown:!1,error:null}),e(),t){const{errorThrown:i,error:n}=Si;if(Si=null,i)throw n}}else e()}class Ds extends Ae{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Co(t)&&t.add(this)):this.destination=Kd}static create(t,i,n){return new Vr(t,i,n)}next(t){this.isStopped?ko(function _m(e){return Eo("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ko(function gm(e){return Eo("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ko(mm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const So=Function.prototype.bind;function Es(e,t){return So.call(e,t)}class bm{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Pn(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Pn(n)}else Pn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Pn(i)}}}class Vr extends Ds{constructor(t,i,n){let r;if(super(),Re(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&ur.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Es(t.next,o),error:t.error&&Es(t.error,o),complete:t.complete&&Es(t.complete,o)}):r=t}this.destination=new bm(r)}}function Pn(e){ur.useDeprecatedSynchronousErrorHandling?function st(e){ur.useDeprecatedSynchronousErrorHandling&&Si&&(Si.errorThrown=!0,Si.error=e)}(e):Qd(e)}function ko(e,t){const{onStoppedNotification:i}=ur;i&&hr.setTimeout(()=>i(e,t))}const Kd={closed:!0,next:Do,error:function Yd(e){throw e},complete:Do},jr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ti(e){return e}function xc(e){return 0===e.length?Ti:1===e.length?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}let Me=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){const n=new e;return n.source=this,n.operator=i,n}subscribe(i,n,r){const o=function Xd(e){return e&&e instanceof Ds||function ym(e){return e&&Re(e.next)&&Re(e.error)&&Re(e.complete)}(e)&&Co(e)}(i)?i:new Vr(i,n,r);return ki(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return new(n=Cc(n))((r,o)=>{const s=new Vr({next:a=>{try{i(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(i)}[jr](){return this}pipe(...i){return xc(i)(this)}toPromise(i){return new(i=Cc(i))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return e.create=t=>new e(t),e})();function Cc(e){var t;return null!==(t=e??ur.Promise)&&void 0!==t?t:Promise}const wm=wc(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Y=(()=>{class e extends Me{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){const n=new Wn(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new wm}next(i){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;const{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){const{hasError:n,isStopped:r,observers:o}=this;return n||r?Gd:(this.currentObservers=null,o.push(i),new Ae(()=>{this.currentObservers=null,Ei(o,i)}))}_checkFinalizedStatuses(i){const{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){const i=new Me;return i.source=this,i}}return e.create=(t,i)=>new Wn(t,i),e})();class Wn extends Y{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===n||n.call(i,t)}error(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===n||n.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,n;return null!==(n=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==n?n:Gd}}function Dc(e){return Re(e?.lift)}function at(e){return t=>{if(Dc(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function tt(e,t,i,n,r){return new xm(e,t,i,n,r)}class xm extends Ds{constructor(t,i,n,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(c){t.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe(),!i&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Z(e,t){return at((i,n)=>{let r=0;i.subscribe(tt(n,o=>{n.next(e.call(t,o,r++))}))})}var Ss=function(e,t){return(Ss=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])})(e,t)};function Nn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ss(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var k=function(){return k=Object.assign||function(t){for(var i,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=e[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Dm=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Nw(e){return Re(e?.then)}function Lw(e){return Re(e[jr])}function Bw(e){return Symbol.asyncIterator&&Re(e?.[Symbol.asyncIterator])}function Vw(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const jw=function GN(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Hw(e){return Re(e?.[jw])}function zw(e){return function nu(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=i.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){n[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||a(h,f)})})}function a(h,f){try{!function c(h){h.value instanceof Mi?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(n[h](f))}catch(m){u(o[0][3],m)}}function l(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const i=e.getReader();try{for(;;){const{value:n,done:r}=yield Mi(i.read());if(r)return yield Mi(void 0);yield yield Mi(n)}}finally{i.releaseLock()}})}function Uw(e){return Re(e?.getReader)}function mn(e){if(e instanceof Me)return e;if(null!=e){if(Lw(e))return function WN(e){return new Me(t=>{const i=e[jr]();if(Re(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Dm(e))return function QN(e){return new Me(t=>{for(let i=0;i{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,Qd)})}(e);if(Bw(e))return $w(e);if(Hw(e))return function KN(e){return new Me(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(Uw(e))return function XN(e){return $w(zw(e))}(e)}throw Vw(e)}function $w(e){return new Me(t=>{(function ZN(e,t){var i,n,r,o;return Ln(this,void 0,void 0,function*(){try{for(i=Pw(e);!(n=yield i.next()).done;)if(t.next(n.value),t.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}t.complete()})})(e,t).catch(i=>t.error(i))})}function fr(e,t,i,n=0,r=!1){const o=t.schedule(function(){i(),r?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!r)return o}function Kt(e,t,i=1/0){return Re(t)?Kt((n,r)=>Z((o,s)=>t(n,o,r,s))(mn(e(n,r))),i):("number"==typeof t&&(i=t),at((n,r)=>function JN(e,t,i,n,r,o,s,a){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&t.complete()},f=g=>l{o&&t.next(g),l++;let b=!1;mn(i(g,d++)).subscribe(tt(t,_=>{r?.(_),o?f(_):t.next(_)},()=>{b=!0},void 0,()=>{if(b)try{for(l--;c.length&&lm(_)):m(_)}h()}catch(_){t.error(_)}}))};return e.subscribe(tt(t,f,()=>{u=!0,h()})),()=>{a?.()}}(n,r,e,i)))}function Ms(e=1/0){return Kt(Ti,e)}const Xt=new Me(e=>e.complete());function qw(e){return e&&Re(e.schedule)}function Em(e){return e[e.length-1]}function Gw(e){return Re(Em(e))?e.pop():void 0}function Tc(e){return qw(Em(e))?e.pop():void 0}function Sm(e,t=0){return at((i,n)=>{i.subscribe(tt(n,r=>fr(n,e,()=>n.next(r),t),()=>fr(n,e,()=>n.complete(),t),r=>fr(n,e,()=>n.error(r),t)))})}function Ww(e,t=0){return at((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function Qw(e,t){if(!e)throw new Error("Iterable cannot be null");return new Me(i=>{fr(i,t,()=>{const n=e[Symbol.asyncIterator]();fr(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Et(e,t){return t?function aL(e,t){if(null!=e){if(Lw(e))return function nL(e,t){return mn(e).pipe(Ww(t),Sm(t))}(e,t);if(Dm(e))return function rL(e,t){return new Me(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}(e,t);if(Nw(e))return function iL(e,t){return mn(e).pipe(Ww(t),Sm(t))}(e,t);if(Bw(e))return Qw(e,t);if(Hw(e))return function oL(e,t){return new Me(i=>{let n;return fr(i,t,()=>{n=e[jw](),fr(i,t,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){return void i.error(s)}o?i.complete():i.next(r)},0,!0)}),()=>Re(n?.return)&&n.return()})}(e,t);if(Uw(e))return function sL(e,t){return Qw(zw(e),t)}(e,t)}throw Vw(e)}(e,t):mn(e)}function Rt(...e){const t=Tc(e),i=function tL(e,t){return"number"==typeof Em(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?mn(n[0]):Ms(i)(Et(n,t)):Xt}class dt extends Y{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const i=super._subscribe(t);return!i.closed&&t.next(this._value),i}getValue(){const{hasError:t,thrownError:i,_value:n}=this;if(t)throw i;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function re(...e){return Et(e,Tc(e))}function iu(e={}){const{connector:t=(()=>new Y),resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,c,l=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,d=u=!1},m=()=>{const g=s;f(),g?.unsubscribe()};return at((g,b)=>{l++,!u&&!d&&h();const _=c=c??t();b.add(()=>{l--,0===l&&!u&&!d&&(a=km(m,r))}),_.subscribe(b),!s&&l>0&&(s=new Vr({next:v=>_.next(v),error:v=>{u=!0,h(),a=km(f,i,v),_.error(v)},complete:()=>{d=!0,h(),a=km(f,n),_.complete()}}),mn(g).subscribe(s))})(o)}}function km(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new Vr({next:()=>{n.unsubscribe(),e()}});return mn(t(...i)).subscribe(n)}function Vt(e,t){return at((i,n)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&n.complete();i.subscribe(tt(n,c=>{r?.unsubscribe();let l=0;const d=o++;mn(e(c,d)).subscribe(r=tt(n,u=>n.next(t?t(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Is(e,t=Ti){return e=e??cL,at((i,n)=>{let r,o=!0;i.subscribe(tt(n,s=>{const a=t(s);(o||!e(r,a))&&(o=!1,r=a,n.next(s))}))})}function cL(e,t){return e===t}function Je(e){for(let t in e)if(e[t]===Je)return t;throw Error("Could not find renamed property on target object.")}function ru(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function Zt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Zt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function Tm(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const lL=Je({__forward_ref__:Je});function He(e){return e.__forward_ref__=He,e.toString=function(){return Zt(this())},e}function _e(e){return Mm(e)?e():e}function Mm(e){return"function"==typeof e&&e.hasOwnProperty(lL)&&e.__forward_ref__===He}function Im(e){return e&&!!e.\u0275providers}const Yw="https://g.co/ng/security#xss";class I extends Error{constructor(t,i){super(function ou(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function xe(e){return"string"==typeof e?e:null==e?"":String(e)}function Am(e,t){throw new I(-201,!1)}function ci(e,t){null==e&&function me(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${i} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function V(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ae(e){return{providers:e.providers||[],imports:e.imports||[]}}function su(e){return Kw(e,cu)||Kw(e,Xw)}function Kw(e,t){return e.hasOwnProperty(t)?e[t]:null}function au(e){return e&&(e.hasOwnProperty(Rm)||e.hasOwnProperty(_L))?e[Rm]:null}const cu=Je({\u0275prov:Je}),Rm=Je({\u0275inj:Je}),Xw=Je({ngInjectableDef:Je}),_L=Je({ngInjectorDef:Je});var Ie=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ie||{});let Om;function Vn(e){const t=Om;return Om=e,t}function Jw(e,t,i){const n=su(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Ie.Optional?null:void 0!==t?t:void Am(Zt(e))}const ut=globalThis,Mc={},Bm="__NG_DI_FLAG__",lu="ngTempTokenPath",yL=/\n/gm,tx="__source";let As;function Hr(e){const t=As;return As=e,t}function CL(e,t=Ie.Default){if(void 0===As)throw new I(-203,!1);return null===As?Jw(e,void 0,t):As.get(e,t&Ie.Optional?null:void 0,t)}function E(e,t=Ie.Default){return(function Zw(){return Om}()||CL)(_e(e),t)}function j(e,t=Ie.Default){return E(e,du(t))}function du(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Vm(e){const t=[];for(let i=0;it){s=o-1;break}}}for(;oo?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==ox(f,l,0)||2&n&&l!==h){if(Ii(n))return!1;s=!0}}}}else{if(!s&&!Ii(n)&&!Ii(c))return!1;if(s&&Ii(c))continue;s=!1,n=c|1&n}}return Ii(n)||s}function Ii(e){return 0==(1&e)}function IL(e,t,i,n){if(null===t)return-1;let r=0;if(n||!i){let o=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!Ii(s)&&(t+=hx(o,r),r=""),n=s,o=o||!Ii(n);i++}return""!==r&&(t+=hx(o,r)),t}function fe(e){return pr(()=>{const t=px(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===uu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||li.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""};mx(i);const n=e.dependencies;return i.directiveDefs=fu(n,!1),i.pipeDefs=fu(n,!0),i.id=function UL(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of i)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(i),i})}function VL(e){return Le(e)||sn(e)}function jL(e){return null!==e}function le(e){return pr(()=>({type:e.type,bootstrap:e.bootstrap||$e,declarations:e.declarations||$e,imports:e.imports||$e,exports:e.exports||$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function fx(e,t){if(null==e)return Gi;const i={};for(const n in e)if(e.hasOwnProperty(n)){let r=e[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,t&&(t[r]=o)}return i}function T(e){return pr(()=>{const t=px(e);return mx(t),t})}function wn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Le(e){return e[hu]||null}function sn(e){return e[jm]||null}function xn(e){return e[Hm]||null}function Yn(e,t){const i=e[ix]||null;if(!i&&!0===t)throw new Error(`Type ${Zt(e)} does not have '\u0275mod' property.`);return i}function px(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Gi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:fx(e.inputs,t),outputs:fx(e.outputs)}}function mx(e){e.features?.forEach(t=>t(e))}function fu(e,t){if(!e)return null;const i=t?xn:VL;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(jL)}const St=0,K=1,Se=2,yt=3,Ai=4,Oc=5,gn=6,Os=7,Ot=8,zr=9,Fs=10,Ce=11,Fc=12,gx=13,Ps=14,Ft=15,Pc=16,Ns=17,Wi=18,Nc=19,_x=20,Ur=21,gr=22,Lc=23,Bc=24,Oe=25,Um=1,bx=2,Qi=7,Ls=9,an=11;function jn(e){return Array.isArray(e)&&"object"==typeof e[Um]}function Cn(e){return Array.isArray(e)&&!0===e[Um]}function $m(e){return 0!=(4&e.flags)}function Io(e){return e.componentOffset>-1}function mu(e){return 1==(1&e.flags)}function Ri(e){return!!e.template}function qm(e){return 0!=(512&e[Se])}function Ao(e,t){return e.hasOwnProperty(mr)?e[mr]:null}let cn=null,gu=!1;function di(e){const t=cn;return cn=e,t}const _u={version: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:()=>{}};function Cx(e){if(!jc(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Sx(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Ex(e){e.dirty=!0,function Dx(e){if(void 0===e.liveConsumerNode)return;const t=gu;gu=!0;try{for(const i of e.liveConsumerNode)i.dirty||Ex(i)}finally{gu=t}}(e),e.consumerMarkedDirty?.(e)}function bu(e){return e&&(e.nextProducerIndex=0),di(e)}function vu(e,t){if(di(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(jc(e))for(let i=e.nextProducerIndex;i0}function Bs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ix=null;function Ox(e){const t=di(null);try{return e()}finally{di(t)}}const Fx=()=>{},t2={..._u,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Fx};class n2{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function kt(){return Px}function Px(e){return e.type.prototype.ngOnChanges&&(e.setInput=o2),r2}function r2(){const e=Lx(this),t=e?.current;if(t){const i=e.previous;if(i===Gi)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function o2(e,t,i,n){const r=this.declaredInputs[i],o=Lx(e)||function s2(e,t){return e[Nx]=t}(e,{previous:Gi,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[r];s[r]=new n2(c&&c.currentValue,t,a===Gi),e[n]=t}kt.ngInherit=!0;const Nx="__ngSimpleChanges__";function Lx(e){return e[Nx]||null}const Yi=function(e,t,i){},Bx="svg";function ht(e){for(;Array.isArray(e);)e=e[St];return e}function xu(e,t){return ht(t[e])}function Hn(e,t){return ht(t[e.index])}function jx(e,t){return e.data[t]}function Vs(e,t){return e[t]}function Kn(e,t){const i=t[e];return jn(i)?i:i[St]}function qr(e,t){return null==t?null:e[t]}function Hx(e){e[Ns]=0}function h2(e){1024&e[Se]||(e[Se]|=1024,Ux(e,1))}function zx(e){1024&e[Se]&&(e[Se]&=-1025,Ux(e,-1))}function Ux(e,t){let i=e[yt];if(null===i)return;i[Oc]+=t;let n=i;for(i=i[yt];null!==i&&(1===t&&1===n[Oc]||-1===t&&0===n[Oc]);)i[Oc]+=t,n=i,i=i[yt]}const ge={lFrame:eC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Gx(){return ge.bindingsEnabled}function js(){return null!==ge.skipHydrationRootTNode}function F(){return ge.lFrame.lView}function Be(){return ge.lFrame.tView}function Ge(e){return ge.lFrame.contextLView=e,e[Ot]}function We(e){return ge.lFrame.contextLView=null,e}function ln(){let e=Wx();for(;null!==e&&64===e.type;)e=e.parent;return e}function Wx(){return ge.lFrame.currentTNode}function Ki(e,t){const i=ge.lFrame;i.currentTNode=e,i.isParent=t}function Jm(){return ge.lFrame.isParent}function eg(){ge.lFrame.isParent=!1}function Dn(){const e=ge.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _r(){return ge.lFrame.bindingIndex}function Hs(){return ge.lFrame.bindingIndex++}function br(e){const t=ge.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function D2(e,t){const i=ge.lFrame;i.bindingIndex=i.bindingRootIndex=e,tg(t)}function tg(e){ge.lFrame.currentDirectiveIndex=e}function ng(e){const t=ge.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Xx(){return ge.lFrame.currentQueryIndex}function ig(e){ge.lFrame.currentQueryIndex=e}function S2(e){const t=e[K];return 2===t.type?t.declTNode:1===t.type?e[gn]:null}function Zx(e,t,i){if(i&Ie.SkipSelf){let r=t,o=e;for(;!(r=r.parent,null!==r||i&Ie.Host||(r=S2(o),null===r||(o=o[Ps],10&r.type))););if(null===r)return!1;t=r,e=o}const n=ge.lFrame=Jx();return n.currentTNode=t,n.lView=e,!0}function rg(e){const t=Jx(),i=e[K];ge.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function Jx(){const e=ge.lFrame,t=null===e?null:e.child;return null===t?eC(e):t}function eC(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function tC(){const e=ge.lFrame;return ge.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const nC=tC;function og(){const e=tC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function En(){return ge.lFrame.selectedIndex}function Ro(e){ge.lFrame.selectedIndex=e}function Dt(){const e=ge.lFrame;return jx(e.tView,e.selectedIndex)}function zs(){ge.lFrame.currentNamespace=Bx}function sg(){!function I2(){ge.lFrame.currentNamespace=null}()}let rC=!0;function Cu(){return rC}function Gr(e){rC=e}function Du(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i=n)break}else t[c]<0&&(e[Ns]+=65536),(a>13>16&&(3&e[Se])===t&&(e[Se]+=8192,sC(a,o)):sC(a,o)}const Us=-1;class zc{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function lg(e){return e!==Us}function Uc(e){return 32767&e}function $c(e,t){let i=function N2(e){return e>>16}(e),n=t;for(;i>0;)n=n[Ps],i--;return n}let dg=!0;function ku(e){const t=dg;return dg=e,t}const aC=255,cC=5;let L2=0;const Xi={};function Tu(e,t){const i=lC(e,t);if(-1!==i)return i;const n=t[K];n.firstCreatePass&&(e.injectorIndex=t.length,ug(n.data,e),ug(t,null),ug(n.blueprint,null));const r=Mu(e,t),o=e.injectorIndex;if(lg(r)){const s=Uc(r),a=$c(r,t),c=a[K].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=r,o}function ug(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lC(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;null!==r;){if(n=gC(r),null===n)return Us;if(i++,r=r[Ps],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Us}function hg(e,t,i){!function B2(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ac)&&(n=i[Ac]),null==n&&(n=i[Ac]=L2++);const r=n&aC;t.data[e+(r>>cC)]|=1<=0?t&aC:U2:t}(i);if("function"==typeof o){if(!Zx(t,e,n))return n&Ie.Host?dC(r,0,n):uC(t,i,n,r);try{let s;if(s=o(n),null!=s||n&Ie.Optional)return s;Am()}finally{nC()}}else if("number"==typeof o){let s=null,a=lC(e,t),c=Us,l=n&Ie.Host?t[Ft][gn]:null;for((-1===a||n&Ie.SkipSelf)&&(c=-1===a?Mu(e,t):t[a+8],c!==Us&&mC(n,!1)?(s=t[K],a=Uc(c),t=$c(c,t)):a=-1);-1!==a;){const d=t[K];if(pC(o,a,d.data)){const u=j2(a,t,i,s,n,l);if(u!==Xi)return u}c=t[a+8],c!==Us&&mC(n,t[K].data[a+8]===l)&&pC(o,a,t)?(s=d,a=Uc(c),t=$c(c,t)):a=-1}}return r}function j2(e,t,i,n,r,o){const s=t[K],a=s.data[e+8],d=Iu(a,s,i,null==n?Io(a)&&dg:n!=s&&0!=(3&a.type),r&Ie.Host&&o===a);return null!==d?Oo(t,s,d,a):Xi}function Iu(e,t,i,n,r){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,d=o>>20,h=r?a+d:e.directiveEnd;for(let f=n?a:a+d;f=c&&m.type===i)return f}if(r){const f=s[c];if(f&&Ri(f)&&f.type===i)return c}return null}function Oo(e,t,i,n){let r=e[i];const o=t.data;if(function O2(e){return e instanceof zc}(r)){const s=r;s.resolving&&function dL(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new I(-200,`Circular dependency in DI detected for ${e}${i}`)}(function Ke(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():xe(e)}(o[i]));const a=ku(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Vn(s.injectImpl):null;Zx(e,n,Ie.Default);try{r=e[i]=s.factory(void 0,o,e,n),t.firstCreatePass&&i>=n.directiveStart&&function A2(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(n){const s=Px(t);(i.preOrderHooks??=[]).push(e,s),(i.preOrderCheckHooks??=[]).push(e,s)}r&&(i.preOrderHooks??=[]).push(0-e,r),o&&((i.preOrderHooks??=[]).push(e,o),(i.preOrderCheckHooks??=[]).push(e,o))}(i,o[i],t)}finally{null!==l&&Vn(l),ku(a),s.resolving=!1,nC()}}return r}function pC(e,t,i){return!!(i[t+(e>>cC)]&1<{const t=e.prototype.constructor,i=t[mr]||fg(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const o=r[mr]||fg(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function fg(e){return Mm(e)?()=>{const t=fg(_e(e));return t&&t()}:Ao(e)}function gC(e){const t=e[K],i=t.type;return 2===i?t.declTNode:1===i?e[gn]:null}function ui(e){return function V2(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const n=i.length;let r=0;for(;r{const n=function pg(e){return function(...i){if(e){const n=e(...i);for(const r in n)this[r]=n[r]}}}(t);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,l,d){const u=c.hasOwnProperty(qs)?c[qs]:Object.defineProperty(c,qs,{value:[]})[qs];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function Ys(e,t){e.forEach(i=>Array.isArray(i)?Ys(i,t):t(i))}function bC(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Au(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wc(e,t){const i=[];for(let n=0;n=0?e[1|n]=i:(n=~n,function X2(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n,t,i)),n}function mg(e,t){const i=Ks(e,t);if(i>=0)return e[1|i]}function Ks(e,t){return function vC(e,t,i){let n=0,r=e.length>>i;for(;r!==n;){const o=n+(r-n>>1),s=e[o<t?r=o:n=o+1}return~(r<|^->||--!>|)/g,yB="\u200b$1\u200b";const yg=new Map;let wB=0;const xg="__ngContext__";function _n(e,t){jn(t)?(e[xg]=t[Nc],function CB(e){yg.set(e[Nc],e)}(t)):e[xg]=t}let Cg;function Dg(e,t){return Cg(e,t)}function Xc(e){const t=e[yt];return Cn(t)?t[yt]:t}function VC(e){return HC(e[Fc])}function jC(e){return HC(e[Ai])}function HC(e){for(;null!==e&&!Cn(e);)e=e[Ai];return e}function Js(e,t,i,n,r){if(null!=n){let o,s=!1;Cn(n)?o=n:jn(n)&&(s=!0,n=n[St]);const a=ht(n);0===e&&null!==i?null==r?qC(t,i,a):Po(t,i,a,r||null,!0):1===e&&null!==i?Po(t,i,a,r||null,!0):2===e?function $u(e,t,i){const n=zu(e,t);n&&function zB(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function qB(e,t,i,n,r){const o=i[Qi];o!==ht(i)&&Js(t,e,n,o,r);for(let a=an;at.replace(vB,yB))}(t))}function ju(e,t,i){return e.createElement(t,i)}function UC(e,t){const i=e[Ls],n=i.indexOf(t);zx(t),i.splice(n,1)}function Hu(e,t){if(e.length<=an)return;const i=an+t,n=e[i];if(n){const r=n[Pc];null!==r&&r!==e&&UC(r,n),t>0&&(e[i-1][Ai]=n[Ai]);const o=Au(e,an+t);!function FB(e,t){Jc(e,t,t[Ce],2,null,null),t[St]=null,t[gn]=null}(n[K],n);const s=o[Wi];null!==s&&s.detachView(o[K]),n[yt]=null,n[Ai]=null,n[Se]&=-129}return n}function Sg(e,t){if(!(256&t[Se])){const i=t[Ce];t[Lc]&&kx(t[Lc]),t[Bc]&&kx(t[Bc]),i.destroyNode&&Jc(e,t,i,3,null,null),function LB(e){let t=e[Fc];if(!t)return kg(e[K],e);for(;t;){let i=null;if(jn(t))i=t[Fc];else{const n=t[an];n&&(i=n)}if(!i){for(;t&&!t[Ai]&&t!==e;)jn(t)&&kg(t[K],t),t=t[yt];null===t&&(t=e),jn(t)&&kg(t[K],t),i=t&&t[Ai]}t=i}}(t)}}function kg(e,t){if(!(256&t[Se])){t[Se]&=-129,t[Se]|=256,function HB(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),o+=2}else i[o].call(n[i[o+1]]);null!==n&&(t[Os]=null);const r=t[Ur];if(null!==r){t[Ur]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[n.directiveStart+r];if(o===li.None||o===li.Emulated)return null}return Hn(n,i)}}(e,t.parent,i)}function Po(e,t,i,n,r){e.insertBefore(t,i,n,r)}function qC(e,t,i){e.appendChild(t,i)}function GC(e,t,i,n,r){null!==n?Po(e,t,i,n,r):qC(e,t,i)}function zu(e,t){return e.parentNode(t)}function WC(e,t,i){return YC(e,t,i)}let Mg,qu,Og,YC=function QC(e,t,i){return 40&e.type?Hn(e,i):null};function Uu(e,t,i,n){const r=Tg(e,n,t),o=t[Ce],a=WC(n.parent||t[gn],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;ce,createScript:e=>e,createScriptURL:e=>e})}catch{}return qu}()?.createHTML(e)||e}class No{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yw})`}}class ZB extends No{getTypeName(){return"HTML"}}class JB extends No{getTypeName(){return"Style"}}class eV extends No{getTypeName(){return"Script"}}class tV extends No{getTypeName(){return"URL"}}class nV extends No{getTypeName(){return"ResourceURL"}}function Zn(e){return e instanceof No?e.changingThisBreaksApplicationSecurity:e}function Zi(e,t){const i=function iV(e){return e instanceof No&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${Yw})`)}return i===t}class lV{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const i=(new window.DOMParser).parseFromString(ea(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class dV{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=ea(t),i}}const hV=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wu(e){return(e=String(e)).match(hV)?e:"unsafe:"+e}function vr(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function el(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const sD=vr("area,br,col,hr,img,wbr"),aD=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cD=vr("rp,rt"),Pg=el(sD,el(aD,vr("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")),el(cD,vr("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")),el(cD,aD)),Ng=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lD=el(Ng,vr("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"),vr("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")),fV=vr("script,style,template");class pV{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!Pg.hasOwnProperty(i))return this.sanitizedSomething=!0,!fV.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=t.attributes;for(let r=0;r"),!0}endElement(t){const i=t.nodeName.toLowerCase();Pg.hasOwnProperty(i)&&!sD.hasOwnProperty(i)&&(this.buf.push(""))}chars(t){this.buf.push(dD(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const mV=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gV=/([^\#-~ |!])/g;function dD(e){return e.replace(/&/g,"&").replace(mV,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gV,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qu;function uD(e,t){let i=null;try{Qu=Qu||function oD(e){const t=new dV(e);return function uV(){try{return!!(new window.DOMParser).parseFromString(ea(""),"text/html")}catch{return!1}}()?new lV(t):t}(e);let n=t?String(t):"";i=Qu.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Qu.getInertBodyElement(n)}while(n!==o);return ea((new pV).sanitizeChildren(Lg(i)||i))}finally{if(i){const n=Lg(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Lg(e){return"content"in e&&function _V(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var dn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(dn||{});function tl(e){const t=function nl(){const e=F();return e&&e[Fs].sanitizer}();return t?t.sanitize(dn.URL,e)||"":Zi(e,"URL")?Zn(e):Wu(xe(e))}class M{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=V({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const il=new M("ENVIRONMENT_INITIALIZER"),pD=new M("INJECTOR",-1),mD=new M("INJECTOR_DEF_TYPES");class Bg{get(t,i=Mc){if(i===Mc){const n=new Error(`NullInjectorError: No provider for ${Zt(t)}!`);throw n.name="NullInjectorError",n}return i}}function DV(...e){return{\u0275providers:gD(0,e),\u0275fromNgModule:!0}}function gD(e,...t){const i=[],n=new Set;let r;const o=s=>{i.push(s)};return Ys(t,s=>{const a=s;Yu(a,o,[],n)&&(r||=[],r.push(a))}),void 0!==r&&_D(r,o),i}function _D(e,t){for(let i=0;i{t(o,n)})}}function Yu(e,t,i,n){if(!(e=_e(e)))return!1;let r=null,o=au(e);const s=!o&&Le(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(o=au(c),!o)return!1;r=c}const a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Yu(l,t,i,n)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;n.add(r);try{Ys(o.imports,d=>{Yu(d,t,i,n)&&(l||=[],l.push(d))})}finally{}void 0!==l&&_D(l,t)}if(!a){const l=Ao(r)||(()=>new r);t({provide:r,useFactory:l,deps:$e},r),t({provide:mD,useValue:r,multi:!0},r),t({provide:il,useValue:()=>E(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=e;jg(c,d=>{t(d,l)})}}}return r!==e&&void 0!==e.providers}function jg(e,t){for(let i of e)Im(i)&&(i=i.\u0275providers),Array.isArray(i)?jg(i,t):t(i)}const EV=Je({provide:String,useValue:Je});function Hg(e){return null!==e&&"object"==typeof e&&EV in e}function Lo(e){return"function"==typeof e}const zg=new M("Set Injector scope."),Ku={},kV={};let Ug;function Xu(){return void 0===Ug&&(Ug=new Bg),Ug}class Jn{}class Zu extends Jn{get destroyed(){return this._destroyed}constructor(t,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qg(t,s=>this.processProvider(s)),this.records.set(pD,na(void 0,this)),r.has("environment")&&this.records.set(Jn,na(void 0,this));const o=this.records.get(zg);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mD.multi,$e,Ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=Hr(this),n=Vn(void 0);try{return t()}finally{Hr(i),Vn(n)}}get(t,i=Mc,n=Ie.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(rx))return t[rx](this);n=du(n);const o=Hr(this),s=Vn(void 0);try{if(!(n&Ie.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function RV(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(t)&&su(t);c=l&&this.injectableDefInScope(l)?na($g(t),Ku):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&Ie.Self?Xu():this.parent).get(t,i=n&Ie.Optional&&i===Mc?null:i)}catch(a){if("NullInjectorError"===a.name){if((a[lu]=a[lu]||[]).unshift(Zt(t)),o)throw a;return function EL(e,t,i,n){const r=e[lu];throw t[tx]&&r.unshift(t[tx]),e.message=function SL(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Zt(t);if(Array.isArray(t))r=t.map(Zt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Zt(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(yL,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[lu]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Vn(s),Hr(o)}}resolveInjectorInitializers(){const t=Hr(this),i=Vn(void 0);try{const r=this.get(il.multi,$e,Ie.Self);for(const o of r)o()}finally{Hr(t),Vn(i)}}toString(){const t=[],i=this.records;for(const n of i.keys())t.push(Zt(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(t){let i=Lo(t=_e(t))?t:_e(t&&t.provide);const n=function MV(e){return Hg(e)?na(void 0,e.useValue):na(yD(e),Ku)}(t);if(Lo(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=na(void 0,Ku,!0),r.factory=()=>Vm(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===Ku&&(i.value=kV,i.value=i.factory()),"object"==typeof i.value&&i.value&&function AV(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=_e(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function $g(e){const t=su(e),i=null!==t?t.factory:Ao(e);if(null!==i)return i;if(e instanceof M)throw new I(204,!1);if(e instanceof Function)return function TV(e){const t=e.length;if(t>0)throw Wc(t,"?"),new I(204,!1);const i=function gL(e){return e&&(e[cu]||e[Xw])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new I(204,!1)}function yD(e,t,i){let n;if(Lo(e)){const r=_e(e);return Ao(r)||$g(r)}if(Hg(e))n=()=>_e(e.useValue);else if(function vD(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...Vm(e.deps||[]));else if(function bD(e){return!(!e||!e.useExisting)}(e))n=()=>E(_e(e.useExisting));else{const r=_e(e&&(e.useClass||e.provide));if(!function IV(e){return!!e.deps}(e))return Ao(r)||$g(r);n=()=>new r(...Vm(e.deps))}return n}function na(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function qg(e,t){for(const i of e)Array.isArray(i)?qg(i,t):i&&Im(i)?qg(i.\u0275providers,t):t(i)}const rl=new M("AppId",{providedIn:"root",factory:()=>OV}),OV="ng",wD=new M("Platform Initializer"),Qr=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_t=new M("AnimationModuleType"),Gg=new M("CSP nonce",{providedIn:"root",factory:()=>function ta(){if(void 0!==Og)return Og;if(typeof document<"u")return document;throw new I(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let xD=(e,t,i)=>null;function e_(e,t,i=!1){return xD(e,t,i)}class UV{}class ED{}class qV{resolveComponentFactory(t){throw function $V(e){const t=Error(`No component factory found for ${Zt(e)}.`);return t.ngComponent=e,t}(t)}}let Bo=(()=>{class t{}return t.NULL=new qV,t})();function GV(){return oa(ln(),F())}function oa(e,t){return new W(Hn(e,t))}let W=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=GV,t})();function WV(e){return e instanceof W?e.nativeElement:e}class al{}let yr=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function QV(){const e=F(),i=Kn(ln().index,e);return(jn(i)?i:e)[Ce]}(),t})(),YV=(()=>{var e;class t{}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>null}),t})();class Vo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const KV=new Vo("16.2.4"),i_={};function ID(e,t=null,i=null,n){const r=AD(e,t,i,n);return r.resolveInjectorInitializers(),r}function AD(e,t=null,i=null,n,r=new Set){const o=[i||$e,DV(e)];return n=n||("object"==typeof e?void 0:Zt(e)),new Zu(o,t||Xu(),n||null,r)}let jt=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return ID({name:""},r,n,"");{const o=n.name??"";return ID({name:o},n.parent,n.providers,o)}}}return(e=t).THROW_IF_NOT_FOUND=Mc,e.NULL=new Bg,e.\u0275prov=V({token:e,providedIn:"any",factory:()=>E(pD)}),e.__NG_ELEMENT_ID__=-1,t})();function s_(e){return t=>{setTimeout(e,void 0,t)}}const U=class ij extends Y{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,n){let r=t,o=i||(()=>null),s=n;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=s_(o),r&&(r=s_(r)),s&&(s=s_(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof Ae&&t.add(a),a}};function RD(...e){}class G{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new U(!1),this.onMicrotaskEmpty=new U(!1),this.onStable=new U(!1),this.onError=new U(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function rj(){const e="function"==typeof ut.requestAnimationFrame;let t=ut[e?"requestAnimationFrame":"setTimeout"],i=ut[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function aj(e){const t=()=>{!function sj(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ut,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,c_(e),e.isCheckStableRunning=!0,a_(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),c_(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(function lj(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return i.invokeTask(r,o,s,a);try{return OD(e),i.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),FD(e)}},onInvoke:(i,n,r,o,s,a,c)=>{try{return OD(e),i.invoke(r,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),FD(e)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,c_(e),a_(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!G.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(G.isInAngularZone())throw new I(909,!1)}run(t,i,n){return this._inner.run(t,i,n)}runTask(t,i,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,oj,RD,RD);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(t,i,n){return this._inner.runGuarded(t,i,n)}runOutsideAngular(t){return this._outer.run(t)}}const oj={};function a_(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function c_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function OD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FD(e){e._nesting--,a_(e)}class cj{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new U,this.onMicrotaskEmpty=new U,this.onStable=new U,this.onError=new U}run(t,i,n){return t.apply(i,n)}runGuarded(t,i,n){return t.apply(i,n)}runOutsideAngular(t){return t()}runTask(t,i,n,r){return t.apply(i,n)}}const PD=new M("",{providedIn:"root",factory:ND});function ND(){const e=j(G);let t=!0;return Rt(new Me(r=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(t),r.complete()})}),new Me(r=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{G.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(iu()))}function wr(e){return e instanceof Function?e():e}let l_=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new I(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>new e}),t})();function cl(e){for(;e;){e[Se]|=64;const t=Xc(e);if(qm(e)&&!t)return e;e=t}return null}function d_(e){return e.ngOriginalError}class Ji{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&d_(t);for(;i&&d_(i);)i=d_(i);return i||null}}const HD=new M("",{providedIn:"root",factory:()=>!1});let oh=null;function qD(e,t){return e[t]??QD()}function GD(e,t){const i=QD();i.producerNode?.length&&(e[t]=oh,i.lView=e,oh=WD())}const vj={..._u,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{cl(e.lView)},lView:null};function WD(){return Object.create(vj)}function QD(){return oh??=WD(),oh}const De={};function x(e){YD(Be(),F(),En()+e,!1)}function YD(e,t,i,n){if(!n)if(3==(3&t[Se])){const o=e.preOrderCheckHooks;null!==o&&Eu(t,o,i)}else{const o=e.preOrderHooks;null!==o&&Su(t,o,0,i)}Ro(i)}function p(e,t=Ie.Default){const i=F();return null===i?E(e,t):hC(ln(),i,_e(e),t)}function jo(){throw new Error("invalid")}function sh(e,t,i,n,r,o,s,a,c,l,d){const u=t.blueprint.slice();return u[St]=r,u[Se]=140|n,(null!==l||e&&2048&e[Se])&&(u[Se]|=2048),Hx(u),u[yt]=u[Ps]=e,u[Ot]=i,u[Fs]=s||e&&e[Fs],u[Ce]=a||e&&e[Ce],u[zr]=c||e&&e[zr]||null,u[gn]=o,u[Nc]=function xB(){return wB++}(),u[gr]=d,u[_x]=l,u[Ft]=2==t.type?e[Ft]:u,u}function ca(e,t,i,n,r){let o=e.data[t];if(null===o)o=function u_(e,t,i,n,r){const o=Wx(),s=Jm(),c=e.data[t]=function kj(e,t,i,n,r,o){let s=t?t.injectorIndex:-1,a=0;return js()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,i,t,n,r);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,t,i,n,r),function C2(){return ge.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=i,o.value=n,o.attrs=r;const s=function Hc(){const e=ge.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Ki(o,!0),o}function ll(e,t,i,n){if(0===i)return-1;const r=t.length;for(let o=0;oOe&&YD(e,t,Oe,!1),Yi(a?2:0,r);const l=a?o:null,d=bu(l);try{null!==l&&(l.dirty=!1),i(n,r)}finally{vu(l,d)}}finally{a&&null===t[Lc]&&GD(t,Lc),Ro(s),Yi(a?3:1,r)}}function h_(e,t,i){if($m(t)){const n=di(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function JD(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const o=e[r];null===n?eE(i,t,r,o):n.hasOwnProperty(r)&&eE(i,t,n[r],o)}return i}function eE(e,t,i,n){e.hasOwnProperty(i)?e[i].push(t,n):e[i]=[t,n]}function ei(e,t,i,n,r,o,s,a){const c=Hn(t,i);let d,l=t.inputs;!a&&null!=l&&(d=l[n])?(y_(e,i,d,n,r),Io(t)&&function Ij(e,t){const i=Kn(t,e);16&i[Se]||(i[Se]|=64)}(i,t.index)):3&t.type&&(n=function Mj(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),r=null!=s?s(r,t.value||"",n):r,o.setProperty(c,n,r))}function g_(e,t,i,n){if(Gx()){const r=null===n?null:{"":-1},o=function Nj(e,t){const i=e.directiveRegistry;let n=null,r=null;if(i)for(let o=0;o0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(s)!=a&&s.push(a),s.push(i,n,o)}}(e,t,n,ll(e,i,r.hostVars,De),r)}function er(e,t,i,n,r,o){const s=Hn(e,t);!function b_(e,t,i,n,r,o,s){if(null==o)e.removeAttribute(t,r,i);else{const a=null==s?xe(o):s(o,n||"",r);e.setAttribute(t,r,a,i)}}(t[Ce],s,o,e.value,i,n,r)}function zj(e,t,i,n,r,o){const s=o[t];if(null!==s)for(let a=0;a{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const s=typeof Zone>"u"?null:Zone.current,a=function e2(e,t,i){const n=Object.create(t2);i&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const r=s=>{n.cleanupFn=s};return n.ref={notify:()=>Ex(n),run:()=>{if(n.dirty=!1,n.hasRun&&!Sx(n))return;n.hasRun=!0;const s=bu(n);try{n.cleanupFn(),n.cleanupFn=Fx,n.fn(r)}finally{vu(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,d=>{this.all.has(d)&&this.queue.set(d,s)},o);let c;this.all.add(a),a.notify();const l=()=>{a.cleanup(),c?.(),this.all.delete(a),this.queue.delete(a)};return c=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>new e}),t})();function ch(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,o=0;if(null!==t)for(let s=0;s0){fE(e,1);const r=i.components;null!==r&&mE(e,r,1)}}function mE(e,t,i){for(let n=0;n-1&&(Hu(t,n),Au(i,n))}this._attachedToViewContainer=!1}Sg(this._lView[K],this._lView)}onDestroy(t){!function $x(e,t){if(256==(256&e[Se]))throw new I(911,!1);null===e[Ur]&&(e[Ur]=[]),e[Ur].push(t)}(this._lView,t)}markForCheck(){cl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Se]&=-129}reattach(){this._lView[Se]|=128}detectChanges(){lh(this._lView[K],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function NB(e,t){Jc(e,t,t[Ce],2,null,null)}(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t}}class Xj extends ul{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;lh(t[K],t,t[Ot],!1)}checkNoChanges(){}get context(){return null}}class gE extends Bo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=Le(t);return new hl(i,this.ngModule)}}function _E(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class Jj{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=du(n);const r=this.injector.get(t,i_,n);return r!==i_||i===i_?r:this.parentInjector.get(t,i,n)}}class hl extends ED{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=_E(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return _E(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function NL(e){return e.map(PL).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let o=(r=r||this.ngModule)instanceof Jn?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new Jj(t,o):t,a=s.get(al,null);if(null===a)throw new I(407,!1);const u={rendererFactory:a,sanitizer:s.get(YV,null),effectManager:s.get(dE,null),afterRenderEventManager:s.get(l_,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",m=n?function xj(e,t,i,n){const o=n.get(HD,!1)||i===li.ShadowDom,s=e.selectRootElement(t,o);return function Cj(e){ZD(e)}(s),s}(h,n,this.componentDef.encapsulation,s):ju(h,f,function Zj(e){const t=e.toLowerCase();return"svg"===t?Bx:"math"===t?"math":null}(f)),_=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==m&&(v=e_(m,s,!0));const C=m_(0,null,null,1,0,null,null,null,null,null,null),S=sh(null,C,null,_,null,null,u,h,s,null,v);let N,L;rg(S);try{const q=this.componentDef;let oe,Ne=null;q.findHostDirectiveDefs?(oe=[],Ne=new Map,q.findHostDirectiveDefs(q,oe,Ne),oe.push(q)):oe=[q];const qe=function t3(e,t){const i=e[K],n=Oe;return e[n]=t,ca(i,n,2,"#host",null)}(S,m),At=function n3(e,t,i,n,r,o,s){const a=r[K];!function r3(e,t,i,n){for(const r of e)t.mergedAttrs=Rc(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(ch(t,t.mergedAttrs,!0),null!==i&&tD(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=e_(t,r[zr]));const l=o.rendererFactory.createRenderer(t,i);let d=16;i.signals?d=4096:i.onPush&&(d=64);const u=sh(r,XD(i),null,d,r[e.index],e,o,l,null,null,c);return a.firstCreatePass&&__(a,e,n.length-1),ah(r,u),r[e.index]=u}(qe,m,q,oe,S,u,h);L=jx(C,Oe),m&&function s3(e,t,i,n){if(n)zm(e,i,["ng-version",KV.full]);else{const{attrs:r,classes:o}=function LL(e){const t=[],i=[];let n=1,r=2;for(;n0&&eD(e,i,o.join(" "))}}(h,q,m,n),void 0!==i&&function a3(e,t,i){const n=e.projection=[];for(let r=0;r=0;n--){const r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=Rc(r.hostAttrs,i=Rc(i,r.hostAttrs))}}(n)}function dh(e){return e===Gi?{}:e===$e?[]:e}function d3(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function u3(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,o)=>{t(n,r,o),i(n,r,o)}:t}function h3(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function x_(e){const t=e.inputConfig,i={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}e.inputTransforms=i}function uh(e){return!!C_(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function C_(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function tr(e,t,i){return e[t]=i}function bn(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function Ho(e,t,i,n){const r=bn(e,t,i);return bn(e,t+1,n)||r}function de(e,t,i,n){const r=F();return bn(r,Hs(),t)&&(Be(),er(Dt(),r,e,t,i,n)),de}function da(e,t,i,n){return bn(e,Hs(),i)?t+xe(i)+n:De}function ha(e,t,i,n,r,o,s,a){const l=function hh(e,t,i,n,r){const o=Ho(e,t,i,n);return bn(e,t+2,r)||o}(e,_r(),i,r,s);return br(3),l?t+xe(i)+n+xe(r)+o+xe(s)+a:De}function A(e,t,i,n,r,o,s,a){const c=F(),l=Be(),d=e+Oe,u=l.firstCreatePass?function L3(e,t,i,n,r,o,s,a,c){const l=t.consts,d=ca(t,e,4,s||null,qr(l,a));g_(t,i,d,qr(l,c)),Du(t,d);const u=d.tView=m_(2,d,n,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,l,c,t,i,n,r,o,s):l.data[d];Ki(u,!1);const h=FE(l,c,u,e);Cu()&&Uu(l,c,h,u),_n(h,c),ah(c,c[d]=rE(h,c,h,u)),mu(u)&&f_(l,c,u),null!=s&&p_(c,u,a)}let FE=function PE(e,t,i,n){return Gr(!0),t[Ce].createComment("")};function un(e){return Vs(function x2(){return ge.lFrame.contextLView}(),Oe+e)}function D(e,t,i){const n=F();return bn(n,Hs(),t)&&ei(Be(),Dt(),n,e,t,n[Ce],i,!1),D}function M_(e,t,i,n,r){const s=r?"class":"style";y_(e,i,t.inputs[s],s,n)}function y(e,t,i,n){const r=F(),o=Be(),s=Oe+e,a=r[Ce],c=o.firstCreatePass?function H3(e,t,i,n,r,o){const s=t.consts,c=ca(t,e,2,n,qr(s,r));return g_(t,i,c,qr(s,o)),null!==c.attrs&&ch(c,c.attrs,!1),null!==c.mergedAttrs&&ch(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,r,t,i,n):o.data[s],l=NE(o,r,c,a,t,e);r[s]=l;const d=mu(c);return Ki(c,!0),tD(a,l,c),32!=(32&c.flags)&&Cu()&&Uu(o,r,l,c),0===function p2(){return ge.lFrame.elementDepthCount}()&&_n(l,r),function m2(){ge.lFrame.elementDepthCount++}(),d&&(f_(o,r,c),h_(o,c,r)),null!==n&&p_(r,c),y}function w(){let e=ln();Jm()?eg():(e=e.parent,Ki(e,!1));const t=e;(function _2(e){return ge.skipHydrationRootTNode===e})(t)&&function w2(){ge.skipHydrationRootTNode=null}(),function g2(){ge.lFrame.elementDepthCount--}();const i=Be();return i.firstCreatePass&&(Du(i,e),$m(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function F2(e){return 0!=(8&e.flags)}(t)&&M_(i,t,F(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function P2(e){return 0!=(16&e.flags)}(t)&&M_(i,t,F(),t.stylesWithoutHost,!1),w}function ie(e,t,i,n){return y(e,t,i,n),w(),ie}let NE=(e,t,i,n,r,o)=>(Gr(!0),ju(n,r,function iC(){return ge.lFrame.currentNamespace}()));function Ht(e,t,i){const n=F(),r=Be(),o=e+Oe,s=r.firstCreatePass?function $3(e,t,i,n,r){const o=t.consts,s=qr(o,n),a=ca(t,e,8,"ng-container",s);return null!==s&&ch(a,s,!0),g_(t,i,a,qr(o,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,r,n,t,i):r.data[o];Ki(s,!0);const a=LE(r,n,s,e);return n[o]=a,Cu()&&Uu(r,n,a,s),_n(a,n),mu(s)&&(f_(r,n,s),h_(r,s,n)),null!=i&&p_(n,s),Ht}function zt(){let e=ln();const t=Be();return Jm()?eg():(e=e.parent,Ki(e,!1)),t.firstCreatePass&&(Du(t,e),$m(e)&&t.queries.elementEnd(e)),zt}function nr(e,t,i){return Ht(e,t,i),zt(),nr}let LE=(e,t,i,n)=>(Gr(!0),Eg(t[Ce],""));function Pt(){return F()}function _l(e){return!!e&&"function"==typeof e.then}function BE(e){return!!e&&"function"==typeof e.subscribe}function $(e,t,i,n){const r=F(),o=Be(),s=ln();return VE(o,r,r[Ce],s,e,t,n),$}function gh(e,t){const i=ln(),n=F(),r=Be();return VE(r,n,cE(ng(r.data),i,n),i,e,t),gh}function VE(e,t,i,n,r,o,s){const a=mu(n),l=e.firstCreatePass&&aE(e),d=t[Ot],u=sE(t);let h=!0;if(3&n.type||s){const g=Hn(n,t),b=s?s(g):g,_=u.length,v=s?S=>s(ht(S[n.index])):n.index;let C=null;if(!s&&a&&(C=function W3(e,t,i,n){const r=e.cleanup;if(null!=r)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,t,r,n.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,h=!1;else{o=HE(n,t,d,o,!1);const S=i.listen(b,r,o);u.push(o,S),l&&l.push(r,v,_,_+1)}}else o=HE(n,t,d,o,!1);const f=n.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let b=0;b-1?Kn(e.index,t):t);let c=jE(t,i,n,s),l=o.__ngNextListenerFn__;for(;l;)c=jE(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function B(e=1){return function k2(e){return(ge.lFrame.contextLView=function T2(e,t){for(;e>0;)t=t[Ps],e--;return t}(e,ge.lFrame.contextLView))[Ot]}(e)}function Q3(e,t){let i=null;const n=function AL(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let r=0;r>17&32767}function R_(e){return 2|e}function zo(e){return(131068&e)>>2}function O_(e,t){return-131069&e|t<<2}function F_(e){return 1|e}function KE(e,t,i,n,r){const o=e[i+1],s=null===t;let a=n?Yr(o):zo(o),c=!1;for(;0!==a&&(!1===c||s);){const d=e[a+1];eH(e[a],t)&&(c=!0,e[a+1]=n?F_(d):R_(d)),a=n?Yr(d):zo(d)}c&&(e[i+1]=n?R_(o):F_(o))}function eH(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ks(e,t)>=0}const en={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function XE(e){return e.substring(en.key,en.keyEnd)}function ZE(e,t){const i=en.textEnd;return i===t?-1:(t=en.keyEnd=function rH(e,t,i){for(;t32;)t++;return t}(e,en.key=t,i),ba(e,t,i))}function ba(e,t,i){for(;t=0;i=ZE(t,i))Xn(e,XE(t),!0)}function Oi(e,t,i,n){const r=F(),o=Be(),s=br(2);o.firstUpdatePass&&rS(o,e,s,n),t!==De&&bn(r,s,t)&&sS(o,o.data[En()],r,r[Ce],e,r[s+1]=function mH(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Zt(Zn(e)))),e}(t,i),n,s)}function Fi(e,t,i,n){const r=Be(),o=br(2);r.firstUpdatePass&&rS(r,null,o,n);const s=F();if(i!==De&&bn(s,o,i)){const a=r.data[En()];if(cS(a,n)&&!iS(r,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(i=Tm(c,i||"")),M_(r,a,s,i,n)}else!function pH(e,t,i,n,r,o,s,a){r===De&&(r=$e);let c=0,l=0,d=0=e.expandoStartIndex}function rS(e,t,i,n){const r=e.data;if(null===r[i+1]){const o=r[En()],s=iS(e,i);cS(o,n)&&null===t&&!s&&(t=!1),t=function cH(e,t,i,n){const r=ng(e);let o=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=bl(i=P_(null,e,t,i,n),t.attrs,n),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=P_(r,e,t,i,n),null===o){let c=function lH(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==zo(n))return e[Yr(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=P_(null,e,t,c[1],n),c=bl(c,t.attrs,n),function dH(e,t,i,n){e[Yr(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else o=function uH(e,t,i){let n;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(l=!0)):d=i,r)if(0!==c){const h=Yr(e[a+1]);e[n+1]=_h(h,a),0!==h&&(e[h+1]=O_(e[h+1],n)),e[a+1]=function K3(e,t){return 131071&e|t<<17}(e[a+1],n)}else e[n+1]=_h(a,0),0!==a&&(e[a+1]=O_(e[a+1],n)),a=n;else e[n+1]=_h(c,0),0===a?a=n:e[c+1]=O_(e[c+1],n),c=n;l&&(e[n+1]=R_(e[n+1])),KE(e,d,n,!0),KE(e,d,n,!1),function J3(e,t,i,n,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ks(o,t)>=0&&(i[n+1]=F_(i[n+1]))}(t,d,e,n,o),s=_h(a,c),o?t.classBindings=s:t.styleBindings=s}(r,o,t,i,s,n)}}function P_(e,t,i,n,r){let o=null;const s=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const c=e[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=i[r+1];h===De&&(h=u?$e:void 0);let f=u?mg(h,n):d===n?h:void 0;if(l&&!vh(f)&&(f=mg(c,n)),vh(f)&&(a=f,s))return a;const m=e[r+1];r=s?Yr(m):zo(m)}if(null!==t){let c=o?t.residualClasses:t.residualStyles;null!=c&&(a=mg(c,n))}return a}function vh(e){return void 0!==e}function cS(e,t){return 0!=(e.flags&(t?8:16))}function R(e,t=""){const i=F(),n=Be(),r=e+Oe,o=n.firstCreatePass?ca(n,r,1,t,null):n.data[r],s=lS(n,i,o,t,e);i[r]=s,Cu()&&Uu(n,i,s,o),Ki(o,!1)}let lS=(e,t,i,n,r)=>(Gr(!0),function Vu(e,t){return e.createText(t)}(t[Ce],n));function bt(e){return Ue("",e,""),bt}function Ue(e,t,i){const n=F(),r=da(n,e,t,i);return r!==De&&xr(n,En(),r),Ue}function Uo(e,t,i,n,r){const o=F(),s=function ua(e,t,i,n,r,o){const a=Ho(e,_r(),i,r);return br(2),a?t+xe(i)+n+xe(r)+o:De}(o,e,t,i,n,r);return s!==De&&xr(o,En(),s),Uo}function N_(e,t,i,n,r,o,s){const a=F(),c=ha(a,e,t,i,n,r,o,s);return c!==De&&xr(a,En(),c),N_}function pi(e,t,i){const n=F();return bn(n,Hs(),t)&&ei(Be(),Dt(),n,e,t,n[Ce],i,!0),pi}function yh(e,t,i){const n=F();if(bn(n,Hs(),t)){const o=Be(),s=Dt();ei(o,s,n,e,t,cE(ng(o.data),s,n),i,!0)}return yh}const $o=void 0;var NH=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function PH(e){const i=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===n?1:5}];let va={};function Tn(e){const t=function LH(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=kS(t);if(i)return i;const n=t.split("-")[0];if(i=kS(n),i)return i;if("en"===n)return NH;throw new I(701,!1)}function kS(e){return e in va||(va[e]=ut.ng&&ut.ng.common&&ut.ng.common.locales&&ut.ng.common.locales[e]),va[e]}var ft=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(ft||{});const ya="en-US";let TS=ya;function V_(e,t,i,n,r){if(e=_e(e),Array.isArray(e))for(let o=0;o>20;if(Lo(e)||!e.multi){const f=new zc(l,r,p),m=H_(c,t,r?d:d+h,u);-1===m?(hg(Tu(a,s),o,c),j_(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(f),s.push(f)):(i[m]=f,s[m]=f)}else{const f=H_(c,t,d+h,u),m=H_(c,t,d,d+h),b=m>=0&&i[m];if(r&&!b||!r&&!(f>=0&&i[f])){hg(Tu(a,s),o,c);const _=function N4(e,t,i,n,r){const o=new zc(e,i,p);return o.multi=[],o.index=t,o.componentProviders=0,JS(o,r,n&&!i),o}(r?P4:F4,i.length,r,n,l);!r&&b&&(i[m].providerFactory=_),j_(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(_),s.push(_)}else j_(o,e,f>-1?f:m,JS(i[r?m:f],l,!r&&n));!r&&n&&b&&i[m].componentProviders++}}}function j_(e,t,i,n){const r=Lo(t),o=function SV(e){return!!e.useClass}(t);if(r||o){const c=(o?_e(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const d=l.indexOf(i);-1===d?l.push(i,[n,c]):l[d+1].push(n,c)}else l.push(i,c)}}}function JS(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function H_(e,t,i,n){for(let r=i;r{i.providersResolver=(n,r)=>function O4(e,t,i){const n=Be();if(n.firstCreatePass){const r=Ri(e);V_(i,n.data,n.blueprint,r,!0),V_(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class qo{}class ek{}class U_ extends qo{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new gE(this);const r=Yn(t);this._bootstrapComponents=wr(r.bootstrap),this._r3Injector=AD(t,i,[{provide:qo,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver},...n],Zt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $_ extends ek{constructor(t){super(),this.moduleType=t}create(t){return new U_(this.moduleType,t,[])}}class tk extends qo{constructor(t){super(),this.componentFactoryResolver=new gE(this),this.instance=null;const i=new Zu([...t.providers,{provide:qo,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],t.parent||Xu(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function q_(e,t,i=null){return new tk({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let V4=(()=>{var e;class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=gD(0,n.type),o=r.length>0?q_([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(E(Jn))}),t})();function nk(e){e.getStandaloneInjector=t=>t.get(V4).getOrCreateStandaloneInjector(e)}function Dl(e,t){const i=e[t];return i===De?void 0:i}function hk(e,t,i,n,r,o){const s=t+i;return bn(e,s,r)?tr(e,s+1,o?n.call(o,r):n(r)):Dl(e,s+1)}function fk(e,t,i,n,r,o,s){const a=t+i;return Ho(e,a,r,o)?tr(e,a+2,s?n.call(s,r,o):n(r,o)):Dl(e,a+2)}function Ut(e,t){const i=Be();let n;const r=e+Oe;i.firstCreatePass?(n=function tz(e,t){if(t)for(let i=t.length-1;i>=0;i--){const n=t[i];if(e===n.name)return n}}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];const o=n.factory||(n.factory=Ao(n.type)),a=Vn(p);try{const c=ku(!1),l=o();return ku(c),function j3(e,t,i,n){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=n}(i,F(),r,l),l}finally{Vn(a)}}function tn(e,t,i){const n=e+Oe,r=F(),o=Vs(r,n);return El(r,n)?hk(r,Dn(),t,o.transform,i,o):o.transform(i)}function El(e,t){return e[K].data[t].pure}function oz(){return this._results[Symbol.iterator]()}class Cr{get changes(){return this._changes||(this._changes=new U)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Cr.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=oz)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const n=this;n.dirty=!1;const r=function hi(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Y2(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n0&&(i[r-1][Ai]=t),n{class t{}return t.__NG_ELEMENT_ID__=dz,t})();const cz=ct,lz=class extends cz{constructor(t,i,n){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,n){const r=function sz(e,t,i,n){const r=t.tView,a=sh(e,r,i,4096&e[Se]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[Pc]=e[t.index];const l=e[Wi];return null!==l&&(a[Wi]=l.createEmbeddedView(r)),w_(r,a,i),a}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new ul(r)}};function dz(){return Eh(ln(),F())}function Eh(e,t){return 4&e.type?new lz(t,e,oa(e,t)):null}let pt=(()=>{class t{}return t.__NG_ELEMENT_ID__=gz,t})();function gz(){return Dk(ln(),F())}const _z=pt,xk=class extends _z{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Sn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Mu(this._hostTNode,this._hostLView);if(lg(t)){const i=$c(t,this._hostLView),n=Uc(t);return new Sn(i[K].data[n+8],i)}return new Sn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=Ck(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-an}createEmbeddedView(t,i,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=t.createEmbeddedViewImpl(i||{},o,null);return this.insertImpl(a,r,false),a}createComponent(t,i,n,r,o){const s=t&&!function Gc(e){return"function"==typeof e}(t);let a;if(s)a=i;else{const g=i||{};a=g.index,n=g.injector,r=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const c=s?t:new hl(Le(t)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const b=(s?l:this.parentInjector).get(Jn,null);b&&(o=b)}Le(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,a,false),f}insert(t,i){return this.insertImpl(t,i,!1)}insertImpl(t,i,n){const r=t._lView;if(function u2(e){return Cn(e[yt])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[yt],d=new xk(l,l[gn],l[yt]);d.detach(d.indexOf(t))}}const s=this._adjustIndex(i),a=this._lContainer;return az(a,r,s,!n),t.attachToViewContainerRef(),bC(W_(a),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=Ck(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=Hu(this._lContainer,i);n&&(Au(W_(this._lContainer),i),Sg(n[K],n))}detach(t){const i=this._adjustIndex(t,-1),n=Hu(this._lContainer,i);return n&&null!=Au(W_(this._lContainer),i)?new ul(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function Ck(e){return e[8]}function W_(e){return e[8]||(e[8]=[])}function Dk(e,t){let i;const n=t[e.index];return Cn(n)?i=n:(i=rE(n,t,null,e),t[e.index]=i,ah(t,i)),Ek(i,t,e,n),new xk(i,e,t)}let Ek=function Sk(e,t,i,n){if(e[Qi])return;let r;r=8&i.type?ht(n):function bz(e,t){const i=e[Ce],n=i.createComment(""),r=Hn(t,e);return Po(i,zu(i,r),n,function UB(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[Qi]=r};class Q_{constructor(t){this.queryList=t,this.matches=null}clone(){return new Q_(this.queryList)}setDirty(){this.queryList.setDirty()}}class Y_{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const n=null!==t.contentQueries?t.contentQueries[0]:i.length,r=[];for(let o=0;o0)n.push(s[a/2]);else{const l=o[a+1],d=t[-c];for(let u=an;u{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=j(rb,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const s=o();if(_l(s))n.push(s);else if(BE(s)){const a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Qk=(()=>{var e;class t{log(n){console.log(n)}warn(n){console.warn(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const or=new M("LocaleId",{providedIn:"root",factory:()=>j(or,Ie.Optional|Ie.SkipSelf)||function Wz(){return typeof $localize<"u"&&$localize.locale||ya}()});let Mh=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dt(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Kz{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let Yk=(()=>{var e;class t{compileModuleSync(n){return new $_(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=wr(Yn(n).declarations).reduce((a,c)=>{const l=Le(c);return l&&a.push(new hl(l)),a},[]);return new Kz(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Jk=new M(""),Ah=new M("");let db,cb=(()=>{var e;class t{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,db||(function _5(e){db=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,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 n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(E(G),E(lb),E(Ah))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),lb=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return db?.findTestabilityInTree(this,n,r)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Kr=null;const eT=new M("AllowMultipleToken"),ub=new M("PlatformDestroyListeners"),hb=new M("appBootstrapListener");class nT{constructor(t,i){this.name=t,this.token=i}}function rT(e,t,i=[]){const n=`Platform: ${t}`,r=new M(n);return(o=[])=>{let s=fb();if(!s||s.injector.get(eT,!1)){const a=[...i,...o,{provide:r,useValue:!0}];e?e(a):function y5(e){if(Kr&&!Kr.get(eT,!1))throw new I(400,!1);(function tT(){!function YL(e){Ix=e}(()=>{throw new I(600,!1)})})(),Kr=e;const t=e.get(sT);(function iT(e){e.get(wD,null)?.forEach(i=>i())})(e)}(function oT(e=[],t){return jt.create({name:t,providers:[{provide:zg,useValue:"platform"},{provide:ub,useValue:new Set([()=>Kr=null])},...e]})}(a,n))}return function x5(e){const t=fb();if(!t)throw new I(401,!1);return t}()}}function fb(){return Kr?.get(sT)??null}let sT=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function C5(e="zone.js",t){return"noop"===e?new cj:"zone.js"===e?new G(t):e}(r?.ngZone,function aT(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const s=function B4(e,t,i){return new U_(e,t,i)}(n.moduleType,this.injector,function hT(e){return[{provide:G,useFactory:e},{provide:il,multi:!0,useFactory:()=>{const t=j(E5,{optional:!0});return()=>t.initialize()}},{provide:uT,useFactory:D5},{provide:PD,useFactory:ND}]}(()=>o)),a=s.injector.get(Ji,null);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:l=>{a.handleError(l)}});s.onDestroy(()=>{Rh(this._modules,s),c.unsubscribe()})}),function cT(e,t,i){try{const n=i();return _l(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(a,o,()=>{const c=s.injector.get(ob);return c.runInitializers(),c.donePromise.then(()=>(function MS(e){ci(e,"Expected localeId to be defined"),"string"==typeof e&&(TS=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(or,ya)||ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const o=lT({},r);return function b5(e,t,i){const n=new $_(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const r=n.injector.get(Xr);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new I(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ub,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(E(jt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function lT(e,t){return Array.isArray(t)?t.reduce(lT,e):{...e,...t}}let Xr=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=j(uT),this.zoneIsStable=j(PD),this.componentTypes=[],this.components=[],this.isStable=j(Mh).hasPendingTasks.pipe(Vt(n=>n?re(!1):this.zoneIsStable),Is(),iu()),this._injector=j(Jn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ED;if(!this._injector.get(ob).done)throw!o&&function Rs(e){const t=Le(e)||sn(e)||xn(e);return null!==t&&t.standalone}(n),new I(405,!1);let a;a=o?n:this._injector.get(Bo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const c=function v5(e){return e.isBoundToModule}(a)?void 0:this._injector.get(qo),d=a.create(jt.NULL,[],r||a.selector,c),u=d.location.nativeElement,h=d.injector.get(Jk,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),Rh(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new I(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Rh(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(hb,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Rh(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Rh(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const uT=new M("",{providedIn:"root",factory:()=>j(Ji).handleError.bind(void 0)});function D5(){const e=j(G),t=j(Ji);return i=>e.runOutsideAngular(()=>t.handleError(i))}let E5=(()=>{var e;class t{constructor(){this.zone=j(G),this.applicationRef=j(Xr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let Fe=(()=>{class t{}return t.__NG_ELEMENT_ID__=k5,t})();function k5(e){return function T5(e,t,i){if(Io(e)&&!i){const n=Kn(e.index,t);return new ul(n,n)}return 47&e.type?new ul(t[Ft],t):null}(ln(),F(),16==(16&e))}class gT{constructor(){}supports(t){return uh(t)}create(t){return new F5(t)}}const O5=(e,t)=>t;class F5{constructor(t){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=t||O5}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){const s=!n||i&&i.currentIndex{s=this._trackByFn(r,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,n,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,o,r)):t=this._addAfter(new P5(i,n),o,r),t}_verifyReinsertion(t,i,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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(t,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,i,n),this._addToMoves(t,n),t}_moveAfter(t,i,n){return this._unlink(t),this._insertAfter(t,i,n),this._addToMoves(t,n),t}_addAfter(t,i,n){return this._insertAfter(t,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,n){const r=null===i?this._itHead:i._next;return t._next=r,t._prev=i,null===r?this._itTail=t:r._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new _T),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,n=t._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _T),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class P5{constructor(t,i){this.item=t,this.trackById=i,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 N5{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const i=t._prevDup,n=t._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class _T{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new N5,this.map.set(i,n)),n.add(t)}get(t,i){const r=this.map.get(t);return r?r.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bT(e,t,i){const n=e.previousIndex;if(null===n)return n;let r=0;return i&&n{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{const o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const n=t._prev;return i._next=t,i._prev=n,t._prev=i,n&&(n._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,i);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const n=new B5(t);return this._records.set(t,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(n=>i(t[n],n))}}class B5{constructor(t){this.key=t,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 yT(){return new Dr([new gT])}let Dr=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||yT()),deps:[[t,new Qc,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new I(901,!1)}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:yT}),t})();function wT(){return new Tl([new vT])}let Tl=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||wT()),deps:[[t,new Qc,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new I(901,!1)}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:wT}),t})();const H5=rT(null,"core",[]);let z5=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(E(Xr))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();function vb(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}let yb=null;function Zr(){return yb}class n8{}const he=new M("DocumentToken");let wb=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(r8)},providedIn:"platform"}),t})();const i8=new M("Location Initialized");let r8=(()=>{var e;class t extends wb{constructor(){super(),this._doc=j(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zr().getBaseHref(this._doc)}onPopState(n){const r=Zr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Zr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function xb(e,t){if(0==e.length)return t;if(0==t.length)return e;let i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,2==i?e+t.substring(1):1==i?e+t:e+"/"+t}function IT(e){const t=e.match(/#|\?|$/),i=t&&t.index||e.length;return e.slice(0,i-("/"===e[i-1]?1:0))+e.slice(i)}function Er(e){return e&&"?"!==e[0]?"?"+e:e}let Wo=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(RT)},providedIn:"root"}),t})();const AT=new M("appBaseHref");let RT=(()=>{var e;class t extends Wo{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??j(he).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return xb(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Er(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){const a=this.prepareExternalUrl(o+Er(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){const a=this.prepareExternalUrl(o+Er(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(wb),E(AT,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),o8=(()=>{var e;class t extends Wo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=xb(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Er(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Er(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(wb),E(AT,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),Nh=(()=>{var e;class t{constructor(n){this._subject=new U,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function c8(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(IT(OT(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Er(r))}normalize(n){return t.stripTrailingSlash(function a8(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,OT(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Er(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Er(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return(e=t).normalizeQueryParams=Er,e.joinWithSlash=xb,e.stripTrailingSlash=IT,e.\u0275fac=function(n){return new(n||e)(E(Wo))},e.\u0275prov=V({token:e,factory:function(){return function s8(){return new Nh(E(Wo))}()},providedIn:"root"}),t})();function OT(e){return e.replace(/\/index.html$/,"")}var Lh=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Lh||{}),Nt=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Nt||{});function mi(e,t){const i=Tn(e),n=i[ft.NumberSymbols][t];if(typeof n>"u"){if(t===Nt.CurrencyDecimal)return i[ft.NumberSymbols][Nt.Decimal];if(t===Nt.CurrencyGroup)return i[ft.NumberSymbols][Nt.Group]}return n}const P8=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ib(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function zT(e,t){t=encodeURIComponent(t);for(const i of e.split(";")){const n=i.indexOf("="),[r,o]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const Rb=/\s+/,UT=[];let Ea=(()=>{var e;class t{constructor(n,r,o,s){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=s,this.initialClasses=UT,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(Rb):UT}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(Rb):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(Rb).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Dr),p(Tl),p(W),p(yr))},e.\u0275dir=T({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class W8{constructor(t,i,n,r){this.$implicit=t,this.ngForOf=i,this.index=n,this.count=r}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 Wh=(()=>{var e;class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new W8(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===s?void 0:s);else if(null!==s){const c=r.get(s);r.move(c,a),qT(c,o)}});for(let o=0,s=r.length;o{qT(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(ct),p(Dr))},e.\u0275dir=T({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function qT(e,t){e.context.$implicit=t.item}let _i=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new Q8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){GT("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){GT("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(ct))},e.\u0275dir=T({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Q8{constructor(){this.$implicit=null,this.ngIf=null}}function GT(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Zt(t)}'.`)}class Ob{constructor(t,i){this._viewContainerRef=t,this._templateRef=i,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Sa=(()=>{var e;class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(const r of this._defaultViews)r.enforceState(n)}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),Qh=(()=>{var e;class t{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new Ob(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(ct),p(Sa,9))},e.\u0275dir=T({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),WT=(()=>{var e;class t{constructor(n,r,o){o._addDefault(new Ob(n,r))}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(ct),p(Sa,9))},e.\u0275dir=T({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),YT=(()=>{var e;class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(n.ngTemplateOutlet||n.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:a}=this;this._viewRef=r.createEmbeddedView(o,s,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt))},e.\u0275dir=T({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kt]}),t})();function Ni(e,t){return new I(2100,!1)}class X8{createSubscription(t,i){return Ox(()=>t.subscribe({next:i,error:n=>{throw n}}))}dispose(t){Ox(()=>t.unsubscribe())}}class Z8{createSubscription(t,i){return t.then(i,n=>{throw n})}dispose(t){}}const J8=new Z8,eU=new X8;let KT=(()=>{var e;class t{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(_l(n))return J8;if(BE(n))return eU;throw Ni()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe,16))},e.\u0275pipe=wn({name:"async",type:e,pure:!1,standalone:!0}),t})(),XT=(()=>{var e;class t{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=ZT}transform(n,r=ZT){if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());const o=this.differ.diff(n),s=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function fU(e,t){return{key:e,value:t}}(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Tl,16))},e.\u0275pipe=wn({name:"keyvalue",type:e,pure:!1,standalone:!0}),t})();function ZT(e,t){const i=e.key,n=t.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i{var e;class t{constructor(n){this._locale=n}transform(n,r,o){if(!function Pb(e){return!(null==e||""===e||e!=e)}(n))return null;o=o||this._locale;try{return function H8(e,t,i){return function Tb(e,t,i,n,r,o,s=!1){let a="",c=!1;if(isFinite(e)){let l=function U8(e){let n,r,o,s,a,t=Math.abs(e)+"",i=0;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(o=t.search(/e/i))>0?(r<0&&(r=o),r+=+t.slice(o+1),t=t.substring(0,o)):r<0&&(r=t.length),o=0;"0"===t.charAt(o);o++);if(o===(a=t.length))n=[0],r=1;else{for(a--;"0"===t.charAt(a);)a--;for(r-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(t.charAt(o))}return r>22&&(n=n.splice(0,21),i=r-1,r=1),{digits:n,exponent:i,integerLen:r}}(e);s&&(l=function z8(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(o){const v=o.match(P8);if(null===v)throw new Error(`${o} is not a valid digit info`);const C=v[1],S=v[3],N=v[5];null!=C&&(d=Ib(C)),null!=S&&(u=Ib(S)),null!=N?h=Ib(N):null!=S&&u>h&&(h=u)}!function $8(e,t,i){if(t>i)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${i}).`);let n=e.digits,r=n.length-e.integerLen;const o=Math.min(Math.max(t,r),i);let s=o+e.integerLen,a=n[s];if(s>0){n.splice(Math.max(e.integerLen,s));for(let u=s;u=5)if(s-1<0){for(let u=0;u>s;u--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[s-1]++;for(;r=l?m.pop():c=!1),h>=10?1:0},0);d&&(n.unshift(d),e.integerLen++)}(l,u,h);let f=l.digits,m=l.integerLen;const g=l.exponent;let b=[];for(c=f.every(v=>!v);m0?b=f.splice(m,f.length):(b=f,f=[0]);const _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(mi(i,n)),b.length&&(a+=mi(i,r)+b.join("")),g&&(a+=mi(i,Nt.Exponential)+"+"+g)}else a=mi(i,Nt.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function Mb(e,t="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(";"),r=n[0],o=n[1],s=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=s[0],c=s[1]||"";i.posPre=a.substring(0,a.indexOf("#"));for(let d=0;d{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const JT="browser";function eM(e){return"server"===e}let yU=(()=>{var e;class t{}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>new wU(E(he),window)}),t})();class wU{constructor(t,i){this.document=t,this.window=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const i=function xU(e,t){const i=e.getElementById(t)||e.getElementsByName(t)[0];if(i)return i;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,t);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const i=t.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class tM{}class qU extends n8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Vb extends qU{static makeCurrent(){!function t8(e){yb||(yb=e)}(new Vb)}onAndCancel(t,i,n){return t.addEventListener(i,n),()=>{t.removeEventListener(i,n)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return(i=i||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return"window"===i?window:"document"===i?t:"body"===i?t.body:null}getBaseHref(t){const i=function GU(){return Rl=Rl||document.querySelector("base"),Rl?Rl.getAttribute("href"):null}();return null==i?null:function WU(e){Xh=Xh||document.createElement("a"),Xh.setAttribute("href",e);const t=Xh.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){Rl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return zT(document.cookie,t)}}let Xh,Rl=null,YU=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const jb=new M("EventManagerPlugins");let sM=(()=>{var e;class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(e=t).\u0275fac=function(n){return new(n||e)(E(jb),E(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class aM{constructor(t){this._doc=t}}const Hb="ng-app-id";let cM=(()=>{var e;class t{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eM(s),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Hb}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Hb),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Hb,this.appId),a}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he),E(rl),E(Gg,8),E(Qr))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const zb={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/"},Ub=/%COMP%/g,JU=new M("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function dM(e,t){return t.map(i=>i.replace(Ub,e))}let $b=(()=>{var e;class t{constructor(n,r,o,s,a,c,l,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=eM(c),this.defaultRenderer=new qb(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===li.ShadowDom&&(r={...r,encapsulation:li.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof hM?o.applyToHost(n):o instanceof Gb&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case li.Emulated:s=new hM(l,d,r,this.appId,u,a,c,h);break;case li.ShadowDom:return new i$(l,d,n,r,a,c,this.nonce,h);default:s=new Gb(l,d,r,u,a,c,h)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(E(sM),E(cM),E(rl),E(JU),E(he),E(Qr),E(G),E(Gg))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class qb{constructor(t,i,n,r){this.eventManager=t,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(zb[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(uM(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(uM(t)?t.content:t).insertBefore(i,n)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new I(-5104,!1);return i||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,n,r){if(r){i=r+":"+i;const o=zb[r];o?t.setAttributeNS(o,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=zb[n];r?t.removeAttributeNS(r,i):t.removeAttribute(`${n}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,n,r){r&(Wr.DashCase|Wr.Important)?t.style.setProperty(i,n,r&Wr.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&Wr.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,n){t[i]=n}setValue(t,i){t.nodeValue=i}listen(t,i,n){if("string"==typeof t&&!(t=Zr().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(n))}decoratePreventDefault(t){return i=>{if("__ngUnwrap__"===i)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))&&i.preventDefault()}}}function uM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class i$ extends qb{constructor(t,i,n,r,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=dM(r.id,r.styles);for(const d of l){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,n){return super.insertBefore(this.nodeOrShadowRoot(t),i,n)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Gb extends qb{constructor(t,i,n,r,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?dM(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class hM extends Gb{constructor(t,i,n,r,o,s,a,c){const l=r+"-"+n.id;super(t,i,n,o,s,a,c,l),this.contentAttr=function e$(e){return"_ngcontent-%COMP%".replace(Ub,e)}(l),this.hostAttr=function t$(e){return"_nghost-%COMP%".replace(Ub,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){const n=super.createElement(t,i);return super.setAttribute(n,this.contentAttr,""),n}}let r$=(()=>{var e;class t extends aM{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const fM=["alt","control","meta","shift"],o$={"\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"},s$={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let a$=(()=>{var e;class t extends aM{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(r.pop());let a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),fM.forEach(d=>{const u=r.indexOf(d);u>-1&&(r.splice(u,1),a+=d+".")}),a+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let o=o$[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),fM.forEach(a=>{a!==o&&(0,s$[a])(n)&&(s+=a+".")}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const mM=[{provide:Qr,useValue:JT},{provide:wD,useValue:function c$(){Vb.makeCurrent()},multi:!0},{provide:he,useFactory:function d$(){return function XB(e){Og=e}(document),document},deps:[]}],u$=rT(H5,"browser",mM),h$=new M(""),gM=[{provide:Ah,useClass:class QU{addToWindow(t){ut.getAngularTestability=(n,r=!0)=>{const o=t.findTestabilityInTree(n,r);if(null==o)throw new I(5103,!1);return o},ut.getAllAngularTestabilities=()=>t.getAllTestabilities(),ut.getAllAngularRootElements=()=>t.getAllRootElements(),ut.frameworkStabilizers||(ut.frameworkStabilizers=[]),ut.frameworkStabilizers.push(n=>{const r=ut.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(c){s=s||c,o--,0==o&&n(s)};r.forEach(c=>{c.whenStable(a)})})}findTestabilityInTree(t,i,n){return null==i?null:t.getTestability(i)??(n?Zr().isShadowRoot(i)?this.findTestabilityInTree(t,i.host,!0):this.findTestabilityInTree(t,i.parentElement,!0):null)}},deps:[]},{provide:Jk,useClass:cb,deps:[G,lb,Ah]},{provide:cb,useClass:cb,deps:[G,lb,Ah]}],_M=[{provide:zg,useValue:"root"},{provide:Ji,useFactory:function l$(){return new Ji},deps:[]},{provide:jb,useClass:r$,multi:!0,deps:[he,G,Qr]},{provide:jb,useClass:a$,multi:!0,deps:[he]},$b,cM,sM,{provide:al,useExisting:$b},{provide:tM,useClass:YU,deps:[]},[]];let bM=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:rl,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(E(h$,12))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[..._M,...gM],imports:[vn,z5]}),t})(),vM=(()=>{var e;class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he))},e.\u0275prov=V({token:e,factory:function(n){let r=null;return r=n?new n:function p$(){return new vM(E(he))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Zh=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(n){let r=null;return r=n?new(n||e):E(xM),r},providedIn:"root"}),t})(),xM=(()=>{var e;class t extends Zh{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case dn.NONE:return r;case dn.HTML:return Zi(r,"HTML")?Zn(r):uD(this._doc,String(r)).toString();case dn.STYLE:return Zi(r,"Style")?Zn(r):r;case dn.SCRIPT:if(Zi(r,"Script"))return Zn(r);throw new I(5200,!1);case dn.URL:return Zi(r,"URL")?Zn(r):Wu(String(r));case dn.RESOURCE_URL:if(Zi(r,"ResourceURL"))return Zn(r);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(n){return function rV(e){return new ZB(e)}(n)}bypassSecurityTrustStyle(n){return function oV(e){return new JB(e)}(n)}bypassSecurityTrustScript(n){return function sV(e){return new eV(e)}(n)}bypassSecurityTrustUrl(n){return function aV(e){return new tV(e)}(n)}bypassSecurityTrustResourceUrl(n){return function cV(e){return new nV(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he))},e.\u0275prov=V({token:e,factory:function(n){let r=null;return r=n?new n:function b$(e){return new xM(e.get(he))}(E(jt)),r},providedIn:"root"}),t})();function ka(e,t){return Re(t)?Kt(e,t,1):Kt(e,1)}function Ve(e,t){return at((i,n)=>{let r=0;i.subscribe(tt(n,o=>e.call(t,o,r++)&&n.next(o)))})}function Ta(e){return at((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}class Jh{}class ef{}class bi{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(i=>{const n=i.indexOf(":");if(n>0){const r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const i=this.headers.get(t.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,i){return this.clone({name:t,value:i,op:"a"})}set(t,i){return this.clone({name:t,value:i,op:"s"})}delete(t,i){return this.clone({name:t,value:i,op:"d"})}maybeSetNormalizedName(t,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,t)}init(){this.lazyInit&&(this.lazyInit instanceof bi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(i=>{this.headers.set(i,t.headers.get(i)),this.normalizedNames.set(i,t.normalizedNames.get(i))})}clone(t){const i=new bi;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}applyUpdate(t){const i=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,i);const r=("a"===t.op?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(i);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}else this.headers.delete(i),this.normalizedNames.delete(i)}}setHeaderEntries(t,i){const n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>t(this.normalizedNames.get(i),this.headers.get(i)))}}class v${encodeKey(t){return DM(t)}encodeValue(t){return DM(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const w$=/%(\d[a-f0-9])/gi,x$={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function DM(e){return encodeURIComponent(e).replace(w$,(t,i)=>x$[i]??t)}function tf(e){return`${e}`}class eo{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new v$,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function y$(e,t){const i=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],c=i.get(s)||[];c.push(a),i.set(s,c)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(i=>{const n=t.fromObject[i],r=Array.isArray(n)?n.map(tf):[tf(n)];this.map.set(i,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const i=this.map.get(t);return i?i[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,i){return this.clone({param:t,value:i,op:"a"})}appendAll(t){const i=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(t,i){return this.clone({param:t,value:i,op:"s"})}delete(t,i){return this.clone({param:t,value:i,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const i=this.encoder.encodeKey(t);return this.map.get(t).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const i=new eo({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(t),i}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const i=("a"===t.op?this.map.get(t.param):void 0)||[];i.push(tf(t.value)),this.map.set(t.param,i);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const r=n.indexOf(tf(t.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class C${constructor(){this.map=new Map}set(t,i){return this.map.set(t,i),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function EM(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function SM(e){return typeof Blob<"u"&&e instanceof Blob}function kM(e){return typeof FormData<"u"&&e instanceof FormData}class Ol{constructor(t,i,n,r){let o;if(this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function D$(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new bi),this.context||(this.context=new C$),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=i;else{const a=i.indexOf("?");this.urlWithParams=i+(-1===a?"?":au.set(h,t.setHeaders[h]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((u,h)=>u.set(h,t.setParams[h]),l)),new Ol(i,n,o,{params:l,headers:c,context:d,reportProgress:a,responseType:r,withCredentials:s})}}var Ma=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ma||{});class Qb{constructor(t,i=200,n="OK"){this.headers=t.headers||new bi,this.status=void 0!==t.status?t.status:i,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Yb extends Qb{constructor(t={}){super(t),this.type=Ma.ResponseHeader}clone(t={}){return new Yb({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ia extends Qb{constructor(t={}){super(t),this.type=Ma.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ia({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class TM extends Qb{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Kb(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let nf=(()=>{var e;class t{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ol)s=n;else{let l,d;l=o.headers instanceof bi?o.headers:new bi(o.headers),o.params&&(d=o.params instanceof eo?o.params:new eo({fromObject:o.params})),s=new Ol(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=re(s).pipe(ka(l=>this.handler.handle(l)));if(n instanceof Ol||"events"===o.observe)return a;const c=a.pipe(Ve(l=>l instanceof Ia));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(Z(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return c.pipe(Z(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new eo).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Kb(o,r))}post(n,r,o={}){return this.request("POST",n,Kb(o,r))}put(n,r,o={}){return this.request("PUT",n,Kb(o,r))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(Jh))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function AM(e,t){return t(e)}function k$(e,t){return(i,n)=>t.intercept(i,{handle:r=>e(r,n)})}const M$=new M(""),Fl=new M(""),RM=new M("");function I$(){let e=null;return(t,i)=>{null===e&&(e=(j(M$,{optional:!0})??[]).reduceRight(k$,AM));const n=j(Mh),r=n.add();return e(t,i).pipe(Ta(()=>n.remove(r)))}}let OM=(()=>{var e;class t extends Jh{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=j(Mh)}handle(n){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Fl),...this.injector.get(RM,[])]));this.chain=o.reduceRight((s,a)=>function T$(e,t,i){return(n,r)=>i.runInContext(()=>t(n,o=>e(o,r)))}(s,a,this.injector),AM)}const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ta(()=>this.pendingTasks.remove(r)))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(ef),E(Jn))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const F$=/^\)\]\}',?\n/;let PM=(()=>{var e;class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new I(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Et(r.\u0275loadImpl()):re(null)).pipe(Vt(()=>new Me(s=>{const a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((b,_)=>a.setRequestHeader(b,_.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const b=n.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(n.responseType){const b=n.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const c=n.serializeBody();let l=null;const d=()=>{if(null!==l)return l;const b=a.statusText||"OK",_=new bi(a.getAllResponseHeaders()),v=function P$(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||n.url;return l=new Yb({headers:_,status:a.status,statusText:b,url:v}),l},u=()=>{let{headers:b,status:_,statusText:v,url:C}=d(),S=null;204!==_&&(S=typeof a.response>"u"?a.responseText:a.response),0===_&&(_=S?200:0);let N=_>=200&&_<300;if("json"===n.responseType&&"string"==typeof S){const L=S;S=S.replace(F$,"");try{S=""!==S?JSON.parse(S):null}catch(q){S=L,N&&(N=!1,S={error:q,text:S})}}N?(s.next(new Ia({body:S,headers:b,status:_,statusText:v,url:C||void 0})),s.complete()):s.error(new TM({error:S,headers:b,status:_,statusText:v,url:C||void 0}))},h=b=>{const{url:_}=d(),v=new TM({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:_||void 0});s.error(v)};let f=!1;const m=b=>{f||(s.next(d()),f=!0);let _={type:Ma.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(_.total=b.total),"text"===n.responseType&&a.responseText&&(_.partialText=a.responseText),s.next(_)},g=b=>{let _={type:Ma.UploadProgress,loaded:b.loaded};b.lengthComputable&&(_.total=b.total),s.next(_)};return a.addEventListener("load",u),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",m),null!==c&&a.upload&&a.upload.addEventListener("progress",g)),a.send(c),s.next({type:Ma.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",u),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",m),null!==c&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(tM))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const Xb=new M("XSRF_ENABLED"),NM=new M("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),LM=new M("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class BM{}let B$=(()=>{var e;class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=zT(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he),E(Qr),E(NM))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function V$(e,t){const i=e.url.toLowerCase();if(!j(Xb)||"GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return t(e);const n=j(BM).getToken(),r=j(LM);return null!=n&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var to=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(to||{});function Qo(e,t){return{\u0275kind:e,\u0275providers:t}}function j$(...e){const t=[nf,PM,OM,{provide:Jh,useExisting:OM},{provide:ef,useExisting:PM},{provide:Fl,useValue:V$,multi:!0},{provide:Xb,useValue:!0},{provide:BM,useClass:B$}];for(const i of e)t.push(...i.\u0275providers);return function Vg(e){return{\u0275providers:e}}(t)}const VM=new M("LEGACY_INTERCEPTOR_FN");let z$=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[j$(Qo(to.LegacyInterceptors,[{provide:VM,useFactory:I$},{provide:Fl,useExisting:VM,multi:!0}]))]}),t})();class jM{}class Q${}const Tr="*";function ni(e,t){return{type:7,name:e,definitions:t,options:{}}}function Lt(e,t=null){return{type:4,styles:t,timings:e}}function Y$(e,t=null){return{type:3,steps:e,options:t}}function HM(e,t=null){return{type:2,steps:e,options:t}}function je(e){return{type:6,styles:e,offset:null}}function qt(e,t,i){return{type:0,name:e,styles:t,options:i}}function Bt(e,t,i=null){return{type:1,expr:e,animation:t,options:i}}function K$(e=null){return{type:9,options:e}}function X$(e,t,i=null){return{type:11,selector:e,animation:t,options:i}}class Pl{constructor(t=0,i=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=t+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const i="start"==t?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class zM{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let i=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const i=t*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){const t=this.players.reduce((i,n)=>null===i||n.totalTime>i.totalTime?n:i,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const i="start"==t?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}function UM(e){return new I(3e3,!1)}function no(e){switch(e.length){case 0:return new Pl;case 1:return e[0];default:return new zM(e)}}function $M(e,t,i=new Map,n=new Map){const r=[],o=[];let s=-1,a=null;if(t.forEach(c=>{const l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((h,f)=>{let m=f,g=h;if("offset"!==f)switch(m=e.normalizePropertyName(m,r),g){case"!":g=i.get(f);break;case Tr:g=n.get(f);break;default:g=e.normalizeStyleValue(f,m,g,r)}u.set(m,g)}),d||o.push(u),a=u,s=l}),r.length)throw function y6(e){return new I(3502,!1)}();return o}function Jb(e,t,i,n){switch(t){case"start":e.onStart(()=>n(i&&ev(i,"start",e)));break;case"done":e.onDone(()=>n(i&&ev(i,"done",e)));break;case"destroy":e.onDestroy(()=>n(i&&ev(i,"destroy",e)))}}function ev(e,t,i){const o=tv(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,i.totalTime??e.totalTime,!!i.disabled),s=e._data;return null!=s&&(o._data=s),o}function tv(e,t,i,n,r="",o=0,s){return{element:e,triggerName:t,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function ii(e,t,i){let n=e.get(t);return n||e.set(t,n=i),n}function qM(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const R6=(()=>typeof document>"u"?null:document.documentElement)();function nv(e){const t=e.parentNode||e.host||null;return t===R6?null:t}let Yo=null,GM=!1;function WM(e,t){for(;t;){if(t===e)return!0;t=nv(t)}return!1}function QM(e,t,i){if(i)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]}let YM=(()=>{var e;class t{validateStyleProperty(n){return function F6(e){Yo||(Yo=function P6(){return typeof document<"u"?document.body:null}()||{},GM=!!Yo.style&&"WebkitAppearance"in Yo.style);let t=!0;return Yo.style&&!function O6(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Yo.style,!t&&GM&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Yo.style)),t}(n)}matchesElement(n,r){return!1}containsElement(n,r){return WM(n,r)}getParentElement(n){return nv(n)}query(n,r,o){return QM(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,c=[],l){return new Pl(o,s)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),iv=(()=>{class t{}return t.NOOP=new YM,t})();const N6=1e3,rv="ng-enter",sf="ng-leave",af="ng-trigger",cf=".ng-trigger",XM="ng-animating",ov=".ng-animating";function Mr(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:sv(parseFloat(t[1]),t[2])}function sv(e,t){return"s"===t?e*N6:e}function lf(e,t,i){return e.hasOwnProperty("duration")?e:function B6(e,t,i){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(UM()),{duration:0,delay:0,easing:""};r=sv(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=sv(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else r=e;if(!i){let a=!1,c=t.length;r<0&&(t.push(function Z$(){return new I(3100,!1)}()),a=!0),o<0&&(t.push(function J$(){return new I(3101,!1)}()),a=!0),a&&t.splice(c,0,UM())}return{duration:r,delay:o,easing:s}}(e,t,i)}function Nl(e,t={}){return Object.keys(e).forEach(i=>{t[i]=e[i]}),t}function ZM(e){const t=new Map;return Object.keys(e).forEach(i=>{t.set(i,e[i])}),t}function io(e,t=new Map,i){if(i)for(let[n,r]of i)t.set(n,r);for(let[n,r]of e)t.set(n,r);return t}function sr(e,t,i){t.forEach((n,r)=>{const o=cv(r);i&&!i.has(r)&&i.set(r,e.style[o]),e.style[o]=n})}function Ko(e,t){t.forEach((i,n)=>{const r=cv(n);e.style[r]=""})}function Ll(e){return Array.isArray(e)?1==e.length?e[0]:HM(e):e}const av=new RegExp("{{\\s*(.+?)\\s*}}","g");function eI(e){let t=[];if("string"==typeof e){let i;for(;i=av.exec(e);)t.push(i[1]);av.lastIndex=0}return t}function Bl(e,t,i){const n=e.toString(),r=n.replace(av,(o,s)=>{let a=t[s];return null==a&&(i.push(function t6(e){return new I(3003,!1)}()),a=""),a.toString()});return r==n?e:r}function df(e){const t=[];let i=e.next();for(;!i.done;)t.push(i.value),i=e.next();return t}const H6=/-+([a-z0-9])/g;function cv(e){return e.replace(H6,(...t)=>t[1].toUpperCase())}function ri(e,t,i){switch(t.type){case 7:return e.visitTrigger(t,i);case 0:return e.visitState(t,i);case 1:return e.visitTransition(t,i);case 2:return e.visitSequence(t,i);case 3:return e.visitGroup(t,i);case 4:return e.visitAnimate(t,i);case 5:return e.visitKeyframes(t,i);case 6:return e.visitStyle(t,i);case 8:return e.visitReference(t,i);case 9:return e.visitAnimateChild(t,i);case 10:return e.visitAnimateRef(t,i);case 11:return e.visitQuery(t,i);case 12:return e.visitStagger(t,i);default:throw function n6(e){return new I(3004,!1)}()}}function tI(e,t){return window.getComputedStyle(e)[t]}const uf="*";function $6(e,t){const i=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(n=>function q6(e,t,i){if(":"==e[0]){const c=function G6(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}(e,i);if("function"==typeof c)return void t.push(c);e=c}const n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(function m6(e){return new I(3015,!1)}()),t;const r=n[1],o=n[2],s=n[3];t.push(nI(r,s));"<"==o[0]&&!(r==uf&&s==uf)&&t.push(nI(s,r))}(n,i,t)):i.push(e),i}const hf=new Set(["true","1"]),ff=new Set(["false","0"]);function nI(e,t){const i=hf.has(e)||ff.has(e),n=hf.has(t)||ff.has(t);return(r,o)=>{let s=e==uf||e==r,a=t==uf||t==o;return!s&&i&&"boolean"==typeof r&&(s=r?hf.has(e):ff.has(e)),!a&&n&&"boolean"==typeof o&&(a=o?hf.has(t):ff.has(t)),s&&a}}const W6=new RegExp("s*:selfs*,?","g");function lv(e,t,i,n){return new Q6(e).build(t,i,n)}class Q6{constructor(t){this._driver=t}build(t,i,n){const r=new X6(i);return this._resetContextStyleTimingState(r),ri(this,Ll(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,i){let n=i.queryCount=0,r=i.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&i.errors.push(function r6(){return new I(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,i))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,i);n+=c.queryCount,r+=c.depCount,s.push(c)}else i.errors.push(function o6(){return new I(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(t,i){const n=this.visitStyle(t.styles,i),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{eI(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&(df(o.values()),i.errors.push(function s6(e,t){return new I(3008,!1)}()))}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,i){i.queryCount=0,i.depCount=0;const n=ri(this,Ll(t.animation),i);return{type:1,matchers:$6(t.expr,i.errors),animation:n,queryCount:i.queryCount,depCount:i.depCount,options:Xo(t.options)}}visitSequence(t,i){return{type:2,steps:t.steps.map(n=>ri(this,n,i)),options:Xo(t.options)}}visitGroup(t,i){const n=i.currentTime;let r=0;const o=t.steps.map(s=>{i.currentTime=n;const a=ri(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:3,steps:o,options:Xo(t.options)}}visitAnimate(t,i){const n=function J6(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return dv(lf(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=dv(0,0,"");return o.dynamic=!0,o.strValue=i,o}const r=lf(i,t);return dv(r.duration,r.delay,r.easing)}(t.timings,i.errors);i.currentAnimateTimings=n;let r,o=t.styles?t.styles:je({});if(5==o.type)r=this.visitKeyframes(o,i);else{let s=t.styles,a=!1;if(!s){a=!0;const l={};n.easing&&(l.easing=n.easing),s=je(l)}i.currentTime+=n.duration+n.delay;const c=this.visitStyle(s,i);c.isEmptyStep=a,r=c}return i.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,i){const n=this._makeStyleAst(t,i);return this._validateStyleAst(n,i),n}_makeStyleAst(t,i){const n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Tr?n.push(a):i.errors.push(new I(3002,!1)):n.push(ZM(a));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,i){const n=i.currentAnimateTimings;let r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=i.collectedStyles.get(i.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(i.errors.push(function c6(e,t,i,n,r){return new I(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),i.options&&function j6(e,t,i){const n=t.params||{},r=eI(e);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(function e6(e){return new I(3001,!1)}())})}(a,i.options,i.errors)})})}visitKeyframes(t,i){const n={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function l6(){return new I(3011,!1)}()),n;let o=0;const s=[];let a=!1,c=!1,l=0;const d=t.steps.map(_=>{const v=this._makeStyleAst(_,i);let C=null!=v.offset?v.offset:function Z6(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(i=>{if(i instanceof Map&&i.has("offset")){const n=i;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}return t}(v.styles),S=0;return null!=C&&(o++,S=v.offset=C),c=c||S<0||S>1,a=a||S0&&o{const C=h>0?v==f?1:h*v:s[v],S=C*b;i.currentTime=m+g.delay+S,g.duration=S,this._validateStyleAst(_,i),_.offset=C,n.styles.push(_)}),n}visitReference(t,i){return{type:8,animation:ri(this,Ll(t.animation),i),options:Xo(t.options)}}visitAnimateChild(t,i){return i.depCount++,{type:9,options:Xo(t.options)}}visitAnimateRef(t,i){return{type:10,animation:this.visitReference(t.animation,i),options:Xo(t.options)}}visitQuery(t,i){const n=i.currentQuerySelector,r=t.options||{};i.queryCount++,i.currentQuery=t;const[o,s]=function Y6(e){const t=!!e.split(/\s*,\s*/).find(i=>":self"==i);return t&&(e=e.replace(W6,"")),e=e.replace(/@\*/g,cf).replace(/@\w+/g,i=>cf+"-"+i.slice(1)).replace(/:animating/g,ov),[e,t]}(t.selector);i.currentQuerySelector=n.length?n+" "+o:o,ii(i.collectedStyles,i.currentQuerySelector,new Map);const a=ri(this,Ll(t.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Xo(t.options)}}visitStagger(t,i){i.currentQuery||i.errors.push(function f6(){return new I(3013,!1)}());const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:lf(t.timings,i.errors,!0);return{type:12,animation:ri(this,Ll(t.animation),i),timings:n,options:null}}}class X6{constructor(t){this.errors=t,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 Xo(e){return e?(e=Nl(e)).params&&(e.params=function K6(e){return e?Nl(e):null}(e.params)):e={},e}function dv(e,t,i){return{duration:e,delay:t,easing:i}}function uv(e,t,i,n,r,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class pf{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,i){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...i)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const nq=new RegExp(":enter","g"),rq=new RegExp(":leave","g");function hv(e,t,i,n,r,o=new Map,s=new Map,a,c,l=[]){return(new oq).buildKeyframes(e,t,i,n,r,o,s,a,c,l)}class oq{buildKeyframes(t,i,n,r,o,s,a,c,l,d=[]){l=l||new pf;const u=new fv(t,i,l,r,o,d,[]);u.options=c;const h=c.delay?Mr(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,c),ri(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let g=f.length-1;g>=0;g--){const b=f[g];if(b.element===i){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[uv(i,[],[],[],0,h,"",!1)]}visitTrigger(t,i){}visitState(t,i){}visitTransition(t,i){}visitAnimateChild(t,i){const n=i.subInstructions.get(i.element);if(n){const r=i.createSubContext(t.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=t}visitAnimateRef(t,i){const n=i.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],i,n),this.visitReference(t.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=t}_applyAnimationRefDelays(t,i,n){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Mr(Bl(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,i,n){let o=i.currentTimeline.currentTime;const s=null!=n.duration?Mr(n.duration):null,a=null!=n.delay?Mr(n.delay):null;return 0!==s&&t.forEach(c=>{const l=i.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(t,i){i.updateOptions(t.options,!0),ri(this,t.animation,i),i.previousNode=t}visitSequence(t,i){const n=i.subContextCount;let r=i;const o=t.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=mf);const s=Mr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>ri(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=t}visitGroup(t,i){const n=[];let r=i.currentTimeline.currentTime;const o=t.options&&t.options.delay?Mr(t.options.delay):0;t.steps.forEach(s=>{const a=i.createSubContext(t.options);o&&a.delayNextStep(o),ri(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=t}_visitTiming(t,i){if(t.dynamic){const n=t.strValue;return lf(i.params?Bl(n,i.params,i.errors):n,i.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,i){const n=i.currentAnimateTimings=this._visitTiming(t.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=t}visitStyle(t,i){const n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,i.errors,i.options),i.previousNode=t}visitKeyframes(t,i){const n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=t}visitQuery(t,i){const n=i.currentTimeline.currentTime,r=t.options||{},o=r.delay?Mr(r.delay):0;o&&(6===i.previousNode.type||0==n&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=mf);let s=n;const a=i.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{i.currentQueryIndex=d;const u=i.createSubContext(t.options,l);o&&u.delayNextStep(o),l===i.element&&(c=u.currentTimeline),ri(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),c&&(i.currentTimeline.mergeTimelineCollectedStyles(c),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=t}visitStagger(t,i){const n=i.parentContext,r=i.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1);let c=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime}const d=i.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;ri(this,t.animation,i),i.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const mf={};class fv{constructor(t,i,n,r,o,s,a,c){this._driver=t,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new gf(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,i){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=Mr(n.duration)),null!=n.delay&&(r.delay=Mr(n.delay));const o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=Bl(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const i=this.options.params;if(i){const n=t.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return t}createSubContext(t=null,i,n){const r=i||this.element,o=new fv(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=mf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,i,n){const r={duration:i??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new sq(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,i,n,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(nq,"."+this._enterClassName)).replace(rq,"."+this._leaveClassName);let l=this._driver.query(this.element,t,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!o&&0==a.length&&s.push(function p6(e){return new I(3014,!1)}()),a}}class gf{constructor(t,i,n,r){this._driver=t,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,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(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(t){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+t),i&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,i){return this.applyStylesToKeyframe(),new gf(this._driver,t,i||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,i){this._localTimelineStyles.set(t,i),this._globalTimelineStyles.set(t,i),this._styleSummary.set(t,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Tr),this._currentKeyframe.set(i,Tr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,i,n,r){i&&this._previousKeyframe.set("easing",i);const o=r&&r.params||{},s=function aq(e,t){const i=new Map;let n;return e.forEach(r=>{if("*"===r){n=n||t.keys();for(let o of n)i.set(o,Tr)}else io(r,i)}),i}(t,this._globalTimelineStyles);for(let[a,c]of s){const l=Bl(c,o,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Tr),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,i)=>{this._currentKeyframe.set(i,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,t)}))}snapshotCurrentStyles(){for(let[t,i]of this._localTimelineStyles)this._pendingStyles.set(t,i),this._updateStyle(t,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let i in this._currentKeyframe)t.push(i);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((i,n)=>{const r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,c)=>{const l=io(a,new Map,this._backFill);l.forEach((d,u)=>{"!"===d?t.add(u):d===Tr&&i.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=t.size?df(t.values()):[],s=i.size?df(i.values()):[];if(n){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return uv(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class sq extends gf{constructor(t,i,n,r,o,s,a=!1){super(t,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){const o=[],s=n+i,a=i/s,c=io(t[0]);c.set("offset",0),o.push(c);const l=io(t[0]);l.set("offset",oI(a)),o.push(l);const d=t.length-1;for(let u=1;u<=d;u++){let h=io(t[u]);const f=h.get("offset");h.set("offset",oI((i+f*n)/s)),o.push(h)}n=s,i=0,r="",t=o}return uv(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}function oI(e,t=3){const i=Math.pow(10,t-1);return Math.round(e*i)/i}class pv{}const cq=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 lq extends pv{normalizePropertyName(t,i){return cv(t)}normalizeStyleValue(t,i,n,r){let o="";const s=n.toString().trim();if(cq.has(i)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function i6(e,t){return new I(3005,!1)}())}return s+o}}function sI(e,t,i,n,r,o,s,a,c,l,d,u,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const mv={};class aI{constructor(t,i,n){this._triggerName=t,this.ast=i,this._stateStyles=n}match(t,i,n,r){return function dq(e,t,i,n,r){return e.some(o=>o(t,i,n,r))}(this.ast.matchers,t,i,n,r)}buildStyles(t,i,n){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(i,n):new Map}build(t,i,n,r,o,s,a,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||mv,m=this.buildStyles(n,a&&a.params||mv,u),g=c&&c.params||mv,b=this.buildStyles(r,g,u),_=new Set,v=new Map,C=new Map,S="void"===r,N={params:uq(g,h),delay:this.ast.options?.delay},L=d?[]:hv(t,i,this.ast.animation,o,s,m,b,N,l,u);let q=0;if(L.forEach(Ne=>{q=Math.max(Ne.duration+Ne.delay,q)}),u.length)return sI(i,this._triggerName,n,r,S,m,b,[],[],v,C,q,u);L.forEach(Ne=>{const qe=Ne.element,At=ii(v,qe,new Set);Ne.preStyleProps.forEach(qi=>At.add(qi));const Fn=ii(C,qe,new Set);Ne.postStyleProps.forEach(qi=>Fn.add(qi)),qe!==i&&_.add(qe)});const oe=df(_.values());return sI(i,this._triggerName,n,r,S,m,b,L,oe,v,C,q)}}function uq(e,t){const i=Nl(t);for(const n in e)e.hasOwnProperty(n)&&null!=e[n]&&(i[n]=e[n]);return i}class hq{constructor(t,i,n){this.styles=t,this.defaultParams=i,this.normalizer=n}buildStyles(t,i){const n=new Map,r=Nl(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Bl(s,r,i));const c=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,c,s,i),n.set(a,s)})}),n}}class pq{constructor(t,i,n){this.name=t,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{this.states.set(r.name,new hq(r.style,r.options&&r.options.params||{},n))}),cI(this.states,"true","1"),cI(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new aI(t,r,this.states))}),this.fallbackTransition=function mq(e,t,i){return new aI(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,i,n,r){return this.transitionFactories.find(s=>s.match(t,i,n,r))||null}matchStyles(t,i,n){return this.fallbackTransition.buildStyles(t,i,n)}}function cI(e,t,i){e.has(t)?e.has(i)||e.set(i,e.get(t)):e.has(i)&&e.set(t,e.get(i))}const gq=new pf;class _q{constructor(t,i,n){this.bodyNode=t,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,i){const n=[],o=lv(this._driver,i,n,[]);if(n.length)throw function w6(e){return new I(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,i,n){const r=t.element,o=$M(this._normalizer,t.keyframes,i,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,i,n={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=hv(this._driver,i,o,rv,sf,new Map,new Map,n,gq,r),s.forEach(d=>{const u=ii(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function x6(){return new I(3300,!1)}()),s=[]),r.length)throw function C6(e){return new I(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Tr))})});const l=no(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const i=this._getPlayer(t);i.destroy(),this._playersById.delete(t);const n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(t){const i=this._playersById.get(t);if(!i)throw function D6(e){return new I(3301,!1)}();return i}listen(t,i,n,r){const o=tv(i,"","","");return Jb(this._getPlayer(t),n,o,r),()=>{}}command(t,i,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,i,r[0]||{});const o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const lI="ng-animate-queued",gv="ng-animate-disabled",xq=[],dI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cq={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Li="__ng_removed";class _v{get params(){return this.options.params}constructor(t,i=""){this.namespaceId=i;const n=t&&t.hasOwnProperty("value");if(this.value=function kq(e){return e??null}(n?t.value:t),n){const o=Nl(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const i=t.params;if(i){const n=this.options.params;Object.keys(i).forEach(r=>{null==n[r]&&(n[r]=i[r])})}}}const Vl="void",bv=new _v(Vl);class Dq{constructor(t,i,n){this.id=t,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,vi(i,this._hostClassName)}listen(t,i,n,r){if(!this._triggers.has(i))throw function E6(e,t){return new I(3302,!1)}();if(null==n||0==n.length)throw function S6(e){return new I(3303,!1)}();if(!function Tq(e){return"start"==e||"done"==e}(n))throw function k6(e,t){return new I(3400,!1)}();const o=ii(this._elementListeners,t,[]),s={name:i,phase:n,callback:r};o.push(s);const a=ii(this._engine.statesByElement,t,new Map);return a.has(i)||(vi(t,af),vi(t,af+"-"+i),a.set(i,bv)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(i)||a.delete(i)})}}register(t,i){return!this._triggers.has(t)&&(this._triggers.set(t,i),!0)}_getTrigger(t){const i=this._triggers.get(t);if(!i)throw function T6(e){return new I(3401,!1)}();return i}trigger(t,i,n,r=!0){const o=this._getTrigger(i),s=new vv(this.id,i,t);let a=this._engine.statesByElement.get(t);a||(vi(t,af),vi(t,af+"-"+i),this._engine.statesByElement.set(t,a=new Map));let c=a.get(i);const l=new _v(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(i,l),c||(c=bv),l.value!==Vl&&c.value===l.value){if(!function Aq(e,t){const i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(let r=0;r{Ko(t,b),sr(t,_)})}return}const h=ii(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==i&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,t,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:m}),m||(vi(t,lI),s.onStart(()=>{Aa(t,lI)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const b=this._engine.playersByElement.get(t);if(b){let _=b.indexOf(s);_>=0&&b.splice(_,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(i=>i.delete(t)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const i=this._engine.playersByElement.get(t);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,i){const n=this._engine.driver.query(t,cf,!0);n.forEach(r=>{if(r[Li])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,i,n,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const d=this.trigger(t,l,Vl,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,i,s),n&&no(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const i=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(i&&n){const r=new Set;i.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const c=this._triggers.get(s).fallbackTransition,l=n.get(s)||bv,d=new _v(Vl),u=new vv(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,i){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,i),this.triggerLeaveAnimation(t,i,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,i);else{const o=t[Li];(!o||o===dI)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,i))}}insertNode(t,i){vi(t,this._hostClassName)}drainQueuedTransitions(t){const i=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){const c=tv(o,n.triggerName,n.fromState.value,n.toState.value);c._data=t,Jb(n.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{const o=n.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class Eq{_onRemovalComplete(t,i){this.onRemovalComplete(t,i)}constructor(t,i,n){this.bodyNode=t,this.driver=i,this._normalizer=n,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=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,i){const n=new Dq(t,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,i){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){const c=r.get(a);if(c){const l=n.indexOf(c);n.splice(l+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return r.set(i,t),t}register(t,i){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,i)),n}registerTrigger(t,i,n){let r=this._namespaceLookup[t];r&&r.register(i,n)&&this.totalAnimations++}destroy(t,i){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const i=new Set,n=this.statesByElement.get(t);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}return i}trigger(t,i,n,r){if(_f(i)){const o=this._fetchNamespace(t);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(t,i,n,r){if(!_f(i))return;const o=i[Li];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,i){i?this.disabledNodes.has(t)||(this.disabledNodes.add(t),vi(t,gv)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Aa(t,gv))}removeNode(t,i,n){if(_f(i)){const r=t?this._fetchNamespace(t):null;r?r.removeNode(i,n):this.markElementAsRemoved(t,i,!1,n);const o=this.namespacesByHostElement.get(i);o&&o.id!==t&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(t,i,n,r,o){this.collectedLeaveElements.push(i),i[Li]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,i,n,r,o){return _f(i)?this._fetchNamespace(t).listen(i,n,r,o):()=>{}}_buildInstruction(t,i,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,i,o)}destroyInnerAnimations(t){let i=this.driver.query(t,cf,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,ov,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const i=this.playersByElement.get(t);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const i=this.playersByQueriedElement.get(t);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return no(this.players).onDone(()=>t());t()})}processLeaveNode(t){const i=t[Li];if(i&&i.setForRemoval){if(t[Li]=dI,i.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}t.classList?.contains(gv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],i.length?no(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw function M6(e){return new I(3402,!1)}()}_flushAnimations(t,i){const n=new pf,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ee=>{d.add(ee);const ue=this.driver.query(ee,".ng-animate-queued",!0);for(let pe=0;pe{const pe=rv+g++;m.set(ue,pe),ee.forEach(we=>vi(we,pe))});const b=[],_=new Set,v=new Set;for(let ee=0;ee_.add(we)):v.add(ue))}const C=new Map,S=fI(h,Array.from(_));S.forEach((ee,ue)=>{const pe=sf+g++;C.set(ue,pe),ee.forEach(we=>vi(we,pe))}),t.push(()=>{f.forEach((ee,ue)=>{const pe=m.get(ue);ee.forEach(we=>Aa(we,pe))}),S.forEach((ee,ue)=>{const pe=C.get(ue);ee.forEach(we=>Aa(we,pe))}),b.forEach(ee=>{this.processLeaveNode(ee)})});const N=[],L=[];for(let ee=this._namespaceList.length-1;ee>=0;ee--)this._namespaceList[ee].drainQueuedTransitions(i).forEach(pe=>{const we=pe.player,Qt=pe.element;if(N.push(we),this.collectedEnterElements.length){const yn=Qt[Li];if(yn&&yn.setForMove){if(yn.previousTriggersValues&&yn.previousTriggersValues.has(pe.triggerName)){const ws=yn.previousTriggersValues.get(pe.triggerName),Di=this.statesByElement.get(pe.element);if(Di&&Di.has(pe.triggerName)){const pm=Di.get(pe.triggerName);pm.value=ws,Di.set(pe.triggerName,pm)}}return void we.destroy()}}const oi=!u||!this.driver.containsElement(u,Qt),Yt=C.get(Qt),Ci=m.get(Qt),gt=this._buildInstruction(pe,n,Ci,Yt,oi);if(gt.errors&>.errors.length)return void L.push(gt);if(oi)return we.onStart(()=>Ko(Qt,gt.fromStyles)),we.onDestroy(()=>sr(Qt,gt.toStyles)),void r.push(we);if(pe.isFallbackTransition)return we.onStart(()=>Ko(Qt,gt.fromStyles)),we.onDestroy(()=>sr(Qt,gt.toStyles)),void r.push(we);const FN=[];gt.timelines.forEach(yn=>{yn.stretchStartingKeyframe=!0,this.disabledNodes.has(yn.element)||FN.push(yn)}),gt.timelines=FN,n.append(Qt,gt.timelines),s.push({instruction:gt,player:we,element:Qt}),gt.queriedElements.forEach(yn=>ii(a,yn,[]).push(we)),gt.preStyleProps.forEach((yn,ws)=>{if(yn.size){let Di=c.get(ws);Di||c.set(ws,Di=new Set),yn.forEach((pm,Fw)=>Di.add(Fw))}}),gt.postStyleProps.forEach((yn,ws)=>{let Di=l.get(ws);Di||l.set(ws,Di=new Set),yn.forEach((pm,Fw)=>Di.add(Fw))})});if(L.length){const ee=[];L.forEach(ue=>{ee.push(function I6(e,t){return new I(3505,!1)}())}),N.forEach(ue=>ue.destroy()),this.reportError(ee)}const q=new Map,oe=new Map;s.forEach(ee=>{const ue=ee.element;n.has(ue)&&(oe.set(ue,ue),this._beforeAnimationBuild(ee.player.namespaceId,ee.instruction,q))}),r.forEach(ee=>{const ue=ee.element;this._getPreviousPlayers(ue,!1,ee.namespaceId,ee.triggerName,null).forEach(we=>{ii(q,ue,[]).push(we),we.destroy()})});const Ne=b.filter(ee=>mI(ee,c,l)),qe=new Map;hI(qe,this.driver,v,l,Tr).forEach(ee=>{mI(ee,c,l)&&Ne.push(ee)});const Fn=new Map;f.forEach((ee,ue)=>{hI(Fn,this.driver,new Set(ee),c,"!")}),Ne.forEach(ee=>{const ue=qe.get(ee),pe=Fn.get(ee);qe.set(ee,new Map([...ue?.entries()??[],...pe?.entries()??[]]))});const qi=[],bc=[],vc={};s.forEach(ee=>{const{element:ue,player:pe,instruction:we}=ee;if(n.has(ue)){if(d.has(ue))return pe.onDestroy(()=>sr(ue,we.toStyles)),pe.disabled=!0,pe.overrideTotalTime(we.totalTime),void r.push(pe);let Qt=vc;if(oe.size>1){let Yt=ue;const Ci=[];for(;Yt=Yt.parentNode;){const gt=oe.get(Yt);if(gt){Qt=gt;break}Ci.push(Yt)}Ci.forEach(gt=>oe.set(gt,Qt))}const oi=this._buildAnimation(pe.namespaceId,we,q,o,Fn,qe);if(pe.setRealPlayer(oi),Qt===vc)qi.push(pe);else{const Yt=this.playersByElement.get(Qt);Yt&&Yt.length&&(pe.parentPlayer=no(Yt)),r.push(pe)}}else Ko(ue,we.fromStyles),pe.onDestroy(()=>sr(ue,we.toStyles)),bc.push(pe),d.has(ue)&&r.push(pe)}),bc.forEach(ee=>{const ue=o.get(ee.element);if(ue&&ue.length){const pe=no(ue);ee.setRealPlayer(pe)}}),r.forEach(ee=>{ee.parentPlayer?ee.syncPlayerEvents(ee.parentPlayer):ee.destroy()});for(let ee=0;ee!oi.destroyed);Qt.length?Mq(this,ue,Qt):this.processLeaveNode(ue)}return b.length=0,qi.forEach(ee=>{this.players.push(ee),ee.onDone(()=>{ee.destroy();const ue=this.players.indexOf(ee);this.players.splice(ue,1)}),ee.play()}),qi}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,i,n,r,o){let s=[];if(i){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const c=!o||o==Vl;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,i,n){const o=i.element,s=i.isRemovalTransition?void 0:t,a=i.isRemovalTransition?void 0:i.triggerName;for(const c of i.timelines){const l=c.element,d=l!==o,u=ii(n,l,[]);this._getPreviousPlayers(l,d,s,a,i.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}Ko(o,i.fromStyles)}_buildAnimation(t,i,n,r,o,s){const a=i.triggerName,c=i.element,l=[],d=new Set,u=new Set,h=i.timelines.map(m=>{const g=m.element;d.add(g);const b=g[Li];if(b&&b.removedBeforeQueried)return new Pl(m.duration,m.delay);const _=g!==c,v=function Iq(e){const t=[];return pI(e,t),t}((n.get(g)||xq).map(q=>q.getRealPlayer())).filter(q=>!!q.element&&q.element===g),C=o.get(g),S=s.get(g),N=$M(this._normalizer,m.keyframes,C,S),L=this._buildPlayer(m,N,v);if(m.subTimeline&&r&&u.add(g),_){const q=new vv(t,a,g);q.setRealPlayer(L),l.push(q)}return L});l.forEach(m=>{ii(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Sq(e,t,i){let n=e.get(t);if(n){if(n.length){const r=n.indexOf(i);n.splice(r,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>vi(m,XM));const f=no(h);return f.onDestroy(()=>{d.forEach(m=>Aa(m,XM)),sr(c,i.toStyles)}),u.forEach(m=>{ii(r,m,[]).push(f)}),f}_buildPlayer(t,i,n){return i.length>0?this.driver.animate(t.element,i,t.duration,t.delay,t.easing,n):new Pl(t.duration,t.delay)}}class vv{constructor(t,i,n){this.namespaceId=t,this.triggerName=i,this.element=n,this._player=new Pl,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(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Jb(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const i=this._player;i.triggerCallback&&t.onStart(()=>i.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,i){ii(this._queuedCallbacks,t,[]).push(i)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const i=this._player;i.triggerCallback&&i.triggerCallback(t)}}function _f(e){return e&&1===e.nodeType}function uI(e,t){const i=e.style.display;return e.style.display=t??"none",i}function hI(e,t,i,n,r){const o=[];i.forEach(c=>o.push(uI(c)));const s=[];n.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=t.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Li]=Cq,s.push(l))}),e.set(l,d)});let a=0;return i.forEach(c=>uI(c,o[a++])),s}function fI(e,t){const i=new Map;if(e.forEach(a=>i.set(a,[])),0==t.length)return i;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=i.has(l)?l:r.has(l)?1:s(l),o.set(a,c),c}return t.forEach(a=>{const c=s(a);1!==c&&i.get(c).push(a)}),i}function vi(e,t){e.classList?.add(t)}function Aa(e,t){e.classList?.remove(t)}function Mq(e,t,i){no(i).onDone(()=>e.processLeaveNode(t))}function pI(e,t){for(let i=0;ir.add(o)):t.set(e,n),i.delete(e),!0}class bf{constructor(t,i,n){this.bodyNode=t,this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Eq(t,i,n),this._timelineEngine=new _q(t,i,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,i,n,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const c=[],d=lv(this._driver,o,c,[]);if(c.length)throw function v6(e,t){return new I(3404,!1)}();a=function fq(e,t,i){return new pq(e,t,i)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(t,i){this._transitionEngine.register(t,i)}destroy(t,i){this._transitionEngine.destroy(t,i)}onInsert(t,i,n,r){this._transitionEngine.insertNode(t,i,n,r)}onRemove(t,i,n){this._transitionEngine.removeNode(t,i,n)}disableAnimations(t,i){this._transitionEngine.markElementAsDisabled(t,i)}process(t,i,n,r){if("@"==n.charAt(0)){const[o,s]=qM(n);this._timelineEngine.command(o,i,s,r)}else this._transitionEngine.trigger(t,i,n,r)}listen(t,i,n,r,o){if("@"==n.charAt(0)){const[s,a]=qM(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(t,i,n,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}let Oq=(()=>{class t{constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(n);s||t.initialStylesByElement.set(n,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&sr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(sr(this._element,this._initialStyles),this._endStyles&&(sr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ko(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),sr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function yv(e){let t=null;return e.forEach((i,n)=>{(function Fq(e){return"display"===e||"position"===e})(n)&&(t=t||new Map,t.set(n,i))}),t}class gI{constructor(t,i,n,r){this.element=t,this.keyframes=i,this.options=n,this._specialStyles=r,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const i=[];return t.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(t,i,n){return t.animate(this._convertKeyframesToObject(i),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&t.set(r,this._finished?n:tI(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const i="start"===t?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class Pq{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,i){return!1}containsElement(t,i){return WM(t,i)}getParentElement(t){return nv(t)}query(t,i,n){return QM(t,i,n)}computeStyle(t,i,n){return window.getComputedStyle(t)[i]}animate(t,i,n,r,o,s=[]){const c={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=s.filter(f=>f instanceof gI);(function z6(e,t){return 0===e||0===t})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function V6(e){return e.length?e[0]instanceof Map?e:e.map(t=>ZM(t)):[]}(i).map(f=>io(f));u=function U6(e,t,i){if(i.size&&t.length){let n=t[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,tI(e,a)))}}return t}(t,u,l);const h=function Rq(e,t){let i=null,n=null;return Array.isArray(t)&&t.length?(i=yv(t[0]),t.length>1&&(n=yv(t[t.length-1]))):t instanceof Map&&(i=yv(t)),i||n?new Oq(e,i,n):null}(t,u);return new gI(t,u,c,h)}}let Nq=(()=>{var e;class t extends jM{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:li.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(n)?HM(n):n;return _I(this._renderer,null,r,"register",[o]),new Lq(r,this._renderer)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(al),E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class Lq extends Q${constructor(t,i){super(),this._id=t,this._renderer=i}create(t,i){return new Bq(this._id,t,i||{},this._renderer)}}class Bq{constructor(t,i,n,r){this.id=t,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,i){return this._renderer.listen(this.element,`@@${this.id}:${t}`,i)}_command(t,...i){return _I(this._renderer,this.element,this.id,t,i)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _I(e,t,i,n,r){return e.setProperty(t,`@@${i}:${n}`,r)}const bI="@.disabled";let Vq=(()=>{var e;class t{constructor(n,r,o){this.delegate=n,this.engine=r,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(s,a)=>{const c=a?.parentNode(s);c&&a.removeChild(c,s)}}createRenderer(n,r){const s=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new vI("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const a=r.id,c=r.id+"-"+this._currentId;this._currentId++,this.engine.register(c,n);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(a,c,n,u.name,u)};return r.data.animation.forEach(l),new jq(this,c,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,o){n>=0&&nr(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[a,c]=s;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,o]))}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()}}return(e=t).\u0275fac=function(n){return new(n||e)(E(al),E(bf),E(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class vI{constructor(t,i,n,r){this.namespaceId=t,this.delegate=i,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,i){return this.delegate.createElement(t,i)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,i){this.delegate.appendChild(t,i),this.engine.onInsert(this.namespaceId,i,t,!1)}insertBefore(t,i,n,r=!0){this.delegate.insertBefore(t,i,n),this.engine.onInsert(this.namespaceId,i,t,r)}removeChild(t,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(t,i){return this.delegate.selectRootElement(t,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,i,n,r){this.delegate.setAttribute(t,i,n,r)}removeAttribute(t,i,n){this.delegate.removeAttribute(t,i,n)}addClass(t,i){this.delegate.addClass(t,i)}removeClass(t,i){this.delegate.removeClass(t,i)}setStyle(t,i,n,r){this.delegate.setStyle(t,i,n,r)}removeStyle(t,i,n){this.delegate.removeStyle(t,i,n)}setProperty(t,i,n){"@"==i.charAt(0)&&i==bI?this.disableAnimations(t,!!n):this.delegate.setProperty(t,i,n)}setValue(t,i){this.delegate.setValue(t,i)}listen(t,i,n){return this.delegate.listen(t,i,n)}disableAnimations(t,i){this.engine.disableAnimations(t,i)}}class jq extends vI{constructor(t,i,n,r,o){super(i,n,r,o),this.factory=t,this.namespaceId=i}setProperty(t,i,n){"@"==i.charAt(0)?"."==i.charAt(1)&&i==bI?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,i.slice(1),n):this.delegate.setProperty(t,i,n)}listen(t,i,n){if("@"==i.charAt(0)){const r=function Hq(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t);let o=i.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function zq(e){const t=e.indexOf(".");return[e.substring(0,t),e.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(t,i,n)}}let Uq=(()=>{var e;class t extends bf{constructor(n,r,o,s){super(n.body,r,o)}ngOnDestroy(){this.flush()}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he),E(iv),E(pv),E(Xr))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const yI=[{provide:jM,useClass:Nq},{provide:pv,useFactory:function $q(){return new lq}},{provide:bf,useClass:Uq},{provide:al,useFactory:function qq(e,t,i){return new Vq(e,t,i)},deps:[$b,bf,G]}],wv=[{provide:iv,useFactory:()=>new Pq},{provide:_t,useValue:"BrowserAnimations"},...yI],wI=[{provide:iv,useClass:YM},{provide:_t,useValue:"NoopAnimations"},...yI];let xv,xI=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?wI:wv}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:wv,imports:[bM]}),t})();try{xv=typeof Intl<"u"&&Intl.v8BreakIterator}catch{xv=!1}let Ra,nt=(()=>{var e;class t{constructor(n){this._platformId=n,this.isBrowser=this._platformId?function vU(e){return e===JT}(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&&!xv)&&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}}return(e=t).\u0275fac=function(n){return new(n||e)(E(Qr))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const CI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function DI(){if(Ra)return Ra;if("object"!=typeof document||!document)return Ra=new Set(CI),Ra;let e=document.createElement("input");return Ra=new Set(CI.filter(t=>(e.setAttribute("type",t),e.type===t))),Ra}let jl,yf,Zo,Cv;function ro(e){return function Gq(){if(null==jl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>jl=!0}))}finally{jl=jl||!1}return jl}()?e:!!e.capture}function EI(){if(null==Zo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zo=!1,Zo;if("scrollBehavior"in document.documentElement.style)Zo=!0;else{const e=Element.prototype.scrollTo;Zo=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Zo}function Hl(){if("object"!=typeof document||!document)return 0;if(null==yf){const e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",e.appendChild(i),document.body.appendChild(e),yf=0,0===e.scrollLeft&&(e.scrollLeft=1,yf=0===e.scrollLeft?1:2),e.remove()}return yf}function Ir(e){return e.composedPath?e.composedPath()[0]:e.target}function Dv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function An(e,...t){return t.length?t.some(i=>e[i]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function it(e,t,i){const n=Re(e)||t||i?{next:e,error:t,complete:i}:e;return n?at((r,o)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let a=!0;r.subscribe(tt(o,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),o.next(c)},()=>{var c;a=!1,null===(c=n.complete)||void 0===c||c.call(n),o.complete()},c=>{var l;a=!1,null===(l=n.error)||void 0===l||l.call(n,c),o.error(c)},()=>{var c,l;a&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):Ti}class l7 extends Ae{constructor(t,i){super()}schedule(t,i=0){return this}}const Df={setInterval(e,t,...i){const{delegate:n}=Df;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=Df;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class Ef extends l7{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){var n;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(t,i,n=0){return Df.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,i,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return i;null!=i&&Df.clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let r,n=!1;try{this.work(t)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Ei(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}const Sv={now:()=>(Sv.delegate||Date).now(),delegate:void 0};class Ul{constructor(t,i=Ul.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Ul.now=Sv.now;class Sf extends Ul{constructor(t,i=Ul.now){super(t,i),this.actions=[],this._active=!1}flush(t){const{actions:i}=this;if(this._active)return void i.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}}}const kf=new Sf(Ef),d7=kf;function Tf(e,t=kf){return at((i,n)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,n.next(l)}};function c(){const l=s+e,d=t.now();if(d{o=l,s=t.now(),r||(r=t.schedule(c,e),n.add(r))},()=>{a(),n.complete()},void 0,()=>{o=r=null}))})}function Xe(e){return e<=0?()=>Xt:at((t,i)=>{let n=0;t.subscribe(tt(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function kv(e){return Ve((t,i)=>e<=i)}function ce(e){return at((t,i)=>{mn(e).subscribe(tt(i,()=>i.complete(),Do)),!i.closed&&t.subscribe(i)})}function Q(e){return null!=e&&"false"!=`${e}`}function Bi(e,t=0){return function u7(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function Mf(e){return Array.isArray(e)?e:[e]}function Gt(e){return null==e?"":"string"==typeof e?e:`${e}px`}function Ar(e){return e instanceof W?e.nativeElement:e}let kI=(()=>{var e;class t{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),f7=(()=>{var e;class t{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){const r=Ar(n);return new Me(o=>{const a=this._observeElement(r).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{const r=new Y,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:o,stream:r,count:1})}return this._observedElements.get(n).stream}_unobserveElement(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}_cleanupObserver(n){if(this._observedElements.has(n)){const{observer:r,stream:o}=this._observedElements.get(n);r&&r.disconnect(),o.complete(),this._observedElements.delete(n)}}}return(e=t).\u0275fac=function(n){return new(n||e)(E(kI))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),p7=(()=>{var e;class t{get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=Bi(n),this._subscribe()}constructor(n,r,o){this._contentObserver=n,this._elementRef=r,this._ngZone=o,this.event=new U,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const n=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?n.pipe(Tf(this.debounce)):n).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(f7),p(W),p(G))},e.\u0275dir=T({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Tv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[kI]}),t})();const{isArray:m7}=Array,{getPrototypeOf:g7,prototype:_7,keys:b7}=Object;function TI(e){if(1===e.length){const t=e[0];if(m7(t))return{args:t,keys:null};if(function v7(e){return e&&"object"==typeof e&&g7(e)===_7}(t)){const i=b7(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:y7}=Array;function Mv(e){return Z(t=>function w7(e,t){return y7(t)?e(...t):e(t)}(e,t))}function MI(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}function If(...e){const t=Tc(e),i=Gw(e),{args:n,keys:r}=TI(e);if(0===n.length)return Et([],t);const o=new Me(function x7(e,t,i=Ti){return n=>{II(t,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let c=0;c{const l=Et(e[c],t);let d=!1;l.subscribe(tt(n,u=>{o[c]=u,d||(d=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,r?s=>MI(r,s):Ti));return i?o.pipe(Mv(i)):o}function II(e,t,i){e?fr(i,e,t):t()}function $l(...e){return function C7(){return Ms(1)}()(Et(e,Tc(e)))}function nn(...e){const t=Tc(e);return at((i,n)=>{(t?$l(e,i,t):$l(e,i)).subscribe(n)})}const AI=new Set;let Jo,D7=(()=>{var e;class t{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S7}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function E7(e,t){if(!AI.has(e))try{Jo||(Jo=document.createElement("style"),t&&(Jo.nonce=t),Jo.setAttribute("type","text/css"),document.head.appendChild(Jo)),Jo.sheet&&(Jo.sheet.insertRule(`@media ${e} {body{ }}`,0),AI.add(e))}catch(i){console.error(i)}}(n,this._nonce),this._matchMedia(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(nt),E(Gg,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function S7(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let Iv=(()=>{var e;class t{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new Y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return RI(Mf(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let s=If(RI(Mf(n)).map(a=>this._registerQuery(a).observable));return s=$l(s.pipe(Xe(1)),s.pipe(kv(1),Tf(0))),s.pipe(Z(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{c.matches=c.matches||l,c.breakpoints[d]=l}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);const r=this._mediaMatcher.matchMedia(n),s={observable:new Me(a=>{const c=l=>this._zone.run(()=>a.next(l));return r.addListener(c),()=>{r.removeListener(c)}}).pipe(nn(r),Z(({matches:a})=>({query:n,matches:a})),ce(this._destroySubject)),mql:r};return this._queries.set(n,s),s}}return(e=t).\u0275fac=function(n){return new(n||e)(E(D7),E(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function RI(e){return e.map(t=>t.split(",")).reduce((t,i)=>t.concat(i)).map(t=>t.trim())}function Av(e,t,i){const n=Af(e,t);n.some(r=>r.trim()==i.trim())||(n.push(i.trim()),e.setAttribute(t,n.join(" ")))}function ql(e,t,i){const r=Af(e,t).filter(o=>o!=i.trim());r.length?e.setAttribute(t,r.join(" ")):e.removeAttribute(t)}function Af(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}const FI="cdk-describedby-message",Rf="cdk-describedby-host";let Rv=0,T7=(()=>{var e;class t{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Rv++,this._document=n,this._id=j(rl)+"-"+Rv++}describe(n,r,o){if(!this._canBeDescribed(n,r))return;const s=Ov(r,o);"string"!=typeof r?(PI(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,r,o){if(!r||!this._isElementNode(n))return;const s=Ov(r,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),"string"==typeof r){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const n=this._document.querySelectorAll(`[${Rf}="${this._id}"]`);for(let r=0;r0!=o.indexOf(FI));n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){const o=this._messageRegistry.get(r);Av(n,"aria-describedby",o.messageElement.id),n.setAttribute(Rf,this._id),o.referenceCount++}_removeMessageReference(n,r){const o=this._messageRegistry.get(r);o.referenceCount--,ql(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Rf)}_isElementDescribedByMessage(n,r){const o=Af(n,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&"object"==typeof r)return!0;const o=null==r?"":`${r}`.trim(),s=n.getAttribute("aria-label");return!(!o||s&&s.trim()===o)}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he),E(nt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Ov(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function PI(e,t){e.id||(e.id=`${FI}-${t}-${Rv++}`)}class NI{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=Ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,t instanceof Cr&&(this._itemChangesSubscription=t.changes.subscribe(i=>{if(this._activeItem){const r=i.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(it(i=>this._pressedLetters.push(i)),Tf(t),Ve(()=>this._pressedLetters.length>0),Z(()=>this._pressedLetters.join(""))).subscribe(i=>{const n=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.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._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const i=this._getItemsArray(),n="number"==typeof t?t:i.indexOf(t);this._activeItem=i[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const i=this._getItemsArray();for(let n=1;n<=i.length;n++){const r=(this._activeItemIndex+t*n+i.length)%i.length;if(!this._skipPredicateFn(i[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,i){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=i])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Cr?this._items.toArray():this._items}}class LI extends NI{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Fv extends NI{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let BI=(()=>{var e;class t{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return function I7(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}isTabbable(n){if(!this._platform.isBrowser)return!1;const r=function M7(e){try{return e.frameElement}catch{return null}}(function B7(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(r&&(-1===jI(r)||!this.isVisible(r)))return!1;let o=n.nodeName.toLowerCase(),s=jI(n);return n.hasAttribute("contenteditable")?-1!==s:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function N7(e){let t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(n))&&("audio"===o?!!n.hasAttribute("controls")&&-1!==s:"video"===o?-1!==s&&(null!==s||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}isFocusable(n,r){return function L7(e){return!function R7(e){return function F7(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function A7(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function O7(e){return function P7(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||VI(e))}(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(nt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function VI(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function jI(e){if(!VI(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class V7{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,i,n,r,o=!1){this._element=t,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const t=this._startAnchor,i=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.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(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const i=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){const n=this._getFirstTabbableElement(i);return n?.focus(t),!!n}return i.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const i=this._getRegionBoundary("start");return i&&i.focus(t),!!i}focusLastTabbableElement(t){const i=this._getRegionBoundary("end");return i&&i.focus(t),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const i=t.children;for(let n=0;n=0;n--){const r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,i){t?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Xe(1)).subscribe(t)}}let j7=(()=>{var e;class t{constructor(n,r,o){this._checker=n,this._ngZone=r,this._document=o}create(n,r=!1){return new V7(n,this._checker,this._ngZone,this._document,r)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(BI),E(G),E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Pv(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function Nv(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const H7=new M("cdk-input-modality-detector-options"),z7={ignoreKeys:[18,17,224,91,16]},Pa=ro({passive:!0,capture:!0});let U7=(()=>{var e;class t{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new dt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ir(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Pv(a)?"keyboard":"mouse"),this._mostRecentTarget=Ir(a))},this._onTouchstart=a=>{Nv(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ir(a))},this._options={...z7,...s},this.modalityDetected=this._modality.pipe(kv(1)),this.modalityChanged=this.modalityDetected.pipe(Is()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Pa),o.addEventListener("mousedown",this._onMousedown,Pa),o.addEventListener("touchstart",this._onTouchstart,Pa)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Pa),document.removeEventListener("mousedown",this._onMousedown,Pa),document.removeEventListener("touchstart",this._onTouchstart,Pa))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(nt),E(G),E(he),E(H7,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const $7=new M("liveAnnouncerElement",{providedIn:"root",factory:function q7(){return null}}),G7=new M("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let W7=0,Lv=(()=>{var e;class t{constructor(n,r,o,s){this._ngZone=r,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...r){const o=this._defaultOptions;let s,a;return 1===r.length&&"number"==typeof r[0]?a=r[0]:[s,a]=r,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{var e;class t{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,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 Y,this._rootNodeFocusAndBlurListener=c=>{for(let d=Ir(c);d;d=d.parentElement)"focus"===c.type?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||0}monitor(n,r=!1){const o=Ar(n);if(!this._platform.isBrowser||1!==o.nodeType)return re();const s=function Qq(e){if(function Wq(){if(null==Cv){const e=typeof document<"u"?document.head:null;Cv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Cv}()){const t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;const c={checkChildren:r,subject:new Y,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){const r=Ar(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){const s=Ar(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,r,l)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return 1===this._detectionMode||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused","touch"===r),n.classList.toggle("cdk-keyboard-focused","keyboard"===r),n.classList.toggle("cdk-mouse-focused","mouse"===r),n.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=n,this._originFromTouchInteraction="touch"===n&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(n,r){const o=this._elementInfo.get(r),s=Ir(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){const o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;const r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Of),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Of)}),this._rootNodeFocusListenerCount.set(r,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ce(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){const r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Of),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Of),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){const r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){const{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!r||r===n||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName||n.disabled)return!1;const s=n.labels;if(s)for(let a=0;a{var e;class t{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new U}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,1===n.nodeType&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(ar))},e.\u0275dir=T({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const zI="cdk-high-contrast-black-on-white",UI="cdk-high-contrast-white-on-black",Bv="cdk-high-contrast-active";let $I=(()=>{var e;class t{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=j(Iv).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);const r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const n=this._document.body.classList;n.remove(Bv,zI,UI),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?n.add(Bv,zI):2===r&&n.add(Bv,UI)}}}return(e=t).\u0275fac=function(n){return new(n||e)(E(nt),E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),qI=(()=>{var e;class t{constructor(n){n._applyBodyHighContrastModeCssClasses()}}return(e=t).\u0275fac=function(n){return new(n||e)(E($I))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[Tv]}),t})();const K7=new M("cdk-dir-doc",{providedIn:"root",factory:function X7(){return j(he)}}),Z7=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let hn=(()=>{var e;class t{constructor(n){this.value="ltr",this.change=new U,n&&(this.value=function J7(e){const t=e?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?Z7.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((n.body?n.body.dir:null)||(n.documentElement?n.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(e=t).\u0275fac=function(n){return new(n||e)(E(K7,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Gl=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const eG=["text"];function tG(e,t){if(1&e&&ie(0,"mat-pseudo-checkbox",6),2&e){const i=B();D("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function nG(e,t){1&e&&ie(0,"mat-pseudo-checkbox",7),2&e&&D("disabled",B().disabled)}function iG(e,t){if(1&e&&(y(0,"span",8),R(1),w()),2&e){const i=B();x(1),Ue("(",i.group.label,")")}}const rG=[[["mat-icon"]],"*"],oG=["mat-icon","*"],aG=new M("mat-sanity-checks",{providedIn:"root",factory:function sG(){return!0}});let ve=(()=>{var e;class t{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return!Dv()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}return(e=t).\u0275fac=function(n){return new(n||e)(E($I),E(aG,8),E(he))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[Gl,Gl]}),t})();function es(e){return class extends e{get disabled(){return this._disabled}set disabled(t){this._disabled=Q(t)}constructor(...t){super(...t),this._disabled=!1}}}function ts(e,t){return class extends e{get color(){return this._color}set color(i){const n=i||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...i){super(...i),this.defaultColor=t,this.color=t}}}function so(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Q(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function ns(e,t=0){return class extends e{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=null!=i?Bi(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=t,this.defaultTabIndex=t}}}function Vv(e){return class extends e{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let Ff=(()=>{var e;class t{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),YI=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})();class lG{constructor(t,i,n,r=!1){this._renderer=t,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const KI=ro({passive:!0,capture:!0});class dG{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const i=Ir(t);i&&this._events.get(t.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(o=>o.handleEvent(t))})}}addHandler(t,i,n,r){const o=this._events.get(i);if(o){const s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,KI)})}removeHandler(t,i,n){const r=this._events.get(t);if(!r)return;const o=r.get(i);o&&(o.delete(n),0===o.size&&r.delete(i),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,KI)))}}const XI={enterDuration:225,exitDuration:150},ZI=ro({passive:!0,capture:!0}),JI=["mousedown","touchstart"],e1=["mouseup","mouseleave","touchend","touchcancel"];class Ql{constructor(t,i,n,r){this._target=t,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ar(n))}fadeInRipple(t,i,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...XI,...n.animation};n.centered&&(t=r.left+r.width/2,i=r.top+r.height/2);const s=n.radius||function hG(e,t,i){const n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+r*r)}(t,i,r),a=t-r.left,c=i-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=c-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new lG(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",g.state=0,n.persistent||(this._mostRecentTransientRipple=g);let b=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(g),v=()=>this._destroyRipple(g);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",v),b={onTransitionEnd:_,onTransitionCancel:v}}),this._activeRipples.set(g,b),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(t){if(2===t.state||3===t.state)return;const i=t.element,n={...XI,...t.config.animation};i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const i=Ar(t);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,JI.forEach(n=>{Ql._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{e1.forEach(i=>{this._triggerElement.addEventListener(i,this,ZI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const i=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=1,!n&&(!i||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const i=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==i&&(t.element.removeEventListener("transitionend",i.onTransitionEnd),t.element.removeEventListener("transitioncancel",i.onTransitionCancel)),t.element.remove()}_onMousedown(t){const i=Pv(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(JI.forEach(i=>Ql._eventManager.removeHandler(i,t,this)),this._pointerUpEventsRegistered&&e1.forEach(i=>t.removeEventListener(i,this,ZI)))}}Ql._eventManager=new dG;const Pf=new M("mat-ripple-global-options");let ao=(()=>{var e;class t{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Ql(this,r,n,o)}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(n,r=0,o){return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,r,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...n})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(G),p(nt),p(Pf,8),p(_t,8))},e.\u0275dir=T({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),is=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})(),fG=(()=>{var e;class t{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(e=t).\u0275fac=function(n){return new(n||e)(p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){2&n&&se("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),t})(),pG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve]}),t})();const jv=new M("MAT_OPTION_PARENT_COMPONENT"),Hv=new M("MatOptgroup");let mG=0;class t1{constructor(t,i=!1){this.source=t,this.isUserInput=i}}let gG=(()=>{var e;class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(n){this._disabled=Q(n)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(n,r,o,s){this._element=n,this._changeDetectorRef=r,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+mG++,this.onSelectionChange=new U,this._stateChanges=new Y}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,r){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!An(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new t1(this,n))}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(eG,7),2&n){let o;H(o=z())&&(r._text=o.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Nf=(()=>{var e;class t extends gG{constructor(n,r,o,s){super(n,r,o,s)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(jv,8),p(Hv,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){1&n&&$("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(pi("id",r.id),de("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),se("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},exportAs:["matOption"],features:[P],ngContentSelectors:oG,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(n,r){1&n&&(ze(rG),A(0,tG,1,2,"mat-pseudo-checkbox",0),X(1),y(2,"span",1,2),X(4,1),w(),A(5,nG,1,1,"mat-pseudo-checkbox",3),A(6,iG,2,1,"span",4),ie(7,"div",5)),2&n&&(D("ngIf",r.multiple),x(5),D("ngIf",!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator),x(1),D("ngIf",r.group&&r.group._inert),x(1),D("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[ao,_i,fG],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();function n1(e,t,i){if(i.length){let n=t.toArray(),r=i.toArray(),o=0;for(let s=0;si+n?Math.max(0,e-n+t):i}let Yl=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[is,vn,ve,pG]}),t})();const o1={capture:!0},s1=["focus","click","mouseenter","touchstart"],zv="mat-ripple-loader-uninitialized",Uv="mat-ripple-loader-class-name",a1="mat-ripple-loader-centered",Lf="mat-ripple-loader-disabled";let c1=(()=>{var e;class t{constructor(){this._document=j(he,{optional:!0}),this._animationMode=j(_t,{optional:!0}),this._globalRippleOptions=j(Pf,{optional:!0}),this._platform=j(nt),this._ngZone=j(G),this._onInteraction=n=>{if(!(n.target instanceof HTMLElement))return;const o=n.target.closest(`[${zv}]`);o&&this.createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const n of s1)this._document?.addEventListener(n,this._onInteraction,o1)})}ngOnDestroy(){for(const n of s1)this._document?.removeEventListener(n,this._onInteraction,o1)}configureRipple(n,r){n.setAttribute(zv,""),(r.className||!n.hasAttribute(Uv))&&n.setAttribute(Uv,r.className||""),r.centered&&n.setAttribute(a1,""),r.disabled&&n.setAttribute(Lf,"")}getRipple(n){return n.matRipple?n.matRipple:this.createRipple(n)}setDisabled(n,r){const o=n.matRipple;o?o.disabled=r:r?n.setAttribute(Lf,""):n.removeAttribute(Lf)}createRipple(n){if(!this._document)return;n.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",n.getAttribute(Uv)),n.append(r);const o=new ao(new W(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(a1),o.disabled=n.hasAttribute(Lf),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(zv),n.matRipple=r}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Na(e,t){const i=Re(e)?e:()=>e,n=r=>r.error(i());return new Me(t?r=>t.schedule(n,0,r):n)}function l1(...e){const t=Gw(e),{args:i,keys:n}=TI(e),r=new Me(o=>{const{length:s}=i;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?MI(n,a):a),o.complete())}))}});return t?r.pipe(Mv(t)):r}function qn(e){return at((t,i)=>{let o,n=null,r=!1;n=t.subscribe(tt(i,void 0,void 0,s=>{o=mn(e(s,qn(e)(t))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}const _G=["*"];let Bf;function Kl(e){return function bG(){if(void 0===Bf&&(Bf=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(Bf=e.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Bf}()?.createHTML(e)||e}function d1(e){return Error(`Unable to find icon with the name "${e}"`)}function u1(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function h1(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class rs{constructor(t,i,n){this.url=t,this.svgText=i,this.options=n}}let Xl=(()=>{var e;class t{constructor(n,r,o,s){this._httpClient=n,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,r,o){return this.addSvgIconInNamespace("",n,r,o)}addSvgIconLiteral(n,r,o){return this.addSvgIconLiteralInNamespace("",n,r,o)}addSvgIconInNamespace(n,r,o,s){return this._addSvgIconConfig(n,r,new rs(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,o,s){const a=this._sanitizer.sanitize(dn.HTML,o);if(!a)throw h1(o);const c=Kl(a);return this._addSvgIconConfig(n,r,new rs("",c,s))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,o){return this._addSvgIconSetConfig(n,new rs(r,null,o))}addSvgIconSetLiteralInNamespace(n,r,o){const s=this._sanitizer.sanitize(dn.HTML,r);if(!s)throw h1(r);const a=Kl(s);return this._addSvgIconSetConfig(n,new rs("",a,o))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){const r=this._sanitizer.sanitize(dn.RESOURCE_URL,n);if(!r)throw u1(n);const o=this._cachedIconsByUrl.get(r);return o?re(Vf(o)):this._loadSvgIconFromConfig(new rs(n,null)).pipe(it(s=>this._cachedIconsByUrl.set(r,s)),Z(s=>Vf(s)))}getNamedSvgIcon(n,r=""){const o=f1(r,n);let s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);const a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):Na(d1(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?re(Vf(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Z(r=>Vf(r)))}_getSvgFromIconSetConfigs(n,r){const o=this._extractIconWithNameFromAnySet(n,r);return o?re(o):l1(r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(qn(c=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(dn.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(d)),re(null)})))).pipe(Z(()=>{const a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw d1(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let o=r.length-1;o>=0;o--){const s=r[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){const a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,n,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(it(r=>n.svgText=r),Z(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?re(null):this._fetchIcon(n).pipe(it(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,o){const s=n.querySelector(`[id="${r}"]`);if(!s)return null;const a=s.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const c=this._svgElementFromString(Kl(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(n){const r=this._document.createElement("DIV");r.innerHTML=n;const o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){const r=this._svgElementFromString(Kl("")),o=n.attributes;for(let s=0;sKl(d)),Ta(()=>this._inProgressUrlFetches.delete(a)),iu());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(n,r,o){return this._svgIconConfigs.set(f1(n,r),o),this}_addSvgIconSetConfig(n,r){const o=this._iconSetConfigs.get(n);return o?o.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){const r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let o=0;ot?t.pathname+t.search:""}}}),p1=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],SG=p1.map(e=>`[${e}]`).join(", "),kG=/^url\(['"]?#(.*?)['"]?\)$/;let $v=(()=>{var e;class t extends xG{get inline(){return this._inline}set inline(n){this._inline=Q(n)}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){const r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){const r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,o,s,a,c){super(n),this._iconRegistry=r,this._location=s,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ae.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];const r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const n=this._elementsWithExternalReferences;if(n&&n.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){const n=this._elementRef.nativeElement;let r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const o=n.childNodes[r];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return"string"==typeof n?n.trim().split(" ")[0]:n}_prependPathToReferences(n){const r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){const r=n.querySelectorAll(SG),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const c=r[s],l=c.getAttribute(a),d=l?l.match(kG):null;if(d){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){const[r,o]=this._splitIconName(n);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(Xe(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${o}! ${s.message}`))})}}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Xl),ui("aria-hidden"),p(DG),p(Ji),p(CG,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(n,r){2&n&&(de("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),se("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[P],ngContentSelectors:_G,decls:1,vars:0,template:function(n,r){1&n&&(ze(),X(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),qv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})();const TG=["mat-button",""],m1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],g1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],IG=["mat-mini-fab",""],RG=["mat-icon-button",""],OG=["*"],FG=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],PG=ts(es(so(class{constructor(e){this._elementRef=e}})));let Gv=(()=>{var e;class t extends PG{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Q(n),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._updateRippleDisabled()}constructor(n,r,o,s){super(n),this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=j(ar),this._rippleLoader=j(c1),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=n.nativeElement.classList;for(const c of FG)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(l=>{a.add(l)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(n="program",r){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,r):this._elementRef.nativeElement.focus(r)}_hasHostAttributes(...n){return n.some(r=>this._elementRef.nativeElement.hasAttribute(r))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,features:[P]}),t})(),_1=(()=>{var e;class t extends Gv{constructor(n,r,o,s){super(n,r,o,s)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(nt),p(G),p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(n,r){2&n&&(de("disabled",r.disabled||null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[P],attrs:TG,ngContentSelectors:g1,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(n,r){1&n&&(ze(m1),ie(0,"span",0),X(1),y(2,"span",1),X(3,1),w(),X(4,2),ie(5,"span",2)(6,"span",3)),2&n&&se("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );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{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 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))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.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, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.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{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.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}),t})();const LG=new M("mat-mdc-fab-default-options",{providedIn:"root",factory:b1});function b1(){return{color:"accent"}}const v1=b1();let BG=(()=>{var e;class t extends Gv{constructor(n,r,o,s,a){super(n,r,o,s),this._options=a,this._isFab=!0,this._options=this._options||v1,this.color=this.defaultColor=this._options.color||v1.color}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(nt),p(G),p(_t,8),p(LG,8))},e.\u0275cmp=fe({type:e,selectors:[["button","mat-mini-fab",""]],hostVars:7,hostBindings:function(n,r){2&n&&(de("disabled",r.disabled||null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[P],attrs:IG,ngContentSelectors:g1,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(n,r){1&n&&(ze(m1),ie(0,"span",0),X(1),y(2,"span",1),X(3,1),w(),X(4,2),ie(5,"span",2)(6,"span",3)),2&n&&se("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._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);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__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-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::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-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);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);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),t})(),Wv=(()=>{var e;class t extends Gv{constructor(n,r,o,s){super(n,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(nt),p(G),p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(n,r){2&n&&(de("disabled",r.disabled||null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[P],attrs:RG,ngContentSelectors:OG,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(n,r){1&n&&(ze(),ie(0,"span",0),X(1),ie(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{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.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{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.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}),t})(),jf=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,is,ve]}),t})();const VG=["*",[["mat-toolbar-row"]]],jG=["*","mat-toolbar-row"],HG=ts(class{constructor(e){this._elementRef=e}});let Qv,zG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),UG=(()=>{var e;class t extends HG{constructor(n,r,o){super(n),this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(nt),p(he))},e.\u0275cmp=fe({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,zG,5),2&n){let s;H(s=z())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(n,r){2&n&&se("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[P],ngContentSelectors:jG,decls:2,vars:0,template:function(n,r){1&n&&(ze(VG),X(0),X(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),t})(),$G=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})(),WG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[YI,ve,YI,ve]}),t})(),QG=1;const Hf={};function w1(e){return e in Hf&&(delete Hf[e],!0)}const YG={setImmediate(e){const t=QG++;return Hf[t]=!0,Qv||(Qv=Promise.resolve()),Qv.then(()=>w1(t)&&e()),t},clearImmediate(e){w1(e)}},{setImmediate:KG,clearImmediate:XG}=YG,zf={setImmediate(...e){const{delegate:t}=zf;return(t?.setImmediate||KG)(...e)},clearImmediate(e){const{delegate:t}=zf;return(t?.clearImmediate||XG)(e)},delegate:void 0},Yv=new class JG extends Sf{flush(t){this._active=!0;const i=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===i&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===i&&n.shift();)t.unsubscribe();throw r}}}(class ZG extends Ef{constructor(t,i){super(t,i),this.scheduler=t,this.work=i}requestAsyncId(t,i,n=0){return null!==n&&n>0?super.requestAsyncId(t,i,n):(t.actions.push(this),t._scheduled||(t._scheduled=zf.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,i,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,i,n);const{actions:o}=t;null!=i&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==i&&(zf.clearImmediate(i),t._scheduled===i&&(t._scheduled=void 0))}});function Uf(e){return Z(()=>e)}function x1(e,t){return t?i=>$l(t.pipe(Xe(1),function e9(){return at((e,t)=>{e.subscribe(tt(t,Do))})}()),i.pipe(x1(e))):Kt((i,n)=>mn(e(i,n)).pipe(Xe(1),Uf(i)))}function Kv(e=0,t,i=d7){let n=-1;return null!=t&&(qw(t)?i=t:n=t),new Me(r=>{let o=function t9(e){return e instanceof Date&&!isNaN(e)}(e)?+e-i.now():e;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Xv(e,t=kf){const i=Kv(e,t);return x1(()=>i)}class Zv{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class $f extends Zv{constructor(t,i,n,r,o){super(),this.component=t,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class co extends Zv{constructor(t,i,n,r){super(),this.templateRef=t,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,i=this.context){return this.context=i,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class n9 extends Zv{constructor(t){super(),this.element=t instanceof W?t.nativeElement:t}}class Jv{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof $f?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof co?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof n9?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class i9 extends Jv{constructor(t,i,n,r,o){super(),this.outletElement=t,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector||jt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);-1!==r&&i.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let r9=(()=>{var e;class t extends co{constructor(n,r){super(n,r)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(pt))},e.\u0275dir=T({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[P]}),t})(),La=(()=>{var e;class t extends Jv{constructor(n,r,o){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new U,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);const r=null!=n.viewContainerRef?n.viewContainerRef:this._viewContainerRef,s=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=r.createComponent(s,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=n,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(n){n.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Bo),p(pt),p(he))},e.\u0275dir=T({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[P]}),t})(),qf=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const o9=["addListener","removeListener"],s9=["addEventListener","removeEventListener"],a9=["on","off"];function Vi(e,t,i,n){if(Re(i)&&(n=i,i=void 0),n)return Vi(e,t,i).pipe(Mv(n));const[r,o]=function d9(e){return Re(e.addEventListener)&&Re(e.removeEventListener)}(e)?s9.map(s=>a=>e[s](t,a,i)):function c9(e){return Re(e.addListener)&&Re(e.removeListener)}(e)?o9.map(C1(e,t)):function l9(e){return Re(e.on)&&Re(e.off)}(e)?a9.map(C1(e,t)):[];if(!r&&Dm(e))return Kt(s=>Vi(s,t,i))(mn(e));if(!r)throw new TypeError("Invalid event target");return new Me(s=>{const a=(...c)=>s.next(1o(a)})}function C1(e,t){return i=>n=>e[i](t,n)}const Zl={schedule(e){let t=requestAnimationFrame,i=cancelAnimationFrame;const{delegate:n}=Zl;n&&(t=n.requestAnimationFrame,i=n.cancelAnimationFrame);const r=t(o=>{i=void 0,e(o)});return new Ae(()=>i?.(r))},requestAnimationFrame(...e){const{delegate:t}=Zl;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:t}=Zl;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class h9 extends Sf{flush(t){this._active=!0;const i=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===i&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===i&&n.shift();)t.unsubscribe();throw r}}}(class u9 extends Ef{constructor(t,i){super(t,i),this.scheduler=t,this.work=i}requestAsyncId(t,i,n=0){return null!==n&&n>0?super.requestAsyncId(t,i,n):(t.actions.push(this),t._scheduled||(t._scheduled=Zl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,i,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,i,n);const{actions:o}=t;null!=i&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==i&&(Zl.cancelAnimationFrame(i),t._scheduled=void 0)}});function D1(e,t=kf){return function p9(e){return at((t,i)=>{let n=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const l=r;r=null,i.next(l)}s&&i.complete()},c=()=>{o=null,s&&i.complete()};t.subscribe(tt(i,l=>{n=!0,r=l,o||mn(e(l)).subscribe(o=tt(i,a,c))},()=>{s=!0,(!n||!o||o.closed)&&i.complete()}))})}(()=>Kv(e,t))}let Gf=(()=>{var e;class t{constructor(n,r,o){this._ngZone=n,this._platform=r,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){const r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=20){return this._platform.isBrowser?new Me(r=>{this._globalSubscription||this._addGlobalListener();const o=n>0?this._scrolled.pipe(D1(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):re()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){const o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Ve(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(n){const r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,n)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let o=Ar(r),s=n.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Vi(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(G),E(nt),E(he,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),ey=(()=>{var e;class t{constructor(n,r,o,s){this.elementRef=n,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new Y,this._elementScrolled=new Me(a=>this.ngZone.runOutsideAngular(()=>Vi(this.elementRef.nativeElement,"scroll").pipe(ce(this._destroyed)).subscribe(a)))}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(n){const r=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=o?n.end:n.start),null==n.right&&(n.right=o?n.start:n.end),null!=n.bottom&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),o&&0!=Hl()?(null!=n.left&&(n.right=r.scrollWidth-r.clientWidth-n.left),2==Hl()?n.left=n.right:1==Hl()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){const r=this.elementRef.nativeElement;EI()?r.scrollTo(n):(null!=n.top&&(r.scrollTop=n.top),null!=n.left&&(r.scrollLeft=n.left))}measureScrollOffset(n){const r="left",o="right",s=this.elementRef.nativeElement;if("top"==n)return s.scrollTop;if("bottom"==n)return s.scrollHeight-s.clientHeight-s.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==n?n=a?o:r:"end"==n&&(n=a?r:o),a&&2==Hl()?n==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&1==Hl()?n==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:n==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Gf),p(G),p(hn,8))},e.\u0275dir=T({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),Rr=(()=>{var e;class t{constructor(n,r,o){this._platform=n,this._change=new Y,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(n.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){const n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const n=this._document,r=this._getWindow(),o=n.documentElement,s=o.getBoundingClientRect();return{top:-s.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,left:-s.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0}}change(n=20){return n>0?this._change.pipe(D1(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}return(e=t).\u0275fac=function(n){return new(n||e)(E(nt),E(G),E(he,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),lo=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})(),ty=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[Gl,lo,Gl,lo]}),t})();const E1=EI();class b9{constructor(t,i){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Gt(-this._previousScrollPosition.left),t.style.top=Gt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,r=this._document.body.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),E1&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),E1&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}}class v9{constructor(t,i,n,r){this._scrollDispatcher=t,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe(Ve(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class S1{enable(){}disable(){}attach(){}}function ny(e,t){return t.some(i=>e.bottomi.bottom||e.righti.right)}function k1(e,t){return t.some(i=>e.topi.bottom||e.lefti.right)}class y9{constructor(t,i,n,r){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();ny(i,[{width:n,height:r,bottom:r,right:n,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 w9=(()=>{var e;class t{constructor(n,r,o,s){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new S1,this.close=a=>new v9(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new b9(this._viewportRuler,this._document),this.reposition=a=>new y9(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}}return(e=t).\u0275fac=function(n){return new(n||e)(E(Gf),E(Rr),E(G),E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Jl{constructor(t){if(this.scrollStrategy=new S1,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const i=Object.keys(t);for(const n of i)void 0!==t[n]&&(this[n]=t[n])}}}class x9{constructor(t,i){this.connectionPair=t,this.scrollableViewProperties=i}}let T1=(()=>{var e;class t{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){const r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),C9=(()=>{var e;class t extends T1{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=o=>{const s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){const c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(n){super.add(n),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)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he),E(G,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),D9=(()=>{var e;class t extends T1{constructor(n,r,o){super(n),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Ir(s)},this._clickListener=s=>{const a=Ir(s),c="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){const u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(c))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(n){if(super.add(n),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he),E(nt),E(G,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),M1=(()=>{var e;class t{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||Dv()){const o=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const i=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Xe(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 i?.onDestroy&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Gt(this._config.width),t.height=Gt(this._config.height),t.minWidth=Gt(this._config.minWidth),t.minHeight=Gt(this._config.minHeight),t.maxWidth=Gt(this._config.maxWidth),t.maxHeight=Gt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,i,n){const r=Mf(i||[]).filter(o=>!!o);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(ce(Rt(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const I1="cdk-overlay-connected-position-bounding-box",S9=/([A-Za-z%]+)$/;class k9{get positions(){return this._preferredPositions}constructor(t,i,n,r,o){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=o,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 Y,this._resizeSubscription=Ae.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(I1),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,r,a),l=this._getOverlayPoint(c,i,a),d=this._getOverlayFit(l,i,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(d,l,n)?o.push({position:a,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ss(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,i)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,i,n){let r,o;if("center"==n.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==n.originX?s:a}return i.left<0&&(r-=i.left),o="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,i.top<0&&(o-=i.top),{x:r,y:o}}_getOverlayPoint(t,i,n){let r,o;return r="center"==n.overlayX?-i.width/2:"start"===n.overlayX?this._isRtl()?-i.width:0:this._isRtl()?0:-i.width,o="center"==n.overlayY?-i.height/2:"top"==n.overlayY?0:-i.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,i,n,r){const o=R1(i);let{x:s,y:a}=t,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let h=0-a,f=a+o.height-n.height,m=this._subtractOverflows(o.width,0-s,s+o.width-n.width),g=this._subtractOverflows(o.height,h,f),b=m*g;return{visibleArea:b,isCompletelyWithinViewport:o.width*o.height===b,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(t,i,n){if(this._hasFlexibleDimensions){const r=n.bottom-i.y,o=n.right-i.x,s=A1(this._overlayRef.getConfig().minHeight),a=A1(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(t,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=R1(i),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),c=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);let d=0,u=0;return d=r.width<=o.width?l||-s:t.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-m/2)}if("end"===i.overlayX&&!r||"start"===i.overlayX&&r)h=n.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===i.overlayX&&!r||"end"===i.overlayX&&r)u=t.x,d=n.right-t.x;else{const f=Math.min(n.right-t.x+n.left,t.x),m=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(t,i){const n=this._calculateBoundingBoxRect(t,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Gt(n.height),r.top=Gt(n.top),r.bottom=Gt(n.bottom),r.width=Gt(n.width),r.left=Gt(n.left),r.right=Gt(n.right),r.alignItems="center"===i.overlayX?"center":"end"===i.overlayX?"flex-end":"flex-start",r.justifyContent="center"===i.overlayY?"center":"bottom"===i.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Gt(o)),s&&(r.maxWidth=Gt(s))}this._lastBoundingBoxSize=n,ss(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ss(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ss(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,i){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();ss(n,this._getExactOverlayY(i,t,d)),ss(n,this._getExactOverlayX(i,t,d))}else n.position="static";let a="",c=this._getOffset(i,"x"),l=this._getOffset(i,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=Gt(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=Gt(s.maxWidth):o&&(n.maxWidth="")),ss(this._pane.style,n)}_getExactOverlayY(t,i,n){let r={top:"",bottom:""},o=this._getOverlayPoint(i,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Gt(o.y),r}_getExactOverlayX(t,i,n){let s,r={left:"",right:""},o=this._getOverlayPoint(i,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Gt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:k1(t,n),isOriginOutsideView:ny(t,n),isOverlayClipped:k1(i,n),isOverlayOutsideView:ny(i,n)}}_subtractOverflows(t,...i){return i.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:t-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,i){return"x"===i?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Mf(t).forEach(i=>{""!==i&&-1===this._appliedPanelClasses.indexOf(i)&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof W)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const i=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+i,height:n,width:i}}}function ss(e,t){for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function A1(e){if("number"!=typeof e&&null!=e){const[t,i]=e.split(S9);return i&&"px"!==i?null:parseFloat(t)}return e||null}function R1(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const O1="cdk-global-overlay-wrapper";class T9{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const i=t.getConfig();this._overlayRef=t,this._width&&!i.width&&t.updateSize({width:this._width}),this._height&&!i.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(O1),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,c=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",g="";c?g="flex-start":"center"===d?(g="center",h?m=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",m=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=c?"0":f,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":m,i.justifyContent=g,i.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(O1),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let M9=(()=>{var e;class t{constructor(n,r,o,s){this._viewportRuler=n,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new T9}flexibleConnectedTo(n){return new k9(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(Rr),E(he),E(nt),E(M1))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),I9=0,wi=(()=>{var e;class t{constructor(n,r,o,s,a,c,l,d,u,h,f,m){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=m}create(n){const r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new Jl(n);return a.direction=a.direction||this._directionality.value,new E9(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(n){const r=this._document.createElement("div");return r.id="cdk-overlay-"+I9++,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){const n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Xr)),new i9(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(w9),E(M1),E(Bo),E(M9),E(C9),E(jt),E(G),E(he),E(hn),E(Nh),E(D9),E(_t,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const A9=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],F1=new M("cdk-connected-overlay-scroll-strategy");let iy=(()=>{var e;class t{constructor(n){this.elementRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W))},e.\u0275dir=T({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),P1=(()=>{var e;class t{get offsetX(){return this._offsetX}set offsetX(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(n){this._hasBackdrop=Q(n)}get lockPosition(){return this._lockPosition}set lockPosition(n){this._lockPosition=Q(n)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(n){this._flexibleDimensions=Q(n)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(n){this._growAfterOpen=Q(n)}get push(){return this._push}set push(n){this._push=Q(n)}constructor(n,r,o,s,a){this._overlay=n,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ae.EMPTY,this._attachSubscription=Ae.EMPTY,this._detachSubscription=Ae.EMPTY,this._positionSubscription=Ae.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new U,this.positionChange=new U,this.attach=new U,this.detach=new U,this.overlayKeydown=new U,this.overlayOutsideClick=new U,this._templatePortal=new co(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=A9);const n=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=n.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=n.detachments().subscribe(()=>this.detach.emit()),n.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),27===r.keyCode&&!this.disableClose&&!An(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{this.overlayOutsideClick.next(r)})}_buildConfig(){const n=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Jl({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(n){const r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return n.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const n=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(n),n}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof iy?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(n=>{this.backdropClick.emit(n)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function _9(e,t=!1){return at((i,n)=>{let r=0;i.subscribe(tt(n,o=>{const s=e(o,r++);(s||t)&&n.next(o),!s&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(n=>{this.positionChange.emit(n),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(wi),p(ct),p(pt),p(F1),p(hn,8))},e.\u0275dir=T({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[kt]}),t})();const O9={provide:F1,deps:[wi],useFactory:function R9(e){return()=>e.scrollStrategies.reposition()}};let ed=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[wi,O9],imports:[Gl,qf,ty,ty]}),t})();const F9=["mat-menu-item",""];function P9(e,t){1&e&&(zs(),y(0,"svg",3),ie(1,"polygon",4),w())}const N9=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],L9=["mat-icon, [matMenuItemIcon]","*"];function B9(e,t){if(1&e){const i=Pt();y(0,"div",0),$("keydown",function(r){return Ge(i),We(B()._handleKeydown(r))})("click",function(){return Ge(i),We(B().closed.emit("click"))})("@transformMenu.start",function(r){return Ge(i),We(B()._onAnimationStart(r))})("@transformMenu.done",function(r){return Ge(i),We(B()._onAnimationDone(r))}),y(1,"div",1),X(2),w()()}if(2&e){const i=B();D("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),de("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}const V9=["*"],ry=new M("MAT_MENU_PANEL"),j9=so(es(class{}));let Wf=(()=>{var e;class t extends j9{constructor(n,r,o,s,a){super(),this._elementRef=n,this._document=r,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Y,this._focused=new Y,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(n,r){this._focusMonitor&&n?this._focusMonitor.focusVia(this._getHostElement(),n,r):this._getHostElement().focus(r),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(n){this.disabled&&(n.preventDefault(),n.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const n=this._elementRef.nativeElement.cloneNode(!0),r=n.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Lt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1)"}))),Bt("* => void",Lt("100ms 25ms linear",je({opacity:0})))]),fadeInItems:ni("fadeInItems",[qt("showing",je({opacity:1})),Bt("void => *",[je({opacity:0}),Lt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let z9=0;const N1=new M("mat-menu-default-options",{providedIn:"root",factory:function U9(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let td=(()=>{var e;class t{get xPosition(){return this._xPosition}set xPosition(n){this._xPosition=n,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(n){this._yPosition=n,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(n){this._overlapTrigger=Q(n)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(n){this._hasBackdrop=Q(n)}set panelClass(n){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=n,n&&n.length&&(n.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(n){this.panelClass=n}constructor(n,r,o,s){this._elementRef=n,this._ngZone=r,this._changeDetectorRef=s,this._directDescendantItems=new Cr,this._classList={},this._panelAnimationState="void",this._animationDone=new Y,this.closed=new U,this.close=this.closed,this.panelId="mat-menu-panel-"+z9++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Fv(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(nn(this._directDescendantItems),Vt(n=>Rt(...n.map(r=>r._focused)))).subscribe(n=>this._keyManager.updateActiveItem(n)),this._directDescendantItems.changes.subscribe(n=>{const r=this._keyManager;if("enter"===this._panelAnimationState&&r.activeItem?._hasFocus()){const o=n.toArray(),s=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[s]&&!o[s].disabled?r.setActiveItem(s):r.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(nn(this._directDescendantItems),Vt(r=>Rt(...r.map(o=>o._hovered))))}addItem(n){}removeItem(n){}_handleKeydown(n){const r=n.keyCode,o=this._keyManager;switch(r){case 27:An(n)||(n.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===r||40===r)&&o.setFocusOrigin("keyboard"),void o.onKeydown(n)}n.stopPropagation()}focusFirstItem(n="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(n).setFirstItemActive(),!o.activeItem&&r&&r.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(n){const r=Math.min(this._baseElevation+n,24),o=`${this._elevationPrefix}${r}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(n=this.xPosition,r=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===n,o["mat-menu-after"]="after"===n,o["mat-menu-above"]="above"===r,o["mat-menu-below"]="below"===r,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(n){this._animationDone.next(n),this._isAnimating=!1}_onAnimationStart(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(nn(this._allItems)).subscribe(n=>{this._directDescendantItems.reset(n.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(G),p(N1),p(Fe))},e.\u0275dir=T({type:e,contentQueries:function(n,r,o){if(1&n&&(Ee(o,H9,5),Ee(o,Wf,5),Ee(o,Wf,4)),2&n){let s;H(s=z())&&(r.lazyContent=s.first),H(s=z())&&(r._allItems=s),H(s=z())&&(r.items=s)}},viewQuery:function(n,r){if(1&n&&ke(ct,5),2&n){let o;H(o=z())&&(r.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),$9=(()=>{var e;class t extends td{constructor(n,r,o,s){super(n,r,o,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(G),p(N1),p(Fe))},e.\u0275cmp=fe({type:e,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(n,r){2&n&&de("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[J([{provide:ry,useExisting:e}]),P],ngContentSelectors:V9,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(n,r){1&n&&(ze(),A(0,B9,3,6,"ng-template"))},dependencies:[Ea],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Qf.transformMenu,Qf.fadeInItems]},changeDetection:0}),t})();const L1=new M("mat-menu-scroll-strategy"),G9={provide:L1,deps:[wi],useFactory:function q9(e){return()=>e.scrollStrategies.reposition()}},B1=ro({passive:!0});let W9=(()=>{var e;class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(n){this.menu=n}get menu(){return this._menu}set menu(n){n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(n,r,o,s,a,c,l,d,u){this._overlay=n,this._element=r,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ae.EMPTY,this._hoverSubscription=Ae.EMPTY,this._menuCloseSubscription=Ae.EMPTY,this._changeDetectorRef=j(Fe),this._handleTouchStart=h=>{Nv(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new U,this.onMenuOpen=this.menuOpened,this.menuClosed=new U,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof td?a:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,B1)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B1),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const n=this.menu;if(this._menuOpen||!n)return;const r=this._createOverlay(n),o=r.getConfig(),s=o.positionStrategy;this._setPosition(n,s),o.hasBackdrop=null==n.hasBackdrop?!this.triggersSubmenu():n.hasBackdrop,r.attach(this._getPortal(n)),n.lazyContent&&n.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(n),n instanceof td&&(n._startAnimation(),n._directDescendantItems.changes.pipe(ce(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(n,r){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,r):this._element.nativeElement.focus(r)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(n){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof td?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(Ve(o=>"void"===o.toState),Xe(1),ce(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r?.lazyContent?.detach())}_initMenu(n){n.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,this._setMenuElevation(n),n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(n){if(n.setElevation){let r=0,o=n.parentMenu;for(;o;)r++,o=o.parentMenu;n.setElevation(r)}}_setIsMenuOpen(n){n!==this._menuOpen&&(this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n),this._changeDetectorRef.markForCheck())}_createOverlay(n){if(!this._overlayRef){const r=this._getOverlayConfig(n);this._subscribeToPositions(n,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(n){return new Jl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:n.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:n.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(n,r){n.setPositionClasses&&r.positionChanges.subscribe(o=>{const s="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>n.setPositionClasses(s,a)):n.setPositionClasses(s,a)})}_setPosition(n,r){let[o,s]="before"===n.xPosition?["end","start"]:["start","end"],[a,c]="above"===n.yPosition?["bottom","top"]:["top","bottom"],[l,d]=[a,c],[u,h]=[o,s],f=0;if(this.triggersSubmenu()){if(h=o="before"===n.xPosition?"start":"end",s=u="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}f="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else n.overlapTrigger||(l="top"===a?"bottom":"top",d="top"===c?"bottom":"top");r.withPositions([{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:f},{originX:s,originY:l,overlayX:h,overlayY:a,offsetY:f},{originX:o,originY:d,overlayX:u,overlayY:c,offsetY:-f},{originX:s,originY:d,overlayX:h,overlayY:c,offsetY:-f}])}_menuClosingActions(){const n=this._overlayRef.backdropClick(),r=this._overlayRef.detachments();return Rt(n,this._parentMaterialMenu?this._parentMaterialMenu.closed:re(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ve(a=>a!==this._menuItemInstance),Ve(()=>this._menuOpen)):re(),r)}_handleMousedown(n){Pv(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}_handleKeydown(n){const r=n.keyCode;(13===r||32===r)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===r&&"ltr"===this.dir||37===r&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ve(n=>n===this._menuItemInstance&&!n.disabled),Xv(0,Yv)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof td&&this.menu._isAnimating?this.menu._animationDone.pipe(Xe(1),Xv(0,Yv),ce(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(n){return(!this._portal||this._portal.templateRef!==n.templateRef)&&(this._portal=new co(n.templateRef,this._viewContainerRef)),this._portal}}return(e=t).\u0275fac=function(n){return new(n||e)(p(wi),p(W),p(pt),p(L1),p(ry,8),p(Wf,10),p(hn,8),p(ar),p(G))},e.\u0275dir=T({type:e,hostVars:3,hostBindings:function(n,r){1&n&&$("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&de("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Q9=(()=>{var e;class t extends W9{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[P]}),t})(),Y9=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[G9],imports:[vn,is,ve,ed,lo,ve]}),t})();function V1(e){return!!e&&(e instanceof Me||Re(e.lift)&&Re(e.subscribe))}const Yf=wc(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Kf(e){return new Me(t=>{mn(e()).subscribe(t)})}function oy(){return at((e,t)=>{let i=null;e._refCount++;const n=tt(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(i=null);const r=e._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(i=e.connect())})}class sy extends Me{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Dc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ae;const i=this.getSubject();t.add(this.source.subscribe(tt(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ae.EMPTY)}return t}refCount(){return oy()(this)}}function Xf(e){return at((t,i)=>{let n=!1;t.subscribe(tt(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function j1(e=K9){return at((t,i)=>{let n=!1;t.subscribe(tt(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function K9(){return new Yf}function as(e,t){const i=arguments.length>=2;return n=>n.pipe(e?Ve((r,o)=>e(r,o,n)):Ti,Xe(1),i?Xf(t):j1(()=>new Yf))}function ay(e){return e<=0?()=>Xt:at((t,i)=>{let n=[];t.subscribe(tt(i,r=>{n.push(r),e{for(const r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}const Te="primary",nd=Symbol("RouteTitle");class eW{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function Ba(e){return new eW(e)}function tW(e,t,i){const n=i.path.split("/");if(n.length>e.length||"full"===i.pathMatch&&(t.hasChildren()||n.lengthn[o]===r)}return e===t}function z1(e){return e.length>0?e[e.length-1]:null}function uo(e){return V1(e)?e:_l(e)?Et(Promise.resolve(e)):re(e)}const iW={exact:function q1(e,t,i){if(!cs(e.segments,t.segments)||!Zf(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!q1(e.children[n],t.children[n],i))return!1;return!0},subset:G1},U1={exact:function rW(e,t){return cr(e,t)},subset:function oW(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>H1(e[i],t[i]))},ignored:()=>!0};function $1(e,t,i){return iW[i.paths](e.root,t.root,i.matrixParams)&&U1[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function G1(e,t,i){return W1(e,t,t.segments,i)}function W1(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!cs(r,i)||t.hasChildren()||!Zf(r,i,n))}if(e.segments.length===i.length){if(!cs(e.segments,i)||!Zf(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!G1(e.children[r],t.children[r],n))return!1;return!0}{const r=i.slice(0,e.segments.length),o=i.slice(e.segments.length);return!!(cs(e.segments,r)&&Zf(e.segments,r,n)&&e.children[Te])&&W1(e.children[Te],t,o,n)}}function Zf(e,t,i){return t.every((n,r)=>U1[i](e[r].parameters,n.parameters))}class Va{constructor(t=new et([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ba(this.queryParams)),this._queryParamMap}toString(){return cW.serialize(this)}}class et{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jf(this)}}class id{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=Ba(this.parameters)),this._parameterMap}toString(){return K1(this)}}function cs(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let rd=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return new cy},providedIn:"root"}),t})();class cy{parse(t){const i=new vW(t);return new Va(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${od(t.root,!0)}`,n=function uW(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${ep(i)}=${ep(r)}`).join("&"):`${ep(i)}=${ep(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function lW(e){return encodeURI(e)}(t.fragment)}`:""}`}}const cW=new cy;function Jf(e){return e.segments.map(t=>K1(t)).join("/")}function od(e,t){if(!e.hasChildren())return Jf(e);if(t){const i=e.children[Te]?od(e.children[Te],!1):"",n=[];return Object.entries(e.children).forEach(([r,o])=>{r!==Te&&n.push(`${r}:${od(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function aW(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===Te&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==Te&&(i=i.concat(t(r,n)))}),i}(e,(n,r)=>r===Te?[od(e.children[Te],!1)]:[`${r}:${od(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Te]?`${Jf(e)}/${i[0]}`:`${Jf(e)}/(${i.join("//")})`}}function Q1(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ep(e){return Q1(e).replace(/%3B/gi,";")}function ly(e){return Q1(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tp(e){return decodeURIComponent(e)}function Y1(e){return tp(e.replace(/\+/g,"%20"))}function K1(e){return`${ly(e.path)}${function dW(e){return Object.keys(e).map(t=>`;${ly(t)}=${ly(e[t])}`).join("")}(e.parameters)}`}const hW=/^[^\/()?;#]+/;function dy(e){const t=e.match(hW);return t?t[0]:""}const fW=/^[^\/()?;=#]+/,mW=/^[^=?&#]+/,_W=/^[^&#]+/;class vW{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[Te]=new et(t,i)),n}parseSegment(){const t=dy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new id(tp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function pW(e){const t=e.match(fW);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=dy(this.remaining);r&&(n=r,this.capture(n))}t[tp(i)]=tp(n)}parseQueryParam(t){const i=function gW(e){const t=e.match(mW);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function bW(e){const t=e.match(_W);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=Y1(i),o=Y1(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=dy(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Te);const s=this.parseChildren();i[o]=1===Object.keys(s).length?s[Te]:new et([],s),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}}function X1(e){return e.segments.length>0?new et([],{[Te]:e}):e}function Z1(e){const t={};for(const n of Object.keys(e.children)){const o=Z1(e.children[n]);if(n===Te&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}return function yW(e){if(1===e.numberOfChildren&&e.children[Te]){const t=e.children[Te];return new et(e.segments.concat(t.segments),t.children)}return e}(new et(e.segments,t))}function ls(e){return e instanceof Va}function J1(e){let t;const r=X1(function i(o){const s={};for(const c of o.children){const l=i(c);s[c.outlet]=l}const a=new et(o.url,s);return o===e&&(t=a),a}(e.root));return t??r}function eA(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return uy(r,r,r,i,n);const o=function xW(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new nA(!0,0,e);let t=0,i=!1;const n=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?i=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new nA(i,t,n)}(t);if(o.toRoot())return uy(r,r,new et([],{}),i,n);const s=function CW(e,t,i){if(e.isAbsolute)return new ip(t,!0,0);if(!i)return new ip(t,!1,NaN);if(null===i.parent)return new ip(i,!0,0);const n=np(e.commands[0])?0:1;return function DW(e,t,i){let n=e,r=t,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new I(4005,!1);r=n.segments.length}return new ip(n,!1,r-o)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?ad(s.segmentGroup,s.index,o.commands):iA(s.segmentGroup,s.index,o.commands);return uy(r,s.segmentGroup,a,i,n)}function np(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function sd(e){return"object"==typeof e&&null!=e&&e.outlets}function uy(e,t,i,n,r){let s,o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`}),s=e===t?i:tA(e,t,i);const a=X1(Z1(s));return new Va(a,o,r)}function tA(e,t,i){const n={};return Object.entries(e.children).forEach(([r,o])=>{n[r]=o===t?i:tA(o,t,i)}),new et(e.segments,n)}class nA{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&np(n[0]))throw new I(4003,!1);const r=n.find(sd);if(r&&r!==z1(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ip{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function iA(e,t,i){if(e||(e=new et([],{})),0===e.segments.length&&e.hasChildren())return ad(e,t,i);const n=function SW(e,t,i){let n=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return o;const s=e.segments[r],a=i[n];if(sd(a))break;const c=`${a}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!oA(c,l,s))return o;n+=2}else{if(!oA(c,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexo!==Te)&&e.children[Te]&&1===e.numberOfChildren&&0===e.children[Te].segments.length){const o=ad(e.children[Te],t,i);return new et(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=iA(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===n[o]&&(r[o]=s)}),new et(e.segments,r)}}function hy(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=hy(new et([],{}),0,n))}),t}function rA(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function oA(e,t,i){return e==i.path&&cr(t,i.parameters)}const cd="imperative";class lr{constructor(t,i){this.id=t,this.url=i}}class rp extends lr{constructor(t,i,n="imperative",r=null){super(t,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ho extends lr{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ld extends lr{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ja extends lr{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class op extends lr{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class sA extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TW extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MW extends lr{constructor(t,i,n,r,o){super(t,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class IW extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AW extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RW{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OW{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class FW{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PW{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NW{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LW{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aA{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class fy{}class py{constructor(t){this.url=t}}class BW{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new dd,this.attachRef=null}}let dd=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new BW,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class cA{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){const i=my(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=my(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=gy(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return gy(t,this._root).map(i=>i.value)}}function my(e,t){if(e===t.value)return t;for(const i of t.children){const n=my(e,i);if(n)return n}return null}function gy(e,t){if(e===t.value)return[t];for(const i of t.children){const n=gy(e,i);if(n.length)return n.unshift(t),n}return[]}class Or{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function Ha(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class lA extends cA{constructor(t,i){super(t),this.snapshot=i,_y(this,t)}toString(){return this.snapshot.toString()}}function dA(e,t){const i=function VW(e,t){const s=new sp([],{},{},"",{},Te,t,null,{});return new hA("",new Or(s,[]))}(0,t),n=new dt([new id("",{})]),r=new dt({}),o=new dt({}),s=new dt({}),a=new dt(""),c=new za(n,r,s,a,o,Te,t,i.root);return c.snapshot=i.root,new lA(new Or(c,[]),i)}class za{constructor(t,i,n,r,o,s,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Z(l=>l[nd]))??re(void 0),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Z(t=>Ba(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Z(t=>Ba(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uA(e,t="emptyOnly"){const i=e.pathFromRoot;let n=0;if("always"!==t)for(n=i.length-1;n>=1;){const r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function jW(e){return e.reduce((t,i)=>({params:{...t.params,...i.params},data:{...t.data,...i.data},resolve:{...i.data,...t.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class sp{get title(){return this.data?.[nd]}constructor(t,i,n,r,o,s,a,c,l){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ba(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ba(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hA extends cA{constructor(t,i){super(i),this.url=t,_y(this,i)}toString(){return fA(this._root)}}function _y(e,t){t.value._routerState=e,t.children.forEach(i=>_y(e,i))}function fA(e){const t=e.children.length>0?` { ${e.children.map(fA).join(", ")} } `:"";return`${e.value}${t}`}function by(e){if(e.snapshot){const t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,cr(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),cr(t.params,i.params)||e.paramsSubject.next(i.params),function nW(e,t){if(e.length!==t.length)return!1;for(let i=0;icr(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||vy(e.parent,t.parent))}let yy=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Te,this.activateEvents=new U,this.deactivateEvents=new U,this.attachEvents=new U,this.detachEvents=new U,this.parentContexts=j(dd),this.location=j(pt),this.changeDetector=j(Fe),this.environmentInjector=j(Jn),this.inputBinder=j(ap,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;const o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new HW(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[kt]}),t})();class HW{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===za?this.route:t===dd?this.childContexts:this.parent.get(t,i)}}const ap=new M("");let pA=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=If([r.queryParams,r.params,r.data]).pipe(Vt(([s,a,c],l)=>(c={...s,...a,...c},0===l?re(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const a=function e8(e){const t=Le(e);if(!t)return null;const i=new hl(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(a)for(const{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function ud(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function UW(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return ud(e,n,r);return ud(e,n)})}(e,t,i);return new Or(n,r)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ud(e,a)),s}}const n=function $W(e){return new za(new dt(e.url),new dt(e.params),new dt(e.queryParams),new dt(e.fragment),new dt(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(o=>ud(e,o));return new Or(n,r)}}const wy="ngNavigationCancelingError";function mA(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=ls(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=gA(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function gA(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[wy]=!0,n.cancellationCode=t,i&&(n.url=i),n}function _A(e){return e&&e[wy]}let bA=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["ng-component"]],standalone:!0,features:[nk],decls:1,vars:0,template:function(n,r){1&n&&ie(0,"router-outlet")},dependencies:[yy],encapsulation:2}),t})();function xy(e){const t=e.children&&e.children.map(xy),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==Te&&(i.component=bA),i}function ji(e){return e.outlet||Te}function hd(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class ZW{constructor(t,i,n,r,o){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),by(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=Ha(i);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,i,n){const r=t.value,o=i?i.value:null;if(r===o)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,i,s.children)}else this.deactivateChildRoutes(t,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,o=Ha(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(n&&n.outlet){const s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,o=Ha(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){const r=Ha(i);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new LW(o.value.snapshot))}),t.children.length&&this.forwardEvent(new PW(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,o=i?i.value:null;if(by(r),r===o)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,s.children)}else this.activateChildRoutes(t,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),by(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=hd(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class vA{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class cp{constructor(t,i){this.component=t,this.route=i}}function JW(e,t,i){const n=e._root;return fd(n,t?t._root:null,i,[n.value])}function Ua(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function mL(e){return null!==su(e)}(e)?t.get(e):e:n}function fd(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ha(t);return e.children.forEach(s=>{(function tQ(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function nQ(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!cs(e.url,t.url);case"pathParamsOrQueryParamsChange":return!cs(e.url,t.url)||!cr(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vy(e,t)||!cr(e.queryParams,t.queryParams);default:return!vy(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new vA(n)):(o.data=s.data,o._resolvedData=s._resolvedData),fd(e,t,o.component?a?a.children:null:i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new cp(a.outlet.component,s))}else s&&pd(t,a,r),r.canActivateChecks.push(new vA(n)),fd(e,null,o.component?a?a.children:null:i,n,r)})(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>pd(a,i.getContext(s),r)),r}function pd(e,t,i){const n=Ha(e),r=e.value;Object.entries(n).forEach(([o,s])=>{pd(s,r.component?t?t.children.getContext(o):null:t,i)}),i.canDeactivateChecks.push(new cp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function md(e){return"function"==typeof e}function yA(e){return e instanceof Yf||"EmptyError"===e?.name}const lp=Symbol("INITIAL_VALUE");function $a(){return Vt(e=>If(e.map(t=>t.pipe(Xe(1),nn(lp)))).pipe(Z(t=>{for(const i of t)if(!0!==i){if(i===lp)return lp;if(!1===i||i instanceof Va)return i}return!0}),Ve(t=>t!==lp),Xe(1)))}function wA(e){return function vm(...e){return xc(e)}(it(t=>{if(ls(t))throw mA(0,t)}),Z(t=>!0===t))}class dp{constructor(t){this.segmentGroup=t||null}}class xA{constructor(t){this.urlTree=t}}function qa(e){return Na(new dp(e))}function CA(e){return Na(new xA(e))}class xQ{constructor(t,i){this.urlSerializer=t,this.urlTree=i}noMatchError(t){return new I(4002,!1)}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return re(n);if(r.numberOfChildren>1||!r.children[Te])return Na(new I(4e3,!1));r=r.children[Te]}}applyRedirectCommands(t,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n)}applyRedirectCreateUrlTree(t,i,n,r){const o=this.createSegmentGroup(t,i.root,n,r);return new Va(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){const n={};return Object.entries(t).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(t,i,n,r){const o=this.createSegments(t,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,n,r)}),new et(o,s)}createSegments(t,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,i,n){const r=n[i.path.substring(1)];if(!r)throw new I(4001,!1);return r}findOrReturn(t,i){let n=0;for(const r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}}const Cy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function CQ(e,t,i,n,r){const o=Dy(e,t,i);return o.matched?(n=function GW(e,t){return e.providers&&!e._injector&&(e._injector=q_(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function vQ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?re(r.map(s=>{const a=Ua(s,e);return uo(function cQ(e){return e&&md(e.canMatch)}(a)?a.canMatch(t,i):e.runInContext(()=>a(t,i)))})).pipe($a(),wA()):re(!0)}(n,t,i).pipe(Z(s=>!0===s?o:{...Cy}))):re(o)}function Dy(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...Cy}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||tW)(i,e,t);if(!r)return{...Cy};const o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function DA(e,t,i,n){return i.length>0&&function SQ(e,t,i){return i.some(n=>up(e,t,n)&&ji(n)!==Te)}(e,i,n)?{segmentGroup:new et(t,EQ(n,new et(i,e.children))),slicedSegments:[]}:0===i.length&&function kQ(e,t,i){return i.some(n=>up(e,t,n))}(e,i,n)?{segmentGroup:new et(e.segments,DQ(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new et(e.segments,e.children),slicedSegments:i}}function DQ(e,t,i,n,r){const o={};for(const s of n)if(up(e,i,s)&&!r[ji(s)]){const a=new et([],{});o[ji(s)]=a}return{...r,...o}}function EQ(e,t){const i={};i[Te]=t;for(const n of e)if(""===n.path&&ji(n)!==Te){const r=new et([],{});i[ji(n)]=r}return i}function up(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class AQ{constructor(t,i,n,r,o,s,a){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new xQ(this.urlSerializer,this.urlTree)}noMatchError(t){return new I(4002,!1)}recognize(){const t=DA(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Te).pipe(qn(i=>{if(i instanceof xA)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof dp?this.noMatchError(i):i}),Z(i=>{const n=new sp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Te,this.rootComponentType,null,{}),r=new Or(n,i),o=new hA("",r),s=function wW(e,t,i=null,n=null){return eA(J1(e),t,i,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,Te).pipe(qn(n=>{throw n instanceof dp?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=uA(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0)}processChildren(t,i,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Et(r).pipe(ka(o=>{const s=n.children[o],a=function KW(e,t){const i=e.filter(n=>ji(n)===t);return i.push(...e.filter(n=>ji(n)!==t)),i}(i,o);return this.processSegmentGroup(t,a,s,o)}),function Z9(e,t){return at(function X9(e,t,i,n,r){return(o,s)=>{let a=i,c=t,l=0;o.subscribe(tt(s,d=>{const u=l++;c=a?e(c,d,u):(a=!0,d),n&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Xf(null),function J9(e,t){const i=arguments.length>=2;return n=>n.pipe(e?Ve((r,o)=>e(r,o,n)):Ti,ay(1),i?Xf(t):j1(()=>new Yf))}(),Kt(o=>{if(null===o)return qa(n);const s=EA(o);return function RQ(e){e.sort((t,i)=>t.value.outlet===Te?-1:i.value.outlet===Te?1:t.value.outlet.localeCompare(i.value.outlet))}(s),re(s)}))}processSegment(t,i,n,r,o,s){return Et(i).pipe(ka(a=>this.processSegmentAgainstRoute(a._injector??t,i,a,n,r,o,s).pipe(qn(c=>{if(c instanceof dp)return re(null);throw c}))),as(a=>!!a),qn(a=>{if(yA(a))return function MQ(e,t,i){return 0===t.length&&!e.children[i]}(n,r,o)?re([]):qa(n);throw a}))}processSegmentAgainstRoute(t,i,n,r,o,s,a){return function TQ(e,t,i,n){return!!(ji(e)===n||n!==Te&&up(t,i,e))&&("**"===e.path||Dy(t,e,i).matched)}(n,r,o,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,r,n,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,o,s):qa(r):qa(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r){const o=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?CA(o):this.applyRedirects.lineralizeSegments(n,o).pipe(Kt(s=>{const a=new et(s,{});return this.processSegment(t,i,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s){const{matched:a,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=Dy(i,r,o);if(!a)return qa(i);const u=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?CA(u):this.applyRedirects.lineralizeSegments(r,u).pipe(Kt(h=>this.processSegment(t,n,i,h.concat(l),s,!1)))}matchSegmentAgainstRoute(t,i,n,r,o,s){let a;if("**"===n.path){const c=r.length>0?z1(r).parameters:{};a=re({snapshot:new sp(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SA(n),ji(n),n.component??n._loadedComponent??null,n,kA(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else a=CQ(i,n,r,t).pipe(Z(({matched:c,consumedSegments:l,remainingSegments:d,parameters:u})=>c?{snapshot:new sp(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SA(n),ji(n),n.component??n._loadedComponent??null,n,kA(n)),consumedSegments:l,remainingSegments:d}:null));return a.pipe(Vt(c=>null===c?qa(i):this.getChildConfig(t=n._injector??t,n,r).pipe(Vt(({routes:l})=>{const d=n._loadedInjector??t,{snapshot:u,consumedSegments:h,remainingSegments:f}=c,{segmentGroup:m,slicedSegments:g}=DA(i,h,f,l);if(0===g.length&&m.hasChildren())return this.processChildren(d,l,m).pipe(Z(_=>null===_?null:[new Or(u,_)]));if(0===l.length&&0===g.length)return re([new Or(u,[])]);const b=ji(n)===o;return this.processSegment(d,l,m,g,b?Te:o,!0).pipe(Z(_=>[new Or(u,_)]))}))))}getChildConfig(t,i,n){return i.children?re({routes:i.children,injector:t}):i.loadChildren?void 0!==i._loadedRoutes?re({routes:i._loadedRoutes,injector:i._loadedInjector}):function bQ(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?re(!0):re(r.map(s=>{const a=Ua(s,e);return uo(function rQ(e){return e&&md(e.canLoad)}(a)?a.canLoad(t,i):e.runInContext(()=>a(t,i)))})).pipe($a(),wA())}(t,i,n).pipe(Kt(r=>r?this.configLoader.loadChildren(t,i).pipe(it(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):function wQ(e){return Na(gA(!1,3))}())):re({routes:[],injector:t})}}function OQ(e){const t=e.value.routeConfig;return t&&""===t.path}function EA(e){const t=[],i=new Set;for(const n of e){if(!OQ(n)){t.push(n);continue}const r=t.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):t.push(n)}for(const n of i){const r=EA(n.children);t.push(new Or(n.value,r))}return t.filter(n=>!i.has(n))}function SA(e){return e.data||{}}function kA(e){return e.resolve||{}}function TA(e){return"string"==typeof e.title||null===e.title}function Ey(e){return Vt(t=>{const i=e(t);return i?Et(i).pipe(Z(()=>t)):re(t)})}const Ga=new M("ROUTES");let Sy=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=j(Yk)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return re(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=uo(n.loadComponent()).pipe(Z(MA),it(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Ta(()=>{this.componentLoaders.delete(n)})),o=new sy(r,()=>new Y).pipe(oy());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return re({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(Z(c=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,d;return Array.isArray(c)?d=c:(l=c.create(n).injector,d=l.get(Ga,[],Ie.Self|Ie.Optional).flat()),{routes:d.map(xy),injector:l}}),Ta(()=>{this.childrenLoaders.delete(r)})),a=new sy(s,()=>new Y).pipe(oy());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(n){return uo(n()).pipe(Z(MA),Kt(r=>r instanceof ek||Array.isArray(r)?re(r):Et(this.compiler.compileModuleAsync(r))))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function MA(e){return function jQ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let hp=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Y,this.transitionAbortSubject=new Y,this.configLoader=j(Sy),this.environmentInjector=j(Jn),this.urlSerializer=j(rd),this.rootContexts=j(dd),this.inputBindingEnabled=null!==j(ap,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>re(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OW(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new RW(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,o){return this.transitions=new dt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:n.urlHandlingStrategy.extract(r),urlAfterRedirects:n.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:cd,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ve(s=>0!==s.id),Z(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),Vt(s=>{this.currentTransition=s;let a=!1,c=!1;return re(s).pipe(it(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Vt(l=>{const d=l.currentBrowserUrl.toString(),u=!n.navigated||l.extractedUrl.toString()!==d||d!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const f="";return this.events.next(new ja(l.id,this.urlSerializer.serialize(l.rawUrl),f,0)),l.resolve(null),Xt}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return re(l).pipe(Vt(f=>{const m=this.transitions?.getValue();return this.events.next(new rp(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),m!==this.transitions?.getValue()?Xt:Promise.resolve(f)}),function FQ(e,t,i,n,r,o){return Kt(s=>function IQ(e,t,i,n,r,o,s="emptyOnly"){return new AQ(e,t,i,n,r,s,o).recognize()}(e,t,i,n,s.extractedUrl,r,o).pipe(Z(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),it(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const m=new sA(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(m)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:f,extractedUrl:m,source:g,restoredState:b,extras:_}=l,v=new rp(f,this.urlSerializer.serialize(m),g,b);this.events.next(v);const C=dA(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:C,urlAfterRedirects:m,extras:{..._,skipLocationChange:!1,replaceUrl:!1}},re(s)}{const f="";return this.events.next(new ja(l.id,this.urlSerializer.serialize(l.extractedUrl),f,1)),l.resolve(null),Xt}}),it(l=>{const d=new TW(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Z(l=>(this.currentTransition=s={...l,guards:JW(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function dQ(e,t){return Kt(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return 0===s.length&&0===o.length?re({...i,guardsResult:!0}):function uQ(e,t,i,n){return Et(e).pipe(Kt(r=>function _Q(e,t,i,n,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?re(o.map(a=>{const c=hd(t)??r,l=Ua(a,c);return uo(function aQ(e){return e&&md(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(as())})).pipe($a()):re(!0)}(r.component,r.route,i,t,n)),as(r=>!0!==r,!0))}(s,n,r,e).pipe(Kt(a=>a&&function iQ(e){return"boolean"==typeof e}(a)?function hQ(e,t,i,n){return Et(t).pipe(ka(r=>$l(function pQ(e,t){return null!==e&&t&&t(new FW(e)),re(!0)}(r.route.parent,n),function fQ(e,t){return null!==e&&t&&t(new NW(e)),re(!0)}(r.route,n),function gQ(e,t,i){const n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function eQ(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Kf(()=>re(s.guards.map(c=>{const l=hd(s.node)??i,d=Ua(c,l);return uo(function sQ(e){return e&&md(e.canActivateChild)}(d)?d.canActivateChild(n,e):l.runInContext(()=>d(n,e))).pipe(as())})).pipe($a())));return re(o).pipe($a())}(e,r.path,i),function mQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return re(!0);const r=n.map(o=>Kf(()=>{const s=hd(t)??i,a=Ua(o,s);return uo(function oQ(e){return e&&md(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(as())}));return re(r).pipe($a())}(e,r.route,i))),as(r=>!0!==r,!0))}(n,o,e,t):re(a)),Z(a=>({...i,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),it(l=>{if(s.guardsResult=l.guardsResult,ls(l.guardsResult))throw mA(0,l.guardsResult);const d=new MW(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),Ve(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),Ey(l=>{if(l.guards.canActivateChecks.length)return re(l).pipe(it(d=>{const u=new IW(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),Vt(d=>{let u=!1;return re(d).pipe(function PQ(e,t){return Kt(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return re(i);let o=0;return Et(r).pipe(ka(s=>function NQ(e,t,i,n){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!TA(r)&&(o[nd]=r.title),function LQ(e,t,i,n){const r=function BQ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return re({});const o={};return Et(r).pipe(Kt(s=>function VQ(e,t,i,n){const r=hd(t)??n,o=Ua(e,r);return uo(o.resolve?o.resolve(t,i):r.runInContext(()=>o(t,i)))}(e[s],t,i,n).pipe(as(),it(a=>{o[s]=a}))),ay(1),Uf(o),qn(s=>yA(s)?Xt:Na(s)))}(o,e,t,n).pipe(Z(s=>(e._resolvedData=s,e.data=uA(e,i).resolve,r&&TA(r)&&(e.data[nd]=r.title),null)))}(s.route,n,e,t)),it(()=>o++),ay(1),Kt(s=>o===r.length?re(i):Xt))})}(n.paramsInheritanceStrategy,this.environmentInjector),it({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",2)}}))}),it(d=>{const u=new AW(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Ey(l=>{const d=u=>{const h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(it(f=>{u.component=f}),Z(()=>{})));for(const f of u.children)h.push(...d(f));return h};return If(d(l.targetSnapshot.root)).pipe(Xf(),Xe(1))}),Ey(()=>this.afterPreactivation()),Z(l=>{const d=function zW(e,t,i){const n=ud(e,t._root,i?i._root:void 0);return new lA(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:d},s}),it(()=>{this.events.next(new fy)}),((e,t,i,n)=>Z(r=>(new ZW(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Xe(1),it({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ho(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),ce(this.transitionAbortSubject.pipe(it(l=>{throw l}))),Ta(()=>{a||c||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),qn(l=>{if(c=!0,_A(l))this.events.next(new ld(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function qW(e){return _A(e)&&ls(e.url)}(l)?this.events.next(new py(l.url)):s.resolve(!1);else{this.events.next(new op(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(d){s.reject(d)}}return Xt}))}))}cancelNavigationTransition(n,r,o){const s=new ld(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function IA(e){return e!==cd}let AA=(()=>{var e;class t{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Te);return r}getResolvedTitleForRoute(n){return n.data[nd]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(HQ)},providedIn:"root"}),t})(),HQ=(()=>{var e;class t extends AA{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(vM))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),zQ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j($Q)},providedIn:"root"}),t})();class UQ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let $Q=(()=>{var e;class t extends UQ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const fp=new M("",{providedIn:"root",factory:()=>({})});let qQ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(GQ)},providedIn:"root"}),t})(),GQ=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var gd=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(gd||{});function RA(e,t){e.events.pipe(Ve(i=>i instanceof ho||i instanceof ld||i instanceof op||i instanceof ja),Z(i=>i instanceof ho||i instanceof ja?gd.COMPLETE:i instanceof ld&&(0===i.code||1===i.code)?gd.REDIRECTING:gd.FAILED),Ve(i=>i!==gd.REDIRECTING),Xe(1)).subscribe(()=>{t()})}function WQ(e){throw e}function QQ(e,t,i){return t.parse("/")}const YQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},KQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xi=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=j(Qk),this.isNgZoneEnabled=!1,this._events=new Y,this.options=j(fp,{optional:!0})||{},this.pendingTasks=j(Mh),this.errorHandler=this.options.errorHandler||WQ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||QQ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=j(qQ),this.routeReuseStrategy=j(zQ),this.titleStrategy=j(AA),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=j(Ga,{optional:!0})?.flat()??[],this.navigationTransitions=j(hp),this.urlSerializer=j(rd),this.location=j(Nh),this.componentInputBindingEnabled=!!j(ap,{optional:!0}),this.eventsSubscription=new Ae,this.isNgZoneEnabled=j(G)instanceof G&&G.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Va,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dA(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(OA(r)&&this._events.next(r));if(r instanceof rp)IA(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(r instanceof ja)this.rawUrlTree=o.rawUrl;else if(r instanceof sA){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(r instanceof fy)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(r instanceof ld)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(o);else if(r instanceof py){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||IA(o.source)};this.scheduleNavigation(s,cd,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}r instanceof op&&this.restoreHistory(o,!0),r instanceof ho&&(this.navigated=!0),OA(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),cd,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const c=this.parseUrl(n);this.scheduleNavigation(c,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(xy),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:a;let h,u=null;switch(c){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{h=J1(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return eA(h,n,u,d??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=ls(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,cd,null,r)}navigate(n,r={skipLocationChange:!1}){return function XQ(e){for(let t=0;t{const s=n[o];return null!=s&&(r[o]=s),r},{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((h,f)=>{c=h,l=f});const u=this.pendingTasks.add();return RA(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const a={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function OA(e){return!(e instanceof fy||e instanceof py)}class FA{}let eY=(()=>{var e;class t{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ve(n=>n instanceof ho),ka(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const s of r){s.providers&&!s._injector&&(s._injector=q_(s.providers,n,`Route: ${s.path}`));const a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Et(o).pipe(Ms())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):re(null);const s=o.pipe(Kt(a=>null===a?re(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));return r.loadComponent&&!r._loadedComponent?Et([s,this.loader.loadComponent(r)]).pipe(Ms()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(E(xi),E(Yk),E(Jn),E(FA),E(Sy))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Ty=new M("");let PA=(()=>{var e;class t{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof rp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ho?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ja&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof aA&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new aA(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){jo()},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function Fr(e,t){return{\u0275kind:e,\u0275providers:t}}function LA(){const e=j(jt);return t=>{const i=e.get(Xr);if(t!==i.components[0])return;const n=e.get(xi),r=e.get(BA);1===e.get(My)&&n.initialNavigation(),e.get(VA,null,Ie.Optional)?.setUpPreloading(),e.get(Ty,null,Ie.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const BA=new M("",{factory:()=>new Y}),My=new M("",{providedIn:"root",factory:()=>1}),VA=new M("");function rY(e){return Fr(0,[{provide:VA,useExisting:eY},{provide:FA,useExisting:e}])}const jA=new M("ROUTER_FORROOT_GUARD"),sY=[Nh,{provide:rd,useClass:cy},xi,dd,{provide:za,useFactory:function NA(e){return e.routerState.root},deps:[xi]},Sy,[]];function aY(){return new nT("Router",xi)}let HA=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[sY,[],{provide:Ga,multi:!0,useValue:n},{provide:jA,useFactory:uY,deps:[[xi,new Fo,new Qc]]},{provide:fp,useValue:r||{}},r?.useHash?{provide:Wo,useClass:o8}:{provide:Wo,useClass:RT},{provide:Ty,useFactory:()=>{const e=j(yU),t=j(G),i=j(fp),n=j(hp),r=j(rd);return i.scrollOffset&&e.setOffset(i.scrollOffset),new PA(r,n,e,t,i)}},r?.preloadingStrategy?rY(r.preloadingStrategy).\u0275providers:[],{provide:nT,multi:!0,useFactory:aY},r?.initialNavigation?hY(r):[],r?.bindToComponentInputs?Fr(8,[pA,{provide:ap,useExisting:pA}]).\u0275providers:[],[{provide:zA,useFactory:LA},{provide:hb,multi:!0,useExisting:zA}]]}}static forChild(n){return{ngModule:t,providers:[{provide:Ga,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(E(jA,8))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();function uY(e){return"guarded"}function hY(e){return["disabled"===e.initialNavigation?Fr(3,[{provide:rb,multi:!0,useFactory:()=>{const t=j(xi);return()=>{t.setUpLocationChangeListener()}}},{provide:My,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Fr(2,[{provide:My,useValue:0},{provide:rb,multi:!0,deps:[jt],useFactory:t=>{const i=t.get(i8,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(xi),o=t.get(BA);RA(r,()=>{n(!0)}),t.get(hp).afterPreactivation=()=>(n(!0),o.closed?re(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const zA=new M(""),pY=[];let mY=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[HA.forRoot(pY),HA]}),t})(),UA=(()=>{var e;class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(yr),p(W))},e.\u0275dir=T({type:e}),t})(),ds=(()=>{var e;class t extends UA{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,features:[P]}),t})();const Gn=new M("NgValueAccessor"),_Y={provide:Gn,useExisting:He(()=>pp),multi:!0},vY=new M("CompositionEventMode");let pp=(()=>{var e;class t extends UA{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function bY(){const e=Zr()?Zr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(yr),p(W),p(vY,8))},e.\u0275dir=T({type:e,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(n,r){1&n&&$("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[J([_Y]),P]}),t})();function fo(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function qA(e){return null!=e&&"number"==typeof e.length}const fn=new M("NgValidators"),po=new M("NgAsyncValidators"),yY=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Iy{static min(t){return function GA(e){return t=>{if(fo(t.value)||fo(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i{if(fo(t.value)||fo(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function QA(e){return fo(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function YA(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function KA(e){return fo(e.value)||yY.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function XA(e){return t=>fo(t.value)||!qA(t.value)?null:t.value.lengthqA(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function JA(e){if(!e)return mp;let t,i;return"string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),t=new RegExp(i)):(i=e.toString(),t=e),n=>{if(fo(n.value))return null;const r=n.value;return t.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return oR(t)}static composeAsync(t){return sR(t)}}function mp(e){return null}function eR(e){return null!=e}function tR(e){return _l(e)?Et(e):e}function nR(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function iR(e,t){return t.map(i=>i(e))}function rR(e){return e.map(t=>function wY(e){return!e.validate}(t)?t:i=>t.validate(i))}function oR(e){if(!e)return null;const t=e.filter(eR);return 0==t.length?null:function(i){return nR(iR(i,t))}}function Ay(e){return null!=e?oR(rR(e)):null}function sR(e){if(!e)return null;const t=e.filter(eR);return 0==t.length?null:function(i){return l1(iR(i,t).map(tR)).pipe(Z(nR))}}function Ry(e){return null!=e?sR(rR(e)):null}function aR(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function cR(e){return e._rawValidators}function lR(e){return e._rawAsyncValidators}function Oy(e){return e?Array.isArray(e)?e:[e]:[]}function gp(e,t){return Array.isArray(e)?e.includes(t):e===t}function dR(e,t){const i=Oy(t);return Oy(e).forEach(r=>{gp(i,r)||i.push(r)}),i}function uR(e,t){return Oy(t).filter(i=>!gp(e,i))}class hR{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(t){this._rawValidators=t||[],this._composedValidatorFn=Ay(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ry(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,i){return!!this.control&&this.control.hasError(t,i)}getError(t,i){return this.control?this.control.getError(t,i):null}}class Rn extends hR{get formDirective(){return null}get path(){return null}}class Hi extends hR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class fR{constructor(t){this._cd=t}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 pR=(()=>{var e;class t extends fR{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Hi,2))},e.\u0275dir=T({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[P]}),t})();const _d="VALID",bp="INVALID",Wa="PENDING",bd="DISABLED";function Ny(e){return(vp(e)?e.validators:e)||null}function Ly(e,t){return(vp(t)?t.asyncValidators:e)||null}function vp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class bR{constructor(t,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===_d}get invalid(){return this.status===bp}get pending(){return this.status==Wa}get disabled(){return this.status===bd}get enabled(){return this.status!==bd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(dR(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(dR(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(uR(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(uR(t,this._rawAsyncValidators))}hasValidator(t){return gp(this._rawValidators,t)}hasAsyncValidator(t){return gp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Wa,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=bd,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=_d,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_d||this.status===Wa)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bd:_d}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Wa,this._hasOwnPendingAsyncValidator=!0;const i=tR(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(!1!==i.emitEvent)}get(t){let i=t;return null==i||(Array.isArray(i)||(i=i.split(".")),0===i.length)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(t,i){const n=i?this.get(i):this;return n&&n.errors?n.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?bd:this.errors?bp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wa)?Wa:this._anyControlsHaveStatus(bp)?bp:_d}_anyControlsHaveStatus(t){return this._anyControls(i=>i.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){vp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function SY(e){return Array.isArray(e)?Ay(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function kY(e){return Array.isArray(e)?Ry(e):e||null}(this._rawAsyncValidators)}}class By extends bR{constructor(t,i,n){super(Ny(i),Ly(n,i)),this.controls=t,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,i){return this.controls[t]?this.controls[t]:(this.controls[t]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(t,i,n={}){this.registerControl(t,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(t,i,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],i&&this.registerControl(t,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,i={}){(function _R(e,t,i){e._forEachChild((n,r)=>{if(void 0===i[r])throw new I(1002,"")})})(this,0,t),Object.keys(t).forEach(n=>{(function gR(e,t,i){const n=e.controls;if(!(t?Object.keys(n):n).length)throw new I(1e3,"");if(!n[i])throw new I(1001,"")})(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(t,i={}){null!=t&&(Object.keys(t).forEach(n=>{const r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(t={},i={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(t,i,n)=>(t[n]=i.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(i,n)=>!!n._syncPendingControls()||i);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(i=>{const n=this.controls[i];n&&t(n,i)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[i,n]of Object.entries(this.controls))if(this.contains(i)&&t(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(t,i){let n=t;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Qa=new M("CallSetDisabledState",{providedIn:"root",factory:()=>yp}),yp="always";function vd(e,t,i=yp){Vy(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function IY(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&vR(e,t)})}(e,t),function RY(e,t){const i=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function AY(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&vR(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function MY(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function xp(e,t,i=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Dp(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Cp(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function Vy(e,t){const i=cR(e);null!==t.validator?e.setValidators(aR(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=lR(e);null!==t.asyncValidator?e.setAsyncValidators(aR(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();Cp(t._rawValidators,r),Cp(t._rawAsyncValidators,r)}function Dp(e,t){let i=!1;if(null!==e){if(null!==t.validator){const r=cR(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){const r=lR(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(i=!0,e.setAsyncValidators(o))}}}const n=()=>{};return Cp(t._rawValidators,n),Cp(t._rawAsyncValidators,n),i}function vR(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function yR(e,t){Vy(e,t)}function wR(e,t){e._syncPendingControls(),t.forEach(i=>{const n=i.control;"submit"===n.updateOn&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}const LY={provide:Rn,useExisting:He(()=>Ya)},yd=(()=>Promise.resolve())();let Ya=(()=>{var e;class t extends Rn{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new U,this.form=new By({},Ay(n),Ry(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){yd.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),vd(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){yd.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){yd.then(()=>{const r=this._findContainer(n.path),o=new By({});yR(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){yd.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){yd.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,wR(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return(e=t).\u0275fac=function(n){return new(n||e)(p(fn,10),p(po,10),p(Qa,8))},e.\u0275dir=T({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&$("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[J([LY]),P]}),t})();function xR(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function CR(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Ka=class extends bR{constructor(t=null,i,n){super(Ny(i),Ly(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vp(i)&&(i.nonNullable||i.initialValueIsDefault)&&(this.defaultValue=CR(t)?t.value:t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==i.emitViewToModelChange)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xR(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xR(this._onDisabledChange,t)}_forEachChild(t){}_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(t){CR(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let MR=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const Uy=new M("NgModelWithFormControlWarning"),GY={provide:Hi,useExisting:He(()=>$y)};let $y=(()=>{var e;class t extends Hi{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new U,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function zy(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(o=>{o.constructor===pp?i=o:function PY(e){return Object.getPrototypeOf(e.constructor)===ds}(o)?n=o:r=o}),r||n||i||null}(0,o)}ngOnChanges(n){if(this._isControlChanged(n)){const r=n.form.previousValue;r&&xp(r,this,!1),vd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}(function Hy(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)})(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}}return(e=t)._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(p(fn,10),p(po,10),p(Gn,10),p(Uy,8),p(Qa,8))},e.\u0275dir=T({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[J([GY]),P,kt]}),t})();const WY={provide:Rn,useExisting:He(()=>Xa)};let Xa=(()=>{var e;class t extends Rn{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new U,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return vd(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){xp(n.control||null,n,!1),function NY(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,wR(this.form,this.directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(xp(r||null,n),(e=>e instanceof Ka)(o)&&(vd(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);yR(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function OY(e,t){return Dp(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vy(this.form,this),this._oldForm&&Dp(this._oldForm,this)}_checkFormPresent(){}}return(e=t).\u0275fac=function(n){return new(n||e)(p(fn,10),p(po,10),p(Qa,8))},e.\u0275dir=T({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&$("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[J([WY]),P,kt]}),t})(),uK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[MR]}),t})(),fK=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:Uy,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Qa,useValue:n.callSetDisabledState??yp}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[uK]}),t})();function Xy(e){return e&&"function"==typeof e.connect&&!(e instanceof sy)}class $R{applyChanges(t,i,n,r,o){t.forEachOperation((s,a,c)=>{let l,d;if(null==s.previousIndex){const u=n(s,a,c);l=i.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==c?(i.remove(a),d=3):(l=i.get(a),i.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:s})})}detach(){}}class GR{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,i,n=!0,r){this._multiple=t,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,i&&i.length&&(t?i.forEach(o=>this._markSelected(o)):this._markSelected(i[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(n=>this._markSelected(n));const i=this._hasQueuedChanges();return this._emitChangeEvent(),i}deselect(...t){this._verifyValueAssignment(t),t.forEach(n=>this._unmarkSelected(n));const i=this._hasQueuedChanges();return this._emitChangeEvent(),i}setSelection(...t){this._verifyValueAssignment(t);const i=this.selected,n=new Set(t);t.forEach(o=>this._markSelected(o)),i.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const i=this._hasQueuedChanges();return t&&this._emitChangeEvent(),i}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let i of this._selection)if(this.compareWith(t,i))return i;return t}return t}}let Zy=(()=>{var e;class t{constructor(){this._listeners=[]}notify(n,r){for(let o of this._listeners)o(n,r)}listen(n){return this._listeners.push(n),()=>{this._listeners=this._listeners.filter(r=>n!==r)}}ngOnDestroy(){this._listeners=[]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const wd=new M("_ViewRepeater");class hs{constructor(t,i,n,r){this.name=t,this.icon=i,this.aggregations=[],this.active=!1,this.selected=new Set,this.relevantContentTypes=null===n?null:new Set(n),r.subscribe(o=>{this.aggregations=o})}isRelevant(t){return null===this.relevantContentTypes||!!t&&"null"!==t&&this.relevantContentTypes.has(t)}isActive(){return this.active}isEmpty(){return 0===this.selected.size}filterValues(){return this.selected.size?[...this.selected]:void 0}isSelected(t){return void 0!==t&&this.selected.has(t)}activate(){this.active=!0}deactivate(){this.active=!1}select(t){void 0!==t&&this.selected.add(t)}deselect(t){void 0!==t&&this.selected.delete(t)}toggle(t){void 0!==t&&(this.selected.has(t)?this.deselect(t):this.select(t))}reset(){this.selected.clear()}deactivateAndReset(){this.deactivate(),this.reset()}}const WR={items:[],totalCount:0,totalCountIsEstimate:!1,aggregations:{}},Jy={count:0,isEstimate:!1};class pK{constructor(t,i){this.graphQLService=t,this.errorsService=i,this.queryStringSubject=new dt(""),this.contentTypeSubject=new dt(void 0),this.pageIndexSubject=new dt(0),this.pageIndex$=this.pageIndexSubject.asObservable(),this.pageSizeSubject=new dt(10),this.pageSize$=this.pageSizeSubject.asObservable(),this.pageLengthSubject=new dt(0),this.pageLength$=this.pageLengthSubject.asObservable(),this.itemsResultSubject=new dt(WR),this.aggsResultSubject=new dt(WR),this.loadingSubject=new dt(!1),this.lastRequestTimeSubject=new dt(0),this.items$=this.itemsResultSubject.pipe(Z(n=>n.items)),this.aggregations$=this.aggsResultSubject.pipe(Z(n=>n.aggregations)),this.loading$=this.loadingSubject.asObservable(),this.hasNextPage$=this.itemsResultSubject.pipe(Z(n=>n.hasNextPage)),this.torrentSourceFacet=new hs("Torrent Source","mediation",null,this.aggregations$.pipe(Z(n=>n.torrentSource??[]))),this.torrentTagFacet=new hs("Torrent Tag","sell",null,this.aggregations$.pipe(Z(n=>n.torrentTag??[]))),this.torrentFileTypeFacet=new hs("File Type","file_present",null,this.aggregations$.pipe(Z(n=>n.torrentFileType??[]))),this.languageFacet=new hs("Language","translate",null,this.aggregations$.pipe(Z(n=>n.language??[]))),this.genreFacet=new hs("Genre","theater_comedy",["movie","tv_show"],this.aggregations$.pipe(Z(n=>n.genre??[]))),this.videoResolutionFacet=new hs("Video Resolution","screenshot_monitor",["movie","tv_show","xxx"],this.aggregations$.pipe(Z(n=>n.videoResolution??[]))),this.videoSourceFacet=new hs("Video Source","album",["movie","tv_show","xxx"],this.aggregations$.pipe(Z(n=>n.videoSource??[]))),this.facets=[this.torrentSourceFacet,this.torrentTagFacet,this.torrentFileTypeFacet,this.languageFacet,this.videoResolutionFacet,this.videoSourceFacet,this.genreFacet],this.overallTotalCountSubject=new dt(Jy),this.overallTotalCount$=this.overallTotalCountSubject.asObservable(),this.totalCountSubject=new dt(Jy),this.totalCount$=this.totalCountSubject.asObservable(),this.contentTypes=QR,this.contentTypeSubject.subscribe(n=>{this.facets.forEach(r=>r.isRelevant(n)||r.deactivateAndReset()),this.pageIndexSubject.next(0),this.loadResult()})}connect({}){return this.items$}disconnect(){this.itemsResultSubject.complete(),this.loadingSubject.complete()}loadResult(t=!0){const i=Date.now();this.loadingSubject.next(!0);const n=this.pageSizeSubject.getValue(),r=this.queryStringSubject.getValue()||void 0,o=this.pageIndexSubject.getValue()*n;this.graphQLService.torrentContentSearch({query:{queryString:r,limit:n,offset:o,hasNextPage:!0,cached:t,totalCount:!0},facets:this.facetsInput(!0)}).pipe(qn(a=>(this.errorsService.addError(`Error loading item results: ${a.message}`),Xt))).subscribe(a=>{const c=this.lastRequestTimeSubject.getValue();i>=c&&(this.itemsResultSubject.next(a),this.aggsResultSubject.next(a),this.loadingSubject.next(!1),this.lastRequestTimeSubject.next(i),this.pageLengthSubject.next(a.items.length),this.totalCountSubject.next({count:a.totalCount,isEstimate:a.totalCountIsEstimate}),this.overallTotalCountSubject.next((a.aggregations.contentType??[]).reduce((l,d)=>({count:l.count+d.count,isEstimate:l.isEstimate||d.isEstimate}),Jy)))})}facetsInput(t){const i=this.contentTypeSubject.getValue();return{contentType:{aggregate:t,filter:"null"===i?[null]:i?[i]:void 0},torrentSource:fs(this.torrentSourceFacet,t),torrentTag:fs(this.torrentTagFacet,t),torrentFileType:fs(this.torrentFileTypeFacet,t),language:fs(this.languageFacet,t),genre:fs(this.genreFacet,t),videoResolution:fs(this.videoResolutionFacet,t),videoSource:fs(this.videoSourceFacet,t)}}selectContentType(t){this.contentTypeSubject.next(t)}setQueryString(t){this.queryStringSubject.next(t)}get hasQueryString(){return!!this.queryStringSubject.getValue()}firstPage(){this.pageIndexSubject.next(0)}handlePageEvent(t){this.pageIndexSubject.next(t.pageIndex),this.pageSizeSubject.next(t.pageSize),this.loadResult()}contentTypeCount(t){return this.aggregations$.pipe(Z(i=>i.contentType?.find(r=>(r.value??"null")===t)??{count:0,isEstimate:!1}))}contentTypeInfo(t){return QR[t]}}const QR={movie:{singular:"Movie",plural:"Movies",icon:"movie"},tv_show:{singular:"TV Show",plural:"TV Shows",icon:"live_tv"},music:{singular:"Music",plural:"Music",icon:"music_note"},book:{singular:"Book",plural:"Books",icon:"auto_stories"},software:{singular:"Software",plural:"Software",icon:"desktop_windows"},game:{singular:"Game",plural:"Games",icon:"sports_esports"},xxx:{singular:"XXX",plural:"XXX",icon:"18_up_rating_outline"},null:{singular:"Unknown",plural:"Unknown",icon:"question_mark"}};function fs(e,t){return e.isActive()?{aggregate:t,filter:e.filterValues()}:void 0}function xd(e){return(xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function wt(e,t,i){return(t=function gK(e){var t=function mK(e,t){if("object"!==xd(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const vK=new class bK extends Sf{}(class _K extends Ef{constructor(t,i){super(t,i),this.scheduler=t,this.work=i}schedule(t,i=0){return i>0?super.schedule(t,i):(this.delay=i,this.state=t,this.scheduler.flush(this),this)}execute(t,i){return i>0||this.closed?super.execute(t,i):this._execute(t,i)}requestAsyncId(t,i,n=0){return null!=n&&n>0||null==n&&this.delay>0?super.requestAsyncId(t,i,n):(t.flush(this),0)}});var rt=function(e){return e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e}(rt||{});function Cd(e){return!!e&&e<7}var e0="Invariant Violation",YR=Object.setPrototypeOf,yK=void 0===YR?function(e,t){return e.__proto__=t,e}:YR,KR=function(e){function t(i){void 0===i&&(i=e0);var n=e.call(this,"number"==typeof i?e0+": "+i+" (see https://github.com/apollographql/invariant-packages)":i)||this;return n.framesToPop=1,n.name=e0,yK(n,t.prototype),n}return Nn(t,e),t}(Error);function ps(e,t){if(!e)throw new KR(t)}var e,Ep=["debug","log","warn","error","silent"],t0=Ep.indexOf("log");function Sp(e){return function(){if(Ep.indexOf(e)>=t0)return(console[e]||console.log).apply(console,arguments)}}(e=ps||(ps={})).debug=Sp("debug"),e.log=Sp("log"),e.warn=Sp("warn"),e.error=Sp("error");var n0="3.8.3";function zi(e){try{return e()}catch{}}const XR=zi(function(){return globalThis})||zi(function(){return window})||zi(function(){return self})||zi(function(){return global})||zi(function(){return zi.constructor("return this")()});var ZR=new Map;function r0(e){var t=ZR.get(e)||1;return ZR.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function JR(e,t){void 0===t&&(t=0);var i=r0("stringifyForDisplay");return JSON.stringify(e,function(n,r){return void 0===r?i:r},t).split(JSON.stringify(i)).join("")}function kp(e){return function(t){for(var i=[],n=1;ne.length)&&(t=e.length);for(var i=0,n=new Array(t);i1,a=!1,l=arguments[1];return new o(function(d){return r.subscribe({next:function(u){var h=!a;if(a=!0,!h||s)try{l=n(l,u)}catch(f){return d.error(f)}else l=u},error:function(u){d.error(u)},complete:function(){if(!a&&!s)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(l),d.complete()}})})},t.concat=function(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s=0&&a.splice(h,1),l()}});a.push(u)},error:function(d){s.error(d)},complete:function(){l()}});function l(){c.closed&&0===a.length&&s.complete()}return function(){a.forEach(function(d){return d.unsubscribe()}),c.unsubscribe()}})},t[d0]=function(){return this},e.from=function(n){var r="function"==typeof this?this:e;if(null==n)throw new TypeError(n+" is not an object");var o=Tp(n,d0);if(o){var s=o.call(n);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function DK(e){return e instanceof vt}(s)&&s.constructor===r?s:new r(function(a){return s.subscribe(a)})}if(c0("iterator")&&(o=Tp(n,CK)))return new r(function(a){Mp(function(){if(!a.closed){for(var l,c=function wK(e,t){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function xK(e,t){if(e){if("string"==typeof e)return tO(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return tO(e,t)}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.call(n));!(l=c()).done;)if(a.next(l.value),a.closed)return;a.complete()}})});if(Array.isArray(n))return new r(function(a){Mp(function(){if(!a.closed){for(var c=0;c"u"&&(ye(1===n.length,69,n.length),i=n[0].name.value),k(k({},e),{definitions:ai([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],e.definitions,!0)})}function Ip(e){void 0===e&&(e=[]);var t={};return e.forEach(function(i){t[i.name.value]=i}),t}function Ap(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var i=e.name.value;if("function"==typeof t)return t(i);var n=t&&t[i];return ye(n,70,i),n||null;default:return null}}function Ja(e){return{__ref:String(e)}}function ot(e){return!(!e||"object"!=typeof e||"string"!=typeof e.__ref)}function ec(e,t,i,n){if(function OK(e){return"IntValue"===e.kind}(i)||function FK(e){return"FloatValue"===e.kind}(i))e[t.value]=Number(i.value);else if(function RK(e){return"BooleanValue"===e.kind}(i)||function AK(e){return"StringValue"===e.kind}(i))e[t.value]=i.value;else if(function NK(e){return"ObjectValue"===e.kind}(i)){var r={};i.fields.map(function(s){return ec(r,s.name,s.value,n)}),e[t.value]=r}else if(function PK(e){return"Variable"===e.kind}(i))e[t.value]=(n||{})[i.name.value];else if(function LK(e){return"ListValue"===e.kind}(i))e[t.value]=i.values.map(function(s){var a={};return ec(a,t,s,n),a[t.value]});else if(function BK(e){return"EnumValue"===e.kind}(i))e[t.value]=i.value;else{if(!function VK(e){return"NullValue"===e.kind}(i))throw On(79,t.value,i.kind);e[t.value]=null}}a0()&&Object.defineProperty(vt,Symbol("extensions"),{value:{symbol:d0,hostReportError:Za},configurable:!0});var HK=["connection","include","skip","client","rest","export","nonreactive"],f0=Object.assign(function(e,t,i){if(t&&i&&i.connection&&i.connection.key){if(i.connection.filter&&i.connection.filter.length>0){var n=i.connection.filter?i.connection.filter:[];n.sort();var r={};return n.forEach(function(a){r[a]=t[a]}),"".concat(i.connection.key,"(").concat(Ed(r),")")}return i.connection.key}var o=e;if(t){var s=Ed(t);o+="(".concat(s,")")}return i&&Object.keys(i).forEach(function(a){-1===HK.indexOf(a)&&(i[a]&&Object.keys(i[a]).length?o+="@".concat(a,"(").concat(Ed(i[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=Ed;return Ed=e,t}}),Ed=function(t){return JSON.stringify(t,zK)};function zK(e,t){return xt(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(i,n){return i[n]=t[n],i},{})),t}function Rp(e,t){if(e.arguments&&e.arguments.length){var i={};return e.arguments.forEach(function(n){return ec(i,n.name,n.value,t)}),i}return null}function mo(e){return e.alias?e.alias.value:e.name.value}function p0(e,t,i){for(var n,r=0,o=t.selections;rcO)return"[Array]";const i=Math.min(WK,e.length),n=e.length-i,r=[];for(let o=0;o1&&r.push(`... ${n} more items`),"["+r.join(", ")+"]"}(e,i);return function KK(e,t){const i=Object.entries(e);return 0===i.length?"{}":t.length>cO?"["+function ZK(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const i=e.constructor.name;if("string"==typeof i&&""!==i)return i}return t}(e)+"]":"{ "+i.map(([r,o])=>r+": "+Np(o,t)).join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}class JK{constructor(t,i,n){this.start=t.start,this.end=i.end,this.startToken=t,this.endToken=i,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class lO{constructor(t,i,n,r,o,s){this.kind=t,this.start=i,this.end=n,this.line=r,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const dO={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},eX=new Set(Object.keys(dO));function uO(e){const t=e?.kind;return"string"==typeof t&&eX.has(t)}var Id=function(e){return e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription",e}(Id||{}),te=function(e){return e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e}(te||{});const ms=Object.freeze({});function Pr(e,t,i=dO){const n=new Map;for(const _ of Object.values(te))n.set(_,v0(t,_));let r,d,u,o=Array.isArray(e),s=[e],a=-1,c=[],l=e;const h=[],f=[];do{a++;const _=a===s.length,v=_&&0!==c.length;if(_){if(d=0===f.length?void 0:h[h.length-1],l=u,u=f.pop(),v)if(o){l=l.slice();let S=0;for(const[N,L]of c){const q=N-S;null===L?(l.splice(q,1),S++):l[q]=L}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[S,N]of c)l[S]=N}a=r.index,s=r.keys,c=r.edits,o=r.inArray,r=r.prev}else if(u){if(d=o?a:s[a],l=u[d],null==l)continue;h.push(d)}let C;if(!Array.isArray(l)){var m,g;uO(l)||Pp(!1,`Invalid AST Node: ${b0(l)}.`);const S=_?null===(m=n.get(l.kind))||void 0===m?void 0:m.leave:null===(g=n.get(l.kind))||void 0===g?void 0:g.enter;if(C=S?.call(t,l,d,u,h,f),C===ms)break;if(!1===C){if(!_){h.pop();continue}}else if(void 0!==C&&(c.push([d,C]),!_)){if(!uO(C)){h.pop();continue}l=C}}var b;void 0===C&&v&&c.push([d,l]),_?h.pop():(r={inArray:o,index:a,keys:s,edits:c,prev:r},o=Array.isArray(l),s=o?l:null!==(b=i[l.kind])&&void 0!==b?b:[],a=-1,c=[],u&&f.push(u),u=l)}while(void 0!==r);return 0!==c.length?c[c.length-1][1]:e}function v0(e,t){const i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ad(e,t){var i=e.directives;return!i||!i.length||function iX(e){var t=[];return e&&e.length&&e.forEach(function(i){if(function nX(e){var t=e.name.value;return"skip"===t||"include"===t}(i)){var n=i.arguments,r=i.name.value;ye(n&&1===n.length,65,r);var o=n[0];ye(o.name&&"if"===o.name.value,66,r);var s=o.value;ye(s&&("Variable"===s.kind||"BooleanValue"===s.kind),67,r),t.push({directive:i,ifArgument:o})}}),t}(i).every(function(n){var r=n.directive,o=n.ifArgument,s=!1;return"Variable"===o.value.kind?ye(void 0!==(s=t&&t[o.value.name.value]),64,r.name.value):s=o.value.value,"skip"===r.name.value?!s:s})}function gs(e,t,i){var n=new Set(e),r=n.size;return Pr(t,{Directive:function(o){if(n.delete(o.name.value)&&(!i||!n.size))return ms}}),i?!n.size:n.size=0});var w0=function(e,t,i){var n=new Error(i);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},x0=Symbol(),nc=function(e){function t(i){var n=i.graphQLErrors,r=i.protocolErrors,o=i.clientErrors,s=i.networkError,a=i.errorMessage,c=i.extraInfo,l=e.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=r||[],l.clientErrors=o||[],l.networkError=s||null,l.message=a||function(e){var t=ai(ai(ai([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(i){return xt(i)&&i.message||"Error message not found."}).join("\n")}(l),l.extraInfo=c,l.__proto__=t.prototype,l}return Nn(t,e),t}(Error),Mt=Array.isArray;function dr(e){return Array.isArray(e)&&e.length>0}var yX=Object.prototype.hasOwnProperty;function mO(){for(var e=[],t=0;t1)for(var n=new _o,r=1;r=0;--a){var c=s[a],d=isNaN(+c)?{}:[];d[c]=o,o=d}i=n.merge(i,o)}),i}var _O=Object.prototype.hasOwnProperty;function SX(e){var t={};return e.split("\n").forEach(function(i){var n=i.indexOf(":");if(n>-1){var r=i.slice(0,n).trim().toLowerCase(),o=i.slice(n+1).trim();t[r]=o}}),t}function bO(e,t){e.status>=300&&w0(e,function(){try{return JSON.parse(t)}catch{return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function D0(e){return 9===e||32===e}function Rd(e){return e>=48&&e<=57}function vO(e){return e>=97&&e<=122||e>=65&&e<=90}function yO(e){return vO(e)||95===e}function IX(e){return vO(e)||Rd(e)||95===e}function AX(e){var t;let i=Number.MAX_SAFE_INTEGER,n=null,r=-1;for(let s=0;s0===a?s:s.slice(i)).slice(null!==(t=n)&&void 0!==t?t:0,r+1)}function RX(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ne(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Pe("(",ne(e.variableDefinitions,", "),")"),i=ne([e.operation,ne([e.name,t]),ne(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:n})=>e+": "+t+Pe(" = ",i)+Pe(" ",ne(n," "))},SelectionSet:{leave:({selections:e})=>Ui(e)},Field:{leave({alias:e,name:t,arguments:i,directives:n,selectionSet:r}){const o=Pe("",e,": ")+t;let s=o+Pe("(",ne(i,", "),")");return s.length>80&&(s=o+Pe("(\n",Bp(ne(i,"\n")),"\n)")),ne([s,ne(n," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pe(" ",ne(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>ne(["...",Pe("on ",e),ne(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:n,selectionSet:r})=>`fragment ${e}${Pe("(",ne(i,", "),")")} on ${t} ${Pe("",ne(n," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function OX(e,t){const i=e.replace(/"""/g,'\\"""'),n=i.split(/\r\n|[\n\r]/g),r=1===n.length,o=n.length>1&&n.slice(1).every(f=>0===f.length||D0(f.charCodeAt(0))),s=i.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=a||c,d=!(null!=t&&t.minimize)&&(!r||e.length>70||l||o||s);let u="";const h=r&&D0(e.charCodeAt(0));return(d&&!h||o)&&(u+="\n"),u+=i,(d||l)&&(u+="\n"),'"""'+u+'"""'}(e):function FX(e){return`"${e.replace(PX,NX)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ne(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ne(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pe("(",ne(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>Pe("",e,"\n")+ne(["schema",ne(t," "),Ui(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>Pe("",e,"\n")+ne(["scalar",t,ne(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>Pe("",e,"\n")+ne(["type",t,Pe("implements ",ne(i," & ")),ne(n," "),Ui(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:n,directives:r})=>Pe("",e,"\n")+t+(xO(i)?Pe("(\n",Bp(ne(i,"\n")),"\n)"):Pe("(",ne(i,", "),")"))+": "+n+Pe(" ",ne(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:n,directives:r})=>Pe("",e,"\n")+ne([t+": "+i,Pe("= ",n),ne(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>Pe("",e,"\n")+ne(["interface",t,Pe("implements ",ne(i," & ")),ne(n," "),Ui(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:n})=>Pe("",e,"\n")+ne(["union",t,ne(i," "),Pe("= ",ne(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:n})=>Pe("",e,"\n")+ne(["enum",t,ne(i," "),Ui(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>Pe("",e,"\n")+ne([t,ne(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:n})=>Pe("",e,"\n")+ne(["input",t,ne(i," "),Ui(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,repeatable:n,locations:r})=>Pe("",e,"\n")+"directive @"+t+(xO(i)?Pe("(\n",Bp(ne(i,"\n")),"\n)"):Pe("(",ne(i,", "),")"))+(n?" repeatable":"")+" on "+ne(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ne(["extend schema",ne(e," "),Ui(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ne(["extend scalar",e,ne(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>ne(["extend type",e,Pe("implements ",ne(t," & ")),ne(i," "),Ui(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>ne(["extend interface",e,Pe("implements ",ne(t," & ")),ne(i," "),Ui(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>ne(["extend union",e,ne(t," "),Pe("= ",ne(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>ne(["extend enum",e,ne(t," "),Ui(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>ne(["extend input",e,ne(t," "),Ui(i)]," ")}};function ne(e,t=""){var i;return null!==(i=e?.filter(n=>n).join(t))&&void 0!==i?i:""}function Ui(e){return Pe("{\n",Bp(ne(e,"\n")),"\n}")}function Pe(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function Bp(e){return Pe(" ",e.replace(/\n/g,"\n "))}function xO(e){var t;return null!==(t=e?.some(i=>i.includes("\n")))&&void 0!==t&&t}var rc=Nr?new WeakMap:void 0,CO=function(e){var t;return t=rc?.get(e),t||(t=wO(e),rc?.set(e,t)),t},UX={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},DO=function(e,t){return t(e)};function E0(e){return new vt(function(t){t.error(e)})}var SO={kind:te.FIELD,name:{kind:te.NAME,value:"__typename"}};function kO(e,t){return!e||e.selectionSet.selections.every(function(i){return i.kind===te.FRAGMENT_SPREAD&&kO(t[i.name.value],t)})}function S0(e){return kO(kd(e)||function $K(e){ye("Document"===e.kind,75),ye(e.definitions.length<=1,76);var t=e.definitions[0];return ye("FragmentDefinition"===t.kind,77),t}(e),Ip(Op(e)))?null:e}function MO(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function k0(e,t){Sd(t);for(var i=MO(""),n=MO(""),r=function(_){for(var v=0,C=void 0;v<_.length&&(C=_[v]);++v)if(!Mt(C)){if(C.kind===te.OPERATION_DEFINITION)return i(C.name&&C.name.value);if(C.kind===te.FRAGMENT_DEFINITION)return n(C.name.value)}return!1!==globalThis.__DEV__&&ye.error(80),null},o=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===te.OPERATION_DEFINITION&&++o;var a=function TO(e){var t=new Map,i=new Map;return e.forEach(function(n){n&&(n.name?t.set(n.name,n):n.test&&i.set(n.test,n))}),function(n){var r=t.get(n.name.value);return!r&&i.size&&i.forEach(function(o,s){s(n)&&(r=o)}),r}}(e),c=function(_){return dr(_)&&_.map(a).some(function(v){return v&&v.remove})},l=new Map,d=!1,u={enter:function(_){if(c(_.directives))return d=!0,null}},h=Pr(t,{Field:u,InlineFragment:u,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(_,v,C,S,N){var L=r(N);L&&L.variables.add(_.name.value)}},FragmentSpread:{enter:function(_,v,C,S,N){if(c(_.directives))return d=!0,null;var L=r(N);L&&L.fragmentSpreads.add(_.name.value)}},FragmentDefinition:{enter:function(_,v,C,S){l.set(JSON.stringify(S),_)},leave:function(_,v,C,S){return _===l.get(JSON.stringify(S))?_:o>0&&_.selectionSet.selections.every(function(L){return L.kind===te.FIELD&&"__typename"===L.name.value})?(n(_.name.value).removed=!0,d=!0,null):void 0}},Directive:{leave:function(_){if(a(_))return d=!0,null}}});if(!d)return t;var f=function(_){return _.transitiveVars||(_.transitiveVars=new Set(_.variables),_.removed||_.fragmentSpreads.forEach(function(v){f(n(v)).transitiveVars.forEach(function(C){_.transitiveVars.add(C)})})),_},m=new Set;h.definitions.forEach(function(_){_.kind===te.OPERATION_DEFINITION?f(i(_.name&&_.name.value)).fragmentSpreads.forEach(function(v){m.add(v)}):_.kind===te.FRAGMENT_DEFINITION&&0===o&&!n(_.name.value).removed&&m.add(_.name.value)}),m.forEach(function(_){f(n(_)).fragmentSpreads.forEach(function(v){m.add(v)})});var b={enter:function(_){if(function(_){return!(m.has(_)&&!n(_).removed)}(_.name.value))return null}};return S0(Pr(h,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(_){if(_.variableDefinitions){var v=f(i(_.name&&_.name.value)).transitiveVars;if(v.size<_.variableDefinitions.length)return k(k({},_),{variableDefinitions:_.variableDefinitions.filter(function(C){return v.has(C.variable.name.value)})})}}}}))}var T0=Object.assign(function(e){return Pr(e,{SelectionSet:{enter:function(t,i,n){if(!n||n.kind!==te.OPERATION_DEFINITION){var r=t.selections;if(r&&!r.some(function(a){return go(a)&&("__typename"===a.name.value||0===a.name.value.lastIndexOf("__",0))})){var s=n;if(!(go(s)&&s.directives&&s.directives.some(function(a){return"export"===a.name.value})))return k(k({},t),{selections:ai(ai([],r,!0),[SO],!1)})}}}}})},{added:function(e){return e===SO}});function XX(e){return"query"===Td(e).operation?e:Pr(e,{OperationDefinition:{enter:function(r){return k(k({},r),{operation:"query"})}}})}function IO(e){return Sd(e),k0([{test:function(i){return"client"===i.name.value},remove:!0}],e)}var AO=zi(function(){return fetch}),ZX=function(e){void 0===e&&(e={});var t=e.uri,i=void 0===t?"/graphql":t,n=e.fetch,r=e.print,o=void 0===r?DO:r,s=e.includeExtensions,a=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,d=void 0!==l&&l,u=si(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&typeof fetch>"u")throw On(35)}(n||AO);var h={http:{includeExtensions:s,preserveHeaderCase:a},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new tc(function(f){var m=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(f,i),g=f.getContext(),b={};if(g.clientAwareness){var _=g.clientAwareness,v=_.name,C=_.version;v&&(b["apollographql-client-name"]=v),C&&(b["apollographql-client-version"]=C)}var S=k(k({},b),g.headers),N={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:S};if(gs(["client"],f.query)){var L=IO(f.query);if(!L)return E0(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));f.query=L}var qe,q=function EO(e,t){for(var i=[],n=2;n-1;){if(_=void 0,oe=[c.slice(0,b),c.slice(b+a.length)],c=oe[1],v=(_=oe[0]).indexOf("\r\n\r\n"),C=SX(_.slice(0,v)),(S=C["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(N=_.slice(v))if(L=bO(e,N),Object.keys(L).length>1||"data"in L||"incremental"in L||"errors"in L||"payload"in L)DX(L)?(q={},"payload"in L&&(q=k({},L.payload)),"errors"in L&&(q=k(k({},q),{extensions:k(k({},"extensions"in q?q.extensions:null),(Ne={},Ne[x0]=L.errors,Ne))})),t(q)):t(L);else if(1===Object.keys(L).length&&"hasNext"in L&&!L.hasNext)return[2];b=c.indexOf(a)}return[3,1];case 3:return[2]}})})}(Yt,oi):function TX(e){return function(t){return t.text().then(function(i){return bO(t,i)}).then(function(i){return t.status>=300&&w0(t,i,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(i)&&!_O.call(i,"data")&&!_O.call(i,"errors")&&w0(t,i,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(n){return n.operationName}):e.operationName,"'.")),i})}}(f)(Yt).then(oi)}).then(function(){qe=void 0,we.complete()}).catch(function(Yt){qe=void 0,function kX(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(Yt,we)}),function(){qe&&qe.abort()}})})},JX=function(e){function t(i){void 0===i&&(i={});var n=e.call(this,ZX(i).request)||this;return n.options=i,n}return Nn(t,e),t}(tc);const{toString:RO,hasOwnProperty:eZ}=Object.prototype,OO=Function.prototype.toString,M0=new Map;function It(e,t){try{return I0(e,t)}finally{M0.clear()}}const FO=It;function I0(e,t){if(e===t)return!0;const i=RO.call(e);if(i!==RO.call(t))return!1;switch(i){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(NO(e,t))return!0;const r=PO(e),o=PO(t),s=r.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,i)===i}(r,nZ)}}return!1}function PO(e){return Object.keys(e).filter(tZ,e)}function tZ(e){return void 0!==this[e]}const nZ="{ [native code] }";function NO(e,t){let i=M0.get(e);if(i){if(i.has(t))return!0}else M0.set(e,i=new Set);return i.add(t),!1}const rZ=()=>Object.create(null),{forEach:oZ,slice:sZ}=Array.prototype,{hasOwnProperty:aZ}=Object.prototype;class bo{constructor(t=!0,i=rZ){this.weakness=t,this.makeData=i}lookup(...t){return this.lookupArray(t)}lookupArray(t){let i=this;return oZ.call(t,n=>i=i.getChildTrie(n)),aZ.call(i,"data")?i.data:i.data=this.makeData(sZ.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let i=this;for(let n=0,r=t.length;i&&n0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(i){return i.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(i){return this.queryManager.transform(i)},t}(vt);function qO(e){var t=e.options,i=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===i||"network-only"===i?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):i}}):e.reobserve()}function pZ(e){!1!==globalThis.__DEV__&&ye.error(21,e.message,e.stack)}function GO(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&ye.debug(22,e)}function B0(e){return"network-only"===e||"no-cache"===e||"standby"===e}function WO(e){return e.kind===te.FIELD||e.kind===te.FRAGMENT_SPREAD||e.kind===te.INLINE_FRAGMENT}function wZ(){}jO(L0);class xZ{constructor(t=1/0,i=wZ){this.max=t,this.dispose=i,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const i=this.getNode(t);return i&&i.value}getNode(t){const i=this.map.get(t);if(i&&i!==this.newest){const{older:n,newer:r}=i;r&&(r.older=n),n&&(n.newer=r),i.older=this.newest,i.older.newer=i,i.newer=null,this.newest=i,i===this.oldest&&(this.oldest=r)}return i}set(t,i){let n=this.getNode(t);return n?n.value=i:(n={key:t,value:i,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(t,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const i=this.map.get(t);return!!i&&(i===this.newest&&(this.newest=i.older),i===this.oldest&&(this.oldest=i.newer),i.newer&&(i.newer.older=i.older),i.older&&(i.older.newer=i.newer),this.map.delete(t),this.dispose(i.value,t),!0)}}let pn=null;const YO={};let CZ=1;function KO(e){try{return e()}catch{}}const V0="@wry/context:Slot",XO=KO(()=>globalThis)||KO(()=>global)||Object.create(null),j0=XO[V0]||Array[V0]||function(e){try{Object.defineProperty(XO,V0,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",CZ++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=pn;t;t=t.parent)if(this.id in t.slots){const i=t.slots[this.id];if(i===YO)break;return t!==pn&&(pn.slots[this.id]=i),!0}return pn&&(pn.slots[this.id]=YO),!1}getValue(){if(this.hasValue())return pn.slots[this.id]}withValue(t,i,n,r){const s=pn;pn={parent:s,slots:{__proto__:null,[this.id]:t}};try{return i.apply(r,n)}finally{pn=s}}static bind(t){const i=pn;return function(){const n=pn;try{return pn=i,t.apply(this,arguments)}finally{pn=n}}}static noContext(t,i,n){if(!pn)return t.apply(n,i);{const r=pn;try{return pn=null,t.apply(n,i)}finally{pn=r}}}}),Fd=new j0,{hasOwnProperty:kZ}=Object.prototype,z0=Array.from||function(e){const t=[];return e.forEach(i=>t.push(i)),t};function Hp(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Pd=[],TZ=100;function ac(e,t){if(!e)throw new Error(t||"assertion failure")}function JO(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let AZ=(()=>{class e{constructor(i){this.fn=i,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!vo(this))return eF(this),this.value[0]}recompute(i){return ac(!this.recomputing,"already recomputing"),eF(this),vo(this)?function RZ(e,t){return sF(e),Fd.withValue(e,OZ,[e,t]),function PZ(e,t){if("function"==typeof e.subscribe)try{Hp(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function FZ(e){e.dirty=!1,!vo(e)&&nF(e)}(e),JO(e.value)}(this,i):JO(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,tF(this),Hp(this))}dispose(){this.setDirty(),sF(this),U0(this,(i,n)=>{i.setDirty(),aF(i,this)})}forget(){this.dispose()}dependOn(i){i.add(this),this.deps||(this.deps=Pd.pop()||new Set),this.deps.add(i)}forgetDeps(){this.deps&&(z0(this.deps).forEach(i=>i.delete(this)),this.deps.clear(),Pd.push(this.deps),this.deps=null)}}return e.count=0,e})();function eF(e){const t=Fd.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),vo(e)?iF(t,e):rF(t,e),t}function OZ(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(i){e.value[1]=i}e.recomputing=!1}function vo(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function tF(e){U0(e,iF)}function nF(e){U0(e,rF)}function U0(e,t){const i=e.parents.size;if(i){const n=z0(e.parents);for(let r=0;r0&&i===t.length&&e[i-1]===t[i-1]}(i,t.value)||e.setDirty(),oF(e,t),!vo(e)&&nF(e)}function oF(e,t){const i=e.dirtyChildren;i&&(i.delete(t),0===i.size&&(Pd.length0&&e.childValues.forEach((t,i)=>{aF(e,i)}),e.forgetDeps(),ac(null===e.dirtyChildren)}function aF(e,t){t.parents.delete(e),e.childValues.delete(t),oF(e,t)}const NZ={setDirty:!0,dispose:!0,forget:!0};function cF(e){const t=new Map,i=e&&e.subscribe;function n(r){const o=Fd.getValue();if(o){let s=t.get(r);s||t.set(r,s=new Set),o.dependOn(s),"function"==typeof i&&(Hp(s),s.unsubscribe=i(r))}}return n.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&kZ.call(NZ,s)?s:"setDirty";z0(a).forEach(l=>l[c]()),t.delete(o),Hp(a)}},n}let lF;function LZ(...e){return(lF||(lF=new bo("function"==typeof WeakMap))).lookupArray(e)}const $0=new Set;function zp(e,{max:t=Math.pow(2,16),makeCacheKey:i=LZ,keyArgs:n,subscribe:r}=Object.create(null)){const o=new xZ(t,d=>d.dispose()),s=function(){const d=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===d)return e.apply(null,arguments);let u=o.get(d);u||(o.set(d,u=new AZ(e)),u.subscribe=r,u.forget=()=>o.delete(d));const h=u.recompute(Array.prototype.slice.call(arguments));return o.set(d,u),$0.add(o),Fd.hasValue()||($0.forEach(f=>f.clean()),$0.clear()),h};function a(d){const u=o.get(d);u&&u.setDirty()}function c(d){const u=o.get(d);if(u)return u.peek()}function l(d){return o.delete(d)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:i,keyArgs:n,subscribe:r}),s.dirtyKey=a,s.dirty=function(){a(i.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(i.apply(null,arguments))},s.forgetKey=l,s.forget=function(){return l(i.apply(null,arguments))},s.makeCacheKey=i,s.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(s)}var q0=new j0,dF=new WeakMap;function Nd(e){var t=dF.get(e);return t||dF.set(e,t={vars:new Set,dep:cF()}),t}function uF(e){Nd(e).vars.forEach(function(t){return t.forgetCache(e)})}function VZ(e){var t=new Set,i=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){Nd(c).dep.dirty(n),function jZ(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(i);i.clear(),s.forEach(function(c){return c(e)})}}else{var a=q0.getValue();a&&(r(a),Nd(a).dep(n))}return e};n.onNextChange=function(o){return i.add(o),function(){i.delete(o)}};var r=n.attachCache=function(o){return t.add(o),Nd(o).vars.add(n),n};return n.forgetCache=function(o){return t.delete(o)},n}var hF=function(){function e(t){var i=t.cache,n=t.client,r=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=i,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var i=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(n){i.resolvers=mO(i.resolvers,n)}):this.resolvers=mO(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){var i=t.document,n=t.remoteResult,r=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Ln(this,void 0,void 0,function(){return Bn(this,function(c){return i?[2,this.resolveDocument(i,n.data,r,o,this.fragmentMatcher,a).then(function(l){return k(k({},n),{data:l.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return gs(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return IO(t)},e.prototype.prepareContext=function(t){var i=this.cache;return k(k({},t),{cache:i,getCacheKey:function(n){return i.identify(n)}})},e.prototype.addExportedVariables=function(t,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),Ln(this,void 0,void 0,function(){return Bn(this,function(r){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,i)||{},this.prepareContext(n),i).then(function(o){return k(k({},i),o.exportedVariables)})]:[2,k({},i)]})})},e.prototype.shouldForceResolvers=function(t){var i=!1;return Pr(t,{Directive:{enter:function(n){if("client"===n.name.value&&n.arguments&&(i=n.arguments.some(function(r){return"always"===r.name.value&&"BooleanValue"===r.value.kind&&!0===r.value.value})))return ms}}}),i},e.prototype.buildRootValueFromCache=function(t,i){return this.cache.diff({query:XX(t),variables:i,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,i,n,r,o,s){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Ln(this,void 0,void 0,function(){var a,c,l,d,u,h,f,m,g,b;return Bn(this,function(v){return a=Td(t),c=Op(t),l=Ip(c),d=this.collectSelectionsToResolve(a,l),h=(u=a.operation)?u.charAt(0).toUpperCase()+u.slice(1):"Query",m=(f=this).cache,g=f.client,b={fragmentMap:l,context:k(k({},n),{cache:m,client:g}),variables:r,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,i,b).then(function(C){return{result:C,exportedVariables:b.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,i,n,r){return Ln(this,void 0,void 0,function(){var o,s,a,c,l,d=this;return Bn(this,function(u){return o=r.fragmentMap,s=r.context,a=r.variables,c=[n],l=function(h){return Ln(d,void 0,void 0,function(){var f;return Bn(this,function(g){return(i||r.selectionsToResolve.has(h))&&Ad(h,a)?go(h)?[2,this.resolveField(h,i,n,r).then(function(b){var _;typeof b<"u"&&c.push(((_={})[mo(h)]=b,_))})]:(function UK(e){return"InlineFragment"===e.kind}(h)?f=h:ye(f=o[h.name.value],16,h.name.value),f&&f.typeCondition&&r.fragmentMatcher(n,f.typeCondition.name.value,s)?[2,this.resolveSelectionSet(f.selectionSet,i,n,r).then(function(b){c.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return C0(c)})]})})},e.prototype.resolveField=function(t,i,n,r){return Ln(this,void 0,void 0,function(){var o,s,a,c,l,d,u,h,f,m=this;return Bn(this,function(g){return n?(o=r.variables,s=t.name.value,a=mo(t),c=s!==a,l=n[a]||n[s],d=Promise.resolve(l),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(u=n.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[u])&&(f=h[c?s:a])&&(d=Promise.resolve(q0.withValue(this.cache,f,[n,Rp(t,o),r.context,{field:t,fragmentMap:r.fragmentMap}])))),[2,d.then(function(b){var _,v;if(void 0===b&&(b=l),t.directives&&t.directives.forEach(function(S){"export"===S.name.value&&S.arguments&&S.arguments.forEach(function(N){"as"===N.name.value&&"StringValue"===N.value.kind&&(r.exportedVariables[N.value.value]=b)})}),!t.selectionSet||null==b)return b;var C=null!==(v=null===(_=t.directives)||void 0===_?void 0:_.some(function(S){return"client"===S.name.value}))&&void 0!==v&&v;return Array.isArray(b)?m.resolveSubSelectedArray(t,i||C,b,r):t.selectionSet?m.resolveSelectionSet(t.selectionSet,i||C,b,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,i,n,r){var o=this;return Promise.all(n.map(function(s){return null===s?null:Array.isArray(s)?o.resolveSubSelectedArray(t,i,s,r):t.selectionSet?o.resolveSelectionSet(t.selectionSet,i,s,r):void 0}))},e.prototype.collectSelectionsToResolve=function(t,i){var n=function(s){return!Array.isArray(s)},r=this.selectionsToResolveCache;return function o(s){if(!r.has(s)){var a=new Set;r.set(s,a),Pr(s,{Directive:function(c,l,d,u,h){"client"===c.name.value&&h.forEach(function(f){n(f)&&WO(f)&&a.add(f)})},FragmentSpread:function(c,l,d,u,h){var f=i[c.name.value];ye(f,17,c.name.value);var m=o(f);m.size>0&&(h.forEach(function(g){n(g)&&WO(g)&&a.add(g)}),a.add(c),m.forEach(function(g){a.add(g)}))}})}return r.get(s)}(t)},e}(),cc=new(Nr?WeakMap:Map);function G0(e,t){var i=e[t];"function"==typeof i&&(e[t]=function(){return cc.set(e,(cc.get(e)+1)%1e15),i.apply(this,arguments)})}function fF(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var W0=function(){function e(t,i){void 0===i&&(i=t.generateQueryId()),this.queryId=i,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=t.cache;cc.has(n)||(cc.set(n,0),G0(n,"evict"),G0(n,"modify"),G0(n,"reset"))}return e.prototype.init=function(t){var i=t.networkStatus||rt.loading;return this.variables&&this.networkStatus!==rt.loading&&!It(this.variables,t.variables)&&(i=rt.setVariables),It(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:i}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){fF(this),this.dirty=!1},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&It(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var i=this.observableQuery;if(i&&"no-cache"===i.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(t,i){this.lastDiff=t?{diff:t,options:i||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var i;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(i=this.observableQuery)||void 0===i?void 0:i.options.canonizeResults}},e.prototype.setDiff=function(t){var i=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!It(n&&n.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return i.notify()},0)))},e.prototype.setObservableQuery=function(t){var i=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){i.getDiff().fromOptimisticTransaction?t.observe():qO(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;fF(this),this.shouldNotify()&&this.listeners.forEach(function(i){return i(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Cd(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(i){return i.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var i=this;void 0===t&&(t=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=k(k({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return i.setDiff(o)}});(!this.lastWatch||!It(r,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,i){var n=this.lastWrite;return!(n&&n.dmCount===cc.get(this.cache)&&It(i,n.variables)&&It(t.data,n.result.data))},e.prototype.markResult=function(t,i,n,r){var o=this,s=new _o,a=dr(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&dr(t.incremental)){var c=gO(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=s.merge(l.result,t.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Q0(t,n.errorPolicy)?this.cache.performTransaction(function(d){if(o.shouldWrite(t,n.variables))d.writeQuery({query:i,data:t.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:t,variables:n.variables,dmCount:cc.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(t.data=o.lastDiff.diff.result);var u=o.getDiffOptions(n.variables),h=d.diff(u);!o.stopped&&It(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(h,u),h.complete&&(t.data=h.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=rt.ready},e.prototype.markError=function(t){return this.networkStatus=rt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function Q0(e,t){void 0===t&&(t="none");var i="ignore"===t||"all"===t,n=!Vp(e);return!n&&i&&e.data&&(n=!0),n}var HZ=Object.prototype.hasOwnProperty,zZ=function(){function e(t){var i=this,n=t.cache,r=t.link,o=t.defaultOptions,s=t.documentTransform,a=t.queryDeduplication,c=void 0!==a&&a,l=t.onBroadcast,d=t.ssrMode,u=void 0!==d&&d,h=t.clientAwareness,f=void 0===h?{}:h,m=t.localState,g=t.assumeImmutableResults,b=void 0===g?!!n.assumeImmutableResults:g;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Nr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var _=new VO(function(v){return i.cache.transformDocument(v)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=o||Object.create(null),this.queryDeduplication=c,this.clientAwareness=f,this.localState=m||new hF({cache:n}),this.ssrMode=u,this.assumeImmutableResults=b,this.documentTransform=s?_.concat(s).concat(_):_,(this.onBroadcast=l)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(i,n){t.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(On(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(i){return i(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var i,n,r=t.mutation,o=t.variables,s=t.optimisticResponse,a=t.updateQueries,c=t.refetchQueries,l=void 0===c?[]:c,d=t.awaitRefetchQueries,u=void 0!==d&&d,h=t.update,f=t.onQueryUpdated,m=t.fetchPolicy,g=void 0===m?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.fetchPolicy)||"network-only":m,b=t.errorPolicy,_=void 0===b?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":b,v=t.keepRootFields,C=t.context;return Ln(this,void 0,void 0,function(){var S,N,L,q;return Bn(this,function(oe){switch(oe.label){case 0:return ye(r,24),ye("network-only"===g||"no-cache"===g,25),S=this.generateMutationId(),r=this.cache.transformForLink(this.transform(r)),N=this.getDocumentInfo(r).hasClientExports,o=this.getVariables(r,o),N?[4,this.localState.addExportedVariables(r,o,C)]:[3,2];case 1:o=oe.sent(),oe.label=2;case 2:return L=this.mutationStore&&(this.mutationStore[S]={mutation:r,variables:o,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:S,document:r,variables:o,fetchPolicy:g,errorPolicy:_,context:C,updateQueries:a,update:h,keepRootFields:v}),this.broadcastQueries(),q=this,[2,new Promise(function(Ne,qe){return F0(q.getObservableFromLink(r,k(k({},C),{optimisticResponse:s}),o,!1),function(At){if(Vp(At)&&"none"===_)throw new nc({graphQLErrors:P0(At)});L&&(L.loading=!1,L.error=null);var Fn=k({},At);return"function"==typeof l&&(l=l(Fn)),"ignore"===_&&Vp(Fn)&&delete Fn.errors,q.markMutationResult({mutationId:S,result:Fn,document:r,variables:o,fetchPolicy:g,errorPolicy:_,context:C,update:h,updateQueries:a,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:s?S:void 0,onQueryUpdated:f,keepRootFields:v})}).subscribe({next:function(At){q.broadcastQueries(),(!("hasNext"in At)||!1===At.hasNext)&&Ne(At)},error:function(At){L&&(L.loading=!1,L.error=At),s&&q.cache.removeOptimistic(S),q.broadcastQueries(),qe(At instanceof nc?At:new nc({networkError:At}))}})})]}})})},e.prototype.markMutationResult=function(t,i){var n=this;void 0===i&&(i=this.cache);var r=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&Q0(r,t.errorPolicy)){if(ic(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ic(r)&&dr(r.incremental)){var a=i.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=gO(a.result,r)),typeof c<"u"&&(r.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(u,h){var f=u.observableQuery,m=f&&f.queryName;if(m&&HZ.call(l,m)){var g=l[m],b=n.queries.get(h),_=b.document,v=b.variables,C=i.diff({query:_,variables:v,returnPartialData:!0,optimistic:!1}),S=C.result;if(C.complete&&S){var L=g(S,{mutationResult:r,queryName:_&&m0(_)||void 0,queryVariables:v});L&&o.push({result:L,dataId:"ROOT_QUERY",query:_,variables:v})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(u){s||o.forEach(function(g){return u.write(g)});var h=t.update,f=!function CX(e){return ic(e)||function xX(e){return"hasNext"in e&&"data"in e}(e)}(r)||ic(r)&&!r.hasNext;if(h){if(!s){var m=u.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});m.complete&&("incremental"in(r=k(k({},r),{data:m.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}f&&h(u,r,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&f&&u.modify({id:"ROOT_MUTATION",fields:function(g,b){return"__typename"===b.fieldName?g:b.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(u){return d.push(u)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(d).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(t,i){var n=this,r="function"==typeof t?t(i.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(k(k({},i),{result:{data:r}}),o)}catch(s){!1!==globalThis.__DEV__&&ye.error(s)}},i.mutationId)},e.prototype.fetchQuery=function(t,i,n){return this.fetchConcastWithInfo(t,i,n).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(i,n){t[n]={variables:i.variables,networkStatus:i.networkStatus,networkError:i.networkError,graphQLErrors:i.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var i=this.queries.get(t);i&&(i.networkError=void 0,i.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var i=this.transformCache;if(!i.has(t)){var n={hasClientExports:tX(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:gs(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:k0([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:g0(kd(t)),asQuery:k(k({},t),{definitions:t.definitions.map(function(r){return"OperationDefinition"===r.kind&&"query"!==r.operation?k(k({},r),{operation:"query"}):r})})};i.set(t,n)}return i.get(t)},e.prototype.getVariables=function(t,i){return k(k({},this.getDocumentInfo(t).defaultVars),i)},e.prototype.watchQuery=function(t){var i=this.transform(t.query);typeof(t=k(k({},t),{variables:this.getVariables(i,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var n=new W0(this),r=new L0({queryManager:this,queryInfo:n,options:t});return r.lastQuery=i,this.queries.set(r.queryId,n),n.init({document:i,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(t,i){var n=this;return void 0===i&&(i=this.generateQueryId()),ye(t.query,26),ye("Document"===t.query.kind,27),ye(!t.returnPartialData,28),ye(!t.pollInterval,29),this.fetchQuery(i,k(k({},t),{query:this.transform(t.query)})).finally(function(){return n.stopQuery(i)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var i=this.queries.get(t);i&&i.stop()},e.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(On(30)),this.queries.forEach(function(i){i.observableQuery?i.networkStatus=rt.loading:i.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var i=this;void 0===t&&(t="active");var n=new Map,r=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?r.set(s,!1):function IK(e){return xt(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?r.set(i.transform(s),!1):xt(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,a){var c=s.observableQuery,l=s.document;if(c){if("all"===t)return void n.set(a,c);var d=c.queryName;if("standby"===c.options.fetchPolicy||"active"===t&&!c.hasObservers())return;("active"===t||d&&r.has(d)||l&&r.has(l))&&(n.set(a,c),d&&r.set(d,!0),l&&r.set(l,!0))}}),o.size&&o.forEach(function(s){var a=r0("legacyOneTimeQuery"),c=i.getQuery(a).init({document:s.query,variables:s.variables}),l=new L0({queryManager:i,queryInfo:c,options:k(k({},s),{fetchPolicy:"network-only"})});ye(l.queryId===a),c.setObservableQuery(l),n.set(a,l)}),!1!==globalThis.__DEV__&&r.size&&r.forEach(function(s,a){s||!1!==globalThis.__DEV__&&ye.warn("string"==typeof a?31:32,a)}),n},e.prototype.reFetchObservableQueries=function(t){var i=this;void 0===t&&(t=!1);var n=[];return this.getObservableQueries(t?"all":"active").forEach(function(r,o){var s=r.options.fetchPolicy;r.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&n.push(r.refetch()),i.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var i=this,n=t.query,r=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.variables,c=t.context,l=void 0===c?{}:c;n=this.transform(n),a=this.getVariables(n,a);var d=function(h){return i.getObservableFromLink(n,l,h).map(function(f){"no-cache"!==r&&(Q0(f,s)&&i.cache.write({query:n,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:h}),i.broadcastQueries());var m=Vp(f),g=function _X(e){return!!e.extensions&&Array.isArray(e.extensions[x0])}(f);if(m||g){var b={};if(m&&(b.graphQLErrors=f.errors),g&&(b.protocolErrors=f.extensions[x0]),"none"===s||g)throw new nc(b)}return"ignore"===s&&delete f.errors,f})};if(this.getDocumentInfo(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,l).then(d);return new vt(function(h){var f=null;return u.then(function(m){return f=m.subscribe(h)},h.error),function(){return f&&f.unsubscribe()}})}return d(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,i,n,r){var s,o=this;void 0===r&&(r=null!==(s=i?.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var a,c=this.getDocumentInfo(t),l=c.serverQuery,d=c.clientQuery;if(l){var h=this.inFlightLinkObservables,f=this.link,m={query:l,variables:n,operationName:m0(l)||void 0,context:this.prepareContext(k(k({},i),{forceFetch:!r}))};if(i=m.context,r){var g=CO(l),b=h.get(g)||new Map;h.set(g,b);var _=_s(n);if(!(a=b.get(_))){var v=new oc([_0(f,m)]);b.set(_,a=v),v.beforeNext(function(){b.delete(_)&&b.size<1&&h.delete(g)})}}else a=new oc([_0(f,m)])}else a=new oc([vt.of({data:{}})]),i=this.prepareContext(i);return d&&(a=F0(a,function(C){return o.localState.runResolvers({document:d,remoteResult:C,context:i,variables:n})})),a},e.prototype.getResultsFromLink=function(t,i,n){var r=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return F0(this.getObservableFromLink(o,n.context,n.variables),function(s){var a=P0(s),c=a.length>0;if(r>=t.lastRequestId){if(c&&"none"===n.errorPolicy)throw t.markError(new nc({graphQLErrors:a}));t.markResult(s,o,n,i),t.markReady()}var l={data:s.data,loading:!1,networkStatus:rt.ready};return c&&"ignore"!==n.errorPolicy&&(l.errors=a,l.networkStatus=rt.error),l},function(s){var a=function bX(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new nc({networkError:s});throw r>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,i,n){var r=this;void 0===n&&(n=rt.loading);var L,q,o=i.query,s=this.getVariables(o,i.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,l=i.fetchPolicy,u=i.errorPolicy,f=i.returnPartialData,g=i.notifyOnNetworkStatusChange,_=i.context,C=Object.assign({},i,{query:o,variables:s,fetchPolicy:void 0===l?c&&c.fetchPolicy||"cache-first":l,errorPolicy:void 0===u?c&&c.errorPolicy||"none":u,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==g&&g,context:void 0===_?{}:_}),S=function(Ne){C.variables=Ne;var qe=r.fetchQueryByPolicy(a,C,n);return"standby"!==C.fetchPolicy&&qe.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",i),qe},N=function(){return r.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(Ne){N(),setTimeout(function(){return L.cancel(Ne)})}),this.getDocumentInfo(C.query).hasClientExports)L=new oc(this.localState.addExportedVariables(C.query,C.variables,C.context).then(S).then(function(Ne){return Ne.sources})),q=!0;else{var oe=S(C.variables);q=oe.fromLink,L=new oc(oe.sources)}return L.promise.then(N,N),{concast:L,fromLink:q}},e.prototype.refetchQueries=function(t){var i=this,n=t.updateCache,r=t.include,o=t.optimistic,s=void 0!==o&&o,a=t.removeOptimistic,c=void 0===a?s?r0("refetchQueries"):void 0:a,l=t.onQueryUpdated,d=new Map;r&&this.getObservableQueries(r).forEach(function(h,f){d.set(f,{oq:h,lastDiff:i.getQuery(f).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(h,f,m){var g=h.watcher instanceof W0&&h.watcher.observableQuery;if(g){if(l){d.delete(g.queryId);var b=l(g,f,m);return!0===b&&(b=g.refetch()),!1!==b&&u.set(g,b),b}null!==l&&d.set(g.queryId,{oq:g,lastDiff:m,diff:f})}}}),d.size&&d.forEach(function(h,f){var _,m=h.oq,g=h.lastDiff,b=h.diff;if(l){if(!b){var v=m.queryInfo;v.reset(),b=v.getDiff()}_=l(m,b,g)}(!l||!0===_)&&(_=m.refetch()),!1!==_&&u.set(m,_),f.indexOf("legacyOneTimeQuery")>=0&&i.stopQueryNoBroadcast(f)}),c&&this.cache.removeOptimistic(c),u},e.prototype.fetchQueryByPolicy=function(t,i,n){var r=this,o=i.query,s=i.variables,a=i.fetchPolicy,c=i.refetchWritePolicy,l=i.errorPolicy,d=i.returnPartialData,u=i.context,h=i.notifyOnNetworkStatusChange,f=t.networkStatus;t.init({document:o,variables:s,networkStatus:n});var m=function(){return t.getDiff()},g=function(S,N){void 0===N&&(N=t.networkStatus||rt.loading);var L=S.result;!1!==globalThis.__DEV__&&!d&&!It(L,{})&&GO(S.missing);var q=function(oe){return vt.of(k({data:oe,loading:Cd(N),networkStatus:N},S.complete?null:{partial:!0}))};return L&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:L},context:u,variables:s,onlyRunForcedResolvers:!0}).then(function(oe){return q(oe.data||void 0)}):"none"===l&&N===rt.refetch&&Array.isArray(S.missing)?q(void 0):q(L)},b="no-cache"===a?0:n===rt.refetch&&"merge"!==c?1:2,_=function(){return r.getResultsFromLink(t,b,{query:o,variables:s,context:u,fetchPolicy:a,errorPolicy:l})},v=h&&"number"==typeof f&&f!==n&&Cd(n);switch(a){default:case"cache-first":return(C=m()).complete?{fromLink:!1,sources:[g(C,t.markReady())]}:d||v?{fromLink:!0,sources:[g(C),_()]}:{fromLink:!0,sources:[_()]};case"cache-and-network":var C;return(C=m()).complete||d||v?{fromLink:!0,sources:[g(C),_()]}:{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[g(m(),t.markReady())]};case"network-only":return v?{fromLink:!0,sources:[g(m()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return v?{fromLink:!0,sources:[g(t.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new W0(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var i=this.localState.prepareContext(t);return k(k({},i),{clientAwareness:this.clientAwareness})},e}();function Y0(e,t){return sc(e,t,t.variables&&{variables:sc(k(k({},e&&e.variables),t.variables))})}var pF=!1,mF=function(){function e(t){var i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw On(13);var n=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,l=void 0!==c&&c,d=t.ssrForceFetchDelay,u=void 0===d?0:d,h=t.connectToDevTools,f=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:h,m=t.queryDeduplication,g=void 0===m||m,b=t.defaultOptions,_=t.assumeImmutableResults,v=void 0===_?s.assumeImmutableResults:_,C=t.resolvers,S=t.typeDefs,N=t.fragmentMatcher,L=t.name,q=t.version,oe=t.link;oe||(oe=n?new JX({uri:n,credentials:t.credentials,headers:t.headers}):tc.empty()),this.link=oe,this.cache=s,this.disableNetworkFetches=l||u>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=S,u&&setTimeout(function(){return i.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=n0,this.localState=new hF({cache:s,client:this,resolvers:C,fragmentMatcher:N}),this.queryManager=new zZ({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:g,ssrMode:l,clientAwareness:{name:L,version:q},localState:this.localState,assumeImmutableResults:v,onBroadcast:f?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),f&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var t=window,i=Symbol.for("apollo.devtools");(t[i]=t[i]||[]).push(this),t.__APOLLO_CLIENT__=this}!pF&&!1!==globalThis.__DEV__&&(pF=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,r=n&&n.userAgent,o=void 0;"string"==typeof r&&(r.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1!==globalThis.__DEV__&&ye.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Y0(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=k(k({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=Y0(this.defaultOptions.query,t)),ye("cache-and-network"!==t.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=k(k({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Y0(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,i){return void 0===i&&(i=!1),this.cache.readQuery(t,i)},e.prototype.readFragment=function(t,i){return void 0===i&&(i=!1),this.cache.readFragment(t,i)},e.prototype.writeQuery=function(t){var i=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),i},e.prototype.writeFragment=function(t){var i=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),i},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return _0(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(i){return i()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(i){return i()}))})},e.prototype.onResetStore=function(t){var i=this;return this.resetStoreCallbacks.push(t),function(){i.resetStoreCallbacks=i.resetStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.onClearStore=function(t){var i=this;return this.clearStoreCallbacks.push(t),function(){i.clearStoreCallbacks=i.clearStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var i=this.queryManager.refetchQueries(t),n=[],r=[];i.forEach(function(s,a){n.push(a),r.push(s)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(s){!1!==globalThis.__DEV__&&ye.debug(15,s)}),o},e.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},e}();function $Z(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const qZ=/\r\n|[\n\r]/g;function K0(e,t){let i=0,n=1;for(const r of e.body.matchAll(qZ)){if("number"==typeof r.index||$Z(!1),r.index>=t)break;i=r.index+r[0].length,n+=1}return{line:n,column:t+1-i}}function GZ(e){return gF(e.source,K0(e.source,e.start))}function gF(e,t){const i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?i:0),l=`${e.name}:${s}:${c}\n`,d=n.split(/\r\n|[\n\r]/g),u=d[r];if(u.length>120){const h=Math.floor(c/80),f=c%80,m=[];for(let g=0;g["|",g]),["|","^".padStart(f)],["|",m[h+1]]])}return l+_F([[s-1+" |",d[r-1]],[`${s} |`,u],["|","^".padStart(c)],[`${s+1} |`,d[r+1]]])}function _F(e){const t=e.filter(([n,r])=>void 0!==r),i=Math.max(...t.map(([n])=>n.length));return t.map(([n,r])=>n.padStart(i)+(r?" "+r:"")).join("\n")}class X0 extends Error{constructor(t,...i){var n,r,o;const{nodes:s,source:a,positions:c,path:l,originalError:d,extensions:u}=function WZ(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(i);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=d??void 0,this.nodes=bF(Array.isArray(s)?s:s?[s]:void 0);const h=bF(null===(n=this.nodes)||void 0===n?void 0:n.map(m=>m.loc).filter(m=>null!=m));this.source=a??(null==h||null===(r=h[0])||void 0===r?void 0:r.source),this.positions=c??h?.map(m=>m.start),this.locations=c&&a?c.map(m=>K0(a,m)):h?.map(m=>K0(m.source,m.start));const f=function UZ(e){return"object"==typeof e&&null!==e}(d?.extensions)?d?.extensions:void 0;this.extensions=null!==(o=u??f)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,X0):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const i of this.nodes)i.loc&&(t+="\n\n"+GZ(i.loc));else if(this.source&&this.locations)for(const i of this.locations)t+="\n\n"+gF(this.source,i);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function bF(e){return void 0===e||0===e.length?void 0:e}function rn(e,t,i){return new X0(`Syntax Error: ${i}`,{source:e,positions:[t]})}var vF=function(e){return e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e}(vF||{}),O=function(e){return e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment",e}(O||{});class QZ{constructor(t){const i=new lO(O.SOF,0,0,0,0);this.source=t,this.lastToken=i,this.token=i,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==O.EOF)do{if(t.next)t=t.next;else{const i=KZ(this,t.end);t.next=i,i.prev=t,t=i}}while(t.kind===O.COMMENT);return t}}function lc(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Up(e,t){return yF(e.charCodeAt(t))&&wF(e.charCodeAt(t+1))}function yF(e){return e>=55296&&e<=56319}function wF(e){return e>=56320&&e<=57343}function bs(e,t){const i=e.source.body.codePointAt(t);if(void 0===i)return O.EOF;if(i>=32&&i<=126){const n=String.fromCodePoint(i);return'"'===n?"'\"'":`"${n}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function Wt(e,t,i,n,r){return new lO(t,i,n,e.line,1+i-e.lineStart,r)}function KZ(e,t){const i=e.source.body,n=i.length;let r=t;for(;r=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function nJ(e,t){const i=e.source.body;switch(i.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw rn(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}function iJ(e,t){const i=e.source.body,n=i.length;let r=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||Pp(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Pp(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class $p{constructor(t,i={}){const n=function sJ(e){return oJ(e,CF)}(t)?t:new CF(t);this._lexer=new QZ(n),this._options=i,this._tokenCounter=0}parseName(){const t=this.expectToken(O.NAME);return this.node(t,{kind:te.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:te.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF)})}parseDefinition(){if(this.peek(O.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),i=t?this._lexer.lookahead():this._lexer.token;if(i.kind===O.NAME){switch(i.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw rn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(i.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(i)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(O.BRACE_L))return this.node(t,{kind:te.OPERATION_DEFINITION,operation:Id.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const i=this.parseOperationType();let n;return this.peek(O.NAME)&&(n=this.parseName()),this.node(t,{kind:te.OPERATION_DEFINITION,operation:i,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(O.NAME);switch(t.value){case"query":return Id.QUERY;case"mutation":return Id.MUTATION;case"subscription":return Id.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:te.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(O.DOLLAR),this.node(t,{kind:te.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:te.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R)})}parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,i=this.parseName();let n,r;return this.expectOptionalToken(O.COLON)?(n=i,r=this.parseName()):r=i,this.node(t,{kind:te.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(O.PAREN_L,t?this.parseConstArgument:this.parseArgument,O.PAREN_R)}parseArgument(t=!1){const i=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(i,{kind:te.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(O.SPREAD);const i=this.expectOptionalKeyword("on");return!i&&this.peek(O.NAME)?this.node(t,{kind:te.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:te.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this.node(t,!0===this._options.allowLegacyFragmentVariables?{kind:te.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:te.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const i=this._lexer.token;switch(i.kind){case O.BRACKET_L:return this.parseList(t);case O.BRACE_L:return this.parseObject(t);case O.INT:return this.advanceLexer(),this.node(i,{kind:te.INT,value:i.value});case O.FLOAT:return this.advanceLexer(),this.node(i,{kind:te.FLOAT,value:i.value});case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this.advanceLexer(),i.value){case"true":return this.node(i,{kind:te.BOOLEAN,value:!0});case"false":return this.node(i,{kind:te.BOOLEAN,value:!1});case"null":return this.node(i,{kind:te.NULL});default:return this.node(i,{kind:te.ENUM,value:i.value})}case O.DOLLAR:if(t){if(this.expectToken(O.DOLLAR),this._lexer.token.kind===O.NAME)throw rn(this._lexer.source,i.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(i)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:te.STRING,value:t.value,block:t.kind===O.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:te.LIST,values:this.any(O.BRACKET_L,()=>this.parseValueLiteral(t),O.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:te.OBJECT,fields:this.any(O.BRACE_L,()=>this.parseObjectField(t),O.BRACE_R)})}parseObjectField(t){const i=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(i,{kind:te.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const i=[];for(;this.peek(O.AT);)i.push(this.parseDirective(t));return i}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const i=this._lexer.token;return this.expectToken(O.AT),this.node(i,{kind:te.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let i;if(this.expectOptionalToken(O.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(O.BRACKET_R),i=this.node(t,{kind:te.LIST_TYPE,type:n})}else i=this.parseNamedType();return this.expectOptionalToken(O.BANG)?this.node(t,{kind:te.NON_NULL_TYPE,type:i}):i}parseNamedType(){return this.node(this._lexer.token,{kind:te.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return this.node(t,{kind:te.SCHEMA_DEFINITION,description:i,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,i=this.parseOperationType();this.expectToken(O.COLON);const n=this.parseNamedType();return this.node(t,{kind:te.OPERATION_TYPE_DEFINITION,operation:i,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:te.SCALAR_TYPE_DEFINITION,description:i,name:n,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:te.OBJECT_TYPE_DEFINITION,description:i,name:n,interfaces:r,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(O.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,i=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:te.FIELD_DEFINITION,description:i,name:n,arguments:r,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(O.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:te.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:te.INTERFACE_TYPE_DEFINITION,description:i,name:n,interfaces:r,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:te.UNION_TYPE_DEFINITION,description:i,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:te.ENUM_TYPE_DEFINITION,description:i,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,i=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:te.ENUM_VALUE_DEFINITION,description:i,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw rn(this._lexer.source,this._lexer.token.start,`${qp(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:te.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===O.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const i=this.parseConstDirectives(),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:te.SCHEMA_EXTENSION,directives:i,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const i=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(t,{kind:te.SCALAR_TYPE_EXTENSION,name:i,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:te.OBJECT_TYPE_EXTENSION,name:i,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:te.INTERFACE_TYPE_EXTENSION,name:i,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:te.UNION_TYPE_EXTENSION,name:i,directives:n,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:te.ENUM_TYPE_EXTENSION,name:i,directives:n,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:te.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:n,fields:r})}parseDirectiveDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:te.DIRECTIVE_DEFINITION,description:i,name:n,arguments:r,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,i=this.parseName();if(Object.prototype.hasOwnProperty.call(vF,i.value))return i;throw this.unexpected(t)}node(t,i){return!0!==this._options.noLocation&&(i.loc=new JK(t,this._lexer.lastToken,this._lexer.source)),i}peek(t){return this._lexer.token.kind===t}expectToken(t){const i=this._lexer.token;if(i.kind===t)return this.advanceLexer(),i;throw rn(this._lexer.source,i.start,`Expected ${DF(t)}, found ${qp(i)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const i=this._lexer.token;if(i.kind!==O.NAME||i.value!==t)throw rn(this._lexer.source,i.start,`Expected "${t}", found ${qp(i)}.`);this.advanceLexer()}expectOptionalKeyword(t){const i=this._lexer.token;return i.kind===O.NAME&&i.value===t&&(this.advanceLexer(),!0)}unexpected(t){const i=t??this._lexer.token;return rn(this._lexer.source,i.start,`Unexpected ${qp(i)}.`)}any(t,i,n){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(n);)r.push(i.call(this));return r}optionalMany(t,i,n){if(this.expectOptionalToken(t)){const r=[];do{r.push(i.call(this))}while(!this.expectOptionalToken(n));return r}return[]}many(t,i,n){this.expectToken(t);const r=[];do{r.push(i.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(t,i){this.expectOptionalToken(t);const n=[];do{n.push(i.call(this))}while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,i=this._lexer.advance();if(void 0!==t&&i.kind!==O.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw rn(this._lexer.source,i.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function qp(e){const t=e.value;return DF(e.kind)+(null!=t?` "${t}"`:"")}function DF(e){return function YZ(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}(e)?`"${e}"`:e}var Gp=new Map,J0=new Map,EF=!0,Wp=!1;function SF(e){return e.replace(/[\s,]+/g," ").trim()}function uJ(e){var t=SF(e);if(!Gp.has(t)){var i=function aJ(e,t){return new $p(e,t).parseDocument()}(e,{experimentalFragmentVariables:Wp,allowLegacyFragmentVariables:Wp});if(!i||"Document"!==i.kind)throw new Error("Not a valid GraphQL document.");Gp.set(t,function dJ(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(r){var o=n[r];o&&"object"==typeof o&&t.add(o)})});var i=e.loc;return i&&(delete i.startToken,delete i.endToken),e}(function lJ(e){var t=new Set,i=[];return e.definitions.forEach(function(n){if("FragmentDefinition"===n.kind){var r=n.name.value,o=function cJ(e){return SF(e.source.body.substring(e.start,e.end))}(n.loc),s=J0.get(r);s&&!s.has(o)?EF&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||J0.set(r,s=new Set),s.add(o),t.has(o)||(t.add(o),i.push(n))}else i.push(n)}),k(k({},e),{definitions:i})}(i)))}return Gp.get(t)}function dc(e){for(var t=[],i=1;i(e().then(i=>{t.closed||(t.next(i),t.complete())},i=>{t.closed||t.error(i)}),()=>t.unsubscribe()))}(function(e){e.gql=Bd_gql,e.resetCaches=Bd_resetCaches,e.disableFragmentWarnings=Bd_disableFragmentWarnings,e.enableExperimentalFragmentVariables=Bd_enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Bd_disableExperimentalFragmentVariables})(dc||(dc={})),dc.default=dc;class _J{constructor(t){wt(this,"zone",void 0),wt(this,"now",Date.now?Date.now:()=>+new Date),this.zone=t}schedule(t,i=0,n){return this.zone.run(()=>vK.schedule(t,i,n))}}function TF(e){return e[jr]=()=>e,e}function MF(e,t){return e.pipe(Sm(new _J(t)))}function IF(e,t,i){return e&&typeof e[t]<"u"?e[t]:i}class vJ{constructor(t,i,n){wt(this,"obsQuery",void 0),wt(this,"valueChanges",void 0),wt(this,"queryId",void 0),this.obsQuery=t;const r=MF(Et(TF(this.obsQuery)),i);this.valueChanges=n.useInitialLoading?r.pipe(function bJ(e){return function(i){return new Me(function(r){const o=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:l,data:d}=o,{partialRefetch:u,fetchPolicy:h}=e.options,f=a||c;return u&&l&&(!d||0===Object.keys(d).length)&&"cache-only"!==h&&!s&&!f&&r.next({...o,loading:!0,networkStatus:rt.loading}),i.subscribe(r)})}}(this.obsQuery)):r,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(t){return this.obsQuery.refetch(t)}fetchMore(t){return this.obsQuery.fetchMore(t)}subscribeToMore(t){return this.obsQuery.subscribeToMore(t)}updateQuery(t){return this.obsQuery.updateQuery(t)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(t){return this.obsQuery.startPolling(t)}setOptions(t){return this.obsQuery.setOptions(t)}setVariables(t){return this.obsQuery.setVariables(t)}}const yJ=new M("APOLLO_FLAGS"),AF=new M("APOLLO_OPTIONS"),wJ=new M("APOLLO_NAMED_OPTIONS");class RF{constructor(t,i,n){wt(this,"ngZone",void 0),wt(this,"flags",void 0),wt(this,"_client",void 0),wt(this,"useInitialLoading",void 0),wt(this,"useMutationLoading",void 0),this.ngZone=t,this.flags=i,this._client=n,this.useInitialLoading=IF(i,"useInitialLoading",!1),this.useMutationLoading=IF(i,"useMutationLoading",!1)}watchQuery(t){return new vJ(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return kF(()=>this.ensureClient().query({...t}))}mutate(t){return function gJ(e,t){return t?e.pipe(nn({loading:!0}),Z(i=>({...i,loading:!!i.loading}))):e.pipe(Z(i=>({...i,loading:!1})))}(kF(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,i){const n=Et(TF(this.ensureClient().subscribe({...t})));return i&&!0!==i.useZone?n:MF(n,this.ngZone)}getClient(){return this.client}setClient(t){this.client=t}get client(){return this._client}set client(t){if(this._client)throw new Error("Client has been already defined");this._client=t}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let OF=(()=>{var e;class t extends RF{constructor(n,r,o,s){if(super(n,s),wt(this,"_ngZone",void 0),wt(this,"map",new Map),this._ngZone=n,r&&this.createDefault(r),o&&"object"==typeof o)for(let a in o)o.hasOwnProperty(a)&&this.create(o[a],a)}create(n,r){ew(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return ew(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new mF(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new RF(this._ngZone,this.flags,new mF(r)))}removeClient(n){ew(n)?this._client=void 0:this.map.delete(n)}}return e=t,wt(t,"\u0275fac",function(n){return new(n||e)(E(G),E(AF,8),E(wJ,8),E(yJ,8))}),wt(t,"\u0275prov",V({token:e,factory:e.\u0275fac})),t})();function ew(e){return!e||"default"===e}const xJ=[OF];let CJ=(()=>{var e;class t{}return e=t,wt(t,"\u0275fac",function(n){return new(n||e)}),wt(t,"\u0275mod",le({type:e})),wt(t,"\u0275inj",ae({providers:xJ})),t})();const $i=function DJ(e,...t){return dc(e,...t)},MJ=$i` + fragment TorrentContentSearchResult on TorrentContentSearchResult { + items { + ...TorrentContent + } + totalCount + totalCountIsEstimate + hasNextPage + aggregations { + contentType { + value + label + count + isEstimate + } + torrentSource { + value + label + count + isEstimate + } + torrentTag { + value + label + count + isEstimate + } + torrentFileType { + value + label + count + isEstimate + } + language { + value + label + count + isEstimate + } + genre { + value + label + count + isEstimate + } + releaseYear { + value + label + count + isEstimate + } + videoResolution { + value + label + count + isEstimate + } + videoSource { + value + label + count + isEstimate + } + } +} + ${$i` + fragment TorrentContent on TorrentContent { + id + infoHash + contentType + title + torrent { + ...Torrent + } + content { + ...Content + } + languages { + id + name + } + episodes { + label + seasons { + season + episodes + } + } + video3d + videoCodec + videoModifier + videoResolution + videoSource + createdAt + updatedAt +} + ${$i` + fragment Torrent on Torrent { + infoHash + name + size + private + filesStatus + hasFilesInfo + singleFile + fileType + files { + ...TorrentFile + } + sources { + key + name + } + seeders + leechers + tagNames + magnetUri + createdAt + updatedAt +} + ${$i` + fragment TorrentFile on TorrentFile { + infoHash + index + path + size + fileType + createdAt + updatedAt +} + `}`} +${$i` + fragment Content on Content { + type + source + id + metadataSource { + key + name + } + title + releaseDate + releaseYear + overview + runtime + voteAverage + voteCount + originalLanguage { + id + name + } + attributes { + metadataSource { + key + name + } + source + key + value + createdAt + updatedAt + } + collections { + metadataSource { + key + name + } + type + source + id + name + createdAt + updatedAt + } + externalLinks { + metadataSource { + key + name + } + url + } + createdAt + updatedAt +} + `}`}`,IJ=$i` + mutation TorrentDelete($infoHashes: [Hash20!]!) { + torrent { + delete(infoHashes: $infoHashes) + } +} + `,AJ=$i` + mutation TorrentDeleteTags($infoHashes: [Hash20!], $tagNames: [String!]) { + torrent { + deleteTags(infoHashes: $infoHashes, tagNames: $tagNames) + } +} + `,RJ=$i` + mutation TorrentPutTags($infoHashes: [Hash20!]!, $tagNames: [String!]!) { + torrent { + putTags(infoHashes: $infoHashes, tagNames: $tagNames) + } +} + `,OJ=$i` + mutation TorrentSetTags($infoHashes: [Hash20!]!, $tagNames: [String!]!) { + torrent { + setTags(infoHashes: $infoHashes, tagNames: $tagNames) + } +} + `,FJ=$i` + query TorrentContentSearch($query: SearchQueryInput, $facets: TorrentContentFacetsInput) { + torrentContent { + search(query: $query, facets: $facets) { + ...TorrentContentSearchResult + } + } +} + ${MJ}`,PJ=$i` + query TorrentSuggestTags($query: SuggestTagsQueryInput!) { + torrent { + suggestTags(query: $query) { + suggestions { + name + count + } + } + } +} + `;let FF=(()=>{var e;class t{constructor(n){this.apollo=n}torrentContentSearch(n){return this.apollo.query({query:FJ,variables:n,fetchPolicy:uc}).pipe(Z(r=>r.data.torrentContent.search))}torrentDelete(n){return this.apollo.mutate({mutation:IJ,variables:n,fetchPolicy:uc}).pipe(Z(()=>{}))}torrentPutTags(n){return this.apollo.mutate({mutation:RJ,variables:n,fetchPolicy:uc}).pipe(Z(()=>{}))}torrentSetTags(n){return this.apollo.mutate({mutation:OJ,variables:n,fetchPolicy:uc}).pipe(Z(()=>{}))}torrentDeleteTags(n){return this.apollo.mutate({mutation:AJ,variables:n,fetchPolicy:uc}).pipe(Z(()=>{}))}torrentSuggestTags(n){return this.apollo.query({query:PJ,variables:n,fetchPolicy:uc}).pipe(Z(r=>r.data.torrent.suggestTags))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(OF))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const uc="no-cache";function NJ(e,t){if(1&e){const i=Pt();y(0,"div",2)(1,"button",3),$("click",function(){return Ge(i),We(B().action())}),R(2),w()()}if(2&e){const i=B();x(2),Ue(" ",i.data.action," ")}}const LJ=["label"];function BJ(e,t){}const VJ=Math.pow(2,31)-1;class tw{constructor(t,i){this._overlayRef=i,this._afterDismissed=new Y,this._afterOpened=new Y,this._onAction=new Y,this._dismissedByAction=!1,this.containerInstance=t,t._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(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,VJ))}_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 PF=new M("MatSnackBarData");class Qp{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let jJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),HJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),zJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),UJ=(()=>{var e;class t{constructor(n,r){this.snackBarRef=n,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(e=t).\u0275fac=function(n){return new(n||e)(p(tw),p(PF))},e.\u0275cmp=fe({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){1&n&&(y(0,"div",0),R(1),w(),A(2,NJ,3,1,"div",1)),2&n&&(x(1),Ue(" ",r.data.message,"\n"),x(1),D("ngIf",r.hasAction))},dependencies:[_i,_1,jJ,HJ,zJ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const $J={snackBarState:ni("state",[qt("void, hidden",je({transform:"scale(0.8)",opacity:0})),qt("visible",je({transform:"scale(1)",opacity:1})),Bt("* => visible",Lt("150ms cubic-bezier(0, 0, 0.2, 1)")),Bt("* => void, * => hidden",Lt("75ms cubic-bezier(0.4, 0.0, 1, 1)",je({opacity:0})))])};let qJ=0,GJ=(()=>{var e;class t extends Jv{constructor(n,r,o,s,a){super(),this._ngZone=n,this._elementRef=r,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=j(he),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Y,this._onExit=new Y,this._onEnter=new Y,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+qJ++,this.attachDomPortal=c=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();const r=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),r}attachTemplatePortal(n){this._assertNotAttached();const r=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),r}onAnimationEnd(n){const{fromState:r,toState:o}=n;if(("void"===o&&"void"!==r||"hidden"===o)&&this._completeExit(),"visible"===o){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Xe(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const n=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(o=>n.classList.add(o)):n.classList.add(r)),this._exposeToModals()}_exposeToModals(){const n=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{const r=n.getAttribute("aria-owns");if(r){const o=r.replace(this._liveElementId,"").trim();o.length>0?n.setAttribute("aria-owns",o):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(o=document.activeElement),n.removeAttribute("aria-hidden"),r.appendChild(n),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(G),p(W),p(Fe),p(nt),p(Qp))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(La,7),2&n){let o;H(o=z())&&(r._portalOutlet=o.first)}},features:[P]}),t})(),WJ=(()=>{var e;class t extends GJ{_afterPortalAttached(){super._afterPortalAttached();const n=this._label.nativeElement,r="mdc-snackbar__label";n.classList.toggle(r,!n.querySelector(`.${r}`))}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(1&n&&ke(LJ,7),2&n){let o;H(o=z())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(n,r){1&n&&gh("@state.done",function(s){return r.onAnimationEnd(s)}),2&n&&yh("@state",r._animationState)},features:[P],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){1&n&&(y(0,"div",0)(1,"div",1,2)(3,"div",3),A(4,BJ,0,0,"ng-template",4),w(),ie(5,"div"),w()()),2&n&&(x(5),de("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[La],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;--mdc-snackbar-container-shape:4px;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-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;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:[$J.snackBarState]}}),t})(),NF=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ed,qf,vn,jf,ve,ve]}),t})();const LF=new M("mat-snack-bar-default-options",{providedIn:"root",factory:function QJ(){return new Qp}});let YJ=(()=>{var e;class t{get _openedSnackBarRef(){const n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,r,o,s,a,c){this._overlay=n,this._live=r,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}openFromComponent(n,r){return this._attach(n,r)}openFromTemplate(n,r){return this._attach(n,r)}open(n,r="",o){const s={...this._defaultConfig,...o};return s.data={message:n,action:r},s.announcementMessage===n&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,r){const s=jt.create({parent:r&&r.viewContainerRef&&r.viewContainerRef.injector||this._injector,providers:[{provide:Qp,useValue:r}]}),a=new $f(this.snackBarContainerComponent,r.viewContainerRef,s),c=n.attach(a);return c.instance.snackBarConfig=r,c.instance}_attach(n,r){const o={...new Qp,...this._defaultConfig,...r},s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new tw(a,s);if(n instanceof ct){const l=new co(n,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{const l=this._createInjector(o,c),d=new $f(n,void 0,l),u=a.attachComponentPortal(d);c.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ce(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(n,r){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),r.duration&&r.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(r.duration))}_createOverlay(n){const r=new Jl;r.direction=n.direction;let o=this._overlay.position().global();const s="rtl"===n.direction,a="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!s||"end"===n.horizontalPosition&&s,c=!a&&"center"!==n.horizontalPosition;return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),"top"===n.verticalPosition?o.top("0"):o.bottom("0"),r.positionStrategy=o,this._overlay.create(r)}_createInjector(n,r){return jt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:tw,useValue:r},{provide:PF,useValue:n.data}]})}}return(e=t).\u0275fac=function(n){return new(n||e)(E(wi),E(Lv),E(jt),E(Iv),E(e,12),E(LF))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),KJ=(()=>{var e;class t extends YJ{constructor(n,r,o,s,a,c){super(n,r,o,s,a,c),this.simpleSnackBarComponent=UJ,this.snackBarContainerComponent=WJ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return(e=t).\u0275fac=function(n){return new(n||e)(E(wi),E(Lv),E(jt),E(Iv),E(e,12),E(LF))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:NF}),t})(),BF=(()=>{var e;class t{constructor(n){this.snackBar=n,this.expiry=1e4}addError(n,r=this.expiry){this.snackBar.open(n,"Dismiss",{duration:r,panelClass:["snack-bar-error"]})}}return(e=t).\u0275fac=function(n){return new(n||e)(E(KJ))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class XJ{constructor(t,i){this._document=i;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){const t=this._textarea;let i=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),i=this._document.execCommand("copy"),n&&n.focus()}}catch{}return i}destroy(){const t=this._textarea;t&&(t.remove(),this._textarea=void 0)}}let ZJ=(()=>{var e;class t{constructor(n){this._document=n}copy(n){const r=this.beginCopy(n),o=r.copy();return r.destroy(),o}beginCopy(n){return new XJ(n,this._document)}}return(e=t).\u0275fac=function(n){return new(n||e)(E(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const JJ=new M("CDK_COPY_TO_CLIPBOARD_CONFIG");let eee=(()=>{var e;class t{constructor(n,r,o){this._clipboard=n,this._ngZone=r,this.text="",this.attempts=1,this.copied=new U,this._pending=new Set,o&&null!=o.attempts&&(this.attempts=o.attempts)}copy(n=this.attempts){if(n>1){let r=n;const o=this._clipboard.beginCopy(this.text);this._pending.add(o);const s=()=>{const a=o.copy();a||! --r||this._destroyed?(this._currentTimeout=null,this._pending.delete(o),o.destroy(),this.copied.emit(a)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(s,1))};s()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(n=>n.destroy()),this._pending.clear(),this._destroyed=!0}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ZJ),p(G),p(JJ,8))},e.\u0275dir=T({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(n,r){1&n&&$("click",function(){return r.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),tee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();class nee extends Y{constructor(t=1/0,i=1/0,n=Sv){super(),this._bufferSize=t,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,i)}next(t){const{isStopped:i,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;i||(n.push(t),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const i=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;sthis._resizeSubject.next(i)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Me(i=>{const n=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(Ve(i=>i.some(n=>n.target===t)),function iee(e,t,i){let n,r=!1;return e&&"object"==typeof e?({bufferSize:n=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:i}=e):n=e??1/0,iu({connector:()=>new nee(n,t,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),ce(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let oee=(()=>{var e;class t{constructor(){this._observers=new Map,this._ngZone=j(G)}ngOnDestroy(){for(const[,n]of this._observers)n.destroy();this._observers.clear()}observe(n,r){const o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new ree(o)),this._observers.get(o).observe(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const see=["notch"],aee=["matFormFieldNotchedOutline",""],cee=["*"],lee=["textField"],dee=["iconPrefixContainer"],uee=["textPrefixContainer"];function hee(e,t){1&e&&ie(0,"span",19)}function fee(e,t){if(1&e&&(y(0,"label",17),X(1,1),A(2,hee,1,0,"span",18),w()),2&e){const i=B(2);D("floating",i._shouldLabelFloat())("monitorResize",i._hasOutline())("id",i._labelId),de("for",i._control.id),x(2),D("ngIf",!i.hideRequiredMarker&&i._control.required)}}function pee(e,t){1&e&&A(0,fee,3,5,"label",16),2&e&&D("ngIf",B()._hasFloatingLabel())}function mee(e,t){1&e&&ie(0,"div",20)}function gee(e,t){}function _ee(e,t){1&e&&A(0,gee,0,0,"ng-template",22),2&e&&(B(2),D("ngTemplateOutlet",un(1)))}function bee(e,t){if(1&e&&(y(0,"div",21),A(1,_ee,1,1,"ng-template",9),w()),2&e){const i=B();D("matFormFieldNotchedOutlineOpen",i._shouldLabelFloat()),x(1),D("ngIf",!i._forceDisplayInfixLabel())}}function vee(e,t){1&e&&(y(0,"div",23,24),X(2,2),w())}function yee(e,t){1&e&&(y(0,"div",25,26),X(2,3),w())}function wee(e,t){}function xee(e,t){1&e&&A(0,wee,0,0,"ng-template",22),2&e&&(B(),D("ngTemplateOutlet",un(1)))}function Cee(e,t){1&e&&(y(0,"div",27),X(1,4),w())}function Dee(e,t){1&e&&(y(0,"div",28),X(1,5),w())}function Eee(e,t){1&e&&ie(0,"div",29)}function See(e,t){1&e&&(y(0,"div",30),X(1,6),w()),2&e&&D("@transitionMessages",B()._subscriptAnimationState)}function kee(e,t){if(1&e&&(y(0,"mat-hint",34),R(1),w()),2&e){const i=B(2);D("id",i._hintLabelId),x(1),bt(i.hintLabel)}}function Tee(e,t){if(1&e&&(y(0,"div",31),A(1,kee,2,2,"mat-hint",32),X(2,7),ie(3,"div",33),X(4,8),w()),2&e){const i=B();D("@transitionMessages",i._subscriptAnimationState),x(1),D("ngIf",i.hintLabel)}}const Mee=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Iee=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let nw=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-label"]]}),t})();const Aee=new M("MatError");let Ree=0,VF=(()=>{var e;class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ree++}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){2&n&&(pi("id",r.id),de("align",null),se("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"}}),t})();const Oee=new M("MatPrefix"),jF=new M("MatSuffix");let Fee=(()=>{var e;class t{constructor(){this._isText=!1}set _isTextSelector(n){this._isText=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[J([{provide:jF,useExisting:e}])]}),t})();const HF=new M("FloatingLabelParent");let zF=(()=>{var e;class t{get floating(){return this._floating}set floating(n){this._floating=n,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(n){this._monitorResize=n,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(n){this._elementRef=n,this._floating=!1,this._monitorResize=!1,this._resizeObserver=j(oee),this._ngZone=j(G),this._parent=j(HF),this._resizeSubscription=new Ae}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Pee(e){if(null!==e.offsetParent)return e.scrollWidth;const i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);const n=i.scrollWidth;return i.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W))},e.\u0275dir=T({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){2&n&&se("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}}),t})();const UF="mdc-line-ripple--active",Yp="mdc-line-ripple--deactivating";let $F=(()=>{var e;class t{constructor(n,r){this._elementRef=n,this._handleTransitionEnd=o=>{const s=this._elementRef.nativeElement.classList,a=s.contains(Yp);"opacity"===o.propertyName&&a&&s.remove(UF,Yp)},r.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const n=this._elementRef.nativeElement.classList;n.remove(Yp),n.add(UF)}deactivate(){this._elementRef.nativeElement.classList.add(Yp)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(G))},e.\u0275dir=T({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),qF=(()=>{var e;class t{constructor(n,r){this._elementRef=n,this._ngZone=r,this.open=!1}ngAfterViewInit(){const n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){this._notch.nativeElement.style.width=this.open&&n?`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(G))},e.\u0275cmp=fe({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(1&n&&ke(see,5),2&n){let o;H(o=z())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){2&n&&se("mdc-notched-outline--notched",r.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:aee,ngContentSelectors:cee,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(n,r){1&n&&(ze(),ie(0,"div",0),y(1,"div",1,2),X(3),w(),ie(4,"div",3))},encapsulation:2,changeDetection:0}),t})();const Nee={transitionMessages:ni("transitionMessages",[qt("enter",je({opacity:1,transform:"translateY(0%)"})),Bt("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),Lt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Kp=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e}),t})();const Vd=new M("MatFormField"),Lee=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS");let GF=0,YF=(()=>{var e;class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=Q(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){const r=this._appearance;this._appearance=n||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(n){this._hintLabel=n,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(n){this._explicitFormFieldControl=n}constructor(n,r,o,s,a,c,l,d){this._elementRef=n,this._changeDetectorRef=r,this._ngZone=o,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+GF++,this._hintLabelId="mat-mdc-hint-"+GF++,this._subscriptAnimationState="",this._destroyed=new Y,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const n=this._control;n.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${n.controlType}`),n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),n.ngControl&&n.ngControl.valueChanges&&n.ngControl.valueChanges.pipe(ce(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(n=>!n._isText),this._hasTextPrefix=!!this._prefixChildren.find(n=>n._isText),this._hasIconSuffix=!!this._suffixChildren.find(n=>!n._isText),this._hasTextSuffix=!!this._suffixChildren.find(n=>n._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Rt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ce(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(ce(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(n){const r=this._control?this._control.ngControl:null;return r&&r[n]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&n.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const r=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,o=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;r?n.push(r.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const n=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(n.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0;n.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${s+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const n=this._elementRef.nativeElement;if(n.getRootNode){const r=n.getRootNode();return r&&r!==n}return document.documentElement.contains(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(G),p(hn),p(nt),p(Lee,8),p(_t,8),p(he))},e.\u0275cmp=fe({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,nw,5),Ee(o,nw,7),Ee(o,Kp,5),Ee(o,Oee,5),Ee(o,jF,5),Ee(o,Aee,5),Ee(o,VF,5)),2&n){let s;H(s=z())&&(r._labelChildNonStatic=s.first),H(s=z())&&(r._labelChildStatic=s.first),H(s=z())&&(r._formFieldControl=s.first),H(s=z())&&(r._prefixChildren=s),H(s=z())&&(r._suffixChildren=s),H(s=z())&&(r._errorChildren=s),H(s=z())&&(r._hintChildren=s)}},viewQuery:function(n,r){if(1&n&&(ke(lee,5),ke(dee,5),ke(uee,5),ke(zF,5),ke(qF,5),ke($F,5)),2&n){let o;H(o=z())&&(r._textField=o.first),H(o=z())&&(r._iconPrefixContainer=o.first),H(o=z())&&(r._textPrefixContainer=o.first),H(o=z())&&(r._floatingLabel=o.first),H(o=z())&&(r._notchedOutline=o.first),H(o=z())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){2&n&&se("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[J([{provide:Vd,useExisting:e},{provide:HF,useExisting:e}])],ngContentSelectors:Iee,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(n,r){1&n&&(ze(Mee),A(0,pee,1,1,"ng-template",null,0,kh),y(2,"div",1,2),$("click",function(s){return r._control.onContainerClick(s)}),A(4,mee,1,0,"div",3),y(5,"div",4),A(6,bee,2,2,"div",5),A(7,vee,3,0,"div",6),A(8,yee,3,0,"div",7),y(9,"div",8),A(10,xee,1,1,"ng-template",9),X(11),w(),A(12,Cee,2,0,"div",10),A(13,Dee,2,0,"div",11),w(),A(14,Eee,1,0,"div",12),w(),y(15,"div",13),A(16,See,2,1,"div",14),A(17,Tee,5,2,"div",15),w()),2&n&&(x(2),se("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),x(2),D("ngIf",!r._hasOutline()&&!r._control.disabled),x(2),D("ngIf",r._hasOutline()),x(1),D("ngIf",r._hasIconPrefix),x(1),D("ngIf",r._hasTextPrefix),x(2),D("ngIf",!r._hasOutline()||r._forceDisplayInfixLabel()),x(2),D("ngIf",r._hasTextSuffix),x(1),D("ngIf",r._hasIconSuffix),x(1),D("ngIf",!r._hasOutline()),x(1),se("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),D("ngSwitch",r._getDisplayedMessages()),x(1),D("ngSwitchCase","error"),x(1),D("ngSwitchCase","hint"))},dependencies:[_i,YT,Sa,Qh,VF,zF,qF,$F],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Nee.transitionMessages]},changeDetection:0}),t})(),jd=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,vn,Tv,ve]}),t})();const jee=["panel"];function Hee(e,t){if(1&e){const i=Pt();y(0,"div",0,1),$("@panelAnimation.done",function(r){return Ge(i),We(B()._animationDone.next(r))}),X(2),w()}if(2&e){const i=t.id,n=B();D("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),de("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}const zee=["*"],Uee=ni("panelAnimation",[qt("void, hidden",je({opacity:0,transform:"scaleY(0.8)"})),Bt(":enter, hidden => visible",[Y$([Lt("0.03s linear",je({opacity:1})),Lt("0.12s cubic-bezier(0, 0, 0.2, 1)",je({transform:"scaleY(1)"}))])]),Bt(":leave, visible => hidden",[Lt("0.075s linear",je({opacity:0}))])]);let $ee=0;class qee{constructor(t,i){this.source=t,this.option=i}}const Gee=so(class{}),KF=new M("mat-autocomplete-default-options",{providedIn:"root",factory:function Wee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Qee=(()=>{var e;class t extends Gee{get isOpen(){return this._isOpen&&this.showPanel}_setColor(n){this._color=n,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(n){this._autoActiveFirstOption=Q(n)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(n){this._autoSelectActiveOption=Q(n)}get requireSelection(){return this._requireSelection}set requireSelection(n){this._requireSelection=Q(n)}set classList(n){this._classList=n&&n.length?function h7(e,t=/\s+/){const i=[];if(null!=e){const n=Array.isArray(e)?e:`${e}`.split(t);for(const r of n){const o=`${r}`.trim();o&&i.push(o)}}return i}(n).reduce((r,o)=>(r[o]=!0,r),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(n,r,o,s){super(),this._changeDetectorRef=n,this._elementRef=r,this._defaults=o,this._activeOptionChanges=Ae.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new U,this.opened=new U,this.closed=new U,this.optionActivated=new U,this._classList={},this.id="mat-autocomplete-"+$ee++,this.inertGroups=s?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption,this._requireSelection=!!o.requireSelection}ngAfterContentInit(){this._keyManager=new LI(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(n=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[n]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(n){this.panel&&(this.panel.nativeElement.scrollTop=n)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(n){const r=new qee(this,n);this.optionSelected.emit(r)}_getPanelAriaLabelledby(n){return this.ariaLabel?null:this.ariaLabelledby?(n?n+" ":"")+this.ariaLabelledby:n}_setVisibilityClasses(n){n[this._visibleClass]=this.showPanel,n[this._hiddenClass]=!this.showPanel}_setThemeClasses(n){n["mat-primary"]="primary"===this._color,n["mat-warn"]="warn"===this._color,n["mat-accent"]="accent"===this._color}_skipPredicate(n){return n.disabled}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe),p(W),p(KF),p(nt))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&(ke(ct,7),ke(jee,5)),2&n){let o;H(o=z())&&(r.template=o.first),H(o=z())&&(r.panel=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[P]}),t})(),Yee=(()=>{var e;class t extends Qee{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new U,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=Q(n),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const n of this.options)n._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(n){return!1}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,Hv,5),Ee(o,Nf,5)),2&n){let s;H(s=z())&&(r.optionGroups=s),H(s=z())&&(r.options=s)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[J([{provide:jv,useExisting:e}]),P],ngContentSelectors:zee,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(n,r){1&n&&(ze(),A(0,Hee,3,5,"ng-template"))},dependencies:[Ea],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Uee]},changeDetection:0}),t})();const Kee={provide:Gn,useExisting:He(()=>ZF),multi:!0},XF=new M("mat-autocomplete-scroll-strategy"),Zee={provide:XF,deps:[wi],useFactory:function Xee(e){return()=>e.scrollStrategies.reposition()}};let Jee=(()=>{var e;class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(n){this._autocompleteDisabled=Q(n)}constructor(n,r,o,s,a,c,l,d,u,h,f){this._element=n,this._overlay=r,this._viewContainerRef=o,this._zone=s,this._changeDetectorRef=a,this._dir=l,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ae.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Y,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Kf(()=>{const m=this.autocomplete?this.autocomplete.options:null;return m?m.changes.pipe(nn(m),Vt(()=>Rt(...m.map(g=>g.onSelectionChange)))):this._zone.onStable.pipe(Xe(1),Vt(()=>this.optionSelections))}),this._handlePanelKeydown=m=>{(27===m.keyCode&&!An(m)||38===m.keyCode&&An(m,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),m.stopPropagation(),m.preventDefault())},this._trackedModal=null,this._scrollStrategy=c}ngAfterViewInit(){const n=this._getWindow();typeof n<"u"&&this._zone.runOutsideAngular(()=>n.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const n=this._getWindow();typeof n<"u"&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Rt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ve(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ve(()=>this._overlayAttached)):re()).pipe(Z(n=>n instanceof t1?n:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Rt(Vi(this._document,"click"),Vi(this._document,"auxclick"),Vi(this._document,"touchend")).pipe(Ve(n=>{const r=Ir(n),o=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&r!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(r))&&(!s||!s.contains(r))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(r)}))}writeValue(n){Promise.resolve(null).then(()=>this._assignOptionValue(n))}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this._element.nativeElement.disabled=n}_handleKeydown(n){const r=n.keyCode,o=An(n);if(27===r&&!o&&n.preventDefault(),this.activeOption&&13===r&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,a=38===r||40===r;9===r||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(n){let r=n.target,o=r.value;"number"===r.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),o||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(n=!1){this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Rt(this._zone.onStable.pipe(Xe(1)),this.autocomplete.options.changes.pipe(it(()=>this._positionStrategy.reapplyLastPosition()),Xv(0))).pipe(Vt(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),Xe(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this._valueOnOpen=this._element.nativeElement.value,this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(n){const r=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n;this._updateNativeInputValue(r??"")}_updateNativeInputValue(n){this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(n){const r=this.autocomplete,o=n?n.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),r._emitSelectEvent(o),this._element.nativeElement.focus()):r.requireSelection&&this._element.nativeElement.value!==this._valueOnOpen&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),r._animationDone?r._animationDone.pipe(Xe(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(n,r){this.autocomplete?.options?.forEach(o=>{o!==n&&o.selected&&o.deselect(r)})}_attachOverlay(){let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new co(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const n=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=n.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=n.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Jl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}_setStrategyPositions(n){const r=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?s:"below"===this.position?r:[...r,...s],n.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const n=this.autocomplete;if(n.autoActiveFirstOption){let r=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!n)return;const r=this.autocomplete.id;this._trackedModal&&ql(this._trackedModal,"aria-owns",r),Av(n,"aria-owns",r),this._trackedModal=n}_clearFromModal(){this._trackedModal&&(ql(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(wi),p(pt),p(G),p(Fe),p(XF),p(hn,8),p(Vd,9),p(he,8),p(Rr),p(KF,8))},e.\u0275dir=T({type:e,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kt]}),t})(),ZF=(()=>{var e;class t extends Jee{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,r){1&n&&$("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(s){return r._handleInput(s)})("keydown",function(s){return r._handleKeydown(s)})("click",function(){return r._handleClick()}),2&n&&de("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||null==r.autocomplete?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[J([Kee]),P]}),t})(),ete=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[Zee],imports:[ed,Yl,ve,vn,lo,Yl,ve]}),t})();const tte=["*"],ste=new M("MAT_CARD_CONFIG");let JF=(()=>{var e;class t{constructor(n){this.appearance=n?.appearance||"raised"}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ste,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,r){2&n&&se("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:tte,decls:1,vars:0,template:function(n,r){1&n&&(ze(),X(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{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;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),t})(),eP=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),t})(),tP=(()=>{var e;class t{constructor(){this.align="start"}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-mdc-card-actions-align-end","end"===r.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),dte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,vn,ve]}),t})();const ute=["input"],hte=["label"],fte=["*"],pte=new M("mat-checkbox-default-options",{providedIn:"root",factory:nP});function nP(){return{color:"accent",clickAction:"check-indeterminate"}}const mte={provide:Gn,useExisting:He(()=>rP),multi:!0};class gte{}let _te=0;const iP=nP(),bte=ns(ts(so(es(class{constructor(e){this._elementRef=e}}))));let vte=(()=>{var e;class t extends bte{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(n){this._required=Q(n)}constructor(n,r,o,s,a,c,l){super(r),this._changeDetectorRef=o,this._ngZone=s,this._animationMode=c,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new U,this.indeterminateChange=new U,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||iP,this.color=this.defaultColor=this._options.color||iP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${n}${++_te}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(n){const r=Q(n);r!=this.checked&&(this._checked=r,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(n){const r=Q(n);r!==this.disabled&&(this._disabled=r,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(n){const r=n!=this._indeterminate;this._indeterminate=Q(n),r&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(n){this.checked=!!n}registerOnChange(n){this._controlValueAccessorChangeFn=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n}_transitionCheckState(n){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(r!==n&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,n),this._currentCheckState=n,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const n=this._options?.clickAction;this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(n){n.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(n,r){if("NoopAnimations"===this._animationMode)return"";switch(n){case 0:if(1===r)return this._animationClasses.uncheckedToChecked;if(3==r)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===r?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===r?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===r?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(n){const r=this._inputElement;r&&(r.nativeElement.indeterminate=n)}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&(ke(ute,5),ke(hte,5),ke(ao,5)),2&n){let o;H(o=z())&&(r._inputElement=o.first),H(o=z())&&(r._labelElement=o.first),H(o=z())&&(r.ripple=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[P]}),t})(),rP=(()=>{var e;class t extends vte{constructor(n,r,o,s,a,c){super("mat-mdc-checkbox-",n,r,o,s,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(n){const r=new gte;return r.source=this,r.checked=n,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(n){n.target&&this._labelElement.nativeElement.contains(n.target)&&n.stopPropagation()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(G),ui("tabindex"),p(_t,8),p(pte,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(n,r){2&n&&(pi("id",r.id),de("tabindex",null)("aria-label",null)("aria-labelledby",null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[J([mte]),P],ngContentSelectors:fte,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(n,r){if(1&n&&(ze(),y(0,"div",0),$("click",function(s){return r._preventBubblingFromLabel(s)}),y(1,"div",1,2)(3,"div",3),$("click",function(){return r._onTouchTargetClick()}),w(),y(4,"input",4,5),$("blur",function(){return r._onBlur()})("click",function(){return r._onInputClick()})("change",function(s){return r._onInteractionEvent(s)}),w(),ie(6,"div",6),y(7,"div",7),zs(),y(8,"svg",8),ie(9,"path",9),w(),sg(),ie(10,"div",10),w(),ie(11,"div",11),w(),y(12,"label",12,13),X(14),w()()),2&n){const o=un(2);se("mdc-form-field--align-end","before"==r.labelPosition),x(4),se("mdc-checkbox--selected",r.checked),D("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.tabIndex),de("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("name",r.name)("value",r.value),x(7),D("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),x(1),D("for",r.inputId)}},dependencies:[ao],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__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%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__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-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),oP=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})(),xte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,is,oP,ve,oP]}),t})();function Cte(e,t){1&e&&(y(0,"span",7),X(1,1),w())}function Dte(e,t){1&e&&(y(0,"span",8),X(1,2),w())}const sP=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],aP=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function kte(e,t){1&e&&(Ht(0),ie(1,"span",8),zt())}function Tte(e,t){1&e&&(y(0,"span",9),X(1),w())}function Mte(e,t){1&e&&(Ht(0),X(1,1),zt())}function Ite(e,t){1&e&&X(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function Ate(e,t){1&e&&ie(0,"span",12)}function Rte(e,t){if(1&e&&(Ht(0),A(1,Ite,1,0,"ng-content",10),A(2,Ate,1,0,"ng-template",null,11,kh),zt()),2&e){const i=un(3),n=B();x(1),D("ngIf",n.contentEditInput)("ngIfElse",i)}}function Ote(e,t){1&e&&(y(0,"span",13),X(1,3),w())}const Fte=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Pte=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],iw=["*"],Xp=new M("mat-chips-default-options"),rw=new M("MatChipAvatar"),ow=new M("MatChipTrailingIcon"),sw=new M("MatChipRemove"),Zp=new M("MatChip");class Nte{}const Lte=ns(Nte,-1);let hc=(()=>{var e;class t extends Lte{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(n){this._disabled=Q(n)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(n,r){super(),this._elementRef=n,this._parentChip=r,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(n){!this.disabled&&this.isInteractive&&this._isPrimary&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Zp))},e.\u0275dir=T({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,r){1&n&&$("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(de("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),se("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[P]}),t})(),dP=(()=>{var e;class t extends hc{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(n){this.disabled||(n.stopPropagation(),n.preventDefault(),this._parentChip.remove())}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!this.disabled&&(n.stopPropagation(),n.preventDefault(),this._parentChip.remove())}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,r){2&n&&de("aria-hidden",null)},features:[J([{provide:sw,useExisting:e}]),P]}),t})(),jte=0;const Hte=ns(ts(so(es(class{constructor(e){this._elementRef=e}})),"primary"),-1);let vs=(()=>{var e;class t extends Hte{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(n){this._value=n}get removable(){return this._removable}set removable(n){this._removable=Q(n)}get highlighted(){return this._highlighted}set highlighted(n){this._highlighted=Q(n)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}constructor(n,r,o,s,a,c,l,d){super(r),this._changeDetectorRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=l,this._onFocus=new Y,this._onBlur=new Y,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+jte++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new U,this.destroyed=new U,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=j(c1),this._document=a,this._animationsDisabled="NoopAnimations"===c,null!=d&&(this.tabIndex=parseInt(d)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const n=this._elementRef.nativeElement;this._isBasicChip=n.hasAttribute(this.basicChipAttrName)||n.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Rt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(n){(8===n.keyCode||46===n.keyCode)&&(n.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(n){return this._getActions().find(r=>{const o=r._elementRef.nativeElement;return o===n||o.contains(n)})}_getActions(){const n=[];return this.primaryAction&&n.push(this.primaryAction),this.removeIcon&&n.push(this.removeIcon),this.trailingIcon&&n.push(this.trailingIcon),n}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{const r=null!==n;r!==this._hasFocusInternal&&(this._hasFocusInternal=r,r?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe),p(W),p(G),p(ar),p(he),p(_t,8),p(Pf,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,rw,5),Ee(o,ow,5),Ee(o,sw,5),Ee(o,rw,5),Ee(o,ow,5),Ee(o,sw,5)),2&n){let s;H(s=z())&&(r.leadingIcon=s.first),H(s=z())&&(r.trailingIcon=s.first),H(s=z())&&(r.removeIcon=s.first),H(s=z())&&(r._allLeadingIcons=s),H(s=z())&&(r._allTrailingIcons=s),H(s=z())&&(r._allRemoveIcons=s)}},viewQuery:function(n,r){if(1&n&&ke(hc,5),2&n){let o;H(o=z())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._handleKeydown(s)}),2&n&&(pi("id",r.id),de("role",r.role)("tabindex",r.role?r.tabIndex:null)("aria-label",r.ariaLabel),se("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[J([{provide:Zp,useExisting:e}]),P],ngContentSelectors:aP,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(ze(sP),ie(0,"span",0),y(1,"span",1)(2,"span",2),A(3,Cte,2,0,"span",3),y(4,"span",4),X(5),ie(6,"span",5),w()()(),A(7,Dte,2,0,"span",6)),2&n&&(x(2),D("isInteractive",!1),x(1),D("ngIf",r.leadingIcon),x(4),D("ngIf",r._hasTrailingIcon()))},dependencies:[_i,hc],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),Jp=(()=>{var e;class t{constructor(n,r){this._elementRef=n,this._document=r}initialize(n){this.getNativeElement().focus(),this.setValue(n)}getNativeElement(){return this._elementRef.nativeElement}setValue(n){this.getNativeElement().textContent=n,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const n=this._document.createRange();n.selectNodeContents(this.getNativeElement()),n.collapse(!1);const r=window.getSelection();r.removeAllRanges(),r.addRange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(he))},e.\u0275dir=T({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),t})(),aw=(()=>{var e;class t extends vs{constructor(n,r,o,s,a,c,l,d){super(n,r,o,s,a,c,l,d),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new U,this._isEditing=!1,this.role="row",this._onBlur.pipe(ce(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(n){13!==n.keyCode||this.disabled?this._isEditing?n.stopPropagation():super._handleKeydown(n):this._isEditing?(n.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(n)}_handleDoubleclick(n){!this.disabled&&this.editable&&this._startEditing(n)}_startEditing(n){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(n.target)===this.removeIcon)return;const r=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(r),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe),p(W),p(G),p(ar),p(he),p(_t,8),p(Pf,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,r,o){if(1&n&&Ee(o,Jp,5),2&n){let s;H(s=z())&&(r.contentEditInput=s.first)}},viewQuery:function(n,r){if(1&n&&ke(Jp,5),2&n){let o;H(o=z())&&(r.defaultEditInput=o.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,r){1&n&&$("focus",function(s){return r._handleFocus(s)})("dblclick",function(s){return r._handleDoubleclick(s)}),2&n&&(pi("id",r.id),de("tabindex",r.disabled?null:-1)("aria-label",null)("aria-description",null)("role",r.role),se("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-editing",r._isEditing)("mat-mdc-chip-editable",r.editable)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[J([{provide:vs,useExisting:e},{provide:Zp,useExisting:e}]),P],ngContentSelectors:Pte,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(ze(Fte),A(0,kte,2,0,"ng-container",0),y(1,"span",1),A(2,Tte,2,0,"span",2),y(3,"span",3),A(4,Mte,2,0,"ng-container",4),A(5,Rte,4,2,"ng-container",4),ie(6,"span",5),w()(),A(7,Ote,2,0,"span",6),y(8,"span",7),R(9),w()),2&n&&(D("ngIf",!r._isEditing),x(1),D("tabIndex",r.tabIndex)("disabled",r.disabled),de("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),x(1),D("ngIf",r.leadingIcon),x(1),D("ngSwitch",r._isEditing),x(1),D("ngSwitchCase",!1),x(1),D("ngSwitchCase",!0),x(2),D("ngIf",r._hasTrailingIcon()),x(1),D("id",r._ariaDescriptionId),x(1),bt(r.ariaDescription))},dependencies:[_i,Sa,Qh,hc,Jp],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();class zte{constructor(t){}}const Ute=ns(zte);let em=(()=>{var e;class t extends Ute{get chipFocusChanges(){return this._getChipStream(n=>n._onFocus)}get chipDestroyedChanges(){return this._getChipStream(n=>n.destroyed)}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(n){this._explicitRole=n}get focused(){return this._hasFocusedChip()}constructor(n,r,o){super(n),this._elementRef=n,this._changeDetectorRef=r,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Y,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new Cr}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(n=>n._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(n=>{n.disabled=this._disabled,n._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(n){this._originatesFromChip(n)&&this._keyManager.onKeydown(n)}_isValidIndex(n){return n>=0&&nthis.tabIndex=n)}}_getChipStream(n){return this._chips.changes.pipe(nn(null),Vt(()=>Rt(...this._chips.map(n))))}_originatesFromChip(n){let r=n.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-mdc-chip"))return!0;r=r.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(nn(this._chips)).subscribe(n=>{const r=[];n.forEach(o=>o._getActions().forEach(s=>r.push(s))),this._chipActions.reset(r),this._chipActions.notifyOnChanges()}),this._keyManager=new Fv(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(n=>this._skipPredicate(n)),this.chipFocusChanges.pipe(ce(this._destroyed)).subscribe(({chip:n})=>{const r=n._getSourceAction(document.activeElement);r&&this._keyManager.updateActiveItem(r)}),this._dir?.change.pipe(ce(this._destroyed)).subscribe(n=>this._keyManager.withHorizontalOrientation(n))}_skipPredicate(n){return!n.isInteractive||n.disabled}_trackChipSetChanges(){this._chips.changes.pipe(nn(null),ce(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(ce(this._destroyed)).subscribe(n=>{const o=this._chips.toArray().indexOf(n.chip);this._isValidIndex(o)&&n.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const n=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),r=this._chips.toArray()[n];r.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():r.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(hn,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,vs,5),2&n){let s;H(s=z())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._handleKeydown(s)}),2&n&&de("role",r.role)},inputs:{disabled:"disabled",role:"role"},features:[P],ngContentSelectors:iw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(ze(),y(0,"div",0),X(1),w())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),t})();class Gte{constructor(t,i){this.source=t,this.value=i}}class Wte extends em{constructor(t,i,n,r,o,s,a){super(t,i,n),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=s,this.ngControl=a,this.stateChanges=new Y}}const Qte=Vv(Wte);let fP=(()=>{var e;class t extends Qte{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(n){this._disabled=Q(n),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(n){this._placeholder=n,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Iy.required)??!1}set required(n){this._required=Q(n),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(n){this._value=n}get chipBlurChanges(){return this._getChipStream(n=>n._onBlur)}constructor(n,r,o,s,a,c,l){super(n,r,o,c,s,a,l),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new U,this.valueChange=new U,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(ce(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Rt(this.chipFocusChanges,this._chips.changes).pipe(ce(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(n){this._chipInput=n,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(n){!this.disabled&&!this._originatesFromChip(n)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(n){this._ariaDescribedbyIds=n,this._chipInput?.setDescribedByIds(n)}writeValue(n){this._value=n}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(n){9===n.keyCode?this._chipInput.focused&&An(n,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(n.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(n),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const n=this._chips.length?this._chips.toArray().map(r=>r.value):[];this._value=n,this.change.emit(new Gte(this,n)),this.valueChange.emit(n),this._onChange(n),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(hn,8),p(Ya,8),p(Xa,8),p(Ff),p(Hi,10))},e.\u0275cmp=fe({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,aw,5),2&n){let s;H(s=z())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,r){1&n&&$("focus",function(){return r.focus()})("blur",function(){return r._blur()}),2&n&&(pi("tabIndex",r._chips&&0===r._chips.length?-1:r.tabIndex),de("role",r.role)("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState),se("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-invalid",r.errorState)("mat-mdc-chip-list-required",r.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[J([{provide:Kp,useExisting:e}]),P],ngContentSelectors:iw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(ze(),y(0,"div",0),X(1),w())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),t})(),Yte=0,pP=(()=>{var e;class t{set chipGrid(n){n&&(this._chipGrid=n,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(n){this._addOnBlur=Q(n)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(n){this._disabled=Q(n)}get empty(){return!this.inputElement.value}constructor(n,r,o){this._elementRef=n,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new U,this.placeholder="",this.id="mat-mdc-chip-list-input-"+Yte++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=r.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(n){if(n){if(8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}_keyup(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(n){(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),n?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(n){const r=this._elementRef.nativeElement;n.length?r.setAttribute("aria-describedby",n.join(" ")):r.removeAttribute("aria-describedby")}_isSeparatorKey(n){return!An(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Xp),p(Vd,8))},e.\u0275dir=T({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._keydown(s)})("keyup",function(s){return r._keyup(s)})("blur",function(){return r._blur()})("focus",function(){return r._focus()})("input",function(){return r._onInput()}),2&n&&(pi("id",r.id),de("disabled",r.disabled||null)("placeholder",r.placeholder||null)("aria-invalid",r._chipGrid&&r._chipGrid.ngControl?r._chipGrid.ngControl.invalid:null)("aria-required",r._chipGrid&&r._chipGrid.required||null)("required",r._chipGrid&&r._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[kt]}),t})(),Kte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[Ff,{provide:Xp,useValue:{separatorKeyCodes:[13]}}],imports:[ve,vn,is,ve]}),t})(),Xte=(()=>{var e;class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(n){this._vertical=Q(n)}get inset(){return this._inset}set inset(n){this._inset=Q(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,r){2&n&&(de("aria-orientation",r.vertical?"vertical":"horizontal"),se("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,r){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t})(),Zte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})();const mP=new M("CdkAccordion");let Jte=0,ene=(()=>{var e;class t{get expanded(){return this._expanded}set expanded(n){n=Q(n),this._expanded!==n&&(this._expanded=n,this.expandedChange.emit(n),n?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n)}constructor(n,r,o){this.accordion=n,this._changeDetectorRef=r,this._expansionDispatcher=o,this._openCloseAllSubscription=Ae.EMPTY,this.closed=new U,this.opened=new U,this.destroyed=new U,this.expandedChange=new U,this.id="cdk-accordion-child-"+Jte++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(n=>{this.disabled||(this.expanded=n)})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(mP,12),p(Fe),p(Zy))},e.\u0275dir=T({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[J([{provide:mP,useValue:void 0}])]}),t})(),tne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const nne=["body"];function ine(e,t){}const rne=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],one=["mat-expansion-panel-header","*","mat-action-row"];function sne(e,t){1&e&&ie(0,"span",2),2&e&&D("@indicatorRotate",B()._getExpandedState())}const ane=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],cne=["mat-panel-title","mat-panel-description","*"],gP=new M("MAT_ACCORDION"),_P="225ms cubic-bezier(0.4,0.0,0.2,1)",bP={indicatorRotate:ni("indicatorRotate",[qt("collapsed, void",je({transform:"rotate(0deg)"})),qt("expanded",je({transform:"rotate(180deg)"})),Bt("expanded <=> collapsed, void => collapsed",Lt(_P))]),bodyExpansion:ni("bodyExpansion",[qt("collapsed, void",je({height:"0px",visibility:"hidden"})),qt("expanded",je({height:"*",visibility:""})),Bt("expanded <=> collapsed, void => collapsed",Lt(_P))])},vP=new M("MAT_EXPANSION_PANEL");let lne=(()=>{var e;class t{constructor(n,r){this._template=n,this._expansionPanel=r}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(vP,8))},e.\u0275dir=T({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),dne=0;const yP=new M("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let wP=(()=>{var e;class t extends ene{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(n){this._hideToggle=Q(n)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(n){this._togglePosition=n}constructor(n,r,o,s,a,c,l){super(n,r,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new U,this.afterCollapse=new U,this._inputChanges=new Y,this._headerId="mat-expansion-panel-header-"+dne++,this._bodyAnimationDone=new Y,this.accordion=n,this._document=a,this._bodyAnimationDone.pipe(Is((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(nn(null),Ve(()=>this.expanded&&!this._portal),Xe(1)).subscribe(()=>{this._portal=new co(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(n){this._inputChanges.next(n)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const n=this._document.activeElement,r=this._body.nativeElement;return n===r||r.contains(n)}return!1}}return(e=t).\u0275fac=function(n){return new(n||e)(p(gP,12),p(Fe),p(Zy),p(pt),p(he),p(_t,8),p(yP,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,lne,5),2&n){let s;H(s=z())&&(r._lazyContent=s.first)}},viewQuery:function(n,r){if(1&n&&ke(nne,5),2&n){let o;H(o=z())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,r){2&n&&se("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[J([{provide:gP,useValue:void 0},{provide:vP,useExisting:e}]),P,kt],ngContentSelectors:one,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){1&n&&(ze(rne),X(0),y(1,"div",0,1),$("@bodyExpansion.done",function(s){return r._bodyAnimationDone.next(s)}),y(3,"div",2),X(4,1),A(5,ine,0,0,"ng-template",3),w(),X(6,2),w()),2&n&&(x(1),D("@bodyExpansion",r._getExpandedState())("id",r.id),de("aria-labelledby",r._headerId),x(4),D("cdkPortalOutlet",r._portal))},dependencies:[La],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){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)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[bP.bodyExpansion]},changeDetection:0}),t})();class une{}const hne=ns(une);let fne=(()=>{var e;class t extends hne{constructor(n,r,o,s,a,c,l){super(),this.panel=n,this._element=r,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=Ae.EMPTY;const d=n.accordion?n.accordion._stateChanges.pipe(Ve(u=>!(!u.hideToggle&&!u.togglePosition))):Xt;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Rt(n.opened,n.closed,d,n._inputChanges.pipe(Ve(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),n.closed.pipe(Ve(()=>n._containsFocus())).subscribe(()=>o.focusVia(r,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const n=this._isExpanded();return n&&this.expandedHeight?this.expandedHeight:!n&&this.collapsedHeight?this.collapsedHeight:null}_keydown(n){switch(n.keyCode){case 32:case 13:An(n)||(n.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(n))}}focus(n,r){n?this._focusMonitor.focusVia(this._element,n,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(n=>{n&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(wP,1),p(W),p(ar),p(Fe),p(yP,8),p(_t,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,r){1&n&&$("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&n&&(de("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),kn("height",r._getHeaderHeight()),se("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[P],ngContentSelectors:cne,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(n,r){1&n&&(ze(ane),y(0,"span",0),X(1),X(2,1),X(3,2),w(),A(4,sne,1,1,"span",1)),2&n&&(se("mat-content-hide-toggle",!r._showToggle()),x(4),D("ngIf",r._showToggle()))},dependencies:[_i],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[bP.indicatorRotate]},changeDetection:0}),t})(),pne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),mne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,ve,tne,qf]}),t})();const xP=ro({passive:!0});let gne=(()=>{var e;class t{constructor(n,r){this._platform=n,this._ngZone=r,this._monitoredElements=new Map}monitor(n){if(!this._platform.isBrowser)return Xt;const r=Ar(n),o=this._monitoredElements.get(r);if(o)return o.subject;const s=new Y,a="cdk-text-field-autofilled",c=l=>{"cdk-text-field-autofill-start"!==l.animationName||r.classList.contains(a)?"cdk-text-field-autofill-end"===l.animationName&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(r.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",c,xP),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",c,xP)}}),s}stopMonitoring(n){const r=Ar(n),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((n,r)=>this.stopMonitoring(r))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(nt),E(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),_ne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const bne=new M("MAT_INPUT_VALUE_ACCESSOR"),vne=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let yne=0;const wne=Vv(class{constructor(e,t,i,n){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=n,this.stateChanges=new Y}});let xne=(()=>{var e;class t extends wne{get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(n){this._id=n||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Iy.required)??!1}set required(n){this._required=Q(n)}get type(){return this._type}set type(n){this._type=n||"text",this._validateType(),!this._isTextarea&&DI().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(n){n!==this.value&&(this._inputValueAccessor.value=n,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(n){this._readonly=Q(n)}constructor(n,r,o,s,a,c,l,d,u,h){super(c,s,a,o),this._elementRef=n,this._platform=r,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+yne++,this.focused=!1,this.stateChanges=new Y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>DI().has(g)),this._iOSKeyupListener=g=>{const b=g.target;!b.value&&0===b.selectionStart&&0===b.selectionEnd&&(b.setSelectionRange(1,1),b.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,m=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&u.runOutsideAngular(()=>{n.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(n=>{this.autofilled=n.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(n){this._elementRef.nativeElement.focus(n)}_focusChanged(n){n!==this.focused&&(this.focused=n,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const n=this._elementRef.nativeElement.value;this._previousNativeValue!==n&&(this._previousNativeValue=n,this.stateChanges.next())}_dirtyCheckPlaceholder(){const n=this._getPlaceholder();if(n!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=n,n?r.setAttribute("placeholder",n):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){vne.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let n=this._elementRef.nativeElement.validity;return n&&n.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const n=this._elementRef.nativeElement,r=n.options[0];return this.focused||n.multiple||!this.empty||!!(n.selectedIndex>-1&&r&&r.label)}return this.focused||!this.empty}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const n=this._elementRef.nativeElement;return this._isNativeSelect&&(n.multiple||n.size>1)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(nt),p(Hi,10),p(Ya,8),p(Xa,8),p(Ff),p(bne,10),p(gne),p(G),p(Vd,8))},e.\u0275dir=T({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){1&n&&$("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&n&&(pi("id",r.id)("disabled",r.disabled)("required",r.required),de("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),se("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[J([{provide:Kp,useExisting:e}]),P,kt]}),t})(),Cne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,jd,jd,_ne,ve]}),t})();const Dne=new M("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Sne=ts(class{constructor(e){this._elementRef=e}},"primary");let kne=(()=>{var e;class t extends Sne{constructor(n,r,o,s,a){super(n),this._ngZone=r,this._changeDetectorRef=o,this._animationMode=s,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new U,this._mode="determinate",this._transitionendHandler=c=>{0===this.animationEnd.observers.length||!c.target||!c.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===s,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(n){this._value=CP(Bi(n)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(n){this._bufferValue=CP(Bi(n)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(n){this._mode=n,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(G),p(Fe),p(_t,8),p(Dne,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(n,r){2&n&&(de("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),se("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[P],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(n,r){1&n&&(y(0,"div",0),ie(1,"div",1)(2,"div",2),w(),y(3,"div",3),ie(4,"span",4),w(),y(5,"div",5),ie(6,"span",4),w()),2&n&&(x(1),kn("flex-basis",r._getBufferBarFlexBasis()),x(2),kn("transform",r._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),t})();function CP(e,t=0,i=100){return Math.max(t,Math.min(i,e))}let Tne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve]}),t})();const Mne=["input"],Ine=["*"];let DP=0;class EP{constructor(t,i){this.source=t,this.value=i}}const Ane={provide:Gn,useExisting:He(()=>kP),multi:!0},SP=new M("MatRadioGroup"),Rne=new M("mat-radio-default-options",{providedIn:"root",factory:function One(){return{color:"accent"}}});let Fne=(()=>{var e;class t{get name(){return this._name}set name(n){this._name=n,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(n){this._labelPosition="before"===n?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(n){this._value!==n&&(this._value=n,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(n){this._selected=n,this.value=n?n.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._markRadiosForCheck()}get required(){return this._required}set required(n){this._required=Q(n),this._markRadiosForCheck()}constructor(n){this._changeDetector=n,this._value=null,this._name="mat-radio-group-"+DP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new U}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(n=>n===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(n=>{n.name=this.name,n._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(r=>{r.checked=this.value===r.value,r.checked&&(this._selected=r)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new EP(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(n=>n._markForCheck())}writeValue(n){this.value=n,this._changeDetector.markForCheck()}registerOnChange(n){this._controlValueAccessorChangeFn=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this._changeDetector.markForCheck()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe))},e.\u0275dir=T({type:e,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})();class Pne{constructor(t){this._elementRef=t}}const Nne=so(ns(Pne));let Lne=(()=>{var e;class t extends Nne{get checked(){return this._checked}set checked(n){const r=Q(n);this._checked!==r&&(this._checked=r,r&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!r&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),r&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(n){this._value!==n&&(this._value=n,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===n),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(n){this._labelPosition=n}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(n){this._setDisabled(Q(n))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(n){this._required=Q(n)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(n){this._color=n}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(n,r,o,s,a,c,l,d){super(r),this._changeDetector=o,this._focusMonitor=s,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++DP,this.id=this._uniqueId,this.change=new U,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=n,this._noopAnimations="NoopAnimations"===c,d&&(this.tabIndex=Bi(d,0))}focus(n,r){r?this._focusMonitor.focusVia(this._inputElement,r,n):this._inputElement.nativeElement.focus(n)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((n,r)=>{n!==this.id&&r===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{!n&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new EP(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(n){n.stopPropagation()}_onInputInteraction(n){if(n.stopPropagation(),!this.checked&&!this.disabled){const r=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),r&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(n){this._onInputInteraction(n),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(n){this._disabled!==n&&(this._disabled=n,this._changeDetector.markForCheck())}_updateTabIndex(){const n=this.radioGroup;let r;if(r=n&&n.selected&&!this.disabled?n.selected===this?this.tabIndex:-1:this.tabIndex,r!==this._previousTabIndex){const o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",r+""),this._previousTabIndex=r)}}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(Mne,5),2&n){let o;H(o=z())&&(r._inputElement=o.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[P]}),t})(),kP=(()=>{var e;class t extends Fne{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["mat-radio-group"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,TP,5),2&n){let s;H(s=z())&&(r._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[J([Ane,{provide:SP,useExisting:e}]),P]}),t})(),TP=(()=>{var e;class t extends Lne{constructor(n,r,o,s,a,c,l,d){super(n,r,o,s,a,c,l,d)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(SP,8),p(W),p(Fe),p(ar),p(Zy),p(_t,8),p(Rne,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(n,r){1&n&&$("focus",function(){return r._inputElement.nativeElement.focus()}),2&n&&(de("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),se("mat-primary","primary"===r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[P],ngContentSelectors:Ine,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(n,r){if(1&n&&(ze(),y(0,"div",0,1)(2,"div",2)(3,"div",3),$("click",function(s){return r._onTouchTargetClick(s)}),w(),y(4,"input",4,5),$("change",function(s){return r._onInputInteraction(s)}),w(),y(6,"div",6),ie(7,"div",7)(8,"div",8),w(),y(9,"div",9),ie(10,"div",10),w()(),y(11,"label",11),X(12),w()()),2&n){const o=un(1);se("mdc-form-field--align-end","before"==r.labelPosition),x(2),se("mdc-radio--disabled",r.disabled),x(2),D("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),de("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),x(5),D("matRippleTrigger",o)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),x(2),D("for",r.inputId)}},dependencies:[ao],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),t})(),Bne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,vn,is,ve]}),t})();const MP=["*"],Vne=["content"];function jne(e,t){if(1&e){const i=Pt();y(0,"div",2),$("click",function(){return Ge(i),We(B()._onBackdropClicked())}),w()}2&e&&se("mat-drawer-shown",B()._isShowingBackdrop())}function Hne(e,t){1&e&&(y(0,"mat-drawer-content"),X(1,2),w())}const zne=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Une=["mat-drawer","mat-drawer-content","*"],$ne={transformDrawer:ni("transform",[qt("open, open-instant",je({transform:"none",visibility:"visible"})),qt("void",je({"box-shadow":"none",visibility:"hidden"})),Bt("void => open-instant",Lt("0ms")),Bt("void <=> open, open-instant => void",Lt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qne=new M("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Gne(){return!1}}),IP=new M("MAT_DRAWER_CONTAINER");let tm=(()=>{var e;class t extends ey{constructor(n,r,o,s,a){super(o,s,a),this._changeDetectorRef=n,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe),p(He(()=>RP)),p(W),p(Gf),p(G))},e.\u0275cmp=fe({type:e,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(n,r){2&n&&kn("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[J([{provide:ey,useExisting:e}]),P],ngContentSelectors:MP,decls:1,vars:0,template:function(n,r){1&n&&(ze(),X(0))},encapsulation:2,changeDetection:0}),t})(),AP=(()=>{var e;class t{get position(){return this._position}set position(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(n){this._disableClose=Q(n)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(n){("true"===n||"false"===n||null==n)&&(n=Q(n)),this._autoFocus=n}get opened(){return this._opened}set opened(n){this.toggle(Q(n))}constructor(n,r,o,s,a,c,l,d){this._elementRef=n,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=c,this._doc=l,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Y,this._animationEnd=new Y,this._animationState="void",this.openedChange=new U(!0),this._openedStream=this.openedChange.pipe(Ve(u=>u),Z(()=>{})),this.openedStart=this._animationStarted.pipe(Ve(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),Uf(void 0)),this._closedStream=this.openedChange.pipe(Ve(u=>!u),Z(()=>{})),this.closedStart=this._animationStarted.pipe(Ve(u=>u.fromState!==u.toState&&"void"===u.toState),Uf(void 0)),this._destroyed=new Y,this.onPositionChanged=new U,this._modeChanged=new Y,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Vi(this._elementRef.nativeElement,"keydown").pipe(Ve(u=>27===u.keyCode&&!this.disableClose&&!An(u)),ce(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Is((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{n.removeEventListener("blur",o),n.removeEventListener("mousedown",o),n.removeAttribute("tabindex")};n.addEventListener("blur",o),n.addEventListener("mousedown",o)})),n.focus(r)}_focusByCssSelector(n,r){let o=this._elementRef.nativeElement.querySelector(n);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;const n=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{!r&&"function"==typeof this._elementRef.nativeElement.focus&&n.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(n){return this.toggle(!0,n)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(n=!this.opened,r){n&&r&&(this._openedVia=r);const o=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),o}_setOpen(n,r,o){return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(Xe(1)).subscribe(a=>s(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(n){const r=this._elementRef.nativeElement,o=r.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(j7),p(ar),p(nt),p(G),p(BI),p(he,8),p(IP,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-drawer"]],viewQuery:function(n,r){if(1&n&&ke(Vne,5),2&n){let o;H(o=z())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(n,r){1&n&&gh("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&n&&(de("align",null),yh("@transform",r._animationState),se("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:MP,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(n,r){1&n&&(ze(),y(0,"div",0,1),X(2),w())},dependencies:[ey],encapsulation:2,data:{animation:[$ne.transformDrawer]},changeDetection:0}),t})(),RP=(()=>{var e;class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(n){this._autosize=Q(n)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(n){this._backdropOverride=null==n?null:Q(n)}get scrollable(){return this._userContent||this._content}constructor(n,r,o,s,a,c=!1,l){this._dir=n,this._element=r,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=l,this._drawers=new Cr,this.backdropClick=new U,this._destroyed=new Y,this._doCheckSubject=new Y,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y,n&&n.change.pipe(ce(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ce(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}ngAfterContentInit(){this._allDrawers.changes.pipe(nn(this._allDrawers),ce(this._destroyed)).subscribe(n=>{this._drawers.reset(n.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(nn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(n=>{this._watchDrawerToggle(n),this._watchDrawerPosition(n),this._watchDrawerMode(n)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Tf(10),ce(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(n=>n.open())}close(){this._drawers.forEach(n=>n.close())}updateContentMargins(){let n=0,r=0;if(this._left&&this._left.opened)if("side"==this._left.mode)n+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();n+=o,r-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)r+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();r+=o,n-=o}n=n||null,r=r||null,(n!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:n,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(n){n._animationStarted.pipe(Ve(r=>r.fromState!==r.toState),ce(this._drawers.changes)).subscribe(r=>{"open-instant"!==r.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(ce(this._drawers.changes)).subscribe(()=>this._setContainerClass(n.opened))}_watchDrawerPosition(n){n&&n.onPositionChanged.pipe(ce(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Xe(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(n){n&&n._modeChanged.pipe(ce(Rt(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(n){const r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";n?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(n=>{"end"==n.position?this._end=n:this._start=n}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(n=>n&&!n.disableClose&&this._drawerHasBackdrop(n)).forEach(n=>n._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(n){return null!=n&&n.opened}_drawerHasBackdrop(n){return null==this._backdropOverride?!!n&&"side"!==n.mode:this._backdropOverride}}return(e=t).\u0275fac=function(n){return new(n||e)(p(hn,8),p(W),p(G),p(Fe),p(Rr),p(qne),p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,tm,5),Ee(o,AP,5)),2&n){let s;H(s=z())&&(r._content=s.first),H(s=z())&&(r._allDrawers=s)}},viewQuery:function(n,r){if(1&n&&ke(tm,5),2&n){let o;H(o=z())&&(r._userContent=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[J([{provide:IP,useExisting:e}])],ngContentSelectors:Une,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,r){1&n&&(ze(zne),A(0,jne,1,2,"div",0),X(1),X(2,1),A(3,Hne,2,0,"mat-drawer-content",1)),2&n&&(D("ngIf",r.hasBackdrop),x(3),D("ngIf",!r._content))},dependencies:[_i,tm],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),Wne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,ve,lo,lo,ve]}),t})();const Qne=[[["caption"]],[["colgroup"],["col"]]],Yne=["caption","colgroup, col"];function cw(e){return class extends e{get sticky(){return this._sticky}set sticky(t){const i=this._sticky;this._sticky=Q(t),this._hasStickyChanged=i!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}}}const fc=new M("CDK_TABLE");let pc=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct))},e.\u0275dir=T({type:e,selectors:[["","cdkCellDef",""]]}),t})(),mc=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct))},e.\u0275dir=T({type:e,selectors:[["","cdkHeaderCellDef",""]]}),t})(),nm=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct))},e.\u0275dir=T({type:e,selectors:[["","cdkFooterCellDef",""]]}),t})();class Jne{}const eie=cw(Jne);let Lr=(()=>{var e;class t extends eie{get name(){return this._name}set name(n){this._setNameInput(n)}get stickyEnd(){return this._stickyEnd}set stickyEnd(n){const r=this._stickyEnd;this._stickyEnd=Q(n),this._hasStickyChanged=r!==this._stickyEnd}constructor(n){super(),this._table=n,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(n){n&&(this._name=n,this.cssClassFriendlyName=n.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(e=t).\u0275fac=function(n){return new(n||e)(p(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,pc,5),Ee(o,mc,5),Ee(o,nm,5)),2&n){let s;H(s=z())&&(r.cell=s.first),H(s=z())&&(r.headerCell=s.first),H(s=z())&&(r.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[J([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),P]}),t})();class lw{constructor(t,i){i.nativeElement.classList.add(...t._columnCssClassName)}}let dw=(()=>{var e;class t extends lw{constructor(n,r){super(n,r)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Lr),p(W))},e.\u0275dir=T({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[P]}),t})(),uw=(()=>{var e;class t extends lw{constructor(n,r){if(super(n,r),1===n._table?._elementRef.nativeElement.nodeType){const o=n._table._elementRef.nativeElement.getAttribute("role");r.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Lr),p(W))},e.\u0275dir=T({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[P]}),t})();class FP{constructor(){this.tasks=[],this.endTasks=[]}}const hw=new M("_COALESCED_STYLE_SCHEDULER");let PP=(()=>{var e;class t{constructor(n){this._ngZone=n,this._currentSchedule=null,this._destroyed=new Y}schedule(n){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(n)}scheduleEnd(n){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new FP,this._getScheduleObservable().pipe(ce(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const n=this._currentSchedule;this._currentSchedule=new FP;for(const r of n.tasks)r();for(const r of n.endTasks)r()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Et(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Xe(1))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),fw=(()=>{var e;class t{constructor(n,r){this.template=n,this._differs=r}ngOnChanges(n){if(!this._columnsDiffer){const r=n.columns&&n.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(n){return this instanceof Hd?n.headerCell.template:this instanceof zd?n.footerCell.template:n.cell.template}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(Dr))},e.\u0275dir=T({type:e,features:[kt]}),t})();class tie extends fw{}const nie=cw(tie);let Hd=(()=>{var e;class t extends nie{constructor(n,r,o){super(n,r),this._table=o}ngOnChanges(n){super.ngOnChanges(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(Dr),p(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[P,kt]}),t})();class iie extends fw{}const rie=cw(iie);let zd=(()=>{var e;class t extends rie{constructor(n,r,o){super(n,r),this._table=o}ngOnChanges(n){super.ngOnChanges(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(Dr),p(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[P,kt]}),t})(),im=(()=>{var e;class t extends fw{constructor(n,r,o){super(n,r),this._table=o}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(Dr),p(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[P]}),t})(),Br=(()=>{var e;class t{constructor(n){this._viewContainer=n,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return(e=t).mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(p(pt))},e.\u0275dir=T({type:e,selectors:[["","cdkCellOutlet",""]]}),t})(),pw=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),gw=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),rm=(()=>{var e;class t{constructor(n){this.templateRef=n,this._contentClassName="cdk-no-data-row"}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct))},e.\u0275dir=T({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const NP=["top","bottom","left","right"];class oie{constructor(t,i,n,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=i,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${i}-border-elem-top`,bottom:`${i}-border-elem-bottom`,left:`${i}-border-elem-left`,right:`${i}-border-elem-right`}}clearStickyPositioning(t,i){const n=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o{for(const r of n)this._removeStickyStyle(r,i)})}updateStickyColumns(t,i,n,r=!0){if(!t.length||!this._isBrowser||!i.some(h=>h)&&!n.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,i),l=this._getStickyEndColumnPositions(a,n),d=i.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of t)for(let b=0;bi[b]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((g,b)=>n[b+u]?g:null).reverse()}))})}stickRows(t,i,n){if(!this._isBrowser)return;const r="bottom"===n?t.slice().reverse():t,o="bottom"===n?i.slice().reverse():i,s=[],a=[],c=[];for(let d=0,u=0;d{for(let d=0;d{i.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,i){for(const r of i)t.style[r]="",t.classList.remove(this._borderCellCss[r]);NP.some(r=>-1===i.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,i,n,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[i]),t.style[i]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const i={top:100,bottom:10,left:1,right:1};let n=0;for(const r of NP)t.style[r]&&(n+=i[r]);return n?`${n}`:""}_getCellWidths(t,i=!0){if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=t.children;for(let o=0;o0;o--)i[o]&&(n[o]=r,r+=t[o]);return n}}const _w=new M("CDK_SPL");let om=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(W))},e.\u0275dir=T({type:e,selectors:[["","rowOutlet",""]]}),t})(),sm=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(W))},e.\u0275dir=T({type:e,selectors:[["","headerRowOutlet",""]]}),t})(),am=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(W))},e.\u0275dir=T({type:e,selectors:[["","footerRowOutlet",""]]}),t})(),cm=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(W))},e.\u0275dir=T({type:e,selectors:[["","noDataRowOutlet",""]]}),t})(),lm=(()=>{var e;class t{get trackBy(){return this._trackByFn}set trackBy(n){this._trackByFn=n}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(n){this._multiTemplateDataRows=Q(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(n){this._fixedLayout=Q(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(n,r,o,s,a,c,l,d,u,h,f,m){this._differs=n,this._changeDetectorRef=r,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=m,this._onDestroy=new Y,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new U,this.viewChange=new dt({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((n,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ce(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(n=>{n.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Xy(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const n=this._dataDiffer.diff(this._renderRows);if(!n)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(n,r,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),n.forEachIdentityChange(o=>{r.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&G.isInAngularZone()?this._ngZone.onStable.pipe(Xe(1),ce(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(n){this._customColumnDefs.add(n)}removeColumnDef(n){this._customColumnDefs.delete(n)}addRowDef(n){this._customRowDefs.add(n)}removeRowDef(n){this._customRowDefs.delete(n)}addHeaderRowDef(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}removeHeaderRowDef(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}addFooterRowDef(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}removeFooterRowDef(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}setNoDataRow(n){this._customNoDataRow=n}updateStickyHeaderRowStyles(){const n=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=n.length?"":"none");const s=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,s,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const n=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=n.length?"":"none");const s=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const n=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...n,...r,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{const a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const n=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const c=o&&o.has(a)?o.get(a):[];if(c.length){const l=c.shift();return l.dataIndex=r,l}return{data:n,rowDef:a,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),dm(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=dm(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=dm(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=dm(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const n=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=n[0]}_renderUpdatedColumns(){const n=(a,c)=>a||!!c.getColumnsDiff(),r=this._rowDefs.reduce(n,!1);r&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(n,!1);o&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(n,!1);return s&&this._forceRenderFooterRows(),r||o||s}_switchDataSource(n){this._data=[],Xy(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),n||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=n}_observeRenderChanges(){if(!this.dataSource)return;let n;Xy(this.dataSource)?n=this.dataSource.connect(this):V1(this.dataSource)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=re(this.dataSource)),this._renderChangeSubscription=n.pipe(ce(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((n,r)=>this._renderRow(this._headerRowOutlet,n,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((n,r)=>this._renderRow(this._footerRowOutlet,n,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(n,r){const o=Array.from(r.columns||[]).map(c=>this._columnDefsByName.get(c)),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(n,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(n){const r=[];for(let o=0;o!s.when||s.when(r,n));else{let s=this._rowDefs.find(a=>a.when&&a.when(r,n))||this._defaultRowDef;s&&o.push(s)}return o}_getEmbeddedViewArgs(n,r){return{templateRef:n.rowDef.template,context:{$implicit:n.data},index:r}}_renderRow(n,r,o,s={}){const a=n.viewContainer.createEmbeddedView(r.template,s,o);return this._renderCellTemplateForItem(r,s),a}_renderCellTemplateForItem(n,r){for(let o of this._getCellTemplates(n))Br.mostRecentCellOutlet&&Br.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const n=this._rowOutlet.viewContainer;for(let r=0,o=n.length;r{const o=this._columnDefsByName.get(r);return n.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const n=this._document.createDocumentFragment(),r=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of r){const s=this._document.createElement(o.tag);s.setAttribute("role","rowgroup");for(const a of o.outlets)s.appendChild(a.elementRef.nativeElement);n.appendChild(s)}this._elementRef.nativeElement.appendChild(n)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const n=(r,o)=>r||o.hasStickyChanged();this._headerRowDefs.reduce(n,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(n,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(n,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new oie(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:re()).pipe(ce(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(n){return n.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const n=this._customNoDataRow||this._noDataRow;if(!n)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(r){const s=o.createEmbeddedView(n.templateRef),a=s.rootNodes[0];1===s.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(n._contentClassName))}else o.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Dr),p(Fe),p(W),ui("role"),p(hn,8),p(he),p(nt),p(wd),p(hw),p(Rr),p(_w,12),p(G,8))},e.\u0275cmp=fe({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,rm,5),Ee(o,Lr,5),Ee(o,im,5),Ee(o,Hd,5),Ee(o,zd,5)),2&n){let s;H(s=z())&&(r._noDataRow=s.first),H(s=z())&&(r._contentColumnDefs=s),H(s=z())&&(r._contentRowDefs=s),H(s=z())&&(r._contentHeaderRowDefs=s),H(s=z())&&(r._contentFooterRowDefs=s)}},viewQuery:function(n,r){if(1&n&&(ke(om,7),ke(sm,7),ke(am,7),ke(cm,7)),2&n){let o;H(o=z())&&(r._rowOutlet=o.first),H(o=z())&&(r._headerRowOutlet=o.first),H(o=z())&&(r._footerRowOutlet=o.first),H(o=z())&&(r._noDataRowOutlet=o.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(n,r){2&n&&se("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[J([{provide:fc,useExisting:e},{provide:wd,useClass:$R},{provide:hw,useClass:PP},{provide:_w,useValue:null}])],ngContentSelectors:Yne,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){1&n&&(ze(Qne),X(0),X(1,1),nr(2,0)(3,1)(4,2)(5,3))},dependencies:[om,sm,am,cm],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function dm(e,t){return e.concat(Array.from(t))}let aie=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ty]}),t})();const cie=[[["caption"]],[["colgroup"],["col"]]],lie=["caption","colgroup, col"];let BP=(()=>{var e;class t extends lm{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,r){2&n&&se("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[J([{provide:lm,useExisting:e},{provide:fc,useExisting:e},{provide:hw,useClass:PP},{provide:wd,useClass:$R},{provide:_w,useValue:null}]),P],ngContentSelectors:lie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){1&n&&(ze(cie),X(0),X(1,1),nr(2,0)(3,1)(4,2)(5,3))},dependencies:[om,sm,am,cm],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),t})(),bw=(()=>{var e;class t extends pc{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matCellDef",""]],features:[J([{provide:pc,useExisting:e}]),P]}),t})(),vw=(()=>{var e;class t extends mc{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matHeaderCellDef",""]],features:[J([{provide:mc,useExisting:e}]),P]}),t})(),yw=(()=>{var e;class t extends Lr{get name(){return this._name}set name(n){this._setNameInput(n)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[J([{provide:Lr,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),P]}),t})(),ww=(()=>{var e;class t extends dw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[P]}),t})(),xw=(()=>{var e;class t extends uw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[P]}),t})(),VP=(()=>{var e;class t extends Hd{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[J([{provide:Hd,useExisting:e}]),P]}),t})(),jP=(()=>{var e;class t extends im{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[J([{provide:im,useExisting:e}]),P]}),t})(),HP=(()=>{var e;class t extends pw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[J([{provide:pw,useExisting:e}]),P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),zP=(()=>{var e;class t extends gw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[J([{provide:gw,useExisting:e}]),P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),_ie=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,aie,ve]}),t})();function vie(e,t){}const yie=function(e){return{animationDuration:e}},wie=function(e,t){return{value:e,params:t}};function xie(e,t){1&e&&X(0)}const UP=["*"],Cie=["tabListContainer"],Die=["tabList"],Eie=["tabListInner"],Sie=["nextPaginator"],kie=["previousPaginator"],Tie=["tabBodyWrapper"],Mie=["tabHeader"];function Iie(e,t){}function Aie(e,t){1&e&&A(0,Iie,0,0,"ng-template",14),2&e&&D("cdkPortalOutlet",B().$implicit.templateLabel)}function Rie(e,t){1&e&&R(0),2&e&&bt(B().$implicit.textLabel)}function Oie(e,t){if(1&e){const i=Pt();y(0,"div",6,7),$("click",function(){const r=Ge(i),o=r.$implicit,s=r.index,a=B(),c=un(1);return We(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const s=Ge(i).index;return We(B()._tabFocusChanged(r,s))}),ie(2,"span",8)(3,"div",9),y(4,"span",10)(5,"span",11),A(6,Aie,1,1,"ng-template",12),A(7,Rie,1,1,"ng-template",null,13,kh),w()()()}if(2&e){const i=t.$implicit,n=t.index,r=un(1),o=un(8),s=B();se("mdc-tab--active",s.selectedIndex===n),D("id",s._getTabLabelId(n))("ngClass",i.labelClass)("disabled",i.disabled)("fitInkBarToContent",s.fitInkBarToContent),de("tabIndex",s._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(n))("aria-selected",s.selectedIndex===n)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),x(3),D("matRippleTrigger",r)("matRippleDisabled",i.disabled||s.disableRipple),x(3),D("ngIf",i.templateLabel)("ngIfElse",o)}}function Fie(e,t){if(1&e){const i=Pt();y(0,"mat-tab-body",15),$("_onCentered",function(){return Ge(i),We(B()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Ge(i),We(B()._setTabBodyWrapperHeight(r))}),w()}if(2&e){const i=t.$implicit,n=t.index,r=B();se("mat-mdc-tab-body-active",r.selectedIndex===n),D("id",r._getTabContentId(n))("ngClass",i.bodyClass)("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),de("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))("aria-hidden",r.selectedIndex!==n)}}const Pie={translateTab:ni("translateTab",[qt("center, void, left-origin-center, right-origin-center",je({transform:"none"})),qt("left",je({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),qt("right",je({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Bt("* => left, * => right, left => center, right => center",Lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Bt("void => left-origin-center",[je({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Bt("void => right-origin-center",[je({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Nie=(()=>{var e;class t extends La{constructor(n,r,o,s){super(n,r,s),this._host=o,this._centeringSub=Ae.EMPTY,this._leavingSub=Ae.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(nn(this._host._isCenterPosition(this._host._position))).subscribe(n=>{n&&!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()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Bo),p(pt),p(He(()=>$P)),p(he))},e.\u0275dir=T({type:e,selectors:[["","matTabBodyHost",""]],features:[P]}),t})(),Lie=(()=>{var e;class t{set position(n){this._positionIndex=n,this._computePositionAnimationState()}constructor(n,r,o){this._elementRef=n,this._dir=r,this._dirChangeSubscription=Ae.EMPTY,this._translateTabComplete=new Y,this._onCentering=new U,this._beforeCentering=new U,this._afterLeavingCenter=new U,this._onCentered=new U(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe(Is((s,a)=>s.fromState===a.fromState&&s.toState===a.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.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(n){const r=this._isCenterPosition(n.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}_computePositionAnimationState(n=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}_computePositionFromOrigin(n){const r=this._getLayoutDirection();return"ltr"==r&&n<=0||"rtl"==r&&n>0?"left-origin-center":"right-origin-center"}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(hn,8),p(Fe))},e.\u0275dir=T({type:e,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),$P=(()=>{var e;class t extends Lie{constructor(n,r,o){super(n,r,o)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(hn,8),p(Fe))},e.\u0275cmp=fe({type:e,selectors:[["mat-tab-body"]],viewQuery:function(n,r){if(1&n&&ke(La,5),2&n){let o;H(o=z())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[P],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(n,r){1&n&&(y(0,"div",0,1),$("@translateTab.start",function(s){return r._onTranslateTabStarted(s)})("@translateTab.done",function(s){return r._translateTabComplete.next(s)}),A(2,vie,0,0,"ng-template",2),w()),2&n&&D("@translateTab",function uk(e,t,i,n,r){return fk(F(),Dn(),e,t,i,n,r)}(3,wie,r._position,function dk(e,t,i,n){return hk(F(),Dn(),e,t,i,n)}(1,yie,r.animationDuration)))},dependencies:[Nie],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:[Pie.translateTab]}}),t})();const Bie=new M("MatTabContent");let Vie=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct))},e.\u0275dir=T({type:e,selectors:[["","matTabContent",""]],features:[J([{provide:Bie,useExisting:e}])]}),t})();const jie=new M("MatTabLabel"),qP=new M("MAT_TAB");let GP=(()=>{var e;class t extends r9{constructor(n,r,o){super(n,r),this._closestTab=o}}return(e=t).\u0275fac=function(n){return new(n||e)(p(ct),p(pt),p(qP,8))},e.\u0275dir=T({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[J([{provide:jie,useExisting:e}]),P]}),t})();const Cw="mdc-tab-indicator--active",WP="mdc-tab-indicator--no-transition";class Hie{constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const i=this._items.find(r=>r.elementRef.nativeElement===t),n=this._currentItem;if(i!==n&&(n?.deactivateInkBar(),i)){const r=n?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(r),this._currentItem=i}}}function zie(e){return class extends e{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const i=Q(t);this._fitToContent!==i&&(this._fitToContent=i,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const i=this.elementRef.nativeElement;if(!t||!i.getBoundingClientRect||!this._inkBarContentElement)return void i.classList.add(Cw);const n=i.getBoundingClientRect(),r=t.width/n.width,o=t.left-n.left;i.classList.add(WP),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),i.getBoundingClientRect(),i.classList.remove(WP),i.classList.add(Cw),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Cw)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const $ie=es(class{}),qie=zie((()=>{var e;class t extends $ie{constructor(n){super(),this.elementRef=n}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W))},e.\u0275dir=T({type:e,features:[P]}),t})());let QP=(()=>{var e;class t extends qie{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,r){2&n&&(de("aria-disabled",!!r.disabled),se("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[P]}),t})();const Gie=es(class{}),YP=new M("MAT_TAB_GROUP");let Wie=(()=>{var e;class t extends Gie{get content(){return this._contentPortal}constructor(n,r){super(),this._viewContainerRef=n,this._closestTabGroup=r,this.textLabel="",this._contentPortal=null,this._stateChanges=new Y,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(n){(n.hasOwnProperty("textLabel")||n.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new co(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(n){n&&n._closestTab===this&&(this._templateLabel=n)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(pt),p(YP,8))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(ct,7),2&n){let o;H(o=z())&&(r._implicitContent=o.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[P,kt]}),t})(),KP=(()=>{var e;class t extends Wie{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(n){this._setTemplateLabelInput(n)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-tab"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,Vie,7,ct),Ee(o,GP,5)),2&n){let s;H(s=z())&&(r._explicitContent=s.first),H(s=z())&&(r.templateLabel=s.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[J([{provide:qP,useExisting:e}]),P],ngContentSelectors:UP,decls:1,vars:0,template:function(n,r){1&n&&(ze(),A(0,xie,1,0,"ng-template"))},encapsulation:2}),t})();const XP=ro({passive:!0});let Kie=(()=>{var e;class t{get disablePagination(){return this._disablePagination}set disablePagination(n){this._disablePagination=Q(n)}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){n=Bi(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(n,r,o,s,a,c,l){this._elementRef=n,this._changeDetectorRef=r,this._viewportRuler=o,this._dir=s,this._ngZone=a,this._platform=c,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Y,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Y,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new U,this.indexFocused=new U,a.runOutsideAngular(()=>{Vi(n.nativeElement,"mouseleave").pipe(ce(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Vi(this._previousPaginator.nativeElement,"touchstart",XP).pipe(ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Vi(this._nextPaginator.nativeElement,"touchstart",XP).pipe(ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const n=this._dir?this._dir.change:re("ltr"),r=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Fv(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Xe(1)).subscribe(o),Rt(n,r,this._items.changes,this._itemsResized()).pipe(ce(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return"function"!=typeof ResizeObserver?Xt:this._items.changes.pipe(nn(this._items),Vt(n=>new Me(r=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(s=>r.next(s));return n.forEach(s=>o.observe(s.elementRef.nativeElement)),()=>{o.disconnect()}}))),kv(1),Ve(n=>n.some(r=>r.contentRect.width>0&&r.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(n){if(!An(n))switch(n.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const r=this._items.get(this.focusIndex);r&&!r.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n))}break;default:this._keyManager.onKeydown(n)}}_onContentChanges(){const n=this._elementRef.nativeElement.textContent;n!==this._currentTextContent&&(this._currentTextContent=n||"",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(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}_isValidIndex(n){return!this._items||!!this._items.toArray()[n]}_setTabFocus(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();const r=this._tabListContainer.nativeElement;r.scrollLeft="ltr"==this._getLayoutDirection()?0:r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const n=this.scrollDistance,r="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(n){this._scrollTo(n)}_scrollHeader(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(n){this._stopInterval(),this._scrollHeader(n)}_scrollToLabel(n){if(this.disablePagination)return;const r=this._items?this._items.toArray()[n]:null;if(!r)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:a}=r.elementRef.nativeElement;let c,l;"ltr"==this._getLayoutDirection()?(c=s,l=c+a):(l=this._tabListInner.nativeElement.offsetWidth-s,c=l-a);const d=this.scrollDistance,u=this.scrollDistance+o;cu&&(this.scrollDistance+=Math.min(l-u,c-d))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const n=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}_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 n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=n?n.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(n,r){r&&null!=r.button&&0!==r.button||(this._stopInterval(),Kv(650,100).pipe(ce(Rt(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:s}=this._scrollHeader(n);(0===s||s>=o)&&this._stopInterval()}))}_scrollTo(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(Rr),p(hn,8),p(G),p(nt),p(_t,8))},e.\u0275dir=T({type:e,inputs:{disablePagination:"disablePagination"}}),t})(),Xie=(()=>{var e;class t extends Kie{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Q(n)}constructor(n,r,o,s,a,c,l){super(n,r,o,s,a,c,l),this._disableRipple=!1}_itemSelected(n){n.preventDefault()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(Rr),p(hn,8),p(G),p(nt),p(_t,8))},e.\u0275dir=T({type:e,inputs:{disableRipple:"disableRipple"},features:[P]}),t})(),Zie=(()=>{var e;class t extends Xie{constructor(n,r,o,s,a,c,l){super(n,r,o,s,a,c,l)}ngAfterContentInit(){this._inkBar=new Hie(this._items),super.ngAfterContentInit()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(Rr),p(hn,8),p(G),p(nt),p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-tab-header"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,QP,4),2&n){let s;H(s=z())&&(r._items=s)}},viewQuery:function(n,r){if(1&n&&(ke(Cie,7),ke(Die,7),ke(Eie,7),ke(Sie,5),ke(kie,5)),2&n){let o;H(o=z())&&(r._tabListContainer=o.first),H(o=z())&&(r._tabList=o.first),H(o=z())&&(r._tabListInner=o.first),H(o=z())&&(r._nextPaginator=o.first),H(o=z())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,r){2&n&&se("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[P],ngContentSelectors:UP,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(n,r){1&n&&(ze(),y(0,"button",0,1),$("click",function(){return r._handlePaginatorClick("before")})("mousedown",function(s){return r._handlePaginatorPress("before",s)})("touchend",function(){return r._stopInterval()}),ie(2,"div",2),w(),y(3,"div",3,4),$("keydown",function(s){return r._handleKeydown(s)}),y(5,"div",5,6),$("cdkObserveContent",function(){return r._onContentChanges()}),y(7,"div",7,8),X(9),w()()(),y(10,"button",9,10),$("mousedown",function(s){return r._handlePaginatorPress("after",s)})("click",function(){return r._handlePaginatorClick("after")})("touchend",function(){return r._stopInterval()}),ie(12,"div",2),w()),2&n&&(se("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),D("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),x(3),se("_mat-animation-noopable","NoopAnimations"===r._animationMode),x(7),se("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),D("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[ao,p7],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.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}.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}),t})();const ZP=new M("MAT_TABS_CONFIG");let Jie=0;const ere=ts(so(class{constructor(e){this._elementRef=e}}),"primary");let tre=(()=>{var e;class t extends ere{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(n){this._dynamicHeight=Q(n)}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){this._indexToSelect=Bi(n,null)}get animationDuration(){return this._animationDuration}set animationDuration(n){this._animationDuration=/^\d+$/.test(n+"")?n+"ms":n}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(n){this._contentTabIndex=Bi(n,null)}get disablePagination(){return this._disablePagination}set disablePagination(n){this._disablePagination=Q(n)}get preserveContent(){return this._preserveContent}set preserveContent(n){this._preserveContent=Q(n)}get backgroundColor(){return this._backgroundColor}set backgroundColor(n){const r=this._elementRef.nativeElement.classList;r.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),n&&r.add("mat-tabs-with-background",`mat-background-${n}`),this._backgroundColor=n}constructor(n,r,o,s){super(n),this._changeDetectorRef=r,this._animationMode=s,this._tabs=new Cr,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ae.EMPTY,this._tabLabelSubscription=Ae.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new U,this.focusChange=new U,this.animationDone=new U,this.selectedTabChange=new U(!0),this._groupId=Jie++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,this.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,this.contentTabIndex=o?.contentTabIndex??null,this.preserveContent=!!o?.preserveContent}ngAfterContentChecked(){const n=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=n){const r=null==this._selectedIndex;if(!r){this.selectedTabChange.emit(this._createChangeEvent(n));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===n),r||(this.selectedIndexChange.emit(n),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,o)=>{r.position=o-n,null!=this._selectedIndex&&0==r.position&&!r.origin&&(r.origin=n-this._selectedIndex)}),this._selectedIndex!==n&&(this._selectedIndex=n,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const n=this._clampTabIndex(this._indexToSelect);if(n===this._selectedIndex){const r=this._tabs.toArray();let o;for(let s=0;s{r[n].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(n))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(nn(this._allTabs)).subscribe(n=>{this._tabs.reset(n.filter(r=>r._closestTabGroup===this||!r._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(n){const r=this._tabHeader;r&&(r.focusIndex=n)}_focusChanged(n){this._lastFocusedTabIndex=n,this.focusChange.emit(this._createChangeEvent(n))}_createChangeEvent(n){const r=new ire;return r.index=n,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[n]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Rt(...this._tabs.map(n=>n._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(n){return Math.min(this._tabs.length-1,Math.max(n||0,0))}_getTabLabelId(n){return`mat-tab-label-${this._groupId}-${n}`}_getTabContentId(n){return`mat-tab-content-${this._groupId}-${n}`}_setTabBodyWrapperHeight(n){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=n+"px")}_removeTabBodyWrapperHeight(){const n=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=n.clientHeight,n.style.height="",this.animationDone.emit()}_handleClick(n,r,o){r.focusIndex=o,n.disabled||(this.selectedIndex=o)}_getTabIndex(n){return n===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(n,r){n&&"mouse"!==n&&"touch"!==n&&(this._tabHeader.focusIndex=r)}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(ZP,8),p(_t,8))},e.\u0275dir=T({type:e,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[P]}),t})(),nre=(()=>{var e;class t extends tre{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(n){this._fitInkBarToContent=Q(n),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(n){this._stretchTabs=Q(n)}constructor(n,r,o,s){super(n,r,o,s),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!o||null==o.fitInkBarToContent)&&o.fitInkBarToContent,this.stretchTabs=!o||null==o.stretchTabs||o.stretchTabs}}return(e=t).\u0275fac=function(n){return new(n||e)(p(W),p(Fe),p(ZP,8),p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-tab-group"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,KP,5),2&n){let s;H(s=z())&&(r._allTabs=s)}},viewQuery:function(n,r){if(1&n&&(ke(Tie,5),ke(Mie,5)),2&n){let o;H(o=z())&&(r._tabBodyWrapper=o.first),H(o=z())&&(r._tabHeader=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(n,r){2&n&&(kn("--mat-tab-animation-duration",r.animationDuration),se("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===r.headerPosition)("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[J([{provide:YP,useExisting:e}]),P],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(n,r){1&n&&(y(0,"mat-tab-header",0,1),$("indexFocused",function(s){return r._focusChanged(s)})("selectFocusedIndex",function(s){return r.selectedIndex=s}),A(2,Oie,9,17,"div",2),w(),y(3,"div",3,4),A(5,Fie,1,12,"mat-tab-body",5),w()),2&n&&(D("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),x(2),D("ngForOf",r._tabs),x(1),se("_mat-animation-noopable","NoopAnimations"===r._animationMode),x(2),D("ngForOf",r._tabs))},dependencies:[Ea,Wh,_i,La,ao,Y7,$P,QP,Zie],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}),t})();class ire{}let rre=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,ve,qf,is,Tv,qI,ve]}),t})();const ore=["trigger"],sre=["panel"];function are(e,t){if(1&e&&(y(0,"span",10),R(1),w()),2&e){const i=B();x(1),bt(i.placeholder)}}function cre(e,t){if(1&e&&(y(0,"span",14),R(1),w()),2&e){const i=B(2);x(1),bt(i.triggerValue)}}function lre(e,t){1&e&&X(0,0,["*ngSwitchCase","true"])}function dre(e,t){1&e&&(y(0,"span",11),A(1,cre,2,1,"span",12),A(2,lre,1,0,"ng-content",13),w()),2&e&&(D("ngSwitch",!!B().customTrigger),x(2),D("ngSwitchCase",!0))}function ure(e,t){if(1&e){const i=Pt();zs(),sg(),y(0,"div",15,16),$("@transformPanel.done",function(r){return Ge(i),We(B()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Ge(i),We(B()._handleKeydown(r))}),X(2,1),w()}if(2&e){const i=B();(function gS(e,t,i){Fi(Xn,rr,da(F(),e,t,i),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",i._getPanelTheme(),""),D("ngClass",i.panelClass)("@transformPanel","showing"),de("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const hre=[[["mat-select-trigger"]],"*"],fre=["mat-select-trigger","*"],pre={transformPanelWrap:ni("transformPanelWrap",[Bt("* => void",X$("@transformPanel",[K$()],{optional:!0}))]),transformPanel:ni("transformPanel",[qt("void",je({opacity:0,transform:"scale(1, 0.8)"})),Bt("void => showing",Lt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1, 1)"}))),Bt("* => void",Lt("100ms linear",je({opacity:0})))])};let JP=0;const eN=new M("mat-select-scroll-strategy"),gre=new M("MAT_SELECT_CONFIG"),_re={provide:eN,deps:[wi],useFactory:function mre(e){return()=>e.scrollStrategies.reposition()}},bre=new M("MatSelectTrigger");class vre{constructor(t,i){this.source=t,this.value=i}}const yre=so(ns(es(Vv(class{constructor(e,t,i,n,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new Y}}))));let wre=(()=>{var e;class t extends yre{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(n){this._placeholder=n,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Iy.required)??!1}set required(n){this._required=Q(n),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(n){this._multiple=Q(n)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(n){this._disableOptionCentering=Q(n)}get compareWith(){return this._compareWith}set compareWith(n){this._compareWith=n,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(n){this._assignValue(n)&&this._onChange(n)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(n){this._typeaheadDebounceInterval=Bi(n)}get id(){return this._id}set id(n){this._id=n||this._uid,this.stateChanges.next()}constructor(n,r,o,s,a,c,l,d,u,h,f,m,g,b){super(a,s,l,d,h),this._viewportRuler=n,this._changeDetectorRef=r,this._ngZone=o,this._dir=c,this._parentFormField=u,this._liveAnnouncer=g,this._defaultOptions=b,this._panelOpen=!1,this._compareWith=(_,v)=>_===v,this._uid="mat-select-"+JP++,this._triggerAriaLabelledBy=null,this._destroy=new Y,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+JP++,this._panelDoneAnimatingStream=new Y,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Kf(()=>{const _=this.options;return _?_.changes.pipe(nn(_),Vt(()=>Rt(..._.map(v=>v.onSelectionChange)))):this._ngZone.onStable.pipe(Xe(1),Vt(()=>this.optionSelectionChanges))}),this.openedChange=new U,this._openedStream=this.openedChange.pipe(Ve(_=>_),Z(()=>{})),this._closedStream=this.openedChange.pipe(Ve(_=>!_),Z(()=>{})),this.selectionChange=new U,this.valueChange=new U,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=b?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=b.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new GR(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Is(),ce(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ce(this._destroy)).subscribe(n=>{n.added.forEach(r=>r.select()),n.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(nn(null),ce(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const n=this._getTriggerAriaLabelledby(),r=this.ngControl;if(n!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=n,n?o.setAttribute("aria-labelledby",n):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(void 0!==this._previousControl&&null!==r.disabled&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(n){(n.disabled||n.userAriaDescribedBy)&&this.stateChanges.next(),n.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const n=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!n)return;const r=`${this.id}-panel`;this._trackedModal&&ql(this._trackedModal,"aria-owns",r),Av(n,"aria-owns",r),this._trackedModal=n}_clearFromModal(){this._trackedModal&&(ql(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(n){this._assignValue(n)}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const n=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&n.reverse(),n.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(n){this.disabled||(this.panelOpen?this._handleOpenKeydown(n):this._handleClosedKeydown(n))}_handleClosedKeydown(n){const r=n.keyCode,o=40===r||38===r||37===r||39===r,s=13===r||32===r,a=this._keyManager;if(!a.isTyping()&&s&&!An(n)||(this.multiple||n.altKey)&&o)n.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(n);const l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(n){const r=this._keyManager,o=n.keyCode,s=40===o||38===o,a=r.isTyping();if(s&&n.altKey)n.preventDefault(),this.close();else if(a||13!==o&&32!==o||!r.activeItem||An(n))if(!a&&this._multiple&&65===o&&n.ctrlKey){n.preventDefault();const c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{const c=r.activeItemIndex;r.onKeydown(n),this._multiple&&s&&n.shiftKey&&r.activeItem&&r.activeItemIndex!==c&&r.activeItem._selectViaInteraction()}else n.preventDefault(),r.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Xe(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(n){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&n)Array.isArray(n),n.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{const r=this._selectOptionByValue(n);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(n){const r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,n)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(n){return!!(n!==this._value||this._multiple&&Array.isArray(n))&&(this.options&&this._setSelectionByValue(n),this._value=n,!0)}_skipPredicate(n){return n.disabled}_initKeyManager(){this._keyManager=new LI(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const n=Rt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ce(n)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Rt(...this.options.map(r=>r._stateChanges)).pipe(ce(n)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(n,r){const o=this._selectionModel.isSelected(n);null!=n.value||this._multiple?(o!==n.selected&&(n.selected?this._selectionModel.select(n):this._selectionModel.deselect(n)),r&&this._keyManager.setActiveItem(n),this.multiple&&(this._sortValues(),r&&this.focus())):(n.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(n.value)),o!==this._selectionModel.isSelected(n)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const n=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,n):n.indexOf(r)-n.indexOf(o)),this.stateChanges.next()}}_propagateChanges(n){let r=null;r=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:n,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let n=-1;for(let r=0;r0}focus(n){this._elementRef.nativeElement.focus(n)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const n=this._parentFormField?.getLabelId();return this.ariaLabelledby?(n?n+" ":"")+this.ariaLabelledby:n}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const n=this._parentFormField?.getLabelId();let r=(n?n+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(n){this.openedChange.emit(n)}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Rr),p(Fe),p(G),p(Ff),p(W),p(hn,8),p(Ya,8),p(Xa,8),p(Vd,8),p(Hi,10),ui("tabindex"),p(eN),p(Lv),p(gre,8))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&(ke(ore,5),ke(sre,5),ke(P1,5)),2&n){let o;H(o=z())&&(r.trigger=o.first),H(o=z())&&(r.panel=o.first),H(o=z())&&(r._overlayDir=o.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[P,kt]}),t})(),xre=(()=>{var e;class t extends wre{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=n=>!this.panelOpen&&n.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ce(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(n){const r=this.options.toArray()[n];if(r){const o=this.panel.nativeElement,s=n1(n,this.options,this.optionGroups),a=r._getHostElement();o.scrollTop=0===n&&1===s?0:r1(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(n){return new vre(this,n)}_getOverlayWidth(n){return"auto"===this.panelWidth?(n instanceof iy?n.elementRef:n||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=Q(n),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const n of this.options)n._changeDetectorRef.markForCheck()}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,bre,5),Ee(o,Nf,5),Ee(o,Hv,5)),2&n){let s;H(s=z())&&(r.customTrigger=s.first),H(s=z())&&(r.options=s),H(s=z())&&(r.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&n&&(de("id",r.id)("tabindex",r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),se("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[J([{provide:Kp,useExisting:e},{provide:jv,useExisting:e}]),P],ngContentSelectors:fre,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(n,r){if(1&n&&(ze(hre),y(0,"div",0,1),$("click",function(){return r.toggle()}),y(3,"div",2),A(4,are,2,1,"span",3),A(5,dre,3,2,"span",4),w(),y(6,"div",5)(7,"div",6),zs(),y(8,"svg",7),ie(9,"path",8),w()()()(),A(10,ure,3,9,"ng-template",9),$("backdropClick",function(){return r.close()})("attach",function(){return r._onAttached()})("detach",function(){return r.close()})),2&n){const o=un(1);x(3),D("ngSwitch",r.empty),de("id",r._valueId),x(1),D("ngSwitchCase",!0),x(1),D("ngSwitchCase",!1),x(5),D("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Ea,Sa,Qh,WT,P1,iy],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[pre.transformPanel]},changeDetection:0}),t})(),tN=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[_re],imports:[vn,ed,Yl,ve,lo,jd,Yl,ve]}),t})();const Cre=["tooltip"],nN=new M("mat-tooltip-scroll-strategy"),Sre={provide:nN,deps:[wi],useFactory:function Ere(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},Tre=new M("mat-tooltip-default-options",{providedIn:"root",factory:function kre(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iN="tooltip-panel",rN=ro({passive:!0});let Fre=(()=>{var e;class t{get position(){return this._position}set position(n){n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(n){this._positionAtOrigin=Q(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=Bi(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=Bi(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(n){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).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(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(n,r,o,s,a,c,l,d,u,h,f,m){this._overlay=n,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=c,this._ariaDescriber=l,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y,this._scrollStrategy=u,this._document=m,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(ce(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ce(this._destroyed)).subscribe(n=>{n?"keyboard"===n&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{n.removeEventListener(r,o,rN)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}show(n=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(r);this._detach(),this._portal=this._portal||new $f(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(ce(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(n)}hide(n=this.hideDelay){const r=this._tooltipInstance;r&&(r.isVisible()?r.hide(n):(r._cancelPendingAnimations(),this._detach()))}toggle(n){this._isTooltipVisible()?this.hide():this.show(void 0,n)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(n){if(this._overlayRef){const s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&s._origin instanceof W)return this._overlayRef;this._detach()}const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&n||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(ce(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${iN}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ce(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ce(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ce(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!An(s)&&(s.preventDefault(),s.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(n){const r=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset({...o.main,...s.main}),this._addOffset({...o.fallback,...s.fallback})])}_addOffset(n){return n}_getOrigin(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r||"below"==r?o={originX:"center",originY:"above"==r?"top":"bottom"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={originX:"start",originY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={originX:"end",originY:"center"});const{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r?o={overlayX:"center",overlayY:"bottom"}:"below"==r?o={overlayX:"center",overlayY:"top"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={overlayX:"end",overlayY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={overlayX:"start",overlayY:"center"});const{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Xe(1),ce(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,r){return"above"===this.position||"below"===this.position?"top"===r?r="bottom":"bottom"===r&&(r="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:r}}_updateCurrentPositionClass(n){const{overlayY:r,originX:o,originY:s}=n;let a;if(a="center"===r?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===r&&"top"===s?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const l=`${this._cssClassPrefix}-${iN}-`;c.removePanelClass(l+this._currentPosition),c.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{let r;this._setupPointerExitEventsIfNeeded(),void 0!==n.x&&void 0!==n.y&&(r=n),this.show(void 0,r)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{const r=n.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",r=>{const o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,rN)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){const r=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){const n=this.touchGestures;if("off"!==n){const r=this._elementRef.nativeElement,o=r.style;("on"===n||"INPUT"!==r.nodeName&&"TEXTAREA"!==r.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===n||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Pre=(()=>{var e;class t extends Fre{constructor(n,r,o,s,a,c,l,d,u,h,f,m){super(n,r,o,s,a,c,l,d,u,h,f,m),this._tooltipComponent=Lre,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(n){const o=!this._dir||"ltr"==this._dir.value;return"top"===n.originY?n.offsetY=-8:"bottom"===n.originY?n.offsetY=8:"start"===n.originX?n.offsetX=o?-8:8:"end"===n.originX&&(n.offsetX=o?8:-8),n}}return(e=t).\u0275fac=function(n){return new(n||e)(p(wi),p(W),p(Gf),p(pt),p(G),p(nt),p(T7),p(ar),p(nN),p(hn,8),p(Tre,8),p(he))},e.\u0275dir=T({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-mdc-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[P]}),t})(),Nre=(()=>{var e;class t{constructor(n,r){this._changeDetectorRef=n,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Y,this._animationsDisabled="NoopAnimations"===r}show(n){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},n)}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:n}){(!n||!this._triggerElement.contains(n))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){const r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(n?s:o),r.classList.add(n?o:s),this._isVisible=n,n&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(r);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe),p(_t,8))},e.\u0275dir=T({type:e}),t})(),Lre=(()=>{var e;class t extends Nre{constructor(n,r,o){super(n,o),this._elementRef=r,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>24&&n.width>=200}}return(e=t).\u0275fac=function(n){return new(n||e)(p(Fe),p(W),p(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(1&n&&ke(Cre,7),2&n){let o;H(o=z())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){1&n&&$("mouseleave",function(s){return r._handleMouseLeave(s)}),2&n&&kn("zoom",r.isVisible()?1:null)},features:[P],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){1&n&&(y(0,"div",0,1),$("animationend",function(s){return r._handleAnimationEnd(s)}),y(2,"div",2),R(3),w()()),2&n&&(se("mdc-tooltip--multiline",r._isMultiline),D("ngClass",r.tooltipClass),x(3),bt(r.message))},dependencies:[Ea],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-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.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-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}),t})(),Bre=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[Sre],imports:[qI,vn,ed,ve,ve,lo]}),t})();function Vre(e,t){if(1&e&&(y(0,"mat-option",9),R(1),w()),2&e){const i=t.$implicit;D("value",i),x(1),Ue(" ",i," ")}}let jre=(()=>{var e;class t{constructor(){this.pageIndex=0,this.pageSize=10,this.pageSizes=[10,20,50,100],this.pageLength=0,this.totalLength=null,this.totalIsEstimate=!1,this.hasNextPage=null,this.page=new U}get firstItemIndex(){return this.pageIndex*this.pageSize+1}get lastItemIndex(){return this.pageIndex*this.pageSize+this.pageLength}get hasTotalLength(){return"number"==typeof this.totalLength}get hasPreviousPage(){return this.pageIndex>0}emitChange(){this.page.emit({pageIndex:this.pageIndex,pageSize:this.pageSize})}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["app-paginator"]],inputs:{pageIndex:["pageIndex","pageIndex",vb],pageSize:["pageSize","pageSize",vb],pageSizes:"pageSizes",pageLength:["pageLength","pageLength",vb],totalLength:"totalLength",totalIsEstimate:"totalIsEstimate",hasNextPage:"hasNextPage"},outputs:{page:"page"},features:[x_],decls:21,vars:14,consts:[[1,"paginator"],[1,"field-items-per-page"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"paginator-description"],[1,"paginator-navigation"],["mat-icon-button","","matTooltip","First page",3,"disabled","click"],["mat-icon-button","","matTooltip","Previous page",3,"disabled","click"],["mat-icon-button","","matTooltip","Next page",3,"disabled","click"],[3,"value"]],template:function(n,r){1&n&&(y(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),R(3,"Items per page"),w(),y(4,"mat-select",2),$("valueChange",function(s){return r.pageSize=s,r.pageIndex=0,r.emitChange()}),A(5,Vre,2,2,"mat-option",3),w()(),y(6,"p",4),R(7),Ut(8,"number"),Ut(9,"number"),Ut(10,"number"),w(),y(11,"div",5)(12,"button",6),$("click",function(){return r.pageIndex=0,r.emitChange()}),y(13,"mat-icon"),R(14,"first_page"),w()(),y(15,"button",7),$("click",function(){return r.pageIndex=r.pageIndex-1,r.emitChange()}),y(16,"mat-icon"),R(17,"navigate_before"),w()(),y(18,"button",8),$("click",function(){return r.pageIndex=r.pageIndex+1,r.emitChange()}),y(19,"mat-icon"),R(20,"navigate_next"),w()()()()),2&n&&(x(4),D("value",r.pageSize),x(1),D("ngForOf",r.pageSizes),x(2),N_(" ",tn(8,8,r.firstItemIndex)," - ",tn(9,10,r.lastItemIndex),"",r.hasTotalLength?" of "+(r.totalIsEstimate?"~":"")+tn(10,12,r.totalLength):""," "),x(5),D("disabled",!r.hasPreviousPage),x(3),D("disabled",!r.hasPreviousPage),x(3),D("disabled",!r.hasNextPage))},dependencies:[Wh,YF,nw,Nf,xre,Wv,$v,Pre,Fb],styles:[".paginator[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.paginator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 20px}.paginator[_ngcontent-%COMP%] .field-items-per-page[_ngcontent-%COMP%]{width:140px}.paginator[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}"]}),t})();var Hre=xs(622);let zre=(()=>{class e{static transformOne(i,n){return Hre(i,n)}transform(i,n){return Array.isArray(i)?i.map(r=>e.transformOne(r,n)):e.transformOne(i,n)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=wn({name:"filesize",type:e,pure:!0}),e})(),Ure=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),e})();function $re(e,t){if(1&e&&(y(0,"small"),R(1),Ut(2,"number"),w()),2&e){const i=t.ngIf;x(1),Uo("",i.isEstimate?"~":"","",tn(2,2,i.count),"")}}function qre(e,t){if(1&e&&(y(0,"small"),R(1),Ut(2,"number"),w()),2&e){const i=t.ngIf;x(1),Uo("",i.isEstimate?"~":"","",tn(2,2,i.count),"")}}function Gre(e,t){if(1&e&&(y(0,"mat-radio-button",50)(1,"mat-icon"),R(2),w(),R(3),A(4,qre,3,4,"small",6),Ut(5,"async"),w()),2&e){const i=t.$implicit,n=B();D("value",i.key),x(2),bt(i.value.icon),x(1),Ue(" ",i.value.plural," "),x(1),D("ngIf",tn(5,4,n.search.contentTypeCount(i.key)))}}function Wre(e,t){if(1&e){const i=Pt();y(0,"mat-checkbox",55),$("change",function(r){const s=Ge(i).$implicit,a=B(2).$implicit,c=B();return r.checked||a.isEmpty()?a.select(s.value):a.deselect(s.value),We(c.loadResult())}),R(1),y(2,"small"),R(3),Ut(4,"number"),w()()}if(2&e){const i=t.$implicit,n=B(2).$implicit;kn("display","block"),D("checked",n.isEmpty()||n.isSelected(i.value))("color","accent"),x(1),Ue(" ",i.label," "),x(2),Uo("",i.isEstimate?"~":"","",tn(4,7,i.count),"")}}function Qre(e,t){1&e&&(y(0,"span",56),R(1,"No aggregation results"),w())}function Yre(e,t){if(1&e){const i=Pt();y(0,"mat-expansion-panel",52),$("opened",function(){Ge(i);const r=B().$implicit,o=B();return r.activate(),We(o.loadResult())})("closed",function(){Ge(i);const r=B().$implicit,o=B();return r.deactivateAndReset(),We(o.loadResult())}),y(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon"),R(4),w(),R(5),w()(),y(6,"section"),A(7,Wre,5,9,"mat-checkbox",53),A(8,Qre,2,0,"span",54),Ut(9,"async"),w()()}if(2&e){const i=B().$implicit,n=B();D("expanded",i.isActive()),x(4),bt(i.icon),x(1),Ue(" ",i.name,""),x(1),bh(i.isEmpty()?"empty":"active"),x(1),D("ngForOf",i.aggregations),x(1),D("ngIf",!(tn(9,7,n.search.loading$)||null!=i.aggregations&&i.aggregations.length))}}function Kre(e,t){if(1&e&&(Ht(0),A(1,Yre,10,9,"mat-expansion-panel",51),zt()),2&e){const i=t.$implicit,n=B();x(1),D("ngIf",i.isRelevant(n.contentType.value))}}function Xre(e,t){if(1&e){const i=Pt();y(0,"button",57),$("click",function(){Ge(i);const r=B();return r.queryString.reset(),r.search.setQueryString(""),r.search.firstPage(),We(r.search.loadResult())}),y(1,"mat-icon"),R(2,"close"),w()()}}function Zre(e,t){1&e&&(y(0,"mat-icon"),R(1,"sell"),w(),R(2," Edit tags "))}function Jre(e,t){if(1&e){const i=Pt();y(0,"mat-chip-row",58),$("edited",function(r){const s=Ge(i).$implicit;return We(B().renameTag(s,r.value))})("removed",function(){const o=Ge(i).$implicit;return We(B().deleteTag(o))}),R(1),y(2,"button",59)(3,"mat-icon"),R(4,"cancel"),w()()()}if(2&e){const i=t.$implicit;D("editable",!0)("aria-description","press enter to edit"),x(1),Ue(" ",i," "),x(1),de("aria-label","remove "+i)}}function eoe(e,t){if(1&e&&(y(0,"mat-option",50),R(1),w()),2&e){const i=t.$implicit;D("value",i),x(1),bt(i)}}function toe(e,t){1&e&&(y(0,"mat-icon"),R(1,"delete_forever"),w(),R(2," Delete "))}function noe(e,t){1&e&&(y(0,"mat-icon",60),R(1,"close"),w())}function ioe(e,t){1&e&&(y(0,"mat-tab"),A(1,noe,2,0,"ng-template",19),w())}function roe(e,t){1&e&&ie(0,"mat-progress-bar",61)}function ooe(e,t){if(1&e){const i=Pt();y(0,"th",62)(1,"mat-checkbox",63),$("change",function(){return Ge(i),We(B().toggleAllRows())}),w()()}if(2&e){const i=B();x(1),D("checked",i.selectedItems.hasValue()&&i.isAllSelected())("indeterminate",i.selectedItems.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function soe(e,t){if(1&e){const i=Pt();y(0,"td",64)(1,"mat-checkbox",65),$("click",function(r){return r.stopPropagation()})("change",function(r){const s=Ge(i).$implicit,a=B();return We(r?a.selectedItems.toggle(s):null)}),w()()}if(2&e){const i=t.$implicit,n=B();x(1),D("checked",n.selectedItems.isSelected(i))("aria-label",n.checkboxLabel(i))}}function aoe(e,t){1&e&&(y(0,"th",62),R(1,"Summary"),w())}function coe(e,t){if(1&e&&(y(0,"mat-chip",69),R(1),w()),2&e){const i=t.$implicit;x(1),Ue(" ",i," ")}}function loe(e,t){if(1&e&&(Ht(0),R(1),zt()),2&e){const i=t.$implicit,n=t.index;x(1),Uo(" ",n>0?", ":"","",i.name," ")}}function doe(e,t){if(1&e&&(y(0,"mat-chip"),A(1,loe,2,2,"ng-container",8),w()),2&e){const i=t.$implicit;x(1),D("ngForOf",i)}}function uoe(e,t){if(1&e&&(y(0,"mat-chip"),R(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function hoe(e,t){if(1&e&&(y(0,"mat-chip"),R(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function foe(e,t){if(1&e&&(y(0,"mat-chip"),R(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function poe(e,t){if(1&e&&(y(0,"mat-chip"),R(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function moe(e,t){if(1&e&&(y(0,"mat-chip"),R(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function goe(e,t){if(1&e){const i=Pt();y(0,"td",66),$("click",function(r){const s=Ge(i).$implicit;return B().expandedItem.toggle(s.id),We(r.stopPropagation())}),y(1,"mat-icon"),R(2),w(),y(3,"span",67),R(4),w(),y(5,"mat-chip-set"),A(6,coe,2,1,"mat-chip",68),A(7,doe,2,1,"mat-chip",6),A(8,uoe,2,1,"mat-chip",6),A(9,hoe,2,1,"mat-chip",6),A(10,foe,2,1,"mat-chip",6),A(11,poe,2,1,"mat-chip",6),A(12,moe,2,1,"mat-chip",6),w()()}if(2&e){const i=t.$implicit,n=B();let r,o;x(1),de("title",null!==(r=null==(r=n.search.contentTypeInfo(i.contentType))?null:r.singular)&&void 0!==r?r:"Unknown"),x(1),bt(null!==(o=null==(o=n.search.contentTypeInfo(i.contentType))?null:o.icon)&&void 0!==o?o:"question_mark"),x(2),bt(n.item(i).title),x(2),D("ngForOf",n.item(i).torrent.tagNames),x(1),D("ngIf",n.item(i).languages),x(1),D("ngIf",null==n.item(i).video3d?null:n.item(i).video3d.slice(1)),x(1),D("ngIf",null==n.item(i).videoResolution?null:n.item(i).videoResolution.slice(1)),x(1),D("ngIf",n.item(i).videoSource),x(1),D("ngIf",n.item(i).videoCodec),x(1),D("ngIf",n.item(i).videoModifier)}}function _oe(e,t){1&e&&(y(0,"th",62),R(1,"Size"),w())}function boe(e,t){if(1&e&&(y(0,"td",64),R(1),Ut(2,"filesize"),w()),2&e){const i=t.$implicit,n=B();x(1),Ue(" ",tn(2,1,n.item(i).torrent.size)," ")}}function voe(e,t){1&e&&(y(0,"th",62)(1,"abbr",70),R(2,"S / L"),w()())}function yoe(e,t){if(1&e&&(y(0,"td",64),R(1),w()),2&e){const i=t.$implicit,n=B();let r;x(1),Uo(" ",null!==(r=n.item(i).torrent.seeders)&&void 0!==r?r:"?"," / ",null!==(r=n.item(i).torrent.leechers)&&void 0!==r?r:"?"," ")}}function woe(e,t){1&e&&(y(0,"th",71),R(1," Magnet "),w())}function xoe(e,t){if(1&e&&(y(0,"td",64)(1,"a",72),ie(2,"mat-icon",73),w()()),2&e){const i=t.$implicit,n=B();x(1),I_("href",n.item(i).torrent.magnetUri,tl)}}function Coe(e,t){1&e&&ie(0,"img",81),2&e&&D("src","https://image.tmdb.org/t/p/w300/"+t.ngIf,tl)}function Doe(e,t){if(1&e&&(y(0,"span"),R(1),w()),2&e){const i=t.$implicit,n=t.index;x(1),bt((n>0?", ":"")+i.name)}}function Eoe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"Title:"),w(),R(3),w()),2&e){const i=B().$implicit,n=B();x(3),Ue(" ",null==n.item(i).content?null:n.item(i).content.title," ")}}function Soe(e,t){if(1&e&&(Ht(0),R(1),zt()),2&e){const i=t.$implicit,n=t.index,r=B(2).$implicit,o=B();x(1),Ue(" ",(n>0?", ":"")+i.name+(i.id===(null==o.item(r).content||null==o.item(r).content.originalLanguage?null:o.item(r).content.originalLanguage.id)?" (original)":"")," ")}}function koe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"Language:"),w(),R(3,"\xa0"),A(4,Soe,2,1,"ng-container",8),w()),2&e){const i=B().$implicit,n=B();x(4),D("ngForOf",n.item(i).languages)}}function Toe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"Original release date:"),w(),R(3),w()),2&e){const i=B().$implicit,n=B();let r;x(3),Ue(" ",null!==(r=null==n.item(i).content?null:n.item(i).content.releaseDate)&&void 0!==r?r:null==n.item(i).content?null:n.item(i).content.releaseYear," ")}}function Moe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"Episodes:"),w(),R(3),w()),2&e){const i=B().$implicit,n=B();x(3),Ue(" ",n.item(i).episodes.label," ")}}function Ioe(e,t){if(1&e&&(y(0,"p"),R(1),w()),2&e){const i=B().$implicit,n=B();x(1),Ue(" ",n.item(i).content.overview," ")}}function Aoe(e,t){if(1&e&&(Ht(0),y(1,"p")(2,"strong"),R(3,"Genres:"),w(),R(4),w(),zt()),2&e){const i=t.$implicit;x(4),Ue(" ",i.join(", "),"")}}function Roe(e,t){if(1&e&&(Ht(0),R(1),zt()),2&e){const i=B(2).$implicit,n=B();x(1),Ue("(",null==n.item(i).content?null:n.item(i).content.voteCount," votes)")}}function Ooe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"Rating:"),w(),R(3),A(4,Roe,2,1,"ng-container",6),w()),2&e){const i=B().$implicit,n=B();x(3),Ue(" ",null==n.item(i).content?null:n.item(i).content.voteAverage," / 10 "),x(1),D("ngIf",null!=(null==n.item(i).content?null:n.item(i).content.voteCount))}}function Foe(e,t){if(1&e&&(Ht(0),R(1),y(2,"a",82),R(3),w(),zt()),2&e){const i=t.$implicit,n=t.index;x(1),Ue(" ",n>0?", ":"",""),x(1),D("href",i.url,tl),x(1),bt(i.metadataSource.name)}}function Poe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"External links:"),w(),R(3,"\xa0 "),A(4,Foe,4,3,"ng-container",8),w()),2&e){const i=t.$implicit;x(4),D("ngForOf",i)}}function Noe(e,t){1&e&&(y(0,"mat-icon"),R(1,"file_present"),w(),R(2," Files "))}function Loe(e,t){1&e&&(y(0,"p"),R(1," No file information available. "),w())}function Boe(e,t){1&e&&(y(0,"p"),R(1," Files information was not saved as the number of files is over the configured threshold. "),w())}function Voe(e,t){if(1&e&&(y(0,"span")(1,"strong"),R(2,"File type: "),w(),R(3),ie(4,"br"),w()),2&e){const i=t.$implicit;x(3),Ue(" ",i.charAt(0).toUpperCase()+i.slice(1),"")}}function joe(e,t){if(1&e&&(y(0,"p")(1,"strong"),R(2,"Single file:"),w(),R(3),ie(4,"br"),A(5,Voe,5,1,"span",6),y(6,"strong"),R(7,"File size:"),w(),R(8),Ut(9,"filesize"),w()),2&e){const i=B(2).$implicit,n=B();x(3),Ue(" ",n.item(i).torrent.name,""),x(2),D("ngIf",n.item(i).torrent.fileType),x(3),Ue(" ",tn(9,3,n.item(i).torrent.size)," ")}}function Hoe(e,t){if(1&e&&(y(0,"tr")(1,"td",84),R(2),w(),y(3,"td"),R(4),w(),y(5,"td",85),R(6),Ut(7,"filesize"),w()()),2&e){const i=t.$implicit;x(2),Ue(" ",i.path," "),x(2),Ue(" ",i.fileType?i.fileType.charAt(0).toUpperCase()+i.fileType.slice(1):"Unknown"," "),x(2),Ue(" ",tn(7,3,i.size)," ")}}function zoe(e,t){if(1&e&&(y(0,"table")(1,"thead")(2,"tr")(3,"th"),R(4,"Path"),w(),y(5,"th"),R(6,"Type"),w(),y(7,"th"),R(8,"Size"),w()()(),y(9,"tbody"),A(10,Hoe,8,5,"tr",8),w()()),2&e){const i=B(2).$implicit,n=B();x(10),D("ngForOf",n.item(i).torrent.files)}}function Uoe(e,t){if(1&e&&(y(0,"mat-card",83),A(1,Loe,2,0,"p",6),A(2,Boe,2,0,"p",6),A(3,joe,10,5,"p",6),A(4,zoe,11,1,"table",6),w()),2&e){const i=B().$implicit,n=B();x(1),D("ngIf","no_info"===n.item(i).torrent.filesStatus),x(1),D("ngIf","over_threshold"===n.item(i).torrent.filesStatus),x(1),D("ngIf","single"===n.item(i).torrent.filesStatus),x(1),D("ngIf",null==n.item(i).torrent.files?null:n.item(i).torrent.files.length)}}function $oe(e,t){1&e&&(y(0,"mat-icon"),R(1,"sell"),w(),R(2," Edit tags "))}function qoe(e,t){if(1&e){const i=Pt();y(0,"mat-chip-row",58),$("edited",function(r){const s=Ge(i).$implicit;return We(B(3).expandedItem.renameTag(s,r.value))})("removed",function(){const o=Ge(i).$implicit;return We(B(3).expandedItem.deleteTag(o))}),R(1),y(2,"button",59)(3,"mat-icon"),R(4,"cancel"),w()()()}if(2&e){const i=t.$implicit;D("editable",!0)("aria-description","press enter to edit"),x(1),Ue(" ",i," "),x(1),de("aria-label","remove "+i)}}function Goe(e,t){if(1&e&&(y(0,"mat-option",50),R(1),w()),2&e){const i=t.$implicit;D("value",i),x(1),bt(i)}}function Woe(e,t){if(1&e){const i=Pt();y(0,"mat-card")(1,"mat-form-field",20)(2,"mat-chip-grid",21,22),A(4,qoe,5,4,"mat-chip-row",23),w(),y(5,"input",86),$("matChipInputTokenEnd",function(r){Ge(i);const o=B(2);return We(r.value&&o.expandedItem.addTag(r.value))}),w(),y(6,"mat-autocomplete",25,26),$("optionSelected",function(r){return Ge(i),We(B(2).expandedItem.addTag(r.option.viewValue))}),A(8,Goe,2,2,"mat-option",7),w()()()}if(2&e){const i=un(3),n=un(7),r=B().$implicit,o=B();x(4),D("ngForOf",o.item(r).torrent.tagNames),x(1),D("formControl",o.expandedItem.newTagCtrl)("matAutocomplete",n)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("value",o.expandedItem.newTagCtrl.value),x(3),D("ngForOf",o.expandedItem.suggestedTags)}}function Qoe(e,t){1&e&&(y(0,"mat-icon"),R(1,"delete_forever"),w(),R(2," Delete "))}function Yoe(e,t){if(1&e){const i=Pt();y(0,"mat-card")(1,"mat-card-content",87)(2,"p")(3,"strong"),R(4,"Are you sure you want to delete this torrent?"),w(),ie(5,"br"),R(6,"This action cannot be undone. "),w()(),y(7,"mat-card-actions",27)(8,"button",88),$("click",function(){return Ge(i),We(B(2).expandedItem.delete())}),y(9,"mat-icon"),R(10,"delete_forever"),w(),R(11,"Delete "),w()()()}}function Koe(e,t){1&e&&(y(0,"mat-icon",60),R(1,"close"),w())}function Xoe(e,t){1&e&&(y(0,"mat-tab"),A(1,Koe,2,0,"ng-template",19),w())}function Zoe(e,t){if(1&e){const i=Pt();y(0,"td",64)(1,"div",74),A(2,Coe,1,1,"img",75),y(3,"h2"),R(4),w(),y(5,"p")(6,"strong"),R(7,"Info hash:"),w(),y(8,"span",76),R(9),w()(),y(10,"p")(11,"strong"),R(12,"Source:"),w(),R(13,"\xa0"),A(14,Doe,2,1,"span",8),w(),A(15,Eoe,4,1,"p",6),A(16,koe,5,1,"p",6),A(17,Toe,4,1,"p",6),A(18,Moe,4,1,"p",6),A(19,Ioe,2,1,"p",6),A(20,Aoe,5,1,"ng-container",6),A(21,Ooe,5,2,"p",6),A(22,Poe,5,1,"p",6),ie(23,"mat-divider",77),y(24,"mat-tab-group",78),$("focusChange",function(r){return Ge(i),We(B().expandedItem.selectTab(4==r.index?0:r.index))}),ie(25,"mat-tab",79),y(26,"mat-tab"),A(27,Noe,3,0,"ng-template",19),A(28,Uoe,5,4,"mat-card",80),w(),y(29,"mat-tab"),A(30,$oe,3,0,"ng-template",19),A(31,Woe,9,7,"mat-card",6),w(),y(32,"mat-tab"),A(33,Qoe,3,0,"ng-template",19),A(34,Yoe,12,0,"mat-card",6),w(),A(35,Xoe,2,0,"mat-tab",6),w()()()}if(2&e){const i=t.$implicit,n=B();de("colspan",n.displayedColumns.length),x(1),D("@detailExpand",n.expandedItem.id===i.id?"expanded":"collapsed"),x(1),D("ngIf",n.getAttribute(n.item(i),"poster_path","tmdb")),x(2),bt(n.item(i).torrent.name),x(4),D("cdkCopyToClipboard",n.item(i).infoHash),x(1),bt(n.item(i).infoHash),x(5),D("ngForOf",n.item(i).torrent.sources),x(1),D("ngIf",n.item(i).content),x(1),D("ngIf",null==n.item(i).languages?null:n.item(i).languages.length),x(1),D("ngIf",null==n.item(i).content?null:n.item(i).content.releaseYear),x(1),D("ngIf",n.item(i).episodes),x(1),D("ngIf",null==n.item(i).content?null:n.item(i).content.overview),x(1),D("ngIf",n.getCollections(i,"genre")),x(1),D("ngIf",null!=(null==n.item(i).content?null:n.item(i).content.voteAverage)),x(1),D("ngIf",null==n.item(i).content?null:n.item(i).content.externalLinks),x(2),D("selectedIndex",n.expandedItem.selectedTabIndex)("mat-stretch-tabs",!1),x(1),D("aria-labelledby","hidden"),x(3),D("ngIf",n.expandedItem.id===i.id),x(3),D("ngIf",n.expandedItem.id===i.id),x(3),D("ngIf",n.expandedItem.id===i.id),x(1),D("ngIf",n.expandedItem.selectedTabIndex>0)}}function Joe(e,t){1&e&&ie(0,"tr",89)}function ese(e,t){if(1&e&&ie(0,"tr",90),2&e){const i=t.$implicit,n=B();bh("summary-row "+(i.id===n.expandedItem.id?"expanded":"collapsed"))}}function tse(e,t){1&e&&ie(0,"tr",91)}function nse(e,t){if(1&e){const i=Pt();y(0,"app-paginator",92),$("page",function(r){return Ge(i),We(B().search.handlePageEvent(r))}),Ut(1,"async"),Ut(2,"async"),Ut(3,"async"),Ut(4,"async"),w()}if(2&e){const i=t.ngIf,n=B();D("pageIndex",tn(1,6,n.search.pageIndex$))("pageSize",tn(2,8,n.search.pageSize$))("pageLength",tn(3,10,n.search.pageLength$))("totalLength",i.count)("totalIsEstimate",i.isEstimate)("hasNextPage",tn(4,12,n.search.hasNextPage$))}}const ise=function(){return["expandedDetail"]};let rse=(()=>{var e;class t{constructor(n,r){this.graphQLService=n,this.errorsService=r,this.search=new pK(this.graphQLService,this.errorsService),this.displayedColumns=["select","summary","size","peers","magnet"],this.queryString=new Ka(""),this.items=Array(),this.contentType=new Ka(void 0),this.separatorKeysCodes=[13,188],this.selectedItems=new GR(!0,[]),this.selectedTabIndex=0,this.newTagCtrl=new Ka(""),this.editedTags=Array(),this.suggestedTags=Array(),this.expandedItem=new class{constructor(o){this.ds=o,this.itemSubject=new dt(void 0),this.newTagCtrl=new Ka(""),this.editedTags=Array(),this.suggestedTags=Array(),this.selectedTabIndex=0,o.search.items$.subscribe(s=>{const a=this.itemSubject.getValue();if(!a)return;const c=s.find(l=>l.id===a.id);this.editedTags=c?.torrent.tagNames??[],this.itemSubject.next(c)}),this.newTagCtrl.valueChanges.subscribe(s=>(s&&(s=oN(s),this.newTagCtrl.setValue(s,{emitEvent:!1})),o.graphQLService.torrentSuggestTags({query:{prefix:s,exclusions:this.itemSubject.getValue()?.torrent.tagNames}}).pipe(it(a=>{this.suggestedTags.splice(0,this.suggestedTags.length,...a.suggestions.map(c=>c.name))})).subscribe()))}get id(){return this.itemSubject.getValue()?.id}toggle(o){o===this.id&&(o=void 0);const s=this.ds.items.find(c=>c.id===o);this.itemSubject.getValue()?.id!==o&&(this.itemSubject.next(s),this.editedTags=s?.torrent.tagNames??[],this.newTagCtrl.reset(),this.selectedTabIndex=0)}selectTab(o){this.selectedTabIndex=o}addTag(o){this.editTags(s=>[...s,o]),this.saveTags()}renameTag(o,s){this.editTags(a=>a.map(c=>c===o?s:c)),this.saveTags()}deleteTag(o){this.editTags(s=>s.filter(a=>a!==o)),this.saveTags()}editTags(o){this.itemSubject.getValue()&&(this.editedTags=o(this.editedTags),this.newTagCtrl.reset())}saveTags(){const o=this.itemSubject.getValue();o&&this.ds.graphQLService.torrentSetTags({infoHashes:[o.infoHash],tagNames:this.editedTags}).pipe(qn(s=>(this.ds.errorsService.addError(`Error saving tags: ${s.message}`),Xt))).pipe(it(()=>{this.editedTags=[],this.ds.search.loadResult(!1)})).subscribe()}delete(){const o=this.itemSubject.getValue();o&&this.ds.deleteTorrents([o.infoHash])}}(this),this.search.items$.subscribe(o=>{this.items=o,this.selectedItems.setSelection(...o.filter(({id:s})=>this.selectedItems.selected.some(({id:a})=>a===s)))})}ngAfterContentInit(){this.loadResult()}ngAfterViewInit(){this.contentType.valueChanges.subscribe(n=>{this.search.selectContentType(n)}),this.newTagCtrl.valueChanges.subscribe(n=>{n&&this.newTagCtrl.setValue(oN(n),{emitEvent:!1}),this.updateSuggestedTags()}),this.updateSuggestedTags()}loadResult(n=!0){this.search.loadResult(n)}item(n){return n}originalOrder(){return 0}getAttribute(n,r,o){return n.content?.attributes?.find(s=>s.key===r&&(void 0===o||s.source===o))?.value}getCollections(n,r){const o=n.content?.collections?.filter(s=>s.type===r).map(s=>s.name);return o?.length?o.sort():void 0}isAllSelected(){return this.items.every(n=>this.selectedItems.isSelected(n))}toggleAllRows(){this.isAllSelected()?this.selectedItems.clear():this.selectedItems.select(...this.items)}checkboxLabel(n){return n?`${this.selectedItems.isSelected(n)?"deselect":"select"} ${n.torrent.name}`:(this.isAllSelected()?"deselect":"select")+" all"}selectTab(n){this.selectedTabIndex=n}addTag(n){this.editedTags.includes(n)||this.editedTags.push(n),this.newTagCtrl.reset(),this.updateSuggestedTags()}deleteTag(n){this.editedTags=this.editedTags.filter(r=>r!==n),this.updateSuggestedTags()}renameTag(n,r){this.editedTags=this.editedTags.map(o=>o===n?r:o),this.updateSuggestedTags()}putTags(){const n=this.selectedItems.selected.map(r=>r.infoHash);if(n.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentPutTags({infoHashes:n,tagNames:this.editedTags}).pipe(qn(r=>(this.errorsService.addError(`Error putting tags: ${r.message}`),Xt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}setTags(){const n=this.selectedItems.selected.map(r=>r.infoHash);if(n.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentSetTags({infoHashes:n,tagNames:this.editedTags}).pipe(qn(r=>(this.errorsService.addError(`Error setting tags: ${r.message}`),Xt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}deleteTags(){const n=this.selectedItems.selected.map(r=>r.infoHash);if(n.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentDeleteTags({infoHashes:n,tagNames:this.editedTags}).pipe(qn(r=>(this.errorsService.addError(`Error deleting tags: ${r.message}`),Xt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}updateSuggestedTags(){return this.graphQLService.torrentSuggestTags({query:{prefix:this.newTagCtrl.value,exclusions:this.editedTags}}).pipe(it(n=>{this.suggestedTags.splice(0,this.suggestedTags.length,...n.suggestions.map(r=>r.name))})).subscribe()}selectedInfoHashes(){return this.selectedItems.selected.map(n=>n.infoHash)}deleteTorrents(n){this.graphQLService.torrentDelete({infoHashes:n}).pipe(qn(r=>(this.errorsService.addError(`Error deleting torrents: ${r.message}`),Xt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(p(FF),p(BF))},e.\u0275cmp=fe({type:e,selectors:[["app-torrent-content"]],decls:96,vars:47,consts:[[1,"example-container"],["opened","",3,"mode"],["drawer",""],[1,"panel-content-type",3,"expanded"],[3,"formControl"],["fontSet","material-icons"],[4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"results"],[1,"search-form"],["fontSet","material-icons",3,"click"],[1,"field-search-query"],["matInput","","placeholder","Search",3,"formControl","keyup.enter"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"button-refresh"],["mat-mini-fab","","title","Refresh results","color","primary",3,"click"],["animationDuration","0",1,"tab-group-bulk-actions",3,"selectedIndex","mat-stretch-tabs","focusChange"],[1,"bulk-tab-placeholder",3,"aria-labelledby"],["mat-tab-label",""],[1,"form-edit-tags"],["aria-label","Enter tags"],["chipGrid",""],[3,"editable","aria-description","edited","removed",4,"ngFor","ngForOf"],["placeholder","Tag...",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value","matChipInputTokenEnd"],[3,"optionSelected"],["auto","matAutocomplete"],[1,"button-row"],["mat-stroked-button","","color","primary","title","Replace tags of the selected torrents",3,"disabled","click"],["mat-stroked-button","","color","primary","title","Add tags to the selected torrents",3,"disabled","click"],["mat-stroked-button","","color","primary","title","Remove tags from the selected torrents",3,"disabled","click"],["mat-stroked-button","","color","warn",3,"disabled","click"],[1,"progress-bar-container",2,"height","10px"],["mode","indeterminate",4,"ngIf"],["mat-table","",1,"table-results",3,"dataSource","multiTemplateDataRows"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","summary"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","size"],["matColumnDef","peers"],["matColumnDef","magnet"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"class",4,"matRowDef","matRowDefColumns"],["mat-row","","class","expanded-detail-row",4,"matRowDef","matRowDefColumns"],[1,"spacer"],[3,"pageIndex","pageSize","pageLength","totalLength","totalIsEstimate","hasNextPage","page",4,"ngIf"],[3,"value"],[3,"expanded","opened","closed",4,"ngIf"],[3,"expanded","opened","closed"],[3,"checked","color","display","change",4,"ngFor","ngForOf"],["class","empty",4,"ngIf"],[3,"checked","color","change"],[1,"empty"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"editable","aria-description","edited","removed"],["matChipRemove",""],[2,"margin-right","0"],["mode","indeterminate"],["mat-header-cell",""],[3,"checked","indeterminate","aria-label","change"],["mat-cell",""],[3,"checked","aria-label","click","change"],["mat-cell","",3,"click"],[1,"title"],["class","chip-primary",4,"ngFor","ngForOf"],[1,"chip-primary"],["title","Seeders / Leechers"],["mat-header-cell","",2,"text-align","center"],[3,"href"],["svgIcon","magnet"],[1,"item-detail"],["class","poster",3,"src",4,"ngIf"],["title","Copy to clipboard",1,"info-hash",3,"cdkCopyToClipboard"],[2,"clear","both"],["animationDuration","0",3,"selectedIndex","mat-stretch-tabs","focusChange"],[3,"aria-labelledby"],["class","torrent-files",4,"ngIf"],[1,"poster",3,"src"],["target","_blank",3,"href"],[1,"torrent-files"],[1,"table-torrent-files-td-file"],[1,"table-torrent-files-td-size"],["placeholder","New tag...",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value","matChipInputTokenEnd"],[2,"margin-top","10px"],["mat-stroked-button","","color","warn",3,"click"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expanded-detail-row"],[3,"pageIndex","pageSize","pageLength","totalLength","totalIsEstimate","hasNextPage","page"]],template:function(n,r){if(1&n){const o=Pt();y(0,"mat-drawer-container",0)(1,"mat-drawer",1,2)(3,"mat-expansion-panel",3)(4,"mat-expansion-panel-header")(5,"mat-panel-title")(6,"mat-icon"),R(7,"interests"),w(),R(8," Content Type "),w()(),y(9,"section")(10,"mat-radio-group",4)(11,"mat-radio-button")(12,"mat-icon",5),R(13,"emergency"),w(),R(14,"All "),A(15,$re,3,4,"small",6),Ut(16,"async"),w(),A(17,Gre,6,6,"mat-radio-button",7),Ut(18,"keyvalue"),w()()(),A(19,Kre,2,1,"ng-container",8),w(),y(20,"mat-drawer-content")(21,"div",9)(22,"div",10)(23,"mat-icon",11),$("click",function(){return Ge(o),We(un(2).toggle())}),R(24),w(),y(25,"mat-form-field",12)(26,"input",13),$("keyup.enter",function(){let a;return r.search.setQueryString(null!==(a=r.queryString.value)&&void 0!==a?a:""),r.search.firstPage(),r.search.loadResult()}),w(),A(27,Xre,3,0,"button",14),w(),y(28,"div",15)(29,"button",16),$("click",function(){return r.loadResult(!1)}),y(30,"mat-icon"),R(31,"sync"),w()()()(),ie(32,"mat-divider"),y(33,"mat-tab-group",17),$("focusChange",function(a){return r.selectTab(3==a.index?0:a.index)}),ie(34,"mat-tab",18),y(35,"mat-tab"),A(36,Zre,3,0,"ng-template",19),y(37,"mat-card")(38,"mat-form-field",20)(39,"mat-chip-grid",21,22),A(41,Jre,5,4,"mat-chip-row",23),w(),y(42,"input",24),$("matChipInputTokenEnd",function(a){return a.value&&r.addTag(a.value)}),w(),y(43,"mat-autocomplete",25,26),$("optionSelected",function(a){return r.addTag(a.option.viewValue)}),A(45,eoe,2,2,"mat-option",7),w()(),y(46,"mat-card-actions",27)(47,"button",28),$("click",function(){return r.setTags()}),R(48," Set tags "),w(),y(49,"button",29),$("click",function(){return r.putTags()}),R(50," Put tags "),w(),y(51,"button",30),$("click",function(){return r.deleteTags()}),R(52," Delete tags "),w()()()(),y(53,"mat-tab"),A(54,toe,3,0,"ng-template",19),y(55,"mat-card")(56,"mat-card-content")(57,"p")(58,"strong"),R(59,"Are you sure you want to delete the selected torrents?"),w(),ie(60,"br"),R(61,"This action cannot be undone. "),w()(),y(62,"mat-card-actions",27)(63,"button",31),$("click",function(){return r.deleteTorrents(r.selectedInfoHashes())}),y(64,"mat-icon"),R(65,"delete_forever"),w(),R(66,"Delete "),w()()()(),A(67,ioe,2,0,"mat-tab",6),w(),ie(68,"mat-divider"),y(69,"div",32),A(70,roe,1,0,"mat-progress-bar",33),Ut(71,"async"),w(),y(72,"table",34),Ht(73,35),A(74,ooe,2,3,"th",36),A(75,soe,2,2,"td",37),zt(),Ht(76,38),A(77,aoe,2,0,"th",36),A(78,goe,13,10,"td",39),zt(),Ht(79,40),A(80,_oe,2,0,"th",36),A(81,boe,3,3,"td",37),zt(),Ht(82,41),A(83,voe,3,0,"th",36),A(84,yoe,2,2,"td",37),zt(),Ht(85,42),A(86,woe,2,0,"th",43),A(87,xoe,3,1,"td",37),zt(),Ht(88,44),A(89,Zoe,36,22,"td",37),zt(),A(90,Joe,1,0,"tr",45),A(91,ese,1,2,"tr",46),A(92,tse,1,0,"tr",47),w(),ie(93,"span",48),A(94,nse,5,14,"app-paginator",49),Ut(95,"async"),w()()()}if(2&n){const o=un(2),s=un(40),a=un(44);x(1),D("mode","side"),x(2),D("expanded",!0),x(7),D("formControl",r.contentType),x(5),D("ngIf",tn(16,37,r.search.overallTotalCount$)),x(2),D("ngForOf",function _k(e,t,i,n){const r=e+Oe,o=F(),s=Vs(o,r);return El(o,r)?fk(o,Dn(),t,s.transform,i,n,s):s.transform(i,n)}(18,39,r.search.contentTypes,r.originalOrder)),x(2),D("ngForOf",r.search.facets),x(1),kn("z-index",100)("overflow","visible"),x(3),bh("toggle-drawer "+(o.opened?"opened":"closed")),x(1),bt(o.opened?"arrow_circle_left":"arrow_circle_right"),x(2),D("formControl",r.queryString),x(1),D("ngIf",r.queryString.value),x(6),D("selectedIndex",r.selectedTabIndex)("mat-stretch-tabs",!1),x(1),D("aria-labelledby","hidden"),x(7),D("ngForOf",r.editedTags),x(1),D("formControl",r.newTagCtrl)("matAutocomplete",a)("matChipInputFor",s)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("value",r.newTagCtrl.value),x(3),D("ngForOf",r.suggestedTags),x(2),D("disabled",!r.selectedItems.hasValue()),x(2),D("disabled",!r.selectedItems.hasValue()||!r.editedTags.length&&!r.newTagCtrl.value),x(2),D("disabled",!r.selectedItems.hasValue()||!r.editedTags.length&&!r.newTagCtrl.value),x(12),D("disabled",!r.selectedItems.hasValue()),x(4),D("ngIf",r.selectedTabIndex>0),x(3),D("ngIf",tn(71,42,r.search.loading$)),x(2),D("dataSource",r.search)("multiTemplateDataRows",!0),x(18),D("matHeaderRowDef",r.displayedColumns),x(1),D("matRowDefColumns",r.displayedColumns),x(1),D("matRowDefColumns",function lk(e,t,i){const n=Dn()+e,r=F();return r[n]===De?tr(r,n,i?t.call(i):t()):function fl(e,t){return e[t]}(r,n)}(46,ise)),x(2),D("ngIf",tn(95,44,r.search.totalCount$))}},dependencies:[Wh,_i,eee,Yee,Nf,ZF,_1,Wv,BG,JF,tP,eP,rP,vs,fP,pP,dP,aw,em,Xte,wP,fne,pne,YF,Fee,$v,xne,kne,kP,TP,AP,RP,tm,BP,vw,VP,yw,bw,jP,ww,xw,HP,zP,GP,KP,nre,jre,pp,pR,$y,KT,Fb,XT,zre],styles:[".mat-drawer-container[_ngcontent-%COMP%]{min-height:100%}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%]{width:300px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:0}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{width:100%;display:block}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] .mdc-radio{display:none}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] .mdc-form-field, .mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] label{cursor:pointer;display:block;height:40px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:10px;position:relative;top:5px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] .mat-mdc-radio-checked label{color:#e91e63}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-bottom:10px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{position:relative;left:-10px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] section.empty[_ngcontent-%COMP%] .mdc-checkbox__background{background-color:#d3d3d3;border-color:#d3d3d3} mat-checkbox label small, mat-radio-button label small{margin-left:8px}.mat-expansion-panel-header[_ngcontent-%COMP%]{white-space:nowrap}.mat-expansion-panel-header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{overflow:visible;margin-right:20px}.search-form[_ngcontent-%COMP%] .toggle-drawer[_ngcontent-%COMP%]{cursor:pointer;width:30px;height:30px;font-size:30px;left:-10px;margin-right:10px;position:relative;top:-25px;display:inline-block}.search-form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:inline-block;margin-right:20px}.search-form[_ngcontent-%COMP%] mat-form-field.field-search-query[_ngcontent-%COMP%]{width:300px}.search-form[_ngcontent-%COMP%] mat-form-field.field-auto-refresh[_ngcontent-%COMP%]{width:130px}.search-form[_ngcontent-%COMP%] .button-refresh[_ngcontent-%COMP%]{display:inline-block;width:50px;vertical-align:top;padding-top:10px}.mat-column-select[_ngcontent-%COMP%]{padding-right:10px;width:30px}.mat-column-summary[_ngcontent-%COMP%]{padding-left:0}.mat-column-summary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:0;padding-right:0}th.mat-column-summary[_ngcontent-%COMP%]{padding-left:10px}td.mat-column-summary[_ngcontent-%COMP%]{vertical-align:middle;cursor:pointer}td.mat-column-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:inline-block;line-height:30px;word-wrap:break-word;max-width:900px}td.mat-column-summary[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:inline-block;position:relative;top:5px;margin-right:10px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:30px;position:relative;top:-2px;margin-bottom:4px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:0 10px 0 0}tr.expanded-detail-row[_ngcontent-%COMP%]{height:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] td.mat-column-summary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#e91e63}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] + .expanded-detail-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding-bottom:10px}.mat-mdc-row.summary-row[_ngcontent-%COMP%]:hover .mat-mdc-cell[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-mdc-row.summary-row[_ngcontent-%COMP%]:hover + tr.expanded-detail-row[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-column-magnet[_ngcontent-%COMP%]{text-align:center}.mat-column-magnet[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:relative;top:5px}.item-detail[_ngcontent-%COMP%]{width:100%;overflow:hidden}.item-detail[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:10px;max-width:900px;word-wrap:break-word}.item-detail[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%]{float:right;margin:10px;border:1px solid currentColor}.item-detail[_ngcontent-%COMP%] .info-hash[_ngcontent-%COMP%]{padding-left:5px;cursor:crosshair;text-decoration:underline;text-decoration-style:dotted} .mdc-tab__text-label mat-icon{margin-right:10px} div[aria-labelledby=hidden]{display:none}.results[_ngcontent-%COMP%]{padding-top:20px}.form-edit-tags[_ngcontent-%COMP%]{width:100%}.mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled).chip-primary{background-color:#c5cae9}.mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled).chip-primary .mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled).mdc-evolution-chip__text-label{color:#fff}.torrent-files[_ngcontent-%COMP%]{padding-top:10px;max-height:800px;overflow:scroll}.torrent-files[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{margin-bottom:10px;width:800px}.torrent-files[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:20px;border-bottom:1px solid rgba(0,0,0,.12)}.torrent-files[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:#f5f5f5}.button-row[_ngcontent-%COMP%] .mat-mdc-button-base[_ngcontent-%COMP%]{margin-left:8px}.form-edit-tags[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}app-paginator[_ngcontent-%COMP%]{float:right;margin-top:10px;margin-bottom:20px}"],data:{animation:[ni("detailExpand",[qt("collapsed",je({height:"0px",minHeight:"0"})),qt("expanded",je({height:"*"})),Bt("expanded <=> collapsed",Lt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();const oN=e=>e.toLowerCase().replaceAll(/[^a-z0-9\-]/g,"-").replace(/^-+/,"").replaceAll(/-+/g,"-");let ose=(()=>{var e;class t{constructor(){this.title="bitmagnet"}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["app-root"]],decls:19,vars:3,consts:[["color","primary"],["svgIcon","magnet",2,"position","relative","top","1px"],[2,"margin-left","10px"],[1,"spacer"],["mat-icon-button","","aria-label","Menu",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","href","https://bitmagnet.io","target","_blank"],["mat-menu-item","","href","https://discord.gg/6mFNszX8qM","target","_blank"],["mat-menu-item","","href","https://github.com/bitmagnet-io/bitmagnet","target","_blank"]],template:function(n,r){if(1&n&&(y(0,"p")(1,"mat-toolbar",0),ie(2,"mat-icon",1),y(3,"span",2),R(4,"bitmagnet"),w(),ie(5,"span",3),y(6,"button",4)(7,"mat-icon"),R(8,"menu"),w()(),y(9,"mat-menu",null,5)(11,"a",6),R(12,"bitmagnet.io"),w(),y(13,"a",7),R(14,"bitmagnet on Discord"),w(),y(15,"a",8),R(16,"bitmagnet on GitHub"),w()()()(),ie(17,"app-torrent-content")(18,"router-outlet")),2&n){const o=un(10);kn("margin-bottom",0),x(6),D("matMenuTriggerFor",o)}},dependencies:[yy,Wv,$v,$9,Wf,Q9,UG,rse],styles:[".spacer[_ngcontent-%COMP%]{display:inline-flex;flex:1 1 auto}svg[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{fill:#3f51b5} .mat-mdc-snack-bar-container.snack-bar-error>div{background-color:#f44336;color:#fff} .mat-mdc-snack-bar-container.snack-bar-error>div .mdc-button__label{color:#fff}"]}),t})();class sse extends tc{constructor(t,i){super(),wt(this,"httpClient",void 0),wt(this,"options",void 0),wt(this,"requester",void 0),wt(this,"print",wO),this.httpClient=t,this.options=i,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=n=>new vt(r=>{const o=n.getContext(),s=(v,C)=>function ys(...e){const t=e.find(i=>typeof i<"u");return typeof t>"u"?e[e.length-1]:t}(o[v],this.options[v],C);let a=s("method","POST");const c=s("includeQuery",!0),l=s("includeExtensions",!1),d=s("uri","graphql"),u=s("withCredentials"),h=s("useMultipart"),f=!0===this.options.useGETForQueries,m=n.query.definitions.some(v=>"OperationDefinition"===v.kind&&"query"===v.operation);f&&m&&(a="GET");const g={method:a,url:"function"==typeof d?d(n):d,body:{operationName:n.operationName,variables:n.variables},options:{withCredentials:u,useMultipart:h,headers:this.options.headers}};l&&(g.body.extensions=n.extensions),c&&(g.body.query=this.print(n.query));const b=function cN(e){let t=e.headers&&e.headers instanceof bi?e.headers:new bi(e.headers);if(e.clientAwareness){const{name:i,version:n}=e.clientAwareness;i&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",i)),n&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",n))}return t}(o);g.options.headers=((e,t)=>e&&t?t.keys().reduce((n,r)=>n.set(r,t.getAll(r)),e):t||e)(g.options.headers,b);const _=((e,t,i)=>{const n=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),o=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(o)return new Me(l=>l.error(new Error("File upload is not available when combined with Batching")));if(!n)return new Me(l=>l.error(new Error("File upload is not available when GET is used")));if(!i)return new Me(l=>l.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));a=i(e.body),s=!!a.files.size}let c={};if(o){if(!n)return new Me(l=>l.error(new Error("Batching is not available for GET requests")));c={body:e.body}}else c=n?{body:s?a.clone:e.body}:{params:Object.keys(e.body).reduce((u,h)=>{const f=e.body[h];return u[h]=-1!==["variables","extensions"].indexOf(h.toLowerCase())?JSON.stringify(f):f,u},{})};if(s&&n){const l=new FormData;l.append("operations",JSON.stringify(c.body));const d={},u=a.files;let h=0;u.forEach(f=>{d[++h]=f}),l.append("map",JSON.stringify(d)),h=0,u.forEach((f,m)=>{l.append(++h+"",m,m.name)}),c.body=l}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(g,this.httpClient,this.options.extractFiles).subscribe({next:v=>{n.setContext({response:v}),r.next(v.body)},error:v=>r.error(v),complete:()=>r.complete()});return()=>{_.closed||_.unsubscribe()}})}request(t){return this.requester(t)}}let ase=(()=>{var e;class t{constructor(n){wt(this,"httpClient",void 0),this.httpClient=n}create(n){return new sse(this.httpClient,n)}}return e=t,wt(t,"\u0275fac",function(n){return new(n||e)(E(nf))}),wt(t,"\u0275prov",V({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();var cse=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=zp(MK)}return e.prototype.batch=function(t){var r,i=this;return this.performTransaction(function(){return r=t.update(i)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),r},e.prototype.recordOptimisticTransaction=function(t,i){this.performTransaction(t,i)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,i){return void 0===i&&(i=!!t.optimistic),this.read(k(k({},t),{rootId:t.id||"ROOT_QUERY",optimistic:i}))},e.prototype.readFragment=function(t,i){return void 0===i&&(i=!!t.optimistic),this.read(k(k({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:i}))},e.prototype.writeQuery=function(t){var i=t.id,n=t.data,r=si(t,["id","data"]);return this.write(Object.assign(r,{dataId:i||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(t){var i=t.id,n=t.data,r=t.fragment,o=t.fragmentName,s=si(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(r,o),dataId:i,result:n}))},e.prototype.updateQuery=function(t,i){return this.batch({update:function(n){var r=n.readQuery(t),o=i(r);return null==o?r:(n.writeQuery(k(k({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,i){return this.batch({update:function(n){var r=n.readFragment(t),o=i(r);return null==o?r:(n.writeFragment(k(k({},t),{data:o})),o)}})},e}(),lN=function(e){function t(i,n,r,o){var s,a=e.call(this,i)||this;if(a.message=i,a.path=n,a.query=r,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return Nn(t,e),t}(Error);function Dw(e){return!1!==globalThis.__DEV__&&function lse(e){var t=new Set([e]);return t.forEach(function(i){xt(i)&&function dse(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(i)===i&&Object.getOwnPropertyNames(i).forEach(function(n){xt(i[n])&&t.add(i[n])})}),e}(e),e}var on=Object.prototype.hasOwnProperty;function Ud(e){return null==e}function dN(e,t){var i=e.__typename,n=e.id,r=e._id;if("string"==typeof i&&(t&&(t.keyObject=Ud(n)?Ud(r)?void 0:{_id:r}:{id:n}),Ud(n)&&!Ud(r)&&(n=r),!Ud(n)))return"".concat(i,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var uN={dataIdFromObject:dN,addTypename:!0,resultCaching:!0,canonizeResults:!1};function hN(e){var t=e.canonizeResults;return void 0===t?uN.canonizeResults:t}var fN=/^[_a-z][_0-9a-z]*/i;function yo(e){var t=e.match(fN);return t?t[0]:e}function Ew(e,t,i){return!!xt(t)&&(Mt(t)?t.every(function(n){return Ew(e,n,i)}):e.selections.every(function(n){if(go(n)&&Ad(n,i)){var r=mo(n);return on.call(t,r)&&(!n.selectionSet||Ew(n.selectionSet,t[r],i))}return!0}))}function gc(e){return xt(e)&&!ot(e)&&!Mt(e)}function pN(e,t){var i=Ip(Op(e));return{fragmentMap:i,lookupFragment:function(n){var r=i[n];return!r&&t&&(r=t.lookup(n)),r||null}}}var hm=Object.create(null),Sw=function(){return hm},mN=Object.create(null),$d=function(){function e(t,i){var n=this;this.policies=t,this.group=i,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(r,o){return Dw(ot(r)?n.get(r.__ref,o):r&&r[o])},this.canRead=function(r){return ot(r)?n.has(r.__ref):"object"==typeof r},this.toReference=function(r,o){if("string"==typeof r)return Ja(r);if(ot(r))return r;var s=n.policies.identify(r)[0];if(s){var a=Ja(s);return o&&n.merge(s,r),a}}}return e.prototype.toObject=function(){return k({},this.data)},e.prototype.has=function(t){return void 0!==this.lookup(t,!0)},e.prototype.get=function(t,i){if(this.group.depend(t,i),on.call(this.data,t)){var n=this.data[t];if(n&&on.call(n,i))return n[i]}return"__typename"===i&&on.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof wo?this.parent.get(t,i):void 0},e.prototype.lookup=function(t,i){return i&&this.group.depend(t,"__exists"),on.call(this.data,t)?this.data[t]:this instanceof wo?this.parent.lookup(t,i):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,i){var r,n=this;ot(t)&&(t=t.__ref),ot(i)&&(i=i.__ref);var o="string"==typeof t?this.lookup(r=t):t,s="string"==typeof i?this.lookup(r=i):i;if(s){ye("string"==typeof r,1);var a=new _o(mse).merge(o,s);if(this.data[r]=a,a!==o&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(l){if(!o||o[l]!==a[l]){c[l]=1;var d=yo(l);d!==l&&!n.policies.hasKeyArgs(a.__typename,d)&&(c[d]=1),void 0===a[l]&&!(n instanceof wo)&&delete a[l]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(l){return n.group.dirty(r,l)})}}},e.prototype.modify=function(t,i){var n=this,r=this.lookup(t);if(r){var o=Object.create(null),s=!1,a=!0,c={DELETE:hm,INVALIDATE:mN,isReference:ot,toReference:this.toReference,canRead:this.canRead,readField:function(l,d){return n.policies.readField("string"==typeof l?{fieldName:l,from:d||Ja(t)}:l,{store:n})}};if(Object.keys(r).forEach(function(l){var d=yo(l),u=r[l];if(void 0!==u){var h="function"==typeof i?i:i[l]||i[d];if(h){var f=h===Sw?hm:h(Dw(u),k(k({},c),{fieldName:d,storeFieldName:l,storage:n.getStorage(t,l)}));f===mN?n.group.dirty(t,l):(f===hm&&(f=void 0),f!==u&&(o[l]=f,s=!0,u=f))}void 0!==u&&(a=!1)}}),s)return this.merge(t,o),a&&(this instanceof wo?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,i,n){var r,o=this.lookup(t);if(o){var s=this.getFieldValue(o,"__typename"),a=i&&n?this.policies.getStoreFieldName({typename:s,fieldName:i,args:n}):i;return this.modify(t,a?((r={})[a]=Sw,r):Sw)}return!1},e.prototype.evict=function(t,i){var n=!1;return t.id&&(on.call(this.data,t.id)&&(n=this.delete(t.id,t.fieldName,t.args)),this instanceof wo&&this!==i&&(n=this.parent.evict(t,i)||n),(t.fieldName||n)&&this.group.dirty(t.id,t.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,i=this.toObject(),n=[];return this.getRootIdSet().forEach(function(r){on.call(t.policies.rootTypenamesById,r)||n.push(r)}),n.length&&(i.__META={extraRootIds:n.sort()}),i},e.prototype.replace=function(t){var i=this;if(Object.keys(this.data).forEach(function(o){t&&on.call(t,o)||i.delete(o)}),t){var n=t.__META,r=si(t,["__META"]);Object.keys(r).forEach(function(o){i.merge(o,r[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var i=--this.rootIds[t];return i||delete this.rootIds[t],i}return 0},e.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof wo?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,i=this.getRootIdSet(),n=this.toObject();i.forEach(function(s){on.call(n,s)&&(Object.keys(t.findChildRefIds(s)).forEach(i.add,i),delete n[s])});var r=Object.keys(n);if(r.length){for(var o=this;o instanceof wo;)o=o.parent;r.forEach(function(s){return o.delete(s)})}return r},e.prototype.findChildRefIds=function(t){if(!on.call(this.refs,t)){var i=this.refs[t]=Object.create(null),n=this.data[t];if(!n)return i;var r=new Set([n]);r.forEach(function(o){ot(o)&&(i[o.__ref]=!0),xt(o)&&Object.keys(o).forEach(function(s){var a=o[s];xt(a)&&r.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),gN=function(){function e(t,i){void 0===i&&(i=null),this.caching=t,this.parent=i,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?cF():null,this.keyMaker=new bo(Nr)},e.prototype.depend=function(t,i){if(this.d){this.d(kw(t,i));var n=yo(i);n!==i&&this.d(kw(t,n)),this.parent&&this.parent.depend(t,i)}},e.prototype.dirty=function(t,i){this.d&&this.d.dirty(kw(t,i),"__exists"===i?"forget":"setDirty")},e}();function kw(e,t){return t+"#"+e}function _N(e,t){qd(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(i){function n(r){var s=r.resultCaching,c=r.seed,l=i.call(this,r.policies,new gN(void 0===s||s))||this;return l.stump=new pse(l),l.storageTrie=new bo(Nr),c&&l.replace(c),l}return Nn(n,i),n.prototype.addLayer=function(r,o){return this.stump.addLayer(r,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(e);e.Root=t}($d||($d={}));var wo=function(e){function t(i,n,r,o){var s=e.call(this,n.policies,o)||this;return s.id=i,s.parent=n,s.replay=r,s.group=o,r(s),s}return Nn(t,e),t.prototype.addLayer=function(i,n){return new t(i,this,n,this.group)},t.prototype.removeLayer=function(i){var n=this,r=this.parent.removeLayer(i);return i===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=n.data[o],a=r.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){It(s[c],a[c])||n.group.dirty(o,c)}):(n.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){n.group.dirty(o,c)})):n.delete(o)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return k(k({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(i){var n=this.parent.findChildRefIds(i);return on.call(this.data,i)?k(k({},n),e.prototype.findChildRefIds.call(this,i)):n},t.prototype.getStorage=function(){for(var i=this.parent;i.parent;)i=i.parent;return i.getStorage.apply(i,arguments)},t}($d),pse=function(e){function t(i){return e.call(this,"EntityStore.Stump",i,function(){},new gN(i.group.caching,i.group))||this}return Nn(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(wo);function mse(e,t,i){var n=e[i],r=t[i];return It(n,r)?n:r}function qd(e){return!!(e instanceof $d&&e.group.caching)}function bN(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var gse=function(){function e(t){var i=this;this.knownResults=new(Nr?WeakMap:Map),this.config=sc(t,{addTypename:!1!==t.addTypename,canonizeResults:hN(t)}),this.canon=t.canon||new A0,this.executeSelectionSet=zp(function(n){var r,o=n.context.canonizeResults,s=bN(n);s[3]=!o;var a=(r=i.executeSelectionSet).peek.apply(r,s);return a?o?k(k({},a),{result:i.canon.admit(a.result)}):a:(_N(n.context.store,n.enclosingRef.__ref),i.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:bN,makeCacheKey:function(n,r,o,s){if(qd(o.store))return o.store.makeCacheKey(n,ot(r)?r.__ref:r,o.varString,s)}}),this.executeSubSelectedArray=zp(function(n){return _N(n.context.store,n.enclosingRef.__ref),i.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var r=n.field,o=n.array,s=n.context;if(qd(s.store))return s.store.makeCacheKey(r,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new A0},e.prototype.diffQueryAgainstStore=function(t){var i=t.store,n=t.query,r=t.rootId,o=void 0===r?"ROOT_QUERY":r,s=t.variables,a=t.returnPartialData,c=void 0===a||a,l=t.canonizeResults,d=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;s=k(k({},g0(sO(n))),s);var m,h=Ja(o),f=this.executeSelectionSet({selectionSet:Td(n).selectionSet,objectOrReference:h,enclosingRef:h,context:k({store:i,query:n,policies:u,variables:s,varString:_s(s),canonizeResults:d},pN(n,this.config.fragments))});if(f.missing&&(m=[new lN(_se(f.missing),f.missing,n,s)],!c))throw m[0];return{result:f.result,complete:!m,missing:m}},e.prototype.isFresh=function(t,i,n,r){if(qd(r.store)&&this.knownResults.get(t)===n){var o=this.executeSelectionSet.peek(n,i,r,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var i=this,n=t.selectionSet,r=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ot(r)&&!s.policies.rootTypenamesById[r.__ref]&&!s.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var h,a=s.variables,c=s.policies,d=s.store.getFieldValue(r,"__typename"),u=[],f=new _o;function m(C,S){var N;return C.missing&&(h=f.merge(h,((N={})[S]=C.missing,N))),C.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&u.push({__typename:d});var g=new Set(n.selections);g.forEach(function(C){var S,N;if(Ad(C,a))if(go(C)){var L=c.readField({fieldName:C.name.value,field:C,variables:s.variables,from:r},s),q=mo(C);void 0===L?T0.added(C)||(h=f.merge(h,((S={})[q]="Can't find field '".concat(C.name.value,"' on ").concat(ot(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),S))):Mt(L)?L=m(i.executeSubSelectedArray({field:C,array:L,enclosingRef:o,context:s}),q):C.selectionSet?null!=L&&(L=m(i.executeSelectionSet({selectionSet:C.selectionSet,objectOrReference:L,enclosingRef:ot(L)?L:o,context:s}),q)):s.canonizeResults&&(L=i.canon.pass(L)),void 0!==L&&u.push(((N={})[q]=L,N))}else{var oe=Ap(C,s.lookupFragment);if(!oe&&C.kind===te.FRAGMENT_SPREAD)throw On(7,C.name.value);oe&&c.fragmentMatches(oe,d)&&oe.selectionSet.selections.forEach(g.add,g)}});var _={result:C0(u),missing:h},v=s.canonizeResults?this.canon.admit(_):Dw(_);return v.result&&this.knownResults.set(v.result,n),v},e.prototype.execSubSelectedArrayImpl=function(t){var a,i=this,n=t.field,r=t.array,o=t.enclosingRef,s=t.context,c=new _o;function l(d,u){var h;return d.missing&&(a=c.merge(a,((h={})[u]=d.missing,h))),d.result}return n.selectionSet&&(r=r.filter(s.store.canRead)),r=r.map(function(d,u){return null===d?null:Mt(d)?l(i.executeSubSelectedArray({field:n,array:d,enclosingRef:o,context:s}),u):n.selectionSet?l(i.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:d,enclosingRef:ot(d)?d:o,context:s}),u):(!1!==globalThis.__DEV__&&function bse(e,t,i){if(!t.selectionSet){var n=new Set([i]);n.forEach(function(r){xt(r)&&(ye(!ot(r),8,function hse(e,t){return ot(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,d),d)}),{result:s.canonizeResults?this.canon.admit(r):r,missing:a}},e}();function _se(e){try{JSON.stringify(e,function(t,i){if("string"==typeof i)throw i;return i})}catch(t){return t}}var vN=Object.create(null);function Tw(e){var t=JSON.stringify(e);return vN[t]||(vN[t]=Object.create(null))}function yN(e){var t=Tw(e);return t.keyFieldsFn||(t.keyFieldsFn=function(i,n){var r=function(s,a){return n.readField(a,s)},o=n.keyObject=Mw(e,function(s){var a=_c(n.storeObject,s,r);return void 0===a&&i!==n.storeObject&&on.call(i,s[0])&&(a=_c(i,s,CN)),ye(void 0!==a,2,s.join("."),i),a});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function wN(e){var t=Tw(e);return t.keyArgsFn||(t.keyArgsFn=function(i,n){var r=n.field,o=n.variables,s=n.fieldName,a=Mw(e,function(l){var d=l[0],u=d.charAt(0);if("@"!==u)if("$"!==u){if(i)return _c(i,l)}else{var g=d.slice(1);if(o&&on.call(o,g)){var b=l.slice(0);return b[0]=g,_c(o,b)}}else if(r&&dr(r.directives)){var h=d.slice(1),f=r.directives.find(function(_){return _.name.value===h}),m=f&&Rp(f,o);return m&&_c(m,l.slice(1))}}),c=JSON.stringify(a);return(i||"{}"!==c)&&(s+=":"+c),s})}function Mw(e,t){var i=new _o;return xN(e).reduce(function(n,r){var o,s=t(r);if(void 0!==s){for(var a=r.length-1;a>=0;--a)(o={})[r[a]]=s,s=o;n=i.merge(n,s)}return n},Object.create(null))}function xN(e){var t=Tw(e);if(!t.paths){var i=t.paths=[],n=[];e.forEach(function(r,o){Mt(r)?(xN(r).forEach(function(s){return i.push(n.concat(s))}),n.length=0):(n.push(r),Mt(e[o+1])||(i.push(n.slice(0)),n.length=0))})}return t.paths}function CN(e,t){return e[t]}function _c(e,t,i){return i=i||CN,DN(t.reduce(function n(r,o){return Mt(r)?r.map(function(s){return n(s,o)}):r&&i(r,o)},e))}function DN(e){return xt(e)?Mt(e)?e.map(DN):Mw(Object.keys(e).sort(),function(t){return _c(e,t)}):e}function Iw(e){return void 0!==e.args?e.args:e.field?Rp(e.field,e.variables):null}f0.setStringify(_s);var vse=function(){},EN=function(e,t){return t.fieldName},SN=function(e,t,i){return(0,i.mergeObjects)(e,t)},kN=function(e,t){return t},yse=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=k({dataIdFromObject:dN},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,i){var n,r=this,o=i&&(i.typename||(null===(n=i.storeObject)||void 0===n?void 0:n.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=i&&i.storeObject||t,a=k(k({},i),{typename:o,storeObject:s,readField:i&&i.readField||function(){var h=Aw(arguments,s);return r.readField(h,{store:r.cache.data,variables:h.variables})}}),l=o&&this.getTypePolicy(o),d=l&&l.keyFn||this.config.dataIdFromObject;d;){var u=d(k(k({},t),s),a);if(!Mt(u)){c=u;break}d=yN(u)}return c=c?String(c):void 0,a.keyObject?[c,a.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var i=this;Object.keys(t).forEach(function(n){var r=t[n],o=r.queryType,s=r.mutationType,a=r.subscriptionType,c=si(r,["queryType","mutationType","subscriptionType"]);o&&i.setRootTypename("Query",n),s&&i.setRootTypename("Mutation",n),a&&i.setRootTypename("Subscription",n),on.call(i.toBeAdded,n)?i.toBeAdded[n].push(c):i.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(t,i){var n=this,r=this.getTypePolicy(t),o=i.keyFields,s=i.fields;function a(c,l){c.merge="function"==typeof l?l:!0===l?SN:!1===l?kN:c.merge}a(r,i.merge),r.keyFn=!1===o?vse:Mt(o)?yN(o):"function"==typeof o?o:r.keyFn,s&&Object.keys(s).forEach(function(c){var l=n.getFieldPolicy(t,c,!0),d=s[c];if("function"==typeof d)l.read=d;else{var u=d.keyArgs,h=d.read,f=d.merge;l.keyFn=!1===u?EN:Mt(u)?wN(u):"function"==typeof u?u:l.keyFn,"function"==typeof h&&(l.read=h),a(l,f)}l.read&&l.merge&&(l.keyFn=l.keyFn||EN)})},e.prototype.setRootTypename=function(t,i){void 0===i&&(i=t);var n="ROOT_"+t.toUpperCase(),r=this.rootTypenamesById[n];i!==r&&(ye(!r||r===t,3,t),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[i]=n,this.rootTypenamesById[n]=i)},e.prototype.addPossibleTypes=function(t){var i=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(n){i.getSupertypeSet(n,!0),t[n].forEach(function(r){i.getSupertypeSet(r,!0).add(n);var o=r.match(fN);(!o||o[0]!==r)&&i.fuzzySubtypes.set(r,new RegExp(r))})})},e.prototype.getTypePolicy=function(t){var i=this;if(!on.call(this.typePolicies,t)){var n=this.typePolicies[t]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(t);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(s,a){if(s.test(t)){var c=i.supertypeMap.get(a);c&&c.forEach(function(l){return r.add(l)})}})),r&&r.size&&r.forEach(function(s){var a=i.getTypePolicy(s),c=a.fields,l=si(a,["fields"]);Object.assign(n,l),Object.assign(n.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){i.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,i,n){if(t){var r=this.getTypePolicy(t).fields;return r[i]||n&&(r[i]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,i){var n=this.supertypeMap.get(t);return!n&&i&&this.supertypeMap.set(t,n=new Set),n},e.prototype.fragmentMatches=function(t,i,n,r){var o=this;if(!t.typeCondition)return!0;if(!i)return!1;var s=t.typeCondition.name.value;if(i===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(i,!0),c=[a],l=function(m){var g=o.getSupertypeSet(m,!1);g&&g.size&&c.indexOf(g)<0&&c.push(g)},d=!(!n||!this.fuzzySubtypes.size),u=!1,h=0;h1?e[1]:t}:(s=k({},n),on.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&ye.warn(5,JR(Array.from(e))),void 0===s.variables&&(s.variables=i),s}function MN(e){return function(i,n){if(Mt(i)||Mt(n))throw On(6);if(xt(i)&&xt(n)){var r=e.getFieldValue(i,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(ot(i)&&gc(n))return e.merge(i.__ref,n),i;if(gc(i)&&ot(n))return e.merge(i,n.__ref),n;if(gc(i)&&gc(n))return k(k({},i),n)}return n}}function Rw(e,t,i){var n="".concat(t).concat(i),r=e.flavors.get(n);return r||e.flavors.set(n,r=e.clientOnly===t&&e.deferred===i?e:k(k({},e),{clientOnly:t,deferred:i})),r}var wse=function(){function e(t,i,n){this.cache=t,this.reader=i,this.fragments=n}return e.prototype.writeToStore=function(t,i){var n=this,r=i.query,o=i.result,s=i.dataId,a=i.variables,c=i.overwrite,l=kd(r),d=function fse(){return new _o}();a=k(k({},g0(l)),a);var u=k(k({store:t,written:Object.create(null),merge:function(f,m){return d.merge(f,m)},variables:a,varString:_s(a)},pN(r,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!ot(h))throw On(9,o);return u.incomingById.forEach(function(f,m){var g=f.storeObject,b=f.mergeTree,_=f.fieldNodeSet,v=Ja(m);if(b&&b.map.size){var C=n.applyMerges(b,v,g,u);if(ot(C))return;g=C}if(!1!==globalThis.__DEV__&&!u.overwrite){var S=Object.create(null);_.forEach(function(q){q.selectionSet&&(S[q.name.value]=!0)}),Object.keys(g).forEach(function(q){(function(q){return!0===S[yo(q)]})(q)&&!function(q){var oe=b&&b.map.get(q);return!!(oe&&oe.info&&oe.info.merge)}(q)&&function xse(e,t,i,n){var r=function(u){var h=n.getFieldValue(u,i);return"object"==typeof h&&h},o=r(e);if(o){var s=r(t);if(s&&!ot(o)&&!It(o,s)&&!Object.keys(o).every(function(u){return void 0!==n.getFieldValue(s,u)})){var a=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=yo(i),l="".concat(a,".").concat(c);if(!ON.has(l)){ON.add(l);var d=[];!Mt(o)&&!Mt(s)&&[o,s].forEach(function(u){var h=n.getFieldValue(u,"__typename");"string"==typeof h&&!d.includes(h)&&d.push(h)}),!1!==globalThis.__DEV__&&ye.warn(12,c,a,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",l,o,s)}}}}(v,g,q,u.store)})}t.merge(m,g)}),t.retain(h.__ref),h},e.prototype.processSelectionSet=function(t){var i=this,n=t.dataId,r=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,l=Object.create(null),d=n&&c.rootTypenamesById[n]||p0(r,o,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(l.__typename=d);var u=function(){var C=Aw(arguments,l,s.variables);if(ot(C.from)){var S=s.incomingById.get(C.from.__ref);if(S){var N=c.readField(k(k({},C),{from:S.storeObject}),s);if(void 0!==N)return N}}return c.readField(C,s)},h=new Set;this.flattenFields(o,r,s,d).forEach(function(C,S){var N,L=mo(S),q=r[L];if(h.add(S),void 0!==q){var oe=c.getStoreFieldName({typename:d,fieldName:S.name.value,field:S,variables:C.variables}),Ne=AN(a,oe),qe=i.processFieldValue(q,S,S.selectionSet?Rw(C,!1,!1):C,Ne),At=void 0;S.selectionSet&&(ot(qe)||gc(qe))&&(At=u("__typename",qe));var Fn=c.getMergeFunction(d,S.name.value,At);Fn?Ne.info={field:S,typename:d,merge:Fn}:RN(a,oe),l=C.merge(l,((N={})[oe]=qe,N))}else!1!==globalThis.__DEV__&&!C.clientOnly&&!C.deferred&&!T0.added(S)&&!c.getReadFunction(d,S.name.value)&&!1!==globalThis.__DEV__&&ye.error(10,mo(S),r)});try{var f=c.identify(r,{typename:d,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:l,readField:u}),g=f[1];n=n||f[0],g&&(l=s.merge(l,g))}catch(C){if(!n)throw C}if("string"==typeof n){var b=Ja(n),_=s.written[n]||(s.written[n]=[]);if(_.indexOf(o)>=0||(_.push(o),this.reader&&this.reader.isFresh(r,b,o,s)))return b;var v=s.incomingById.get(n);return v?(v.storeObject=s.merge(v.storeObject,l),v.mergeTree=Ow(v.mergeTree,a),h.forEach(function(C){return v.fieldNodeSet.add(C)})):s.incomingById.set(n,{storeObject:l,mergeTree:fm(a)?void 0:a,fieldNodeSet:h}),b}return l},e.prototype.processFieldValue=function(t,i,n,r){var o=this;return i.selectionSet&&null!==t?Mt(t)?t.map(function(s,a){var c=o.processFieldValue(s,i,n,AN(r,a));return RN(r,a),c}):this.processSelectionSet({result:t,selectionSet:i.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?zO(t):t},e.prototype.flattenFields=function(t,i,n,r){void 0===r&&(r=p0(i,t,n.fragmentMap));var o=new Map,s=this.cache.policies,a=new bo(!1);return function c(l,d){var u=a.lookup(l,d.clientOnly,d.deferred);u.visited||(u.visited=!0,l.selections.forEach(function(h){if(Ad(h,n.variables)){var f=d.clientOnly,m=d.deferred;if(!(f&&m)&&dr(h.directives)&&h.directives.forEach(function(_){var v=_.name.value;if("client"===v&&(f=!0),"defer"===v){var C=Rp(_,n.variables);(!C||!1!==C.if)&&(m=!0)}}),go(h)){var g=o.get(h);g&&(f=f&&g.clientOnly,m=m&&g.deferred),o.set(h,Rw(n,f,m))}else{var b=Ap(h,n.lookupFragment);if(!b&&h.kind===te.FRAGMENT_SPREAD)throw On(11,h.name.value);b&&s.fragmentMatches(b,r,i,n.variables)&&c(b.selectionSet,Rw(n,f,m))}}}))}(t,n),o},e.prototype.applyMerges=function(t,i,n,r,o){var s,a=this;if(t.map.size&&!ot(n)){var c=Mt(n)||!ot(i)&&!gc(i)?void 0:i,l=n;c&&!o&&(o=[ot(c)?c.__ref:c]);var d,u=function(h,f){return Mt(h)?"number"==typeof f?h[f]:void 0:r.store.getFieldValue(h,String(f))};t.map.forEach(function(h,f){var m=u(c,f),g=u(l,f);if(void 0!==g){o&&o.push(f);var b=a.applyMerges(h,m,g,r,o);b!==g&&(d=d||new Map).set(f,b),o&&ye(o.pop()===f)}}),d&&(n=Mt(l)?l.slice(0):k({},l),d.forEach(function(h,f){n[f]=h}))}return t.info?this.cache.policies.runMergeFunction(i,n,t.info,r,o&&(s=r.store).getStorage.apply(s,o)):n},e}(),IN=[];function AN(e,t){var i=e.map;return i.has(t)||i.set(t,IN.pop()||{map:new Map}),i.get(t)}function Ow(e,t){if(e===t||!t||fm(t))return e;if(!e||fm(e))return t;var i=e.info&&t.info?k(k({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,o={info:i,map:n?new Map:e.map.size?e.map:t.map};if(n){var s=new Set(t.map.keys());e.map.forEach(function(a,c){o.map.set(c,Ow(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,Ow(t.map.get(a),e.map.get(a)))})}return o}function fm(e){return!e||!(e.info||e.map.size)}function RN(e,t){var i=e.map,n=i.get(t);n&&fm(n)&&(IN.push(n),i.delete(t))}var ON=new Set,Cse=function(e){function t(i){void 0===i&&(i={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new VO(T0),n.assumeImmutableResults=!0,n.makeVar=VZ,n.txCount=0,n.config=function use(e){return sc(uN,e)}(i),n.addTypename=!!n.config.addTypename,n.policies=new yse({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Nn(t,e),t.prototype.init=function(){var i=this.data=new $d.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=i.stump,this.resetResultCache()},t.prototype.resetResultCache=function(i){var n=this,r=this.storeReader,o=this.config.fragments;this.storeWriter=new wse(this,this.storeReader=new gse({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:hN(this.config),canon:i?void 0:r&&r.canon,fragments:o}),o),this.maybeBroadcastWatch=zp(function(s,a){return n.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(s){var a=s.optimistic?n.optimisticData:n.data;if(qd(a))return a.makeCacheKey(s.query,s.callback,_s({optimistic:s.optimistic,id:s.id,variables:s.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(s){return s.resetCaching()})},t.prototype.restore=function(i){return this.init(),i&&this.data.replace(i),this},t.prototype.extract=function(i){return void 0===i&&(i=!1),(i?this.optimisticData:this.data).extract()},t.prototype.read=function(i){var n=i.returnPartialData,r=void 0!==n&&n;try{return this.storeReader.diffQueryAgainstStore(k(k({},i),{store:i.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(o){if(o instanceof lN)return null;throw o}},t.prototype.write=function(i){try{return++this.txCount,this.storeWriter.writeToStore(this.data,i)}finally{! --this.txCount&&!1!==i.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(i){if(on.call(i,"id")&&!i.id)return!1;var n=i.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(i.id||"ROOT_QUERY",i.fields)}finally{! --this.txCount&&!1!==i.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(i){return this.storeReader.diffQueryAgainstStore(k(k({},i),{store:i.optimistic?this.optimisticData:this.data,rootId:i.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(i){var n=this;return this.watches.size||function BZ(e){Nd(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(i),i.immediate&&this.maybeBroadcastWatch(i),function(){n.watches.delete(i)&&!n.watches.size&&uF(n),n.maybeBroadcastWatch.forget(i)}},t.prototype.gc=function(i){_s.reset();var n=this.optimisticData.gc();return i&&!this.txCount&&(i.resetResultCache?this.resetResultCache(i.resetResultIdentities):i.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(i,n){return(n?this.optimisticData:this.data).retain(i)},t.prototype.release=function(i,n){return(n?this.optimisticData:this.data).release(i)},t.prototype.identify=function(i){if(ot(i))return i.__ref;try{return this.policies.identify(i)[0]}catch(n){!1!==globalThis.__DEV__&&ye.warn(n)}},t.prototype.evict=function(i){if(!i.id){if(on.call(i,"id"))return!1;i=k(k({},i),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(i,this.data)}finally{! --this.txCount&&!1!==i.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(i){var n=this;return this.init(),_s.reset(),i&&i.discardWatches?(this.watches.forEach(function(r){return n.maybeBroadcastWatch.forget(r)}),this.watches.clear(),uF(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(i){var n=this.optimisticData.removeLayer(i);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},t.prototype.batch=function(i){var l,n=this,r=i.update,o=i.optimistic,s=void 0===o||o,a=i.removeOptimistic,c=i.onWatchUpdated,d=function(h){var m=n.data,g=n.optimisticData;++n.txCount,h&&(n.data=n.optimisticData=h);try{return l=r(n)}finally{--n.txCount,n.data=m,n.optimisticData=g}},u=new Set;return c&&!this.txCount&&this.broadcastWatches(k(k({},i),{onWatchUpdated:function(h){return u.add(h),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,d):!1===s?d(this.data):d(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&u.size?(this.broadcastWatches(k(k({},i),{onWatchUpdated:function(h,f){var m=c.call(this,h,f);return!1!==m&&u.delete(h),m}})),u.size&&u.forEach(function(h){return n.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(i),l},t.prototype.performTransaction=function(i,n){return this.batch({update:i,optimistic:n||null!==n})},t.prototype.transformDocument=function(i){return this.addTypenameToDocument(this.addFragmentsToDocument(i))},t.prototype.broadcastWatches=function(i){var n=this;this.txCount||this.watches.forEach(function(r){return n.maybeBroadcastWatch(r,i)})},t.prototype.addFragmentsToDocument=function(i){var n=this.config.fragments;return n?n.transform(i):i},t.prototype.addTypenameToDocument=function(i){return this.addTypename?this.addTypenameTransform.transformDocument(i):i},t.prototype.broadcastWatch=function(i,n){var r=i.lastDiff,o=this.diff(i);n&&(i.optimistic&&"string"==typeof n.optimistic&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&!1===n.onWatchUpdated.call(this,i,o,r))||(!r||!It(r.result,o.result))&&i.callback(i.lastDiff=o,r)},t}(cse);const Dse=window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/graphql";function Ese(e){return{link:e.create({uri:Dse}),cache:new Cse({typePolicies:{Query:{fields:{search:{merge:(t,i)=>({...t,...i})}}}}})}}let Sse=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[{provide:AF,useFactory:Ese,deps:[ase]},FF],imports:[CJ]}),t})(),kse=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,jd,Yl,tN,jf,qv,Bre]}),t})(),Tse=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[xI,tee,vn,ete,jf,dte,xte,Kte,Zte,mne,jd,qv,Cne,Tne,Bne,tN,Wne,NF,_ie,rre,Ure,kse,fK]}),t})(),Mse=(()=>{var e;class t{constructor(n,r){n.setDefaultFontSetClass("material-icons-outlined"),n.addSvgIcon("magnet",r.bypassSecurityTrustResourceUrl("assets/magnet.svg"))}}return(e=t).\u0275fac=function(n){return new(n||e)(E(Xl),E(Zh))},e.\u0275mod=le({type:e,bootstrap:[ose]}),e.\u0275inj=ae({providers:[BF],imports:[mY,xI,bM,Sse,z$,jf,WG,qv,Y9,$G,Tse]}),t})();u$().bootstrapModule(Mse).catch(e=>console.error(e))},622:function(yc){yc.exports=function(){"use strict";function xo(ki){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(st){return typeof st}:function(st){return st&&"function"==typeof Symbol&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st})(ki)}var Co="iec",hr="jedec",Eo={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function Si(ki){var st=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ds=st.bits,So=void 0!==Ds&&Ds,Es=st.pad,bm=void 0!==Es&&Es,Vr=st.base,Pn=void 0===Vr?-1:Vr,Yd=st.round,ko=void 0===Yd?2:Yd,Kd=st.locale,jr=void 0===Kd?"":Kd,Ti=st.localeOptions,vm=void 0===Ti?{}:Ti,xc=st.separator,Me=void 0===xc?"":xc,Cc=st.spacer,ym=void 0===Cc?" ":Cc,Xd=st.symbols,wm=void 0===Xd?{}:Xd,Y=st.standard,Wn=void 0===Y?"":Y,Dc=st.output,at=void 0===Dc?"string":Dc,tt=st.fullform,xm=void 0!==tt&&tt,Z=st.fullforms,Ss=void 0===Z?[]:Z,Nn=st.exponent,k=void 0===Nn?-1:Nn,si=st.roundingMethod,Cm=void 0===si?"round":si,Zd=st.precision,Ec=void 0===Zd?0:Zd,Ct=k,To=Number(ki),Ze=[],ks=0,Ln="";-1===Pn&&0===Wn.length?(Pn=10,Wn=hr):-1===Pn&&Wn.length>0?Pn=(Wn=Wn===Co?Co:hr)===Co?2:10:Wn=10==(Pn=2===Pn?2:10)||Wn===hr?hr:Co;var Bn=10===Pn?1e3:1024,Sc=!0===xm,Jd=To<0,Ts=Math[Cm];if(isNaN(ki))throw new TypeError("Invalid number");if("function"!==xo(Ts))throw new TypeError("Invalid rounding method");if(Jd&&(To=-To),(-1===Ct||isNaN(Ct))&&(Ct=Math.floor(Math.log(To)/Math.log(Bn)))<0&&(Ct=0),Ct>8&&(Ec>0&&(Ec+=8-Ct),Ct=8),"exponent"===at)return Ct;if(0===To)Ze[0]=0,Ln=Ze[1]=Eo.symbol[Wn][So?"bits":"bytes"][Ct];else{ks=To/(2===Pn?Math.pow(2,10*Ct):Math.pow(1e3,Ct)),So&&(ks*=8)>=Bn&&Ct<8&&(ks/=Bn,Ct++);var kc=Math.pow(10,Ct>0?ko:0);Ze[0]=Ts(ks*kc)/kc,Ze[0]===Bn&&Ct<8&&-1===k&&(Ze[0]=1,Ct++),Ln=Ze[1]=10===Pn&&1===Ct?So?"kbit":"kB":Eo.symbol[Wn][So?"bits":"bytes"][Ct]}if(Jd&&(Ze[0]=-Ze[0]),Ec>0&&(Ze[0]=Ze[0].toPrecision(Ec)),Ze[1]=wm[Ze[1]]||Ze[1],!0===jr?Ze[0]=Ze[0].toLocaleString():jr.length>0?Ze[0]=Ze[0].toLocaleString(jr,vm):Me.length>0&&(Ze[0]=Ze[0].toString().replace(".",Me)),bm&&!1===Number.isInteger(Ze[0])&&ko>0){var eu=Me||".",tu=Ze[0].toString().split(eu),ai=tu[1]||"",Mi=ai.length,nu=ko-Mi;Ze[0]="".concat(tu[0]).concat(eu).concat(ai.padEnd(Mi+nu,"0"))}return Sc&&(Ze[1]=Ss[Ct]?Ss[Ct]:Eo.fullform[Wn][Ct]+(So?"bit":"byte")+(1===Ze[0]?"":"s")),"array"===at?Ze:"object"===at?{value:Ze[0],symbol:Ze[1],exponent:Ct,unit:Ln}:Ze.join(ym)}return Si.partial=function(ki){return function(st){return Si(st,ki)}},Si}()}},yc=>{yc(yc.s=701)}]); \ No newline at end of file diff --git a/webui/dist/bitmagnet/main.b9db37cab9a35084.js b/webui/dist/bitmagnet/main.b9db37cab9a35084.js deleted file mode 100644 index a190c91d..00000000 --- a/webui/dist/bitmagnet/main.b9db37cab9a35084.js +++ /dev/null @@ -1,218 +0,0 @@ -(self.webpackChunkbitmagnet=self.webpackChunkbitmagnet||[]).push([[179],{25:(yc,xo,xs)=>{"use strict";function Re(e){return"function"==typeof e}function wc(e){const i=e(n=>{Error.call(n),n.stack=(new Error).stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const Cs=wc(e=>function(i){e(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i});function Ei(e,t){if(e){const i=e.indexOf(t);0<=i&&e.splice(i,1)}}class Ae{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const o of i)o.remove(this);else i.remove(this);const{initialTeardown:n}=this;if(Re(n))try{n()}catch(o){t=o instanceof Cs?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Wd(o)}catch(s){t=t??[],s instanceof Cs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Cs(t)}}add(t){var i;if(t&&t!==this)if(this.closed)Wd(t);else{if(t instanceof Ae){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&Ei(i,t)}remove(t){const{_finalizers:i}=this;i&&Ei(i,t),t instanceof Ae&&t._removeParent(this)}}Ae.EMPTY=(()=>{const e=new Ae;return e.closed=!0,e})();const Gd=Ae.EMPTY;function Co(e){return e instanceof Ae||e&&"closed"in e&&Re(e.remove)&&Re(e.add)&&Re(e.unsubscribe)}function Wd(e){Re(e)?e():e.unsubscribe()}const ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hr={setTimeout(e,t,...i){const{delegate:n}=hr;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){const{delegate:t}=hr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Qd(e){hr.setTimeout(()=>{const{onUnhandledError:t}=ur;if(!t)throw e;t(e)})}function Do(){}const mm=Eo("C",void 0,void 0);function Eo(e,t,i){return{kind:e,value:t,error:i}}let Si=null;function ki(e){if(ur.useDeprecatedSynchronousErrorHandling){const t=!Si;if(t&&(Si={errorThrown:!1,error:null}),e(),t){const{errorThrown:i,error:n}=Si;if(Si=null,i)throw n}}else e()}class Ds extends Ae{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Co(t)&&t.add(this)):this.destination=Kd}static create(t,i,n){return new Vr(t,i,n)}next(t){this.isStopped?ko(function _m(e){return Eo("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ko(function gm(e){return Eo("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ko(mm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const So=Function.prototype.bind;function Es(e,t){return So.call(e,t)}class bm{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Nn(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Nn(n)}else Nn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Nn(i)}}}class Vr extends Ds{constructor(t,i,n){let r;if(super(),Re(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&ur.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Es(t.next,o),error:t.error&&Es(t.error,o),complete:t.complete&&Es(t.complete,o)}):r=t}this.destination=new bm(r)}}function Nn(e){ur.useDeprecatedSynchronousErrorHandling?function st(e){ur.useDeprecatedSynchronousErrorHandling&&Si&&(Si.errorThrown=!0,Si.error=e)}(e):Qd(e)}function ko(e,t){const{onStoppedNotification:i}=ur;i&&hr.setTimeout(()=>i(e,t))}const Kd={closed:!0,next:Do,error:function Yd(e){throw e},complete:Do},jr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ti(e){return e}function xc(e){return 0===e.length?Ti:1===e.length?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}let Me=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){const n=new e;return n.source=this,n.operator=i,n}subscribe(i,n,r){const o=function Xd(e){return e&&e instanceof Ds||function ym(e){return e&&Re(e.next)&&Re(e.error)&&Re(e.complete)}(e)&&Co(e)}(i)?i:new Vr(i,n,r);return ki(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return new(n=Cc(n))((r,o)=>{const s=new Vr({next:a=>{try{i(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(i)}[jr](){return this}pipe(...i){return xc(i)(this)}toPromise(i){return new(i=Cc(i))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return e.create=t=>new e(t),e})();function Cc(e){var t;return null!==(t=e??ur.Promise)&&void 0!==t?t:Promise}const wm=wc(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Y=(()=>{class e extends Me{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){const n=new Wn(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new wm}next(i){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;const{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){const{hasError:n,isStopped:r,observers:o}=this;return n||r?Gd:(this.currentObservers=null,o.push(i),new Ae(()=>{this.currentObservers=null,Ei(o,i)}))}_checkFinalizedStatuses(i){const{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){const i=new Me;return i.source=this,i}}return e.create=(t,i)=>new Wn(t,i),e})();class Wn extends Y{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===n||n.call(i,t)}error(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===n||n.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,n;return null!==(n=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==n?n:Gd}}function Dc(e){return Re(e?.lift)}function at(e){return t=>{if(Dc(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ze(e,t,i,n,r){return new xm(e,t,i,n,r)}class xm extends Ds{constructor(t,i,n,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(c){t.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe(),!i&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function J(e,t){return at((i,n)=>{let r=0;i.subscribe(Ze(n,o=>{n.next(e.call(t,o,r++))}))})}var Ss=function(e,t){return(Ss=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])})(e,t)};function Ln(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ss(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var k=function(){return k=Object.assign||function(t){for(var i,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=e[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Dm=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Nw(e){return Re(e?.then)}function Lw(e){return Re(e[jr])}function Bw(e){return Symbol.asyncIterator&&Re(e?.[Symbol.asyncIterator])}function Vw(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const jw=function qN(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Hw(e){return Re(e?.[jw])}function zw(e){return function nu(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=i.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){n[h]&&(r[h]=function(f){return new Promise(function(p,g){o.push([h,f,p,g])>1||a(h,f)})})}function a(h,f){try{!function c(h){h.value instanceof Mi?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(n[h](f))}catch(p){u(o[0][3],p)}}function l(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const i=e.getReader();try{for(;;){const{value:n,done:r}=yield Mi(i.read());if(r)return yield Mi(void 0);yield yield Mi(n)}}finally{i.releaseLock()}})}function Uw(e){return Re(e?.getReader)}function sn(e){if(e instanceof Me)return e;if(null!=e){if(Lw(e))return function GN(e){return new Me(t=>{const i=e[jr]();if(Re(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Dm(e))return function WN(e){return new Me(t=>{for(let i=0;i{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,Qd)})}(e);if(Bw(e))return $w(e);if(Hw(e))return function YN(e){return new Me(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(Uw(e))return function KN(e){return $w(zw(e))}(e)}throw Vw(e)}function $w(e){return new Me(t=>{(function XN(e,t){var i,n,r,o;return Bn(this,void 0,void 0,function*(){try{for(i=Pw(e);!(n=yield i.next()).done;)if(t.next(n.value),t.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}t.complete()})})(e,t).catch(i=>t.error(i))})}function fr(e,t,i,n=0,r=!1){const o=t.schedule(function(){i(),r?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!r)return o}function Kt(e,t,i=1/0){return Re(t)?Kt((n,r)=>J((o,s)=>t(n,o,r,s))(sn(e(n,r))),i):("number"==typeof t&&(i=t),at((n,r)=>function ZN(e,t,i,n,r,o,s,a){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&t.complete()},f=g=>l{o&&t.next(g),l++;let b=!1;sn(i(g,d++)).subscribe(Ze(t,_=>{r?.(_),o?f(_):t.next(_)},()=>{b=!0},void 0,()=>{if(b)try{for(l--;c.length&&lp(_)):p(_)}h()}catch(_){t.error(_)}}))};return e.subscribe(Ze(t,f,()=>{u=!0,h()})),()=>{a?.()}}(n,r,e,i)))}function Ms(e=1/0){return Kt(Ti,e)}const Rt=new Me(e=>e.complete());function qw(e){return e&&Re(e.schedule)}function Em(e){return e[e.length-1]}function Sm(e){return Re(Em(e))?e.pop():void 0}function Tc(e){return qw(Em(e))?e.pop():void 0}function km(e,t=0){return at((i,n)=>{i.subscribe(Ze(n,r=>fr(n,e,()=>n.next(r),t),()=>fr(n,e,()=>n.complete(),t),r=>fr(n,e,()=>n.error(r),t)))})}function Gw(e,t=0){return at((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function Ww(e,t){if(!e)throw new Error("Iterable cannot be null");return new Me(i=>{fr(i,t,()=>{const n=e[Symbol.asyncIterator]();fr(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Et(e,t){return t?function sL(e,t){if(null!=e){if(Lw(e))return function tL(e,t){return sn(e).pipe(Gw(t),km(t))}(e,t);if(Dm(e))return function iL(e,t){return new Me(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}(e,t);if(Nw(e))return function nL(e,t){return sn(e).pipe(Gw(t),km(t))}(e,t);if(Bw(e))return Ww(e,t);if(Hw(e))return function rL(e,t){return new Me(i=>{let n;return fr(i,t,()=>{n=e[jw](),fr(i,t,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){return void i.error(s)}o?i.complete():i.next(r)},0,!0)}),()=>Re(n?.return)&&n.return()})}(e,t);if(Uw(e))return function oL(e,t){return Ww(zw(e),t)}(e,t)}throw Vw(e)}(e,t):sn(e)}function Ot(...e){const t=Tc(e),i=function eL(e,t){return"number"==typeof Em(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?sn(n[0]):Ms(i)(Et(n,t)):Rt}class dt extends Y{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const i=super._subscribe(t);return!i.closed&&t.next(this._value),i}getValue(){const{hasError:t,thrownError:i,_value:n}=this;if(t)throw i;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function re(...e){return Et(e,Tc(e))}function iu(e={}){const{connector:t=(()=>new Y),resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,c,l=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,d=u=!1},p=()=>{const g=s;f(),g?.unsubscribe()};return at((g,b)=>{l++,!u&&!d&&h();const _=c=c??t();b.add(()=>{l--,0===l&&!u&&!d&&(a=Tm(p,r))}),_.subscribe(b),!s&&l>0&&(s=new Vr({next:v=>_.next(v),error:v=>{u=!0,h(),a=Tm(f,i,v),_.error(v)},complete:()=>{d=!0,h(),a=Tm(f,n),_.complete()}}),sn(g).subscribe(s))})(o)}}function Tm(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new Vr({next:()=>{n.unsubscribe(),e()}});return sn(t(...i)).subscribe(n)}function Vt(e,t){return at((i,n)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&n.complete();i.subscribe(Ze(n,c=>{r?.unsubscribe();let l=0;const d=o++;sn(e(c,d)).subscribe(r=Ze(n,u=>n.next(t?t(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Is(e,t=Ti){return e=e??aL,at((i,n)=>{let r,o=!0;i.subscribe(Ze(n,s=>{const a=t(s);(o||!e(r,a))&&(o=!1,r=a,n.next(s))}))})}function aL(e,t){return e===t}function et(e){for(let t in e)if(e[t]===et)return t;throw Error("Could not find renamed property on target object.")}function ru(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function Xt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Xt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function Mm(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const cL=et({__forward_ref__:et});function He(e){return e.__forward_ref__=He,e.toString=function(){return Xt(this())},e}function _e(e){return Im(e)?e():e}function Im(e){return"function"==typeof e&&e.hasOwnProperty(cL)&&e.__forward_ref__===He}function Am(e){return e&&!!e.\u0275providers}const Qw="https://g.co/ng/security#xss";class I extends Error{constructor(t,i){super(function ou(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function xe(e){return"string"==typeof e?e:null==e?"":String(e)}function Rm(e,t){throw new I(-201,!1)}function ci(e,t){null==e&&function me(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${i} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function V(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ae(e){return{providers:e.providers||[],imports:e.imports||[]}}function su(e){return Yw(e,cu)||Yw(e,Kw)}function Yw(e,t){return e.hasOwnProperty(t)?e[t]:null}function au(e){return e&&(e.hasOwnProperty(Om)||e.hasOwnProperty(gL))?e[Om]:null}const cu=et({\u0275prov:et}),Om=et({\u0275inj:et}),Kw=et({ngInjectableDef:et}),gL=et({ngInjectorDef:et});var Ie=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ie||{});let Fm;function jn(e){const t=Fm;return Fm=e,t}function Zw(e,t,i){const n=su(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Ie.Optional?null:void 0!==t?t:void Rm(Xt(e))}const ut=globalThis,Mc={},Vm="__NG_DI_FLAG__",lu="ngTempTokenPath",vL=/\n/gm,ex="__source";let As;function Hr(e){const t=As;return As=e,t}function xL(e,t=Ie.Default){if(void 0===As)throw new I(-203,!1);return null===As?Zw(e,void 0,t):As.get(e,t&Ie.Optional?null:void 0,t)}function D(e,t=Ie.Default){return(function Xw(){return Fm}()||xL)(_e(e),t)}function j(e,t=Ie.Default){return D(e,du(t))}function du(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function jm(e){const t=[];for(let i=0;it){s=o-1;break}}}for(;oo?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==rx(f,l,0)||2&n&&l!==h){if(Ii(n))return!1;s=!0}}}}else{if(!s&&!Ii(n)&&!Ii(c))return!1;if(s&&Ii(c))continue;s=!1,n=c|1&n}}return Ii(n)||s}function Ii(e){return 0==(1&e)}function ML(e,t,i,n){if(null===t)return-1;let r=0;if(n||!i){let o=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!Ii(s)&&(t+=ux(o,r),r=""),n=s,o=o||!Ii(n);i++}return""!==r&&(t+=ux(o,r)),t}function fe(e){return pr(()=>{const t=fx(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===uu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||li.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""};px(i);const n=e.dependencies;return i.directiveDefs=fu(n,!1),i.pipeDefs=fu(n,!0),i.id=function zL(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of i)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(i),i})}function BL(e){return Le(e)||an(e)}function VL(e){return null!==e}function le(e){return pr(()=>({type:e.type,bootstrap:e.bootstrap||$e,declarations:e.declarations||$e,imports:e.imports||$e,exports:e.exports||$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function hx(e,t){if(null==e)return Gi;const i={};for(const n in e)if(e.hasOwnProperty(n)){let r=e[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,t&&(t[r]=o)}return i}function T(e){return pr(()=>{const t=fx(e);return px(t),t})}function wn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Le(e){return e[hu]||null}function an(e){return e[Hm]||null}function xn(e){return e[zm]||null}function Yn(e,t){const i=e[nx]||null;if(!i&&!0===t)throw new Error(`Type ${Xt(e)} does not have '\u0275mod' property.`);return i}function fx(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Gi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:hx(e.inputs,t),outputs:hx(e.outputs)}}function px(e){e.features?.forEach(t=>t(e))}function fu(e,t){if(!e)return null;const i=t?xn:BL;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(VL)}const St=0,K=1,Se=2,yt=3,Ai=4,Oc=5,gn=6,Os=7,Ft=8,zr=9,Fs=10,Ce=11,Fc=12,mx=13,Ps=14,Pt=15,Pc=16,Ns=17,Wi=18,Nc=19,gx=20,Ur=21,gr=22,Lc=23,Bc=24,Oe=25,$m=1,_x=2,Qi=7,Ls=9,cn=11;function Hn(e){return Array.isArray(e)&&"object"==typeof e[$m]}function Cn(e){return Array.isArray(e)&&!0===e[$m]}function qm(e){return 0!=(4&e.flags)}function Io(e){return e.componentOffset>-1}function mu(e){return 1==(1&e.flags)}function Ri(e){return!!e.template}function Gm(e){return 0!=(512&e[Se])}function Ao(e,t){return e.hasOwnProperty(mr)?e[mr]:null}let ln=null,gu=!1;function di(e){const t=ln;return ln=e,t}const _u={version: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:()=>{}};function xx(e){if(!jc(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Ex(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Dx(e){e.dirty=!0,function Cx(e){if(void 0===e.liveConsumerNode)return;const t=gu;gu=!0;try{for(const i of e.liveConsumerNode)i.dirty||Dx(i)}finally{gu=t}}(e),e.consumerMarkedDirty?.(e)}function bu(e){return e&&(e.nextProducerIndex=0),di(e)}function vu(e,t){if(di(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(jc(e))for(let i=e.nextProducerIndex;i0}function Bs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Mx=null;function Rx(e){const t=di(null);try{return e()}finally{di(t)}}const Ox=()=>{},e2={..._u,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ox};class t2{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function kt(){return Fx}function Fx(e){return e.type.prototype.ngOnChanges&&(e.setInput=r2),n2}function n2(){const e=Nx(this),t=e?.current;if(t){const i=e.previous;if(i===Gi)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function r2(e,t,i,n){const r=this.declaredInputs[i],o=Nx(e)||function o2(e,t){return e[Px]=t}(e,{previous:Gi,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[r];s[r]=new t2(c&&c.currentValue,t,a===Gi),e[n]=t}kt.ngInherit=!0;const Px="__ngSimpleChanges__";function Nx(e){return e[Px]||null}const Yi=function(e,t,i){},Lx="svg";function ht(e){for(;Array.isArray(e);)e=e[St];return e}function xu(e,t){return ht(t[e])}function zn(e,t){return ht(t[e.index])}function Vx(e,t){return e.data[t]}function Vs(e,t){return e[t]}function Kn(e,t){const i=t[e];return Hn(i)?i:i[St]}function qr(e,t){return null==t?null:e[t]}function jx(e){e[Ns]=0}function u2(e){1024&e[Se]||(e[Se]|=1024,zx(e,1))}function Hx(e){1024&e[Se]&&(e[Se]&=-1025,zx(e,-1))}function zx(e,t){let i=e[yt];if(null===i)return;i[Oc]+=t;let n=i;for(i=i[yt];null!==i&&(1===t&&1===n[Oc]||-1===t&&0===n[Oc]);)i[Oc]+=t,n=i,i=i[yt]}const ge={lFrame:Jx(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function qx(){return ge.bindingsEnabled}function js(){return null!==ge.skipHydrationRootTNode}function F(){return ge.lFrame.lView}function Be(){return ge.lFrame.tView}function Ye(e){return ge.lFrame.contextLView=e,e[Ft]}function Ke(e){return ge.lFrame.contextLView=null,e}function dn(){let e=Gx();for(;null!==e&&64===e.type;)e=e.parent;return e}function Gx(){return ge.lFrame.currentTNode}function Ki(e,t){const i=ge.lFrame;i.currentTNode=e,i.isParent=t}function eg(){return ge.lFrame.isParent}function tg(){ge.lFrame.isParent=!1}function Dn(){const e=ge.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _r(){return ge.lFrame.bindingIndex}function Hs(){return ge.lFrame.bindingIndex++}function br(e){const t=ge.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function C2(e,t){const i=ge.lFrame;i.bindingIndex=i.bindingRootIndex=e,ng(t)}function ng(e){ge.lFrame.currentDirectiveIndex=e}function ig(e){const t=ge.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Kx(){return ge.lFrame.currentQueryIndex}function rg(e){ge.lFrame.currentQueryIndex=e}function E2(e){const t=e[K];return 2===t.type?t.declTNode:1===t.type?e[gn]:null}function Xx(e,t,i){if(i&Ie.SkipSelf){let r=t,o=e;for(;!(r=r.parent,null!==r||i&Ie.Host||(r=E2(o),null===r||(o=o[Ps],10&r.type))););if(null===r)return!1;t=r,e=o}const n=ge.lFrame=Zx();return n.currentTNode=t,n.lView=e,!0}function og(e){const t=Zx(),i=e[K];ge.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function Zx(){const e=ge.lFrame,t=null===e?null:e.child;return null===t?Jx(e):t}function Jx(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function eC(){const e=ge.lFrame;return ge.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const tC=eC;function sg(){const e=eC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function En(){return ge.lFrame.selectedIndex}function Ro(e){ge.lFrame.selectedIndex=e}function Dt(){const e=ge.lFrame;return Vx(e.tView,e.selectedIndex)}function zs(){ge.lFrame.currentNamespace=Lx}function ag(){!function M2(){ge.lFrame.currentNamespace=null}()}let iC=!0;function Cu(){return iC}function Gr(e){iC=e}function Du(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i=n)break}else t[c]<0&&(e[Ns]+=65536),(a>13>16&&(3&e[Se])===t&&(e[Se]+=8192,oC(a,o)):oC(a,o)}const Us=-1;class zc{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function dg(e){return e!==Us}function Uc(e){return 32767&e}function $c(e,t){let i=function P2(e){return e>>16}(e),n=t;for(;i>0;)n=n[Ps],i--;return n}let ug=!0;function ku(e){const t=ug;return ug=e,t}const sC=255,aC=5;let N2=0;const Xi={};function Tu(e,t){const i=cC(e,t);if(-1!==i)return i;const n=t[K];n.firstCreatePass&&(e.injectorIndex=t.length,hg(n.data,e),hg(t,null),hg(n.blueprint,null));const r=Mu(e,t),o=e.injectorIndex;if(dg(r)){const s=Uc(r),a=$c(r,t),c=a[K].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=r,o}function hg(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cC(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;null!==r;){if(n=mC(r),null===n)return Us;if(i++,r=r[Ps],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Us}function fg(e,t,i){!function L2(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ac)&&(n=i[Ac]),null==n&&(n=i[Ac]=N2++);const r=n&sC;t.data[e+(r>>aC)]|=1<=0?t&sC:z2:t}(i);if("function"==typeof o){if(!Xx(t,e,n))return n&Ie.Host?lC(r,0,n):dC(t,i,n,r);try{let s;if(s=o(n),null!=s||n&Ie.Optional)return s;Rm()}finally{tC()}}else if("number"==typeof o){let s=null,a=cC(e,t),c=Us,l=n&Ie.Host?t[Pt][gn]:null;for((-1===a||n&Ie.SkipSelf)&&(c=-1===a?Mu(e,t):t[a+8],c!==Us&&pC(n,!1)?(s=t[K],a=Uc(c),t=$c(c,t)):a=-1);-1!==a;){const d=t[K];if(fC(o,a,d.data)){const u=V2(a,t,i,s,n,l);if(u!==Xi)return u}c=t[a+8],c!==Us&&pC(n,t[K].data[a+8]===l)&&fC(o,a,t)?(s=d,a=Uc(c),t=$c(c,t)):a=-1}}return r}function V2(e,t,i,n,r,o){const s=t[K],a=s.data[e+8],d=Iu(a,s,i,null==n?Io(a)&&ug:n!=s&&0!=(3&a.type),r&Ie.Host&&o===a);return null!==d?Oo(t,s,d,a):Xi}function Iu(e,t,i,n,r){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,d=o>>20,h=r?a+d:e.directiveEnd;for(let f=n?a:a+d;f=c&&p.type===i)return f}if(r){const f=s[c];if(f&&Ri(f)&&f.type===i)return c}return null}function Oo(e,t,i,n){let r=e[i];const o=t.data;if(function R2(e){return e instanceof zc}(r)){const s=r;s.resolving&&function lL(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new I(-200,`Circular dependency in DI detected for ${e}${i}`)}(function Qe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():xe(e)}(o[i]));const a=ku(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?jn(s.injectImpl):null;Xx(e,n,Ie.Default);try{r=e[i]=s.factory(void 0,o,e,n),t.firstCreatePass&&i>=n.directiveStart&&function I2(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(n){const s=Fx(t);(i.preOrderHooks??=[]).push(e,s),(i.preOrderCheckHooks??=[]).push(e,s)}r&&(i.preOrderHooks??=[]).push(0-e,r),o&&((i.preOrderHooks??=[]).push(e,o),(i.preOrderCheckHooks??=[]).push(e,o))}(i,o[i],t)}finally{null!==l&&jn(l),ku(a),s.resolving=!1,tC()}}return r}function fC(e,t,i){return!!(i[t+(e>>aC)]&1<{const t=e.prototype.constructor,i=t[mr]||pg(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const o=r[mr]||pg(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pg(e){return Im(e)?()=>{const t=pg(_e(e));return t&&t()}:Ao(e)}function mC(e){const t=e[K],i=t.type;return 2===i?t.declTNode:1===i?e[gn]:null}function ui(e){return function B2(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const n=i.length;let r=0;for(;r{const n=function mg(e){return function(...i){if(e){const n=e(...i);for(const r in n)this[r]=n[r]}}}(t);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,l,d){const u=c.hasOwnProperty(qs)?c[qs]:Object.defineProperty(c,qs,{value:[]})[qs];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function Ys(e,t){e.forEach(i=>Array.isArray(i)?Ys(i,t):t(i))}function _C(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Au(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wc(e,t){const i=[];for(let n=0;n=0?e[1|n]=i:(n=~n,function K2(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n,t,i)),n}function gg(e,t){const i=Ks(e,t);if(i>=0)return e[1|i]}function Ks(e,t){return function bC(e,t,i){let n=0,r=e.length>>i;for(;r!==n;){const o=n+(r-n>>1),s=e[o<t?r=o:n=o+1}return~(r<|^->||--!>|)/g,vB="\u200b$1\u200b";const wg=new Map;let yB=0;const Cg="__ngContext__";function _n(e,t){Hn(t)?(e[Cg]=t[Nc],function xB(e){wg.set(e[Nc],e)}(t)):e[Cg]=t}let Dg;function Eg(e,t){return Dg(e,t)}function Xc(e){const t=e[yt];return Cn(t)?t[yt]:t}function BC(e){return jC(e[Fc])}function VC(e){return jC(e[Ai])}function jC(e){for(;null!==e&&!Cn(e);)e=e[Ai];return e}function Js(e,t,i,n,r){if(null!=n){let o,s=!1;Cn(n)?o=n:Hn(n)&&(s=!0,n=n[St]);const a=ht(n);0===e&&null!==i?null==r?$C(t,i,a):Po(t,i,a,r||null,!0):1===e&&null!==i?Po(t,i,a,r||null,!0):2===e?function $u(e,t,i){const n=zu(e,t);n&&function HB(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function $B(e,t,i,n,r){const o=i[Qi];o!==ht(i)&&Js(t,e,n,o,r);for(let a=cn;at.replace(bB,vB))}(t))}function ju(e,t,i){return e.createElement(t,i)}function zC(e,t){const i=e[Ls],n=i.indexOf(t);Hx(t),i.splice(n,1)}function Hu(e,t){if(e.length<=cn)return;const i=cn+t,n=e[i];if(n){const r=n[Pc];null!==r&&r!==e&&zC(r,n),t>0&&(e[i-1][Ai]=n[Ai]);const o=Au(e,cn+t);!function OB(e,t){Jc(e,t,t[Ce],2,null,null),t[St]=null,t[gn]=null}(n[K],n);const s=o[Wi];null!==s&&s.detachView(o[K]),n[yt]=null,n[Ai]=null,n[Se]&=-129}return n}function kg(e,t){if(!(256&t[Se])){const i=t[Ce];t[Lc]&&Sx(t[Lc]),t[Bc]&&Sx(t[Bc]),i.destroyNode&&Jc(e,t,i,3,null,null),function NB(e){let t=e[Fc];if(!t)return Tg(e[K],e);for(;t;){let i=null;if(Hn(t))i=t[Fc];else{const n=t[cn];n&&(i=n)}if(!i){for(;t&&!t[Ai]&&t!==e;)Hn(t)&&Tg(t[K],t),t=t[yt];null===t&&(t=e),Hn(t)&&Tg(t[K],t),i=t&&t[Ai]}t=i}}(t)}}function Tg(e,t){if(!(256&t[Se])){t[Se]&=-129,t[Se]|=256,function jB(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),o+=2}else i[o].call(n[i[o+1]]);null!==n&&(t[Os]=null);const r=t[Ur];if(null!==r){t[Ur]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[n.directiveStart+r];if(o===li.None||o===li.Emulated)return null}return zn(n,i)}}(e,t.parent,i)}function Po(e,t,i,n,r){e.insertBefore(t,i,n,r)}function $C(e,t,i){e.appendChild(t,i)}function qC(e,t,i,n,r){null!==n?Po(e,t,i,n,r):$C(e,t,i)}function zu(e,t){return e.parentNode(t)}function GC(e,t,i){return QC(e,t,i)}let Ig,qu,Fg,QC=function WC(e,t,i){return 40&e.type?zn(e,i):null};function Uu(e,t,i,n){const r=Mg(e,n,t),o=t[Ce],a=GC(n.parent||t[gn],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;ce,createScript:e=>e,createScriptURL:e=>e})}catch{}return qu}()?.createHTML(e)||e}class No{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Qw})`}}class XB extends No{getTypeName(){return"HTML"}}class ZB extends No{getTypeName(){return"Style"}}class JB extends No{getTypeName(){return"Script"}}class eV extends No{getTypeName(){return"URL"}}class tV extends No{getTypeName(){return"ResourceURL"}}function Zn(e){return e instanceof No?e.changingThisBreaksApplicationSecurity:e}function Zi(e,t){const i=function nV(e){return e instanceof No&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${Qw})`)}return i===t}class cV{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const i=(new window.DOMParser).parseFromString(ea(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class lV{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=ea(t),i}}const uV=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wu(e){return(e=String(e)).match(uV)?e:"unsafe:"+e}function vr(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function el(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const oD=vr("area,br,col,hr,img,wbr"),sD=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),aD=vr("rp,rt"),Ng=el(oD,el(sD,vr("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")),el(aD,vr("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")),el(aD,sD)),Lg=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),cD=el(Lg,vr("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"),vr("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")),hV=vr("script,style,template");class fV{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!Ng.hasOwnProperty(i))return this.sanitizedSomething=!0,!hV.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=t.attributes;for(let r=0;r"),!0}endElement(t){const i=t.nodeName.toLowerCase();Ng.hasOwnProperty(i)&&!oD.hasOwnProperty(i)&&(this.buf.push(""))}chars(t){this.buf.push(lD(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const pV=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mV=/([^\#-~ |!])/g;function lD(e){return e.replace(/&/g,"&").replace(pV,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mV,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qu;function dD(e,t){let i=null;try{Qu=Qu||function rD(e){const t=new lV(e);return function dV(){try{return!!(new window.DOMParser).parseFromString(ea(""),"text/html")}catch{return!1}}()?new cV(t):t}(e);let n=t?String(t):"";i=Qu.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Qu.getInertBodyElement(n)}while(n!==o);return ea((new fV).sanitizeChildren(Bg(i)||i))}finally{if(i){const n=Bg(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Bg(e){return"content"in e&&function gV(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(un||{});function tl(e){const t=function nl(){const e=F();return e&&e[Fs].sanitizer}();return t?t.sanitize(un.URL,e)||"":Zi(e,"URL")?Zn(e):Wu(xe(e))}class M{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=V({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const il=new M("ENVIRONMENT_INITIALIZER"),fD=new M("INJECTOR",-1),pD=new M("INJECTOR_DEF_TYPES");class Vg{get(t,i=Mc){if(i===Mc){const n=new Error(`NullInjectorError: No provider for ${Xt(t)}!`);throw n.name="NullInjectorError",n}return i}}function CV(...e){return{\u0275providers:mD(0,e),\u0275fromNgModule:!0}}function mD(e,...t){const i=[],n=new Set;let r;const o=s=>{i.push(s)};return Ys(t,s=>{const a=s;Yu(a,o,[],n)&&(r||=[],r.push(a))}),void 0!==r&&gD(r,o),i}function gD(e,t){for(let i=0;i{t(o,n)})}}function Yu(e,t,i,n){if(!(e=_e(e)))return!1;let r=null,o=au(e);const s=!o&&Le(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(o=au(c),!o)return!1;r=c}const a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Yu(l,t,i,n)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;n.add(r);try{Ys(o.imports,d=>{Yu(d,t,i,n)&&(l||=[],l.push(d))})}finally{}void 0!==l&&gD(l,t)}if(!a){const l=Ao(r)||(()=>new r);t({provide:r,useFactory:l,deps:$e},r),t({provide:pD,useValue:r,multi:!0},r),t({provide:il,useValue:()=>D(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=e;Hg(c,d=>{t(d,l)})}}}return r!==e&&void 0!==e.providers}function Hg(e,t){for(let i of e)Am(i)&&(i=i.\u0275providers),Array.isArray(i)?Hg(i,t):t(i)}const DV=et({provide:String,useValue:et});function zg(e){return null!==e&&"object"==typeof e&&DV in e}function Lo(e){return"function"==typeof e}const Ug=new M("Set Injector scope."),Ku={},SV={};let $g;function Xu(){return void 0===$g&&($g=new Vg),$g}class Jn{}class Zu extends Jn{get destroyed(){return this._destroyed}constructor(t,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gg(t,s=>this.processProvider(s)),this.records.set(fD,na(void 0,this)),r.has("environment")&&this.records.set(Jn,na(void 0,this));const o=this.records.get(Ug);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(pD.multi,$e,Ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=Hr(this),n=jn(void 0);try{return t()}finally{Hr(i),jn(n)}}get(t,i=Mc,n=Ie.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ix))return t[ix](this);n=du(n);const o=Hr(this),s=jn(void 0);try{if(!(n&Ie.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function AV(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(t)&&su(t);c=l&&this.injectableDefInScope(l)?na(qg(t),Ku):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&Ie.Self?Xu():this.parent).get(t,i=n&Ie.Optional&&i===Mc?null:i)}catch(a){if("NullInjectorError"===a.name){if((a[lu]=a[lu]||[]).unshift(Xt(t)),o)throw a;return function DL(e,t,i,n){const r=e[lu];throw t[ex]&&r.unshift(t[ex]),e.message=function EL(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Xt(t);if(Array.isArray(t))r=t.map(Xt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Xt(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(vL,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[lu]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{jn(s),Hr(o)}}resolveInjectorInitializers(){const t=Hr(this),i=jn(void 0);try{const r=this.get(il.multi,$e,Ie.Self);for(const o of r)o()}finally{Hr(t),jn(i)}}toString(){const t=[],i=this.records;for(const n of i.keys())t.push(Xt(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(t){let i=Lo(t=_e(t))?t:_e(t&&t.provide);const n=function TV(e){return zg(e)?na(void 0,e.useValue):na(vD(e),Ku)}(t);if(Lo(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=na(void 0,Ku,!0),r.factory=()=>jm(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===Ku&&(i.value=SV,i.value=i.factory()),"object"==typeof i.value&&i.value&&function IV(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=_e(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function qg(e){const t=su(e),i=null!==t?t.factory:Ao(e);if(null!==i)return i;if(e instanceof M)throw new I(204,!1);if(e instanceof Function)return function kV(e){const t=e.length;if(t>0)throw Wc(t,"?"),new I(204,!1);const i=function mL(e){return e&&(e[cu]||e[Kw])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new I(204,!1)}function vD(e,t,i){let n;if(Lo(e)){const r=_e(e);return Ao(r)||qg(r)}if(zg(e))n=()=>_e(e.useValue);else if(function bD(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...jm(e.deps||[]));else if(function _D(e){return!(!e||!e.useExisting)}(e))n=()=>D(_e(e.useExisting));else{const r=_e(e&&(e.useClass||e.provide));if(!function MV(e){return!!e.deps}(e))return Ao(r)||qg(r);n=()=>new r(...jm(e.deps))}return n}function na(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Gg(e,t){for(const i of e)Array.isArray(i)?Gg(i,t):i&&Am(i)?Gg(i.\u0275providers,t):t(i)}const rl=new M("AppId",{providedIn:"root",factory:()=>RV}),RV="ng",yD=new M("Platform Initializer"),Qr=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_t=new M("AnimationModuleType"),Wg=new M("CSP nonce",{providedIn:"root",factory:()=>function ta(){if(void 0!==Fg)return Fg;if(typeof document<"u")return document;throw new I(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let wD=(e,t,i)=>null;function t_(e,t,i=!1){return wD(e,t,i)}class zV{}class DD{}class $V{resolveComponentFactory(t){throw function UV(e){const t=Error(`No component factory found for ${Xt(e)}.`);return t.ngComponent=e,t}(t)}}let Bo=(()=>{class t{}return t.NULL=new $V,t})();function qV(){return oa(dn(),F())}function oa(e,t){return new W(zn(e,t))}let W=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=qV,t})();function GV(e){return e instanceof W?e.nativeElement:e}class al{}let yr=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function WV(){const e=F(),i=Kn(dn().index,e);return(Hn(i)?i:e)[Ce]}(),t})(),QV=(()=>{var e;class t{}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>null}),t})();class Vo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const YV=new Vo("16.2.4"),r_={};function MD(e,t=null,i=null,n){const r=ID(e,t,i,n);return r.resolveInjectorInitializers(),r}function ID(e,t=null,i=null,n,r=new Set){const o=[i||$e,CV(e)];return n=n||("object"==typeof e?void 0:Xt(e)),new Zu(o,t||Xu(),n||null,r)}let jt=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return MD({name:""},r,n,"");{const o=n.name??"";return MD({name:o},n.parent,n.providers,o)}}}return(e=t).THROW_IF_NOT_FOUND=Mc,e.NULL=new Vg,e.\u0275prov=V({token:e,providedIn:"any",factory:()=>D(fD)}),e.__NG_ELEMENT_ID__=-1,t})();function a_(e){return t=>{setTimeout(e,void 0,t)}}const U=class n3 extends Y{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,n){let r=t,o=i||(()=>null),s=n;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=a_(o),r&&(r=a_(r)),s&&(s=a_(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof Ae&&t.add(a),a}};function AD(...e){}class G{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new U(!1),this.onMicrotaskEmpty=new U(!1),this.onStable=new U(!1),this.onError=new U(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function r3(){const e="function"==typeof ut.requestAnimationFrame;let t=ut[e?"requestAnimationFrame":"setTimeout"],i=ut[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function a3(e){const t=()=>{!function s3(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ut,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,l_(e),e.isCheckStableRunning=!0,c_(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),l_(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(function l3(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return i.invokeTask(r,o,s,a);try{return RD(e),i.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),OD(e)}},onInvoke:(i,n,r,o,s,a,c)=>{try{return RD(e),i.invoke(r,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),OD(e)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,l_(e),c_(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!G.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(G.isInAngularZone())throw new I(909,!1)}run(t,i,n){return this._inner.run(t,i,n)}runTask(t,i,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,o3,AD,AD);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(t,i,n){return this._inner.runGuarded(t,i,n)}runOutsideAngular(t){return this._outer.run(t)}}const o3={};function c_(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function l_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function RD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function OD(e){e._nesting--,c_(e)}class c3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new U,this.onMicrotaskEmpty=new U,this.onStable=new U,this.onError=new U}run(t,i,n){return t.apply(i,n)}runGuarded(t,i,n){return t.apply(i,n)}runOutsideAngular(t){return t()}runTask(t,i,n,r){return t.apply(i,n)}}const FD=new M("",{providedIn:"root",factory:PD});function PD(){const e=j(G);let t=!0;return Ot(new Me(r=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(t),r.complete()})}),new Me(r=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{G.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(iu()))}function wr(e){return e instanceof Function?e():e}let d_=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new I(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>new e}),t})();function cl(e){for(;e;){e[Se]|=64;const t=Xc(e);if(Gm(e)&&!t)return e;e=t}return null}function u_(e){return e.ngOriginalError}class Ji{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&u_(t);for(;i&&u_(i);)i=u_(i);return i||null}}const jD=new M("",{providedIn:"root",factory:()=>!1});let oh=null;function $D(e,t){return e[t]??WD()}function qD(e,t){const i=WD();i.producerNode?.length&&(e[t]=oh,i.lView=e,oh=GD())}const v3={..._u,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{cl(e.lView)},lView:null};function GD(){return Object.create(v3)}function WD(){return oh??=GD(),oh}const De={};function x(e){QD(Be(),F(),En()+e,!1)}function QD(e,t,i,n){if(!n)if(3==(3&t[Se])){const o=e.preOrderCheckHooks;null!==o&&Eu(t,o,i)}else{const o=e.preOrderHooks;null!==o&&Su(t,o,0,i)}Ro(i)}function m(e,t=Ie.Default){const i=F();return null===i?D(e,t):uC(dn(),i,_e(e),t)}function jo(){throw new Error("invalid")}function sh(e,t,i,n,r,o,s,a,c,l,d){const u=t.blueprint.slice();return u[St]=r,u[Se]=140|n,(null!==l||e&&2048&e[Se])&&(u[Se]|=2048),jx(u),u[yt]=u[Ps]=e,u[Ft]=i,u[Fs]=s||e&&e[Fs],u[Ce]=a||e&&e[Ce],u[zr]=c||e&&e[zr]||null,u[gn]=o,u[Nc]=function wB(){return yB++}(),u[gr]=d,u[gx]=l,u[Pt]=2==t.type?e[Pt]:u,u}function ca(e,t,i,n,r){let o=e.data[t];if(null===o)o=function h_(e,t,i,n,r){const o=Gx(),s=eg(),c=e.data[t]=function k3(e,t,i,n,r,o){let s=t?t.injectorIndex:-1,a=0;return js()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,i,t,n,r);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,t,i,n,r),function x2(){return ge.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=i,o.value=n,o.attrs=r;const s=function Hc(){const e=ge.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Ki(o,!0),o}function ll(e,t,i,n){if(0===i)return-1;const r=t.length;for(let o=0;oOe&&QD(e,t,Oe,!1),Yi(a?2:0,r);const l=a?o:null,d=bu(l);try{null!==l&&(l.dirty=!1),i(n,r)}finally{vu(l,d)}}finally{a&&null===t[Lc]&&qD(t,Lc),Ro(s),Yi(a?3:1,r)}}function f_(e,t,i){if(qm(t)){const n=di(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function ZD(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const o=e[r];null===n?JD(i,t,r,o):n.hasOwnProperty(r)&&JD(i,t,n[r],o)}return i}function JD(e,t,i,n){e.hasOwnProperty(i)?e[i].push(t,n):e[i]=[t,n]}function ei(e,t,i,n,r,o,s,a){const c=zn(t,i);let d,l=t.inputs;!a&&null!=l&&(d=l[n])?(w_(e,i,d,n,r),Io(t)&&function I3(e,t){const i=Kn(t,e);16&i[Se]||(i[Se]|=64)}(i,t.index)):3&t.type&&(n=function M3(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),r=null!=s?s(r,t.value||"",n):r,o.setProperty(c,n,r))}function __(e,t,i,n){if(qx()){const r=null===n?null:{"":-1},o=function N3(e,t){const i=e.directiveRegistry;let n=null,r=null;if(i)for(let o=0;o0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(s)!=a&&s.push(a),s.push(i,n,o)}}(e,t,n,ll(e,i,r.hostVars,De),r)}function er(e,t,i,n,r,o){const s=zn(e,t);!function v_(e,t,i,n,r,o,s){if(null==o)e.removeAttribute(t,r,i);else{const a=null==s?xe(o):s(o,n||"",r);e.setAttribute(t,r,a,i)}}(t[Ce],s,o,e.value,i,n,r)}function z3(e,t,i,n,r,o){const s=o[t];if(null!==s)for(let a=0;a{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const s=typeof Zone>"u"?null:Zone.current,a=function JL(e,t,i){const n=Object.create(e2);i&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const r=s=>{n.cleanupFn=s};return n.ref={notify:()=>Dx(n),run:()=>{if(n.dirty=!1,n.hasRun&&!Ex(n))return;n.hasRun=!0;const s=bu(n);try{n.cleanupFn(),n.cleanupFn=Ox,n.fn(r)}finally{vu(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,d=>{this.all.has(d)&&this.queue.set(d,s)},o);let c;this.all.add(a),a.notify();const l=()=>{a.cleanup(),c?.(),this.all.delete(a),this.queue.delete(a)};return c=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>new e}),t})();function ch(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,o=0;if(null!==t)for(let s=0;s0){hE(e,1);const r=i.components;null!==r&&pE(e,r,1)}}function pE(e,t,i){for(let n=0;n-1&&(Hu(t,n),Au(i,n))}this._attachedToViewContainer=!1}kg(this._lView[K],this._lView)}onDestroy(t){!function Ux(e,t){if(256==(256&e[Se]))throw new I(911,!1);null===e[Ur]&&(e[Ur]=[]),e[Ur].push(t)}(this._lView,t)}markForCheck(){cl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Se]&=-129}reattach(){this._lView[Se]|=128}detectChanges(){lh(this._lView[K],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function PB(e,t){Jc(e,t,t[Ce],2,null,null)}(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t}}class X3 extends ul{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;lh(t[K],t,t[Ft],!1)}checkNoChanges(){}get context(){return null}}class mE extends Bo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=Le(t);return new hl(i,this.ngModule)}}function gE(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class J3{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=du(n);const r=this.injector.get(t,r_,n);return r!==r_||i===r_?r:this.parentInjector.get(t,i,n)}}class hl extends DD{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=gE(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return gE(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function PL(e){return e.map(FL).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let o=(r=r||this.ngModule)instanceof Jn?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new J3(t,o):t,a=s.get(al,null);if(null===a)throw new I(407,!1);const u={rendererFactory:a,sanitizer:s.get(QV,null),effectManager:s.get(lE,null),afterRenderEventManager:s.get(d_,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=n?function x3(e,t,i,n){const o=n.get(jD,!1)||i===li.ShadowDom,s=e.selectRootElement(t,o);return function C3(e){XD(e)}(s),s}(h,n,this.componentDef.encapsulation,s):ju(h,f,function Z3(e){const t=e.toLowerCase();return"svg"===t?Lx:"math"===t?"math":null}(f)),_=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==p&&(v=t_(p,s,!0));const C=g_(0,null,null,1,0,null,null,null,null,null,null),S=sh(null,C,null,_,null,null,u,h,s,null,v);let N,L;og(S);try{const q=this.componentDef;let oe,Ne=null;q.findHostDirectiveDefs?(oe=[],Ne=new Map,q.findHostDirectiveDefs(q,oe,Ne),oe.push(q)):oe=[q];const qe=function tj(e,t){const i=e[K],n=Oe;return e[n]=t,ca(i,n,2,"#host",null)}(S,p),At=function nj(e,t,i,n,r,o,s){const a=r[K];!function ij(e,t,i,n){for(const r of e)t.mergedAttrs=Rc(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(ch(t,t.mergedAttrs,!0),null!==i&&eD(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=t_(t,r[zr]));const l=o.rendererFactory.createRenderer(t,i);let d=16;i.signals?d=4096:i.onPush&&(d=64);const u=sh(r,KD(i),null,d,r[e.index],e,o,l,null,null,c);return a.firstCreatePass&&b_(a,e,n.length-1),ah(r,u),r[e.index]=u}(qe,p,q,oe,S,u,h);L=Vx(C,Oe),p&&function oj(e,t,i,n){if(n)Um(e,i,["ng-version",YV.full]);else{const{attrs:r,classes:o}=function NL(e){const t=[],i=[];let n=1,r=2;for(;n0&&JC(e,i,o.join(" "))}}(h,q,p,n),void 0!==i&&function sj(e,t,i){const n=e.projection=[];for(let r=0;r=0;n--){const r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=Rc(r.hostAttrs,i=Rc(i,r.hostAttrs))}}(n)}function dh(e){return e===Gi?{}:e===$e?[]:e}function lj(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function dj(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,o)=>{t(n,r,o),i(n,r,o)}:t}function uj(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function C_(e){const t=e.inputConfig,i={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}e.inputTransforms=i}function uh(e){return!!D_(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function D_(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function tr(e,t,i){return e[t]=i}function bn(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function Ho(e,t,i,n){const r=bn(e,t,i);return bn(e,t+1,n)||r}function de(e,t,i,n){const r=F();return bn(r,Hs(),t)&&(Be(),er(Dt(),r,e,t,i,n)),de}function da(e,t,i,n){return bn(e,Hs(),i)?t+xe(i)+n:De}function ha(e,t,i,n,r,o,s,a){const l=function hh(e,t,i,n,r){const o=Ho(e,t,i,n);return bn(e,t+2,r)||o}(e,_r(),i,r,s);return br(3),l?t+xe(i)+n+xe(r)+o+xe(s)+a:De}function R(e,t,i,n,r,o,s,a){const c=F(),l=Be(),d=e+Oe,u=l.firstCreatePass?function Nj(e,t,i,n,r,o,s,a,c){const l=t.consts,d=ca(t,e,4,s||null,qr(l,a));__(t,i,d,qr(l,c)),Du(t,d);const u=d.tView=g_(2,d,n,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,l,c,t,i,n,r,o,s):l.data[d];Ki(u,!1);const h=OE(l,c,u,e);Cu()&&Uu(l,c,h,u),_n(h,c),ah(c,c[d]=iE(h,c,h,u)),mu(u)&&p_(l,c,u),null!=s&&m_(c,u,a)}let OE=function FE(e,t,i,n){return Gr(!0),t[Ce].createComment("")};function hn(e){return Vs(function w2(){return ge.lFrame.contextLView}(),Oe+e)}function E(e,t,i){const n=F();return bn(n,Hs(),t)&&ei(Be(),Dt(),n,e,t,n[Ce],i,!1),E}function I_(e,t,i,n,r){const s=r?"class":"style";w_(e,i,t.inputs[s],s,n)}function y(e,t,i,n){const r=F(),o=Be(),s=Oe+e,a=r[Ce],c=o.firstCreatePass?function jj(e,t,i,n,r,o){const s=t.consts,c=ca(t,e,2,n,qr(s,r));return __(t,i,c,qr(s,o)),null!==c.attrs&&ch(c,c.attrs,!1),null!==c.mergedAttrs&&ch(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,r,t,i,n):o.data[s],l=PE(o,r,c,a,t,e);r[s]=l;const d=mu(c);return Ki(c,!0),eD(a,l,c),32!=(32&c.flags)&&Cu()&&Uu(o,r,l,c),0===function f2(){return ge.lFrame.elementDepthCount}()&&_n(l,r),function p2(){ge.lFrame.elementDepthCount++}(),d&&(p_(o,r,c),f_(o,c,r)),null!==n&&m_(r,c),y}function w(){let e=dn();eg()?tg():(e=e.parent,Ki(e,!1));const t=e;(function g2(e){return ge.skipHydrationRootTNode===e})(t)&&function y2(){ge.skipHydrationRootTNode=null}(),function m2(){ge.lFrame.elementDepthCount--}();const i=Be();return i.firstCreatePass&&(Du(i,e),qm(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function O2(e){return 0!=(8&e.flags)}(t)&&I_(i,t,F(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function F2(e){return 0!=(16&e.flags)}(t)&&I_(i,t,F(),t.stylesWithoutHost,!1),w}function ie(e,t,i,n){return y(e,t,i,n),w(),ie}let PE=(e,t,i,n,r,o)=>(Gr(!0),ju(n,r,function nC(){return ge.lFrame.currentNamespace}()));function Ht(e,t,i){const n=F(),r=Be(),o=e+Oe,s=r.firstCreatePass?function Uj(e,t,i,n,r){const o=t.consts,s=qr(o,n),a=ca(t,e,8,"ng-container",s);return null!==s&&ch(a,s,!0),__(t,i,a,qr(o,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,r,n,t,i):r.data[o];Ki(s,!0);const a=NE(r,n,s,e);return n[o]=a,Cu()&&Uu(r,n,a,s),_n(a,n),mu(s)&&(p_(r,n,s),f_(r,s,n)),null!=i&&m_(n,s),Ht}function zt(){let e=dn();const t=Be();return eg()?tg():(e=e.parent,Ki(e,!1)),t.firstCreatePass&&(Du(t,e),qm(e)&&t.queries.elementEnd(e)),zt}function nr(e,t,i){return Ht(e,t,i),zt(),nr}let NE=(e,t,i,n)=>(Gr(!0),Sg(t[Ce],""));function Ut(){return F()}function _l(e){return!!e&&"function"==typeof e.then}function LE(e){return!!e&&"function"==typeof e.subscribe}function $(e,t,i,n){const r=F(),o=Be(),s=dn();return BE(o,r,r[Ce],s,e,t,n),$}function gh(e,t){const i=dn(),n=F(),r=Be();return BE(r,n,aE(ig(r.data),i,n),i,e,t),gh}function BE(e,t,i,n,r,o,s){const a=mu(n),l=e.firstCreatePass&&sE(e),d=t[Ft],u=oE(t);let h=!0;if(3&n.type||s){const g=zn(n,t),b=s?s(g):g,_=u.length,v=s?S=>s(ht(S[n.index])):n.index;let C=null;if(!s&&a&&(C=function Gj(e,t,i,n){const r=e.cleanup;if(null!=r)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,t,r,n.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,h=!1;else{o=jE(n,t,d,o,!1);const S=i.listen(b,r,o);u.push(o,S),l&&l.push(r,v,_,_+1)}}else o=jE(n,t,d,o,!1);const f=n.outputs;let p;if(h&&null!==f&&(p=f[r])){const g=p.length;if(g)for(let b=0;b-1?Kn(e.index,t):t);let c=VE(t,i,n,s),l=o.__ngNextListenerFn__;for(;l;)c=VE(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function B(e=1){return function S2(e){return(ge.lFrame.contextLView=function k2(e,t){for(;e>0;)t=t[Ps],e--;return t}(e,ge.lFrame.contextLView))[Ft]}(e)}function Wj(e,t){let i=null;const n=function IL(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let r=0;r>17&32767}function O_(e){return 2|e}function zo(e){return(131068&e)>>2}function F_(e,t){return-131069&e|t<<2}function P_(e){return 1|e}function YE(e,t,i,n,r){const o=e[i+1],s=null===t;let a=n?Yr(o):zo(o),c=!1;for(;0!==a&&(!1===c||s);){const d=e[a+1];Jj(e[a],t)&&(c=!0,e[a+1]=n?P_(d):O_(d)),a=n?Yr(d):zo(d)}c&&(e[i+1]=n?O_(o):P_(o))}function Jj(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ks(e,t)>=0}const Jt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function KE(e){return e.substring(Jt.key,Jt.keyEnd)}function XE(e,t){const i=Jt.textEnd;return i===t?-1:(t=Jt.keyEnd=function iH(e,t,i){for(;t32;)t++;return t}(e,Jt.key=t,i),ba(e,t,i))}function ba(e,t,i){for(;t=0;i=XE(t,i))Xn(e,KE(t),!0)}function Oi(e,t,i,n){const r=F(),o=Be(),s=br(2);o.firstUpdatePass&&iS(o,e,s,n),t!==De&&bn(r,s,t)&&oS(o,o.data[En()],r,r[Ce],e,r[s+1]=function pH(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Xt(Zn(e)))),e}(t,i),n,s)}function Fi(e,t,i,n){const r=Be(),o=br(2);r.firstUpdatePass&&iS(r,null,o,n);const s=F();if(i!==De&&bn(s,o,i)){const a=r.data[En()];if(aS(a,n)&&!nS(r,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(i=Mm(c,i||"")),I_(r,a,s,i,n)}else!function fH(e,t,i,n,r,o,s,a){r===De&&(r=$e);let c=0,l=0,d=0=e.expandoStartIndex}function iS(e,t,i,n){const r=e.data;if(null===r[i+1]){const o=r[En()],s=nS(e,i);aS(o,n)&&null===t&&!s&&(t=!1),t=function aH(e,t,i,n){const r=ig(e);let o=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=bl(i=N_(null,e,t,i,n),t.attrs,n),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=N_(r,e,t,i,n),null===o){let c=function cH(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==zo(n))return e[Yr(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=N_(null,e,t,c[1],n),c=bl(c,t.attrs,n),function lH(e,t,i,n){e[Yr(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else o=function dH(e,t,i){let n;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(l=!0)):d=i,r)if(0!==c){const h=Yr(e[a+1]);e[n+1]=_h(h,a),0!==h&&(e[h+1]=F_(e[h+1],n)),e[a+1]=function Yj(e,t){return 131071&e|t<<17}(e[a+1],n)}else e[n+1]=_h(a,0),0!==a&&(e[a+1]=F_(e[a+1],n)),a=n;else e[n+1]=_h(c,0),0===a?a=n:e[c+1]=F_(e[c+1],n),c=n;l&&(e[n+1]=O_(e[n+1])),YE(e,d,n,!0),YE(e,d,n,!1),function Zj(e,t,i,n,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ks(o,t)>=0&&(i[n+1]=P_(i[n+1]))}(t,d,e,n,o),s=_h(a,c),o?t.classBindings=s:t.styleBindings=s}(r,o,t,i,s,n)}}function N_(e,t,i,n,r){let o=null;const s=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const c=e[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=i[r+1];h===De&&(h=u?$e:void 0);let f=u?gg(h,n):d===n?h:void 0;if(l&&!vh(f)&&(f=gg(c,n)),vh(f)&&(a=f,s))return a;const p=e[r+1];r=s?Yr(p):zo(p)}if(null!==t){let c=o?t.residualClasses:t.residualStyles;null!=c&&(a=gg(c,n))}return a}function vh(e){return void 0!==e}function aS(e,t){return 0!=(e.flags&(t?8:16))}function A(e,t=""){const i=F(),n=Be(),r=e+Oe,o=n.firstCreatePass?ca(n,r,1,t,null):n.data[r],s=cS(n,i,o,t,e);i[r]=s,Cu()&&Uu(n,i,s,o),Ki(o,!1)}let cS=(e,t,i,n,r)=>(Gr(!0),function Vu(e,t){return e.createText(t)}(t[Ce],n));function bt(e){return Ue("",e,""),bt}function Ue(e,t,i){const n=F(),r=da(n,e,t,i);return r!==De&&xr(n,En(),r),Ue}function Uo(e,t,i,n,r){const o=F(),s=function ua(e,t,i,n,r,o){const a=Ho(e,_r(),i,r);return br(2),a?t+xe(i)+n+xe(r)+o:De}(o,e,t,i,n,r);return s!==De&&xr(o,En(),s),Uo}function L_(e,t,i,n,r,o,s){const a=F(),c=ha(a,e,t,i,n,r,o,s);return c!==De&&xr(a,En(),c),L_}function pi(e,t,i){const n=F();return bn(n,Hs(),t)&&ei(Be(),Dt(),n,e,t,n[Ce],i,!0),pi}function yh(e,t,i){const n=F();if(bn(n,Hs(),t)){const o=Be(),s=Dt();ei(o,s,n,e,t,aE(ig(o.data),s,n),i,!0)}return yh}const $o=void 0;var PH=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function FH(e){const i=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===n?1:5}];let va={};function Tn(e){const t=function NH(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=SS(t);if(i)return i;const n=t.split("-")[0];if(i=SS(n),i)return i;if("en"===n)return PH;throw new I(701,!1)}function SS(e){return e in va||(va[e]=ut.ng&&ut.ng.common&&ut.ng.common.locales&&ut.ng.common.locales[e]),va[e]}var ft=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(ft||{});const ya="en-US";let kS=ya;function j_(e,t,i,n,r){if(e=_e(e),Array.isArray(e))for(let o=0;o>20;if(Lo(e)||!e.multi){const f=new zc(l,r,m),p=z_(c,t,r?d:d+h,u);-1===p?(fg(Tu(a,s),o,c),H_(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(f),s.push(f)):(i[p]=f,s[p]=f)}else{const f=z_(c,t,d+h,u),p=z_(c,t,d,d+h),b=p>=0&&i[p];if(r&&!b||!r&&!(f>=0&&i[f])){fg(Tu(a,s),o,c);const _=function Fz(e,t,i,n,r){const o=new zc(e,i,m);return o.multi=[],o.index=t,o.componentProviders=0,ZS(o,r,n&&!i),o}(r?Oz:Rz,i.length,r,n,l);!r&&b&&(i[p].providerFactory=_),H_(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(_),s.push(_)}else H_(o,e,f>-1?f:p,ZS(i[r?p:f],l,!r&&n));!r&&n&&b&&i[p].componentProviders++}}}function H_(e,t,i,n){const r=Lo(t),o=function EV(e){return!!e.useClass}(t);if(r||o){const c=(o?_e(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const d=l.indexOf(i);-1===d?l.push(i,[n,c]):l[d+1].push(n,c)}else l.push(i,c)}}}function ZS(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function z_(e,t,i,n){for(let r=i;r{i.providersResolver=(n,r)=>function Az(e,t,i){const n=Be();if(n.firstCreatePass){const r=Ri(e);j_(i,n.data,n.blueprint,r,!0),j_(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class qo{}class JS{}class $_ extends qo{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new mE(this);const r=Yn(t);this._bootstrapComponents=wr(r.bootstrap),this._r3Injector=ID(t,i,[{provide:qo,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver},...n],Xt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class q_ extends JS{constructor(t){super(),this.moduleType=t}create(t){return new $_(this.moduleType,t,[])}}class ek extends qo{constructor(t){super(),this.componentFactoryResolver=new mE(this),this.instance=null;const i=new Zu([...t.providers,{provide:qo,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],t.parent||Xu(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function G_(e,t,i=null){return new ek({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let Lz=(()=>{var e;class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=mD(0,n.type),o=r.length>0?G_([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(D(Jn))}),t})();function tk(e){e.getStandaloneInjector=t=>t.get(Lz).getOrCreateStandaloneInjector(e)}function Dl(e,t){const i=e[t];return i===De?void 0:i}function uk(e,t,i,n,r,o){const s=t+i;return bn(e,s,r)?tr(e,s+1,o?n.call(o,r):n(r)):Dl(e,s+1)}function hk(e,t,i,n,r,o,s){const a=t+i;return Ho(e,a,r,o)?tr(e,a+2,s?n.call(s,r,o):n(r,o)):Dl(e,a+2)}function en(e,t){const i=Be();let n;const r=e+Oe;i.firstCreatePass?(n=function Jz(e,t){if(t)for(let i=t.length-1;i>=0;i--){const n=t[i];if(e===n.name)return n}}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];const o=n.factory||(n.factory=Ao(n.type)),a=jn(m);try{const c=ku(!1),l=o();return ku(c),function Vj(e,t,i,n){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=n}(i,F(),r,l),l}finally{jn(a)}}function nn(e,t,i){const n=e+Oe,r=F(),o=Vs(r,n);return El(r,n)?uk(r,Dn(),t,o.transform,i,o):o.transform(i)}function El(e,t){return e[K].data[t].pure}function r4(){return this._results[Symbol.iterator]()}class Cr{get changes(){return this._changes||(this._changes=new U)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Cr.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=r4)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const n=this;n.dirty=!1;const r=function hi(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Q2(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n0&&(i[r-1][Ai]=t),n{class t{}return t.__NG_ELEMENT_ID__=l4,t})();const a4=ct,c4=class extends a4{constructor(t,i,n){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,n){const r=function o4(e,t,i,n){const r=t.tView,a=sh(e,r,i,4096&e[Se]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[Pc]=e[t.index];const l=e[Wi];return null!==l&&(a[Wi]=l.createEmbeddedView(r)),x_(r,a,i),a}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new ul(r)}};function l4(){return Eh(dn(),F())}function Eh(e,t){return 4&e.type?new c4(t,e,oa(e,t)):null}let pt=(()=>{class t{}return t.__NG_ELEMENT_ID__=m4,t})();function m4(){return Ck(dn(),F())}const g4=pt,wk=class extends g4{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Sn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Mu(this._hostTNode,this._hostLView);if(dg(t)){const i=$c(t,this._hostLView),n=Uc(t);return new Sn(i[K].data[n+8],i)}return new Sn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=xk(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-cn}createEmbeddedView(t,i,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=t.createEmbeddedViewImpl(i||{},o,null);return this.insertImpl(a,r,false),a}createComponent(t,i,n,r,o){const s=t&&!function Gc(e){return"function"==typeof e}(t);let a;if(s)a=i;else{const g=i||{};a=g.index,n=g.injector,r=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const c=s?t:new hl(Le(t)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const b=(s?l:this.parentInjector).get(Jn,null);b&&(o=b)}Le(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,a,false),f}insert(t,i){return this.insertImpl(t,i,!1)}insertImpl(t,i,n){const r=t._lView;if(function d2(e){return Cn(e[yt])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[yt],d=new wk(l,l[gn],l[yt]);d.detach(d.indexOf(t))}}const s=this._adjustIndex(i),a=this._lContainer;return s4(a,r,s,!n),t.attachToViewContainerRef(),_C(Q_(a),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=xk(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=Hu(this._lContainer,i);n&&(Au(Q_(this._lContainer),i),kg(n[K],n))}detach(t){const i=this._adjustIndex(t,-1),n=Hu(this._lContainer,i);return n&&null!=Au(Q_(this._lContainer),i)?new ul(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function xk(e){return e[8]}function Q_(e){return e[8]||(e[8]=[])}function Ck(e,t){let i;const n=t[e.index];return Cn(n)?i=n:(i=iE(n,t,null,e),t[e.index]=i,ah(t,i)),Dk(i,t,e,n),new wk(i,e,t)}let Dk=function Ek(e,t,i,n){if(e[Qi])return;let r;r=8&i.type?ht(n):function _4(e,t){const i=e[Ce],n=i.createComment(""),r=zn(t,e);return Po(i,zu(i,r),n,function zB(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[Qi]=r};class Y_{constructor(t){this.queryList=t,this.matches=null}clone(){return new Y_(this.queryList)}setDirty(){this.queryList.setDirty()}}class K_{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const n=null!==t.contentQueries?t.contentQueries[0]:i.length,r=[];for(let o=0;o0)n.push(s[a/2]);else{const l=o[a+1],d=t[-c];for(let u=cn;u{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=j(ob,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const s=o();if(_l(s))n.push(s);else if(LE(s)){const a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Wk=(()=>{var e;class t{log(n){console.log(n)}warn(n){console.warn(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const or=new M("LocaleId",{providedIn:"root",factory:()=>j(or,Ie.Optional|Ie.SkipSelf)||function G4(){return typeof $localize<"u"&&$localize.locale||ya}()});let Mh=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dt(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Y4{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let Qk=(()=>{var e;class t{compileModuleSync(n){return new q_(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=wr(Yn(n).declarations).reduce((a,c)=>{const l=Le(c);return l&&a.push(new hl(l)),a},[]);return new Y4(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Zk=new M(""),Ah=new M("");let ub,lb=(()=>{var e;class t{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ub||(function g5(e){ub=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,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 n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(D(G),D(db),D(Ah))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),db=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return ub?.findTestabilityInTree(this,n,r)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Kr=null;const Jk=new M("AllowMultipleToken"),hb=new M("PlatformDestroyListeners"),fb=new M("appBootstrapListener");class tT{constructor(t,i){this.name=t,this.token=i}}function iT(e,t,i=[]){const n=`Platform: ${t}`,r=new M(n);return(o=[])=>{let s=pb();if(!s||s.injector.get(Jk,!1)){const a=[...i,...o,{provide:r,useValue:!0}];e?e(a):function v5(e){if(Kr&&!Kr.get(Jk,!1))throw new I(400,!1);(function eT(){!function QL(e){Mx=e}(()=>{throw new I(600,!1)})})(),Kr=e;const t=e.get(oT);(function nT(e){e.get(yD,null)?.forEach(i=>i())})(e)}(function rT(e=[],t){return jt.create({name:t,providers:[{provide:Ug,useValue:"platform"},{provide:hb,useValue:new Set([()=>Kr=null])},...e]})}(a,n))}return function w5(e){const t=pb();if(!t)throw new I(401,!1);return t}()}}function pb(){return Kr?.get(oT)??null}let oT=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function x5(e="zone.js",t){return"noop"===e?new c3:"zone.js"===e?new G(t):e}(r?.ngZone,function sT(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const s=function Nz(e,t,i){return new $_(e,t,i)}(n.moduleType,this.injector,function uT(e){return[{provide:G,useFactory:e},{provide:il,multi:!0,useFactory:()=>{const t=j(D5,{optional:!0});return()=>t.initialize()}},{provide:dT,useFactory:C5},{provide:FD,useFactory:PD}]}(()=>o)),a=s.injector.get(Ji,null);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:l=>{a.handleError(l)}});s.onDestroy(()=>{Rh(this._modules,s),c.unsubscribe()})}),function aT(e,t,i){try{const n=i();return _l(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(a,o,()=>{const c=s.injector.get(sb);return c.runInitializers(),c.donePromise.then(()=>(function TS(e){ci(e,"Expected localeId to be defined"),"string"==typeof e&&(kS=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(or,ya)||ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const o=cT({},r);return function _5(e,t,i){const n=new q_(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const r=n.injector.get(Xr);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new I(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(hb,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(D(jt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function cT(e,t){return Array.isArray(t)?t.reduce(cT,e):{...e,...t}}let Xr=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=j(dT),this.zoneIsStable=j(FD),this.componentTypes=[],this.components=[],this.isStable=j(Mh).hasPendingTasks.pipe(Vt(n=>n?re(!1):this.zoneIsStable),Is(),iu()),this._injector=j(Jn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof DD;if(!this._injector.get(sb).done)throw!o&&function Rs(e){const t=Le(e)||an(e)||xn(e);return null!==t&&t.standalone}(n),new I(405,!1);let a;a=o?n:this._injector.get(Bo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const c=function b5(e){return e.isBoundToModule}(a)?void 0:this._injector.get(qo),d=a.create(jt.NULL,[],r||a.selector,c),u=d.location.nativeElement,h=d.injector.get(Zk,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),Rh(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new I(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Rh(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(fb,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Rh(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Rh(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const dT=new M("",{providedIn:"root",factory:()=>j(Ji).handleError.bind(void 0)});function C5(){const e=j(G),t=j(Ji);return i=>e.runOutsideAngular(()=>t.handleError(i))}let D5=(()=>{var e;class t{constructor(){this.zone=j(G),this.applicationRef=j(Xr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let Fe=(()=>{class t{}return t.__NG_ELEMENT_ID__=S5,t})();function S5(e){return function k5(e,t,i){if(Io(e)&&!i){const n=Kn(e.index,t);return new ul(n,n)}return 47&e.type?new ul(t[Pt],t):null}(dn(),F(),16==(16&e))}class mT{constructor(){}supports(t){return uh(t)}create(t){return new O5(t)}}const R5=(e,t)=>t;class O5{constructor(t){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=t||R5}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){const s=!n||i&&i.currentIndex<_T(n,r,o)?i:n,a=_T(s,r,o),c=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,null==s.previousIndex)r++;else{o||(o=[]);const l=a-r,d=c-r;if(l!=d){for(let h=0;h{s=this._trackByFn(r,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,n,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,o,r)):t=this._addAfter(new F5(i,n),o,r),t}_verifyReinsertion(t,i,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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(t,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,i,n),this._addToMoves(t,n),t}_moveAfter(t,i,n){return this._unlink(t),this._insertAfter(t,i,n),this._addToMoves(t,n),t}_addAfter(t,i,n){return this._insertAfter(t,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,n){const r=null===i?this._itHead:i._next;return t._next=r,t._prev=i,null===r?this._itTail=t:r._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new gT),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,n=t._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class F5{constructor(t,i){this.item=t,this.trackById=i,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 P5{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const i=t._prevDup,n=t._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class gT{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new P5,this.map.set(i,n)),n.add(t)}get(t,i){const r=this.map.get(t);return r?r.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _T(e,t,i){const n=e.previousIndex;if(null===n)return n;let r=0;return i&&n{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{const o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const n=t._prev;return i._next=t,i._prev=n,t._prev=i,n&&(n._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,i);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const n=new L5(t);return this._records.set(t,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(n=>i(t[n],n))}}class L5{constructor(t){this.key=t,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 vT(){return new Dr([new mT])}let Dr=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||vT()),deps:[[t,new Qc,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new I(901,!1)}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:vT}),t})();function yT(){return new Tl([new bT])}let Tl=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||yT()),deps:[[t,new Qc,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new I(901,!1)}}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:yT}),t})();const j5=iT(null,"core",[]);let H5=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Xr))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();function yb(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}let wb=null;function Zr(){return wb}class t8{}const he=new M("DocumentToken");let xb=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(i8)},providedIn:"platform"}),t})();const n8=new M("Location Initialized");let i8=(()=>{var e;class t extends xb{constructor(){super(),this._doc=j(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zr().getBaseHref(this._doc)}onPopState(n){const r=Zr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Zr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function Cb(e,t){if(0==e.length)return t;if(0==t.length)return e;let i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,2==i?e+t.substring(1):1==i?e+t:e+"/"+t}function MT(e){const t=e.match(/#|\?|$/),i=t&&t.index||e.length;return e.slice(0,i-("/"===e[i-1]?1:0))+e.slice(i)}function Er(e){return e&&"?"!==e[0]?"?"+e:e}let Wo=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(AT)},providedIn:"root"}),t})();const IT=new M("appBaseHref");let AT=(()=>{var e;class t extends Wo{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??j(he).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Cb(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Er(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){const a=this.prepareExternalUrl(o+Er(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){const a=this.prepareExternalUrl(o+Er(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(xb),D(IT,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),r8=(()=>{var e;class t extends Wo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Cb(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Er(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Er(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(xb),D(IT,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),Nh=(()=>{var e;class t{constructor(n){this._subject=new U,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function a8(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(MT(RT(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Er(r))}normalize(n){return t.stripTrailingSlash(function s8(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,RT(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Er(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Er(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return(e=t).normalizeQueryParams=Er,e.joinWithSlash=Cb,e.stripTrailingSlash=MT,e.\u0275fac=function(n){return new(n||e)(D(Wo))},e.\u0275prov=V({token:e,factory:function(){return function o8(){return new Nh(D(Wo))}()},providedIn:"root"}),t})();function RT(e){return e.replace(/\/index.html$/,"")}var Lh=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Lh||{}),Nt=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Nt||{});function mi(e,t){const i=Tn(e),n=i[ft.NumberSymbols][t];if(typeof n>"u"){if(t===Nt.CurrencyDecimal)return i[ft.NumberSymbols][Nt.Decimal];if(t===Nt.CurrencyGroup)return i[ft.NumberSymbols][Nt.Group]}return n}const F8=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ab(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function HT(e,t){t=encodeURIComponent(t);for(const i of e.split(";")){const n=i.indexOf("="),[r,o]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const Ob=/\s+/,zT=[];let Ea=(()=>{var e;class t{constructor(n,r,o,s){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=s,this.initialClasses=zT,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(Ob):zT}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(Ob):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(Ob).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Dr),m(Tl),m(W),m(yr))},e.\u0275dir=T({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class G8{constructor(t,i,n,r){this.$implicit=t,this.ngForOf=i,this.index=n,this.count=r}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 Wh=(()=>{var e;class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new G8(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===s?void 0:s);else if(null!==s){const c=r.get(s);r.move(c,a),$T(c,o)}});for(let o=0,s=r.length;o{$T(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(ct),m(Dr))},e.\u0275dir=T({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function $T(e,t){e.context.$implicit=t.item}let _i=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new W8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){qT("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){qT("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(ct))},e.\u0275dir=T({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class W8{constructor(){this.$implicit=null,this.ngIf=null}}function qT(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Xt(t)}'.`)}class Fb{constructor(t,i){this._viewContainerRef=t,this._templateRef=i,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Sa=(()=>{var e;class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(const r of this._defaultViews)r.enforceState(n)}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),Qh=(()=>{var e;class t{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new Fb(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(ct),m(Sa,9))},e.\u0275dir=T({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),GT=(()=>{var e;class t{constructor(n,r,o){o._addDefault(new Fb(n,r))}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(ct),m(Sa,9))},e.\u0275dir=T({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),QT=(()=>{var e;class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(n.ngTemplateOutlet||n.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:a}=this;this._viewRef=r.createEmbeddedView(o,s,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt))},e.\u0275dir=T({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kt]}),t})();function Ni(e,t){return new I(2100,!1)}class K8{createSubscription(t,i){return Rx(()=>t.subscribe({next:i,error:n=>{throw n}}))}dispose(t){Rx(()=>t.unsubscribe())}}class X8{createSubscription(t,i){return t.then(i,n=>{throw n})}dispose(t){}}const Z8=new X8,J8=new K8;let YT=(()=>{var e;class t{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(_l(n))return Z8;if(LE(n))return J8;throw Ni()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe,16))},e.\u0275pipe=wn({name:"async",type:e,pure:!1,standalone:!0}),t})(),KT=(()=>{var e;class t{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=XT}transform(n,r=XT){if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());const o=this.differ.diff(n),s=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function hU(e,t){return{key:e,value:t}}(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Tl,16))},e.\u0275pipe=wn({name:"keyvalue",type:e,pure:!1,standalone:!0}),t})();function XT(e,t){const i=e.key,n=t.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i{var e;class t{constructor(n){this._locale=n}transform(n,r,o){if(!function Nb(e){return!(null==e||""===e||e!=e)}(n))return null;o=o||this._locale;try{return function j8(e,t,i){return function Mb(e,t,i,n,r,o,s=!1){let a="",c=!1;if(isFinite(e)){let l=function z8(e){let n,r,o,s,a,t=Math.abs(e)+"",i=0;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(o=t.search(/e/i))>0?(r<0&&(r=o),r+=+t.slice(o+1),t=t.substring(0,o)):r<0&&(r=t.length),o=0;"0"===t.charAt(o);o++);if(o===(a=t.length))n=[0],r=1;else{for(a--;"0"===t.charAt(a);)a--;for(r-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(t.charAt(o))}return r>22&&(n=n.splice(0,21),i=r-1,r=1),{digits:n,exponent:i,integerLen:r}}(e);s&&(l=function H8(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(o){const v=o.match(F8);if(null===v)throw new Error(`${o} is not a valid digit info`);const C=v[1],S=v[3],N=v[5];null!=C&&(d=Ab(C)),null!=S&&(u=Ab(S)),null!=N?h=Ab(N):null!=S&&u>h&&(h=u)}!function U8(e,t,i){if(t>i)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${i}).`);let n=e.digits,r=n.length-e.integerLen;const o=Math.min(Math.max(t,r),i);let s=o+e.integerLen,a=n[s];if(s>0){n.splice(Math.max(e.integerLen,s));for(let u=s;u=5)if(s-1<0){for(let u=0;u>s;u--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[s-1]++;for(;r=l?p.pop():c=!1),h>=10?1:0},0);d&&(n.unshift(d),e.integerLen++)}(l,u,h);let f=l.digits,p=l.integerLen;const g=l.exponent;let b=[];for(c=f.every(v=>!v);p0?b=f.splice(p,f.length):(b=f,f=[0]);const _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(mi(i,n)),b.length&&(a+=mi(i,r)+b.join("")),g&&(a+=mi(i,Nt.Exponential)+"+"+g)}else a=mi(i,Nt.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function Ib(e,t="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(";"),r=n[0],o=n[1],s=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=s[0],c=s[1]||"";i.posPre=a.substring(0,a.indexOf("#"));for(let d=0;d{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const ZT="browser";function JT(e){return"server"===e}let vU=(()=>{var e;class t{}return(e=t).\u0275prov=V({token:e,providedIn:"root",factory:()=>new yU(D(he),window)}),t})();class yU{constructor(t,i){this.document=t,this.window=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const i=function wU(e,t){const i=e.getElementById(t)||e.getElementsByName(t)[0];if(i)return i;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,t);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const i=t.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class eM{}class $U extends t8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jb extends $U{static makeCurrent(){!function e8(e){wb||(wb=e)}(new jb)}onAndCancel(t,i,n){return t.addEventListener(i,n),()=>{t.removeEventListener(i,n)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return(i=i||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return"window"===i?window:"document"===i?t:"body"===i?t.body:null}getBaseHref(t){const i=function qU(){return Rl=Rl||document.querySelector("base"),Rl?Rl.getAttribute("href"):null}();return null==i?null:function GU(e){Xh=Xh||document.createElement("a"),Xh.setAttribute("href",e);const t=Xh.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){Rl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return HT(document.cookie,t)}}let Xh,Rl=null,QU=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const Hb=new M("EventManagerPlugins");let oM=(()=>{var e;class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Hb),D(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class sM{constructor(t){this._doc=t}}const zb="ng-app-id";let aM=(()=>{var e;class t{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=JT(s),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${zb}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(zb),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(zb,this.appId),a}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he),D(rl),D(Wg,8),D(Qr))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const Ub={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/"},$b=/%COMP%/g,ZU=new M("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function lM(e,t){return t.map(i=>i.replace($b,e))}let qb=(()=>{var e;class t{constructor(n,r,o,s,a,c,l,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=JT(c),this.defaultRenderer=new Gb(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===li.ShadowDom&&(r={...r,encapsulation:li.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof uM?o.applyToHost(n):o instanceof Wb&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case li.Emulated:s=new uM(l,d,r,this.appId,u,a,c,h);break;case li.ShadowDom:return new n$(l,d,n,r,a,c,this.nonce,h);default:s=new Wb(l,d,r,u,a,c,h)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(D(oM),D(aM),D(rl),D(ZU),D(he),D(Qr),D(G),D(Wg))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class Gb{constructor(t,i,n,r){this.eventManager=t,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(Ub[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(dM(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(dM(t)?t.content:t).insertBefore(i,n)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new I(-5104,!1);return i||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,n,r){if(r){i=r+":"+i;const o=Ub[r];o?t.setAttributeNS(o,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=Ub[n];r?t.removeAttributeNS(r,i):t.removeAttribute(`${n}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,n,r){r&(Wr.DashCase|Wr.Important)?t.style.setProperty(i,n,r&Wr.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&Wr.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,n){t[i]=n}setValue(t,i){t.nodeValue=i}listen(t,i,n){if("string"==typeof t&&!(t=Zr().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(n))}decoratePreventDefault(t){return i=>{if("__ngUnwrap__"===i)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))&&i.preventDefault()}}}function dM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class n$ extends Gb{constructor(t,i,n,r,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=lM(r.id,r.styles);for(const d of l){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,n){return super.insertBefore(this.nodeOrShadowRoot(t),i,n)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Wb extends Gb{constructor(t,i,n,r,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?lM(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class uM extends Wb{constructor(t,i,n,r,o,s,a,c){const l=r+"-"+n.id;super(t,i,n,o,s,a,c,l),this.contentAttr=function JU(e){return"_ngcontent-%COMP%".replace($b,e)}(l),this.hostAttr=function e$(e){return"_nghost-%COMP%".replace($b,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){const n=super.createElement(t,i);return super.setAttribute(n,this.contentAttr,""),n}}let i$=(()=>{var e;class t extends sM{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const hM=["alt","control","meta","shift"],r$={"\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"},o$={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let s$=(()=>{var e;class t extends sM{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(r.pop());let a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),hM.forEach(d=>{const u=r.indexOf(d);u>-1&&(r.splice(u,1),a+=d+".")}),a+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let o=r$[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),hM.forEach(a=>{a!==o&&(0,o$[a])(n)&&(s+=a+".")}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const pM=[{provide:Qr,useValue:ZT},{provide:yD,useValue:function a$(){jb.makeCurrent()},multi:!0},{provide:he,useFactory:function l$(){return function KB(e){Fg=e}(document),document},deps:[]}],d$=iT(j5,"browser",pM),u$=new M(""),mM=[{provide:Ah,useClass:class WU{addToWindow(t){ut.getAngularTestability=(n,r=!0)=>{const o=t.findTestabilityInTree(n,r);if(null==o)throw new I(5103,!1);return o},ut.getAllAngularTestabilities=()=>t.getAllTestabilities(),ut.getAllAngularRootElements=()=>t.getAllRootElements(),ut.frameworkStabilizers||(ut.frameworkStabilizers=[]),ut.frameworkStabilizers.push(n=>{const r=ut.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(c){s=s||c,o--,0==o&&n(s)};r.forEach(c=>{c.whenStable(a)})})}findTestabilityInTree(t,i,n){return null==i?null:t.getTestability(i)??(n?Zr().isShadowRoot(i)?this.findTestabilityInTree(t,i.host,!0):this.findTestabilityInTree(t,i.parentElement,!0):null)}},deps:[]},{provide:Zk,useClass:lb,deps:[G,db,Ah]},{provide:lb,useClass:lb,deps:[G,db,Ah]}],gM=[{provide:Ug,useValue:"root"},{provide:Ji,useFactory:function c$(){return new Ji},deps:[]},{provide:Hb,useClass:i$,multi:!0,deps:[he,G,Qr]},{provide:Hb,useClass:s$,multi:!0,deps:[he]},qb,aM,oM,{provide:al,useExisting:qb},{provide:eM,useClass:QU,deps:[]},[]];let _M=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:rl,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(D(u$,12))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[...gM,...mM],imports:[vn,H5]}),t})(),bM=(()=>{var e;class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he))},e.\u0275prov=V({token:e,factory:function(n){let r=null;return r=n?new n:function f$(){return new bM(D(he))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Zh=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(n){let r=null;return r=n?new(n||e):D(wM),r},providedIn:"root"}),t})(),wM=(()=>{var e;class t extends Zh{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case un.NONE:return r;case un.HTML:return Zi(r,"HTML")?Zn(r):dD(this._doc,String(r)).toString();case un.STYLE:return Zi(r,"Style")?Zn(r):r;case un.SCRIPT:if(Zi(r,"Script"))return Zn(r);throw new I(5200,!1);case un.URL:return Zi(r,"URL")?Zn(r):Wu(String(r));case un.RESOURCE_URL:if(Zi(r,"ResourceURL"))return Zn(r);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(n){return function iV(e){return new XB(e)}(n)}bypassSecurityTrustStyle(n){return function rV(e){return new ZB(e)}(n)}bypassSecurityTrustScript(n){return function oV(e){return new JB(e)}(n)}bypassSecurityTrustUrl(n){return function sV(e){return new eV(e)}(n)}bypassSecurityTrustResourceUrl(n){return function aV(e){return new tV(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he))},e.\u0275prov=V({token:e,factory:function(n){let r=null;return r=n?new n:function _$(e){return new wM(e.get(he))}(D(jt)),r},providedIn:"root"}),t})();function ka(e,t){return Re(t)?Kt(e,t,1):Kt(e,1)}function Ve(e,t){return at((i,n)=>{let r=0;i.subscribe(Ze(n,o=>e.call(t,o,r++)&&n.next(o)))})}function Ta(e){return at((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}class Jh{}class ef{}class bi{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(i=>{const n=i.indexOf(":");if(n>0){const r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const i=this.headers.get(t.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,i){return this.clone({name:t,value:i,op:"a"})}set(t,i){return this.clone({name:t,value:i,op:"s"})}delete(t,i){return this.clone({name:t,value:i,op:"d"})}maybeSetNormalizedName(t,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,t)}init(){this.lazyInit&&(this.lazyInit instanceof bi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(i=>{this.headers.set(i,t.headers.get(i)),this.normalizedNames.set(i,t.normalizedNames.get(i))})}clone(t){const i=new bi;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}applyUpdate(t){const i=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,i);const r=("a"===t.op?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(i);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}else this.headers.delete(i),this.normalizedNames.delete(i)}}setHeaderEntries(t,i){const n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>t(this.normalizedNames.get(i),this.headers.get(i)))}}class b${encodeKey(t){return CM(t)}encodeValue(t){return CM(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const y$=/%(\d[a-f0-9])/gi,w$={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function CM(e){return encodeURIComponent(e).replace(y$,(t,i)=>w$[i]??t)}function tf(e){return`${e}`}class eo{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new b$,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function v$(e,t){const i=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],c=i.get(s)||[];c.push(a),i.set(s,c)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(i=>{const n=t.fromObject[i],r=Array.isArray(n)?n.map(tf):[tf(n)];this.map.set(i,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const i=this.map.get(t);return i?i[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,i){return this.clone({param:t,value:i,op:"a"})}appendAll(t){const i=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(t,i){return this.clone({param:t,value:i,op:"s"})}delete(t,i){return this.clone({param:t,value:i,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const i=this.encoder.encodeKey(t);return this.map.get(t).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const i=new eo({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(t),i}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const i=("a"===t.op?this.map.get(t.param):void 0)||[];i.push(tf(t.value)),this.map.set(t.param,i);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const r=n.indexOf(tf(t.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class x${constructor(){this.map=new Map}set(t,i){return this.map.set(t,i),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function DM(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function EM(e){return typeof Blob<"u"&&e instanceof Blob}function SM(e){return typeof FormData<"u"&&e instanceof FormData}class Ol{constructor(t,i,n,r){let o;if(this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function C$(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new bi),this.context||(this.context=new x$),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=i;else{const a=i.indexOf("?");this.urlWithParams=i+(-1===a?"?":au.set(h,t.setHeaders[h]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((u,h)=>u.set(h,t.setParams[h]),l)),new Ol(i,n,o,{params:l,headers:c,context:d,reportProgress:a,responseType:r,withCredentials:s})}}var Ma=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ma||{});class Yb{constructor(t,i=200,n="OK"){this.headers=t.headers||new bi,this.status=void 0!==t.status?t.status:i,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Kb extends Yb{constructor(t={}){super(t),this.type=Ma.ResponseHeader}clone(t={}){return new Kb({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ia extends Yb{constructor(t={}){super(t),this.type=Ma.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ia({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class kM extends Yb{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Xb(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let nf=(()=>{var e;class t{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ol)s=n;else{let l,d;l=o.headers instanceof bi?o.headers:new bi(o.headers),o.params&&(d=o.params instanceof eo?o.params:new eo({fromObject:o.params})),s=new Ol(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=re(s).pipe(ka(l=>this.handler.handle(l)));if(n instanceof Ol||"events"===o.observe)return a;const c=a.pipe(Ve(l=>l instanceof Ia));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(J(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(J(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(J(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return c.pipe(J(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new eo).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Xb(o,r))}post(n,r,o={}){return this.request("POST",n,Xb(o,r))}put(n,r,o={}){return this.request("PUT",n,Xb(o,r))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Jh))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function IM(e,t){return t(e)}function S$(e,t){return(i,n)=>t.intercept(i,{handle:r=>e(r,n)})}const T$=new M(""),Fl=new M(""),AM=new M("");function M$(){let e=null;return(t,i)=>{null===e&&(e=(j(T$,{optional:!0})??[]).reduceRight(S$,IM));const n=j(Mh),r=n.add();return e(t,i).pipe(Ta(()=>n.remove(r)))}}let RM=(()=>{var e;class t extends Jh{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=j(Mh)}handle(n){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Fl),...this.injector.get(AM,[])]));this.chain=o.reduceRight((s,a)=>function k$(e,t,i){return(n,r)=>i.runInContext(()=>t(n,o=>e(o,r)))}(s,a,this.injector),IM)}const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ta(()=>this.pendingTasks.remove(r)))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(ef),D(Jn))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const O$=/^\)\]\}',?\n/;let FM=(()=>{var e;class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new I(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Et(r.\u0275loadImpl()):re(null)).pipe(Vt(()=>new Me(s=>{const a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((b,_)=>a.setRequestHeader(b,_.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const b=n.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(n.responseType){const b=n.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const c=n.serializeBody();let l=null;const d=()=>{if(null!==l)return l;const b=a.statusText||"OK",_=new bi(a.getAllResponseHeaders()),v=function F$(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||n.url;return l=new Kb({headers:_,status:a.status,statusText:b,url:v}),l},u=()=>{let{headers:b,status:_,statusText:v,url:C}=d(),S=null;204!==_&&(S=typeof a.response>"u"?a.responseText:a.response),0===_&&(_=S?200:0);let N=_>=200&&_<300;if("json"===n.responseType&&"string"==typeof S){const L=S;S=S.replace(O$,"");try{S=""!==S?JSON.parse(S):null}catch(q){S=L,N&&(N=!1,S={error:q,text:S})}}N?(s.next(new Ia({body:S,headers:b,status:_,statusText:v,url:C||void 0})),s.complete()):s.error(new kM({error:S,headers:b,status:_,statusText:v,url:C||void 0}))},h=b=>{const{url:_}=d(),v=new kM({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:_||void 0});s.error(v)};let f=!1;const p=b=>{f||(s.next(d()),f=!0);let _={type:Ma.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(_.total=b.total),"text"===n.responseType&&a.responseText&&(_.partialText=a.responseText),s.next(_)},g=b=>{let _={type:Ma.UploadProgress,loaded:b.loaded};b.lengthComputable&&(_.total=b.total),s.next(_)};return a.addEventListener("load",u),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",p),null!==c&&a.upload&&a.upload.addEventListener("progress",g)),a.send(c),s.next({type:Ma.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",u),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",p),null!==c&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(eM))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const Zb=new M("XSRF_ENABLED"),PM=new M("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),NM=new M("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class LM{}let L$=(()=>{var e;class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=HT(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he),D(Qr),D(PM))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function B$(e,t){const i=e.url.toLowerCase();if(!j(Zb)||"GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return t(e);const n=j(LM).getToken(),r=j(NM);return null!=n&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var to=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(to||{});function Qo(e,t){return{\u0275kind:e,\u0275providers:t}}function V$(...e){const t=[nf,FM,RM,{provide:Jh,useExisting:RM},{provide:ef,useExisting:FM},{provide:Fl,useValue:B$,multi:!0},{provide:Zb,useValue:!0},{provide:LM,useClass:L$}];for(const i of e)t.push(...i.\u0275providers);return function jg(e){return{\u0275providers:e}}(t)}const BM=new M("LEGACY_INTERCEPTOR_FN");let H$=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[V$(Qo(to.LegacyInterceptors,[{provide:BM,useFactory:M$},{provide:Fl,useExisting:BM,multi:!0}]))]}),t})();class VM{}class W${}const Tr="*";function ni(e,t){return{type:7,name:e,definitions:t,options:{}}}function Lt(e,t=null){return{type:4,styles:t,timings:e}}function Q$(e,t=null){return{type:3,steps:e,options:t}}function jM(e,t=null){return{type:2,steps:e,options:t}}function je(e){return{type:6,styles:e,offset:null}}function qt(e,t,i){return{type:0,name:e,styles:t,options:i}}function Bt(e,t,i=null){return{type:1,expr:e,animation:t,options:i}}function Y$(e=null){return{type:9,options:e}}function K$(e,t,i=null){return{type:11,selector:e,animation:t,options:i}}class Pl{constructor(t=0,i=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=t+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const i="start"==t?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class HM{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let i=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const i=t*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){const t=this.players.reduce((i,n)=>null===i||n.totalTime>i.totalTime?n:i,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const i="start"==t?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}function zM(e){return new I(3e3,!1)}function no(e){switch(e.length){case 0:return new Pl;case 1:return e[0];default:return new HM(e)}}function UM(e,t,i=new Map,n=new Map){const r=[],o=[];let s=-1,a=null;if(t.forEach(c=>{const l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((h,f)=>{let p=f,g=h;if("offset"!==f)switch(p=e.normalizePropertyName(p,r),g){case"!":g=i.get(f);break;case Tr:g=n.get(f);break;default:g=e.normalizeStyleValue(f,p,g,r)}u.set(p,g)}),d||o.push(u),a=u,s=l}),r.length)throw function v6(e){return new I(3502,!1)}();return o}function ev(e,t,i,n){switch(t){case"start":e.onStart(()=>n(i&&tv(i,"start",e)));break;case"done":e.onDone(()=>n(i&&tv(i,"done",e)));break;case"destroy":e.onDestroy(()=>n(i&&tv(i,"destroy",e)))}}function tv(e,t,i){const o=nv(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,i.totalTime??e.totalTime,!!i.disabled),s=e._data;return null!=s&&(o._data=s),o}function nv(e,t,i,n,r="",o=0,s){return{element:e,triggerName:t,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function ii(e,t,i){let n=e.get(t);return n||e.set(t,n=i),n}function $M(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const A6=(()=>typeof document>"u"?null:document.documentElement)();function iv(e){const t=e.parentNode||e.host||null;return t===A6?null:t}let Yo=null,qM=!1;function GM(e,t){for(;t;){if(t===e)return!0;t=iv(t)}return!1}function WM(e,t,i){if(i)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]}let QM=(()=>{var e;class t{validateStyleProperty(n){return function O6(e){Yo||(Yo=function F6(){return typeof document<"u"?document.body:null}()||{},qM=!!Yo.style&&"WebkitAppearance"in Yo.style);let t=!0;return Yo.style&&!function R6(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Yo.style,!t&&qM&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Yo.style)),t}(n)}matchesElement(n,r){return!1}containsElement(n,r){return GM(n,r)}getParentElement(n){return iv(n)}query(n,r,o){return WM(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,c=[],l){return new Pl(o,s)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),rv=(()=>{class t{}return t.NOOP=new QM,t})();const P6=1e3,ov="ng-enter",sf="ng-leave",af="ng-trigger",cf=".ng-trigger",KM="ng-animating",sv=".ng-animating";function Mr(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:av(parseFloat(t[1]),t[2])}function av(e,t){return"s"===t?e*P6:e}function lf(e,t,i){return e.hasOwnProperty("duration")?e:function L6(e,t,i){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(zM()),{duration:0,delay:0,easing:""};r=av(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=av(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else r=e;if(!i){let a=!1,c=t.length;r<0&&(t.push(function X$(){return new I(3100,!1)}()),a=!0),o<0&&(t.push(function Z$(){return new I(3101,!1)}()),a=!0),a&&t.splice(c,0,zM())}return{duration:r,delay:o,easing:s}}(e,t,i)}function Nl(e,t={}){return Object.keys(e).forEach(i=>{t[i]=e[i]}),t}function XM(e){const t=new Map;return Object.keys(e).forEach(i=>{t.set(i,e[i])}),t}function io(e,t=new Map,i){if(i)for(let[n,r]of i)t.set(n,r);for(let[n,r]of e)t.set(n,r);return t}function sr(e,t,i){t.forEach((n,r)=>{const o=lv(r);i&&!i.has(r)&&i.set(r,e.style[o]),e.style[o]=n})}function Ko(e,t){t.forEach((i,n)=>{const r=lv(n);e.style[r]=""})}function Ll(e){return Array.isArray(e)?1==e.length?e[0]:jM(e):e}const cv=new RegExp("{{\\s*(.+?)\\s*}}","g");function JM(e){let t=[];if("string"==typeof e){let i;for(;i=cv.exec(e);)t.push(i[1]);cv.lastIndex=0}return t}function Bl(e,t,i){const n=e.toString(),r=n.replace(cv,(o,s)=>{let a=t[s];return null==a&&(i.push(function e6(e){return new I(3003,!1)}()),a=""),a.toString()});return r==n?e:r}function df(e){const t=[];let i=e.next();for(;!i.done;)t.push(i.value),i=e.next();return t}const j6=/-+([a-z0-9])/g;function lv(e){return e.replace(j6,(...t)=>t[1].toUpperCase())}function ri(e,t,i){switch(t.type){case 7:return e.visitTrigger(t,i);case 0:return e.visitState(t,i);case 1:return e.visitTransition(t,i);case 2:return e.visitSequence(t,i);case 3:return e.visitGroup(t,i);case 4:return e.visitAnimate(t,i);case 5:return e.visitKeyframes(t,i);case 6:return e.visitStyle(t,i);case 8:return e.visitReference(t,i);case 9:return e.visitAnimateChild(t,i);case 10:return e.visitAnimateRef(t,i);case 11:return e.visitQuery(t,i);case 12:return e.visitStagger(t,i);default:throw function t6(e){return new I(3004,!1)}()}}function eI(e,t){return window.getComputedStyle(e)[t]}const uf="*";function U6(e,t){const i=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(n=>function $6(e,t,i){if(":"==e[0]){const c=function q6(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}(e,i);if("function"==typeof c)return void t.push(c);e=c}const n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(function p6(e){return new I(3015,!1)}()),t;const r=n[1],o=n[2],s=n[3];t.push(tI(r,s));"<"==o[0]&&!(r==uf&&s==uf)&&t.push(tI(s,r))}(n,i,t)):i.push(e),i}const hf=new Set(["true","1"]),ff=new Set(["false","0"]);function tI(e,t){const i=hf.has(e)||ff.has(e),n=hf.has(t)||ff.has(t);return(r,o)=>{let s=e==uf||e==r,a=t==uf||t==o;return!s&&i&&"boolean"==typeof r&&(s=r?hf.has(e):ff.has(e)),!a&&n&&"boolean"==typeof o&&(a=o?hf.has(t):ff.has(t)),s&&a}}const G6=new RegExp("s*:selfs*,?","g");function dv(e,t,i,n){return new W6(e).build(t,i,n)}class W6{constructor(t){this._driver=t}build(t,i,n){const r=new K6(i);return this._resetContextStyleTimingState(r),ri(this,Ll(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,i){let n=i.queryCount=0,r=i.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&i.errors.push(function i6(){return new I(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,i))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,i);n+=c.queryCount,r+=c.depCount,s.push(c)}else i.errors.push(function r6(){return new I(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(t,i){const n=this.visitStyle(t.styles,i),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{JM(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&(df(o.values()),i.errors.push(function o6(e,t){return new I(3008,!1)}()))}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,i){i.queryCount=0,i.depCount=0;const n=ri(this,Ll(t.animation),i);return{type:1,matchers:U6(t.expr,i.errors),animation:n,queryCount:i.queryCount,depCount:i.depCount,options:Xo(t.options)}}visitSequence(t,i){return{type:2,steps:t.steps.map(n=>ri(this,n,i)),options:Xo(t.options)}}visitGroup(t,i){const n=i.currentTime;let r=0;const o=t.steps.map(s=>{i.currentTime=n;const a=ri(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:3,steps:o,options:Xo(t.options)}}visitAnimate(t,i){const n=function Z6(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return uv(lf(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=uv(0,0,"");return o.dynamic=!0,o.strValue=i,o}const r=lf(i,t);return uv(r.duration,r.delay,r.easing)}(t.timings,i.errors);i.currentAnimateTimings=n;let r,o=t.styles?t.styles:je({});if(5==o.type)r=this.visitKeyframes(o,i);else{let s=t.styles,a=!1;if(!s){a=!0;const l={};n.easing&&(l.easing=n.easing),s=je(l)}i.currentTime+=n.duration+n.delay;const c=this.visitStyle(s,i);c.isEmptyStep=a,r=c}return i.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,i){const n=this._makeStyleAst(t,i);return this._validateStyleAst(n,i),n}_makeStyleAst(t,i){const n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Tr?n.push(a):i.errors.push(new I(3002,!1)):n.push(XM(a));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,i){const n=i.currentAnimateTimings;let r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=i.collectedStyles.get(i.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(i.errors.push(function a6(e,t,i,n,r){return new I(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),i.options&&function V6(e,t,i){const n=t.params||{},r=JM(e);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(function J$(e){return new I(3001,!1)}())})}(a,i.options,i.errors)})})}visitKeyframes(t,i){const n={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function c6(){return new I(3011,!1)}()),n;let o=0;const s=[];let a=!1,c=!1,l=0;const d=t.steps.map(_=>{const v=this._makeStyleAst(_,i);let C=null!=v.offset?v.offset:function X6(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(i=>{if(i instanceof Map&&i.has("offset")){const n=i;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}return t}(v.styles),S=0;return null!=C&&(o++,S=v.offset=C),c=c||S<0||S>1,a=a||S0&&o{const C=h>0?v==f?1:h*v:s[v],S=C*b;i.currentTime=p+g.delay+S,g.duration=S,this._validateStyleAst(_,i),_.offset=C,n.styles.push(_)}),n}visitReference(t,i){return{type:8,animation:ri(this,Ll(t.animation),i),options:Xo(t.options)}}visitAnimateChild(t,i){return i.depCount++,{type:9,options:Xo(t.options)}}visitAnimateRef(t,i){return{type:10,animation:this.visitReference(t.animation,i),options:Xo(t.options)}}visitQuery(t,i){const n=i.currentQuerySelector,r=t.options||{};i.queryCount++,i.currentQuery=t;const[o,s]=function Q6(e){const t=!!e.split(/\s*,\s*/).find(i=>":self"==i);return t&&(e=e.replace(G6,"")),e=e.replace(/@\*/g,cf).replace(/@\w+/g,i=>cf+"-"+i.slice(1)).replace(/:animating/g,sv),[e,t]}(t.selector);i.currentQuerySelector=n.length?n+" "+o:o,ii(i.collectedStyles,i.currentQuerySelector,new Map);const a=ri(this,Ll(t.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Xo(t.options)}}visitStagger(t,i){i.currentQuery||i.errors.push(function h6(){return new I(3013,!1)}());const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:lf(t.timings,i.errors,!0);return{type:12,animation:ri(this,Ll(t.animation),i),timings:n,options:null}}}class K6{constructor(t){this.errors=t,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 Xo(e){return e?(e=Nl(e)).params&&(e.params=function Y6(e){return e?Nl(e):null}(e.params)):e={},e}function uv(e,t,i){return{duration:e,delay:t,easing:i}}function hv(e,t,i,n,r,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class pf{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,i){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...i)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const tq=new RegExp(":enter","g"),iq=new RegExp(":leave","g");function fv(e,t,i,n,r,o=new Map,s=new Map,a,c,l=[]){return(new rq).buildKeyframes(e,t,i,n,r,o,s,a,c,l)}class rq{buildKeyframes(t,i,n,r,o,s,a,c,l,d=[]){l=l||new pf;const u=new pv(t,i,l,r,o,d,[]);u.options=c;const h=c.delay?Mr(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,c),ri(this,n,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){const b=f[g];if(b.element===i){p=b;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,c)}return f.length?f.map(p=>p.buildKeyframes()):[hv(i,[],[],[],0,h,"",!1)]}visitTrigger(t,i){}visitState(t,i){}visitTransition(t,i){}visitAnimateChild(t,i){const n=i.subInstructions.get(i.element);if(n){const r=i.createSubContext(t.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=t}visitAnimateRef(t,i){const n=i.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],i,n),this.visitReference(t.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=t}_applyAnimationRefDelays(t,i,n){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Mr(Bl(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,i,n){let o=i.currentTimeline.currentTime;const s=null!=n.duration?Mr(n.duration):null,a=null!=n.delay?Mr(n.delay):null;return 0!==s&&t.forEach(c=>{const l=i.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(t,i){i.updateOptions(t.options,!0),ri(this,t.animation,i),i.previousNode=t}visitSequence(t,i){const n=i.subContextCount;let r=i;const o=t.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=mf);const s=Mr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>ri(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=t}visitGroup(t,i){const n=[];let r=i.currentTimeline.currentTime;const o=t.options&&t.options.delay?Mr(t.options.delay):0;t.steps.forEach(s=>{const a=i.createSubContext(t.options);o&&a.delayNextStep(o),ri(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=t}_visitTiming(t,i){if(t.dynamic){const n=t.strValue;return lf(i.params?Bl(n,i.params,i.errors):n,i.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,i){const n=i.currentAnimateTimings=this._visitTiming(t.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=t}visitStyle(t,i){const n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,i.errors,i.options),i.previousNode=t}visitKeyframes(t,i){const n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=t}visitQuery(t,i){const n=i.currentTimeline.currentTime,r=t.options||{},o=r.delay?Mr(r.delay):0;o&&(6===i.previousNode.type||0==n&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=mf);let s=n;const a=i.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{i.currentQueryIndex=d;const u=i.createSubContext(t.options,l);o&&u.delayNextStep(o),l===i.element&&(c=u.currentTimeline),ri(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),c&&(i.currentTimeline.mergeTimelineCollectedStyles(c),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=t}visitStagger(t,i){const n=i.parentContext,r=i.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1);let c=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime}const d=i.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;ri(this,t.animation,i),i.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const mf={};class pv{constructor(t,i,n,r,o,s,a,c){this._driver=t,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new gf(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,i){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=Mr(n.duration)),null!=n.delay&&(r.delay=Mr(n.delay));const o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=Bl(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const i=this.options.params;if(i){const n=t.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return t}createSubContext(t=null,i,n){const r=i||this.element,o=new pv(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=mf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,i,n){const r={duration:i??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new oq(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,i,n,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(tq,"."+this._enterClassName)).replace(iq,"."+this._leaveClassName);let l=this._driver.query(this.element,t,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!o&&0==a.length&&s.push(function f6(e){return new I(3014,!1)}()),a}}class gf{constructor(t,i,n,r){this._driver=t,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,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(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(t){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+t),i&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,i){return this.applyStylesToKeyframe(),new gf(this._driver,t,i||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,i){this._localTimelineStyles.set(t,i),this._globalTimelineStyles.set(t,i),this._styleSummary.set(t,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Tr),this._currentKeyframe.set(i,Tr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,i,n,r){i&&this._previousKeyframe.set("easing",i);const o=r&&r.params||{},s=function sq(e,t){const i=new Map;let n;return e.forEach(r=>{if("*"===r){n=n||t.keys();for(let o of n)i.set(o,Tr)}else io(r,i)}),i}(t,this._globalTimelineStyles);for(let[a,c]of s){const l=Bl(c,o,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Tr),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,i)=>{this._currentKeyframe.set(i,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,t)}))}snapshotCurrentStyles(){for(let[t,i]of this._localTimelineStyles)this._pendingStyles.set(t,i),this._updateStyle(t,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let i in this._currentKeyframe)t.push(i);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((i,n)=>{const r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,c)=>{const l=io(a,new Map,this._backFill);l.forEach((d,u)=>{"!"===d?t.add(u):d===Tr&&i.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=t.size?df(t.values()):[],s=i.size?df(i.values()):[];if(n){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return hv(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class oq extends gf{constructor(t,i,n,r,o,s,a=!1){super(t,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){const o=[],s=n+i,a=i/s,c=io(t[0]);c.set("offset",0),o.push(c);const l=io(t[0]);l.set("offset",rI(a)),o.push(l);const d=t.length-1;for(let u=1;u<=d;u++){let h=io(t[u]);const f=h.get("offset");h.set("offset",rI((i+f*n)/s)),o.push(h)}n=s,i=0,r="",t=o}return hv(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}function rI(e,t=3){const i=Math.pow(10,t-1);return Math.round(e*i)/i}class mv{}const aq=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 cq extends mv{normalizePropertyName(t,i){return lv(t)}normalizeStyleValue(t,i,n,r){let o="";const s=n.toString().trim();if(aq.has(i)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function n6(e,t){return new I(3005,!1)}())}return s+o}}function oI(e,t,i,n,r,o,s,a,c,l,d,u,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const gv={};class sI{constructor(t,i,n){this._triggerName=t,this.ast=i,this._stateStyles=n}match(t,i,n,r){return function lq(e,t,i,n,r){return e.some(o=>o(t,i,n,r))}(this.ast.matchers,t,i,n,r)}buildStyles(t,i,n){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(i,n):new Map}build(t,i,n,r,o,s,a,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||gv,p=this.buildStyles(n,a&&a.params||gv,u),g=c&&c.params||gv,b=this.buildStyles(r,g,u),_=new Set,v=new Map,C=new Map,S="void"===r,N={params:dq(g,h),delay:this.ast.options?.delay},L=d?[]:fv(t,i,this.ast.animation,o,s,p,b,N,l,u);let q=0;if(L.forEach(Ne=>{q=Math.max(Ne.duration+Ne.delay,q)}),u.length)return oI(i,this._triggerName,n,r,S,p,b,[],[],v,C,q,u);L.forEach(Ne=>{const qe=Ne.element,At=ii(v,qe,new Set);Ne.preStyleProps.forEach(qi=>At.add(qi));const Pn=ii(C,qe,new Set);Ne.postStyleProps.forEach(qi=>Pn.add(qi)),qe!==i&&_.add(qe)});const oe=df(_.values());return oI(i,this._triggerName,n,r,S,p,b,L,oe,v,C,q)}}function dq(e,t){const i=Nl(t);for(const n in e)e.hasOwnProperty(n)&&null!=e[n]&&(i[n]=e[n]);return i}class uq{constructor(t,i,n){this.styles=t,this.defaultParams=i,this.normalizer=n}buildStyles(t,i){const n=new Map,r=Nl(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Bl(s,r,i));const c=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,c,s,i),n.set(a,s)})}),n}}class fq{constructor(t,i,n){this.name=t,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{this.states.set(r.name,new uq(r.style,r.options&&r.options.params||{},n))}),aI(this.states,"true","1"),aI(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new sI(t,r,this.states))}),this.fallbackTransition=function pq(e,t,i){return new sI(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,i,n,r){return this.transitionFactories.find(s=>s.match(t,i,n,r))||null}matchStyles(t,i,n){return this.fallbackTransition.buildStyles(t,i,n)}}function aI(e,t,i){e.has(t)?e.has(i)||e.set(i,e.get(t)):e.has(i)&&e.set(t,e.get(i))}const mq=new pf;class gq{constructor(t,i,n){this.bodyNode=t,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,i){const n=[],o=dv(this._driver,i,n,[]);if(n.length)throw function y6(e){return new I(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,i,n){const r=t.element,o=UM(this._normalizer,t.keyframes,i,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,i,n={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=fv(this._driver,i,o,ov,sf,new Map,new Map,n,mq,r),s.forEach(d=>{const u=ii(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function w6(){return new I(3300,!1)}()),s=[]),r.length)throw function x6(e){return new I(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Tr))})});const l=no(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const i=this._getPlayer(t);i.destroy(),this._playersById.delete(t);const n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(t){const i=this._playersById.get(t);if(!i)throw function C6(e){return new I(3301,!1)}();return i}listen(t,i,n,r){const o=nv(i,"","","");return ev(this._getPlayer(t),n,o,r),()=>{}}command(t,i,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,i,r[0]||{});const o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const cI="ng-animate-queued",_v="ng-animate-disabled",wq=[],lI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xq={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Li="__ng_removed";class bv{get params(){return this.options.params}constructor(t,i=""){this.namespaceId=i;const n=t&&t.hasOwnProperty("value");if(this.value=function Sq(e){return e??null}(n?t.value:t),n){const o=Nl(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const i=t.params;if(i){const n=this.options.params;Object.keys(i).forEach(r=>{null==n[r]&&(n[r]=i[r])})}}}const Vl="void",vv=new bv(Vl);class Cq{constructor(t,i,n){this.id=t,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,vi(i,this._hostClassName)}listen(t,i,n,r){if(!this._triggers.has(i))throw function D6(e,t){return new I(3302,!1)}();if(null==n||0==n.length)throw function E6(e){return new I(3303,!1)}();if(!function kq(e){return"start"==e||"done"==e}(n))throw function S6(e,t){return new I(3400,!1)}();const o=ii(this._elementListeners,t,[]),s={name:i,phase:n,callback:r};o.push(s);const a=ii(this._engine.statesByElement,t,new Map);return a.has(i)||(vi(t,af),vi(t,af+"-"+i),a.set(i,vv)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(i)||a.delete(i)})}}register(t,i){return!this._triggers.has(t)&&(this._triggers.set(t,i),!0)}_getTrigger(t){const i=this._triggers.get(t);if(!i)throw function k6(e){return new I(3401,!1)}();return i}trigger(t,i,n,r=!0){const o=this._getTrigger(i),s=new yv(this.id,i,t);let a=this._engine.statesByElement.get(t);a||(vi(t,af),vi(t,af+"-"+i),this._engine.statesByElement.set(t,a=new Map));let c=a.get(i);const l=new bv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(i,l),c||(c=vv),l.value!==Vl&&c.value===l.value){if(!function Iq(e,t){const i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(let r=0;r{Ko(t,b),sr(t,_)})}return}const h=ii(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==i&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,t,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:p}),p||(vi(t,cI),s.onStart(()=>{Aa(t,cI)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const b=this._engine.playersByElement.get(t);if(b){let _=b.indexOf(s);_>=0&&b.splice(_,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(i=>i.delete(t)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const i=this._engine.playersByElement.get(t);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,i){const n=this._engine.driver.query(t,cf,!0);n.forEach(r=>{if(r[Li])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,i,n,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const d=this.trigger(t,l,Vl,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,i,s),n&&no(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const i=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(i&&n){const r=new Set;i.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const c=this._triggers.get(s).fallbackTransition,l=n.get(s)||vv,d=new bv(Vl),u=new yv(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,i){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,i),this.triggerLeaveAnimation(t,i,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,i);else{const o=t[Li];(!o||o===lI)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,i))}}insertNode(t,i){vi(t,this._hostClassName)}drainQueuedTransitions(t){const i=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){const c=nv(o,n.triggerName,n.fromState.value,n.toState.value);c._data=t,ev(n.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{const o=n.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class Dq{_onRemovalComplete(t,i){this.onRemovalComplete(t,i)}constructor(t,i,n){this.bodyNode=t,this.driver=i,this._normalizer=n,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=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,i){const n=new Cq(t,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,i){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){const c=r.get(a);if(c){const l=n.indexOf(c);n.splice(l+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return r.set(i,t),t}register(t,i){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,i)),n}registerTrigger(t,i,n){let r=this._namespaceLookup[t];r&&r.register(i,n)&&this.totalAnimations++}destroy(t,i){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const i=new Set,n=this.statesByElement.get(t);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}return i}trigger(t,i,n,r){if(_f(i)){const o=this._fetchNamespace(t);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(t,i,n,r){if(!_f(i))return;const o=i[Li];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,i){i?this.disabledNodes.has(t)||(this.disabledNodes.add(t),vi(t,_v)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Aa(t,_v))}removeNode(t,i,n){if(_f(i)){const r=t?this._fetchNamespace(t):null;r?r.removeNode(i,n):this.markElementAsRemoved(t,i,!1,n);const o=this.namespacesByHostElement.get(i);o&&o.id!==t&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(t,i,n,r,o){this.collectedLeaveElements.push(i),i[Li]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,i,n,r,o){return _f(i)?this._fetchNamespace(t).listen(i,n,r,o):()=>{}}_buildInstruction(t,i,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,i,o)}destroyInnerAnimations(t){let i=this.driver.query(t,cf,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,sv,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const i=this.playersByElement.get(t);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const i=this.playersByQueriedElement.get(t);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return no(this.players).onDone(()=>t());t()})}processLeaveNode(t){const i=t[Li];if(i&&i.setForRemoval){if(t[Li]=lI,i.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}t.classList?.contains(_v)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],i.length?no(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw function T6(e){return new I(3402,!1)}()}_flushAnimations(t,i){const n=new pf,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ee=>{d.add(ee);const ue=this.driver.query(ee,".ng-animate-queued",!0);for(let pe=0;pe{const pe=ov+g++;p.set(ue,pe),ee.forEach(we=>vi(we,pe))});const b=[],_=new Set,v=new Set;for(let ee=0;ee_.add(we)):v.add(ue))}const C=new Map,S=hI(h,Array.from(_));S.forEach((ee,ue)=>{const pe=sf+g++;C.set(ue,pe),ee.forEach(we=>vi(we,pe))}),t.push(()=>{f.forEach((ee,ue)=>{const pe=p.get(ue);ee.forEach(we=>Aa(we,pe))}),S.forEach((ee,ue)=>{const pe=C.get(ue);ee.forEach(we=>Aa(we,pe))}),b.forEach(ee=>{this.processLeaveNode(ee)})});const N=[],L=[];for(let ee=this._namespaceList.length-1;ee>=0;ee--)this._namespaceList[ee].drainQueuedTransitions(i).forEach(pe=>{const we=pe.player,Qt=pe.element;if(N.push(we),this.collectedEnterElements.length){const yn=Qt[Li];if(yn&&yn.setForMove){if(yn.previousTriggersValues&&yn.previousTriggersValues.has(pe.triggerName)){const ws=yn.previousTriggersValues.get(pe.triggerName),Di=this.statesByElement.get(pe.element);if(Di&&Di.has(pe.triggerName)){const pm=Di.get(pe.triggerName);pm.value=ws,Di.set(pe.triggerName,pm)}}return void we.destroy()}}const oi=!u||!this.driver.containsElement(u,Qt),Yt=C.get(Qt),Ci=p.get(Qt),gt=this._buildInstruction(pe,n,Ci,Yt,oi);if(gt.errors&>.errors.length)return void L.push(gt);if(oi)return we.onStart(()=>Ko(Qt,gt.fromStyles)),we.onDestroy(()=>sr(Qt,gt.toStyles)),void r.push(we);if(pe.isFallbackTransition)return we.onStart(()=>Ko(Qt,gt.fromStyles)),we.onDestroy(()=>sr(Qt,gt.toStyles)),void r.push(we);const ON=[];gt.timelines.forEach(yn=>{yn.stretchStartingKeyframe=!0,this.disabledNodes.has(yn.element)||ON.push(yn)}),gt.timelines=ON,n.append(Qt,gt.timelines),s.push({instruction:gt,player:we,element:Qt}),gt.queriedElements.forEach(yn=>ii(a,yn,[]).push(we)),gt.preStyleProps.forEach((yn,ws)=>{if(yn.size){let Di=c.get(ws);Di||c.set(ws,Di=new Set),yn.forEach((pm,Fw)=>Di.add(Fw))}}),gt.postStyleProps.forEach((yn,ws)=>{let Di=l.get(ws);Di||l.set(ws,Di=new Set),yn.forEach((pm,Fw)=>Di.add(Fw))})});if(L.length){const ee=[];L.forEach(ue=>{ee.push(function M6(e,t){return new I(3505,!1)}())}),N.forEach(ue=>ue.destroy()),this.reportError(ee)}const q=new Map,oe=new Map;s.forEach(ee=>{const ue=ee.element;n.has(ue)&&(oe.set(ue,ue),this._beforeAnimationBuild(ee.player.namespaceId,ee.instruction,q))}),r.forEach(ee=>{const ue=ee.element;this._getPreviousPlayers(ue,!1,ee.namespaceId,ee.triggerName,null).forEach(we=>{ii(q,ue,[]).push(we),we.destroy()})});const Ne=b.filter(ee=>pI(ee,c,l)),qe=new Map;uI(qe,this.driver,v,l,Tr).forEach(ee=>{pI(ee,c,l)&&Ne.push(ee)});const Pn=new Map;f.forEach((ee,ue)=>{uI(Pn,this.driver,new Set(ee),c,"!")}),Ne.forEach(ee=>{const ue=qe.get(ee),pe=Pn.get(ee);qe.set(ee,new Map([...ue?.entries()??[],...pe?.entries()??[]]))});const qi=[],bc=[],vc={};s.forEach(ee=>{const{element:ue,player:pe,instruction:we}=ee;if(n.has(ue)){if(d.has(ue))return pe.onDestroy(()=>sr(ue,we.toStyles)),pe.disabled=!0,pe.overrideTotalTime(we.totalTime),void r.push(pe);let Qt=vc;if(oe.size>1){let Yt=ue;const Ci=[];for(;Yt=Yt.parentNode;){const gt=oe.get(Yt);if(gt){Qt=gt;break}Ci.push(Yt)}Ci.forEach(gt=>oe.set(gt,Qt))}const oi=this._buildAnimation(pe.namespaceId,we,q,o,Pn,qe);if(pe.setRealPlayer(oi),Qt===vc)qi.push(pe);else{const Yt=this.playersByElement.get(Qt);Yt&&Yt.length&&(pe.parentPlayer=no(Yt)),r.push(pe)}}else Ko(ue,we.fromStyles),pe.onDestroy(()=>sr(ue,we.toStyles)),bc.push(pe),d.has(ue)&&r.push(pe)}),bc.forEach(ee=>{const ue=o.get(ee.element);if(ue&&ue.length){const pe=no(ue);ee.setRealPlayer(pe)}}),r.forEach(ee=>{ee.parentPlayer?ee.syncPlayerEvents(ee.parentPlayer):ee.destroy()});for(let ee=0;ee!oi.destroyed);Qt.length?Tq(this,ue,Qt):this.processLeaveNode(ue)}return b.length=0,qi.forEach(ee=>{this.players.push(ee),ee.onDone(()=>{ee.destroy();const ue=this.players.indexOf(ee);this.players.splice(ue,1)}),ee.play()}),qi}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,i,n,r,o){let s=[];if(i){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const c=!o||o==Vl;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,i,n){const o=i.element,s=i.isRemovalTransition?void 0:t,a=i.isRemovalTransition?void 0:i.triggerName;for(const c of i.timelines){const l=c.element,d=l!==o,u=ii(n,l,[]);this._getPreviousPlayers(l,d,s,a,i.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}Ko(o,i.fromStyles)}_buildAnimation(t,i,n,r,o,s){const a=i.triggerName,c=i.element,l=[],d=new Set,u=new Set,h=i.timelines.map(p=>{const g=p.element;d.add(g);const b=g[Li];if(b&&b.removedBeforeQueried)return new Pl(p.duration,p.delay);const _=g!==c,v=function Mq(e){const t=[];return fI(e,t),t}((n.get(g)||wq).map(q=>q.getRealPlayer())).filter(q=>!!q.element&&q.element===g),C=o.get(g),S=s.get(g),N=UM(this._normalizer,p.keyframes,C,S),L=this._buildPlayer(p,N,v);if(p.subTimeline&&r&&u.add(g),_){const q=new yv(t,a,g);q.setRealPlayer(L),l.push(q)}return L});l.forEach(p=>{ii(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function Eq(e,t,i){let n=e.get(t);if(n){if(n.length){const r=n.indexOf(i);n.splice(r,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>vi(p,KM));const f=no(h);return f.onDestroy(()=>{d.forEach(p=>Aa(p,KM)),sr(c,i.toStyles)}),u.forEach(p=>{ii(r,p,[]).push(f)}),f}_buildPlayer(t,i,n){return i.length>0?this.driver.animate(t.element,i,t.duration,t.delay,t.easing,n):new Pl(t.duration,t.delay)}}class yv{constructor(t,i,n){this.namespaceId=t,this.triggerName=i,this.element=n,this._player=new Pl,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(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>ev(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const i=this._player;i.triggerCallback&&t.onStart(()=>i.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,i){ii(this._queuedCallbacks,t,[]).push(i)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const i=this._player;i.triggerCallback&&i.triggerCallback(t)}}function _f(e){return e&&1===e.nodeType}function dI(e,t){const i=e.style.display;return e.style.display=t??"none",i}function uI(e,t,i,n,r){const o=[];i.forEach(c=>o.push(dI(c)));const s=[];n.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=t.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Li]=xq,s.push(l))}),e.set(l,d)});let a=0;return i.forEach(c=>dI(c,o[a++])),s}function hI(e,t){const i=new Map;if(e.forEach(a=>i.set(a,[])),0==t.length)return i;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=i.has(l)?l:r.has(l)?1:s(l),o.set(a,c),c}return t.forEach(a=>{const c=s(a);1!==c&&i.get(c).push(a)}),i}function vi(e,t){e.classList?.add(t)}function Aa(e,t){e.classList?.remove(t)}function Tq(e,t,i){no(i).onDone(()=>e.processLeaveNode(t))}function fI(e,t){for(let i=0;ir.add(o)):t.set(e,n),i.delete(e),!0}class bf{constructor(t,i,n){this.bodyNode=t,this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Dq(t,i,n),this._timelineEngine=new gq(t,i,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,i,n,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const c=[],d=dv(this._driver,o,c,[]);if(c.length)throw function b6(e,t){return new I(3404,!1)}();a=function hq(e,t,i){return new fq(e,t,i)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(t,i){this._transitionEngine.register(t,i)}destroy(t,i){this._transitionEngine.destroy(t,i)}onInsert(t,i,n,r){this._transitionEngine.insertNode(t,i,n,r)}onRemove(t,i,n){this._transitionEngine.removeNode(t,i,n)}disableAnimations(t,i){this._transitionEngine.markElementAsDisabled(t,i)}process(t,i,n,r){if("@"==n.charAt(0)){const[o,s]=$M(n);this._timelineEngine.command(o,i,s,r)}else this._transitionEngine.trigger(t,i,n,r)}listen(t,i,n,r,o){if("@"==n.charAt(0)){const[s,a]=$M(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(t,i,n,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}let Rq=(()=>{class t{constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(n);s||t.initialStylesByElement.set(n,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&sr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(sr(this._element,this._initialStyles),this._endStyles&&(sr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ko(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),sr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function wv(e){let t=null;return e.forEach((i,n)=>{(function Oq(e){return"display"===e||"position"===e})(n)&&(t=t||new Map,t.set(n,i))}),t}class mI{constructor(t,i,n,r){this.element=t,this.keyframes=i,this.options=n,this._specialStyles=r,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const i=[];return t.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(t,i,n){return t.animate(this._convertKeyframesToObject(i),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&t.set(r,this._finished?n:eI(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const i="start"===t?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class Fq{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,i){return!1}containsElement(t,i){return GM(t,i)}getParentElement(t){return iv(t)}query(t,i,n){return WM(t,i,n)}computeStyle(t,i,n){return window.getComputedStyle(t)[i]}animate(t,i,n,r,o,s=[]){const c={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=s.filter(f=>f instanceof mI);(function H6(e,t){return 0===e||0===t})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((p,g)=>l.set(g,p))});let u=function B6(e){return e.length?e[0]instanceof Map?e:e.map(t=>XM(t)):[]}(i).map(f=>io(f));u=function z6(e,t,i){if(i.size&&t.length){let n=t[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,eI(e,a)))}}return t}(t,u,l);const h=function Aq(e,t){let i=null,n=null;return Array.isArray(t)&&t.length?(i=wv(t[0]),t.length>1&&(n=wv(t[t.length-1]))):t instanceof Map&&(i=wv(t)),i||n?new Rq(e,i,n):null}(t,u);return new mI(t,u,c,h)}}let Pq=(()=>{var e;class t extends VM{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:li.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(n)?jM(n):n;return gI(this._renderer,null,r,"register",[o]),new Nq(r,this._renderer)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(al),D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class Nq extends W${constructor(t,i){super(),this._id=t,this._renderer=i}create(t,i){return new Lq(this._id,t,i||{},this._renderer)}}class Lq{constructor(t,i,n,r){this.id=t,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,i){return this._renderer.listen(this.element,`@@${this.id}:${t}`,i)}_command(t,...i){return gI(this._renderer,this.element,this.id,t,i)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function gI(e,t,i,n,r){return e.setProperty(t,`@@${i}:${n}`,r)}const _I="@.disabled";let Bq=(()=>{var e;class t{constructor(n,r,o){this.delegate=n,this.engine=r,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(s,a)=>{const c=a?.parentNode(s);c&&a.removeChild(c,s)}}createRenderer(n,r){const s=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new bI("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const a=r.id,c=r.id+"-"+this._currentId;this._currentId++,this.engine.register(c,n);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(a,c,n,u.name,u)};return r.data.animation.forEach(l),new Vq(this,c,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,o){n>=0&&nr(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[a,c]=s;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,o]))}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()}}return(e=t).\u0275fac=function(n){return new(n||e)(D(al),D(bf),D(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class bI{constructor(t,i,n,r){this.namespaceId=t,this.delegate=i,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,i){return this.delegate.createElement(t,i)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,i){this.delegate.appendChild(t,i),this.engine.onInsert(this.namespaceId,i,t,!1)}insertBefore(t,i,n,r=!0){this.delegate.insertBefore(t,i,n),this.engine.onInsert(this.namespaceId,i,t,r)}removeChild(t,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(t,i){return this.delegate.selectRootElement(t,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,i,n,r){this.delegate.setAttribute(t,i,n,r)}removeAttribute(t,i,n){this.delegate.removeAttribute(t,i,n)}addClass(t,i){this.delegate.addClass(t,i)}removeClass(t,i){this.delegate.removeClass(t,i)}setStyle(t,i,n,r){this.delegate.setStyle(t,i,n,r)}removeStyle(t,i,n){this.delegate.removeStyle(t,i,n)}setProperty(t,i,n){"@"==i.charAt(0)&&i==_I?this.disableAnimations(t,!!n):this.delegate.setProperty(t,i,n)}setValue(t,i){this.delegate.setValue(t,i)}listen(t,i,n){return this.delegate.listen(t,i,n)}disableAnimations(t,i){this.engine.disableAnimations(t,i)}}class Vq extends bI{constructor(t,i,n,r,o){super(i,n,r,o),this.factory=t,this.namespaceId=i}setProperty(t,i,n){"@"==i.charAt(0)?"."==i.charAt(1)&&i==_I?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,i.slice(1),n):this.delegate.setProperty(t,i,n)}listen(t,i,n){if("@"==i.charAt(0)){const r=function jq(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t);let o=i.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function Hq(e){const t=e.indexOf(".");return[e.substring(0,t),e.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(t,i,n)}}let zq=(()=>{var e;class t extends bf{constructor(n,r,o,s){super(n.body,r,o)}ngOnDestroy(){this.flush()}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he),D(rv),D(mv),D(Xr))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const vI=[{provide:VM,useClass:Pq},{provide:mv,useFactory:function Uq(){return new cq}},{provide:bf,useClass:zq},{provide:al,useFactory:function $q(e,t,i){return new Bq(e,t,i)},deps:[qb,bf,G]}],xv=[{provide:rv,useFactory:()=>new Fq},{provide:_t,useValue:"BrowserAnimations"},...vI],yI=[{provide:rv,useClass:QM},{provide:_t,useValue:"NoopAnimations"},...vI];let Cv,wI=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?yI:xv}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:xv,imports:[_M]}),t})();try{Cv=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Cv=!1}let Ra,nt=(()=>{var e;class t{constructor(n){this._platformId=n,this.isBrowser=this._platformId?function bU(e){return e===ZT}(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&&!Cv)&&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}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Qr))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const xI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function CI(){if(Ra)return Ra;if("object"!=typeof document||!document)return Ra=new Set(xI),Ra;let e=document.createElement("input");return Ra=new Set(xI.filter(t=>(e.setAttribute("type",t),e.type===t))),Ra}let jl,yf,Zo,Dv;function ro(e){return function qq(){if(null==jl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>jl=!0}))}finally{jl=jl||!1}return jl}()?e:!!e.capture}function DI(){if(null==Zo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zo=!1,Zo;if("scrollBehavior"in document.documentElement.style)Zo=!0;else{const e=Element.prototype.scrollTo;Zo=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Zo}function Hl(){if("object"!=typeof document||!document)return 0;if(null==yf){const e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",e.appendChild(i),document.body.appendChild(e),yf=0,0===e.scrollLeft&&(e.scrollLeft=1,yf=0===e.scrollLeft?1:2),e.remove()}return yf}function Ir(e){return e.composedPath?e.composedPath()[0]:e.target}function Ev(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function An(e,...t){return t.length?t.some(i=>e[i]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function it(e,t,i){const n=Re(e)||t||i?{next:e,error:t,complete:i}:e;return n?at((r,o)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let a=!0;r.subscribe(Ze(o,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),o.next(c)},()=>{var c;a=!1,null===(c=n.complete)||void 0===c||c.call(n),o.complete()},c=>{var l;a=!1,null===(l=n.error)||void 0===l||l.call(n,c),o.error(c)},()=>{var c,l;a&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):Ti}class c7 extends Ae{constructor(t,i){super()}schedule(t,i=0){return this}}const Df={setInterval(e,t,...i){const{delegate:n}=Df;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=Df;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class Ef extends c7{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){var n;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(t,i,n=0){return Df.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,i,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return i;null!=i&&Df.clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let r,n=!1;try{this.work(t)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Ei(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}const kv={now:()=>(kv.delegate||Date).now(),delegate:void 0};class Ul{constructor(t,i=Ul.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Ul.now=kv.now;class Sf extends Ul{constructor(t,i=Ul.now){super(t,i),this.actions=[],this._active=!1}flush(t){const{actions:i}=this;if(this._active)return void i.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}}}const kf=new Sf(Ef),l7=kf;function Tf(e,t=kf){return at((i,n)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,n.next(l)}};function c(){const l=s+e,d=t.now();if(d{o=l,s=t.now(),r||(r=t.schedule(c,e),n.add(r))},()=>{a(),n.complete()},void 0,()=>{o=r=null}))})}function Xe(e){return e<=0?()=>Rt:at((t,i)=>{let n=0;t.subscribe(Ze(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function Tv(e){return Ve((t,i)=>e<=i)}function ce(e){return at((t,i)=>{sn(e).subscribe(Ze(i,()=>i.complete(),Do)),!i.closed&&t.subscribe(i)})}function Q(e){return null!=e&&"false"!=`${e}`}function Bi(e,t=0){return function d7(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function Mf(e){return Array.isArray(e)?e:[e]}function Gt(e){return null==e?"":"string"==typeof e?e:`${e}px`}function Ar(e){return e instanceof W?e.nativeElement:e}let SI=(()=>{var e;class t{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),h7=(()=>{var e;class t{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){const r=Ar(n);return new Me(o=>{const a=this._observeElement(r).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{const r=new Y,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:o,stream:r,count:1})}return this._observedElements.get(n).stream}_unobserveElement(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}_cleanupObserver(n){if(this._observedElements.has(n)){const{observer:r,stream:o}=this._observedElements.get(n);r&&r.disconnect(),o.complete(),this._observedElements.delete(n)}}}return(e=t).\u0275fac=function(n){return new(n||e)(D(SI))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),f7=(()=>{var e;class t{get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=Bi(n),this._subscribe()}constructor(n,r,o){this._contentObserver=n,this._elementRef=r,this._ngZone=o,this.event=new U,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const n=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?n.pipe(Tf(this.debounce)):n).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(h7),m(W),m(G))},e.\u0275dir=T({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Mv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[SI]}),t})();const{isArray:p7}=Array,{getPrototypeOf:m7,prototype:g7,keys:_7}=Object;function kI(e){if(1===e.length){const t=e[0];if(p7(t))return{args:t,keys:null};if(function b7(e){return e&&"object"==typeof e&&m7(e)===g7}(t)){const i=_7(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:v7}=Array;function Iv(e){return J(t=>function y7(e,t){return v7(t)?e(...t):e(t)}(e,t))}function TI(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}function If(...e){const t=Tc(e),i=Sm(e),{args:n,keys:r}=kI(e);if(0===n.length)return Et([],t);const o=new Me(function w7(e,t,i=Ti){return n=>{MI(t,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let c=0;c{const l=Et(e[c],t);let d=!1;l.subscribe(Ze(n,u=>{o[c]=u,d||(d=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,r?s=>TI(r,s):Ti));return i?o.pipe(Iv(i)):o}function MI(e,t,i){e?fr(i,e,t):t()}function $l(...e){return function x7(){return Ms(1)}()(Et(e,Tc(e)))}function tn(...e){const t=Tc(e);return at((i,n)=>{(t?$l(e,i,t):$l(e,i)).subscribe(n)})}const II=new Set;let Jo,C7=(()=>{var e;class t{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):E7}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function D7(e,t){if(!II.has(e))try{Jo||(Jo=document.createElement("style"),t&&(Jo.nonce=t),Jo.setAttribute("type","text/css"),document.head.appendChild(Jo)),Jo.sheet&&(Jo.sheet.insertRule(`@media ${e} {body{ }}`,0),II.add(e))}catch(i){console.error(i)}}(n,this._nonce),this._matchMedia(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(nt),D(Wg,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function E7(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let Av=(()=>{var e;class t{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new Y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return AI(Mf(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let s=If(AI(Mf(n)).map(a=>this._registerQuery(a).observable));return s=$l(s.pipe(Xe(1)),s.pipe(Tv(1),Tf(0))),s.pipe(J(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{c.matches=c.matches||l,c.breakpoints[d]=l}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);const r=this._mediaMatcher.matchMedia(n),s={observable:new Me(a=>{const c=l=>this._zone.run(()=>a.next(l));return r.addListener(c),()=>{r.removeListener(c)}}).pipe(tn(r),J(({matches:a})=>({query:n,matches:a})),ce(this._destroySubject)),mql:r};return this._queries.set(n,s),s}}return(e=t).\u0275fac=function(n){return new(n||e)(D(C7),D(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function AI(e){return e.map(t=>t.split(",")).reduce((t,i)=>t.concat(i)).map(t=>t.trim())}function Rv(e,t,i){const n=Af(e,t);n.some(r=>r.trim()==i.trim())||(n.push(i.trim()),e.setAttribute(t,n.join(" ")))}function ql(e,t,i){const r=Af(e,t).filter(o=>o!=i.trim());r.length?e.setAttribute(t,r.join(" ")):e.removeAttribute(t)}function Af(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}const OI="cdk-describedby-message",Rf="cdk-describedby-host";let Ov=0,k7=(()=>{var e;class t{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ov++,this._document=n,this._id=j(rl)+"-"+Ov++}describe(n,r,o){if(!this._canBeDescribed(n,r))return;const s=Fv(r,o);"string"!=typeof r?(FI(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,r,o){if(!r||!this._isElementNode(n))return;const s=Fv(r,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),"string"==typeof r){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const n=this._document.querySelectorAll(`[${Rf}="${this._id}"]`);for(let r=0;r0!=o.indexOf(OI));n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){const o=this._messageRegistry.get(r);Rv(n,"aria-describedby",o.messageElement.id),n.setAttribute(Rf,this._id),o.referenceCount++}_removeMessageReference(n,r){const o=this._messageRegistry.get(r);o.referenceCount--,ql(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Rf)}_isElementDescribedByMessage(n,r){const o=Af(n,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&"object"==typeof r)return!0;const o=null==r?"":`${r}`.trim(),s=n.getAttribute("aria-label");return!(!o||s&&s.trim()===o)}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he),D(nt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Fv(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function FI(e,t){e.id||(e.id=`${OI}-${t}-${Ov++}`)}class PI{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=Ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,t instanceof Cr&&(this._itemChangesSubscription=t.changes.subscribe(i=>{if(this._activeItem){const r=i.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(it(i=>this._pressedLetters.push(i)),Tf(t),Ve(()=>this._pressedLetters.length>0),J(()=>this._pressedLetters.join(""))).subscribe(i=>{const n=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.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._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const i=this._getItemsArray(),n="number"==typeof t?t:i.indexOf(t);this._activeItem=i[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const i=this._getItemsArray();for(let n=1;n<=i.length;n++){const r=(this._activeItemIndex+t*n+i.length)%i.length;if(!this._skipPredicateFn(i[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,i){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=i])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Cr?this._items.toArray():this._items}}class NI extends PI{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Pv extends PI{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let LI=(()=>{var e;class t{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return function M7(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}isTabbable(n){if(!this._platform.isBrowser)return!1;const r=function T7(e){try{return e.frameElement}catch{return null}}(function L7(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(r&&(-1===VI(r)||!this.isVisible(r)))return!1;let o=n.nodeName.toLowerCase(),s=VI(n);return n.hasAttribute("contenteditable")?-1!==s:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function P7(e){let t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(n))&&("audio"===o?!!n.hasAttribute("controls")&&-1!==s:"video"===o?-1!==s&&(null!==s||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}isFocusable(n,r){return function N7(e){return!function A7(e){return function O7(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function I7(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function R7(e){return function F7(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||BI(e))}(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(nt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function BI(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function VI(e){if(!BI(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class B7{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,i,n,r,o=!1){this._element=t,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const t=this._startAnchor,i=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.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(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const i=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){const n=this._getFirstTabbableElement(i);return n?.focus(t),!!n}return i.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const i=this._getRegionBoundary("start");return i&&i.focus(t),!!i}focusLastTabbableElement(t){const i=this._getRegionBoundary("end");return i&&i.focus(t),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const i=t.children;for(let n=0;n=0;n--){const r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,i){t?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Xe(1)).subscribe(t)}}let V7=(()=>{var e;class t{constructor(n,r,o){this._checker=n,this._ngZone=r,this._document=o}create(n,r=!1){return new B7(n,this._checker,this._ngZone,this._document,r)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(LI),D(G),D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Nv(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function Lv(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const j7=new M("cdk-input-modality-detector-options"),H7={ignoreKeys:[18,17,224,91,16]},Pa=ro({passive:!0,capture:!0});let z7=(()=>{var e;class t{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new dt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ir(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Nv(a)?"keyboard":"mouse"),this._mostRecentTarget=Ir(a))},this._onTouchstart=a=>{Lv(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ir(a))},this._options={...H7,...s},this.modalityDetected=this._modality.pipe(Tv(1)),this.modalityChanged=this.modalityDetected.pipe(Is()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Pa),o.addEventListener("mousedown",this._onMousedown,Pa),o.addEventListener("touchstart",this._onTouchstart,Pa)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Pa),document.removeEventListener("mousedown",this._onMousedown,Pa),document.removeEventListener("touchstart",this._onTouchstart,Pa))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(nt),D(G),D(he),D(j7,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const U7=new M("liveAnnouncerElement",{providedIn:"root",factory:function $7(){return null}}),q7=new M("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G7=0,Bv=(()=>{var e;class t{constructor(n,r,o,s){this._ngZone=r,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...r){const o=this._defaultOptions;let s,a;return 1===r.length&&"number"==typeof r[0]?a=r[0]:[s,a]=r,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{var e;class t{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,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 Y,this._rootNodeFocusAndBlurListener=c=>{for(let d=Ir(c);d;d=d.parentElement)"focus"===c.type?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||0}monitor(n,r=!1){const o=Ar(n);if(!this._platform.isBrowser||1!==o.nodeType)return re();const s=function Wq(e){if(function Gq(){if(null==Dv){const e=typeof document<"u"?document.head:null;Dv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Dv}()){const t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;const c={checkChildren:r,subject:new Y,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){const r=Ar(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){const s=Ar(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,r,l)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return 1===this._detectionMode||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused","touch"===r),n.classList.toggle("cdk-keyboard-focused","keyboard"===r),n.classList.toggle("cdk-mouse-focused","mouse"===r),n.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=n,this._originFromTouchInteraction="touch"===n&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(n,r){const o=this._elementInfo.get(r),s=Ir(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){const o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;const r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Of),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Of)}),this._rootNodeFocusListenerCount.set(r,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ce(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){const r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Of),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Of),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){const r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){const{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!r||r===n||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName||n.disabled)return!1;const s=n.labels;if(s)for(let a=0;a{var e;class t{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new U}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,1===n.nodeType&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(ar))},e.\u0275dir=T({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const HI="cdk-high-contrast-black-on-white",zI="cdk-high-contrast-white-on-black",Vv="cdk-high-contrast-active";let UI=(()=>{var e;class t{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=j(Av).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);const r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const n=this._document.body.classList;n.remove(Vv,HI,zI),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?n.add(Vv,HI):2===r&&n.add(Vv,zI)}}}return(e=t).\u0275fac=function(n){return new(n||e)(D(nt),D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),$I=(()=>{var e;class t{constructor(n){n._applyBodyHighContrastModeCssClasses()}}return(e=t).\u0275fac=function(n){return new(n||e)(D(UI))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[Mv]}),t})();const Y7=new M("cdk-dir-doc",{providedIn:"root",factory:function K7(){return j(he)}}),X7=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let fn=(()=>{var e;class t{constructor(n){this.value="ltr",this.change=new U,n&&(this.value=function Z7(e){const t=e?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?X7.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((n.body?n.body.dir:null)||(n.documentElement?n.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Y7,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Gl=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const J7=["text"];function eG(e,t){if(1&e&&ie(0,"mat-pseudo-checkbox",6),2&e){const i=B();E("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function tG(e,t){1&e&&ie(0,"mat-pseudo-checkbox",7),2&e&&E("disabled",B().disabled)}function nG(e,t){if(1&e&&(y(0,"span",8),A(1),w()),2&e){const i=B();x(1),Ue("(",i.group.label,")")}}const iG=[[["mat-icon"]],"*"],rG=["mat-icon","*"],sG=new M("mat-sanity-checks",{providedIn:"root",factory:function oG(){return!0}});let ve=(()=>{var e;class t{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return!Ev()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}return(e=t).\u0275fac=function(n){return new(n||e)(D(UI),D(sG,8),D(he))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[Gl,Gl]}),t})();function es(e){return class extends e{get disabled(){return this._disabled}set disabled(t){this._disabled=Q(t)}constructor(...t){super(...t),this._disabled=!1}}}function ts(e,t){return class extends e{get color(){return this._color}set color(i){const n=i||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...i){super(...i),this.defaultColor=t,this.color=t}}}function so(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Q(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function ns(e,t=0){return class extends e{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=null!=i?Bi(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=t,this.defaultTabIndex=t}}}function jv(e){return class extends e{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let Ff=(()=>{var e;class t{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),QI=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})();class cG{constructor(t,i,n,r=!1){this._renderer=t,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const YI=ro({passive:!0,capture:!0});class lG{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const i=Ir(t);i&&this._events.get(t.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(o=>o.handleEvent(t))})}}addHandler(t,i,n,r){const o=this._events.get(i);if(o){const s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,YI)})}removeHandler(t,i,n){const r=this._events.get(t);if(!r)return;const o=r.get(i);o&&(o.delete(n),0===o.size&&r.delete(i),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,YI)))}}const KI={enterDuration:225,exitDuration:150},XI=ro({passive:!0,capture:!0}),ZI=["mousedown","touchstart"],JI=["mouseup","mouseleave","touchend","touchcancel"];class Ql{constructor(t,i,n,r){this._target=t,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ar(n))}fadeInRipple(t,i,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...KI,...n.animation};n.centered&&(t=r.left+r.width/2,i=r.top+r.height/2);const s=n.radius||function uG(e,t,i){const n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+r*r)}(t,i,r),a=t-r.left,c=i-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=c-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new cG(this,d,n,p);d.style.transform="scale3d(1, 1, 1)",g.state=0,n.persistent||(this._mostRecentTransientRipple=g);let b=null;return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(g),v=()=>this._destroyRipple(g);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",v),b={onTransitionEnd:_,onTransitionCancel:v}}),this._activeRipples.set(g,b),(p||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(t){if(2===t.state||3===t.state)return;const i=t.element,n={...KI,...t.config.animation};i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const i=Ar(t);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,ZI.forEach(n=>{Ql._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{JI.forEach(i=>{this._triggerElement.addEventListener(i,this,XI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const i=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=1,!n&&(!i||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const i=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==i&&(t.element.removeEventListener("transitionend",i.onTransitionEnd),t.element.removeEventListener("transitioncancel",i.onTransitionCancel)),t.element.remove()}_onMousedown(t){const i=Nv(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(ZI.forEach(i=>Ql._eventManager.removeHandler(i,t,this)),this._pointerUpEventsRegistered&&JI.forEach(i=>t.removeEventListener(i,this,XI)))}}Ql._eventManager=new lG;const Pf=new M("mat-ripple-global-options");let ao=(()=>{var e;class t{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Ql(this,r,n,o)}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(n,r=0,o){return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,r,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...n})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(G),m(nt),m(Pf,8),m(_t,8))},e.\u0275dir=T({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),is=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})(),hG=(()=>{var e;class t{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(e=t).\u0275fac=function(n){return new(n||e)(m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){2&n&&se("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),t})(),fG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve]}),t})();const Hv=new M("MAT_OPTION_PARENT_COMPONENT"),zv=new M("MatOptgroup");let pG=0;class e1{constructor(t,i=!1){this.source=t,this.isUserInput=i}}let mG=(()=>{var e;class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(n){this._disabled=Q(n)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(n,r,o,s){this._element=n,this._changeDetectorRef=r,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pG++,this.onSelectionChange=new U,this._stateChanges=new Y}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,r){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!An(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new e1(this,n))}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(J7,7),2&n){let o;H(o=z())&&(r._text=o.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Nf=(()=>{var e;class t extends mG{constructor(n,r,o,s){super(n,r,o,s)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(Hv,8),m(zv,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){1&n&&$("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(pi("id",r.id),de("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),se("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},exportAs:["matOption"],features:[P],ngContentSelectors:rG,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(n,r){1&n&&(ze(iG),R(0,eG,1,2,"mat-pseudo-checkbox",0),X(1),y(2,"span",1,2),X(4,1),w(),R(5,tG,1,1,"mat-pseudo-checkbox",3),R(6,nG,2,1,"span",4),ie(7,"div",5)),2&n&&(E("ngIf",r.multiple),x(5),E("ngIf",!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator),x(1),E("ngIf",r.group&&r.group._inert),x(1),E("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[ao,_i,hG],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();function t1(e,t,i){if(i.length){let n=t.toArray(),r=i.toArray(),o=0;for(let s=0;si+n?Math.max(0,e-n+t):i}let Yl=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[is,vn,ve,fG]}),t})();const r1={capture:!0},o1=["focus","click","mouseenter","touchstart"],Uv="mat-ripple-loader-uninitialized",$v="mat-ripple-loader-class-name",s1="mat-ripple-loader-centered",Lf="mat-ripple-loader-disabled";let a1=(()=>{var e;class t{constructor(){this._document=j(he,{optional:!0}),this._animationMode=j(_t,{optional:!0}),this._globalRippleOptions=j(Pf,{optional:!0}),this._platform=j(nt),this._ngZone=j(G),this._onInteraction=n=>{if(!(n.target instanceof HTMLElement))return;const o=n.target.closest(`[${Uv}]`);o&&this.createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const n of o1)this._document?.addEventListener(n,this._onInteraction,r1)})}ngOnDestroy(){for(const n of o1)this._document?.removeEventListener(n,this._onInteraction,r1)}configureRipple(n,r){n.setAttribute(Uv,""),(r.className||!n.hasAttribute($v))&&n.setAttribute($v,r.className||""),r.centered&&n.setAttribute(s1,""),r.disabled&&n.setAttribute(Lf,"")}getRipple(n){return n.matRipple?n.matRipple:this.createRipple(n)}setDisabled(n,r){const o=n.matRipple;o?o.disabled=r:r?n.setAttribute(Lf,""):n.removeAttribute(Lf)}createRipple(n){if(!this._document)return;n.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",n.getAttribute($v)),n.append(r);const o=new ao(new W(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(s1),o.disabled=n.hasAttribute(Lf),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(Uv),n.matRipple=r}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Na(e,t){const i=Re(e)?e:()=>e,n=r=>r.error(i());return new Me(t?r=>t.schedule(n,0,r):n)}function c1(...e){const t=Sm(e),{args:i,keys:n}=kI(e),r=new Me(o=>{const{length:s}=i;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?TI(n,a):a),o.complete())}))}});return t?r.pipe(Iv(t)):r}function Rn(e){return at((t,i)=>{let o,n=null,r=!1;n=t.subscribe(Ze(i,void 0,void 0,s=>{o=sn(e(s,Rn(e)(t))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}const gG=["*"];let Bf;function Kl(e){return function _G(){if(void 0===Bf&&(Bf=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(Bf=e.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Bf}()?.createHTML(e)||e}function l1(e){return Error(`Unable to find icon with the name "${e}"`)}function d1(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function u1(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class rs{constructor(t,i,n){this.url=t,this.svgText=i,this.options=n}}let Xl=(()=>{var e;class t{constructor(n,r,o,s){this._httpClient=n,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,r,o){return this.addSvgIconInNamespace("",n,r,o)}addSvgIconLiteral(n,r,o){return this.addSvgIconLiteralInNamespace("",n,r,o)}addSvgIconInNamespace(n,r,o,s){return this._addSvgIconConfig(n,r,new rs(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,o,s){const a=this._sanitizer.sanitize(un.HTML,o);if(!a)throw u1(o);const c=Kl(a);return this._addSvgIconConfig(n,r,new rs("",c,s))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,o){return this._addSvgIconSetConfig(n,new rs(r,null,o))}addSvgIconSetLiteralInNamespace(n,r,o){const s=this._sanitizer.sanitize(un.HTML,r);if(!s)throw u1(r);const a=Kl(s);return this._addSvgIconSetConfig(n,new rs("",a,o))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){const r=this._sanitizer.sanitize(un.RESOURCE_URL,n);if(!r)throw d1(n);const o=this._cachedIconsByUrl.get(r);return o?re(Vf(o)):this._loadSvgIconFromConfig(new rs(n,null)).pipe(it(s=>this._cachedIconsByUrl.set(r,s)),J(s=>Vf(s)))}getNamedSvgIcon(n,r=""){const o=h1(r,n);let s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);const a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):Na(l1(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?re(Vf(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(J(r=>Vf(r)))}_getSvgFromIconSetConfigs(n,r){const o=this._extractIconWithNameFromAnySet(n,r);return o?re(o):c1(r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Rn(c=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(un.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(d)),re(null)})))).pipe(J(()=>{const a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw l1(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let o=r.length-1;o>=0;o--){const s=r[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){const a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,n,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(it(r=>n.svgText=r),J(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?re(null):this._fetchIcon(n).pipe(it(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,o){const s=n.querySelector(`[id="${r}"]`);if(!s)return null;const a=s.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const c=this._svgElementFromString(Kl(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(n){const r=this._document.createElement("DIV");r.innerHTML=n;const o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){const r=this._svgElementFromString(Kl("")),o=n.attributes;for(let s=0;sKl(d)),Ta(()=>this._inProgressUrlFetches.delete(a)),iu());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(n,r,o){return this._svgIconConfigs.set(h1(n,r),o),this}_addSvgIconSetConfig(n,r){const o=this._iconSetConfigs.get(n);return o?o.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){const r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let o=0;ot?t.pathname+t.search:""}}}),f1=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],EG=f1.map(e=>`[${e}]`).join(", "),SG=/^url\(['"]?#(.*?)['"]?\)$/;let qv=(()=>{var e;class t extends wG{get inline(){return this._inline}set inline(n){this._inline=Q(n)}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){const r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){const r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,o,s,a,c){super(n),this._iconRegistry=r,this._location=s,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ae.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];const r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const n=this._elementsWithExternalReferences;if(n&&n.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){const n=this._elementRef.nativeElement;let r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const o=n.childNodes[r];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return"string"==typeof n?n.trim().split(" ")[0]:n}_prependPathToReferences(n){const r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){const r=n.querySelectorAll(EG),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const c=r[s],l=c.getAttribute(a),d=l?l.match(SG):null;if(d){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){const[r,o]=this._splitIconName(n);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(Xe(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${o}! ${s.message}`))})}}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Xl),ui("aria-hidden"),m(CG),m(Ji),m(xG,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(n,r){2&n&&(de("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),se("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[P],ngContentSelectors:gG,decls:1,vars:0,template:function(n,r){1&n&&(ze(),X(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),Gv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})();const kG=["mat-button",""],p1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],m1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],MG=["mat-mini-fab",""],AG=["mat-icon-button",""],RG=["*"],OG=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],FG=ts(es(so(class{constructor(e){this._elementRef=e}})));let Wv=(()=>{var e;class t extends FG{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Q(n),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._updateRippleDisabled()}constructor(n,r,o,s){super(n),this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=j(ar),this._rippleLoader=j(a1),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=n.nativeElement.classList;for(const c of OG)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(l=>{a.add(l)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(n="program",r){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,r):this._elementRef.nativeElement.focus(r)}_hasHostAttributes(...n){return n.some(r=>this._elementRef.nativeElement.hasAttribute(r))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,features:[P]}),t})(),g1=(()=>{var e;class t extends Wv{constructor(n,r,o,s){super(n,r,o,s)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(nt),m(G),m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(n,r){2&n&&(de("disabled",r.disabled||null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[P],attrs:kG,ngContentSelectors:m1,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(n,r){1&n&&(ze(p1),ie(0,"span",0),X(1),y(2,"span",1),X(3,1),w(),X(4,2),ie(5,"span",2)(6,"span",3)),2&n&&se("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );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{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 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))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.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, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.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{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.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}),t})();const NG=new M("mat-mdc-fab-default-options",{providedIn:"root",factory:_1});function _1(){return{color:"accent"}}const b1=_1();let LG=(()=>{var e;class t extends Wv{constructor(n,r,o,s,a){super(n,r,o,s),this._options=a,this._isFab=!0,this._options=this._options||b1,this.color=this.defaultColor=this._options.color||b1.color}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(nt),m(G),m(_t,8),m(NG,8))},e.\u0275cmp=fe({type:e,selectors:[["button","mat-mini-fab",""]],hostVars:7,hostBindings:function(n,r){2&n&&(de("disabled",r.disabled||null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[P],attrs:MG,ngContentSelectors:m1,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(n,r){1&n&&(ze(p1),ie(0,"span",0),X(1),y(2,"span",1),X(3,1),w(),X(4,2),ie(5,"span",2)(6,"span",3)),2&n&&se("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._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);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__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-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::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-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);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);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),t})(),Qv=(()=>{var e;class t extends Wv{constructor(n,r,o,s){super(n,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(nt),m(G),m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(n,r){2&n&&(de("disabled",r.disabled||null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[P],attrs:AG,ngContentSelectors:RG,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(n,r){1&n&&(ze(),ie(0,"span",0),X(1),ie(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{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.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{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.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}),t})(),jf=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,is,ve]}),t})();const BG=["*",[["mat-toolbar-row"]]],VG=["*","mat-toolbar-row"],jG=ts(class{constructor(e){this._elementRef=e}});let Yv,HG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),zG=(()=>{var e;class t extends jG{constructor(n,r,o){super(n),this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(nt),m(he))},e.\u0275cmp=fe({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,HG,5),2&n){let s;H(s=z())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(n,r){2&n&&se("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[P],ngContentSelectors:VG,decls:2,vars:0,template:function(n,r){1&n&&(ze(BG),X(0),X(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),t})(),UG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})(),GG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[QI,ve,QI,ve]}),t})(),WG=1;const Hf={};function y1(e){return e in Hf&&(delete Hf[e],!0)}const QG={setImmediate(e){const t=WG++;return Hf[t]=!0,Yv||(Yv=Promise.resolve()),Yv.then(()=>y1(t)&&e()),t},clearImmediate(e){y1(e)}},{setImmediate:YG,clearImmediate:KG}=QG,zf={setImmediate(...e){const{delegate:t}=zf;return(t?.setImmediate||YG)(...e)},clearImmediate(e){const{delegate:t}=zf;return(t?.clearImmediate||KG)(e)},delegate:void 0},Kv=new class ZG extends Sf{flush(t){this._active=!0;const i=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===i&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===i&&n.shift();)t.unsubscribe();throw r}}}(class XG extends Ef{constructor(t,i){super(t,i),this.scheduler=t,this.work=i}requestAsyncId(t,i,n=0){return null!==n&&n>0?super.requestAsyncId(t,i,n):(t.actions.push(this),t._scheduled||(t._scheduled=zf.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,i,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,i,n);const{actions:o}=t;null!=i&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==i&&(zf.clearImmediate(i),t._scheduled===i&&(t._scheduled=void 0))}});function Uf(e){return J(()=>e)}function w1(e,t){return t?i=>$l(t.pipe(Xe(1),function JG(){return at((e,t)=>{e.subscribe(Ze(t,Do))})}()),i.pipe(w1(e))):Kt((i,n)=>sn(e(i,n)).pipe(Xe(1),Uf(i)))}function Xv(e=0,t,i=l7){let n=-1;return null!=t&&(qw(t)?i=t:n=t),new Me(r=>{let o=function e9(e){return e instanceof Date&&!isNaN(e)}(e)?+e-i.now():e;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Zv(e,t=kf){const i=Xv(e,t);return w1(()=>i)}class Jv{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class $f extends Jv{constructor(t,i,n,r,o){super(),this.component=t,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class co extends Jv{constructor(t,i,n,r){super(),this.templateRef=t,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,i=this.context){return this.context=i,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class t9 extends Jv{constructor(t){super(),this.element=t instanceof W?t.nativeElement:t}}class ey{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof $f?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof co?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof t9?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class n9 extends ey{constructor(t,i,n,r,o){super(),this.outletElement=t,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector||jt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);-1!==r&&i.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let i9=(()=>{var e;class t extends co{constructor(n,r){super(n,r)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(pt))},e.\u0275dir=T({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[P]}),t})(),La=(()=>{var e;class t extends ey{constructor(n,r,o){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new U,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);const r=null!=n.viewContainerRef?n.viewContainerRef:this._viewContainerRef,s=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=r.createComponent(s,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=n,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(n){n.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Bo),m(pt),m(he))},e.\u0275dir=T({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[P]}),t})(),qf=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const r9=["addListener","removeListener"],o9=["addEventListener","removeEventListener"],s9=["on","off"];function Vi(e,t,i,n){if(Re(i)&&(n=i,i=void 0),n)return Vi(e,t,i).pipe(Iv(n));const[r,o]=function l9(e){return Re(e.addEventListener)&&Re(e.removeEventListener)}(e)?o9.map(s=>a=>e[s](t,a,i)):function a9(e){return Re(e.addListener)&&Re(e.removeListener)}(e)?r9.map(x1(e,t)):function c9(e){return Re(e.on)&&Re(e.off)}(e)?s9.map(x1(e,t)):[];if(!r&&Dm(e))return Kt(s=>Vi(s,t,i))(sn(e));if(!r)throw new TypeError("Invalid event target");return new Me(s=>{const a=(...c)=>s.next(1o(a)})}function x1(e,t){return i=>n=>e[i](t,n)}const Zl={schedule(e){let t=requestAnimationFrame,i=cancelAnimationFrame;const{delegate:n}=Zl;n&&(t=n.requestAnimationFrame,i=n.cancelAnimationFrame);const r=t(o=>{i=void 0,e(o)});return new Ae(()=>i?.(r))},requestAnimationFrame(...e){const{delegate:t}=Zl;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:t}=Zl;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class u9 extends Sf{flush(t){this._active=!0;const i=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===i&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===i&&n.shift();)t.unsubscribe();throw r}}}(class d9 extends Ef{constructor(t,i){super(t,i),this.scheduler=t,this.work=i}requestAsyncId(t,i,n=0){return null!==n&&n>0?super.requestAsyncId(t,i,n):(t.actions.push(this),t._scheduled||(t._scheduled=Zl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,i,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,i,n);const{actions:o}=t;null!=i&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==i&&(Zl.cancelAnimationFrame(i),t._scheduled=void 0)}});function C1(e,t=kf){return function f9(e){return at((t,i)=>{let n=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const l=r;r=null,i.next(l)}s&&i.complete()},c=()=>{o=null,s&&i.complete()};t.subscribe(Ze(i,l=>{n=!0,r=l,o||sn(e(l)).subscribe(o=Ze(i,a,c))},()=>{s=!0,(!n||!o||o.closed)&&i.complete()}))})}(()=>Xv(e,t))}let Gf=(()=>{var e;class t{constructor(n,r,o){this._ngZone=n,this._platform=r,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){const r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=20){return this._platform.isBrowser?new Me(r=>{this._globalSubscription||this._addGlobalListener();const o=n>0?this._scrolled.pipe(C1(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):re()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){const o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Ve(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(n){const r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,n)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let o=Ar(r),s=n.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Vi(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(G),D(nt),D(he,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),ty=(()=>{var e;class t{constructor(n,r,o,s){this.elementRef=n,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new Y,this._elementScrolled=new Me(a=>this.ngZone.runOutsideAngular(()=>Vi(this.elementRef.nativeElement,"scroll").pipe(ce(this._destroyed)).subscribe(a)))}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(n){const r=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=o?n.end:n.start),null==n.right&&(n.right=o?n.start:n.end),null!=n.bottom&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),o&&0!=Hl()?(null!=n.left&&(n.right=r.scrollWidth-r.clientWidth-n.left),2==Hl()?n.left=n.right:1==Hl()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){const r=this.elementRef.nativeElement;DI()?r.scrollTo(n):(null!=n.top&&(r.scrollTop=n.top),null!=n.left&&(r.scrollLeft=n.left))}measureScrollOffset(n){const r="left",o="right",s=this.elementRef.nativeElement;if("top"==n)return s.scrollTop;if("bottom"==n)return s.scrollHeight-s.clientHeight-s.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==n?n=a?o:r:"end"==n&&(n=a?r:o),a&&2==Hl()?n==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&1==Hl()?n==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:n==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Gf),m(G),m(fn,8))},e.\u0275dir=T({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),Rr=(()=>{var e;class t{constructor(n,r,o){this._platform=n,this._change=new Y,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(n.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){const n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const n=this._document,r=this._getWindow(),o=n.documentElement,s=o.getBoundingClientRect();return{top:-s.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,left:-s.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0}}change(n=20){return n>0?this._change.pipe(C1(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}return(e=t).\u0275fac=function(n){return new(n||e)(D(nt),D(G),D(he,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),lo=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})(),ny=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[Gl,lo,Gl,lo]}),t})();const D1=DI();class _9{constructor(t,i){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Gt(-this._previousScrollPosition.left),t.style.top=Gt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,r=this._document.body.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),D1&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),D1&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}}class b9{constructor(t,i,n,r){this._scrollDispatcher=t,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe(Ve(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class E1{enable(){}disable(){}attach(){}}function iy(e,t){return t.some(i=>e.bottomi.bottom||e.righti.right)}function S1(e,t){return t.some(i=>e.topi.bottom||e.lefti.right)}class v9{constructor(t,i,n,r){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();iy(i,[{width:n,height:r,bottom:r,right:n,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 y9=(()=>{var e;class t{constructor(n,r,o,s){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new E1,this.close=a=>new b9(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new _9(this._viewportRuler,this._document),this.reposition=a=>new v9(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Gf),D(Rr),D(G),D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Jl{constructor(t){if(this.scrollStrategy=new E1,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const i=Object.keys(t);for(const n of i)void 0!==t[n]&&(this[n]=t[n])}}}class w9{constructor(t,i){this.connectionPair=t,this.scrollableViewProperties=i}}let k1=(()=>{var e;class t{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){const r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),x9=(()=>{var e;class t extends k1{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=o=>{const s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){const c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(n){super.add(n),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)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he),D(G,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),C9=(()=>{var e;class t extends k1{constructor(n,r,o){super(n),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Ir(s)},this._clickListener=s=>{const a=Ir(s),c="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){const u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(c))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(n){if(super.add(n),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he),D(nt),D(G,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),T1=(()=>{var e;class t{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||Ev()){const o=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const i=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Xe(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 i?.onDestroy&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Gt(this._config.width),t.height=Gt(this._config.height),t.minWidth=Gt(this._config.minWidth),t.minHeight=Gt(this._config.minHeight),t.maxWidth=Gt(this._config.maxWidth),t.maxHeight=Gt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,i,n){const r=Mf(i||[]).filter(o=>!!o);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(ce(Ot(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const M1="cdk-overlay-connected-position-bounding-box",E9=/([A-Za-z%]+)$/;class S9{get positions(){return this._preferredPositions}constructor(t,i,n,r,o){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=o,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 Y,this._resizeSubscription=Ae.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(M1),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,r,a),l=this._getOverlayPoint(c,i,a),d=this._getOverlayFit(l,i,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(d,l,n)?o.push({position:a,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ss(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(M1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,i)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,i,n){let r,o;if("center"==n.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==n.originX?s:a}return i.left<0&&(r-=i.left),o="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,i.top<0&&(o-=i.top),{x:r,y:o}}_getOverlayPoint(t,i,n){let r,o;return r="center"==n.overlayX?-i.width/2:"start"===n.overlayX?this._isRtl()?-i.width:0:this._isRtl()?0:-i.width,o="center"==n.overlayY?-i.height/2:"top"==n.overlayY?0:-i.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,i,n,r){const o=A1(i);let{x:s,y:a}=t,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let h=0-a,f=a+o.height-n.height,p=this._subtractOverflows(o.width,0-s,s+o.width-n.width),g=this._subtractOverflows(o.height,h,f),b=p*g;return{visibleArea:b,isCompletelyWithinViewport:o.width*o.height===b,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(t,i,n){if(this._hasFlexibleDimensions){const r=n.bottom-i.y,o=n.right-i.x,s=I1(this._overlayRef.getConfig().minHeight),a=I1(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(t,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=A1(i),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),c=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);let d=0,u=0;return d=r.width<=o.width?l||-s:t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-p/2)}if("end"===i.overlayX&&!r||"start"===i.overlayX&&r)h=n.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===i.overlayX&&!r||"end"===i.overlayX&&r)u=t.x,d=n.right-t.x;else{const f=Math.min(n.right-t.x+n.left,t.x),p=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-p/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(t,i){const n=this._calculateBoundingBoxRect(t,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Gt(n.height),r.top=Gt(n.top),r.bottom=Gt(n.bottom),r.width=Gt(n.width),r.left=Gt(n.left),r.right=Gt(n.right),r.alignItems="center"===i.overlayX?"center":"end"===i.overlayX?"flex-end":"flex-start",r.justifyContent="center"===i.overlayY?"center":"bottom"===i.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Gt(o)),s&&(r.maxWidth=Gt(s))}this._lastBoundingBoxSize=n,ss(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ss(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ss(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,i){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();ss(n,this._getExactOverlayY(i,t,d)),ss(n,this._getExactOverlayX(i,t,d))}else n.position="static";let a="",c=this._getOffset(i,"x"),l=this._getOffset(i,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=Gt(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=Gt(s.maxWidth):o&&(n.maxWidth="")),ss(this._pane.style,n)}_getExactOverlayY(t,i,n){let r={top:"",bottom:""},o=this._getOverlayPoint(i,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Gt(o.y),r}_getExactOverlayX(t,i,n){let s,r={left:"",right:""},o=this._getOverlayPoint(i,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Gt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:S1(t,n),isOriginOutsideView:iy(t,n),isOverlayClipped:S1(i,n),isOverlayOutsideView:iy(i,n)}}_subtractOverflows(t,...i){return i.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:t-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,i){return"x"===i?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Mf(t).forEach(i=>{""!==i&&-1===this._appliedPanelClasses.indexOf(i)&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof W)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const i=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+i,height:n,width:i}}}function ss(e,t){for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function I1(e){if("number"!=typeof e&&null!=e){const[t,i]=e.split(E9);return i&&"px"!==i?null:parseFloat(t)}return e||null}function A1(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const R1="cdk-global-overlay-wrapper";class k9{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const i=t.getConfig();this._overlayRef=t,this._width&&!i.width&&t.updateSize({width:this._width}),this._height&&!i.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(R1),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,c=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",g="";c?g="flex-start":"center"===d?(g="center",h?p=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",p=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",p=u),t.position=this._cssPosition,t.marginLeft=c?"0":f,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":p,i.justifyContent=g,i.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(R1),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let T9=(()=>{var e;class t{constructor(n,r,o,s){this._viewportRuler=n,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new k9}flexibleConnectedTo(n){return new S9(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Rr),D(he),D(nt),D(T1))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),M9=0,wi=(()=>{var e;class t{constructor(n,r,o,s,a,c,l,d,u,h,f,p){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(n){const r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new Jl(n);return a.direction=a.direction||this._directionality.value,new D9(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(n){const r=this._document.createElement("div");return r.id="cdk-overlay-"+M9++,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){const n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Xr)),new n9(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(y9),D(T1),D(Bo),D(T9),D(x9),D(jt),D(G),D(he),D(fn),D(Nh),D(C9),D(_t,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const I9=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],O1=new M("cdk-connected-overlay-scroll-strategy");let ry=(()=>{var e;class t{constructor(n){this.elementRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W))},e.\u0275dir=T({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),F1=(()=>{var e;class t{get offsetX(){return this._offsetX}set offsetX(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(n){this._hasBackdrop=Q(n)}get lockPosition(){return this._lockPosition}set lockPosition(n){this._lockPosition=Q(n)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(n){this._flexibleDimensions=Q(n)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(n){this._growAfterOpen=Q(n)}get push(){return this._push}set push(n){this._push=Q(n)}constructor(n,r,o,s,a){this._overlay=n,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ae.EMPTY,this._attachSubscription=Ae.EMPTY,this._detachSubscription=Ae.EMPTY,this._positionSubscription=Ae.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new U,this.positionChange=new U,this.attach=new U,this.detach=new U,this.overlayKeydown=new U,this.overlayOutsideClick=new U,this._templatePortal=new co(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=I9);const n=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=n.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=n.detachments().subscribe(()=>this.detach.emit()),n.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),27===r.keyCode&&!this.disableClose&&!An(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{this.overlayOutsideClick.next(r)})}_buildConfig(){const n=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Jl({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(n){const r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return n.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const n=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(n),n}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ry?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(n=>{this.backdropClick.emit(n)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function g9(e,t=!1){return at((i,n)=>{let r=0;i.subscribe(Ze(n,o=>{const s=e(o,r++);(s||t)&&n.next(o),!s&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(n=>{this.positionChange.emit(n),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(wi),m(ct),m(pt),m(O1),m(fn,8))},e.\u0275dir=T({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[kt]}),t})();const R9={provide:O1,deps:[wi],useFactory:function A9(e){return()=>e.scrollStrategies.reposition()}};let ed=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[wi,R9],imports:[Gl,qf,ny,ny]}),t})();const O9=["mat-menu-item",""];function F9(e,t){1&e&&(zs(),y(0,"svg",3),ie(1,"polygon",4),w())}const P9=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],N9=["mat-icon, [matMenuItemIcon]","*"];function L9(e,t){if(1&e){const i=Ut();y(0,"div",0),$("keydown",function(r){return Ye(i),Ke(B()._handleKeydown(r))})("click",function(){return Ye(i),Ke(B().closed.emit("click"))})("@transformMenu.start",function(r){return Ye(i),Ke(B()._onAnimationStart(r))})("@transformMenu.done",function(r){return Ye(i),Ke(B()._onAnimationDone(r))}),y(1,"div",1),X(2),w()()}if(2&e){const i=B();E("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),de("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}const B9=["*"],oy=new M("MAT_MENU_PANEL"),V9=so(es(class{}));let Wf=(()=>{var e;class t extends V9{constructor(n,r,o,s,a){super(),this._elementRef=n,this._document=r,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Y,this._focused=new Y,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(n,r){this._focusMonitor&&n?this._focusMonitor.focusVia(this._getHostElement(),n,r):this._getHostElement().focus(r),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(n){this.disabled&&(n.preventDefault(),n.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const n=this._elementRef.nativeElement.cloneNode(!0),r=n.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Lt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1)"}))),Bt("* => void",Lt("100ms 25ms linear",je({opacity:0})))]),fadeInItems:ni("fadeInItems",[qt("showing",je({opacity:1})),Bt("void => *",[je({opacity:0}),Lt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let H9=0;const P1=new M("mat-menu-default-options",{providedIn:"root",factory:function z9(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let td=(()=>{var e;class t{get xPosition(){return this._xPosition}set xPosition(n){this._xPosition=n,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(n){this._yPosition=n,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(n){this._overlapTrigger=Q(n)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(n){this._hasBackdrop=Q(n)}set panelClass(n){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=n,n&&n.length&&(n.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(n){this.panelClass=n}constructor(n,r,o,s){this._elementRef=n,this._ngZone=r,this._changeDetectorRef=s,this._directDescendantItems=new Cr,this._classList={},this._panelAnimationState="void",this._animationDone=new Y,this.closed=new U,this.close=this.closed,this.panelId="mat-menu-panel-"+H9++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Pv(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(tn(this._directDescendantItems),Vt(n=>Ot(...n.map(r=>r._focused)))).subscribe(n=>this._keyManager.updateActiveItem(n)),this._directDescendantItems.changes.subscribe(n=>{const r=this._keyManager;if("enter"===this._panelAnimationState&&r.activeItem?._hasFocus()){const o=n.toArray(),s=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[s]&&!o[s].disabled?r.setActiveItem(s):r.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(tn(this._directDescendantItems),Vt(r=>Ot(...r.map(o=>o._hovered))))}addItem(n){}removeItem(n){}_handleKeydown(n){const r=n.keyCode,o=this._keyManager;switch(r){case 27:An(n)||(n.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===r||40===r)&&o.setFocusOrigin("keyboard"),void o.onKeydown(n)}n.stopPropagation()}focusFirstItem(n="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(n).setFirstItemActive(),!o.activeItem&&r&&r.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(n){const r=Math.min(this._baseElevation+n,24),o=`${this._elevationPrefix}${r}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(n=this.xPosition,r=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===n,o["mat-menu-after"]="after"===n,o["mat-menu-above"]="above"===r,o["mat-menu-below"]="below"===r,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(n){this._animationDone.next(n),this._isAnimating=!1}_onAnimationStart(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(tn(this._allItems)).subscribe(n=>{this._directDescendantItems.reset(n.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(G),m(P1),m(Fe))},e.\u0275dir=T({type:e,contentQueries:function(n,r,o){if(1&n&&(Ee(o,j9,5),Ee(o,Wf,5),Ee(o,Wf,4)),2&n){let s;H(s=z())&&(r.lazyContent=s.first),H(s=z())&&(r._allItems=s),H(s=z())&&(r.items=s)}},viewQuery:function(n,r){if(1&n&&ke(ct,5),2&n){let o;H(o=z())&&(r.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),U9=(()=>{var e;class t extends td{constructor(n,r,o,s){super(n,r,o,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(G),m(P1),m(Fe))},e.\u0275cmp=fe({type:e,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(n,r){2&n&&de("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Z([{provide:oy,useExisting:e}]),P],ngContentSelectors:B9,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(n,r){1&n&&(ze(),R(0,L9,3,6,"ng-template"))},dependencies:[Ea],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Qf.transformMenu,Qf.fadeInItems]},changeDetection:0}),t})();const N1=new M("mat-menu-scroll-strategy"),q9={provide:N1,deps:[wi],useFactory:function $9(e){return()=>e.scrollStrategies.reposition()}},L1=ro({passive:!0});let G9=(()=>{var e;class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(n){this.menu=n}get menu(){return this._menu}set menu(n){n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(n,r,o,s,a,c,l,d,u){this._overlay=n,this._element=r,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ae.EMPTY,this._hoverSubscription=Ae.EMPTY,this._menuCloseSubscription=Ae.EMPTY,this._changeDetectorRef=j(Fe),this._handleTouchStart=h=>{Lv(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new U,this.onMenuOpen=this.menuOpened,this.menuClosed=new U,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof td?a:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,L1)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,L1),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const n=this.menu;if(this._menuOpen||!n)return;const r=this._createOverlay(n),o=r.getConfig(),s=o.positionStrategy;this._setPosition(n,s),o.hasBackdrop=null==n.hasBackdrop?!this.triggersSubmenu():n.hasBackdrop,r.attach(this._getPortal(n)),n.lazyContent&&n.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(n),n instanceof td&&(n._startAnimation(),n._directDescendantItems.changes.pipe(ce(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(n,r){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,r):this._element.nativeElement.focus(r)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(n){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof td?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(Ve(o=>"void"===o.toState),Xe(1),ce(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r?.lazyContent?.detach())}_initMenu(n){n.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,this._setMenuElevation(n),n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(n){if(n.setElevation){let r=0,o=n.parentMenu;for(;o;)r++,o=o.parentMenu;n.setElevation(r)}}_setIsMenuOpen(n){n!==this._menuOpen&&(this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n),this._changeDetectorRef.markForCheck())}_createOverlay(n){if(!this._overlayRef){const r=this._getOverlayConfig(n);this._subscribeToPositions(n,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(n){return new Jl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:n.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:n.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(n,r){n.setPositionClasses&&r.positionChanges.subscribe(o=>{const s="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>n.setPositionClasses(s,a)):n.setPositionClasses(s,a)})}_setPosition(n,r){let[o,s]="before"===n.xPosition?["end","start"]:["start","end"],[a,c]="above"===n.yPosition?["bottom","top"]:["top","bottom"],[l,d]=[a,c],[u,h]=[o,s],f=0;if(this.triggersSubmenu()){if(h=o="before"===n.xPosition?"start":"end",s=u="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const p=this._parentMaterialMenu.items.first;this._parentInnerPadding=p?p._getHostElement().offsetTop:0}f="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else n.overlapTrigger||(l="top"===a?"bottom":"top",d="top"===c?"bottom":"top");r.withPositions([{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:f},{originX:s,originY:l,overlayX:h,overlayY:a,offsetY:f},{originX:o,originY:d,overlayX:u,overlayY:c,offsetY:-f},{originX:s,originY:d,overlayX:h,overlayY:c,offsetY:-f}])}_menuClosingActions(){const n=this._overlayRef.backdropClick(),r=this._overlayRef.detachments();return Ot(n,this._parentMaterialMenu?this._parentMaterialMenu.closed:re(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ve(a=>a!==this._menuItemInstance),Ve(()=>this._menuOpen)):re(),r)}_handleMousedown(n){Nv(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}_handleKeydown(n){const r=n.keyCode;(13===r||32===r)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===r&&"ltr"===this.dir||37===r&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ve(n=>n===this._menuItemInstance&&!n.disabled),Zv(0,Kv)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof td&&this.menu._isAnimating?this.menu._animationDone.pipe(Xe(1),Zv(0,Kv),ce(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(n){return(!this._portal||this._portal.templateRef!==n.templateRef)&&(this._portal=new co(n.templateRef,this._viewContainerRef)),this._portal}}return(e=t).\u0275fac=function(n){return new(n||e)(m(wi),m(W),m(pt),m(N1),m(oy,8),m(Wf,10),m(fn,8),m(ar),m(G))},e.\u0275dir=T({type:e,hostVars:3,hostBindings:function(n,r){1&n&&$("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&de("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),W9=(()=>{var e;class t extends G9{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[P]}),t})(),Q9=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[q9],imports:[vn,is,ve,ed,lo,ve]}),t})();function B1(e){return!!e&&(e instanceof Me||Re(e.lift)&&Re(e.subscribe))}const Yf=wc(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Kf(e){return new Me(t=>{sn(e()).subscribe(t)})}function sy(){return at((e,t)=>{let i=null;e._refCount++;const n=Ze(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(i=null);const r=e._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(i=e.connect())})}class ay extends Me{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Dc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ae;const i=this.getSubject();t.add(this.source.subscribe(Ze(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ae.EMPTY)}return t}refCount(){return sy()(this)}}function Xf(e){return at((t,i)=>{let n=!1;t.subscribe(Ze(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function V1(e=Y9){return at((t,i)=>{let n=!1;t.subscribe(Ze(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function Y9(){return new Yf}function as(e,t){const i=arguments.length>=2;return n=>n.pipe(e?Ve((r,o)=>e(r,o,n)):Ti,Xe(1),i?Xf(t):V1(()=>new Yf))}function cy(e){return e<=0?()=>Rt:at((t,i)=>{let n=[];t.subscribe(Ze(i,r=>{n.push(r),e{for(const r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}const Te="primary",nd=Symbol("RouteTitle");class J9{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function Ba(e){return new J9(e)}function eW(e,t,i){const n=i.path.split("/");if(n.length>e.length||"full"===i.pathMatch&&(t.hasChildren()||n.lengthn[o]===r)}return e===t}function H1(e){return e.length>0?e[e.length-1]:null}function uo(e){return B1(e)?e:_l(e)?Et(Promise.resolve(e)):re(e)}const nW={exact:function $1(e,t,i){if(!cs(e.segments,t.segments)||!Zf(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!$1(e.children[n],t.children[n],i))return!1;return!0},subset:q1},z1={exact:function iW(e,t){return cr(e,t)},subset:function rW(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>j1(e[i],t[i]))},ignored:()=>!0};function U1(e,t,i){return nW[i.paths](e.root,t.root,i.matrixParams)&&z1[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function q1(e,t,i){return G1(e,t,t.segments,i)}function G1(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!cs(r,i)||t.hasChildren()||!Zf(r,i,n))}if(e.segments.length===i.length){if(!cs(e.segments,i)||!Zf(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!q1(e.children[r],t.children[r],n))return!1;return!0}{const r=i.slice(0,e.segments.length),o=i.slice(e.segments.length);return!!(cs(e.segments,r)&&Zf(e.segments,r,n)&&e.children[Te])&&G1(e.children[Te],t,o,n)}}function Zf(e,t,i){return t.every((n,r)=>z1[i](e[r].parameters,n.parameters))}class Va{constructor(t=new tt([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ba(this.queryParams)),this._queryParamMap}toString(){return aW.serialize(this)}}class tt{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jf(this)}}class id{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=Ba(this.parameters)),this._parameterMap}toString(){return Y1(this)}}function cs(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let rd=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return new ly},providedIn:"root"}),t})();class ly{parse(t){const i=new bW(t);return new Va(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${od(t.root,!0)}`,n=function dW(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${ep(i)}=${ep(r)}`).join("&"):`${ep(i)}=${ep(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function cW(e){return encodeURI(e)}(t.fragment)}`:""}`}}const aW=new ly;function Jf(e){return e.segments.map(t=>Y1(t)).join("/")}function od(e,t){if(!e.hasChildren())return Jf(e);if(t){const i=e.children[Te]?od(e.children[Te],!1):"",n=[];return Object.entries(e.children).forEach(([r,o])=>{r!==Te&&n.push(`${r}:${od(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function sW(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===Te&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==Te&&(i=i.concat(t(r,n)))}),i}(e,(n,r)=>r===Te?[od(e.children[Te],!1)]:[`${r}:${od(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Te]?`${Jf(e)}/${i[0]}`:`${Jf(e)}/(${i.join("//")})`}}function W1(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ep(e){return W1(e).replace(/%3B/gi,";")}function dy(e){return W1(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tp(e){return decodeURIComponent(e)}function Q1(e){return tp(e.replace(/\+/g,"%20"))}function Y1(e){return`${dy(e.path)}${function lW(e){return Object.keys(e).map(t=>`;${dy(t)}=${dy(e[t])}`).join("")}(e.parameters)}`}const uW=/^[^\/()?;#]+/;function uy(e){const t=e.match(uW);return t?t[0]:""}const hW=/^[^\/()?;=#]+/,pW=/^[^=?&#]+/,gW=/^[^&#]+/;class bW{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new tt([],{}):new tt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[Te]=new tt(t,i)),n}parseSegment(){const t=uy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new id(tp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function fW(e){const t=e.match(hW);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=uy(this.remaining);r&&(n=r,this.capture(n))}t[tp(i)]=tp(n)}parseQueryParam(t){const i=function mW(e){const t=e.match(pW);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function _W(e){const t=e.match(gW);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=Q1(i),o=Q1(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=uy(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Te);const s=this.parseChildren();i[o]=1===Object.keys(s).length?s[Te]:new tt([],s),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}}function K1(e){return e.segments.length>0?new tt([],{[Te]:e}):e}function X1(e){const t={};for(const n of Object.keys(e.children)){const o=X1(e.children[n]);if(n===Te&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}return function vW(e){if(1===e.numberOfChildren&&e.children[Te]){const t=e.children[Te];return new tt(e.segments.concat(t.segments),t.children)}return e}(new tt(e.segments,t))}function ls(e){return e instanceof Va}function Z1(e){let t;const r=K1(function i(o){const s={};for(const c of o.children){const l=i(c);s[c.outlet]=l}const a=new tt(o.url,s);return o===e&&(t=a),a}(e.root));return t??r}function J1(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return hy(r,r,r,i,n);const o=function wW(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tA(!0,0,e);let t=0,i=!1;const n=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?i=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new tA(i,t,n)}(t);if(o.toRoot())return hy(r,r,new tt([],{}),i,n);const s=function xW(e,t,i){if(e.isAbsolute)return new ip(t,!0,0);if(!i)return new ip(t,!1,NaN);if(null===i.parent)return new ip(i,!0,0);const n=np(e.commands[0])?0:1;return function CW(e,t,i){let n=e,r=t,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new I(4005,!1);r=n.segments.length}return new ip(n,!1,r-o)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?ad(s.segmentGroup,s.index,o.commands):nA(s.segmentGroup,s.index,o.commands);return hy(r,s.segmentGroup,a,i,n)}function np(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function sd(e){return"object"==typeof e&&null!=e&&e.outlets}function hy(e,t,i,n,r){let s,o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`}),s=e===t?i:eA(e,t,i);const a=K1(X1(s));return new Va(a,o,r)}function eA(e,t,i){const n={};return Object.entries(e.children).forEach(([r,o])=>{n[r]=o===t?i:eA(o,t,i)}),new tt(e.segments,n)}class tA{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&np(n[0]))throw new I(4003,!1);const r=n.find(sd);if(r&&r!==H1(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ip{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function nA(e,t,i){if(e||(e=new tt([],{})),0===e.segments.length&&e.hasChildren())return ad(e,t,i);const n=function EW(e,t,i){let n=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return o;const s=e.segments[r],a=i[n];if(sd(a))break;const c=`${a}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!rA(c,l,s))return o;n+=2}else{if(!rA(c,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexo!==Te)&&e.children[Te]&&1===e.numberOfChildren&&0===e.children[Te].segments.length){const o=ad(e.children[Te],t,i);return new tt(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=nA(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===n[o]&&(r[o]=s)}),new tt(e.segments,r)}}function fy(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=fy(new tt([],{}),0,n))}),t}function iA(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function rA(e,t,i){return e==i.path&&cr(t,i.parameters)}const cd="imperative";class lr{constructor(t,i){this.id=t,this.url=i}}class rp extends lr{constructor(t,i,n="imperative",r=null){super(t,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ho extends lr{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ld extends lr{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ja extends lr{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class op extends lr{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class oA extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kW extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TW extends lr{constructor(t,i,n,r,o){super(t,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class MW extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IW extends lr{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AW{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class RW{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class OW{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FW{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PW{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NW{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sA{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class py{}class my{constructor(t){this.url=t}}class LW{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new dd,this.attachRef=null}}let dd=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new LW,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class aA{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){const i=gy(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=gy(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=_y(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return _y(t,this._root).map(i=>i.value)}}function gy(e,t){if(e===t.value)return t;for(const i of t.children){const n=gy(e,i);if(n)return n}return null}function _y(e,t){if(e===t.value)return[t];for(const i of t.children){const n=_y(e,i);if(n.length)return n.unshift(t),n}return[]}class Or{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function Ha(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class cA extends aA{constructor(t,i){super(t),this.snapshot=i,by(this,t)}toString(){return this.snapshot.toString()}}function lA(e,t){const i=function BW(e,t){const s=new sp([],{},{},"",{},Te,t,null,{});return new uA("",new Or(s,[]))}(0,t),n=new dt([new id("",{})]),r=new dt({}),o=new dt({}),s=new dt({}),a=new dt(""),c=new za(n,r,s,a,o,Te,t,i.root);return c.snapshot=i.root,new cA(new Or(c,[]),i)}class za{constructor(t,i,n,r,o,s,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(J(l=>l[nd]))??re(void 0),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(J(t=>Ba(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(t=>Ba(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dA(e,t="emptyOnly"){const i=e.pathFromRoot;let n=0;if("always"!==t)for(n=i.length-1;n>=1;){const r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function VW(e){return e.reduce((t,i)=>({params:{...t.params,...i.params},data:{...t.data,...i.data},resolve:{...i.data,...t.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class sp{get title(){return this.data?.[nd]}constructor(t,i,n,r,o,s,a,c,l){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ba(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ba(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uA extends aA{constructor(t,i){super(i),this.url=t,by(this,i)}toString(){return hA(this._root)}}function by(e,t){t.value._routerState=e,t.children.forEach(i=>by(e,i))}function hA(e){const t=e.children.length>0?` { ${e.children.map(hA).join(", ")} } `:"";return`${e.value}${t}`}function vy(e){if(e.snapshot){const t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,cr(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),cr(t.params,i.params)||e.paramsSubject.next(i.params),function tW(e,t){if(e.length!==t.length)return!1;for(let i=0;icr(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||yy(e.parent,t.parent))}let wy=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Te,this.activateEvents=new U,this.deactivateEvents=new U,this.attachEvents=new U,this.detachEvents=new U,this.parentContexts=j(dd),this.location=j(pt),this.changeDetector=j(Fe),this.environmentInjector=j(Jn),this.inputBinder=j(ap,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;const o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new jW(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[kt]}),t})();class jW{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===za?this.route:t===dd?this.childContexts:this.parent.get(t,i)}}const ap=new M("");let fA=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=If([r.queryParams,r.params,r.data]).pipe(Vt(([s,a,c],l)=>(c={...s,...a,...c},0===l?re(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const a=function J5(e){const t=Le(e);if(!t)return null;const i=new hl(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(a)for(const{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function ud(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function zW(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return ud(e,n,r);return ud(e,n)})}(e,t,i);return new Or(n,r)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ud(e,a)),s}}const n=function UW(e){return new za(new dt(e.url),new dt(e.params),new dt(e.queryParams),new dt(e.fragment),new dt(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(o=>ud(e,o));return new Or(n,r)}}const xy="ngNavigationCancelingError";function pA(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=ls(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=mA(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function mA(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[xy]=!0,n.cancellationCode=t,i&&(n.url=i),n}function gA(e){return e&&e[xy]}let _A=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["ng-component"]],standalone:!0,features:[tk],decls:1,vars:0,template:function(n,r){1&n&&ie(0,"router-outlet")},dependencies:[wy],encapsulation:2}),t})();function Cy(e){const t=e.children&&e.children.map(Cy),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==Te&&(i.component=_A),i}function ji(e){return e.outlet||Te}function hd(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class XW{constructor(t,i,n,r,o){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),vy(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=Ha(i);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,i,n){const r=t.value,o=i?i.value:null;if(r===o)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,i,s.children)}else this.deactivateChildRoutes(t,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,o=Ha(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(n&&n.outlet){const s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,o=Ha(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){const r=Ha(i);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new NW(o.value.snapshot))}),t.children.length&&this.forwardEvent(new FW(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,o=i?i.value:null;if(vy(r),r===o)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,s.children)}else this.activateChildRoutes(t,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),vy(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=hd(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class bA{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class cp{constructor(t,i){this.component=t,this.route=i}}function ZW(e,t,i){const n=e._root;return fd(n,t?t._root:null,i,[n.value])}function Ua(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function pL(e){return null!==su(e)}(e)?t.get(e):e:n}function fd(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ha(t);return e.children.forEach(s=>{(function eQ(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function tQ(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!cs(e.url,t.url);case"pathParamsOrQueryParamsChange":return!cs(e.url,t.url)||!cr(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yy(e,t)||!cr(e.queryParams,t.queryParams);default:return!yy(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new bA(n)):(o.data=s.data,o._resolvedData=s._resolvedData),fd(e,t,o.component?a?a.children:null:i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new cp(a.outlet.component,s))}else s&&pd(t,a,r),r.canActivateChecks.push(new bA(n)),fd(e,null,o.component?a?a.children:null:i,n,r)})(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>pd(a,i.getContext(s),r)),r}function pd(e,t,i){const n=Ha(e),r=e.value;Object.entries(n).forEach(([o,s])=>{pd(s,r.component?t?t.children.getContext(o):null:t,i)}),i.canDeactivateChecks.push(new cp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function md(e){return"function"==typeof e}function vA(e){return e instanceof Yf||"EmptyError"===e?.name}const lp=Symbol("INITIAL_VALUE");function $a(){return Vt(e=>If(e.map(t=>t.pipe(Xe(1),tn(lp)))).pipe(J(t=>{for(const i of t)if(!0!==i){if(i===lp)return lp;if(!1===i||i instanceof Va)return i}return!0}),Ve(t=>t!==lp),Xe(1)))}function yA(e){return function vm(...e){return xc(e)}(it(t=>{if(ls(t))throw pA(0,t)}),J(t=>!0===t))}class dp{constructor(t){this.segmentGroup=t||null}}class wA{constructor(t){this.urlTree=t}}function qa(e){return Na(new dp(e))}function xA(e){return Na(new wA(e))}class wQ{constructor(t,i){this.urlSerializer=t,this.urlTree=i}noMatchError(t){return new I(4002,!1)}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return re(n);if(r.numberOfChildren>1||!r.children[Te])return Na(new I(4e3,!1));r=r.children[Te]}}applyRedirectCommands(t,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n)}applyRedirectCreateUrlTree(t,i,n,r){const o=this.createSegmentGroup(t,i.root,n,r);return new Va(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){const n={};return Object.entries(t).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(t,i,n,r){const o=this.createSegments(t,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,n,r)}),new tt(o,s)}createSegments(t,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,i,n){const r=n[i.path.substring(1)];if(!r)throw new I(4001,!1);return r}findOrReturn(t,i){let n=0;for(const r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}}const Dy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xQ(e,t,i,n,r){const o=Ey(e,t,i);return o.matched?(n=function qW(e,t){return e.providers&&!e._injector&&(e._injector=G_(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function bQ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?re(r.map(s=>{const a=Ua(s,e);return uo(function aQ(e){return e&&md(e.canMatch)}(a)?a.canMatch(t,i):e.runInContext(()=>a(t,i)))})).pipe($a(),yA()):re(!0)}(n,t,i).pipe(J(s=>!0===s?o:{...Dy}))):re(o)}function Ey(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...Dy}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||eW)(i,e,t);if(!r)return{...Dy};const o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function CA(e,t,i,n){return i.length>0&&function EQ(e,t,i){return i.some(n=>up(e,t,n)&&ji(n)!==Te)}(e,i,n)?{segmentGroup:new tt(t,DQ(n,new tt(i,e.children))),slicedSegments:[]}:0===i.length&&function SQ(e,t,i){return i.some(n=>up(e,t,n))}(e,i,n)?{segmentGroup:new tt(e.segments,CQ(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new tt(e.segments,e.children),slicedSegments:i}}function CQ(e,t,i,n,r){const o={};for(const s of n)if(up(e,i,s)&&!r[ji(s)]){const a=new tt([],{});o[ji(s)]=a}return{...r,...o}}function DQ(e,t){const i={};i[Te]=t;for(const n of e)if(""===n.path&&ji(n)!==Te){const r=new tt([],{});i[ji(n)]=r}return i}function up(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class IQ{constructor(t,i,n,r,o,s,a){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new wQ(this.urlSerializer,this.urlTree)}noMatchError(t){return new I(4002,!1)}recognize(){const t=CA(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Te).pipe(Rn(i=>{if(i instanceof wA)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof dp?this.noMatchError(i):i}),J(i=>{const n=new sp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Te,this.rootComponentType,null,{}),r=new Or(n,i),o=new uA("",r),s=function yW(e,t,i=null,n=null){return J1(Z1(e),t,i,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,Te).pipe(Rn(n=>{throw n instanceof dp?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=dA(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0)}processChildren(t,i,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Et(r).pipe(ka(o=>{const s=n.children[o],a=function YW(e,t){const i=e.filter(n=>ji(n)===t);return i.push(...e.filter(n=>ji(n)!==t)),i}(i,o);return this.processSegmentGroup(t,a,s,o)}),function X9(e,t){return at(function K9(e,t,i,n,r){return(o,s)=>{let a=i,c=t,l=0;o.subscribe(Ze(s,d=>{const u=l++;c=a?e(c,d,u):(a=!0,d),n&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Xf(null),function Z9(e,t){const i=arguments.length>=2;return n=>n.pipe(e?Ve((r,o)=>e(r,o,n)):Ti,cy(1),i?Xf(t):V1(()=>new Yf))}(),Kt(o=>{if(null===o)return qa(n);const s=DA(o);return function AQ(e){e.sort((t,i)=>t.value.outlet===Te?-1:i.value.outlet===Te?1:t.value.outlet.localeCompare(i.value.outlet))}(s),re(s)}))}processSegment(t,i,n,r,o,s){return Et(i).pipe(ka(a=>this.processSegmentAgainstRoute(a._injector??t,i,a,n,r,o,s).pipe(Rn(c=>{if(c instanceof dp)return re(null);throw c}))),as(a=>!!a),Rn(a=>{if(vA(a))return function TQ(e,t,i){return 0===t.length&&!e.children[i]}(n,r,o)?re([]):qa(n);throw a}))}processSegmentAgainstRoute(t,i,n,r,o,s,a){return function kQ(e,t,i,n){return!!(ji(e)===n||n!==Te&&up(t,i,e))&&("**"===e.path||Ey(t,e,i).matched)}(n,r,o,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,r,n,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,o,s):qa(r):qa(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r){const o=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xA(o):this.applyRedirects.lineralizeSegments(n,o).pipe(Kt(s=>{const a=new tt(s,{});return this.processSegment(t,i,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s){const{matched:a,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=Ey(i,r,o);if(!a)return qa(i);const u=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?xA(u):this.applyRedirects.lineralizeSegments(r,u).pipe(Kt(h=>this.processSegment(t,n,i,h.concat(l),s,!1)))}matchSegmentAgainstRoute(t,i,n,r,o,s){let a;if("**"===n.path){const c=r.length>0?H1(r).parameters:{};a=re({snapshot:new sp(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,EA(n),ji(n),n.component??n._loadedComponent??null,n,SA(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else a=xQ(i,n,r,t).pipe(J(({matched:c,consumedSegments:l,remainingSegments:d,parameters:u})=>c?{snapshot:new sp(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,EA(n),ji(n),n.component??n._loadedComponent??null,n,SA(n)),consumedSegments:l,remainingSegments:d}:null));return a.pipe(Vt(c=>null===c?qa(i):this.getChildConfig(t=n._injector??t,n,r).pipe(Vt(({routes:l})=>{const d=n._loadedInjector??t,{snapshot:u,consumedSegments:h,remainingSegments:f}=c,{segmentGroup:p,slicedSegments:g}=CA(i,h,f,l);if(0===g.length&&p.hasChildren())return this.processChildren(d,l,p).pipe(J(_=>null===_?null:[new Or(u,_)]));if(0===l.length&&0===g.length)return re([new Or(u,[])]);const b=ji(n)===o;return this.processSegment(d,l,p,g,b?Te:o,!0).pipe(J(_=>[new Or(u,_)]))}))))}getChildConfig(t,i,n){return i.children?re({routes:i.children,injector:t}):i.loadChildren?void 0!==i._loadedRoutes?re({routes:i._loadedRoutes,injector:i._loadedInjector}):function _Q(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?re(!0):re(r.map(s=>{const a=Ua(s,e);return uo(function iQ(e){return e&&md(e.canLoad)}(a)?a.canLoad(t,i):e.runInContext(()=>a(t,i)))})).pipe($a(),yA())}(t,i,n).pipe(Kt(r=>r?this.configLoader.loadChildren(t,i).pipe(it(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):function yQ(e){return Na(mA(!1,3))}())):re({routes:[],injector:t})}}function RQ(e){const t=e.value.routeConfig;return t&&""===t.path}function DA(e){const t=[],i=new Set;for(const n of e){if(!RQ(n)){t.push(n);continue}const r=t.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):t.push(n)}for(const n of i){const r=DA(n.children);t.push(new Or(n.value,r))}return t.filter(n=>!i.has(n))}function EA(e){return e.data||{}}function SA(e){return e.resolve||{}}function kA(e){return"string"==typeof e.title||null===e.title}function Sy(e){return Vt(t=>{const i=e(t);return i?Et(i).pipe(J(()=>t)):re(t)})}const Ga=new M("ROUTES");let ky=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=j(Qk)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return re(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=uo(n.loadComponent()).pipe(J(TA),it(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Ta(()=>{this.componentLoaders.delete(n)})),o=new ay(r,()=>new Y).pipe(sy());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return re({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(J(c=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,d;return Array.isArray(c)?d=c:(l=c.create(n).injector,d=l.get(Ga,[],Ie.Self|Ie.Optional).flat()),{routes:d.map(Cy),injector:l}}),Ta(()=>{this.childrenLoaders.delete(r)})),a=new ay(s,()=>new Y).pipe(sy());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(n){return uo(n()).pipe(J(TA),Kt(r=>r instanceof JS||Array.isArray(r)?re(r):Et(this.compiler.compileModuleAsync(r))))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function TA(e){return function VQ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let hp=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Y,this.transitionAbortSubject=new Y,this.configLoader=j(ky),this.environmentInjector=j(Jn),this.urlSerializer=j(rd),this.rootContexts=j(dd),this.inputBindingEnabled=null!==j(ap,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>re(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new RW(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new AW(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,o){return this.transitions=new dt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:n.urlHandlingStrategy.extract(r),urlAfterRedirects:n.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:cd,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ve(s=>0!==s.id),J(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),Vt(s=>{this.currentTransition=s;let a=!1,c=!1;return re(s).pipe(it(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Vt(l=>{const d=l.currentBrowserUrl.toString(),u=!n.navigated||l.extractedUrl.toString()!==d||d!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const f="";return this.events.next(new ja(l.id,this.urlSerializer.serialize(l.rawUrl),f,0)),l.resolve(null),Rt}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return re(l).pipe(Vt(f=>{const p=this.transitions?.getValue();return this.events.next(new rp(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?Rt:Promise.resolve(f)}),function OQ(e,t,i,n,r,o){return Kt(s=>function MQ(e,t,i,n,r,o,s="emptyOnly"){return new IQ(e,t,i,n,r,s,o).recognize()}(e,t,i,n,s.extractedUrl,r,o).pipe(J(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),it(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const p=new oA(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:f,extractedUrl:p,source:g,restoredState:b,extras:_}=l,v=new rp(f,this.urlSerializer.serialize(p),g,b);this.events.next(v);const C=lA(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:C,urlAfterRedirects:p,extras:{..._,skipLocationChange:!1,replaceUrl:!1}},re(s)}{const f="";return this.events.next(new ja(l.id,this.urlSerializer.serialize(l.extractedUrl),f,1)),l.resolve(null),Rt}}),it(l=>{const d=new kW(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),J(l=>(this.currentTransition=s={...l,guards:ZW(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function lQ(e,t){return Kt(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return 0===s.length&&0===o.length?re({...i,guardsResult:!0}):function dQ(e,t,i,n){return Et(e).pipe(Kt(r=>function gQ(e,t,i,n,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?re(o.map(a=>{const c=hd(t)??r,l=Ua(a,c);return uo(function sQ(e){return e&&md(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(as())})).pipe($a()):re(!0)}(r.component,r.route,i,t,n)),as(r=>!0!==r,!0))}(s,n,r,e).pipe(Kt(a=>a&&function nQ(e){return"boolean"==typeof e}(a)?function uQ(e,t,i,n){return Et(t).pipe(ka(r=>$l(function fQ(e,t){return null!==e&&t&&t(new OW(e)),re(!0)}(r.route.parent,n),function hQ(e,t){return null!==e&&t&&t(new PW(e)),re(!0)}(r.route,n),function mQ(e,t,i){const n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function JW(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Kf(()=>re(s.guards.map(c=>{const l=hd(s.node)??i,d=Ua(c,l);return uo(function oQ(e){return e&&md(e.canActivateChild)}(d)?d.canActivateChild(n,e):l.runInContext(()=>d(n,e))).pipe(as())})).pipe($a())));return re(o).pipe($a())}(e,r.path,i),function pQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return re(!0);const r=n.map(o=>Kf(()=>{const s=hd(t)??i,a=Ua(o,s);return uo(function rQ(e){return e&&md(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(as())}));return re(r).pipe($a())}(e,r.route,i))),as(r=>!0!==r,!0))}(n,o,e,t):re(a)),J(a=>({...i,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),it(l=>{if(s.guardsResult=l.guardsResult,ls(l.guardsResult))throw pA(0,l.guardsResult);const d=new TW(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),Ve(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),Sy(l=>{if(l.guards.canActivateChecks.length)return re(l).pipe(it(d=>{const u=new MW(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),Vt(d=>{let u=!1;return re(d).pipe(function FQ(e,t){return Kt(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return re(i);let o=0;return Et(r).pipe(ka(s=>function PQ(e,t,i,n){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!kA(r)&&(o[nd]=r.title),function NQ(e,t,i,n){const r=function LQ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return re({});const o={};return Et(r).pipe(Kt(s=>function BQ(e,t,i,n){const r=hd(t)??n,o=Ua(e,r);return uo(o.resolve?o.resolve(t,i):r.runInContext(()=>o(t,i)))}(e[s],t,i,n).pipe(as(),it(a=>{o[s]=a}))),cy(1),Uf(o),Rn(s=>vA(s)?Rt:Na(s)))}(o,e,t,n).pipe(J(s=>(e._resolvedData=s,e.data=dA(e,i).resolve,r&&kA(r)&&(e.data[nd]=r.title),null)))}(s.route,n,e,t)),it(()=>o++),cy(1),Kt(s=>o===r.length?re(i):Rt))})}(n.paramsInheritanceStrategy,this.environmentInjector),it({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",2)}}))}),it(d=>{const u=new IW(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Sy(l=>{const d=u=>{const h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(it(f=>{u.component=f}),J(()=>{})));for(const f of u.children)h.push(...d(f));return h};return If(d(l.targetSnapshot.root)).pipe(Xf(),Xe(1))}),Sy(()=>this.afterPreactivation()),J(l=>{const d=function HW(e,t,i){const n=ud(e,t._root,i?i._root:void 0);return new cA(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:d},s}),it(()=>{this.events.next(new py)}),((e,t,i,n)=>J(r=>(new XW(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Xe(1),it({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ho(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),ce(this.transitionAbortSubject.pipe(it(l=>{throw l}))),Ta(()=>{a||c||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Rn(l=>{if(c=!0,gA(l))this.events.next(new ld(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function $W(e){return gA(e)&&ls(e.url)}(l)?this.events.next(new my(l.url)):s.resolve(!1);else{this.events.next(new op(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(d){s.reject(d)}}return Rt}))}))}cancelNavigationTransition(n,r,o){const s=new ld(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function MA(e){return e!==cd}let IA=(()=>{var e;class t{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Te);return r}getResolvedTitleForRoute(n){return n.data[nd]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(jQ)},providedIn:"root"}),t})(),jQ=(()=>{var e;class t extends IA{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(bM))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),HQ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(UQ)},providedIn:"root"}),t})();class zQ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let UQ=(()=>{var e;class t extends zQ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const fp=new M("",{providedIn:"root",factory:()=>({})});let $Q=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(){return j(qQ)},providedIn:"root"}),t})(),qQ=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var gd=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(gd||{});function AA(e,t){e.events.pipe(Ve(i=>i instanceof ho||i instanceof ld||i instanceof op||i instanceof ja),J(i=>i instanceof ho||i instanceof ja?gd.COMPLETE:i instanceof ld&&(0===i.code||1===i.code)?gd.REDIRECTING:gd.FAILED),Ve(i=>i!==gd.REDIRECTING),Xe(1)).subscribe(()=>{t()})}function GQ(e){throw e}function WQ(e,t,i){return t.parse("/")}const QQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},YQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xi=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=j(Wk),this.isNgZoneEnabled=!1,this._events=new Y,this.options=j(fp,{optional:!0})||{},this.pendingTasks=j(Mh),this.errorHandler=this.options.errorHandler||GQ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||WQ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=j($Q),this.routeReuseStrategy=j(HQ),this.titleStrategy=j(IA),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=j(Ga,{optional:!0})?.flat()??[],this.navigationTransitions=j(hp),this.urlSerializer=j(rd),this.location=j(Nh),this.componentInputBindingEnabled=!!j(ap,{optional:!0}),this.eventsSubscription=new Ae,this.isNgZoneEnabled=j(G)instanceof G&&G.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Va,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lA(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(RA(r)&&this._events.next(r));if(r instanceof rp)MA(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(r instanceof ja)this.rawUrlTree=o.rawUrl;else if(r instanceof oA){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(r instanceof py)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(r instanceof ld)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(o);else if(r instanceof my){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MA(o.source)};this.scheduleNavigation(s,cd,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}r instanceof op&&this.restoreHistory(o,!0),r instanceof ho&&(this.navigated=!0),RA(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),cd,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const c=this.parseUrl(n);this.scheduleNavigation(c,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Cy),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:a;let h,u=null;switch(c){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{h=Z1(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return J1(h,n,u,d??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=ls(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,cd,null,r)}navigate(n,r={skipLocationChange:!1}){return function KQ(e){for(let t=0;t{const s=n[o];return null!=s&&(r[o]=s),r},{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((h,f)=>{c=h,l=f});const u=this.pendingTasks.add();return AA(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const a={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function RA(e){return!(e instanceof py||e instanceof my)}class OA{}let JQ=(()=>{var e;class t{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ve(n=>n instanceof ho),ka(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const s of r){s.providers&&!s._injector&&(s._injector=G_(s.providers,n,`Route: ${s.path}`));const a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Et(o).pipe(Ms())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):re(null);const s=o.pipe(Kt(a=>null===a?re(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));return r.loadComponent&&!r._loadedComponent?Et([s,this.loader.loadComponent(r)]).pipe(Ms()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(D(xi),D(Qk),D(Jn),D(OA),D(ky))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const My=new M("");let FA=(()=>{var e;class t{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof rp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ho?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ja&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof sA&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new sA(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){jo()},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();function Fr(e,t){return{\u0275kind:e,\u0275providers:t}}function NA(){const e=j(jt);return t=>{const i=e.get(Xr);if(t!==i.components[0])return;const n=e.get(xi),r=e.get(LA);1===e.get(Iy)&&n.initialNavigation(),e.get(BA,null,Ie.Optional)?.setUpPreloading(),e.get(My,null,Ie.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const LA=new M("",{factory:()=>new Y}),Iy=new M("",{providedIn:"root",factory:()=>1}),BA=new M("");function iY(e){return Fr(0,[{provide:BA,useExisting:JQ},{provide:OA,useExisting:e}])}const VA=new M("ROUTER_FORROOT_GUARD"),oY=[Nh,{provide:rd,useClass:ly},xi,dd,{provide:za,useFactory:function PA(e){return e.routerState.root},deps:[xi]},ky,[]];function sY(){return new tT("Router",xi)}let jA=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[oY,[],{provide:Ga,multi:!0,useValue:n},{provide:VA,useFactory:dY,deps:[[xi,new Fo,new Qc]]},{provide:fp,useValue:r||{}},r?.useHash?{provide:Wo,useClass:r8}:{provide:Wo,useClass:AT},{provide:My,useFactory:()=>{const e=j(vU),t=j(G),i=j(fp),n=j(hp),r=j(rd);return i.scrollOffset&&e.setOffset(i.scrollOffset),new FA(r,n,e,t,i)}},r?.preloadingStrategy?iY(r.preloadingStrategy).\u0275providers:[],{provide:tT,multi:!0,useFactory:sY},r?.initialNavigation?uY(r):[],r?.bindToComponentInputs?Fr(8,[fA,{provide:ap,useExisting:fA}]).\u0275providers:[],[{provide:HA,useFactory:NA},{provide:fb,multi:!0,useExisting:HA}]]}}static forChild(n){return{ngModule:t,providers:[{provide:Ga,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(D(VA,8))},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();function dY(e){return"guarded"}function uY(e){return["disabled"===e.initialNavigation?Fr(3,[{provide:ob,multi:!0,useFactory:()=>{const t=j(xi);return()=>{t.setUpLocationChangeListener()}}},{provide:Iy,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Fr(2,[{provide:Iy,useValue:0},{provide:ob,multi:!0,deps:[jt],useFactory:t=>{const i=t.get(n8,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(xi),o=t.get(LA);AA(r,()=>{n(!0)}),t.get(hp).afterPreactivation=()=>(n(!0),o.closed?re(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const HA=new M(""),fY=[];let pY=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[jA.forRoot(fY),jA]}),t})(),zA=(()=>{var e;class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(yr),m(W))},e.\u0275dir=T({type:e}),t})(),ds=(()=>{var e;class t extends zA{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,features:[P]}),t})();const Gn=new M("NgValueAccessor"),gY={provide:Gn,useExisting:He(()=>pp),multi:!0},bY=new M("CompositionEventMode");let pp=(()=>{var e;class t extends zA{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _Y(){const e=Zr()?Zr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(yr),m(W),m(bY,8))},e.\u0275dir=T({type:e,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(n,r){1&n&&$("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Z([gY]),P]}),t})();function fo(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function $A(e){return null!=e&&"number"==typeof e.length}const pn=new M("NgValidators"),po=new M("NgAsyncValidators"),vY=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ay{static min(t){return function qA(e){return t=>{if(fo(t.value)||fo(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i{if(fo(t.value)||fo(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function WA(e){return fo(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function QA(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function YA(e){return fo(e.value)||vY.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function KA(e){return t=>fo(t.value)||!$A(t.value)?null:t.value.length$A(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function ZA(e){if(!e)return mp;let t,i;return"string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),t=new RegExp(i)):(i=e.toString(),t=e),n=>{if(fo(n.value))return null;const r=n.value;return t.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return rR(t)}static composeAsync(t){return oR(t)}}function mp(e){return null}function JA(e){return null!=e}function eR(e){return _l(e)?Et(e):e}function tR(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function nR(e,t){return t.map(i=>i(e))}function iR(e){return e.map(t=>function yY(e){return!e.validate}(t)?t:i=>t.validate(i))}function rR(e){if(!e)return null;const t=e.filter(JA);return 0==t.length?null:function(i){return tR(nR(i,t))}}function Ry(e){return null!=e?rR(iR(e)):null}function oR(e){if(!e)return null;const t=e.filter(JA);return 0==t.length?null:function(i){return c1(nR(i,t).map(eR)).pipe(J(tR))}}function Oy(e){return null!=e?oR(iR(e)):null}function sR(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function aR(e){return e._rawValidators}function cR(e){return e._rawAsyncValidators}function Fy(e){return e?Array.isArray(e)?e:[e]:[]}function gp(e,t){return Array.isArray(e)?e.includes(t):e===t}function lR(e,t){const i=Fy(t);return Fy(e).forEach(r=>{gp(i,r)||i.push(r)}),i}function dR(e,t){return Fy(t).filter(i=>!gp(e,i))}class uR{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(t){this._rawValidators=t||[],this._composedValidatorFn=Ry(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Oy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,i){return!!this.control&&this.control.hasError(t,i)}getError(t,i){return this.control?this.control.getError(t,i):null}}class On extends uR{get formDirective(){return null}get path(){return null}}class Hi extends uR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class hR{constructor(t){this._cd=t}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 fR=(()=>{var e;class t extends hR{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Hi,2))},e.\u0275dir=T({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[P]}),t})();const _d="VALID",bp="INVALID",Wa="PENDING",bd="DISABLED";function Ly(e){return(vp(e)?e.validators:e)||null}function By(e,t){return(vp(t)?t.asyncValidators:e)||null}function vp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class _R{constructor(t,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===_d}get invalid(){return this.status===bp}get pending(){return this.status==Wa}get disabled(){return this.status===bd}get enabled(){return this.status!==bd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(lR(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(lR(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(dR(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(dR(t,this._rawAsyncValidators))}hasValidator(t){return gp(this._rawValidators,t)}hasAsyncValidator(t){return gp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Wa,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=bd,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=_d,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_d||this.status===Wa)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bd:_d}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Wa,this._hasOwnPendingAsyncValidator=!0;const i=eR(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(!1!==i.emitEvent)}get(t){let i=t;return null==i||(Array.isArray(i)||(i=i.split(".")),0===i.length)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(t,i){const n=i?this.get(i):this;return n&&n.errors?n.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?bd:this.errors?bp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wa)?Wa:this._anyControlsHaveStatus(bp)?bp:_d}_anyControlsHaveStatus(t){return this._anyControls(i=>i.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){vp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function EY(e){return Array.isArray(e)?Ry(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function SY(e){return Array.isArray(e)?Oy(e):e||null}(this._rawAsyncValidators)}}class Vy extends _R{constructor(t,i,n){super(Ly(i),By(n,i)),this.controls=t,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,i){return this.controls[t]?this.controls[t]:(this.controls[t]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(t,i,n={}){this.registerControl(t,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(t,i,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],i&&this.registerControl(t,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,i={}){(function gR(e,t,i){e._forEachChild((n,r)=>{if(void 0===i[r])throw new I(1002,"")})})(this,0,t),Object.keys(t).forEach(n=>{(function mR(e,t,i){const n=e.controls;if(!(t?Object.keys(n):n).length)throw new I(1e3,"");if(!n[i])throw new I(1001,"")})(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(t,i={}){null!=t&&(Object.keys(t).forEach(n=>{const r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(t={},i={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(t,i,n)=>(t[n]=i.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(i,n)=>!!n._syncPendingControls()||i);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(i=>{const n=this.controls[i];n&&t(n,i)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[i,n]of Object.entries(this.controls))if(this.contains(i)&&t(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(t,i){let n=t;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Qa=new M("CallSetDisabledState",{providedIn:"root",factory:()=>yp}),yp="always";function vd(e,t,i=yp){jy(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function MY(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&bR(e,t)})}(e,t),function AY(e,t){const i=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function IY(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&bR(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function TY(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function xp(e,t,i=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Dp(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Cp(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function jy(e,t){const i=aR(e);null!==t.validator?e.setValidators(sR(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=cR(e);null!==t.asyncValidator?e.setAsyncValidators(sR(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();Cp(t._rawValidators,r),Cp(t._rawAsyncValidators,r)}function Dp(e,t){let i=!1;if(null!==e){if(null!==t.validator){const r=aR(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){const r=cR(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(i=!0,e.setAsyncValidators(o))}}}const n=()=>{};return Cp(t._rawValidators,n),Cp(t._rawAsyncValidators,n),i}function bR(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function vR(e,t){jy(e,t)}function yR(e,t){e._syncPendingControls(),t.forEach(i=>{const n=i.control;"submit"===n.updateOn&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}const NY={provide:On,useExisting:He(()=>Ya)},yd=(()=>Promise.resolve())();let Ya=(()=>{var e;class t extends On{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new U,this.form=new Vy({},Ry(n),Oy(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){yd.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),vd(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){yd.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){yd.then(()=>{const r=this._findContainer(n.path),o=new Vy({});vR(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){yd.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){yd.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,yR(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pn,10),m(po,10),m(Qa,8))},e.\u0275dir=T({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&$("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Z([NY]),P]}),t})();function wR(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function xR(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Ka=class extends _R{constructor(t=null,i,n){super(Ly(i),By(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vp(i)&&(i.nonNullable||i.initialValueIsDefault)&&(this.defaultValue=xR(t)?t.value:t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==i.emitViewToModelChange)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){wR(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wR(this._onDisabledChange,t)}_forEachChild(t){}_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(t){xR(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let TR=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const $y=new M("NgModelWithFormControlWarning"),qY={provide:Hi,useExisting:He(()=>qy)};let qy=(()=>{var e;class t extends Hi{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new U,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function Uy(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(o=>{o.constructor===pp?i=o:function FY(e){return Object.getPrototypeOf(e.constructor)===ds}(o)?n=o:r=o}),r||n||i||null}(0,o)}ngOnChanges(n){if(this._isControlChanged(n)){const r=n.form.previousValue;r&&xp(r,this,!1),vd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}(function zy(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)})(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}}return(e=t)._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(pn,10),m(po,10),m(Gn,10),m($y,8),m(Qa,8))},e.\u0275dir=T({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Z([qY]),P,kt]}),t})();const GY={provide:On,useExisting:He(()=>Xa)};let Xa=(()=>{var e;class t extends On{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new U,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return vd(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){xp(n.control||null,n,!1),function PY(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,yR(this.form,this.directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(xp(r||null,n),(e=>e instanceof Ka)(o)&&(vd(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);vR(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function RY(e,t){return Dp(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jy(this.form,this),this._oldForm&&Dp(this._oldForm,this)}_checkFormPresent(){}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pn,10),m(po,10),m(Qa,8))},e.\u0275dir=T({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&$("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Z([GY]),P,kt]}),t})(),dK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[TR]}),t})(),hK=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:$y,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Qa,useValue:n.callSetDisabledState??yp}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[dK]}),t})();function Zy(e){return e&&"function"==typeof e.connect&&!(e instanceof ay)}class UR{applyChanges(t,i,n,r,o){t.forEachOperation((s,a,c)=>{let l,d;if(null==s.previousIndex){const u=n(s,a,c);l=i.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==c?(i.remove(a),d=3):(l=i.get(a),i.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:s})})}detach(){}}class qR{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,i,n=!0,r){this._multiple=t,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,i&&i.length&&(t?i.forEach(o=>this._markSelected(o)):this._markSelected(i[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(n=>this._markSelected(n));const i=this._hasQueuedChanges();return this._emitChangeEvent(),i}deselect(...t){this._verifyValueAssignment(t),t.forEach(n=>this._unmarkSelected(n));const i=this._hasQueuedChanges();return this._emitChangeEvent(),i}setSelection(...t){this._verifyValueAssignment(t);const i=this.selected,n=new Set(t);t.forEach(o=>this._markSelected(o)),i.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const i=this._hasQueuedChanges();return t&&this._emitChangeEvent(),i}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let i of this._selection)if(this.compareWith(t,i))return i;return t}return t}}let Jy=(()=>{var e;class t{constructor(){this._listeners=[]}notify(n,r){for(let o of this._listeners)o(n,r)}listen(n){return this._listeners.push(n),()=>{this._listeners=this._listeners.filter(r=>n!==r)}}ngOnDestroy(){this._listeners=[]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const wd=new M("_ViewRepeater"),{isArray:fK}=Array;class hs{constructor(t,i,n,r){this.name=t,this.icon=i,this.aggregations=[],this.active=!1,this.selected=new Set,this.relevantContentTypes=null===n?null:new Set(n),r.subscribe(o=>{this.aggregations=o})}isRelevant(t){return null===this.relevantContentTypes||!!t&&"null"!==t&&this.relevantContentTypes.has(t)}isActive(){return this.active}isEmpty(){return 0===this.selected.size}filterValues(){return this.selected.size?[...this.selected]:void 0}isSelected(t){return void 0!==t&&this.selected.has(t)}activate(){this.active=!0}deactivate(){this.active=!1}select(t){void 0!==t&&this.selected.add(t)}deselect(t){void 0!==t&&this.selected.delete(t)}toggle(t){void 0!==t&&(this.selected.has(t)?this.deselect(t):this.select(t))}reset(){this.selected.clear()}deactivateAndReset(){this.deactivate(),this.reset()}}const GR={items:[],totalCount:0,aggregations:{}};class gK{constructor(t,i){this.graphQLService=t,this.errorsService=i,this.queryStringSubject=new dt(""),this.contentTypeSubject=new dt(void 0),this.pageIndexSubject=new dt(0),this.pageIndex$=this.pageIndexSubject.asObservable(),this.pageSizeSubject=new dt(10),this.pageSize$=this.pageSizeSubject.asObservable(),this.pageLengthSubject=new dt(0),this.pageLength$=this.pageLengthSubject.asObservable(),this.itemsResultSubject=new dt(GR),this.aggsResultSubject=new dt(GR),this.loadingSubject=new dt(!1),this.lastRequestTimeSubject=new dt(0),this.items$=this.itemsResultSubject.pipe(J(n=>n.items)),this.aggregations$=this.aggsResultSubject.pipe(J(n=>n.aggregations)),this.loading$=this.loadingSubject.asObservable(),this.torrentSourceFacet=new hs("Torrent Source","mediation",null,this.aggregations$.pipe(J(n=>n.torrentSource??[]))),this.torrentTagFacet=new hs("Torrent Tag","sell",null,this.aggregations$.pipe(J(n=>n.torrentTag??[]))),this.torrentFileTypeFacet=new hs("File Type","file_present",null,this.aggregations$.pipe(J(n=>n.torrentFileType??[]))),this.languageFacet=new hs("Language","translate",null,this.aggregations$.pipe(J(n=>n.language??[]))),this.genreFacet=new hs("Genre","theater_comedy",["movie","tv_show"],this.aggregations$.pipe(J(n=>n.genre??[]))),this.videoResolutionFacet=new hs("Video Resolution","screenshot_monitor",["movie","tv_show","xxx"],this.aggregations$.pipe(J(n=>n.videoResolution??[]))),this.videoSourceFacet=new hs("Video Source","album",["movie","tv_show","xxx"],this.aggregations$.pipe(J(n=>n.videoSource??[]))),this.facets=[this.torrentSourceFacet,this.torrentTagFacet,this.torrentFileTypeFacet,this.languageFacet,this.videoResolutionFacet,this.videoSourceFacet,this.genreFacet],this.overallTotalCountSubject=new dt(0),this.overallTotalCount$=this.overallTotalCountSubject.asObservable(),this.maxTotalCountSubject=new dt(0),this.maxTotalCount$=this.maxTotalCountSubject.asObservable(),this.contentTypes=WR,this.contentTypeSubject.subscribe(n=>{this.facets.forEach(r=>r.isRelevant(n)||r.deactivateAndReset()),this.pageIndexSubject.next(0),this.loadResult()})}connect({}){return this.items$}disconnect(){this.itemsResultSubject.complete(),this.loadingSubject.complete()}loadResult(t=!0){const i=Date.now();this.loadingSubject.next(!0);const n=this.pageSizeSubject.getValue(),r=this.queryStringSubject.getValue()||void 0,o=this.pageIndexSubject.getValue()*n,s=this.contentTypeSubject.getValue(),a=this.graphQLService.torrentContentSearch({query:{queryString:r,limit:n,offset:o,hasNextPage:!0,cached:t},facets:this.facetsInput(!1)}).pipe(Rn(l=>(this.errorsService.addError(`Error loading item results: ${l.message}`),Rt))),c=this.graphQLService.torrentContentSearch({query:{limit:0,cached:!0},facets:this.facetsInput(!0)}).pipe(Rn(l=>(this.errorsService.addError(`Error loading aggregation results: ${l.message}`),Rt)));a.subscribe(l=>{const d=this.lastRequestTimeSubject.getValue();i>=d&&this.itemsResultSubject.next(l)}),c.subscribe(l=>{const d=this.lastRequestTimeSubject.getValue();i>=d&&this.aggsResultSubject.next(l)}),function mK(...e){const t=Sm(e),i=function pK(e){return 1===e.length&&fK(e[0])?e[0]:e}(e);return i.length?new Me(n=>{let r=i.map(()=>[]),o=i.map(()=>!1);n.add(()=>{r=o=null});for(let s=0;!n.closed&&s{if(r[s].push(a),r.every(c=>c.length)){const c=r.map(l=>l.shift());n.next(t?t(...c):c),r.some((l,d)=>!l.length&&o[d])&&n.complete()}},()=>{o[s]=!0,!r[s].length&&n.complete()}));return()=>{r=o=null}}):Rt}(a,c).subscribe(([l,d])=>{this.loadingSubject.next(!1),this.lastRequestTimeSubject.next(i);const u=d.aggregations.contentType?.map(f=>f.count).reduce((f,p)=>f+p,0)??0;let h;h=l.hasNextPage?void 0===s?d.aggregations.contentType?.map(f=>f.count).reduce((f,p)=>f+p,0)??0:d.aggregations.contentType?.find(f=>(f.value??"null")===(s??void 0))?.count??u:o+l.items.length,this.pageLengthSubject.next(l.items.length),this.maxTotalCountSubject.next(h),this.overallTotalCountSubject.next(u)})}facetsInput(t){const i=this.contentTypeSubject.getValue();return{contentType:{aggregate:t,filter:"null"===i?[null]:i?[i]:void 0},torrentSource:fs(this.torrentSourceFacet,t),torrentTag:fs(this.torrentTagFacet,t),torrentFileType:fs(this.torrentFileTypeFacet,t),language:fs(this.languageFacet,t),genre:fs(this.genreFacet,t),videoResolution:fs(this.videoResolutionFacet,t),videoSource:fs(this.videoSourceFacet,t)}}get isDeepFiltered(){return!!this.queryStringSubject.getValue()||this.facets.some(t=>t.isActive()&&!t.isEmpty())}selectContentType(t){this.contentTypeSubject.next(t)}setQueryString(t){this.queryStringSubject.next(t)}get hasQueryString(){return!!this.queryStringSubject.getValue()}firstPage(){this.pageIndexSubject.next(0)}handlePageEvent(t){this.pageIndexSubject.next(t.pageIndex),this.pageSizeSubject.next(t.pageSize),this.loadResult()}contentTypeCount(t){return this.aggregations$.pipe(J(i=>i.contentType?.find(n=>(n.value??"null")===t)?.count??0))}contentTypeInfo(t){return WR[t]}}const WR={movie:{singular:"Movie",plural:"Movies",icon:"movie"},tv_show:{singular:"TV Show",plural:"TV Shows",icon:"live_tv"},music:{singular:"Music",plural:"Music",icon:"music_note"},book:{singular:"Book",plural:"Books",icon:"auto_stories"},software:{singular:"Software",plural:"Software",icon:"desktop_windows"},game:{singular:"Game",plural:"Games",icon:"sports_esports"},xxx:{singular:"XXX",plural:"XXX",icon:"18_up_rating_outline"},null:{singular:"Unknown",plural:"Unknown",icon:"question_mark"}};function fs(e,t){return e.isActive()?{aggregate:t,filter:t?void 0:e.filterValues()}:void 0}function xd(e){return(xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function wt(e,t,i){return(t=function bK(e){var t=function _K(e,t){if("object"!==xd(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const wK=new class yK extends Sf{}(class vK extends Ef{constructor(t,i){super(t,i),this.scheduler=t,this.work=i}schedule(t,i=0){return i>0?super.schedule(t,i):(this.delay=i,this.state=t,this.scheduler.flush(this),this)}execute(t,i){return i>0||this.closed?super.execute(t,i):this._execute(t,i)}requestAsyncId(t,i,n=0){return null!=n&&n>0||null==n&&this.delay>0?super.requestAsyncId(t,i,n):(t.flush(this),0)}});var rt=function(e){return e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e}(rt||{});function Cd(e){return!!e&&e<7}var e0="Invariant Violation",QR=Object.setPrototypeOf,xK=void 0===QR?function(e,t){return e.__proto__=t,e}:QR,YR=function(e){function t(i){void 0===i&&(i=e0);var n=e.call(this,"number"==typeof i?e0+": "+i+" (see https://github.com/apollographql/invariant-packages)":i)||this;return n.framesToPop=1,n.name=e0,xK(n,t.prototype),n}return Ln(t,e),t}(Error);function ps(e,t){if(!e)throw new YR(t)}var e,Ep=["debug","log","warn","error","silent"],t0=Ep.indexOf("log");function Sp(e){return function(){if(Ep.indexOf(e)>=t0)return(console[e]||console.log).apply(console,arguments)}}(e=ps||(ps={})).debug=Sp("debug"),e.log=Sp("log"),e.warn=Sp("warn"),e.error=Sp("error");var n0="3.8.3";function zi(e){try{return e()}catch{}}const KR=zi(function(){return globalThis})||zi(function(){return window})||zi(function(){return self})||zi(function(){return global})||zi(function(){return zi.constructor("return this")()});var XR=new Map;function r0(e){var t=XR.get(e)||1;return XR.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function ZR(e,t){void 0===t&&(t=0);var i=r0("stringifyForDisplay");return JSON.stringify(e,function(n,r){return void 0===r?i:r},t).split(JSON.stringify(i)).join("")}function kp(e){return function(t){for(var i=[],n=1;ne.length)&&(t=e.length);for(var i=0,n=new Array(t);i1,a=!1,l=arguments[1];return new o(function(d){return r.subscribe({next:function(u){var h=!a;if(a=!0,!h||s)try{l=n(l,u)}catch(f){return d.error(f)}else l=u},error:function(u){d.error(u)},complete:function(){if(!a&&!s)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(l),d.complete()}})})},t.concat=function(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s=0&&a.splice(h,1),l()}});a.push(u)},error:function(d){s.error(d)},complete:function(){l()}});function l(){c.closed&&0===a.length&&s.complete()}return function(){a.forEach(function(d){return d.unsubscribe()}),c.unsubscribe()}})},t[d0]=function(){return this},e.from=function(n){var r="function"==typeof this?this:e;if(null==n)throw new TypeError(n+" is not an object");var o=Tp(n,d0);if(o){var s=o.call(n);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function SK(e){return e instanceof vt}(s)&&s.constructor===r?s:new r(function(a){return s.subscribe(a)})}if(c0("iterator")&&(o=Tp(n,EK)))return new r(function(a){Mp(function(){if(!a.closed){for(var l,c=function CK(e,t){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function DK(e,t){if(e){if("string"==typeof e)return eO(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return eO(e,t)}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.call(n));!(l=c()).done;)if(a.next(l.value),a.closed)return;a.complete()}})});if(Array.isArray(n))return new r(function(a){Mp(function(){if(!a.closed){for(var c=0;c"u"&&(ye(1===n.length,69,n.length),i=n[0].name.value),k(k({},e),{definitions:ai([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],e.definitions,!0)})}function Ip(e){void 0===e&&(e=[]);var t={};return e.forEach(function(i){t[i.name.value]=i}),t}function Ap(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var i=e.name.value;if("function"==typeof t)return t(i);var n=t&&t[i];return ye(n,70,i),n||null;default:return null}}function Ja(e){return{__ref:String(e)}}function ot(e){return!(!e||"object"!=typeof e||"string"!=typeof e.__ref)}function ec(e,t,i,n){if(function PK(e){return"IntValue"===e.kind}(i)||function NK(e){return"FloatValue"===e.kind}(i))e[t.value]=Number(i.value);else if(function FK(e){return"BooleanValue"===e.kind}(i)||function OK(e){return"StringValue"===e.kind}(i))e[t.value]=i.value;else if(function BK(e){return"ObjectValue"===e.kind}(i)){var r={};i.fields.map(function(s){return ec(r,s.name,s.value,n)}),e[t.value]=r}else if(function LK(e){return"Variable"===e.kind}(i))e[t.value]=(n||{})[i.name.value];else if(function VK(e){return"ListValue"===e.kind}(i))e[t.value]=i.values.map(function(s){var a={};return ec(a,t,s,n),a[t.value]});else if(function jK(e){return"EnumValue"===e.kind}(i))e[t.value]=i.value;else{if(!function HK(e){return"NullValue"===e.kind}(i))throw Fn(79,t.value,i.kind);e[t.value]=null}}a0()&&Object.defineProperty(vt,Symbol("extensions"),{value:{symbol:d0,hostReportError:Za},configurable:!0});var UK=["connection","include","skip","client","rest","export","nonreactive"],f0=Object.assign(function(e,t,i){if(t&&i&&i.connection&&i.connection.key){if(i.connection.filter&&i.connection.filter.length>0){var n=i.connection.filter?i.connection.filter:[];n.sort();var r={};return n.forEach(function(a){r[a]=t[a]}),"".concat(i.connection.key,"(").concat(Ed(r),")")}return i.connection.key}var o=e;if(t){var s=Ed(t);o+="(".concat(s,")")}return i&&Object.keys(i).forEach(function(a){-1===UK.indexOf(a)&&(i[a]&&Object.keys(i[a]).length?o+="@".concat(a,"(").concat(Ed(i[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=Ed;return Ed=e,t}}),Ed=function(t){return JSON.stringify(t,$K)};function $K(e,t){return xt(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(i,n){return i[n]=t[n],i},{})),t}function Rp(e,t){if(e.arguments&&e.arguments.length){var i={};return e.arguments.forEach(function(n){return ec(i,n.name,n.value,t)}),i}return null}function mo(e){return e.alias?e.alias.value:e.name.value}function p0(e,t,i){for(var n,r=0,o=t.selections;raO)return"[Array]";const i=Math.min(YK,e.length),n=e.length-i,r=[];for(let o=0;o1&&r.push(`... ${n} more items`),"["+r.join(", ")+"]"}(e,i);return function ZK(e,t){const i=Object.entries(e);return 0===i.length?"{}":t.length>aO?"["+function eX(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const i=e.constructor.name;if("string"==typeof i&&""!==i)return i}return t}(e)+"]":"{ "+i.map(([r,o])=>r+": "+Np(o,t)).join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}class tX{constructor(t,i,n){this.start=t.start,this.end=i.end,this.startToken=t,this.endToken=i,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class cO{constructor(t,i,n,r,o,s){this.kind=t,this.start=i,this.end=n,this.line=r,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const lO={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},nX=new Set(Object.keys(lO));function dO(e){const t=e?.kind;return"string"==typeof t&&nX.has(t)}var Id=function(e){return e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription",e}(Id||{}),te=function(e){return e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e}(te||{});const ms=Object.freeze({});function Pr(e,t,i=lO){const n=new Map;for(const _ of Object.values(te))n.set(_,v0(t,_));let r,d,u,o=Array.isArray(e),s=[e],a=-1,c=[],l=e;const h=[],f=[];do{a++;const _=a===s.length,v=_&&0!==c.length;if(_){if(d=0===f.length?void 0:h[h.length-1],l=u,u=f.pop(),v)if(o){l=l.slice();let S=0;for(const[N,L]of c){const q=N-S;null===L?(l.splice(q,1),S++):l[q]=L}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[S,N]of c)l[S]=N}a=r.index,s=r.keys,c=r.edits,o=r.inArray,r=r.prev}else if(u){if(d=o?a:s[a],l=u[d],null==l)continue;h.push(d)}let C;if(!Array.isArray(l)){var p,g;dO(l)||Pp(!1,`Invalid AST Node: ${b0(l)}.`);const S=_?null===(p=n.get(l.kind))||void 0===p?void 0:p.leave:null===(g=n.get(l.kind))||void 0===g?void 0:g.enter;if(C=S?.call(t,l,d,u,h,f),C===ms)break;if(!1===C){if(!_){h.pop();continue}}else if(void 0!==C&&(c.push([d,C]),!_)){if(!dO(C)){h.pop();continue}l=C}}var b;void 0===C&&v&&c.push([d,l]),_?h.pop():(r={inArray:o,index:a,keys:s,edits:c,prev:r},o=Array.isArray(l),s=o?l:null!==(b=i[l.kind])&&void 0!==b?b:[],a=-1,c=[],u&&f.push(u),u=l)}while(void 0!==r);return 0!==c.length?c[c.length-1][1]:e}function v0(e,t){const i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ad(e,t){var i=e.directives;return!i||!i.length||function oX(e){var t=[];return e&&e.length&&e.forEach(function(i){if(function rX(e){var t=e.name.value;return"skip"===t||"include"===t}(i)){var n=i.arguments,r=i.name.value;ye(n&&1===n.length,65,r);var o=n[0];ye(o.name&&"if"===o.name.value,66,r);var s=o.value;ye(s&&("Variable"===s.kind||"BooleanValue"===s.kind),67,r),t.push({directive:i,ifArgument:o})}}),t}(i).every(function(n){var r=n.directive,o=n.ifArgument,s=!1;return"Variable"===o.value.kind?ye(void 0!==(s=t&&t[o.value.name.value]),64,r.name.value):s=o.value.value,"skip"===r.name.value?!s:s})}function gs(e,t,i){var n=new Set(e),r=n.size;return Pr(t,{Directive:function(o){if(n.delete(o.name.value)&&(!i||!n.size))return ms}}),i?!n.size:n.size=0});var w0=function(e,t,i){var n=new Error(i);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},x0=Symbol(),nc=function(e){function t(i){var n=i.graphQLErrors,r=i.protocolErrors,o=i.clientErrors,s=i.networkError,a=i.errorMessage,c=i.extraInfo,l=e.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=r||[],l.clientErrors=o||[],l.networkError=s||null,l.message=a||function(e){var t=ai(ai(ai([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(i){return xt(i)&&i.message||"Error message not found."}).join("\n")}(l),l.extraInfo=c,l.__proto__=t.prototype,l}return Ln(t,e),t}(Error),Mt=Array.isArray;function dr(e){return Array.isArray(e)&&e.length>0}var xX=Object.prototype.hasOwnProperty;function pO(){for(var e=[],t=0;t1)for(var n=new _o,r=1;r=0;--a){var c=s[a],d=isNaN(+c)?{}:[];d[c]=o,o=d}i=n.merge(i,o)}),i}var gO=Object.prototype.hasOwnProperty;function TX(e){var t={};return e.split("\n").forEach(function(i){var n=i.indexOf(":");if(n>-1){var r=i.slice(0,n).trim().toLowerCase(),o=i.slice(n+1).trim();t[r]=o}}),t}function _O(e,t){e.status>=300&&w0(e,function(){try{return JSON.parse(t)}catch{return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function D0(e){return 9===e||32===e}function Rd(e){return e>=48&&e<=57}function bO(e){return e>=97&&e<=122||e>=65&&e<=90}function vO(e){return bO(e)||95===e}function RX(e){return bO(e)||Rd(e)||95===e}function OX(e){var t;let i=Number.MAX_SAFE_INTEGER,n=null,r=-1;for(let s=0;s0===a?s:s.slice(i)).slice(null!==(t=n)&&void 0!==t?t:0,r+1)}function FX(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ne(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Pe("(",ne(e.variableDefinitions,", "),")"),i=ne([e.operation,ne([e.name,t]),ne(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:n})=>e+": "+t+Pe(" = ",i)+Pe(" ",ne(n," "))},SelectionSet:{leave:({selections:e})=>Ui(e)},Field:{leave({alias:e,name:t,arguments:i,directives:n,selectionSet:r}){const o=Pe("",e,": ")+t;let s=o+Pe("(",ne(i,", "),")");return s.length>80&&(s=o+Pe("(\n",Bp(ne(i,"\n")),"\n)")),ne([s,ne(n," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pe(" ",ne(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>ne(["...",Pe("on ",e),ne(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:n,selectionSet:r})=>`fragment ${e}${Pe("(",ne(i,", "),")")} on ${t} ${Pe("",ne(n," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function PX(e,t){const i=e.replace(/"""/g,'\\"""'),n=i.split(/\r\n|[\n\r]/g),r=1===n.length,o=n.length>1&&n.slice(1).every(f=>0===f.length||D0(f.charCodeAt(0))),s=i.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=a||c,d=!(null!=t&&t.minimize)&&(!r||e.length>70||l||o||s);let u="";const h=r&&D0(e.charCodeAt(0));return(d&&!h||o)&&(u+="\n"),u+=i,(d||l)&&(u+="\n"),'"""'+u+'"""'}(e):function NX(e){return`"${e.replace(LX,BX)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ne(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ne(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pe("(",ne(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>Pe("",e,"\n")+ne(["schema",ne(t," "),Ui(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>Pe("",e,"\n")+ne(["scalar",t,ne(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>Pe("",e,"\n")+ne(["type",t,Pe("implements ",ne(i," & ")),ne(n," "),Ui(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:n,directives:r})=>Pe("",e,"\n")+t+(wO(i)?Pe("(\n",Bp(ne(i,"\n")),"\n)"):Pe("(",ne(i,", "),")"))+": "+n+Pe(" ",ne(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:n,directives:r})=>Pe("",e,"\n")+ne([t+": "+i,Pe("= ",n),ne(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>Pe("",e,"\n")+ne(["interface",t,Pe("implements ",ne(i," & ")),ne(n," "),Ui(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:n})=>Pe("",e,"\n")+ne(["union",t,ne(i," "),Pe("= ",ne(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:n})=>Pe("",e,"\n")+ne(["enum",t,ne(i," "),Ui(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>Pe("",e,"\n")+ne([t,ne(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:n})=>Pe("",e,"\n")+ne(["input",t,ne(i," "),Ui(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,repeatable:n,locations:r})=>Pe("",e,"\n")+"directive @"+t+(wO(i)?Pe("(\n",Bp(ne(i,"\n")),"\n)"):Pe("(",ne(i,", "),")"))+(n?" repeatable":"")+" on "+ne(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ne(["extend schema",ne(e," "),Ui(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ne(["extend scalar",e,ne(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>ne(["extend type",e,Pe("implements ",ne(t," & ")),ne(i," "),Ui(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>ne(["extend interface",e,Pe("implements ",ne(t," & ")),ne(i," "),Ui(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>ne(["extend union",e,ne(t," "),Pe("= ",ne(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>ne(["extend enum",e,ne(t," "),Ui(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>ne(["extend input",e,ne(t," "),Ui(i)]," ")}};function ne(e,t=""){var i;return null!==(i=e?.filter(n=>n).join(t))&&void 0!==i?i:""}function Ui(e){return Pe("{\n",Bp(ne(e,"\n")),"\n}")}function Pe(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function Bp(e){return Pe(" ",e.replace(/\n/g,"\n "))}function wO(e){var t;return null!==(t=e?.some(i=>i.includes("\n")))&&void 0!==t&&t}var rc=Nr?new WeakMap:void 0,xO=function(e){var t;return t=rc?.get(e),t||(t=yO(e),rc?.set(e,t)),t},qX={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},CO=function(e,t){return t(e)};function E0(e){return new vt(function(t){t.error(e)})}var EO={kind:te.FIELD,name:{kind:te.NAME,value:"__typename"}};function SO(e,t){return!e||e.selectionSet.selections.every(function(i){return i.kind===te.FRAGMENT_SPREAD&&SO(t[i.name.value],t)})}function S0(e){return SO(kd(e)||function GK(e){ye("Document"===e.kind,75),ye(e.definitions.length<=1,76);var t=e.definitions[0];return ye("FragmentDefinition"===t.kind,77),t}(e),Ip(Op(e)))?null:e}function TO(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function k0(e,t){Sd(t);for(var i=TO(""),n=TO(""),r=function(_){for(var v=0,C=void 0;v<_.length&&(C=_[v]);++v)if(!Mt(C)){if(C.kind===te.OPERATION_DEFINITION)return i(C.name&&C.name.value);if(C.kind===te.FRAGMENT_DEFINITION)return n(C.name.value)}return!1!==globalThis.__DEV__&&ye.error(80),null},o=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===te.OPERATION_DEFINITION&&++o;var a=function kO(e){var t=new Map,i=new Map;return e.forEach(function(n){n&&(n.name?t.set(n.name,n):n.test&&i.set(n.test,n))}),function(n){var r=t.get(n.name.value);return!r&&i.size&&i.forEach(function(o,s){s(n)&&(r=o)}),r}}(e),c=function(_){return dr(_)&&_.map(a).some(function(v){return v&&v.remove})},l=new Map,d=!1,u={enter:function(_){if(c(_.directives))return d=!0,null}},h=Pr(t,{Field:u,InlineFragment:u,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(_,v,C,S,N){var L=r(N);L&&L.variables.add(_.name.value)}},FragmentSpread:{enter:function(_,v,C,S,N){if(c(_.directives))return d=!0,null;var L=r(N);L&&L.fragmentSpreads.add(_.name.value)}},FragmentDefinition:{enter:function(_,v,C,S){l.set(JSON.stringify(S),_)},leave:function(_,v,C,S){return _===l.get(JSON.stringify(S))?_:o>0&&_.selectionSet.selections.every(function(L){return L.kind===te.FIELD&&"__typename"===L.name.value})?(n(_.name.value).removed=!0,d=!0,null):void 0}},Directive:{leave:function(_){if(a(_))return d=!0,null}}});if(!d)return t;var f=function(_){return _.transitiveVars||(_.transitiveVars=new Set(_.variables),_.removed||_.fragmentSpreads.forEach(function(v){f(n(v)).transitiveVars.forEach(function(C){_.transitiveVars.add(C)})})),_},p=new Set;h.definitions.forEach(function(_){_.kind===te.OPERATION_DEFINITION?f(i(_.name&&_.name.value)).fragmentSpreads.forEach(function(v){p.add(v)}):_.kind===te.FRAGMENT_DEFINITION&&0===o&&!n(_.name.value).removed&&p.add(_.name.value)}),p.forEach(function(_){f(n(_)).fragmentSpreads.forEach(function(v){p.add(v)})});var b={enter:function(_){if(function(_){return!(p.has(_)&&!n(_).removed)}(_.name.value))return null}};return S0(Pr(h,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(_){if(_.variableDefinitions){var v=f(i(_.name&&_.name.value)).transitiveVars;if(v.size<_.variableDefinitions.length)return k(k({},_),{variableDefinitions:_.variableDefinitions.filter(function(C){return v.has(C.variable.name.value)})})}}}}))}var T0=Object.assign(function(e){return Pr(e,{SelectionSet:{enter:function(t,i,n){if(!n||n.kind!==te.OPERATION_DEFINITION){var r=t.selections;if(r&&!r.some(function(a){return go(a)&&("__typename"===a.name.value||0===a.name.value.lastIndexOf("__",0))})){var s=n;if(!(go(s)&&s.directives&&s.directives.some(function(a){return"export"===a.name.value})))return k(k({},t),{selections:ai(ai([],r,!0),[EO],!1)})}}}}})},{added:function(e){return e===EO}});function JX(e){return"query"===Td(e).operation?e:Pr(e,{OperationDefinition:{enter:function(r){return k(k({},r),{operation:"query"})}}})}function MO(e){return Sd(e),k0([{test:function(i){return"client"===i.name.value},remove:!0}],e)}var IO=zi(function(){return fetch}),eZ=function(e){void 0===e&&(e={});var t=e.uri,i=void 0===t?"/graphql":t,n=e.fetch,r=e.print,o=void 0===r?CO:r,s=e.includeExtensions,a=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,d=void 0!==l&&l,u=si(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&typeof fetch>"u")throw Fn(35)}(n||IO);var h={http:{includeExtensions:s,preserveHeaderCase:a},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new tc(function(f){var p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(f,i),g=f.getContext(),b={};if(g.clientAwareness){var _=g.clientAwareness,v=_.name,C=_.version;v&&(b["apollographql-client-name"]=v),C&&(b["apollographql-client-version"]=C)}var S=k(k({},b),g.headers),N={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:S};if(gs(["client"],f.query)){var L=MO(f.query);if(!L)return E0(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));f.query=L}var qe,q=function DO(e,t){for(var i=[],n=2;n-1;){if(_=void 0,oe=[c.slice(0,b),c.slice(b+a.length)],c=oe[1],v=(_=oe[0]).indexOf("\r\n\r\n"),C=TX(_.slice(0,v)),(S=C["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(N=_.slice(v))if(L=_O(e,N),Object.keys(L).length>1||"data"in L||"incremental"in L||"errors"in L||"payload"in L)SX(L)?(q={},"payload"in L&&(q=k({},L.payload)),"errors"in L&&(q=k(k({},q),{extensions:k(k({},"extensions"in q?q.extensions:null),(Ne={},Ne[x0]=L.errors,Ne))})),t(q)):t(L);else if(1===Object.keys(L).length&&"hasNext"in L&&!L.hasNext)return[2];b=c.indexOf(a)}return[3,1];case 3:return[2]}})})}(Yt,oi):function IX(e){return function(t){return t.text().then(function(i){return _O(t,i)}).then(function(i){return t.status>=300&&w0(t,i,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(i)&&!gO.call(i,"data")&&!gO.call(i,"errors")&&w0(t,i,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(n){return n.operationName}):e.operationName,"'.")),i})}}(f)(Yt).then(oi)}).then(function(){qe=void 0,we.complete()}).catch(function(Yt){qe=void 0,function MX(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(Yt,we)}),function(){qe&&qe.abort()}})})},tZ=function(e){function t(i){void 0===i&&(i={});var n=e.call(this,eZ(i).request)||this;return n.options=i,n}return Ln(t,e),t}(tc);const{toString:AO,hasOwnProperty:nZ}=Object.prototype,RO=Function.prototype.toString,M0=new Map;function It(e,t){try{return I0(e,t)}finally{M0.clear()}}const OO=It;function I0(e,t){if(e===t)return!0;const i=AO.call(e);if(i!==AO.call(t))return!1;switch(i){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(PO(e,t))return!0;const r=FO(e),o=FO(t),s=r.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,i)===i}(r,rZ)}}return!1}function FO(e){return Object.keys(e).filter(iZ,e)}function iZ(e){return void 0!==this[e]}const rZ="{ [native code] }";function PO(e,t){let i=M0.get(e);if(i){if(i.has(t))return!0}else M0.set(e,i=new Set);return i.add(t),!1}const sZ=()=>Object.create(null),{forEach:aZ,slice:cZ}=Array.prototype,{hasOwnProperty:lZ}=Object.prototype;class bo{constructor(t=!0,i=sZ){this.weakness=t,this.makeData=i}lookup(...t){return this.lookupArray(t)}lookupArray(t){let i=this;return aZ.call(t,n=>i=i.getChildTrie(n)),lZ.call(i,"data")?i.data:i.data=this.makeData(cZ.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let i=this;for(let n=0,r=t.length;i&&n0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(i){return i.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(i){return this.queryManager.transform(i)},t}(vt);function $O(e){var t=e.options,i=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===i||"network-only"===i?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):i}}):e.reobserve()}function gZ(e){!1!==globalThis.__DEV__&&ye.error(21,e.message,e.stack)}function qO(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&ye.debug(22,e)}function B0(e){return"network-only"===e||"no-cache"===e||"standby"===e}function GO(e){return e.kind===te.FIELD||e.kind===te.FRAGMENT_SPREAD||e.kind===te.INLINE_FRAGMENT}function CZ(){}VO(L0);class DZ{constructor(t=1/0,i=CZ){this.max=t,this.dispose=i,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const i=this.getNode(t);return i&&i.value}getNode(t){const i=this.map.get(t);if(i&&i!==this.newest){const{older:n,newer:r}=i;r&&(r.older=n),n&&(n.newer=r),i.older=this.newest,i.older.newer=i,i.newer=null,this.newest=i,i===this.oldest&&(this.oldest=r)}return i}set(t,i){let n=this.getNode(t);return n?n.value=i:(n={key:t,value:i,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(t,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const i=this.map.get(t);return!!i&&(i===this.newest&&(this.newest=i.older),i===this.oldest&&(this.oldest=i.newer),i.newer&&(i.newer.older=i.older),i.older&&(i.older.newer=i.newer),this.map.delete(t),this.dispose(i.value,t),!0)}}let mn=null;const QO={};let EZ=1;function YO(e){try{return e()}catch{}}const V0="@wry/context:Slot",KO=YO(()=>globalThis)||YO(()=>global)||Object.create(null),j0=KO[V0]||Array[V0]||function(e){try{Object.defineProperty(KO,V0,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",EZ++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=mn;t;t=t.parent)if(this.id in t.slots){const i=t.slots[this.id];if(i===QO)break;return t!==mn&&(mn.slots[this.id]=i),!0}return mn&&(mn.slots[this.id]=QO),!1}getValue(){if(this.hasValue())return mn.slots[this.id]}withValue(t,i,n,r){const s=mn;mn={parent:s,slots:{__proto__:null,[this.id]:t}};try{return i.apply(r,n)}finally{mn=s}}static bind(t){const i=mn;return function(){const n=mn;try{return mn=i,t.apply(this,arguments)}finally{mn=n}}}static noContext(t,i,n){if(!mn)return t.apply(n,i);{const r=mn;try{return mn=null,t.apply(n,i)}finally{mn=r}}}}),Fd=new j0,{hasOwnProperty:MZ}=Object.prototype,z0=Array.from||function(e){const t=[];return e.forEach(i=>t.push(i)),t};function Hp(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Pd=[],IZ=100;function ac(e,t){if(!e)throw new Error(t||"assertion failure")}function ZO(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let OZ=(()=>{class e{constructor(i){this.fn=i,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!vo(this))return JO(this),this.value[0]}recompute(i){return ac(!this.recomputing,"already recomputing"),JO(this),vo(this)?function FZ(e,t){return oF(e),Fd.withValue(e,PZ,[e,t]),function LZ(e,t){if("function"==typeof e.subscribe)try{Hp(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function NZ(e){e.dirty=!1,!vo(e)&&tF(e)}(e),ZO(e.value)}(this,i):ZO(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,eF(this),Hp(this))}dispose(){this.setDirty(),oF(this),U0(this,(i,n)=>{i.setDirty(),sF(i,this)})}forget(){this.dispose()}dependOn(i){i.add(this),this.deps||(this.deps=Pd.pop()||new Set),this.deps.add(i)}forgetDeps(){this.deps&&(z0(this.deps).forEach(i=>i.delete(this)),this.deps.clear(),Pd.push(this.deps),this.deps=null)}}return e.count=0,e})();function JO(e){const t=Fd.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),vo(e)?nF(t,e):iF(t,e),t}function PZ(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(i){e.value[1]=i}e.recomputing=!1}function vo(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function eF(e){U0(e,nF)}function tF(e){U0(e,iF)}function U0(e,t){const i=e.parents.size;if(i){const n=z0(e.parents);for(let r=0;r0&&i===t.length&&e[i-1]===t[i-1]}(i,t.value)||e.setDirty(),rF(e,t),!vo(e)&&tF(e)}function rF(e,t){const i=e.dirtyChildren;i&&(i.delete(t),0===i.size&&(Pd.length0&&e.childValues.forEach((t,i)=>{sF(e,i)}),e.forgetDeps(),ac(null===e.dirtyChildren)}function sF(e,t){t.parents.delete(e),e.childValues.delete(t),rF(e,t)}const BZ={setDirty:!0,dispose:!0,forget:!0};function aF(e){const t=new Map,i=e&&e.subscribe;function n(r){const o=Fd.getValue();if(o){let s=t.get(r);s||t.set(r,s=new Set),o.dependOn(s),"function"==typeof i&&(Hp(s),s.unsubscribe=i(r))}}return n.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&MZ.call(BZ,s)?s:"setDirty";z0(a).forEach(l=>l[c]()),t.delete(o),Hp(a)}},n}let cF;function VZ(...e){return(cF||(cF=new bo("function"==typeof WeakMap))).lookupArray(e)}const $0=new Set;function zp(e,{max:t=Math.pow(2,16),makeCacheKey:i=VZ,keyArgs:n,subscribe:r}=Object.create(null)){const o=new DZ(t,d=>d.dispose()),s=function(){const d=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===d)return e.apply(null,arguments);let u=o.get(d);u||(o.set(d,u=new OZ(e)),u.subscribe=r,u.forget=()=>o.delete(d));const h=u.recompute(Array.prototype.slice.call(arguments));return o.set(d,u),$0.add(o),Fd.hasValue()||($0.forEach(f=>f.clean()),$0.clear()),h};function a(d){const u=o.get(d);u&&u.setDirty()}function c(d){const u=o.get(d);if(u)return u.peek()}function l(d){return o.delete(d)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:i,keyArgs:n,subscribe:r}),s.dirtyKey=a,s.dirty=function(){a(i.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(i.apply(null,arguments))},s.forgetKey=l,s.forget=function(){return l(i.apply(null,arguments))},s.makeCacheKey=i,s.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(s)}var q0=new j0,lF=new WeakMap;function Nd(e){var t=lF.get(e);return t||lF.set(e,t={vars:new Set,dep:aF()}),t}function dF(e){Nd(e).vars.forEach(function(t){return t.forgetCache(e)})}function HZ(e){var t=new Set,i=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){Nd(c).dep.dirty(n),function zZ(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(i);i.clear(),s.forEach(function(c){return c(e)})}}else{var a=q0.getValue();a&&(r(a),Nd(a).dep(n))}return e};n.onNextChange=function(o){return i.add(o),function(){i.delete(o)}};var r=n.attachCache=function(o){return t.add(o),Nd(o).vars.add(n),n};return n.forgetCache=function(o){return t.delete(o)},n}var uF=function(){function e(t){var i=t.cache,n=t.client,r=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=i,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var i=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(n){i.resolvers=pO(i.resolvers,n)}):this.resolvers=pO(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){var i=t.document,n=t.remoteResult,r=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Bn(this,void 0,void 0,function(){return Vn(this,function(c){return i?[2,this.resolveDocument(i,n.data,r,o,this.fragmentMatcher,a).then(function(l){return k(k({},n),{data:l.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return gs(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return MO(t)},e.prototype.prepareContext=function(t){var i=this.cache;return k(k({},t),{cache:i,getCacheKey:function(n){return i.identify(n)}})},e.prototype.addExportedVariables=function(t,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),Bn(this,void 0,void 0,function(){return Vn(this,function(r){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,i)||{},this.prepareContext(n),i).then(function(o){return k(k({},i),o.exportedVariables)})]:[2,k({},i)]})})},e.prototype.shouldForceResolvers=function(t){var i=!1;return Pr(t,{Directive:{enter:function(n){if("client"===n.name.value&&n.arguments&&(i=n.arguments.some(function(r){return"always"===r.name.value&&"BooleanValue"===r.value.kind&&!0===r.value.value})))return ms}}}),i},e.prototype.buildRootValueFromCache=function(t,i){return this.cache.diff({query:JX(t),variables:i,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,i,n,r,o,s){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Bn(this,void 0,void 0,function(){var a,c,l,d,u,h,f,p,g,b;return Vn(this,function(v){return a=Td(t),c=Op(t),l=Ip(c),d=this.collectSelectionsToResolve(a,l),h=(u=a.operation)?u.charAt(0).toUpperCase()+u.slice(1):"Query",p=(f=this).cache,g=f.client,b={fragmentMap:l,context:k(k({},n),{cache:p,client:g}),variables:r,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,i,b).then(function(C){return{result:C,exportedVariables:b.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,i,n,r){return Bn(this,void 0,void 0,function(){var o,s,a,c,l,d=this;return Vn(this,function(u){return o=r.fragmentMap,s=r.context,a=r.variables,c=[n],l=function(h){return Bn(d,void 0,void 0,function(){var f;return Vn(this,function(g){return(i||r.selectionsToResolve.has(h))&&Ad(h,a)?go(h)?[2,this.resolveField(h,i,n,r).then(function(b){var _;typeof b<"u"&&c.push(((_={})[mo(h)]=b,_))})]:(function qK(e){return"InlineFragment"===e.kind}(h)?f=h:ye(f=o[h.name.value],16,h.name.value),f&&f.typeCondition&&r.fragmentMatcher(n,f.typeCondition.name.value,s)?[2,this.resolveSelectionSet(f.selectionSet,i,n,r).then(function(b){c.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return C0(c)})]})})},e.prototype.resolveField=function(t,i,n,r){return Bn(this,void 0,void 0,function(){var o,s,a,c,l,d,u,h,f,p=this;return Vn(this,function(g){return n?(o=r.variables,s=t.name.value,a=mo(t),c=s!==a,l=n[a]||n[s],d=Promise.resolve(l),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(u=n.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[u])&&(f=h[c?s:a])&&(d=Promise.resolve(q0.withValue(this.cache,f,[n,Rp(t,o),r.context,{field:t,fragmentMap:r.fragmentMap}])))),[2,d.then(function(b){var _,v;if(void 0===b&&(b=l),t.directives&&t.directives.forEach(function(S){"export"===S.name.value&&S.arguments&&S.arguments.forEach(function(N){"as"===N.name.value&&"StringValue"===N.value.kind&&(r.exportedVariables[N.value.value]=b)})}),!t.selectionSet||null==b)return b;var C=null!==(v=null===(_=t.directives)||void 0===_?void 0:_.some(function(S){return"client"===S.name.value}))&&void 0!==v&&v;return Array.isArray(b)?p.resolveSubSelectedArray(t,i||C,b,r):t.selectionSet?p.resolveSelectionSet(t.selectionSet,i||C,b,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,i,n,r){var o=this;return Promise.all(n.map(function(s){return null===s?null:Array.isArray(s)?o.resolveSubSelectedArray(t,i,s,r):t.selectionSet?o.resolveSelectionSet(t.selectionSet,i,s,r):void 0}))},e.prototype.collectSelectionsToResolve=function(t,i){var n=function(s){return!Array.isArray(s)},r=this.selectionsToResolveCache;return function o(s){if(!r.has(s)){var a=new Set;r.set(s,a),Pr(s,{Directive:function(c,l,d,u,h){"client"===c.name.value&&h.forEach(function(f){n(f)&&GO(f)&&a.add(f)})},FragmentSpread:function(c,l,d,u,h){var f=i[c.name.value];ye(f,17,c.name.value);var p=o(f);p.size>0&&(h.forEach(function(g){n(g)&&GO(g)&&a.add(g)}),a.add(c),p.forEach(function(g){a.add(g)}))}})}return r.get(s)}(t)},e}(),cc=new(Nr?WeakMap:Map);function G0(e,t){var i=e[t];"function"==typeof i&&(e[t]=function(){return cc.set(e,(cc.get(e)+1)%1e15),i.apply(this,arguments)})}function hF(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var W0=function(){function e(t,i){void 0===i&&(i=t.generateQueryId()),this.queryId=i,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=t.cache;cc.has(n)||(cc.set(n,0),G0(n,"evict"),G0(n,"modify"),G0(n,"reset"))}return e.prototype.init=function(t){var i=t.networkStatus||rt.loading;return this.variables&&this.networkStatus!==rt.loading&&!It(this.variables,t.variables)&&(i=rt.setVariables),It(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:i}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){hF(this),this.dirty=!1},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&It(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var i=this.observableQuery;if(i&&"no-cache"===i.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(t,i){this.lastDiff=t?{diff:t,options:i||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var i;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(i=this.observableQuery)||void 0===i?void 0:i.options.canonizeResults}},e.prototype.setDiff=function(t){var i=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!It(n&&n.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return i.notify()},0)))},e.prototype.setObservableQuery=function(t){var i=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){i.getDiff().fromOptimisticTransaction?t.observe():$O(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;hF(this),this.shouldNotify()&&this.listeners.forEach(function(i){return i(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Cd(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(i){return i.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var i=this;void 0===t&&(t=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=k(k({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return i.setDiff(o)}});(!this.lastWatch||!It(r,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,i){var n=this.lastWrite;return!(n&&n.dmCount===cc.get(this.cache)&&It(i,n.variables)&&It(t.data,n.result.data))},e.prototype.markResult=function(t,i,n,r){var o=this,s=new _o,a=dr(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&dr(t.incremental)){var c=mO(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=s.merge(l.result,t.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Q0(t,n.errorPolicy)?this.cache.performTransaction(function(d){if(o.shouldWrite(t,n.variables))d.writeQuery({query:i,data:t.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:t,variables:n.variables,dmCount:cc.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(t.data=o.lastDiff.diff.result);var u=o.getDiffOptions(n.variables),h=d.diff(u);!o.stopped&&It(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(h,u),h.complete&&(t.data=h.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=rt.ready},e.prototype.markError=function(t){return this.networkStatus=rt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function Q0(e,t){void 0===t&&(t="none");var i="ignore"===t||"all"===t,n=!Vp(e);return!n&&i&&e.data&&(n=!0),n}var UZ=Object.prototype.hasOwnProperty,$Z=function(){function e(t){var i=this,n=t.cache,r=t.link,o=t.defaultOptions,s=t.documentTransform,a=t.queryDeduplication,c=void 0!==a&&a,l=t.onBroadcast,d=t.ssrMode,u=void 0!==d&&d,h=t.clientAwareness,f=void 0===h?{}:h,p=t.localState,g=t.assumeImmutableResults,b=void 0===g?!!n.assumeImmutableResults:g;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Nr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var _=new BO(function(v){return i.cache.transformDocument(v)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=o||Object.create(null),this.queryDeduplication=c,this.clientAwareness=f,this.localState=p||new uF({cache:n}),this.ssrMode=u,this.assumeImmutableResults=b,this.documentTransform=s?_.concat(s).concat(_):_,(this.onBroadcast=l)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(i,n){t.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(Fn(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(i){return i(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var i,n,r=t.mutation,o=t.variables,s=t.optimisticResponse,a=t.updateQueries,c=t.refetchQueries,l=void 0===c?[]:c,d=t.awaitRefetchQueries,u=void 0!==d&&d,h=t.update,f=t.onQueryUpdated,p=t.fetchPolicy,g=void 0===p?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.fetchPolicy)||"network-only":p,b=t.errorPolicy,_=void 0===b?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":b,v=t.keepRootFields,C=t.context;return Bn(this,void 0,void 0,function(){var S,N,L,q;return Vn(this,function(oe){switch(oe.label){case 0:return ye(r,24),ye("network-only"===g||"no-cache"===g,25),S=this.generateMutationId(),r=this.cache.transformForLink(this.transform(r)),N=this.getDocumentInfo(r).hasClientExports,o=this.getVariables(r,o),N?[4,this.localState.addExportedVariables(r,o,C)]:[3,2];case 1:o=oe.sent(),oe.label=2;case 2:return L=this.mutationStore&&(this.mutationStore[S]={mutation:r,variables:o,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:S,document:r,variables:o,fetchPolicy:g,errorPolicy:_,context:C,updateQueries:a,update:h,keepRootFields:v}),this.broadcastQueries(),q=this,[2,new Promise(function(Ne,qe){return F0(q.getObservableFromLink(r,k(k({},C),{optimisticResponse:s}),o,!1),function(At){if(Vp(At)&&"none"===_)throw new nc({graphQLErrors:P0(At)});L&&(L.loading=!1,L.error=null);var Pn=k({},At);return"function"==typeof l&&(l=l(Pn)),"ignore"===_&&Vp(Pn)&&delete Pn.errors,q.markMutationResult({mutationId:S,result:Pn,document:r,variables:o,fetchPolicy:g,errorPolicy:_,context:C,update:h,updateQueries:a,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:s?S:void 0,onQueryUpdated:f,keepRootFields:v})}).subscribe({next:function(At){q.broadcastQueries(),(!("hasNext"in At)||!1===At.hasNext)&&Ne(At)},error:function(At){L&&(L.loading=!1,L.error=At),s&&q.cache.removeOptimistic(S),q.broadcastQueries(),qe(At instanceof nc?At:new nc({networkError:At}))}})})]}})})},e.prototype.markMutationResult=function(t,i){var n=this;void 0===i&&(i=this.cache);var r=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&Q0(r,t.errorPolicy)){if(ic(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ic(r)&&dr(r.incremental)){var a=i.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=mO(a.result,r)),typeof c<"u"&&(r.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(u,h){var f=u.observableQuery,p=f&&f.queryName;if(p&&UZ.call(l,p)){var g=l[p],b=n.queries.get(h),_=b.document,v=b.variables,C=i.diff({query:_,variables:v,returnPartialData:!0,optimistic:!1}),S=C.result;if(C.complete&&S){var L=g(S,{mutationResult:r,queryName:_&&m0(_)||void 0,queryVariables:v});L&&o.push({result:L,dataId:"ROOT_QUERY",query:_,variables:v})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(u){s||o.forEach(function(g){return u.write(g)});var h=t.update,f=!function EX(e){return ic(e)||function DX(e){return"hasNext"in e&&"data"in e}(e)}(r)||ic(r)&&!r.hasNext;if(h){if(!s){var p=u.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(r=k(k({},r),{data:p.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}f&&h(u,r,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&f&&u.modify({id:"ROOT_MUTATION",fields:function(g,b){return"__typename"===b.fieldName?g:b.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(u){return d.push(u)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(d).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(t,i){var n=this,r="function"==typeof t?t(i.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(k(k({},i),{result:{data:r}}),o)}catch(s){!1!==globalThis.__DEV__&&ye.error(s)}},i.mutationId)},e.prototype.fetchQuery=function(t,i,n){return this.fetchConcastWithInfo(t,i,n).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(i,n){t[n]={variables:i.variables,networkStatus:i.networkStatus,networkError:i.networkError,graphQLErrors:i.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var i=this.queries.get(t);i&&(i.networkError=void 0,i.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var i=this.transformCache;if(!i.has(t)){var n={hasClientExports:iX(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:gs(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:k0([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:g0(kd(t)),asQuery:k(k({},t),{definitions:t.definitions.map(function(r){return"OperationDefinition"===r.kind&&"query"!==r.operation?k(k({},r),{operation:"query"}):r})})};i.set(t,n)}return i.get(t)},e.prototype.getVariables=function(t,i){return k(k({},this.getDocumentInfo(t).defaultVars),i)},e.prototype.watchQuery=function(t){var i=this.transform(t.query);typeof(t=k(k({},t),{variables:this.getVariables(i,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var n=new W0(this),r=new L0({queryManager:this,queryInfo:n,options:t});return r.lastQuery=i,this.queries.set(r.queryId,n),n.init({document:i,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(t,i){var n=this;return void 0===i&&(i=this.generateQueryId()),ye(t.query,26),ye("Document"===t.query.kind,27),ye(!t.returnPartialData,28),ye(!t.pollInterval,29),this.fetchQuery(i,k(k({},t),{query:this.transform(t.query)})).finally(function(){return n.stopQuery(i)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var i=this.queries.get(t);i&&i.stop()},e.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(Fn(30)),this.queries.forEach(function(i){i.observableQuery?i.networkStatus=rt.loading:i.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var i=this;void 0===t&&(t="active");var n=new Map,r=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?r.set(s,!1):function RK(e){return xt(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?r.set(i.transform(s),!1):xt(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,a){var c=s.observableQuery,l=s.document;if(c){if("all"===t)return void n.set(a,c);var d=c.queryName;if("standby"===c.options.fetchPolicy||"active"===t&&!c.hasObservers())return;("active"===t||d&&r.has(d)||l&&r.has(l))&&(n.set(a,c),d&&r.set(d,!0),l&&r.set(l,!0))}}),o.size&&o.forEach(function(s){var a=r0("legacyOneTimeQuery"),c=i.getQuery(a).init({document:s.query,variables:s.variables}),l=new L0({queryManager:i,queryInfo:c,options:k(k({},s),{fetchPolicy:"network-only"})});ye(l.queryId===a),c.setObservableQuery(l),n.set(a,l)}),!1!==globalThis.__DEV__&&r.size&&r.forEach(function(s,a){s||!1!==globalThis.__DEV__&&ye.warn("string"==typeof a?31:32,a)}),n},e.prototype.reFetchObservableQueries=function(t){var i=this;void 0===t&&(t=!1);var n=[];return this.getObservableQueries(t?"all":"active").forEach(function(r,o){var s=r.options.fetchPolicy;r.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&n.push(r.refetch()),i.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var i=this,n=t.query,r=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.variables,c=t.context,l=void 0===c?{}:c;n=this.transform(n),a=this.getVariables(n,a);var d=function(h){return i.getObservableFromLink(n,l,h).map(function(f){"no-cache"!==r&&(Q0(f,s)&&i.cache.write({query:n,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:h}),i.broadcastQueries());var p=Vp(f),g=function vX(e){return!!e.extensions&&Array.isArray(e.extensions[x0])}(f);if(p||g){var b={};if(p&&(b.graphQLErrors=f.errors),g&&(b.protocolErrors=f.extensions[x0]),"none"===s||g)throw new nc(b)}return"ignore"===s&&delete f.errors,f})};if(this.getDocumentInfo(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,l).then(d);return new vt(function(h){var f=null;return u.then(function(p){return f=p.subscribe(h)},h.error),function(){return f&&f.unsubscribe()}})}return d(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,i,n,r){var s,o=this;void 0===r&&(r=null!==(s=i?.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var a,c=this.getDocumentInfo(t),l=c.serverQuery,d=c.clientQuery;if(l){var h=this.inFlightLinkObservables,f=this.link,p={query:l,variables:n,operationName:m0(l)||void 0,context:this.prepareContext(k(k({},i),{forceFetch:!r}))};if(i=p.context,r){var g=xO(l),b=h.get(g)||new Map;h.set(g,b);var _=_s(n);if(!(a=b.get(_))){var v=new oc([_0(f,p)]);b.set(_,a=v),v.beforeNext(function(){b.delete(_)&&b.size<1&&h.delete(g)})}}else a=new oc([_0(f,p)])}else a=new oc([vt.of({data:{}})]),i=this.prepareContext(i);return d&&(a=F0(a,function(C){return o.localState.runResolvers({document:d,remoteResult:C,context:i,variables:n})})),a},e.prototype.getResultsFromLink=function(t,i,n){var r=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return F0(this.getObservableFromLink(o,n.context,n.variables),function(s){var a=P0(s),c=a.length>0;if(r>=t.lastRequestId){if(c&&"none"===n.errorPolicy)throw t.markError(new nc({graphQLErrors:a}));t.markResult(s,o,n,i),t.markReady()}var l={data:s.data,loading:!1,networkStatus:rt.ready};return c&&"ignore"!==n.errorPolicy&&(l.errors=a,l.networkStatus=rt.error),l},function(s){var a=function yX(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new nc({networkError:s});throw r>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,i,n){var r=this;void 0===n&&(n=rt.loading);var L,q,o=i.query,s=this.getVariables(o,i.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,l=i.fetchPolicy,u=i.errorPolicy,f=i.returnPartialData,g=i.notifyOnNetworkStatusChange,_=i.context,C=Object.assign({},i,{query:o,variables:s,fetchPolicy:void 0===l?c&&c.fetchPolicy||"cache-first":l,errorPolicy:void 0===u?c&&c.errorPolicy||"none":u,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==g&&g,context:void 0===_?{}:_}),S=function(Ne){C.variables=Ne;var qe=r.fetchQueryByPolicy(a,C,n);return"standby"!==C.fetchPolicy&&qe.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",i),qe},N=function(){return r.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(Ne){N(),setTimeout(function(){return L.cancel(Ne)})}),this.getDocumentInfo(C.query).hasClientExports)L=new oc(this.localState.addExportedVariables(C.query,C.variables,C.context).then(S).then(function(Ne){return Ne.sources})),q=!0;else{var oe=S(C.variables);q=oe.fromLink,L=new oc(oe.sources)}return L.promise.then(N,N),{concast:L,fromLink:q}},e.prototype.refetchQueries=function(t){var i=this,n=t.updateCache,r=t.include,o=t.optimistic,s=void 0!==o&&o,a=t.removeOptimistic,c=void 0===a?s?r0("refetchQueries"):void 0:a,l=t.onQueryUpdated,d=new Map;r&&this.getObservableQueries(r).forEach(function(h,f){d.set(f,{oq:h,lastDiff:i.getQuery(f).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(h,f,p){var g=h.watcher instanceof W0&&h.watcher.observableQuery;if(g){if(l){d.delete(g.queryId);var b=l(g,f,p);return!0===b&&(b=g.refetch()),!1!==b&&u.set(g,b),b}null!==l&&d.set(g.queryId,{oq:g,lastDiff:p,diff:f})}}}),d.size&&d.forEach(function(h,f){var _,p=h.oq,g=h.lastDiff,b=h.diff;if(l){if(!b){var v=p.queryInfo;v.reset(),b=v.getDiff()}_=l(p,b,g)}(!l||!0===_)&&(_=p.refetch()),!1!==_&&u.set(p,_),f.indexOf("legacyOneTimeQuery")>=0&&i.stopQueryNoBroadcast(f)}),c&&this.cache.removeOptimistic(c),u},e.prototype.fetchQueryByPolicy=function(t,i,n){var r=this,o=i.query,s=i.variables,a=i.fetchPolicy,c=i.refetchWritePolicy,l=i.errorPolicy,d=i.returnPartialData,u=i.context,h=i.notifyOnNetworkStatusChange,f=t.networkStatus;t.init({document:o,variables:s,networkStatus:n});var p=function(){return t.getDiff()},g=function(S,N){void 0===N&&(N=t.networkStatus||rt.loading);var L=S.result;!1!==globalThis.__DEV__&&!d&&!It(L,{})&&qO(S.missing);var q=function(oe){return vt.of(k({data:oe,loading:Cd(N),networkStatus:N},S.complete?null:{partial:!0}))};return L&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:L},context:u,variables:s,onlyRunForcedResolvers:!0}).then(function(oe){return q(oe.data||void 0)}):"none"===l&&N===rt.refetch&&Array.isArray(S.missing)?q(void 0):q(L)},b="no-cache"===a?0:n===rt.refetch&&"merge"!==c?1:2,_=function(){return r.getResultsFromLink(t,b,{query:o,variables:s,context:u,fetchPolicy:a,errorPolicy:l})},v=h&&"number"==typeof f&&f!==n&&Cd(n);switch(a){default:case"cache-first":return(C=p()).complete?{fromLink:!1,sources:[g(C,t.markReady())]}:d||v?{fromLink:!0,sources:[g(C),_()]}:{fromLink:!0,sources:[_()]};case"cache-and-network":var C;return(C=p()).complete||d||v?{fromLink:!0,sources:[g(C),_()]}:{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[g(p(),t.markReady())]};case"network-only":return v?{fromLink:!0,sources:[g(p()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return v?{fromLink:!0,sources:[g(t.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new W0(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var i=this.localState.prepareContext(t);return k(k({},i),{clientAwareness:this.clientAwareness})},e}();function Y0(e,t){return sc(e,t,t.variables&&{variables:sc(k(k({},e&&e.variables),t.variables))})}var fF=!1,pF=function(){function e(t){var i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Fn(13);var n=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,l=void 0!==c&&c,d=t.ssrForceFetchDelay,u=void 0===d?0:d,h=t.connectToDevTools,f=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:h,p=t.queryDeduplication,g=void 0===p||p,b=t.defaultOptions,_=t.assumeImmutableResults,v=void 0===_?s.assumeImmutableResults:_,C=t.resolvers,S=t.typeDefs,N=t.fragmentMatcher,L=t.name,q=t.version,oe=t.link;oe||(oe=n?new tZ({uri:n,credentials:t.credentials,headers:t.headers}):tc.empty()),this.link=oe,this.cache=s,this.disableNetworkFetches=l||u>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=S,u&&setTimeout(function(){return i.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=n0,this.localState=new uF({cache:s,client:this,resolvers:C,fragmentMatcher:N}),this.queryManager=new $Z({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:g,ssrMode:l,clientAwareness:{name:L,version:q},localState:this.localState,assumeImmutableResults:v,onBroadcast:f?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),f&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var t=window,i=Symbol.for("apollo.devtools");(t[i]=t[i]||[]).push(this),t.__APOLLO_CLIENT__=this}!fF&&!1!==globalThis.__DEV__&&(fF=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,r=n&&n.userAgent,o=void 0;"string"==typeof r&&(r.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1!==globalThis.__DEV__&&ye.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Y0(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=k(k({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=Y0(this.defaultOptions.query,t)),ye("cache-and-network"!==t.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=k(k({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Y0(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,i){return void 0===i&&(i=!1),this.cache.readQuery(t,i)},e.prototype.readFragment=function(t,i){return void 0===i&&(i=!1),this.cache.readFragment(t,i)},e.prototype.writeQuery=function(t){var i=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),i},e.prototype.writeFragment=function(t){var i=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),i},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return _0(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(i){return i()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(i){return i()}))})},e.prototype.onResetStore=function(t){var i=this;return this.resetStoreCallbacks.push(t),function(){i.resetStoreCallbacks=i.resetStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.onClearStore=function(t){var i=this;return this.clearStoreCallbacks.push(t),function(){i.clearStoreCallbacks=i.clearStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var i=this.queryManager.refetchQueries(t),n=[],r=[];i.forEach(function(s,a){n.push(a),r.push(s)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(s){!1!==globalThis.__DEV__&&ye.debug(15,s)}),o},e.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},e}();function GZ(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const WZ=/\r\n|[\n\r]/g;function K0(e,t){let i=0,n=1;for(const r of e.body.matchAll(WZ)){if("number"==typeof r.index||GZ(!1),r.index>=t)break;i=r.index+r[0].length,n+=1}return{line:n,column:t+1-i}}function QZ(e){return mF(e.source,K0(e.source,e.start))}function mF(e,t){const i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?i:0),l=`${e.name}:${s}:${c}\n`,d=n.split(/\r\n|[\n\r]/g),u=d[r];if(u.length>120){const h=Math.floor(c/80),f=c%80,p=[];for(let g=0;g["|",g]),["|","^".padStart(f)],["|",p[h+1]]])}return l+gF([[s-1+" |",d[r-1]],[`${s} |`,u],["|","^".padStart(c)],[`${s+1} |`,d[r+1]]])}function gF(e){const t=e.filter(([n,r])=>void 0!==r),i=Math.max(...t.map(([n])=>n.length));return t.map(([n,r])=>n.padStart(i)+(r?" "+r:"")).join("\n")}class X0 extends Error{constructor(t,...i){var n,r,o;const{nodes:s,source:a,positions:c,path:l,originalError:d,extensions:u}=function YZ(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(i);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=d??void 0,this.nodes=_F(Array.isArray(s)?s:s?[s]:void 0);const h=_F(null===(n=this.nodes)||void 0===n?void 0:n.map(p=>p.loc).filter(p=>null!=p));this.source=a??(null==h||null===(r=h[0])||void 0===r?void 0:r.source),this.positions=c??h?.map(p=>p.start),this.locations=c&&a?c.map(p=>K0(a,p)):h?.map(p=>K0(p.source,p.start));const f=function qZ(e){return"object"==typeof e&&null!==e}(d?.extensions)?d?.extensions:void 0;this.extensions=null!==(o=u??f)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,X0):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const i of this.nodes)i.loc&&(t+="\n\n"+QZ(i.loc));else if(this.source&&this.locations)for(const i of this.locations)t+="\n\n"+mF(this.source,i);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function _F(e){return void 0===e||0===e.length?void 0:e}function rn(e,t,i){return new X0(`Syntax Error: ${i}`,{source:e,positions:[t]})}var bF=function(e){return e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e}(bF||{}),O=function(e){return e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment",e}(O||{});class KZ{constructor(t){const i=new cO(O.SOF,0,0,0,0);this.source=t,this.lastToken=i,this.token=i,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==O.EOF)do{if(t.next)t=t.next;else{const i=ZZ(this,t.end);t.next=i,i.prev=t,t=i}}while(t.kind===O.COMMENT);return t}}function lc(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Up(e,t){return vF(e.charCodeAt(t))&&yF(e.charCodeAt(t+1))}function vF(e){return e>=55296&&e<=56319}function yF(e){return e>=56320&&e<=57343}function bs(e,t){const i=e.source.body.codePointAt(t);if(void 0===i)return O.EOF;if(i>=32&&i<=126){const n=String.fromCodePoint(i);return'"'===n?"'\"'":`"${n}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function Wt(e,t,i,n,r){return new cO(t,i,n,e.line,1+i-e.lineStart,r)}function ZZ(e,t){const i=e.source.body,n=i.length;let r=t;for(;r=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function rJ(e,t){const i=e.source.body;switch(i.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw rn(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}function oJ(e,t){const i=e.source.body,n=i.length;let r=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||Pp(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Pp(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class $p{constructor(t,i={}){const n=function cJ(e){return aJ(e,xF)}(t)?t:new xF(t);this._lexer=new KZ(n),this._options=i,this._tokenCounter=0}parseName(){const t=this.expectToken(O.NAME);return this.node(t,{kind:te.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:te.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF)})}parseDefinition(){if(this.peek(O.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),i=t?this._lexer.lookahead():this._lexer.token;if(i.kind===O.NAME){switch(i.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw rn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(i.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(i)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(O.BRACE_L))return this.node(t,{kind:te.OPERATION_DEFINITION,operation:Id.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const i=this.parseOperationType();let n;return this.peek(O.NAME)&&(n=this.parseName()),this.node(t,{kind:te.OPERATION_DEFINITION,operation:i,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(O.NAME);switch(t.value){case"query":return Id.QUERY;case"mutation":return Id.MUTATION;case"subscription":return Id.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:te.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(O.DOLLAR),this.node(t,{kind:te.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:te.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R)})}parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,i=this.parseName();let n,r;return this.expectOptionalToken(O.COLON)?(n=i,r=this.parseName()):r=i,this.node(t,{kind:te.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(O.PAREN_L,t?this.parseConstArgument:this.parseArgument,O.PAREN_R)}parseArgument(t=!1){const i=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(i,{kind:te.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(O.SPREAD);const i=this.expectOptionalKeyword("on");return!i&&this.peek(O.NAME)?this.node(t,{kind:te.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:te.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this.node(t,!0===this._options.allowLegacyFragmentVariables?{kind:te.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:te.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const i=this._lexer.token;switch(i.kind){case O.BRACKET_L:return this.parseList(t);case O.BRACE_L:return this.parseObject(t);case O.INT:return this.advanceLexer(),this.node(i,{kind:te.INT,value:i.value});case O.FLOAT:return this.advanceLexer(),this.node(i,{kind:te.FLOAT,value:i.value});case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this.advanceLexer(),i.value){case"true":return this.node(i,{kind:te.BOOLEAN,value:!0});case"false":return this.node(i,{kind:te.BOOLEAN,value:!1});case"null":return this.node(i,{kind:te.NULL});default:return this.node(i,{kind:te.ENUM,value:i.value})}case O.DOLLAR:if(t){if(this.expectToken(O.DOLLAR),this._lexer.token.kind===O.NAME)throw rn(this._lexer.source,i.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(i)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:te.STRING,value:t.value,block:t.kind===O.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:te.LIST,values:this.any(O.BRACKET_L,()=>this.parseValueLiteral(t),O.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:te.OBJECT,fields:this.any(O.BRACE_L,()=>this.parseObjectField(t),O.BRACE_R)})}parseObjectField(t){const i=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(i,{kind:te.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const i=[];for(;this.peek(O.AT);)i.push(this.parseDirective(t));return i}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const i=this._lexer.token;return this.expectToken(O.AT),this.node(i,{kind:te.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let i;if(this.expectOptionalToken(O.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(O.BRACKET_R),i=this.node(t,{kind:te.LIST_TYPE,type:n})}else i=this.parseNamedType();return this.expectOptionalToken(O.BANG)?this.node(t,{kind:te.NON_NULL_TYPE,type:i}):i}parseNamedType(){return this.node(this._lexer.token,{kind:te.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return this.node(t,{kind:te.SCHEMA_DEFINITION,description:i,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,i=this.parseOperationType();this.expectToken(O.COLON);const n=this.parseNamedType();return this.node(t,{kind:te.OPERATION_TYPE_DEFINITION,operation:i,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:te.SCALAR_TYPE_DEFINITION,description:i,name:n,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:te.OBJECT_TYPE_DEFINITION,description:i,name:n,interfaces:r,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(O.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,i=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:te.FIELD_DEFINITION,description:i,name:n,arguments:r,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(O.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:te.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:te.INTERFACE_TYPE_DEFINITION,description:i,name:n,interfaces:r,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:te.UNION_TYPE_DEFINITION,description:i,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:te.ENUM_TYPE_DEFINITION,description:i,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,i=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:te.ENUM_VALUE_DEFINITION,description:i,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw rn(this._lexer.source,this._lexer.token.start,`${qp(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:te.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===O.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const i=this.parseConstDirectives(),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:te.SCHEMA_EXTENSION,directives:i,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const i=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(t,{kind:te.SCALAR_TYPE_EXTENSION,name:i,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:te.OBJECT_TYPE_EXTENSION,name:i,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:te.INTERFACE_TYPE_EXTENSION,name:i,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:te.UNION_TYPE_EXTENSION,name:i,directives:n,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:te.ENUM_TYPE_EXTENSION,name:i,directives:n,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:te.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:n,fields:r})}parseDirectiveDefinition(){const t=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:te.DIRECTIVE_DEFINITION,description:i,name:n,arguments:r,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,i=this.parseName();if(Object.prototype.hasOwnProperty.call(bF,i.value))return i;throw this.unexpected(t)}node(t,i){return!0!==this._options.noLocation&&(i.loc=new tX(t,this._lexer.lastToken,this._lexer.source)),i}peek(t){return this._lexer.token.kind===t}expectToken(t){const i=this._lexer.token;if(i.kind===t)return this.advanceLexer(),i;throw rn(this._lexer.source,i.start,`Expected ${CF(t)}, found ${qp(i)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const i=this._lexer.token;if(i.kind!==O.NAME||i.value!==t)throw rn(this._lexer.source,i.start,`Expected "${t}", found ${qp(i)}.`);this.advanceLexer()}expectOptionalKeyword(t){const i=this._lexer.token;return i.kind===O.NAME&&i.value===t&&(this.advanceLexer(),!0)}unexpected(t){const i=t??this._lexer.token;return rn(this._lexer.source,i.start,`Unexpected ${qp(i)}.`)}any(t,i,n){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(n);)r.push(i.call(this));return r}optionalMany(t,i,n){if(this.expectOptionalToken(t)){const r=[];do{r.push(i.call(this))}while(!this.expectOptionalToken(n));return r}return[]}many(t,i,n){this.expectToken(t);const r=[];do{r.push(i.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(t,i){this.expectOptionalToken(t);const n=[];do{n.push(i.call(this))}while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,i=this._lexer.advance();if(void 0!==t&&i.kind!==O.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw rn(this._lexer.source,i.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function qp(e){const t=e.value;return CF(e.kind)+(null!=t?` "${t}"`:"")}function CF(e){return function XZ(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}(e)?`"${e}"`:e}var Gp=new Map,J0=new Map,DF=!0,Wp=!1;function EF(e){return e.replace(/[\s,]+/g," ").trim()}function fJ(e){var t=EF(e);if(!Gp.has(t)){var i=function lJ(e,t){return new $p(e,t).parseDocument()}(e,{experimentalFragmentVariables:Wp,allowLegacyFragmentVariables:Wp});if(!i||"Document"!==i.kind)throw new Error("Not a valid GraphQL document.");Gp.set(t,function hJ(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(r){var o=n[r];o&&"object"==typeof o&&t.add(o)})});var i=e.loc;return i&&(delete i.startToken,delete i.endToken),e}(function uJ(e){var t=new Set,i=[];return e.definitions.forEach(function(n){if("FragmentDefinition"===n.kind){var r=n.name.value,o=function dJ(e){return EF(e.source.body.substring(e.start,e.end))}(n.loc),s=J0.get(r);s&&!s.has(o)?DF&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||J0.set(r,s=new Set),s.add(o),t.has(o)||(t.add(o),i.push(n))}else i.push(n)}),k(k({},e),{definitions:i})}(i)))}return Gp.get(t)}function dc(e){for(var t=[],i=1;i(e().then(i=>{t.closed||(t.next(i),t.complete())},i=>{t.closed||t.error(i)}),()=>t.unsubscribe()))}(function(e){e.gql=Bd_gql,e.resetCaches=Bd_resetCaches,e.disableFragmentWarnings=Bd_disableFragmentWarnings,e.enableExperimentalFragmentVariables=Bd_enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Bd_disableExperimentalFragmentVariables})(dc||(dc={})),dc.default=dc;class vJ{constructor(t){wt(this,"zone",void 0),wt(this,"now",Date.now?Date.now:()=>+new Date),this.zone=t}schedule(t,i=0,n){return this.zone.run(()=>wK.schedule(t,i,n))}}function kF(e){return e[jr]=()=>e,e}function TF(e,t){return e.pipe(km(new vJ(t)))}function MF(e,t,i){return e&&typeof e[t]<"u"?e[t]:i}class wJ{constructor(t,i,n){wt(this,"obsQuery",void 0),wt(this,"valueChanges",void 0),wt(this,"queryId",void 0),this.obsQuery=t;const r=TF(Et(kF(this.obsQuery)),i);this.valueChanges=n.useInitialLoading?r.pipe(function yJ(e){return function(i){return new Me(function(r){const o=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:l,data:d}=o,{partialRefetch:u,fetchPolicy:h}=e.options,f=a||c;return u&&l&&(!d||0===Object.keys(d).length)&&"cache-only"!==h&&!s&&!f&&r.next({...o,loading:!0,networkStatus:rt.loading}),i.subscribe(r)})}}(this.obsQuery)):r,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(t){return this.obsQuery.refetch(t)}fetchMore(t){return this.obsQuery.fetchMore(t)}subscribeToMore(t){return this.obsQuery.subscribeToMore(t)}updateQuery(t){return this.obsQuery.updateQuery(t)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(t){return this.obsQuery.startPolling(t)}setOptions(t){return this.obsQuery.setOptions(t)}setVariables(t){return this.obsQuery.setVariables(t)}}const xJ=new M("APOLLO_FLAGS"),IF=new M("APOLLO_OPTIONS"),CJ=new M("APOLLO_NAMED_OPTIONS");class AF{constructor(t,i,n){wt(this,"ngZone",void 0),wt(this,"flags",void 0),wt(this,"_client",void 0),wt(this,"useInitialLoading",void 0),wt(this,"useMutationLoading",void 0),this.ngZone=t,this.flags=i,this._client=n,this.useInitialLoading=MF(i,"useInitialLoading",!1),this.useMutationLoading=MF(i,"useMutationLoading",!1)}watchQuery(t){return new wJ(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return SF(()=>this.ensureClient().query({...t}))}mutate(t){return function bJ(e,t){return t?e.pipe(tn({loading:!0}),J(i=>({...i,loading:!!i.loading}))):e.pipe(J(i=>({...i,loading:!1})))}(SF(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,i){const n=Et(kF(this.ensureClient().subscribe({...t})));return i&&!0!==i.useZone?n:TF(n,this.ngZone)}getClient(){return this.client}setClient(t){this.client=t}get client(){return this._client}set client(t){if(this._client)throw new Error("Client has been already defined");this._client=t}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let RF=(()=>{var e;class t extends AF{constructor(n,r,o,s){if(super(n,s),wt(this,"_ngZone",void 0),wt(this,"map",new Map),this._ngZone=n,r&&this.createDefault(r),o&&"object"==typeof o)for(let a in o)o.hasOwnProperty(a)&&this.create(o[a],a)}create(n,r){ew(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return ew(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new pF(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new AF(this._ngZone,this.flags,new pF(r)))}removeClient(n){ew(n)?this._client=void 0:this.map.delete(n)}}return e=t,wt(t,"\u0275fac",function(n){return new(n||e)(D(G),D(IF,8),D(CJ,8),D(xJ,8))}),wt(t,"\u0275prov",V({token:e,factory:e.\u0275fac})),t})();function ew(e){return!e||"default"===e}const DJ=[RF];let EJ=(()=>{var e;class t{}return e=t,wt(t,"\u0275fac",function(n){return new(n||e)}),wt(t,"\u0275mod",le({type:e})),wt(t,"\u0275inj",ae({providers:DJ})),t})();const $i=function SJ(e,...t){return dc(e,...t)},AJ=$i` - fragment TorrentContentSearchResult on TorrentContentSearchResult { - items { - ...TorrentContent - } - totalCount - hasNextPage - aggregations { - contentType { - value - label - count - } - torrentSource { - value - label - count - } - torrentTag { - value - label - count - } - torrentFileType { - value - label - count - } - language { - value - label - count - } - genre { - value - label - count - } - releaseYear { - value - label - count - } - videoResolution { - value - label - count - } - videoSource { - value - label - count - } - } -} - ${$i` - fragment TorrentContent on TorrentContent { - id - infoHash - contentType - title - torrent { - ...Torrent - } - content { - ...Content - } - languages { - id - name - } - episodes { - label - seasons { - season - episodes - } - } - video3d - videoCodec - videoModifier - videoResolution - videoSource - createdAt - updatedAt -} - ${$i` - fragment Torrent on Torrent { - infoHash - name - size - private - filesStatus - hasFilesInfo - singleFile - fileType - files { - ...TorrentFile - } - sources { - key - name - } - seeders - leechers - tagNames - magnetUri - createdAt - updatedAt -} - ${$i` - fragment TorrentFile on TorrentFile { - infoHash - index - path - size - fileType - createdAt - updatedAt -} - `}`} -${$i` - fragment Content on Content { - type - source - id - metadataSource { - key - name - } - title - releaseDate - releaseYear - overview - runtime - voteAverage - voteCount - originalLanguage { - id - name - } - attributes { - metadataSource { - key - name - } - source - key - value - createdAt - updatedAt - } - collections { - metadataSource { - key - name - } - type - source - id - name - createdAt - updatedAt - } - externalLinks { - metadataSource { - key - name - } - url - } - createdAt - updatedAt -} - `}`}`,RJ=$i` - mutation TorrentDelete($infoHashes: [Hash20!]!) { - torrent { - delete(infoHashes: $infoHashes) - } -} - `,OJ=$i` - mutation TorrentDeleteTags($infoHashes: [Hash20!], $tagNames: [String!]) { - torrent { - deleteTags(infoHashes: $infoHashes, tagNames: $tagNames) - } -} - `,FJ=$i` - mutation TorrentPutTags($infoHashes: [Hash20!]!, $tagNames: [String!]!) { - torrent { - putTags(infoHashes: $infoHashes, tagNames: $tagNames) - } -} - `,PJ=$i` - mutation TorrentSetTags($infoHashes: [Hash20!]!, $tagNames: [String!]!) { - torrent { - setTags(infoHashes: $infoHashes, tagNames: $tagNames) - } -} - `,NJ=$i` - query TorrentContentSearch($query: SearchQueryInput, $facets: TorrentContentFacetsInput) { - torrentContent { - search(query: $query, facets: $facets) { - ...TorrentContentSearchResult - } - } -} - ${AJ}`,LJ=$i` - query TorrentSuggestTags($query: SuggestTagsQueryInput!) { - torrent { - suggestTags(query: $query) { - suggestions { - name - count - } - } - } -} - `;let OF=(()=>{var e;class t{constructor(n){this.apollo=n}torrentContentSearch(n){return this.apollo.query({query:NJ,variables:n,fetchPolicy:uc}).pipe(J(r=>r.data.torrentContent.search))}torrentDelete(n){return this.apollo.mutate({mutation:RJ,variables:n,fetchPolicy:uc}).pipe(J(()=>{}))}torrentPutTags(n){return this.apollo.mutate({mutation:FJ,variables:n,fetchPolicy:uc}).pipe(J(()=>{}))}torrentSetTags(n){return this.apollo.mutate({mutation:PJ,variables:n,fetchPolicy:uc}).pipe(J(()=>{}))}torrentDeleteTags(n){return this.apollo.mutate({mutation:OJ,variables:n,fetchPolicy:uc}).pipe(J(()=>{}))}torrentSuggestTags(n){return this.apollo.query({query:LJ,variables:n,fetchPolicy:uc}).pipe(J(r=>r.data.torrent.suggestTags))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(RF))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();const uc="no-cache";function BJ(e,t){if(1&e){const i=Ut();y(0,"div",2)(1,"button",3),$("click",function(){return Ye(i),Ke(B().action())}),A(2),w()()}if(2&e){const i=B();x(2),Ue(" ",i.data.action," ")}}const VJ=["label"];function jJ(e,t){}const HJ=Math.pow(2,31)-1;class tw{constructor(t,i){this._overlayRef=i,this._afterDismissed=new Y,this._afterOpened=new Y,this._onAction=new Y,this._dismissedByAction=!1,this.containerInstance=t,t._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(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,HJ))}_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 FF=new M("MatSnackBarData");class Qp{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let zJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),UJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),$J=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),qJ=(()=>{var e;class t{constructor(n,r){this.snackBarRef=n,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(e=t).\u0275fac=function(n){return new(n||e)(m(tw),m(FF))},e.\u0275cmp=fe({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){1&n&&(y(0,"div",0),A(1),w(),R(2,BJ,3,1,"div",1)),2&n&&(x(1),Ue(" ",r.data.message,"\n"),x(1),E("ngIf",r.hasAction))},dependencies:[_i,g1,zJ,UJ,$J],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const GJ={snackBarState:ni("state",[qt("void, hidden",je({transform:"scale(0.8)",opacity:0})),qt("visible",je({transform:"scale(1)",opacity:1})),Bt("* => visible",Lt("150ms cubic-bezier(0, 0, 0.2, 1)")),Bt("* => void, * => hidden",Lt("75ms cubic-bezier(0.4, 0.0, 1, 1)",je({opacity:0})))])};let WJ=0,QJ=(()=>{var e;class t extends ey{constructor(n,r,o,s,a){super(),this._ngZone=n,this._elementRef=r,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=j(he),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Y,this._onExit=new Y,this._onEnter=new Y,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+WJ++,this.attachDomPortal=c=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();const r=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),r}attachTemplatePortal(n){this._assertNotAttached();const r=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),r}onAnimationEnd(n){const{fromState:r,toState:o}=n;if(("void"===o&&"void"!==r||"hidden"===o)&&this._completeExit(),"visible"===o){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Xe(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const n=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(o=>n.classList.add(o)):n.classList.add(r)),this._exposeToModals()}_exposeToModals(){const n=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{const r=n.getAttribute("aria-owns");if(r){const o=r.replace(this._liveElementId,"").trim();o.length>0?n.setAttribute("aria-owns",o):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(o=document.activeElement),n.removeAttribute("aria-hidden"),r.appendChild(n),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(G),m(W),m(Fe),m(nt),m(Qp))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(La,7),2&n){let o;H(o=z())&&(r._portalOutlet=o.first)}},features:[P]}),t})(),YJ=(()=>{var e;class t extends QJ{_afterPortalAttached(){super._afterPortalAttached();const n=this._label.nativeElement,r="mdc-snackbar__label";n.classList.toggle(r,!n.querySelector(`.${r}`))}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(1&n&&ke(VJ,7),2&n){let o;H(o=z())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(n,r){1&n&&gh("@state.done",function(s){return r.onAnimationEnd(s)}),2&n&&yh("@state",r._animationState)},features:[P],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){1&n&&(y(0,"div",0)(1,"div",1,2)(3,"div",3),R(4,jJ,0,0,"ng-template",4),w(),ie(5,"div"),w()()),2&n&&(x(5),de("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[La],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;--mdc-snackbar-container-shape:4px;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-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;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:[GJ.snackBarState]}}),t})(),PF=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ed,qf,vn,jf,ve,ve]}),t})();const NF=new M("mat-snack-bar-default-options",{providedIn:"root",factory:function KJ(){return new Qp}});let XJ=(()=>{var e;class t{get _openedSnackBarRef(){const n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,r,o,s,a,c){this._overlay=n,this._live=r,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}openFromComponent(n,r){return this._attach(n,r)}openFromTemplate(n,r){return this._attach(n,r)}open(n,r="",o){const s={...this._defaultConfig,...o};return s.data={message:n,action:r},s.announcementMessage===n&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,r){const s=jt.create({parent:r&&r.viewContainerRef&&r.viewContainerRef.injector||this._injector,providers:[{provide:Qp,useValue:r}]}),a=new $f(this.snackBarContainerComponent,r.viewContainerRef,s),c=n.attach(a);return c.instance.snackBarConfig=r,c.instance}_attach(n,r){const o={...new Qp,...this._defaultConfig,...r},s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new tw(a,s);if(n instanceof ct){const l=new co(n,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{const l=this._createInjector(o,c),d=new $f(n,void 0,l),u=a.attachComponentPortal(d);c.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ce(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(n,r){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),r.duration&&r.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(r.duration))}_createOverlay(n){const r=new Jl;r.direction=n.direction;let o=this._overlay.position().global();const s="rtl"===n.direction,a="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!s||"end"===n.horizontalPosition&&s,c=!a&&"center"!==n.horizontalPosition;return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),"top"===n.verticalPosition?o.top("0"):o.bottom("0"),r.positionStrategy=o,this._overlay.create(r)}_createInjector(n,r){return jt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:tw,useValue:r},{provide:FF,useValue:n.data}]})}}return(e=t).\u0275fac=function(n){return new(n||e)(D(wi),D(Bv),D(jt),D(Av),D(e,12),D(NF))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),ZJ=(()=>{var e;class t extends XJ{constructor(n,r,o,s,a,c){super(n,r,o,s,a,c),this.simpleSnackBarComponent=qJ,this.snackBarContainerComponent=YJ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return(e=t).\u0275fac=function(n){return new(n||e)(D(wi),D(Bv),D(jt),D(Av),D(e,12),D(NF))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:PF}),t})(),LF=(()=>{var e;class t{constructor(n){this.snackBar=n,this.expiry=1e4}addError(n,r=this.expiry){this.snackBar.open(n,"Dismiss",{duration:r,panelClass:["snack-bar-error"]})}}return(e=t).\u0275fac=function(n){return new(n||e)(D(ZJ))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})();class JJ{constructor(t,i){this._document=i;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){const t=this._textarea;let i=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),i=this._document.execCommand("copy"),n&&n.focus()}}catch{}return i}destroy(){const t=this._textarea;t&&(t.remove(),this._textarea=void 0)}}let eee=(()=>{var e;class t{constructor(n){this._document=n}copy(n){const r=this.beginCopy(n),o=r.copy();return r.destroy(),o}beginCopy(n){return new JJ(n,this._document)}}return(e=t).\u0275fac=function(n){return new(n||e)(D(he))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const tee=new M("CDK_COPY_TO_CLIPBOARD_CONFIG");let nee=(()=>{var e;class t{constructor(n,r,o){this._clipboard=n,this._ngZone=r,this.text="",this.attempts=1,this.copied=new U,this._pending=new Set,o&&null!=o.attempts&&(this.attempts=o.attempts)}copy(n=this.attempts){if(n>1){let r=n;const o=this._clipboard.beginCopy(this.text);this._pending.add(o);const s=()=>{const a=o.copy();a||! --r||this._destroyed?(this._currentTimeout=null,this._pending.delete(o),o.destroy(),this.copied.emit(a)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(s,1))};s()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(n=>n.destroy()),this._pending.clear(),this._destroyed=!0}}return(e=t).\u0275fac=function(n){return new(n||e)(m(eee),m(G),m(tee,8))},e.\u0275dir=T({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(n,r){1&n&&$("click",function(){return r.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),iee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();class ree extends Y{constructor(t=1/0,i=1/0,n=kv){super(),this._bufferSize=t,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,i)}next(t){const{isStopped:i,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;i||(n.push(t),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const i=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;sthis._resizeSubject.next(i)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Me(i=>{const n=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(Ve(i=>i.some(n=>n.target===t)),function oee(e,t,i){let n,r=!1;return e&&"object"==typeof e?({bufferSize:n=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:i}=e):n=e??1/0,iu({connector:()=>new ree(n,t,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),ce(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let aee=(()=>{var e;class t{constructor(){this._observers=new Map,this._ngZone=j(G)}ngOnDestroy(){for(const[,n]of this._observers)n.destroy();this._observers.clear()}observe(n,r){const o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new see(o)),this._observers.get(o).observe(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const cee=["notch"],lee=["matFormFieldNotchedOutline",""],dee=["*"],uee=["textField"],hee=["iconPrefixContainer"],fee=["textPrefixContainer"];function pee(e,t){1&e&&ie(0,"span",19)}function mee(e,t){if(1&e&&(y(0,"label",17),X(1,1),R(2,pee,1,0,"span",18),w()),2&e){const i=B(2);E("floating",i._shouldLabelFloat())("monitorResize",i._hasOutline())("id",i._labelId),de("for",i._control.id),x(2),E("ngIf",!i.hideRequiredMarker&&i._control.required)}}function gee(e,t){1&e&&R(0,mee,3,5,"label",16),2&e&&E("ngIf",B()._hasFloatingLabel())}function _ee(e,t){1&e&&ie(0,"div",20)}function bee(e,t){}function vee(e,t){1&e&&R(0,bee,0,0,"ng-template",22),2&e&&(B(2),E("ngTemplateOutlet",hn(1)))}function yee(e,t){if(1&e&&(y(0,"div",21),R(1,vee,1,1,"ng-template",9),w()),2&e){const i=B();E("matFormFieldNotchedOutlineOpen",i._shouldLabelFloat()),x(1),E("ngIf",!i._forceDisplayInfixLabel())}}function wee(e,t){1&e&&(y(0,"div",23,24),X(2,2),w())}function xee(e,t){1&e&&(y(0,"div",25,26),X(2,3),w())}function Cee(e,t){}function Dee(e,t){1&e&&R(0,Cee,0,0,"ng-template",22),2&e&&(B(),E("ngTemplateOutlet",hn(1)))}function Eee(e,t){1&e&&(y(0,"div",27),X(1,4),w())}function See(e,t){1&e&&(y(0,"div",28),X(1,5),w())}function kee(e,t){1&e&&ie(0,"div",29)}function Tee(e,t){1&e&&(y(0,"div",30),X(1,6),w()),2&e&&E("@transitionMessages",B()._subscriptAnimationState)}function Mee(e,t){if(1&e&&(y(0,"mat-hint",34),A(1),w()),2&e){const i=B(2);E("id",i._hintLabelId),x(1),bt(i.hintLabel)}}function Iee(e,t){if(1&e&&(y(0,"div",31),R(1,Mee,2,2,"mat-hint",32),X(2,7),ie(3,"div",33),X(4,8),w()),2&e){const i=B();E("@transitionMessages",i._subscriptAnimationState),x(1),E("ngIf",i.hintLabel)}}const Aee=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ree=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let nw=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-label"]]}),t})();const Oee=new M("MatError");let Fee=0,BF=(()=>{var e;class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Fee++}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){2&n&&(pi("id",r.id),de("align",null),se("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"}}),t})();const Pee=new M("MatPrefix"),VF=new M("MatSuffix");let Nee=(()=>{var e;class t{constructor(){this._isText=!1}set _isTextSelector(n){this._isText=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[Z([{provide:VF,useExisting:e}])]}),t})();const jF=new M("FloatingLabelParent");let HF=(()=>{var e;class t{get floating(){return this._floating}set floating(n){this._floating=n,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(n){this._monitorResize=n,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(n){this._elementRef=n,this._floating=!1,this._monitorResize=!1,this._resizeObserver=j(aee),this._ngZone=j(G),this._parent=j(jF),this._resizeSubscription=new Ae}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Lee(e){if(null!==e.offsetParent)return e.scrollWidth;const i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);const n=i.scrollWidth;return i.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W))},e.\u0275dir=T({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){2&n&&se("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}}),t})();const zF="mdc-line-ripple--active",Yp="mdc-line-ripple--deactivating";let UF=(()=>{var e;class t{constructor(n,r){this._elementRef=n,this._handleTransitionEnd=o=>{const s=this._elementRef.nativeElement.classList,a=s.contains(Yp);"opacity"===o.propertyName&&a&&s.remove(zF,Yp)},r.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const n=this._elementRef.nativeElement.classList;n.remove(Yp),n.add(zF)}deactivate(){this._elementRef.nativeElement.classList.add(Yp)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(G))},e.\u0275dir=T({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),$F=(()=>{var e;class t{constructor(n,r){this._elementRef=n,this._ngZone=r,this.open=!1}ngAfterViewInit(){const n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){this._notch.nativeElement.style.width=this.open&&n?`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(G))},e.\u0275cmp=fe({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(1&n&&ke(cee,5),2&n){let o;H(o=z())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){2&n&&se("mdc-notched-outline--notched",r.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:lee,ngContentSelectors:dee,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(n,r){1&n&&(ze(),ie(0,"div",0),y(1,"div",1,2),X(3),w(),ie(4,"div",3))},encapsulation:2,changeDetection:0}),t})();const Bee={transitionMessages:ni("transitionMessages",[qt("enter",je({opacity:1,transform:"translateY(0%)"})),Bt("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),Lt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Kp=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e}),t})();const Vd=new M("MatFormField"),Vee=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS");let qF=0,QF=(()=>{var e;class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=Q(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){const r=this._appearance;this._appearance=n||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(n){this._hintLabel=n,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(n){this._explicitFormFieldControl=n}constructor(n,r,o,s,a,c,l,d){this._elementRef=n,this._changeDetectorRef=r,this._ngZone=o,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+qF++,this._hintLabelId="mat-mdc-hint-"+qF++,this._subscriptAnimationState="",this._destroyed=new Y,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const n=this._control;n.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${n.controlType}`),n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),n.ngControl&&n.ngControl.valueChanges&&n.ngControl.valueChanges.pipe(ce(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(n=>!n._isText),this._hasTextPrefix=!!this._prefixChildren.find(n=>n._isText),this._hasIconSuffix=!!this._suffixChildren.find(n=>!n._isText),this._hasTextSuffix=!!this._suffixChildren.find(n=>n._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ot(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ce(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(ce(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(n){const r=this._control?this._control.ngControl:null;return r&&r[n]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&n.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const r=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,o=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;r?n.push(r.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const n=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(n.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0;n.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${s+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const n=this._elementRef.nativeElement;if(n.getRootNode){const r=n.getRootNode();return r&&r!==n}return document.documentElement.contains(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(G),m(fn),m(nt),m(Vee,8),m(_t,8),m(he))},e.\u0275cmp=fe({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,nw,5),Ee(o,nw,7),Ee(o,Kp,5),Ee(o,Pee,5),Ee(o,VF,5),Ee(o,Oee,5),Ee(o,BF,5)),2&n){let s;H(s=z())&&(r._labelChildNonStatic=s.first),H(s=z())&&(r._labelChildStatic=s.first),H(s=z())&&(r._formFieldControl=s.first),H(s=z())&&(r._prefixChildren=s),H(s=z())&&(r._suffixChildren=s),H(s=z())&&(r._errorChildren=s),H(s=z())&&(r._hintChildren=s)}},viewQuery:function(n,r){if(1&n&&(ke(uee,5),ke(hee,5),ke(fee,5),ke(HF,5),ke($F,5),ke(UF,5)),2&n){let o;H(o=z())&&(r._textField=o.first),H(o=z())&&(r._iconPrefixContainer=o.first),H(o=z())&&(r._textPrefixContainer=o.first),H(o=z())&&(r._floatingLabel=o.first),H(o=z())&&(r._notchedOutline=o.first),H(o=z())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){2&n&&se("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Z([{provide:Vd,useExisting:e},{provide:jF,useExisting:e}])],ngContentSelectors:Ree,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(n,r){1&n&&(ze(Aee),R(0,gee,1,1,"ng-template",null,0,kh),y(2,"div",1,2),$("click",function(s){return r._control.onContainerClick(s)}),R(4,_ee,1,0,"div",3),y(5,"div",4),R(6,yee,2,2,"div",5),R(7,wee,3,0,"div",6),R(8,xee,3,0,"div",7),y(9,"div",8),R(10,Dee,1,1,"ng-template",9),X(11),w(),R(12,Eee,2,0,"div",10),R(13,See,2,0,"div",11),w(),R(14,kee,1,0,"div",12),w(),y(15,"div",13),R(16,Tee,2,1,"div",14),R(17,Iee,5,2,"div",15),w()),2&n&&(x(2),se("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),x(2),E("ngIf",!r._hasOutline()&&!r._control.disabled),x(2),E("ngIf",r._hasOutline()),x(1),E("ngIf",r._hasIconPrefix),x(1),E("ngIf",r._hasTextPrefix),x(2),E("ngIf",!r._hasOutline()||r._forceDisplayInfixLabel()),x(2),E("ngIf",r._hasTextSuffix),x(1),E("ngIf",r._hasIconSuffix),x(1),E("ngIf",!r._hasOutline()),x(1),se("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),E("ngSwitch",r._getDisplayedMessages()),x(1),E("ngSwitchCase","error"),x(1),E("ngSwitchCase","hint"))},dependencies:[_i,QT,Sa,Qh,BF,HF,$F,UF],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Bee.transitionMessages]},changeDetection:0}),t})(),jd=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,vn,Mv,ve]}),t})();const zee=["panel"];function Uee(e,t){if(1&e){const i=Ut();y(0,"div",0,1),$("@panelAnimation.done",function(r){return Ye(i),Ke(B()._animationDone.next(r))}),X(2),w()}if(2&e){const i=t.id,n=B();E("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),de("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}const $ee=["*"],qee=ni("panelAnimation",[qt("void, hidden",je({opacity:0,transform:"scaleY(0.8)"})),Bt(":enter, hidden => visible",[Q$([Lt("0.03s linear",je({opacity:1})),Lt("0.12s cubic-bezier(0, 0, 0.2, 1)",je({transform:"scaleY(1)"}))])]),Bt(":leave, visible => hidden",[Lt("0.075s linear",je({opacity:0}))])]);let Gee=0;class Wee{constructor(t,i){this.source=t,this.option=i}}const Qee=so(class{}),YF=new M("mat-autocomplete-default-options",{providedIn:"root",factory:function Yee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Kee=(()=>{var e;class t extends Qee{get isOpen(){return this._isOpen&&this.showPanel}_setColor(n){this._color=n,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(n){this._autoActiveFirstOption=Q(n)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(n){this._autoSelectActiveOption=Q(n)}get requireSelection(){return this._requireSelection}set requireSelection(n){this._requireSelection=Q(n)}set classList(n){this._classList=n&&n.length?function u7(e,t=/\s+/){const i=[];if(null!=e){const n=Array.isArray(e)?e:`${e}`.split(t);for(const r of n){const o=`${r}`.trim();o&&i.push(o)}}return i}(n).reduce((r,o)=>(r[o]=!0,r),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(n,r,o,s){super(),this._changeDetectorRef=n,this._elementRef=r,this._defaults=o,this._activeOptionChanges=Ae.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new U,this.opened=new U,this.closed=new U,this.optionActivated=new U,this._classList={},this.id="mat-autocomplete-"+Gee++,this.inertGroups=s?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption,this._requireSelection=!!o.requireSelection}ngAfterContentInit(){this._keyManager=new NI(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(n=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[n]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(n){this.panel&&(this.panel.nativeElement.scrollTop=n)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(n){const r=new Wee(this,n);this.optionSelected.emit(r)}_getPanelAriaLabelledby(n){return this.ariaLabel?null:this.ariaLabelledby?(n?n+" ":"")+this.ariaLabelledby:n}_setVisibilityClasses(n){n[this._visibleClass]=this.showPanel,n[this._hiddenClass]=!this.showPanel}_setThemeClasses(n){n["mat-primary"]="primary"===this._color,n["mat-warn"]="warn"===this._color,n["mat-accent"]="accent"===this._color}_skipPredicate(n){return n.disabled}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe),m(W),m(YF),m(nt))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&(ke(ct,7),ke(zee,5)),2&n){let o;H(o=z())&&(r.template=o.first),H(o=z())&&(r.panel=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[P]}),t})(),Xee=(()=>{var e;class t extends Kee{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new U,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=Q(n),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const n of this.options)n._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(n){return!1}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,zv,5),Ee(o,Nf,5)),2&n){let s;H(s=z())&&(r.optionGroups=s),H(s=z())&&(r.options=s)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Z([{provide:Hv,useExisting:e}]),P],ngContentSelectors:$ee,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(n,r){1&n&&(ze(),R(0,Uee,3,5,"ng-template"))},dependencies:[Ea],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[qee]},changeDetection:0}),t})();const Zee={provide:Gn,useExisting:He(()=>XF),multi:!0},KF=new M("mat-autocomplete-scroll-strategy"),ete={provide:KF,deps:[wi],useFactory:function Jee(e){return()=>e.scrollStrategies.reposition()}};let tte=(()=>{var e;class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(n){this._autocompleteDisabled=Q(n)}constructor(n,r,o,s,a,c,l,d,u,h,f){this._element=n,this._overlay=r,this._viewContainerRef=o,this._zone=s,this._changeDetectorRef=a,this._dir=l,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ae.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Y,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Kf(()=>{const p=this.autocomplete?this.autocomplete.options:null;return p?p.changes.pipe(tn(p),Vt(()=>Ot(...p.map(g=>g.onSelectionChange)))):this._zone.onStable.pipe(Xe(1),Vt(()=>this.optionSelections))}),this._handlePanelKeydown=p=>{(27===p.keyCode&&!An(p)||38===p.keyCode&&An(p,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),p.stopPropagation(),p.preventDefault())},this._trackedModal=null,this._scrollStrategy=c}ngAfterViewInit(){const n=this._getWindow();typeof n<"u"&&this._zone.runOutsideAngular(()=>n.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const n=this._getWindow();typeof n<"u"&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ot(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ve(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ve(()=>this._overlayAttached)):re()).pipe(J(n=>n instanceof e1?n:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ot(Vi(this._document,"click"),Vi(this._document,"auxclick"),Vi(this._document,"touchend")).pipe(Ve(n=>{const r=Ir(n),o=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&r!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(r))&&(!s||!s.contains(r))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(r)}))}writeValue(n){Promise.resolve(null).then(()=>this._assignOptionValue(n))}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this._element.nativeElement.disabled=n}_handleKeydown(n){const r=n.keyCode,o=An(n);if(27===r&&!o&&n.preventDefault(),this.activeOption&&13===r&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,a=38===r||40===r;9===r||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(n){let r=n.target,o=r.value;"number"===r.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),o||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(n=!1){this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ot(this._zone.onStable.pipe(Xe(1)),this.autocomplete.options.changes.pipe(it(()=>this._positionStrategy.reapplyLastPosition()),Zv(0))).pipe(Vt(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),Xe(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this._valueOnOpen=this._element.nativeElement.value,this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(n){const r=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n;this._updateNativeInputValue(r??"")}_updateNativeInputValue(n){this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(n){const r=this.autocomplete,o=n?n.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),r._emitSelectEvent(o),this._element.nativeElement.focus()):r.requireSelection&&this._element.nativeElement.value!==this._valueOnOpen&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),r._animationDone?r._animationDone.pipe(Xe(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(n,r){this.autocomplete?.options?.forEach(o=>{o!==n&&o.selected&&o.deselect(r)})}_attachOverlay(){let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new co(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const n=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=n.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=n.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Jl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}_setStrategyPositions(n){const r=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?s:"below"===this.position?r:[...r,...s],n.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const n=this.autocomplete;if(n.autoActiveFirstOption){let r=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!n)return;const r=this.autocomplete.id;this._trackedModal&&ql(this._trackedModal,"aria-owns",r),Rv(n,"aria-owns",r),this._trackedModal=n}_clearFromModal(){this._trackedModal&&(ql(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(wi),m(pt),m(G),m(Fe),m(KF),m(fn,8),m(Vd,9),m(he,8),m(Rr),m(YF,8))},e.\u0275dir=T({type:e,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kt]}),t})(),XF=(()=>{var e;class t extends tte{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,r){1&n&&$("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(s){return r._handleInput(s)})("keydown",function(s){return r._handleKeydown(s)})("click",function(){return r._handleClick()}),2&n&&de("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||null==r.autocomplete?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Z([Zee]),P]}),t})(),nte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[ete],imports:[ed,Yl,ve,vn,lo,Yl,ve]}),t})();const ite=["*"],cte=new M("MAT_CARD_CONFIG");let ZF=(()=>{var e;class t{constructor(n){this.appearance=n?.appearance||"raised"}}return(e=t).\u0275fac=function(n){return new(n||e)(m(cte,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,r){2&n&&se("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:ite,decls:1,vars:0,template:function(n,r){1&n&&(ze(),X(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{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;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),t})(),JF=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),t})(),eP=(()=>{var e;class t{constructor(){this.align="start"}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-mdc-card-actions-align-end","end"===r.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),hte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,vn,ve]}),t})();const fte=["input"],pte=["label"],mte=["*"],gte=new M("mat-checkbox-default-options",{providedIn:"root",factory:tP});function tP(){return{color:"accent",clickAction:"check-indeterminate"}}const _te={provide:Gn,useExisting:He(()=>iP),multi:!0};class bte{}let vte=0;const nP=tP(),yte=ns(ts(so(es(class{constructor(e){this._elementRef=e}}))));let wte=(()=>{var e;class t extends yte{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(n){this._required=Q(n)}constructor(n,r,o,s,a,c,l){super(r),this._changeDetectorRef=o,this._ngZone=s,this._animationMode=c,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new U,this.indeterminateChange=new U,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||nP,this.color=this.defaultColor=this._options.color||nP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${n}${++vte}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(n){const r=Q(n);r!=this.checked&&(this._checked=r,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(n){const r=Q(n);r!==this.disabled&&(this._disabled=r,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(n){const r=n!=this._indeterminate;this._indeterminate=Q(n),r&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(n){this.checked=!!n}registerOnChange(n){this._controlValueAccessorChangeFn=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n}_transitionCheckState(n){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(r!==n&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,n),this._currentCheckState=n,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const n=this._options?.clickAction;this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(n){n.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(n,r){if("NoopAnimations"===this._animationMode)return"";switch(n){case 0:if(1===r)return this._animationClasses.uncheckedToChecked;if(3==r)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===r?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===r?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===r?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(n){const r=this._inputElement;r&&(r.nativeElement.indeterminate=n)}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&(ke(fte,5),ke(pte,5),ke(ao,5)),2&n){let o;H(o=z())&&(r._inputElement=o.first),H(o=z())&&(r._labelElement=o.first),H(o=z())&&(r.ripple=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[P]}),t})(),iP=(()=>{var e;class t extends wte{constructor(n,r,o,s,a,c){super("mat-mdc-checkbox-",n,r,o,s,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(n){const r=new bte;return r.source=this,r.checked=n,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(n){n.target&&this._labelElement.nativeElement.contains(n.target)&&n.stopPropagation()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(G),ui("tabindex"),m(_t,8),m(gte,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(n,r){2&n&&(pi("id",r.id),de("tabindex",null)("aria-label",null)("aria-labelledby",null),se("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Z([_te]),P],ngContentSelectors:mte,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(n,r){if(1&n&&(ze(),y(0,"div",0),$("click",function(s){return r._preventBubblingFromLabel(s)}),y(1,"div",1,2)(3,"div",3),$("click",function(){return r._onTouchTargetClick()}),w(),y(4,"input",4,5),$("blur",function(){return r._onBlur()})("click",function(){return r._onInputClick()})("change",function(s){return r._onInteractionEvent(s)}),w(),ie(6,"div",6),y(7,"div",7),zs(),y(8,"svg",8),ie(9,"path",9),w(),ag(),ie(10,"div",10),w(),ie(11,"div",11),w(),y(12,"label",12,13),X(14),w()()),2&n){const o=hn(2);se("mdc-form-field--align-end","before"==r.labelPosition),x(4),se("mdc-checkbox--selected",r.checked),E("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.tabIndex),de("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("name",r.name)("value",r.value),x(7),E("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),x(1),E("for",r.inputId)}},dependencies:[ao],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__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%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__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-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),rP=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})(),Dte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,is,rP,ve,rP]}),t})();function Ete(e,t){1&e&&(y(0,"span",7),X(1,1),w())}function Ste(e,t){1&e&&(y(0,"span",8),X(1,2),w())}const oP=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],sP=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Mte(e,t){1&e&&(Ht(0),ie(1,"span",8),zt())}function Ite(e,t){1&e&&(y(0,"span",9),X(1),w())}function Ate(e,t){1&e&&(Ht(0),X(1,1),zt())}function Rte(e,t){1&e&&X(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function Ote(e,t){1&e&&ie(0,"span",12)}function Fte(e,t){if(1&e&&(Ht(0),R(1,Rte,1,0,"ng-content",10),R(2,Ote,1,0,"ng-template",null,11,kh),zt()),2&e){const i=hn(3),n=B();x(1),E("ngIf",n.contentEditInput)("ngIfElse",i)}}function Pte(e,t){1&e&&(y(0,"span",13),X(1,3),w())}const Nte=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Lte=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],iw=["*"],Xp=new M("mat-chips-default-options"),rw=new M("MatChipAvatar"),ow=new M("MatChipTrailingIcon"),sw=new M("MatChipRemove"),Zp=new M("MatChip");class Bte{}const Vte=ns(Bte,-1);let hc=(()=>{var e;class t extends Vte{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(n){this._disabled=Q(n)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(n,r){super(),this._elementRef=n,this._parentChip=r,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(n){!this.disabled&&this.isInteractive&&this._isPrimary&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Zp))},e.\u0275dir=T({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,r){1&n&&$("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(de("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),se("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[P]}),t})(),lP=(()=>{var e;class t extends hc{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(n){this.disabled||(n.stopPropagation(),n.preventDefault(),this._parentChip.remove())}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!this.disabled&&(n.stopPropagation(),n.preventDefault(),this._parentChip.remove())}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,r){2&n&&de("aria-hidden",null)},features:[Z([{provide:sw,useExisting:e}]),P]}),t})(),zte=0;const Ute=ns(ts(so(es(class{constructor(e){this._elementRef=e}})),"primary"),-1);let vs=(()=>{var e;class t extends Ute{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(n){this._value=n}get removable(){return this._removable}set removable(n){this._removable=Q(n)}get highlighted(){return this._highlighted}set highlighted(n){this._highlighted=Q(n)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}constructor(n,r,o,s,a,c,l,d){super(r),this._changeDetectorRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=l,this._onFocus=new Y,this._onBlur=new Y,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+zte++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new U,this.destroyed=new U,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=j(a1),this._document=a,this._animationsDisabled="NoopAnimations"===c,null!=d&&(this.tabIndex=parseInt(d)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const n=this._elementRef.nativeElement;this._isBasicChip=n.hasAttribute(this.basicChipAttrName)||n.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ot(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(n){(8===n.keyCode||46===n.keyCode)&&(n.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(n){return this._getActions().find(r=>{const o=r._elementRef.nativeElement;return o===n||o.contains(n)})}_getActions(){const n=[];return this.primaryAction&&n.push(this.primaryAction),this.removeIcon&&n.push(this.removeIcon),this.trailingIcon&&n.push(this.trailingIcon),n}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{const r=null!==n;r!==this._hasFocusInternal&&(this._hasFocusInternal=r,r?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe),m(W),m(G),m(ar),m(he),m(_t,8),m(Pf,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,rw,5),Ee(o,ow,5),Ee(o,sw,5),Ee(o,rw,5),Ee(o,ow,5),Ee(o,sw,5)),2&n){let s;H(s=z())&&(r.leadingIcon=s.first),H(s=z())&&(r.trailingIcon=s.first),H(s=z())&&(r.removeIcon=s.first),H(s=z())&&(r._allLeadingIcons=s),H(s=z())&&(r._allTrailingIcons=s),H(s=z())&&(r._allRemoveIcons=s)}},viewQuery:function(n,r){if(1&n&&ke(hc,5),2&n){let o;H(o=z())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._handleKeydown(s)}),2&n&&(pi("id",r.id),de("role",r.role)("tabindex",r.role?r.tabIndex:null)("aria-label",r.ariaLabel),se("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Z([{provide:Zp,useExisting:e}]),P],ngContentSelectors:sP,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(ze(oP),ie(0,"span",0),y(1,"span",1)(2,"span",2),R(3,Ete,2,0,"span",3),y(4,"span",4),X(5),ie(6,"span",5),w()()(),R(7,Ste,2,0,"span",6)),2&n&&(x(2),E("isInteractive",!1),x(1),E("ngIf",r.leadingIcon),x(4),E("ngIf",r._hasTrailingIcon()))},dependencies:[_i,hc],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),Jp=(()=>{var e;class t{constructor(n,r){this._elementRef=n,this._document=r}initialize(n){this.getNativeElement().focus(),this.setValue(n)}getNativeElement(){return this._elementRef.nativeElement}setValue(n){this.getNativeElement().textContent=n,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const n=this._document.createRange();n.selectNodeContents(this.getNativeElement()),n.collapse(!1);const r=window.getSelection();r.removeAllRanges(),r.addRange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(he))},e.\u0275dir=T({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),t})(),aw=(()=>{var e;class t extends vs{constructor(n,r,o,s,a,c,l,d){super(n,r,o,s,a,c,l,d),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new U,this._isEditing=!1,this.role="row",this._onBlur.pipe(ce(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(n){13!==n.keyCode||this.disabled?this._isEditing?n.stopPropagation():super._handleKeydown(n):this._isEditing?(n.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(n)}_handleDoubleclick(n){!this.disabled&&this.editable&&this._startEditing(n)}_startEditing(n){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(n.target)===this.removeIcon)return;const r=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(r),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe),m(W),m(G),m(ar),m(he),m(_t,8),m(Pf,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,r,o){if(1&n&&Ee(o,Jp,5),2&n){let s;H(s=z())&&(r.contentEditInput=s.first)}},viewQuery:function(n,r){if(1&n&&ke(Jp,5),2&n){let o;H(o=z())&&(r.defaultEditInput=o.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,r){1&n&&$("focus",function(s){return r._handleFocus(s)})("dblclick",function(s){return r._handleDoubleclick(s)}),2&n&&(pi("id",r.id),de("tabindex",r.disabled?null:-1)("aria-label",null)("aria-description",null)("role",r.role),se("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-editing",r._isEditing)("mat-mdc-chip-editable",r.editable)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Z([{provide:vs,useExisting:e},{provide:Zp,useExisting:e}]),P],ngContentSelectors:Lte,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(ze(Nte),R(0,Mte,2,0,"ng-container",0),y(1,"span",1),R(2,Ite,2,0,"span",2),y(3,"span",3),R(4,Ate,2,0,"ng-container",4),R(5,Fte,4,2,"ng-container",4),ie(6,"span",5),w()(),R(7,Pte,2,0,"span",6),y(8,"span",7),A(9),w()),2&n&&(E("ngIf",!r._isEditing),x(1),E("tabIndex",r.tabIndex)("disabled",r.disabled),de("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),x(1),E("ngIf",r.leadingIcon),x(1),E("ngSwitch",r._isEditing),x(1),E("ngSwitchCase",!1),x(1),E("ngSwitchCase",!0),x(2),E("ngIf",r._hasTrailingIcon()),x(1),E("id",r._ariaDescriptionId),x(1),bt(r.ariaDescription))},dependencies:[_i,Sa,Qh,hc,Jp],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();class $te{constructor(t){}}const qte=ns($te);let em=(()=>{var e;class t extends qte{get chipFocusChanges(){return this._getChipStream(n=>n._onFocus)}get chipDestroyedChanges(){return this._getChipStream(n=>n.destroyed)}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(n){this._explicitRole=n}get focused(){return this._hasFocusedChip()}constructor(n,r,o){super(n),this._elementRef=n,this._changeDetectorRef=r,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Y,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new Cr}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(n=>n._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(n=>{n.disabled=this._disabled,n._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(n){this._originatesFromChip(n)&&this._keyManager.onKeydown(n)}_isValidIndex(n){return n>=0&&nthis.tabIndex=n)}}_getChipStream(n){return this._chips.changes.pipe(tn(null),Vt(()=>Ot(...this._chips.map(n))))}_originatesFromChip(n){let r=n.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-mdc-chip"))return!0;r=r.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(tn(this._chips)).subscribe(n=>{const r=[];n.forEach(o=>o._getActions().forEach(s=>r.push(s))),this._chipActions.reset(r),this._chipActions.notifyOnChanges()}),this._keyManager=new Pv(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(n=>this._skipPredicate(n)),this.chipFocusChanges.pipe(ce(this._destroyed)).subscribe(({chip:n})=>{const r=n._getSourceAction(document.activeElement);r&&this._keyManager.updateActiveItem(r)}),this._dir?.change.pipe(ce(this._destroyed)).subscribe(n=>this._keyManager.withHorizontalOrientation(n))}_skipPredicate(n){return!n.isInteractive||n.disabled}_trackChipSetChanges(){this._chips.changes.pipe(tn(null),ce(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(ce(this._destroyed)).subscribe(n=>{const o=this._chips.toArray().indexOf(n.chip);this._isValidIndex(o)&&n.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const n=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),r=this._chips.toArray()[n];r.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():r.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(fn,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,vs,5),2&n){let s;H(s=z())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._handleKeydown(s)}),2&n&&de("role",r.role)},inputs:{disabled:"disabled",role:"role"},features:[P],ngContentSelectors:iw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(ze(),y(0,"div",0),X(1),w())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),t})();class Qte{constructor(t,i){this.source=t,this.value=i}}class Yte extends em{constructor(t,i,n,r,o,s,a){super(t,i,n),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=s,this.ngControl=a,this.stateChanges=new Y}}const Kte=jv(Yte);let hP=(()=>{var e;class t extends Kte{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(n){this._disabled=Q(n),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(n){this._placeholder=n,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ay.required)??!1}set required(n){this._required=Q(n),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(n){this._value=n}get chipBlurChanges(){return this._getChipStream(n=>n._onBlur)}constructor(n,r,o,s,a,c,l){super(n,r,o,c,s,a,l),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new U,this.valueChange=new U,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(ce(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Ot(this.chipFocusChanges,this._chips.changes).pipe(ce(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(n){this._chipInput=n,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(n){!this.disabled&&!this._originatesFromChip(n)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(n){this._ariaDescribedbyIds=n,this._chipInput?.setDescribedByIds(n)}writeValue(n){this._value=n}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(n){9===n.keyCode?this._chipInput.focused&&An(n,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(n.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(n),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const n=this._chips.length?this._chips.toArray().map(r=>r.value):[];this._value=n,this.change.emit(new Qte(this,n)),this.valueChange.emit(n),this._onChange(n),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(fn,8),m(Ya,8),m(Xa,8),m(Ff),m(Hi,10))},e.\u0275cmp=fe({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,aw,5),2&n){let s;H(s=z())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,r){1&n&&$("focus",function(){return r.focus()})("blur",function(){return r._blur()}),2&n&&(pi("tabIndex",r._chips&&0===r._chips.length?-1:r.tabIndex),de("role",r.role)("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState),se("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-invalid",r.errorState)("mat-mdc-chip-list-required",r.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Z([{provide:Kp,useExisting:e}]),P],ngContentSelectors:iw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(ze(),y(0,"div",0),X(1),w())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),t})(),Xte=0,fP=(()=>{var e;class t{set chipGrid(n){n&&(this._chipGrid=n,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(n){this._addOnBlur=Q(n)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(n){this._disabled=Q(n)}get empty(){return!this.inputElement.value}constructor(n,r,o){this._elementRef=n,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new U,this.placeholder="",this.id="mat-mdc-chip-list-input-"+Xte++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=r.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(n){if(n){if(8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}_keyup(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(n){(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),n?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(n){const r=this._elementRef.nativeElement;n.length?r.setAttribute("aria-describedby",n.join(" ")):r.removeAttribute("aria-describedby")}_isSeparatorKey(n){return!An(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Xp),m(Vd,8))},e.\u0275dir=T({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._keydown(s)})("keyup",function(s){return r._keyup(s)})("blur",function(){return r._blur()})("focus",function(){return r._focus()})("input",function(){return r._onInput()}),2&n&&(pi("id",r.id),de("disabled",r.disabled||null)("placeholder",r.placeholder||null)("aria-invalid",r._chipGrid&&r._chipGrid.ngControl?r._chipGrid.ngControl.invalid:null)("aria-required",r._chipGrid&&r._chipGrid.required||null)("required",r._chipGrid&&r._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[kt]}),t})(),Zte=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[Ff,{provide:Xp,useValue:{separatorKeyCodes:[13]}}],imports:[ve,vn,is,ve]}),t})(),Jte=(()=>{var e;class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(n){this._vertical=Q(n)}get inset(){return this._inset}set inset(n){this._inset=Q(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,r){2&n&&(de("aria-orientation",r.vertical?"vertical":"horizontal"),se("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,r){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t})(),ene=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,ve]}),t})();const pP=new M("CdkAccordion");let tne=0,nne=(()=>{var e;class t{get expanded(){return this._expanded}set expanded(n){n=Q(n),this._expanded!==n&&(this._expanded=n,this.expandedChange.emit(n),n?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n)}constructor(n,r,o){this.accordion=n,this._changeDetectorRef=r,this._expansionDispatcher=o,this._openCloseAllSubscription=Ae.EMPTY,this.closed=new U,this.opened=new U,this.destroyed=new U,this.expandedChange=new U,this.id="cdk-accordion-child-"+tne++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(n=>{this.disabled||(this.expanded=n)})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pP,12),m(Fe),m(Jy))},e.\u0275dir=T({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Z([{provide:pP,useValue:void 0}])]}),t})(),ine=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const rne=["body"];function one(e,t){}const sne=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ane=["mat-expansion-panel-header","*","mat-action-row"];function cne(e,t){1&e&&ie(0,"span",2),2&e&&E("@indicatorRotate",B()._getExpandedState())}const lne=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],dne=["mat-panel-title","mat-panel-description","*"],mP=new M("MAT_ACCORDION"),gP="225ms cubic-bezier(0.4,0.0,0.2,1)",_P={indicatorRotate:ni("indicatorRotate",[qt("collapsed, void",je({transform:"rotate(0deg)"})),qt("expanded",je({transform:"rotate(180deg)"})),Bt("expanded <=> collapsed, void => collapsed",Lt(gP))]),bodyExpansion:ni("bodyExpansion",[qt("collapsed, void",je({height:"0px",visibility:"hidden"})),qt("expanded",je({height:"*",visibility:""})),Bt("expanded <=> collapsed, void => collapsed",Lt(gP))])},bP=new M("MAT_EXPANSION_PANEL");let une=(()=>{var e;class t{constructor(n,r){this._template=n,this._expansionPanel=r}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(bP,8))},e.\u0275dir=T({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),hne=0;const vP=new M("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let yP=(()=>{var e;class t extends nne{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(n){this._hideToggle=Q(n)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(n){this._togglePosition=n}constructor(n,r,o,s,a,c,l){super(n,r,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new U,this.afterCollapse=new U,this._inputChanges=new Y,this._headerId="mat-expansion-panel-header-"+hne++,this._bodyAnimationDone=new Y,this.accordion=n,this._document=a,this._bodyAnimationDone.pipe(Is((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(tn(null),Ve(()=>this.expanded&&!this._portal),Xe(1)).subscribe(()=>{this._portal=new co(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(n){this._inputChanges.next(n)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const n=this._document.activeElement,r=this._body.nativeElement;return n===r||r.contains(n)}return!1}}return(e=t).\u0275fac=function(n){return new(n||e)(m(mP,12),m(Fe),m(Jy),m(pt),m(he),m(_t,8),m(vP,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,une,5),2&n){let s;H(s=z())&&(r._lazyContent=s.first)}},viewQuery:function(n,r){if(1&n&&ke(rne,5),2&n){let o;H(o=z())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,r){2&n&&se("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Z([{provide:mP,useValue:void 0},{provide:bP,useExisting:e}]),P,kt],ngContentSelectors:ane,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){1&n&&(ze(sne),X(0),y(1,"div",0,1),$("@bodyExpansion.done",function(s){return r._bodyAnimationDone.next(s)}),y(3,"div",2),X(4,1),R(5,one,0,0,"ng-template",3),w(),X(6,2),w()),2&n&&(x(1),E("@bodyExpansion",r._getExpandedState())("id",r.id),de("aria-labelledby",r._headerId),x(4),E("cdkPortalOutlet",r._portal))},dependencies:[La],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){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)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[_P.bodyExpansion]},changeDetection:0}),t})();class fne{}const pne=ns(fne);let mne=(()=>{var e;class t extends pne{constructor(n,r,o,s,a,c,l){super(),this.panel=n,this._element=r,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=Ae.EMPTY;const d=n.accordion?n.accordion._stateChanges.pipe(Ve(u=>!(!u.hideToggle&&!u.togglePosition))):Rt;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Ot(n.opened,n.closed,d,n._inputChanges.pipe(Ve(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),n.closed.pipe(Ve(()=>n._containsFocus())).subscribe(()=>o.focusVia(r,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const n=this._isExpanded();return n&&this.expandedHeight?this.expandedHeight:!n&&this.collapsedHeight?this.collapsedHeight:null}_keydown(n){switch(n.keyCode){case 32:case 13:An(n)||(n.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(n))}}focus(n,r){n?this._focusMonitor.focusVia(this._element,n,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(n=>{n&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(yP,1),m(W),m(ar),m(Fe),m(vP,8),m(_t,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,r){1&n&&$("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&n&&(de("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),kn("height",r._getHeaderHeight()),se("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[P],ngContentSelectors:dne,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(n,r){1&n&&(ze(lne),y(0,"span",0),X(1),X(2,1),X(3,2),w(),R(4,cne,1,1,"span",1)),2&n&&(se("mat-content-hide-toggle",!r._showToggle()),x(4),E("ngIf",r._showToggle()))},dependencies:[_i],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[_P.indicatorRotate]},changeDetection:0}),t})(),gne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=T({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),_ne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,ve,ine,qf]}),t})();const wP=ro({passive:!0});let bne=(()=>{var e;class t{constructor(n,r){this._platform=n,this._ngZone=r,this._monitoredElements=new Map}monitor(n){if(!this._platform.isBrowser)return Rt;const r=Ar(n),o=this._monitoredElements.get(r);if(o)return o.subject;const s=new Y,a="cdk-text-field-autofilled",c=l=>{"cdk-text-field-autofill-start"!==l.animationName||r.classList.contains(a)?"cdk-text-field-autofill-end"===l.animationName&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(r.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",c,wP),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",c,wP)}}),s}stopMonitoring(n){const r=Ar(n),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((n,r)=>this.stopMonitoring(r))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(nt),D(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),vne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),t})();const yne=new M("MAT_INPUT_VALUE_ACCESSOR"),wne=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let xne=0;const Cne=jv(class{constructor(e,t,i,n){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=n,this.stateChanges=new Y}});let Dne=(()=>{var e;class t extends Cne{get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(n){this._id=n||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ay.required)??!1}set required(n){this._required=Q(n)}get type(){return this._type}set type(n){this._type=n||"text",this._validateType(),!this._isTextarea&&CI().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(n){n!==this.value&&(this._inputValueAccessor.value=n,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(n){this._readonly=Q(n)}constructor(n,r,o,s,a,c,l,d,u,h){super(c,s,a,o),this._elementRef=n,this._platform=r,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+xne++,this.focused=!1,this.stateChanges=new Y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>CI().has(g)),this._iOSKeyupListener=g=>{const b=g.target;!b.value&&0===b.selectionStart&&0===b.selectionEnd&&(b.setSelectionRange(1,1),b.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,p=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&u.runOutsideAngular(()=>{n.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(n=>{this.autofilled=n.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(n){this._elementRef.nativeElement.focus(n)}_focusChanged(n){n!==this.focused&&(this.focused=n,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const n=this._elementRef.nativeElement.value;this._previousNativeValue!==n&&(this._previousNativeValue=n,this.stateChanges.next())}_dirtyCheckPlaceholder(){const n=this._getPlaceholder();if(n!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=n,n?r.setAttribute("placeholder",n):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){wne.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let n=this._elementRef.nativeElement.validity;return n&&n.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const n=this._elementRef.nativeElement,r=n.options[0];return this.focused||n.multiple||!this.empty||!!(n.selectedIndex>-1&&r&&r.label)}return this.focused||!this.empty}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const n=this._elementRef.nativeElement;return this._isNativeSelect&&(n.multiple||n.size>1)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(nt),m(Hi,10),m(Ya,8),m(Xa,8),m(Ff),m(yne,10),m(bne),m(G),m(Vd,8))},e.\u0275dir=T({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){1&n&&$("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&n&&(pi("id",r.id)("disabled",r.disabled)("required",r.required),de("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),se("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Z([{provide:Kp,useExisting:e}]),P,kt]}),t})(),Ene=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,jd,jd,vne,ve]}),t})();const Sne=new M("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Tne=ts(class{constructor(e){this._elementRef=e}},"primary");let Mne=(()=>{var e;class t extends Tne{constructor(n,r,o,s,a){super(n),this._ngZone=r,this._changeDetectorRef=o,this._animationMode=s,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new U,this._mode="determinate",this._transitionendHandler=c=>{0===this.animationEnd.observers.length||!c.target||!c.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===s,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(n){this._value=xP(Bi(n)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(n){this._bufferValue=xP(Bi(n)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(n){this._mode=n,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(G),m(Fe),m(_t,8),m(Sne,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(n,r){2&n&&(de("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),se("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[P],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(n,r){1&n&&(y(0,"div",0),ie(1,"div",1)(2,"div",2),w(),y(3,"div",3),ie(4,"span",4),w(),y(5,"div",5),ie(6,"span",4),w()),2&n&&(x(1),kn("flex-basis",r._getBufferBarFlexBasis()),x(2),kn("transform",r._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),t})();function xP(e,t=0,i=100){return Math.max(t,Math.min(i,e))}let Ine=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve]}),t})();const Ane=["input"],Rne=["*"];let CP=0;class DP{constructor(t,i){this.source=t,this.value=i}}const One={provide:Gn,useExisting:He(()=>SP),multi:!0},EP=new M("MatRadioGroup"),Fne=new M("mat-radio-default-options",{providedIn:"root",factory:function Pne(){return{color:"accent"}}});let Nne=(()=>{var e;class t{get name(){return this._name}set name(n){this._name=n,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(n){this._labelPosition="before"===n?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(n){this._value!==n&&(this._value=n,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(n){this._selected=n,this.value=n?n.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._markRadiosForCheck()}get required(){return this._required}set required(n){this._required=Q(n),this._markRadiosForCheck()}constructor(n){this._changeDetector=n,this._value=null,this._name="mat-radio-group-"+CP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new U}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(n=>n===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(n=>{n.name=this.name,n._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(r=>{r.checked=this.value===r.value,r.checked&&(this._selected=r)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new DP(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(n=>n._markForCheck())}writeValue(n){this.value=n,this._changeDetector.markForCheck()}registerOnChange(n){this._controlValueAccessorChangeFn=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this._changeDetector.markForCheck()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe))},e.\u0275dir=T({type:e,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})();class Lne{constructor(t){this._elementRef=t}}const Bne=so(ns(Lne));let Vne=(()=>{var e;class t extends Bne{get checked(){return this._checked}set checked(n){const r=Q(n);this._checked!==r&&(this._checked=r,r&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!r&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),r&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(n){this._value!==n&&(this._value=n,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===n),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(n){this._labelPosition=n}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(n){this._setDisabled(Q(n))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(n){this._required=Q(n)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(n){this._color=n}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(n,r,o,s,a,c,l,d){super(r),this._changeDetector=o,this._focusMonitor=s,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++CP,this.id=this._uniqueId,this.change=new U,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=n,this._noopAnimations="NoopAnimations"===c,d&&(this.tabIndex=Bi(d,0))}focus(n,r){r?this._focusMonitor.focusVia(this._inputElement,r,n):this._inputElement.nativeElement.focus(n)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((n,r)=>{n!==this.id&&r===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{!n&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new DP(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(n){n.stopPropagation()}_onInputInteraction(n){if(n.stopPropagation(),!this.checked&&!this.disabled){const r=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),r&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(n){this._onInputInteraction(n),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(n){this._disabled!==n&&(this._disabled=n,this._changeDetector.markForCheck())}_updateTabIndex(){const n=this.radioGroup;let r;if(r=n&&n.selected&&!this.disabled?n.selected===this?this.tabIndex:-1:this.tabIndex,r!==this._previousTabIndex){const o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",r+""),this._previousTabIndex=r)}}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(Ane,5),2&n){let o;H(o=z())&&(r._inputElement=o.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[P]}),t})(),SP=(()=>{var e;class t extends Nne{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["mat-radio-group"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,kP,5),2&n){let s;H(s=z())&&(r._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[Z([One,{provide:EP,useExisting:e}]),P]}),t})(),kP=(()=>{var e;class t extends Vne{constructor(n,r,o,s,a,c,l,d){super(n,r,o,s,a,c,l,d)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(EP,8),m(W),m(Fe),m(ar),m(Jy),m(_t,8),m(Fne,8),ui("tabindex"))},e.\u0275cmp=fe({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(n,r){1&n&&$("focus",function(){return r._inputElement.nativeElement.focus()}),2&n&&(de("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),se("mat-primary","primary"===r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[P],ngContentSelectors:Rne,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(n,r){if(1&n&&(ze(),y(0,"div",0,1)(2,"div",2)(3,"div",3),$("click",function(s){return r._onTouchTargetClick(s)}),w(),y(4,"input",4,5),$("change",function(s){return r._onInputInteraction(s)}),w(),y(6,"div",6),ie(7,"div",7)(8,"div",8),w(),y(9,"div",9),ie(10,"div",10),w()(),y(11,"label",11),X(12),w()()),2&n){const o=hn(1);se("mdc-form-field--align-end","before"==r.labelPosition),x(2),se("mdc-radio--disabled",r.disabled),x(2),E("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),de("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),x(5),E("matRippleTrigger",o)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),x(2),E("for",r.inputId)}},dependencies:[ao],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),t})(),jne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,vn,is,ve]}),t})();const TP=["*"],Hne=["content"];function zne(e,t){if(1&e){const i=Ut();y(0,"div",2),$("click",function(){return Ye(i),Ke(B()._onBackdropClicked())}),w()}2&e&&se("mat-drawer-shown",B()._isShowingBackdrop())}function Une(e,t){1&e&&(y(0,"mat-drawer-content"),X(1,2),w())}const $ne=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],qne=["mat-drawer","mat-drawer-content","*"],Gne={transformDrawer:ni("transform",[qt("open, open-instant",je({transform:"none",visibility:"visible"})),qt("void",je({"box-shadow":"none",visibility:"hidden"})),Bt("void => open-instant",Lt("0ms")),Bt("void <=> open, open-instant => void",Lt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Wne=new M("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qne(){return!1}}),MP=new M("MAT_DRAWER_CONTAINER");let tm=(()=>{var e;class t extends ty{constructor(n,r,o,s,a){super(o,s,a),this._changeDetectorRef=n,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe),m(He(()=>AP)),m(W),m(Gf),m(G))},e.\u0275cmp=fe({type:e,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(n,r){2&n&&kn("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[Z([{provide:ty,useExisting:e}]),P],ngContentSelectors:TP,decls:1,vars:0,template:function(n,r){1&n&&(ze(),X(0))},encapsulation:2,changeDetection:0}),t})(),IP=(()=>{var e;class t{get position(){return this._position}set position(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(n){this._disableClose=Q(n)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(n){("true"===n||"false"===n||null==n)&&(n=Q(n)),this._autoFocus=n}get opened(){return this._opened}set opened(n){this.toggle(Q(n))}constructor(n,r,o,s,a,c,l,d){this._elementRef=n,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=c,this._doc=l,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Y,this._animationEnd=new Y,this._animationState="void",this.openedChange=new U(!0),this._openedStream=this.openedChange.pipe(Ve(u=>u),J(()=>{})),this.openedStart=this._animationStarted.pipe(Ve(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),Uf(void 0)),this._closedStream=this.openedChange.pipe(Ve(u=>!u),J(()=>{})),this.closedStart=this._animationStarted.pipe(Ve(u=>u.fromState!==u.toState&&"void"===u.toState),Uf(void 0)),this._destroyed=new Y,this.onPositionChanged=new U,this._modeChanged=new Y,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Vi(this._elementRef.nativeElement,"keydown").pipe(Ve(u=>27===u.keyCode&&!this.disableClose&&!An(u)),ce(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Is((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{n.removeEventListener("blur",o),n.removeEventListener("mousedown",o),n.removeAttribute("tabindex")};n.addEventListener("blur",o),n.addEventListener("mousedown",o)})),n.focus(r)}_focusByCssSelector(n,r){let o=this._elementRef.nativeElement.querySelector(n);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;const n=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{!r&&"function"==typeof this._elementRef.nativeElement.focus&&n.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(n){return this.toggle(!0,n)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(n=!this.opened,r){n&&r&&(this._openedVia=r);const o=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),o}_setOpen(n,r,o){return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(Xe(1)).subscribe(a=>s(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(n){const r=this._elementRef.nativeElement,o=r.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(V7),m(ar),m(nt),m(G),m(LI),m(he,8),m(MP,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-drawer"]],viewQuery:function(n,r){if(1&n&&ke(Hne,5),2&n){let o;H(o=z())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(n,r){1&n&&gh("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&n&&(de("align",null),yh("@transform",r._animationState),se("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:TP,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(n,r){1&n&&(ze(),y(0,"div",0,1),X(2),w())},dependencies:[ty],encapsulation:2,data:{animation:[Gne.transformDrawer]},changeDetection:0}),t})(),AP=(()=>{var e;class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(n){this._autosize=Q(n)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(n){this._backdropOverride=null==n?null:Q(n)}get scrollable(){return this._userContent||this._content}constructor(n,r,o,s,a,c=!1,l){this._dir=n,this._element=r,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=l,this._drawers=new Cr,this.backdropClick=new U,this._destroyed=new Y,this._doCheckSubject=new Y,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y,n&&n.change.pipe(ce(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ce(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}ngAfterContentInit(){this._allDrawers.changes.pipe(tn(this._allDrawers),ce(this._destroyed)).subscribe(n=>{this._drawers.reset(n.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(tn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(n=>{this._watchDrawerToggle(n),this._watchDrawerPosition(n),this._watchDrawerMode(n)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Tf(10),ce(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(n=>n.open())}close(){this._drawers.forEach(n=>n.close())}updateContentMargins(){let n=0,r=0;if(this._left&&this._left.opened)if("side"==this._left.mode)n+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();n+=o,r-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)r+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();r+=o,n-=o}n=n||null,r=r||null,(n!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:n,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(n){n._animationStarted.pipe(Ve(r=>r.fromState!==r.toState),ce(this._drawers.changes)).subscribe(r=>{"open-instant"!==r.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(ce(this._drawers.changes)).subscribe(()=>this._setContainerClass(n.opened))}_watchDrawerPosition(n){n&&n.onPositionChanged.pipe(ce(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Xe(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(n){n&&n._modeChanged.pipe(ce(Ot(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(n){const r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";n?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(n=>{"end"==n.position?this._end=n:this._start=n}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(n=>n&&!n.disableClose&&this._drawerHasBackdrop(n)).forEach(n=>n._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(n){return null!=n&&n.opened}_drawerHasBackdrop(n){return null==this._backdropOverride?!!n&&"side"!==n.mode:this._backdropOverride}}return(e=t).\u0275fac=function(n){return new(n||e)(m(fn,8),m(W),m(G),m(Fe),m(Rr),m(Wne),m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,tm,5),Ee(o,IP,5)),2&n){let s;H(s=z())&&(r._content=s.first),H(s=z())&&(r._allDrawers=s)}},viewQuery:function(n,r){if(1&n&&ke(tm,5),2&n){let o;H(o=z())&&(r._userContent=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Z([{provide:MP,useExisting:e}])],ngContentSelectors:qne,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,r){1&n&&(ze($ne),R(0,zne,1,2,"div",0),X(1),X(2,1),R(3,Une,2,0,"mat-drawer-content",1)),2&n&&(E("ngIf",r.hasBackdrop),x(3),E("ngIf",!r._content))},dependencies:[_i,tm],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),Yne=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,ve,lo,lo,ve]}),t})();const Kne=[[["caption"]],[["colgroup"],["col"]]],Xne=["caption","colgroup, col"];function cw(e){return class extends e{get sticky(){return this._sticky}set sticky(t){const i=this._sticky;this._sticky=Q(t),this._hasStickyChanged=i!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}}}const fc=new M("CDK_TABLE");let pc=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=T({type:e,selectors:[["","cdkCellDef",""]]}),t})(),mc=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=T({type:e,selectors:[["","cdkHeaderCellDef",""]]}),t})(),nm=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=T({type:e,selectors:[["","cdkFooterCellDef",""]]}),t})();class tie{}const nie=cw(tie);let Lr=(()=>{var e;class t extends nie{get name(){return this._name}set name(n){this._setNameInput(n)}get stickyEnd(){return this._stickyEnd}set stickyEnd(n){const r=this._stickyEnd;this._stickyEnd=Q(n),this._hasStickyChanged=r!==this._stickyEnd}constructor(n){super(),this._table=n,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(n){n&&(this._name=n,this.cssClassFriendlyName=n.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(e=t).\u0275fac=function(n){return new(n||e)(m(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,pc,5),Ee(o,mc,5),Ee(o,nm,5)),2&n){let s;H(s=z())&&(r.cell=s.first),H(s=z())&&(r.headerCell=s.first),H(s=z())&&(r.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Z([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),P]}),t})();class lw{constructor(t,i){i.nativeElement.classList.add(...t._columnCssClassName)}}let dw=(()=>{var e;class t extends lw{constructor(n,r){super(n,r)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Lr),m(W))},e.\u0275dir=T({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[P]}),t})(),uw=(()=>{var e;class t extends lw{constructor(n,r){if(super(n,r),1===n._table?._elementRef.nativeElement.nodeType){const o=n._table._elementRef.nativeElement.getAttribute("role");r.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Lr),m(W))},e.\u0275dir=T({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[P]}),t})();class OP{constructor(){this.tasks=[],this.endTasks=[]}}const hw=new M("_COALESCED_STYLE_SCHEDULER");let FP=(()=>{var e;class t{constructor(n){this._ngZone=n,this._currentSchedule=null,this._destroyed=new Y}schedule(n){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(n)}scheduleEnd(n){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new OP,this._getScheduleObservable().pipe(ce(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const n=this._currentSchedule;this._currentSchedule=new OP;for(const r of n.tasks)r();for(const r of n.endTasks)r()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Et(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Xe(1))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(G))},e.\u0275prov=V({token:e,factory:e.\u0275fac}),t})(),fw=(()=>{var e;class t{constructor(n,r){this.template=n,this._differs=r}ngOnChanges(n){if(!this._columnsDiffer){const r=n.columns&&n.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(n){return this instanceof Hd?n.headerCell.template:this instanceof zd?n.footerCell.template:n.cell.template}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(Dr))},e.\u0275dir=T({type:e,features:[kt]}),t})();class iie extends fw{}const rie=cw(iie);let Hd=(()=>{var e;class t extends rie{constructor(n,r,o){super(n,r),this._table=o}ngOnChanges(n){super.ngOnChanges(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(Dr),m(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[P,kt]}),t})();class oie extends fw{}const sie=cw(oie);let zd=(()=>{var e;class t extends sie{constructor(n,r,o){super(n,r),this._table=o}ngOnChanges(n){super.ngOnChanges(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(Dr),m(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[P,kt]}),t})(),im=(()=>{var e;class t extends fw{constructor(n,r,o){super(n,r),this._table=o}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(Dr),m(fc,8))},e.\u0275dir=T({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[P]}),t})(),Br=(()=>{var e;class t{constructor(n){this._viewContainer=n,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return(e=t).mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(m(pt))},e.\u0275dir=T({type:e,selectors:[["","cdkCellOutlet",""]]}),t})(),pw=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),gw=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),rm=(()=>{var e;class t{constructor(n){this.templateRef=n,this._contentClassName="cdk-no-data-row"}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=T({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const PP=["top","bottom","left","right"];class aie{constructor(t,i,n,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=i,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${i}-border-elem-top`,bottom:`${i}-border-elem-bottom`,left:`${i}-border-elem-left`,right:`${i}-border-elem-right`}}clearStickyPositioning(t,i){const n=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o{for(const r of n)this._removeStickyStyle(r,i)})}updateStickyColumns(t,i,n,r=!0){if(!t.length||!this._isBrowser||!i.some(h=>h)&&!n.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,i),l=this._getStickyEndColumnPositions(a,n),d=i.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",p=h?"left":"right";for(const g of t)for(let b=0;bi[b]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((g,b)=>n[b+u]?g:null).reverse()}))})}stickRows(t,i,n){if(!this._isBrowser)return;const r="bottom"===n?t.slice().reverse():t,o="bottom"===n?i.slice().reverse():i,s=[],a=[],c=[];for(let d=0,u=0;d{for(let d=0;d{i.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,i){for(const r of i)t.style[r]="",t.classList.remove(this._borderCellCss[r]);PP.some(r=>-1===i.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,i,n,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[i]),t.style[i]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const i={top:100,bottom:10,left:1,right:1};let n=0;for(const r of PP)t.style[r]&&(n+=i[r]);return n?`${n}`:""}_getCellWidths(t,i=!0){if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=t.children;for(let o=0;o0;o--)i[o]&&(n[o]=r,r+=t[o]);return n}}const _w=new M("CDK_SPL");let om=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(W))},e.\u0275dir=T({type:e,selectors:[["","rowOutlet",""]]}),t})(),sm=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(W))},e.\u0275dir=T({type:e,selectors:[["","headerRowOutlet",""]]}),t})(),am=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(W))},e.\u0275dir=T({type:e,selectors:[["","footerRowOutlet",""]]}),t})(),cm=(()=>{var e;class t{constructor(n,r){this.viewContainer=n,this.elementRef=r}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(W))},e.\u0275dir=T({type:e,selectors:[["","noDataRowOutlet",""]]}),t})(),lm=(()=>{var e;class t{get trackBy(){return this._trackByFn}set trackBy(n){this._trackByFn=n}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(n){this._multiTemplateDataRows=Q(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(n){this._fixedLayout=Q(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(n,r,o,s,a,c,l,d,u,h,f,p){this._differs=n,this._changeDetectorRef=r,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=p,this._onDestroy=new Y,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new U,this.viewChange=new dt({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((n,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ce(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(n=>{n.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Zy(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const n=this._dataDiffer.diff(this._renderRows);if(!n)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(n,r,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),n.forEachIdentityChange(o=>{r.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&G.isInAngularZone()?this._ngZone.onStable.pipe(Xe(1),ce(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(n){this._customColumnDefs.add(n)}removeColumnDef(n){this._customColumnDefs.delete(n)}addRowDef(n){this._customRowDefs.add(n)}removeRowDef(n){this._customRowDefs.delete(n)}addHeaderRowDef(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}removeHeaderRowDef(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}addFooterRowDef(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}removeFooterRowDef(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}setNoDataRow(n){this._customNoDataRow=n}updateStickyHeaderRowStyles(){const n=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=n.length?"":"none");const s=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,s,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const n=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=n.length?"":"none");const s=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const n=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...n,...r,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{const a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const n=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const c=o&&o.has(a)?o.get(a):[];if(c.length){const l=c.shift();return l.dataIndex=r,l}return{data:n,rowDef:a,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),dm(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=dm(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=dm(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=dm(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const n=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=n[0]}_renderUpdatedColumns(){const n=(a,c)=>a||!!c.getColumnsDiff(),r=this._rowDefs.reduce(n,!1);r&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(n,!1);o&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(n,!1);return s&&this._forceRenderFooterRows(),r||o||s}_switchDataSource(n){this._data=[],Zy(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),n||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=n}_observeRenderChanges(){if(!this.dataSource)return;let n;Zy(this.dataSource)?n=this.dataSource.connect(this):B1(this.dataSource)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=re(this.dataSource)),this._renderChangeSubscription=n.pipe(ce(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((n,r)=>this._renderRow(this._headerRowOutlet,n,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((n,r)=>this._renderRow(this._footerRowOutlet,n,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(n,r){const o=Array.from(r.columns||[]).map(c=>this._columnDefsByName.get(c)),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(n,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(n){const r=[];for(let o=0;o!s.when||s.when(r,n));else{let s=this._rowDefs.find(a=>a.when&&a.when(r,n))||this._defaultRowDef;s&&o.push(s)}return o}_getEmbeddedViewArgs(n,r){return{templateRef:n.rowDef.template,context:{$implicit:n.data},index:r}}_renderRow(n,r,o,s={}){const a=n.viewContainer.createEmbeddedView(r.template,s,o);return this._renderCellTemplateForItem(r,s),a}_renderCellTemplateForItem(n,r){for(let o of this._getCellTemplates(n))Br.mostRecentCellOutlet&&Br.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const n=this._rowOutlet.viewContainer;for(let r=0,o=n.length;r{const o=this._columnDefsByName.get(r);return n.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const n=this._document.createDocumentFragment(),r=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of r){const s=this._document.createElement(o.tag);s.setAttribute("role","rowgroup");for(const a of o.outlets)s.appendChild(a.elementRef.nativeElement);n.appendChild(s)}this._elementRef.nativeElement.appendChild(n)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const n=(r,o)=>r||o.hasStickyChanged();this._headerRowDefs.reduce(n,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(n,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(n,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new aie(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:re()).pipe(ce(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(n){return n.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const n=this._customNoDataRow||this._noDataRow;if(!n)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(r){const s=o.createEmbeddedView(n.templateRef),a=s.rootNodes[0];1===s.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(n._contentClassName))}else o.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Dr),m(Fe),m(W),ui("role"),m(fn,8),m(he),m(nt),m(wd),m(hw),m(Rr),m(_w,12),m(G,8))},e.\u0275cmp=fe({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,rm,5),Ee(o,Lr,5),Ee(o,im,5),Ee(o,Hd,5),Ee(o,zd,5)),2&n){let s;H(s=z())&&(r._noDataRow=s.first),H(s=z())&&(r._contentColumnDefs=s),H(s=z())&&(r._contentRowDefs=s),H(s=z())&&(r._contentHeaderRowDefs=s),H(s=z())&&(r._contentFooterRowDefs=s)}},viewQuery:function(n,r){if(1&n&&(ke(om,7),ke(sm,7),ke(am,7),ke(cm,7)),2&n){let o;H(o=z())&&(r._rowOutlet=o.first),H(o=z())&&(r._headerRowOutlet=o.first),H(o=z())&&(r._footerRowOutlet=o.first),H(o=z())&&(r._noDataRowOutlet=o.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(n,r){2&n&&se("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Z([{provide:fc,useExisting:e},{provide:wd,useClass:UR},{provide:hw,useClass:FP},{provide:_w,useValue:null}])],ngContentSelectors:Xne,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){1&n&&(ze(Kne),X(0),X(1,1),nr(2,0)(3,1)(4,2)(5,3))},dependencies:[om,sm,am,cm],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function dm(e,t){return e.concat(Array.from(t))}let lie=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ny]}),t})();const die=[[["caption"]],[["colgroup"],["col"]]],uie=["caption","colgroup, col"];let LP=(()=>{var e;class t extends lm{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,r){2&n&&se("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Z([{provide:lm,useExisting:e},{provide:fc,useExisting:e},{provide:hw,useClass:FP},{provide:wd,useClass:UR},{provide:_w,useValue:null}]),P],ngContentSelectors:uie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){1&n&&(ze(die),X(0),X(1,1),nr(2,0)(3,1)(4,2)(5,3))},dependencies:[om,sm,am,cm],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),t})(),bw=(()=>{var e;class t extends pc{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matCellDef",""]],features:[Z([{provide:pc,useExisting:e}]),P]}),t})(),vw=(()=>{var e;class t extends mc{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matHeaderCellDef",""]],features:[Z([{provide:mc,useExisting:e}]),P]}),t})(),yw=(()=>{var e;class t extends Lr{get name(){return this._name}set name(n){this._setNameInput(n)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Z([{provide:Lr,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),P]}),t})(),ww=(()=>{var e;class t extends dw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[P]}),t})(),xw=(()=>{var e;class t extends uw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[P]}),t})(),BP=(()=>{var e;class t extends Hd{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Z([{provide:Hd,useExisting:e}]),P]}),t})(),VP=(()=>{var e;class t extends im{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Z([{provide:im,useExisting:e}]),P]}),t})(),jP=(()=>{var e;class t extends pw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Z([{provide:pw,useExisting:e}]),P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),HP=(()=>{var e;class t extends gw{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Z([{provide:gw,useExisting:e}]),P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){1&n&&nr(0,0)},dependencies:[Br],encapsulation:2}),t})(),vie=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[ve,lie,ve]}),t})();function wie(e,t){}const xie=function(e){return{animationDuration:e}},Cie=function(e,t){return{value:e,params:t}};function Die(e,t){1&e&&X(0)}const zP=["*"],Eie=["tabListContainer"],Sie=["tabList"],kie=["tabListInner"],Tie=["nextPaginator"],Mie=["previousPaginator"],Iie=["tabBodyWrapper"],Aie=["tabHeader"];function Rie(e,t){}function Oie(e,t){1&e&&R(0,Rie,0,0,"ng-template",14),2&e&&E("cdkPortalOutlet",B().$implicit.templateLabel)}function Fie(e,t){1&e&&A(0),2&e&&bt(B().$implicit.textLabel)}function Pie(e,t){if(1&e){const i=Ut();y(0,"div",6,7),$("click",function(){const r=Ye(i),o=r.$implicit,s=r.index,a=B(),c=hn(1);return Ke(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const s=Ye(i).index;return Ke(B()._tabFocusChanged(r,s))}),ie(2,"span",8)(3,"div",9),y(4,"span",10)(5,"span",11),R(6,Oie,1,1,"ng-template",12),R(7,Fie,1,1,"ng-template",null,13,kh),w()()()}if(2&e){const i=t.$implicit,n=t.index,r=hn(1),o=hn(8),s=B();se("mdc-tab--active",s.selectedIndex===n),E("id",s._getTabLabelId(n))("ngClass",i.labelClass)("disabled",i.disabled)("fitInkBarToContent",s.fitInkBarToContent),de("tabIndex",s._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(n))("aria-selected",s.selectedIndex===n)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),x(3),E("matRippleTrigger",r)("matRippleDisabled",i.disabled||s.disableRipple),x(3),E("ngIf",i.templateLabel)("ngIfElse",o)}}function Nie(e,t){if(1&e){const i=Ut();y(0,"mat-tab-body",15),$("_onCentered",function(){return Ye(i),Ke(B()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Ye(i),Ke(B()._setTabBodyWrapperHeight(r))}),w()}if(2&e){const i=t.$implicit,n=t.index,r=B();se("mat-mdc-tab-body-active",r.selectedIndex===n),E("id",r._getTabContentId(n))("ngClass",i.bodyClass)("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),de("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))("aria-hidden",r.selectedIndex!==n)}}const Lie={translateTab:ni("translateTab",[qt("center, void, left-origin-center, right-origin-center",je({transform:"none"})),qt("left",je({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),qt("right",je({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Bt("* => left, * => right, left => center, right => center",Lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Bt("void => left-origin-center",[je({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Bt("void => right-origin-center",[je({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Bie=(()=>{var e;class t extends La{constructor(n,r,o,s){super(n,r,s),this._host=o,this._centeringSub=Ae.EMPTY,this._leavingSub=Ae.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(tn(this._host._isCenterPosition(this._host._position))).subscribe(n=>{n&&!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()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Bo),m(pt),m(He(()=>UP)),m(he))},e.\u0275dir=T({type:e,selectors:[["","matTabBodyHost",""]],features:[P]}),t})(),Vie=(()=>{var e;class t{set position(n){this._positionIndex=n,this._computePositionAnimationState()}constructor(n,r,o){this._elementRef=n,this._dir=r,this._dirChangeSubscription=Ae.EMPTY,this._translateTabComplete=new Y,this._onCentering=new U,this._beforeCentering=new U,this._afterLeavingCenter=new U,this._onCentered=new U(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe(Is((s,a)=>s.fromState===a.fromState&&s.toState===a.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.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(n){const r=this._isCenterPosition(n.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}_computePositionAnimationState(n=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}_computePositionFromOrigin(n){const r=this._getLayoutDirection();return"ltr"==r&&n<=0||"rtl"==r&&n>0?"left-origin-center":"right-origin-center"}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(fn,8),m(Fe))},e.\u0275dir=T({type:e,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),UP=(()=>{var e;class t extends Vie{constructor(n,r,o){super(n,r,o)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(fn,8),m(Fe))},e.\u0275cmp=fe({type:e,selectors:[["mat-tab-body"]],viewQuery:function(n,r){if(1&n&&ke(La,5),2&n){let o;H(o=z())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[P],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(n,r){1&n&&(y(0,"div",0,1),$("@translateTab.start",function(s){return r._onTranslateTabStarted(s)})("@translateTab.done",function(s){return r._translateTabComplete.next(s)}),R(2,wie,0,0,"ng-template",2),w()),2&n&&E("@translateTab",function dk(e,t,i,n,r){return hk(F(),Dn(),e,t,i,n,r)}(3,Cie,r._position,function lk(e,t,i,n){return uk(F(),Dn(),e,t,i,n)}(1,xie,r.animationDuration)))},dependencies:[Bie],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:[Lie.translateTab]}}),t})();const jie=new M("MatTabContent");let Hie=(()=>{var e;class t{constructor(n){this.template=n}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=T({type:e,selectors:[["","matTabContent",""]],features:[Z([{provide:jie,useExisting:e}])]}),t})();const zie=new M("MatTabLabel"),$P=new M("MAT_TAB");let qP=(()=>{var e;class t extends i9{constructor(n,r,o){super(n,r),this._closestTab=o}}return(e=t).\u0275fac=function(n){return new(n||e)(m(ct),m(pt),m($P,8))},e.\u0275dir=T({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Z([{provide:zie,useExisting:e}]),P]}),t})();const Cw="mdc-tab-indicator--active",GP="mdc-tab-indicator--no-transition";class Uie{constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const i=this._items.find(r=>r.elementRef.nativeElement===t),n=this._currentItem;if(i!==n&&(n?.deactivateInkBar(),i)){const r=n?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(r),this._currentItem=i}}}function $ie(e){return class extends e{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const i=Q(t);this._fitToContent!==i&&(this._fitToContent=i,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const i=this.elementRef.nativeElement;if(!t||!i.getBoundingClientRect||!this._inkBarContentElement)return void i.classList.add(Cw);const n=i.getBoundingClientRect(),r=t.width/n.width,o=t.left-n.left;i.classList.add(GP),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),i.getBoundingClientRect(),i.classList.remove(GP),i.classList.add(Cw),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Cw)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const Gie=es(class{}),Wie=$ie((()=>{var e;class t extends Gie{constructor(n){super(),this.elementRef=n}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W))},e.\u0275dir=T({type:e,features:[P]}),t})());let WP=(()=>{var e;class t extends Wie{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275dir=T({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,r){2&n&&(de("aria-disabled",!!r.disabled),se("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[P]}),t})();const Qie=es(class{}),QP=new M("MAT_TAB_GROUP");let Yie=(()=>{var e;class t extends Qie{get content(){return this._contentPortal}constructor(n,r){super(),this._viewContainerRef=n,this._closestTabGroup=r,this.textLabel="",this._contentPortal=null,this._stateChanges=new Y,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(n){(n.hasOwnProperty("textLabel")||n.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new co(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(n){n&&n._closestTab===this&&(this._templateLabel=n)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(pt),m(QP,8))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&ke(ct,7),2&n){let o;H(o=z())&&(r._implicitContent=o.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[P,kt]}),t})(),YP=(()=>{var e;class t extends Yie{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(n){this._setTemplateLabelInput(n)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-tab"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,Hie,7,ct),Ee(o,qP,5)),2&n){let s;H(s=z())&&(r._explicitContent=s.first),H(s=z())&&(r.templateLabel=s.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Z([{provide:$P,useExisting:e}]),P],ngContentSelectors:zP,decls:1,vars:0,template:function(n,r){1&n&&(ze(),R(0,Die,1,0,"ng-template"))},encapsulation:2}),t})();const KP=ro({passive:!0});let Zie=(()=>{var e;class t{get disablePagination(){return this._disablePagination}set disablePagination(n){this._disablePagination=Q(n)}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){n=Bi(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(n,r,o,s,a,c,l){this._elementRef=n,this._changeDetectorRef=r,this._viewportRuler=o,this._dir=s,this._ngZone=a,this._platform=c,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Y,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Y,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new U,this.indexFocused=new U,a.runOutsideAngular(()=>{Vi(n.nativeElement,"mouseleave").pipe(ce(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Vi(this._previousPaginator.nativeElement,"touchstart",KP).pipe(ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Vi(this._nextPaginator.nativeElement,"touchstart",KP).pipe(ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const n=this._dir?this._dir.change:re("ltr"),r=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Pv(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Xe(1)).subscribe(o),Ot(n,r,this._items.changes,this._itemsResized()).pipe(ce(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return"function"!=typeof ResizeObserver?Rt:this._items.changes.pipe(tn(this._items),Vt(n=>new Me(r=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(s=>r.next(s));return n.forEach(s=>o.observe(s.elementRef.nativeElement)),()=>{o.disconnect()}}))),Tv(1),Ve(n=>n.some(r=>r.contentRect.width>0&&r.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(n){if(!An(n))switch(n.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const r=this._items.get(this.focusIndex);r&&!r.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n))}break;default:this._keyManager.onKeydown(n)}}_onContentChanges(){const n=this._elementRef.nativeElement.textContent;n!==this._currentTextContent&&(this._currentTextContent=n||"",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(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}_isValidIndex(n){return!this._items||!!this._items.toArray()[n]}_setTabFocus(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();const r=this._tabListContainer.nativeElement;r.scrollLeft="ltr"==this._getLayoutDirection()?0:r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const n=this.scrollDistance,r="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(n){this._scrollTo(n)}_scrollHeader(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(n){this._stopInterval(),this._scrollHeader(n)}_scrollToLabel(n){if(this.disablePagination)return;const r=this._items?this._items.toArray()[n]:null;if(!r)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:a}=r.elementRef.nativeElement;let c,l;"ltr"==this._getLayoutDirection()?(c=s,l=c+a):(l=this._tabListInner.nativeElement.offsetWidth-s,c=l-a);const d=this.scrollDistance,u=this.scrollDistance+o;cu&&(this.scrollDistance+=Math.min(l-u,c-d))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const n=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}_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 n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=n?n.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(n,r){r&&null!=r.button&&0!==r.button||(this._stopInterval(),Xv(650,100).pipe(ce(Ot(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:s}=this._scrollHeader(n);(0===s||s>=o)&&this._stopInterval()}))}_scrollTo(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(Rr),m(fn,8),m(G),m(nt),m(_t,8))},e.\u0275dir=T({type:e,inputs:{disablePagination:"disablePagination"}}),t})(),Jie=(()=>{var e;class t extends Zie{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Q(n)}constructor(n,r,o,s,a,c,l){super(n,r,o,s,a,c,l),this._disableRipple=!1}_itemSelected(n){n.preventDefault()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(Rr),m(fn,8),m(G),m(nt),m(_t,8))},e.\u0275dir=T({type:e,inputs:{disableRipple:"disableRipple"},features:[P]}),t})(),ere=(()=>{var e;class t extends Jie{constructor(n,r,o,s,a,c,l){super(n,r,o,s,a,c,l)}ngAfterContentInit(){this._inkBar=new Uie(this._items),super.ngAfterContentInit()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(Rr),m(fn,8),m(G),m(nt),m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-tab-header"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,WP,4),2&n){let s;H(s=z())&&(r._items=s)}},viewQuery:function(n,r){if(1&n&&(ke(Eie,7),ke(Sie,7),ke(kie,7),ke(Tie,5),ke(Mie,5)),2&n){let o;H(o=z())&&(r._tabListContainer=o.first),H(o=z())&&(r._tabList=o.first),H(o=z())&&(r._tabListInner=o.first),H(o=z())&&(r._nextPaginator=o.first),H(o=z())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,r){2&n&&se("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[P],ngContentSelectors:zP,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(n,r){1&n&&(ze(),y(0,"button",0,1),$("click",function(){return r._handlePaginatorClick("before")})("mousedown",function(s){return r._handlePaginatorPress("before",s)})("touchend",function(){return r._stopInterval()}),ie(2,"div",2),w(),y(3,"div",3,4),$("keydown",function(s){return r._handleKeydown(s)}),y(5,"div",5,6),$("cdkObserveContent",function(){return r._onContentChanges()}),y(7,"div",7,8),X(9),w()()(),y(10,"button",9,10),$("mousedown",function(s){return r._handlePaginatorPress("after",s)})("click",function(){return r._handlePaginatorClick("after")})("touchend",function(){return r._stopInterval()}),ie(12,"div",2),w()),2&n&&(se("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),E("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),x(3),se("_mat-animation-noopable","NoopAnimations"===r._animationMode),x(7),se("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),E("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[ao,f7],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.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}.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}),t})();const XP=new M("MAT_TABS_CONFIG");let tre=0;const nre=ts(so(class{constructor(e){this._elementRef=e}}),"primary");let ire=(()=>{var e;class t extends nre{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(n){this._dynamicHeight=Q(n)}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){this._indexToSelect=Bi(n,null)}get animationDuration(){return this._animationDuration}set animationDuration(n){this._animationDuration=/^\d+$/.test(n+"")?n+"ms":n}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(n){this._contentTabIndex=Bi(n,null)}get disablePagination(){return this._disablePagination}set disablePagination(n){this._disablePagination=Q(n)}get preserveContent(){return this._preserveContent}set preserveContent(n){this._preserveContent=Q(n)}get backgroundColor(){return this._backgroundColor}set backgroundColor(n){const r=this._elementRef.nativeElement.classList;r.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),n&&r.add("mat-tabs-with-background",`mat-background-${n}`),this._backgroundColor=n}constructor(n,r,o,s){super(n),this._changeDetectorRef=r,this._animationMode=s,this._tabs=new Cr,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ae.EMPTY,this._tabLabelSubscription=Ae.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new U,this.focusChange=new U,this.animationDone=new U,this.selectedTabChange=new U(!0),this._groupId=tre++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,this.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,this.contentTabIndex=o?.contentTabIndex??null,this.preserveContent=!!o?.preserveContent}ngAfterContentChecked(){const n=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=n){const r=null==this._selectedIndex;if(!r){this.selectedTabChange.emit(this._createChangeEvent(n));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===n),r||(this.selectedIndexChange.emit(n),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,o)=>{r.position=o-n,null!=this._selectedIndex&&0==r.position&&!r.origin&&(r.origin=n-this._selectedIndex)}),this._selectedIndex!==n&&(this._selectedIndex=n,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const n=this._clampTabIndex(this._indexToSelect);if(n===this._selectedIndex){const r=this._tabs.toArray();let o;for(let s=0;s{r[n].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(n))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(tn(this._allTabs)).subscribe(n=>{this._tabs.reset(n.filter(r=>r._closestTabGroup===this||!r._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(n){const r=this._tabHeader;r&&(r.focusIndex=n)}_focusChanged(n){this._lastFocusedTabIndex=n,this.focusChange.emit(this._createChangeEvent(n))}_createChangeEvent(n){const r=new ore;return r.index=n,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[n]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ot(...this._tabs.map(n=>n._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(n){return Math.min(this._tabs.length-1,Math.max(n||0,0))}_getTabLabelId(n){return`mat-tab-label-${this._groupId}-${n}`}_getTabContentId(n){return`mat-tab-content-${this._groupId}-${n}`}_setTabBodyWrapperHeight(n){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=n+"px")}_removeTabBodyWrapperHeight(){const n=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=n.clientHeight,n.style.height="",this.animationDone.emit()}_handleClick(n,r,o){r.focusIndex=o,n.disabled||(this.selectedIndex=o)}_getTabIndex(n){return n===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(n,r){n&&"mouse"!==n&&"touch"!==n&&(this._tabHeader.focusIndex=r)}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(XP,8),m(_t,8))},e.\u0275dir=T({type:e,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[P]}),t})(),rre=(()=>{var e;class t extends ire{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(n){this._fitInkBarToContent=Q(n),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(n){this._stretchTabs=Q(n)}constructor(n,r,o,s){super(n,r,o,s),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!o||null==o.fitInkBarToContent)&&o.fitInkBarToContent,this.stretchTabs=!o||null==o.stretchTabs||o.stretchTabs}}return(e=t).\u0275fac=function(n){return new(n||e)(m(W),m(Fe),m(XP,8),m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-tab-group"]],contentQueries:function(n,r,o){if(1&n&&Ee(o,YP,5),2&n){let s;H(s=z())&&(r._allTabs=s)}},viewQuery:function(n,r){if(1&n&&(ke(Iie,5),ke(Aie,5)),2&n){let o;H(o=z())&&(r._tabBodyWrapper=o.first),H(o=z())&&(r._tabHeader=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(n,r){2&n&&(kn("--mat-tab-animation-duration",r.animationDuration),se("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===r.headerPosition)("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Z([{provide:QP,useExisting:e}]),P],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(n,r){1&n&&(y(0,"mat-tab-header",0,1),$("indexFocused",function(s){return r._focusChanged(s)})("selectFocusedIndex",function(s){return r.selectedIndex=s}),R(2,Pie,9,17,"div",2),w(),y(3,"div",3,4),R(5,Nie,1,12,"mat-tab-body",5),w()),2&n&&(E("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),x(2),E("ngForOf",r._tabs),x(1),se("_mat-animation-noopable","NoopAnimations"===r._animationMode),x(2),E("ngForOf",r._tabs))},dependencies:[Ea,Wh,_i,La,ao,Q7,UP,WP,ere],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}),t})();class ore{}let sre=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,ve,qf,is,Mv,$I,ve]}),t})();const are=["trigger"],cre=["panel"];function lre(e,t){if(1&e&&(y(0,"span",10),A(1),w()),2&e){const i=B();x(1),bt(i.placeholder)}}function dre(e,t){if(1&e&&(y(0,"span",14),A(1),w()),2&e){const i=B(2);x(1),bt(i.triggerValue)}}function ure(e,t){1&e&&X(0,0,["*ngSwitchCase","true"])}function hre(e,t){1&e&&(y(0,"span",11),R(1,dre,2,1,"span",12),R(2,ure,1,0,"ng-content",13),w()),2&e&&(E("ngSwitch",!!B().customTrigger),x(2),E("ngSwitchCase",!0))}function fre(e,t){if(1&e){const i=Ut();zs(),ag(),y(0,"div",15,16),$("@transformPanel.done",function(r){return Ye(i),Ke(B()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Ye(i),Ke(B()._handleKeydown(r))}),X(2,1),w()}if(2&e){const i=B();(function mS(e,t,i){Fi(Xn,rr,da(F(),e,t,i),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",i._getPanelTheme(),""),E("ngClass",i.panelClass)("@transformPanel","showing"),de("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const pre=[[["mat-select-trigger"]],"*"],mre=["mat-select-trigger","*"],gre={transformPanelWrap:ni("transformPanelWrap",[Bt("* => void",K$("@transformPanel",[Y$()],{optional:!0}))]),transformPanel:ni("transformPanel",[qt("void",je({opacity:0,transform:"scale(1, 0.8)"})),Bt("void => showing",Lt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1, 1)"}))),Bt("* => void",Lt("100ms linear",je({opacity:0})))])};let ZP=0;const JP=new M("mat-select-scroll-strategy"),bre=new M("MAT_SELECT_CONFIG"),vre={provide:JP,deps:[wi],useFactory:function _re(e){return()=>e.scrollStrategies.reposition()}},yre=new M("MatSelectTrigger");class wre{constructor(t,i){this.source=t,this.value=i}}const xre=so(ns(es(jv(class{constructor(e,t,i,n,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new Y}}))));let Cre=(()=>{var e;class t extends xre{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(n){this._placeholder=n,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ay.required)??!1}set required(n){this._required=Q(n),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(n){this._multiple=Q(n)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(n){this._disableOptionCentering=Q(n)}get compareWith(){return this._compareWith}set compareWith(n){this._compareWith=n,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(n){this._assignValue(n)&&this._onChange(n)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(n){this._typeaheadDebounceInterval=Bi(n)}get id(){return this._id}set id(n){this._id=n||this._uid,this.stateChanges.next()}constructor(n,r,o,s,a,c,l,d,u,h,f,p,g,b){super(a,s,l,d,h),this._viewportRuler=n,this._changeDetectorRef=r,this._ngZone=o,this._dir=c,this._parentFormField=u,this._liveAnnouncer=g,this._defaultOptions=b,this._panelOpen=!1,this._compareWith=(_,v)=>_===v,this._uid="mat-select-"+ZP++,this._triggerAriaLabelledBy=null,this._destroy=new Y,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ZP++,this._panelDoneAnimatingStream=new Y,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Kf(()=>{const _=this.options;return _?_.changes.pipe(tn(_),Vt(()=>Ot(..._.map(v=>v.onSelectionChange)))):this._ngZone.onStable.pipe(Xe(1),Vt(()=>this.optionSelectionChanges))}),this.openedChange=new U,this._openedStream=this.openedChange.pipe(Ve(_=>_),J(()=>{})),this._closedStream=this.openedChange.pipe(Ve(_=>!_),J(()=>{})),this.selectionChange=new U,this.valueChange=new U,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=b?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=b.typeaheadDebounceInterval),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new qR(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Is(),ce(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ce(this._destroy)).subscribe(n=>{n.added.forEach(r=>r.select()),n.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(tn(null),ce(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const n=this._getTriggerAriaLabelledby(),r=this.ngControl;if(n!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=n,n?o.setAttribute("aria-labelledby",n):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(void 0!==this._previousControl&&null!==r.disabled&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(n){(n.disabled||n.userAriaDescribedBy)&&this.stateChanges.next(),n.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const n=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!n)return;const r=`${this.id}-panel`;this._trackedModal&&ql(this._trackedModal,"aria-owns",r),Rv(n,"aria-owns",r),this._trackedModal=n}_clearFromModal(){this._trackedModal&&(ql(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(n){this._assignValue(n)}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const n=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&n.reverse(),n.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(n){this.disabled||(this.panelOpen?this._handleOpenKeydown(n):this._handleClosedKeydown(n))}_handleClosedKeydown(n){const r=n.keyCode,o=40===r||38===r||37===r||39===r,s=13===r||32===r,a=this._keyManager;if(!a.isTyping()&&s&&!An(n)||(this.multiple||n.altKey)&&o)n.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(n);const l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(n){const r=this._keyManager,o=n.keyCode,s=40===o||38===o,a=r.isTyping();if(s&&n.altKey)n.preventDefault(),this.close();else if(a||13!==o&&32!==o||!r.activeItem||An(n))if(!a&&this._multiple&&65===o&&n.ctrlKey){n.preventDefault();const c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{const c=r.activeItemIndex;r.onKeydown(n),this._multiple&&s&&n.shiftKey&&r.activeItem&&r.activeItemIndex!==c&&r.activeItem._selectViaInteraction()}else n.preventDefault(),r.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Xe(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(n){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&n)Array.isArray(n),n.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{const r=this._selectOptionByValue(n);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(n){const r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,n)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(n){return!!(n!==this._value||this._multiple&&Array.isArray(n))&&(this.options&&this._setSelectionByValue(n),this._value=n,!0)}_skipPredicate(n){return n.disabled}_initKeyManager(){this._keyManager=new NI(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const n=Ot(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ce(n)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ot(...this.options.map(r=>r._stateChanges)).pipe(ce(n)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(n,r){const o=this._selectionModel.isSelected(n);null!=n.value||this._multiple?(o!==n.selected&&(n.selected?this._selectionModel.select(n):this._selectionModel.deselect(n)),r&&this._keyManager.setActiveItem(n),this.multiple&&(this._sortValues(),r&&this.focus())):(n.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(n.value)),o!==this._selectionModel.isSelected(n)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const n=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,n):n.indexOf(r)-n.indexOf(o)),this.stateChanges.next()}}_propagateChanges(n){let r=null;r=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:n,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let n=-1;for(let r=0;r0}focus(n){this._elementRef.nativeElement.focus(n)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const n=this._parentFormField?.getLabelId();return this.ariaLabelledby?(n?n+" ":"")+this.ariaLabelledby:n}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const n=this._parentFormField?.getLabelId();let r=(n?n+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(n){this.openedChange.emit(n)}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Rr),m(Fe),m(G),m(Ff),m(W),m(fn,8),m(Ya,8),m(Xa,8),m(Vd,8),m(Hi,10),ui("tabindex"),m(JP),m(Bv),m(bre,8))},e.\u0275dir=T({type:e,viewQuery:function(n,r){if(1&n&&(ke(are,5),ke(cre,5),ke(F1,5)),2&n){let o;H(o=z())&&(r.trigger=o.first),H(o=z())&&(r.panel=o.first),H(o=z())&&(r._overlayDir=o.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[P,kt]}),t})(),Dre=(()=>{var e;class t extends Cre{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=n=>!this.panelOpen&&n.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ce(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(n){const r=this.options.toArray()[n];if(r){const o=this.panel.nativeElement,s=t1(n,this.options,this.optionGroups),a=r._getHostElement();o.scrollTop=0===n&&1===s?0:n1(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(n){return new wre(this,n)}_getOverlayWidth(n){return"auto"===this.panelWidth?(n instanceof ry?n.elementRef:n||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=Q(n),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const n of this.options)n._changeDetectorRef.markForCheck()}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=be(e)))(r||e)}}(),e.\u0275cmp=fe({type:e,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(1&n&&(Ee(o,yre,5),Ee(o,Nf,5),Ee(o,zv,5)),2&n){let s;H(s=z())&&(r.customTrigger=s.first),H(s=z())&&(r.options=s),H(s=z())&&(r.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){1&n&&$("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&n&&(de("id",r.id)("tabindex",r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),se("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Z([{provide:Kp,useExisting:e},{provide:Hv,useExisting:e}]),P],ngContentSelectors:mre,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(n,r){if(1&n&&(ze(pre),y(0,"div",0,1),$("click",function(){return r.toggle()}),y(3,"div",2),R(4,lre,2,1,"span",3),R(5,hre,3,2,"span",4),w(),y(6,"div",5)(7,"div",6),zs(),y(8,"svg",7),ie(9,"path",8),w()()()(),R(10,fre,3,9,"ng-template",9),$("backdropClick",function(){return r.close()})("attach",function(){return r._onAttached()})("detach",function(){return r.close()})),2&n){const o=hn(1);x(3),E("ngSwitch",r.empty),de("id",r._valueId),x(1),E("ngSwitchCase",!0),x(1),E("ngSwitchCase",!1),x(5),E("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Ea,Sa,Qh,GT,F1,ry],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[gre.transformPanel]},changeDetection:0}),t})(),eN=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[vre],imports:[vn,ed,Yl,ve,lo,jd,Yl,ve]}),t})();const Ere=["tooltip"],tN=new M("mat-tooltip-scroll-strategy"),Tre={provide:tN,deps:[wi],useFactory:function kre(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},Ire=new M("mat-tooltip-default-options",{providedIn:"root",factory:function Mre(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),nN="tooltip-panel",iN=ro({passive:!0});let Nre=(()=>{var e;class t{get position(){return this._position}set position(n){n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(n){this._positionAtOrigin=Q(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=Q(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=Bi(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=Bi(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(n){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).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(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(n,r,o,s,a,c,l,d,u,h,f,p){this._overlay=n,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=c,this._ariaDescriber=l,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y,this._scrollStrategy=u,this._document=p,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(ce(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ce(this._destroyed)).subscribe(n=>{n?"keyboard"===n&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{n.removeEventListener(r,o,iN)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}show(n=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(r);this._detach(),this._portal=this._portal||new $f(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(ce(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(n)}hide(n=this.hideDelay){const r=this._tooltipInstance;r&&(r.isVisible()?r.hide(n):(r._cancelPendingAnimations(),this._detach()))}toggle(n){this._isTooltipVisible()?this.hide():this.show(void 0,n)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(n){if(this._overlayRef){const s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&s._origin instanceof W)return this._overlayRef;this._detach()}const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&n||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(ce(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${nN}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ce(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ce(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ce(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!An(s)&&(s.preventDefault(),s.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(n){const r=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset({...o.main,...s.main}),this._addOffset({...o.fallback,...s.fallback})])}_addOffset(n){return n}_getOrigin(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r||"below"==r?o={originX:"center",originY:"above"==r?"top":"bottom"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={originX:"start",originY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={originX:"end",originY:"center"});const{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r?o={overlayX:"center",overlayY:"bottom"}:"below"==r?o={overlayX:"center",overlayY:"top"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={overlayX:"end",overlayY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={overlayX:"start",overlayY:"center"});const{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Xe(1),ce(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,r){return"above"===this.position||"below"===this.position?"top"===r?r="bottom":"bottom"===r&&(r="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:r}}_updateCurrentPositionClass(n){const{overlayY:r,originX:o,originY:s}=n;let a;if(a="center"===r?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===r&&"top"===s?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const l=`${this._cssClassPrefix}-${nN}-`;c.removePanelClass(l+this._currentPosition),c.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{let r;this._setupPointerExitEventsIfNeeded(),void 0!==n.x&&void 0!==n.y&&(r=n),this.show(void 0,r)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{const r=n.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",r=>{const o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,iN)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){const r=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){const n=this.touchGestures;if("off"!==n){const r=this._elementRef.nativeElement,o=r.style;("on"===n||"INPUT"!==r.nodeName&&"TEXTAREA"!==r.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===n||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return(e=t).\u0275fac=function(n){jo()},e.\u0275dir=T({type:e,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Lre=(()=>{var e;class t extends Nre{constructor(n,r,o,s,a,c,l,d,u,h,f,p){super(n,r,o,s,a,c,l,d,u,h,f,p),this._tooltipComponent=Vre,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(n){const o=!this._dir||"ltr"==this._dir.value;return"top"===n.originY?n.offsetY=-8:"bottom"===n.originY?n.offsetY=8:"start"===n.originX?n.offsetX=o?-8:8:"end"===n.originX&&(n.offsetX=o?8:-8),n}}return(e=t).\u0275fac=function(n){return new(n||e)(m(wi),m(W),m(Gf),m(pt),m(G),m(nt),m(k7),m(ar),m(tN),m(fn,8),m(Ire,8),m(he))},e.\u0275dir=T({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){2&n&&se("mat-mdc-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[P]}),t})(),Bre=(()=>{var e;class t{constructor(n,r){this._changeDetectorRef=n,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Y,this._animationsDisabled="NoopAnimations"===r}show(n){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},n)}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:n}){(!n||!this._triggerElement.contains(n))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){const r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(n?s:o),r.classList.add(n?o:s),this._isVisible=n,n&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(r);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe),m(_t,8))},e.\u0275dir=T({type:e}),t})(),Vre=(()=>{var e;class t extends Bre{constructor(n,r,o){super(n,o),this._elementRef=r,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>24&&n.width>=200}}return(e=t).\u0275fac=function(n){return new(n||e)(m(Fe),m(W),m(_t,8))},e.\u0275cmp=fe({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(1&n&&ke(Ere,7),2&n){let o;H(o=z())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){1&n&&$("mouseleave",function(s){return r._handleMouseLeave(s)}),2&n&&kn("zoom",r.isVisible()?1:null)},features:[P],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){1&n&&(y(0,"div",0,1),$("animationend",function(s){return r._handleAnimationEnd(s)}),y(2,"div",2),A(3),w()()),2&n&&(se("mdc-tooltip--multiline",r._isMultiline),E("ngClass",r.tooltipClass),x(3),bt(r.message))},dependencies:[Ea],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-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.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-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}),t})(),jre=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[Tre],imports:[$I,vn,ed,ve,ve,lo]}),t})();function Hre(e,t){if(1&e&&(y(0,"mat-option",9),A(1),w()),2&e){const i=t.$implicit;E("value",i),x(1),Ue(" ",i," ")}}let zre=(()=>{var e;class t{constructor(){this.pageIndex=0,this.pageSize=10,this.pageSizes=[10,20,50,100],this.pageLength=0,this.totalLength=null,this.totalLessThanOrEqual=!1,this.page=new U}get firstItemIndex(){return this.pageIndex*this.pageSize+1}get lastItemIndex(){return this.pageIndex*this.pageSize+this.pageLength}get hasTotalLength(){return"number"==typeof this.totalLength}get hasPreviousPage(){return this.pageIndex>0}get hasNextPage(){return this.firstItemIndex+this.pageSize<=this.totalLength}emitChange(){this.page.emit({pageIndex:this.pageIndex,pageSize:this.pageSize})}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["app-paginator"]],inputs:{pageIndex:["pageIndex","pageIndex",yb],pageSize:["pageSize","pageSize",yb],pageSizes:"pageSizes",pageLength:["pageLength","pageLength",yb],totalLength:"totalLength",totalLessThanOrEqual:"totalLessThanOrEqual"},outputs:{page:"page"},features:[C_],decls:21,vars:14,consts:[[1,"paginator"],[1,"field-items-per-page"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"paginator-description"],[1,"paginator-navigation"],["mat-icon-button","","matTooltip","First page",3,"disabled","click"],["mat-icon-button","","matTooltip","Previous page",3,"disabled","click"],["mat-icon-button","","matTooltip","Next page",3,"disabled","click"],[3,"value"]],template:function(n,r){1&n&&(y(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),A(3,"Items per page"),w(),y(4,"mat-select",2),$("valueChange",function(s){return r.pageSize=s,r.pageIndex=0,r.emitChange()}),R(5,Hre,2,2,"mat-option",3),w()(),y(6,"p",4),A(7),en(8,"number"),en(9,"number"),en(10,"number"),w(),y(11,"div",5)(12,"button",6),$("click",function(){return r.pageIndex=0,r.emitChange()}),y(13,"mat-icon"),A(14,"first_page"),w()(),y(15,"button",7),$("click",function(){return r.pageIndex=r.pageIndex-1,r.emitChange()}),y(16,"mat-icon"),A(17,"navigate_before"),w()(),y(18,"button",8),$("click",function(){return r.pageIndex=r.pageIndex+1,r.emitChange()}),y(19,"mat-icon"),A(20,"navigate_next"),w()()()()),2&n&&(x(4),E("value",r.pageSize),x(1),E("ngForOf",r.pageSizes),x(2),L_(" ",nn(8,8,r.firstItemIndex)," - ",nn(9,10,r.lastItemIndex),"",r.hasTotalLength?" of "+(r.totalLessThanOrEqual?"\u2264 ":"")+nn(10,12,r.totalLength):""," "),x(5),E("disabled",!r.hasPreviousPage),x(3),E("disabled",!r.hasPreviousPage),x(3),E("disabled",!r.hasNextPage))},dependencies:[Wh,QF,nw,Nf,Dre,Qv,qv,Lre,Pb],styles:[".paginator[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.paginator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 20px}.paginator[_ngcontent-%COMP%] .field-items-per-page[_ngcontent-%COMP%]{width:140px}.paginator[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}"]}),t})();var Ure=xs(622);let $re=(()=>{class e{static transformOne(i,n){return Ure(i,n)}transform(i,n){return Array.isArray(i)?i.map(r=>e.transformOne(r,n)):e.transformOne(i,n)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=wn({name:"filesize",type:e,pure:!0}),e})(),qre=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({}),e})();function Gre(e,t){if(1&e&&(y(0,"mat-radio-button",50)(1,"mat-icon"),A(2),w(),A(3),y(4,"small"),A(5),en(6,"number"),en(7,"async"),w()()),2&e){const i=t.$implicit,n=B();E("value",i.key),x(2),bt(i.value.icon),x(1),Ue(" ",i.value.plural," "),x(2),Uo("",n.isDeepFiltered?"\u2264 ":"","",nn(6,5,nn(7,7,n.search.contentTypeCount(i.key))),"")}}function Wre(e,t){if(1&e){const i=Ut();y(0,"mat-checkbox",55),$("change",function(r){const s=Ye(i).$implicit,a=B(2).$implicit,c=B();return r.checked||a.isEmpty()?a.select(s.value):a.deselect(s.value),Ke(c.loadResult())}),A(1),y(2,"small"),A(3),en(4,"number"),w()()}if(2&e){const i=t.$implicit,n=B(2).$implicit,r=B();kn("display","block"),E("checked",n.isEmpty()||n.isSelected(i.value))("color","accent"),x(1),Ue(" ",i.label," "),x(2),Uo("",r.isDeepFiltered?"\u2264 ":"","",nn(4,7,i.count),"")}}function Qre(e,t){1&e&&(y(0,"span",56),A(1,"No aggregation results"),w())}function Yre(e,t){if(1&e){const i=Ut();y(0,"mat-expansion-panel",52),$("opened",function(){Ye(i);const r=B().$implicit,o=B();return r.activate(),Ke(o.loadResult())})("closed",function(){Ye(i);const r=B().$implicit,o=B();return r.deactivateAndReset(),Ke(o.loadResult())}),y(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon"),A(4),w(),A(5),w()(),y(6,"section"),R(7,Wre,5,9,"mat-checkbox",53),R(8,Qre,2,0,"span",54),en(9,"async"),w()()}if(2&e){const i=B().$implicit,n=B();E("expanded",i.isActive()),x(4),bt(i.icon),x(1),Ue(" ",i.name,""),x(1),bh(i.isEmpty()?"empty":"active"),x(1),E("ngForOf",i.aggregations),x(1),E("ngIf",!(nn(9,7,n.search.loading$)||null!=i.aggregations&&i.aggregations.length))}}function Kre(e,t){if(1&e&&(Ht(0),R(1,Yre,10,9,"mat-expansion-panel",51),zt()),2&e){const i=t.$implicit,n=B();x(1),E("ngIf",i.isRelevant(n.contentType.value))}}function Xre(e,t){if(1&e){const i=Ut();y(0,"button",57),$("click",function(){Ye(i);const r=B();return r.queryString.reset(),r.search.setQueryString(""),r.search.firstPage(),Ke(r.search.loadResult())}),y(1,"mat-icon"),A(2,"close"),w()()}}function Zre(e,t){1&e&&(y(0,"mat-icon"),A(1,"sell"),w(),A(2," Edit tags "))}function Jre(e,t){if(1&e){const i=Ut();y(0,"mat-chip-row",58),$("edited",function(r){const s=Ye(i).$implicit;return Ke(B().renameTag(s,r.value))})("removed",function(){const o=Ye(i).$implicit;return Ke(B().deleteTag(o))}),A(1),y(2,"button",59)(3,"mat-icon"),A(4,"cancel"),w()()()}if(2&e){const i=t.$implicit;E("editable",!0)("aria-description","press enter to edit"),x(1),Ue(" ",i," "),x(1),de("aria-label","remove "+i)}}function eoe(e,t){if(1&e&&(y(0,"mat-option",50),A(1),w()),2&e){const i=t.$implicit;E("value",i),x(1),bt(i)}}function toe(e,t){1&e&&(y(0,"mat-icon"),A(1,"delete_forever"),w(),A(2," Delete "))}function noe(e,t){1&e&&(y(0,"mat-icon",60),A(1,"close"),w())}function ioe(e,t){1&e&&(y(0,"mat-tab"),R(1,noe,2,0,"ng-template",18),w())}function roe(e,t){1&e&&ie(0,"mat-progress-bar",61)}function ooe(e,t){if(1&e){const i=Ut();y(0,"th",62)(1,"mat-checkbox",63),$("change",function(){return Ye(i),Ke(B().toggleAllRows())}),w()()}if(2&e){const i=B();x(1),E("checked",i.selectedItems.hasValue()&&i.isAllSelected())("indeterminate",i.selectedItems.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function soe(e,t){if(1&e){const i=Ut();y(0,"td",64)(1,"mat-checkbox",65),$("click",function(r){return r.stopPropagation()})("change",function(r){const s=Ye(i).$implicit,a=B();return Ke(r?a.selectedItems.toggle(s):null)}),w()()}if(2&e){const i=t.$implicit,n=B();x(1),E("checked",n.selectedItems.isSelected(i))("aria-label",n.checkboxLabel(i))}}function aoe(e,t){1&e&&(y(0,"th",62),A(1,"Summary"),w())}function coe(e,t){if(1&e&&(y(0,"mat-chip",69),A(1),w()),2&e){const i=t.$implicit;x(1),Ue(" ",i," ")}}function loe(e,t){if(1&e&&(Ht(0),A(1),zt()),2&e){const i=t.$implicit,n=t.index;x(1),Uo(" ",n>0?", ":"","",i.name," ")}}function doe(e,t){if(1&e&&(y(0,"mat-chip"),R(1,loe,2,2,"ng-container",7),w()),2&e){const i=t.$implicit;x(1),E("ngForOf",i)}}function uoe(e,t){if(1&e&&(y(0,"mat-chip"),A(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function hoe(e,t){if(1&e&&(y(0,"mat-chip"),A(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function foe(e,t){if(1&e&&(y(0,"mat-chip"),A(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function poe(e,t){if(1&e&&(y(0,"mat-chip"),A(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function moe(e,t){if(1&e&&(y(0,"mat-chip"),A(1),w()),2&e){const i=t.ngIf;x(1),bt(i)}}function goe(e,t){if(1&e){const i=Ut();y(0,"td",66),$("click",function(r){const s=Ye(i).$implicit;return B().expandedItem.toggle(s.id),Ke(r.stopPropagation())}),y(1,"mat-icon"),A(2),w(),y(3,"span",67),A(4),w(),y(5,"mat-chip-set"),R(6,coe,2,1,"mat-chip",68),R(7,doe,2,1,"mat-chip",31),R(8,uoe,2,1,"mat-chip",31),R(9,hoe,2,1,"mat-chip",31),R(10,foe,2,1,"mat-chip",31),R(11,poe,2,1,"mat-chip",31),R(12,moe,2,1,"mat-chip",31),w()()}if(2&e){const i=t.$implicit,n=B();let r,o;x(1),de("title",null!==(r=null==(r=n.search.contentTypeInfo(i.contentType))?null:r.singular)&&void 0!==r?r:"Unknown"),x(1),bt(null!==(o=null==(o=n.search.contentTypeInfo(i.contentType))?null:o.icon)&&void 0!==o?o:"question_mark"),x(2),bt(n.item(i).title),x(2),E("ngForOf",n.item(i).torrent.tagNames),x(1),E("ngIf",n.item(i).languages),x(1),E("ngIf",null==n.item(i).video3d?null:n.item(i).video3d.slice(1)),x(1),E("ngIf",null==n.item(i).videoResolution?null:n.item(i).videoResolution.slice(1)),x(1),E("ngIf",n.item(i).videoSource),x(1),E("ngIf",n.item(i).videoCodec),x(1),E("ngIf",n.item(i).videoModifier)}}function _oe(e,t){1&e&&(y(0,"th",62),A(1,"Size"),w())}function boe(e,t){if(1&e&&(y(0,"td",64),A(1),en(2,"filesize"),w()),2&e){const i=t.$implicit,n=B();x(1),Ue(" ",nn(2,1,n.item(i).torrent.size)," ")}}function voe(e,t){1&e&&(y(0,"th",62)(1,"abbr",70),A(2,"S / L"),w()())}function yoe(e,t){if(1&e&&(y(0,"td",64),A(1),w()),2&e){const i=t.$implicit,n=B();let r;x(1),Uo(" ",null!==(r=n.item(i).torrent.seeders)&&void 0!==r?r:"?"," / ",null!==(r=n.item(i).torrent.leechers)&&void 0!==r?r:"?"," ")}}function woe(e,t){1&e&&(y(0,"th",71),A(1," Magnet "),w())}function xoe(e,t){if(1&e&&(y(0,"td",64)(1,"a",72),ie(2,"mat-icon",73),w()()),2&e){const i=t.$implicit,n=B();x(1),A_("href",n.item(i).torrent.magnetUri,tl)}}function Coe(e,t){1&e&&ie(0,"img",81),2&e&&E("src","https://image.tmdb.org/t/p/w300/"+t.ngIf,tl)}function Doe(e,t){if(1&e&&(y(0,"span"),A(1),w()),2&e){const i=t.$implicit,n=t.index;x(1),bt((n>0?", ":"")+i.name)}}function Eoe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"Title:"),w(),A(3),w()),2&e){const i=B().$implicit,n=B();x(3),Ue(" ",null==n.item(i).content?null:n.item(i).content.title," ")}}function Soe(e,t){if(1&e&&(Ht(0),A(1),zt()),2&e){const i=t.$implicit,n=t.index,r=B(2).$implicit,o=B();x(1),Ue(" ",(n>0?", ":"")+i.name+(i.id===(null==o.item(r).content||null==o.item(r).content.originalLanguage?null:o.item(r).content.originalLanguage.id)?" (original)":"")," ")}}function koe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"Language:"),w(),A(3,"\xa0"),R(4,Soe,2,1,"ng-container",7),w()),2&e){const i=B().$implicit,n=B();x(4),E("ngForOf",n.item(i).languages)}}function Toe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"Original release date:"),w(),A(3),w()),2&e){const i=B().$implicit,n=B();let r;x(3),Ue(" ",null!==(r=null==n.item(i).content?null:n.item(i).content.releaseDate)&&void 0!==r?r:null==n.item(i).content?null:n.item(i).content.releaseYear," ")}}function Moe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"Episodes:"),w(),A(3),w()),2&e){const i=B().$implicit,n=B();x(3),Ue(" ",n.item(i).episodes.label," ")}}function Ioe(e,t){if(1&e&&(y(0,"p"),A(1),w()),2&e){const i=B().$implicit,n=B();x(1),Ue(" ",n.item(i).content.overview," ")}}function Aoe(e,t){if(1&e&&(Ht(0),y(1,"p")(2,"strong"),A(3,"Genres:"),w(),A(4),w(),zt()),2&e){const i=t.$implicit;x(4),Ue(" ",i.join(", "),"")}}function Roe(e,t){if(1&e&&(Ht(0),A(1),zt()),2&e){const i=B(2).$implicit,n=B();x(1),Ue("(",null==n.item(i).content?null:n.item(i).content.voteCount," votes)")}}function Ooe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"Rating:"),w(),A(3),R(4,Roe,2,1,"ng-container",31),w()),2&e){const i=B().$implicit,n=B();x(3),Ue(" ",null==n.item(i).content?null:n.item(i).content.voteAverage," / 10 "),x(1),E("ngIf",null!=(null==n.item(i).content?null:n.item(i).content.voteCount))}}function Foe(e,t){if(1&e&&(Ht(0),A(1),y(2,"a",82),A(3),w(),zt()),2&e){const i=t.$implicit,n=t.index;x(1),Ue(" ",n>0?", ":"",""),x(1),E("href",i.url,tl),x(1),bt(i.metadataSource.name)}}function Poe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"External links:"),w(),A(3,"\xa0 "),R(4,Foe,4,3,"ng-container",7),w()),2&e){const i=t.$implicit;x(4),E("ngForOf",i)}}function Noe(e,t){1&e&&(y(0,"mat-icon"),A(1,"file_present"),w(),A(2," Files "))}function Loe(e,t){1&e&&(y(0,"p"),A(1," No file information available. "),w())}function Boe(e,t){1&e&&(y(0,"p"),A(1," Files information was not saved as the number of files is over the configured threshold. "),w())}function Voe(e,t){if(1&e&&(y(0,"span")(1,"strong"),A(2,"File type: "),w(),A(3),ie(4,"br"),w()),2&e){const i=t.$implicit;x(3),Ue(" ",i.charAt(0).toUpperCase()+i.slice(1),"")}}function joe(e,t){if(1&e&&(y(0,"p")(1,"strong"),A(2,"Single file:"),w(),A(3),ie(4,"br"),R(5,Voe,5,1,"span",31),y(6,"strong"),A(7,"File size:"),w(),A(8),en(9,"filesize"),w()),2&e){const i=B(2).$implicit,n=B();x(3),Ue(" ",n.item(i).torrent.name,""),x(2),E("ngIf",n.item(i).torrent.fileType),x(3),Ue(" ",nn(9,3,n.item(i).torrent.size)," ")}}function Hoe(e,t){if(1&e&&(y(0,"tr")(1,"td",84),A(2),w(),y(3,"td"),A(4),w(),y(5,"td",85),A(6),en(7,"filesize"),w()()),2&e){const i=t.$implicit;x(2),Ue(" ",i.path," "),x(2),Ue(" ",i.fileType?i.fileType.charAt(0).toUpperCase()+i.fileType.slice(1):"Unknown"," "),x(2),Ue(" ",nn(7,3,i.size)," ")}}function zoe(e,t){if(1&e&&(y(0,"table")(1,"thead")(2,"tr")(3,"th"),A(4,"Path"),w(),y(5,"th"),A(6,"Type"),w(),y(7,"th"),A(8,"Size"),w()()(),y(9,"tbody"),R(10,Hoe,8,5,"tr",7),w()()),2&e){const i=B(2).$implicit,n=B();x(10),E("ngForOf",n.item(i).torrent.files)}}function Uoe(e,t){if(1&e&&(y(0,"mat-card",83),R(1,Loe,2,0,"p",31),R(2,Boe,2,0,"p",31),R(3,joe,10,5,"p",31),R(4,zoe,11,1,"table",31),w()),2&e){const i=B().$implicit,n=B();x(1),E("ngIf","no_info"===n.item(i).torrent.filesStatus),x(1),E("ngIf","over_threshold"===n.item(i).torrent.filesStatus),x(1),E("ngIf","single"===n.item(i).torrent.filesStatus),x(1),E("ngIf",null==n.item(i).torrent.files?null:n.item(i).torrent.files.length)}}function $oe(e,t){1&e&&(y(0,"mat-icon"),A(1,"sell"),w(),A(2," Edit tags "))}function qoe(e,t){if(1&e){const i=Ut();y(0,"mat-chip-row",58),$("edited",function(r){const s=Ye(i).$implicit;return Ke(B(3).expandedItem.renameTag(s,r.value))})("removed",function(){const o=Ye(i).$implicit;return Ke(B(3).expandedItem.deleteTag(o))}),A(1),y(2,"button",59)(3,"mat-icon"),A(4,"cancel"),w()()()}if(2&e){const i=t.$implicit;E("editable",!0)("aria-description","press enter to edit"),x(1),Ue(" ",i," "),x(1),de("aria-label","remove "+i)}}function Goe(e,t){if(1&e&&(y(0,"mat-option",50),A(1),w()),2&e){const i=t.$implicit;E("value",i),x(1),bt(i)}}function Woe(e,t){if(1&e){const i=Ut();y(0,"mat-card")(1,"mat-form-field",19)(2,"mat-chip-grid",20,21),R(4,qoe,5,4,"mat-chip-row",22),w(),y(5,"input",86),$("matChipInputTokenEnd",function(r){Ye(i);const o=B(2);return Ke(r.value&&o.expandedItem.addTag(r.value))}),w(),y(6,"mat-autocomplete",24,25),$("optionSelected",function(r){return Ye(i),Ke(B(2).expandedItem.addTag(r.option.viewValue))}),R(8,Goe,2,2,"mat-option",6),w()()()}if(2&e){const i=hn(3),n=hn(7),r=B().$implicit,o=B();x(4),E("ngForOf",o.item(r).torrent.tagNames),x(1),E("formControl",o.expandedItem.newTagCtrl)("matAutocomplete",n)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("value",o.expandedItem.newTagCtrl.value),x(3),E("ngForOf",o.expandedItem.suggestedTags)}}function Qoe(e,t){1&e&&(y(0,"mat-icon"),A(1,"delete_forever"),w(),A(2," Delete "))}function Yoe(e,t){if(1&e){const i=Ut();y(0,"mat-card")(1,"mat-card-content",87)(2,"p")(3,"strong"),A(4,"Are you sure you want to delete this torrent?"),w(),ie(5,"br"),A(6,"This action cannot be undone. "),w()(),y(7,"mat-card-actions",26)(8,"button",88),$("click",function(){return Ye(i),Ke(B(2).expandedItem.delete())}),y(9,"mat-icon"),A(10,"delete_forever"),w(),A(11,"Delete "),w()()()}}function Koe(e,t){1&e&&(y(0,"mat-icon",60),A(1,"close"),w())}function Xoe(e,t){1&e&&(y(0,"mat-tab"),R(1,Koe,2,0,"ng-template",18),w())}function Zoe(e,t){if(1&e){const i=Ut();y(0,"td",64)(1,"div",74),R(2,Coe,1,1,"img",75),y(3,"h2"),A(4),w(),y(5,"p")(6,"strong"),A(7,"Info hash:"),w(),y(8,"span",76),A(9),w()(),y(10,"p")(11,"strong"),A(12,"Source:"),w(),A(13,"\xa0"),R(14,Doe,2,1,"span",7),w(),R(15,Eoe,4,1,"p",31),R(16,koe,5,1,"p",31),R(17,Toe,4,1,"p",31),R(18,Moe,4,1,"p",31),R(19,Ioe,2,1,"p",31),R(20,Aoe,5,1,"ng-container",31),R(21,Ooe,5,2,"p",31),R(22,Poe,5,1,"p",31),ie(23,"mat-divider",77),y(24,"mat-tab-group",78),$("focusChange",function(r){return Ye(i),Ke(B().expandedItem.selectTab(4==r.index?0:r.index))}),ie(25,"mat-tab",79),y(26,"mat-tab"),R(27,Noe,3,0,"ng-template",18),R(28,Uoe,5,4,"mat-card",80),w(),y(29,"mat-tab"),R(30,$oe,3,0,"ng-template",18),R(31,Woe,9,7,"mat-card",31),w(),y(32,"mat-tab"),R(33,Qoe,3,0,"ng-template",18),R(34,Yoe,12,0,"mat-card",31),w(),R(35,Xoe,2,0,"mat-tab",31),w()()()}if(2&e){const i=t.$implicit,n=B();de("colspan",n.displayedColumns.length),x(1),E("@detailExpand",n.expandedItem.id===i.id?"expanded":"collapsed"),x(1),E("ngIf",n.getAttribute(n.item(i),"poster_path","tmdb")),x(2),bt(n.item(i).torrent.name),x(4),E("cdkCopyToClipboard",n.item(i).infoHash),x(1),bt(n.item(i).infoHash),x(5),E("ngForOf",n.item(i).torrent.sources),x(1),E("ngIf",n.item(i).content),x(1),E("ngIf",null==n.item(i).languages?null:n.item(i).languages.length),x(1),E("ngIf",null==n.item(i).content?null:n.item(i).content.releaseYear),x(1),E("ngIf",n.item(i).episodes),x(1),E("ngIf",null==n.item(i).content?null:n.item(i).content.overview),x(1),E("ngIf",n.getCollections(i,"genre")),x(1),E("ngIf",null!=(null==n.item(i).content?null:n.item(i).content.voteAverage)),x(1),E("ngIf",null==n.item(i).content?null:n.item(i).content.externalLinks),x(2),E("selectedIndex",n.expandedItem.selectedTabIndex)("mat-stretch-tabs",!1),x(1),E("aria-labelledby","hidden"),x(3),E("ngIf",n.expandedItem.id===i.id),x(3),E("ngIf",n.expandedItem.id===i.id),x(3),E("ngIf",n.expandedItem.id===i.id),x(1),E("ngIf",n.expandedItem.selectedTabIndex>0)}}function Joe(e,t){1&e&&ie(0,"tr",89)}function ese(e,t){if(1&e&&ie(0,"tr",90),2&e){const i=t.$implicit,n=B();bh("summary-row "+(i.id===n.expandedItem.id?"expanded":"collapsed"))}}function tse(e,t){1&e&&ie(0,"tr",91)}const nse=function(){return["expandedDetail"]};let ise=(()=>{var e;class t{constructor(n,r){this.graphQLService=n,this.errorsService=r,this.search=new gK(this.graphQLService,this.errorsService),this.displayedColumns=["select","summary","size","peers","magnet"],this.queryString=new Ka(""),this.items=Array(),this.contentType=new Ka(void 0),this.separatorKeysCodes=[13,188],this.selectedItems=new qR(!0,[]),this.selectedTabIndex=0,this.newTagCtrl=new Ka(""),this.editedTags=Array(),this.suggestedTags=Array(),this.expandedItem=new class{constructor(o){this.ds=o,this.itemSubject=new dt(void 0),this.newTagCtrl=new Ka(""),this.editedTags=Array(),this.suggestedTags=Array(),this.selectedTabIndex=0,o.search.items$.subscribe(s=>{const a=this.itemSubject.getValue();if(!a)return;const c=s.find(l=>l.id===a.id);this.editedTags=c?.torrent.tagNames??[],this.itemSubject.next(c)}),this.newTagCtrl.valueChanges.subscribe(s=>(s&&(s=rN(s),this.newTagCtrl.setValue(s,{emitEvent:!1})),o.graphQLService.torrentSuggestTags({query:{prefix:s,exclusions:this.itemSubject.getValue()?.torrent.tagNames}}).pipe(it(a=>{this.suggestedTags.splice(0,this.suggestedTags.length,...a.suggestions.map(c=>c.name))})).subscribe()))}get id(){return this.itemSubject.getValue()?.id}toggle(o){o===this.id&&(o=void 0);const s=this.ds.items.find(c=>c.id===o);this.itemSubject.getValue()?.id!==o&&(this.itemSubject.next(s),this.editedTags=s?.torrent.tagNames??[],this.newTagCtrl.reset(),this.selectedTabIndex=0)}selectTab(o){this.selectedTabIndex=o}addTag(o){this.editTags(s=>[...s,o]),this.saveTags()}renameTag(o,s){this.editTags(a=>a.map(c=>c===o?s:c)),this.saveTags()}deleteTag(o){this.editTags(s=>s.filter(a=>a!==o)),this.saveTags()}editTags(o){this.itemSubject.getValue()&&(this.editedTags=o(this.editedTags),this.newTagCtrl.reset())}saveTags(){const o=this.itemSubject.getValue();o&&this.ds.graphQLService.torrentSetTags({infoHashes:[o.infoHash],tagNames:this.editedTags}).pipe(Rn(s=>(this.ds.errorsService.addError(`Error saving tags: ${s.message}`),Rt))).pipe(it(()=>{this.editedTags=[],this.ds.search.loadResult(!1)})).subscribe()}delete(){const o=this.itemSubject.getValue();o&&this.ds.deleteTorrents([o.infoHash])}}(this),this.search.items$.subscribe(o=>{this.items=o,this.selectedItems.setSelection(...o.filter(({id:s})=>this.selectedItems.selected.some(({id:a})=>a===s)))})}ngAfterContentInit(){this.loadResult()}ngAfterViewInit(){this.contentType.valueChanges.subscribe(n=>{this.search.selectContentType(n)}),this.newTagCtrl.valueChanges.subscribe(n=>{n&&this.newTagCtrl.setValue(rN(n),{emitEvent:!1}),this.updateSuggestedTags()}),this.updateSuggestedTags()}get isDeepFiltered(){return this.search.isDeepFiltered}loadResult(n=!0){this.search.loadResult(n)}item(n){return n}originalOrder(){return 0}getAttribute(n,r,o){return n.content?.attributes?.find(s=>s.key===r&&(void 0===o||s.source===o))?.value}getCollections(n,r){const o=n.content?.collections?.filter(s=>s.type===r).map(s=>s.name);return o?.length?o.sort():void 0}isAllSelected(){return this.items.every(n=>this.selectedItems.isSelected(n))}toggleAllRows(){this.isAllSelected()?this.selectedItems.clear():this.selectedItems.select(...this.items)}checkboxLabel(n){return n?`${this.selectedItems.isSelected(n)?"deselect":"select"} ${n.torrent.name}`:(this.isAllSelected()?"deselect":"select")+" all"}selectTab(n){this.selectedTabIndex=n}addTag(n){this.editedTags.includes(n)||this.editedTags.push(n),this.newTagCtrl.reset(),this.updateSuggestedTags()}deleteTag(n){this.editedTags=this.editedTags.filter(r=>r!==n),this.updateSuggestedTags()}renameTag(n,r){this.editedTags=this.editedTags.map(o=>o===n?r:o),this.updateSuggestedTags()}putTags(){const n=this.selectedItems.selected.map(r=>r.infoHash);if(n.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentPutTags({infoHashes:n,tagNames:this.editedTags}).pipe(Rn(r=>(this.errorsService.addError(`Error putting tags: ${r.message}`),Rt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}setTags(){const n=this.selectedItems.selected.map(r=>r.infoHash);if(n.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentSetTags({infoHashes:n,tagNames:this.editedTags}).pipe(Rn(r=>(this.errorsService.addError(`Error setting tags: ${r.message}`),Rt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}deleteTags(){const n=this.selectedItems.selected.map(r=>r.infoHash);if(n.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentDeleteTags({infoHashes:n,tagNames:this.editedTags}).pipe(Rn(r=>(this.errorsService.addError(`Error deleting tags: ${r.message}`),Rt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}updateSuggestedTags(){return this.graphQLService.torrentSuggestTags({query:{prefix:this.newTagCtrl.value,exclusions:this.editedTags}}).pipe(it(n=>{this.suggestedTags.splice(0,this.suggestedTags.length,...n.suggestions.map(r=>r.name))})).subscribe()}selectedInfoHashes(){return this.selectedItems.selected.map(n=>n.infoHash)}deleteTorrents(n){this.graphQLService.torrentDelete({infoHashes:n}).pipe(Rn(r=>(this.errorsService.addError(`Error deleting torrents: ${r.message}`),Rt))).pipe(it(()=>{this.search.loadResult(!1)})).subscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)(m(OF),m(LF))},e.\u0275cmp=fe({type:e,selectors:[["app-torrent-content"]],decls:101,vars:60,consts:[[1,"example-container"],["opened","",3,"mode"],["drawer",""],[1,"panel-content-type",3,"expanded"],[3,"formControl"],["fontSet","material-icons"],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"results"],[1,"search-form"],["fontSet","material-icons",3,"click"],[1,"field-search-query"],["matInput","","placeholder","Search",3,"formControl","keyup.enter"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"button-refresh"],["mat-mini-fab","","title","Refresh results","color","primary",3,"click"],["animationDuration","0",1,"tab-group-bulk-actions",3,"selectedIndex","mat-stretch-tabs","focusChange"],[1,"bulk-tab-placeholder",3,"aria-labelledby"],["mat-tab-label",""],[1,"form-edit-tags"],["aria-label","Enter tags"],["chipGrid",""],[3,"editable","aria-description","edited","removed",4,"ngFor","ngForOf"],["placeholder","Tag...",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value","matChipInputTokenEnd"],[3,"optionSelected"],["auto","matAutocomplete"],[1,"button-row"],["mat-stroked-button","","color","primary","title","Replace tags of the selected torrents",3,"disabled","click"],["mat-stroked-button","","color","primary","title","Add tags to the selected torrents",3,"disabled","click"],["mat-stroked-button","","color","primary","title","Remove tags from the selected torrents",3,"disabled","click"],["mat-stroked-button","","color","warn",3,"disabled","click"],[4,"ngIf"],[1,"progress-bar-container",2,"height","10px"],["mode","indeterminate",4,"ngIf"],["mat-table","",1,"table-results",3,"dataSource","multiTemplateDataRows"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","summary"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","size"],["matColumnDef","peers"],["matColumnDef","magnet"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"class",4,"matRowDef","matRowDefColumns"],["mat-row","","class","expanded-detail-row",4,"matRowDef","matRowDefColumns"],[1,"spacer"],[3,"pageIndex","pageSize","pageLength","totalLength","totalLessThanOrEqual","page"],[3,"value"],[3,"expanded","opened","closed",4,"ngIf"],[3,"expanded","opened","closed"],[3,"checked","color","display","change",4,"ngFor","ngForOf"],["class","empty",4,"ngIf"],[3,"checked","color","change"],[1,"empty"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"editable","aria-description","edited","removed"],["matChipRemove",""],[2,"margin-right","0"],["mode","indeterminate"],["mat-header-cell",""],[3,"checked","indeterminate","aria-label","change"],["mat-cell",""],[3,"checked","aria-label","click","change"],["mat-cell","",3,"click"],[1,"title"],["class","chip-primary",4,"ngFor","ngForOf"],[1,"chip-primary"],["title","Seeders / Leechers"],["mat-header-cell","",2,"text-align","center"],[3,"href"],["svgIcon","magnet"],[1,"item-detail"],["class","poster",3,"src",4,"ngIf"],["title","Copy to clipboard",1,"info-hash",3,"cdkCopyToClipboard"],[2,"clear","both"],["animationDuration","0",3,"selectedIndex","mat-stretch-tabs","focusChange"],[3,"aria-labelledby"],["class","torrent-files",4,"ngIf"],[1,"poster",3,"src"],["target","_blank",3,"href"],[1,"torrent-files"],[1,"table-torrent-files-td-file"],[1,"table-torrent-files-td-size"],["placeholder","New tag...",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value","matChipInputTokenEnd"],[2,"margin-top","10px"],["mat-stroked-button","","color","warn",3,"click"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expanded-detail-row"]],template:function(n,r){if(1&n){const o=Ut();y(0,"mat-drawer-container",0)(1,"mat-drawer",1,2)(3,"mat-expansion-panel",3)(4,"mat-expansion-panel-header")(5,"mat-panel-title")(6,"mat-icon"),A(7,"interests"),w(),A(8," Content Type "),w()(),y(9,"section")(10,"mat-radio-group",4)(11,"mat-radio-button")(12,"mat-icon",5),A(13,"emergency"),w(),A(14,"All "),y(15,"small"),A(16),en(17,"number"),en(18,"async"),w()(),R(19,Gre,8,9,"mat-radio-button",6),en(20,"keyvalue"),w()()(),R(21,Kre,2,1,"ng-container",7),w(),y(22,"mat-drawer-content")(23,"div",8)(24,"div",9)(25,"mat-icon",10),$("click",function(){return Ye(o),Ke(hn(2).toggle())}),A(26),w(),y(27,"mat-form-field",11)(28,"input",12),$("keyup.enter",function(){let a;return r.search.setQueryString(null!==(a=r.queryString.value)&&void 0!==a?a:""),r.search.firstPage(),r.search.loadResult()}),w(),R(29,Xre,3,0,"button",13),w(),y(30,"div",14)(31,"button",15),$("click",function(){return r.loadResult(!1)}),y(32,"mat-icon"),A(33,"sync"),w()()()(),ie(34,"mat-divider"),y(35,"mat-tab-group",16),$("focusChange",function(a){return r.selectTab(3==a.index?0:a.index)}),ie(36,"mat-tab",17),y(37,"mat-tab"),R(38,Zre,3,0,"ng-template",18),y(39,"mat-card")(40,"mat-form-field",19)(41,"mat-chip-grid",20,21),R(43,Jre,5,4,"mat-chip-row",22),w(),y(44,"input",23),$("matChipInputTokenEnd",function(a){return a.value&&r.addTag(a.value)}),w(),y(45,"mat-autocomplete",24,25),$("optionSelected",function(a){return r.addTag(a.option.viewValue)}),R(47,eoe,2,2,"mat-option",6),w()(),y(48,"mat-card-actions",26)(49,"button",27),$("click",function(){return r.setTags()}),A(50," Set tags "),w(),y(51,"button",28),$("click",function(){return r.putTags()}),A(52," Put tags "),w(),y(53,"button",29),$("click",function(){return r.deleteTags()}),A(54," Delete tags "),w()()()(),y(55,"mat-tab"),R(56,toe,3,0,"ng-template",18),y(57,"mat-card")(58,"mat-card-content")(59,"p")(60,"strong"),A(61,"Are you sure you want to delete the selected torrents?"),w(),ie(62,"br"),A(63,"This action cannot be undone. "),w()(),y(64,"mat-card-actions",26)(65,"button",30),$("click",function(){return r.deleteTorrents(r.selectedInfoHashes())}),y(66,"mat-icon"),A(67,"delete_forever"),w(),A(68,"Delete "),w()()()(),R(69,ioe,2,0,"mat-tab",31),w(),ie(70,"mat-divider"),y(71,"div",32),R(72,roe,1,0,"mat-progress-bar",33),en(73,"async"),w(),y(74,"table",34),Ht(75,35),R(76,ooe,2,3,"th",36),R(77,soe,2,2,"td",37),zt(),Ht(78,38),R(79,aoe,2,0,"th",36),R(80,goe,13,10,"td",39),zt(),Ht(81,40),R(82,_oe,2,0,"th",36),R(83,boe,3,3,"td",37),zt(),Ht(84,41),R(85,voe,3,0,"th",36),R(86,yoe,2,2,"td",37),zt(),Ht(87,42),R(88,woe,2,0,"th",43),R(89,xoe,3,1,"td",37),zt(),Ht(90,44),R(91,Zoe,36,22,"td",37),zt(),R(92,Joe,1,0,"tr",45),R(93,ese,1,2,"tr",46),R(94,tse,1,0,"tr",47),w(),ie(95,"span",48),y(96,"app-paginator",49),$("page",function(a){return r.search.handlePageEvent(a)}),en(97,"async"),en(98,"async"),en(99,"async"),en(100,"async"),w()()()()}if(2&n){const o=hn(2),s=hn(42),a=hn(46);x(1),E("mode","side"),x(2),E("expanded",!0),x(7),E("formControl",r.contentType),x(6),Uo("",r.isDeepFiltered?"\u2264 ":"","",nn(17,42,nn(18,44,r.search.overallTotalCount$)),""),x(3),E("ngForOf",function gk(e,t,i,n){const r=e+Oe,o=F(),s=Vs(o,r);return El(o,r)?hk(o,Dn(),t,s.transform,i,n,s):s.transform(i,n)}(20,46,r.search.contentTypes,r.originalOrder)),x(2),E("ngForOf",r.search.facets),x(1),kn("z-index",100)("overflow","visible"),x(3),bh("toggle-drawer "+(o.opened?"opened":"closed")),x(1),bt(o.opened?"arrow_circle_left":"arrow_circle_right"),x(2),E("formControl",r.queryString),x(1),E("ngIf",r.queryString.value),x(6),E("selectedIndex",r.selectedTabIndex)("mat-stretch-tabs",!1),x(1),E("aria-labelledby","hidden"),x(7),E("ngForOf",r.editedTags),x(1),E("formControl",r.newTagCtrl)("matAutocomplete",a)("matChipInputFor",s)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("value",r.newTagCtrl.value),x(3),E("ngForOf",r.suggestedTags),x(2),E("disabled",!r.selectedItems.hasValue()),x(2),E("disabled",!r.selectedItems.hasValue()||!r.editedTags.length&&!r.newTagCtrl.value),x(2),E("disabled",!r.selectedItems.hasValue()||!r.editedTags.length&&!r.newTagCtrl.value),x(12),E("disabled",!r.selectedItems.hasValue()),x(4),E("ngIf",r.selectedTabIndex>0),x(3),E("ngIf",nn(73,49,r.search.loading$)),x(2),E("dataSource",r.search)("multiTemplateDataRows",!0),x(18),E("matHeaderRowDef",r.displayedColumns),x(1),E("matRowDefColumns",r.displayedColumns),x(1),E("matRowDefColumns",function ck(e,t,i){const n=Dn()+e,r=F();return r[n]===De?tr(r,n,i?t.call(i):t()):function fl(e,t){return e[t]}(r,n)}(59,nse)),x(2),E("pageIndex",nn(97,51,r.search.pageIndex$))("pageSize",nn(98,53,r.search.pageSize$))("pageLength",nn(99,55,r.search.pageLength$))("totalLength",nn(100,57,r.search.maxTotalCount$))("totalLessThanOrEqual",r.search.isDeepFiltered)}},dependencies:[Wh,_i,nee,Xee,Nf,XF,g1,Qv,LG,ZF,eP,JF,iP,vs,hP,fP,lP,aw,em,Jte,yP,mne,gne,QF,Nee,qv,Dne,Mne,SP,kP,IP,AP,tm,LP,vw,BP,yw,bw,VP,ww,xw,jP,HP,qP,YP,rre,zre,pp,fR,qy,YT,Pb,KT,$re],styles:[".mat-drawer-container[_ngcontent-%COMP%]{min-height:100%}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%]{width:300px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:0}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{width:100%;display:block}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] .mdc-radio{display:none}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] .mdc-form-field, .mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] label{cursor:pointer;display:block;height:40px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:10px;position:relative;top:5px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] .panel-content-type[_ngcontent-%COMP%] .mat-mdc-radio-checked label{color:#e91e63}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-bottom:10px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{position:relative;left:-10px}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%] section.empty[_ngcontent-%COMP%] .mdc-checkbox__background{background-color:#d3d3d3;border-color:#d3d3d3} mat-checkbox label small, mat-radio-button label small{margin-left:8px}.mat-expansion-panel-header[_ngcontent-%COMP%]{white-space:nowrap}.mat-expansion-panel-header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{overflow:visible;margin-right:20px}.search-form[_ngcontent-%COMP%] .toggle-drawer[_ngcontent-%COMP%]{cursor:pointer;width:30px;height:30px;font-size:30px;left:-10px;margin-right:10px;position:relative;top:-25px;display:inline-block}.search-form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:inline-block;margin-right:20px}.search-form[_ngcontent-%COMP%] mat-form-field.field-search-query[_ngcontent-%COMP%]{width:300px}.search-form[_ngcontent-%COMP%] mat-form-field.field-auto-refresh[_ngcontent-%COMP%]{width:130px}.search-form[_ngcontent-%COMP%] .button-refresh[_ngcontent-%COMP%]{display:inline-block;width:50px;vertical-align:top;padding-top:10px}.mat-column-select[_ngcontent-%COMP%]{padding-right:10px;width:30px}.mat-column-summary[_ngcontent-%COMP%]{padding-left:0}.mat-column-summary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:0;padding-right:0}th.mat-column-summary[_ngcontent-%COMP%]{padding-left:10px}td.mat-column-summary[_ngcontent-%COMP%]{vertical-align:middle;cursor:pointer}td.mat-column-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:inline-block;line-height:30px;word-wrap:break-word;max-width:900px}td.mat-column-summary[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:inline-block;position:relative;top:5px;margin-right:10px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:30px;position:relative;top:-2px;margin-bottom:4px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:0 10px 0 0}tr.expanded-detail-row[_ngcontent-%COMP%]{height:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] td.mat-column-summary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#e91e63}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] + .expanded-detail-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding-bottom:10px}.mat-mdc-row.summary-row[_ngcontent-%COMP%]:hover .mat-mdc-cell[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-mdc-row.summary-row[_ngcontent-%COMP%]:hover + tr.expanded-detail-row[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-column-magnet[_ngcontent-%COMP%]{text-align:center}.mat-column-magnet[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:relative;top:5px}.item-detail[_ngcontent-%COMP%]{width:100%;overflow:hidden}.item-detail[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:10px;max-width:900px;word-wrap:break-word}.item-detail[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%]{float:right;margin:10px;border:1px solid currentColor}.item-detail[_ngcontent-%COMP%] .info-hash[_ngcontent-%COMP%]{padding-left:5px;cursor:crosshair;text-decoration:underline;text-decoration-style:dotted} .mdc-tab__text-label mat-icon{margin-right:10px} div[aria-labelledby=hidden]{display:none}.results[_ngcontent-%COMP%]{padding-top:20px}.form-edit-tags[_ngcontent-%COMP%]{width:100%}.mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled).chip-primary{background-color:#c5cae9}.mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled).chip-primary .mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled).mdc-evolution-chip__text-label{color:#fff}.torrent-files[_ngcontent-%COMP%]{padding-top:10px;max-height:800px;overflow:scroll}.torrent-files[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{margin-bottom:10px;width:800px}.torrent-files[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:20px;border-bottom:1px solid rgba(0,0,0,.12)}.torrent-files[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:#f5f5f5}.button-row[_ngcontent-%COMP%] .mat-mdc-button-base[_ngcontent-%COMP%]{margin-left:8px}.form-edit-tags[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}app-paginator[_ngcontent-%COMP%]{float:right;margin-top:10px;margin-bottom:20px}"],data:{animation:[ni("detailExpand",[qt("collapsed",je({height:"0px",minHeight:"0"})),qt("expanded",je({height:"*"})),Bt("expanded <=> collapsed",Lt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();const rN=e=>e.toLowerCase().replaceAll(/[^a-z0-9\-]/g,"-").replace(/^-+/,"").replaceAll(/-+/g,"-");let rse=(()=>{var e;class t{constructor(){this.title="bitmagnet"}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fe({type:e,selectors:[["app-root"]],decls:19,vars:3,consts:[["color","primary"],["svgIcon","magnet",2,"position","relative","top","1px"],[2,"margin-left","10px"],[1,"spacer"],["mat-icon-button","","aria-label","Menu",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","href","https://bitmagnet.io","target","_blank"],["mat-menu-item","","href","https://discord.gg/6mFNszX8qM","target","_blank"],["mat-menu-item","","href","https://github.com/bitmagnet-io/bitmagnet","target","_blank"]],template:function(n,r){if(1&n&&(y(0,"p")(1,"mat-toolbar",0),ie(2,"mat-icon",1),y(3,"span",2),A(4,"bitmagnet"),w(),ie(5,"span",3),y(6,"button",4)(7,"mat-icon"),A(8,"menu"),w()(),y(9,"mat-menu",null,5)(11,"a",6),A(12,"bitmagnet.io"),w(),y(13,"a",7),A(14,"bitmagnet on Discord"),w(),y(15,"a",8),A(16,"bitmagnet on GitHub"),w()()()(),ie(17,"app-torrent-content")(18,"router-outlet")),2&n){const o=hn(10);kn("margin-bottom",0),x(6),E("matMenuTriggerFor",o)}},dependencies:[wy,Qv,qv,U9,Wf,W9,zG,ise],styles:[".spacer[_ngcontent-%COMP%]{display:inline-flex;flex:1 1 auto}svg[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{fill:#3f51b5} .mat-mdc-snack-bar-container.snack-bar-error>div{background-color:#f44336;color:#fff} .mat-mdc-snack-bar-container.snack-bar-error>div .mdc-button__label{color:#fff}"]}),t})();class ose extends tc{constructor(t,i){super(),wt(this,"httpClient",void 0),wt(this,"options",void 0),wt(this,"requester",void 0),wt(this,"print",yO),this.httpClient=t,this.options=i,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=n=>new vt(r=>{const o=n.getContext(),s=(v,C)=>function ys(...e){const t=e.find(i=>typeof i<"u");return typeof t>"u"?e[e.length-1]:t}(o[v],this.options[v],C);let a=s("method","POST");const c=s("includeQuery",!0),l=s("includeExtensions",!1),d=s("uri","graphql"),u=s("withCredentials"),h=s("useMultipart"),f=!0===this.options.useGETForQueries,p=n.query.definitions.some(v=>"OperationDefinition"===v.kind&&"query"===v.operation);f&&p&&(a="GET");const g={method:a,url:"function"==typeof d?d(n):d,body:{operationName:n.operationName,variables:n.variables},options:{withCredentials:u,useMultipart:h,headers:this.options.headers}};l&&(g.body.extensions=n.extensions),c&&(g.body.query=this.print(n.query));const b=function aN(e){let t=e.headers&&e.headers instanceof bi?e.headers:new bi(e.headers);if(e.clientAwareness){const{name:i,version:n}=e.clientAwareness;i&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",i)),n&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",n))}return t}(o);g.options.headers=((e,t)=>e&&t?t.keys().reduce((n,r)=>n.set(r,t.getAll(r)),e):t||e)(g.options.headers,b);const _=((e,t,i)=>{const n=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),o=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(o)return new Me(l=>l.error(new Error("File upload is not available when combined with Batching")));if(!n)return new Me(l=>l.error(new Error("File upload is not available when GET is used")));if(!i)return new Me(l=>l.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));a=i(e.body),s=!!a.files.size}let c={};if(o){if(!n)return new Me(l=>l.error(new Error("Batching is not available for GET requests")));c={body:e.body}}else c=n?{body:s?a.clone:e.body}:{params:Object.keys(e.body).reduce((u,h)=>{const f=e.body[h];return u[h]=-1!==["variables","extensions"].indexOf(h.toLowerCase())?JSON.stringify(f):f,u},{})};if(s&&n){const l=new FormData;l.append("operations",JSON.stringify(c.body));const d={},u=a.files;let h=0;u.forEach(f=>{d[++h]=f}),l.append("map",JSON.stringify(d)),h=0,u.forEach((f,p)=>{l.append(++h+"",p,p.name)}),c.body=l}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(g,this.httpClient,this.options.extractFiles).subscribe({next:v=>{n.setContext({response:v}),r.next(v.body)},error:v=>r.error(v),complete:()=>r.complete()});return()=>{_.closed||_.unsubscribe()}})}request(t){return this.requester(t)}}let sse=(()=>{var e;class t{constructor(n){wt(this,"httpClient",void 0),this.httpClient=n}create(n){return new ose(this.httpClient,n)}}return e=t,wt(t,"\u0275fac",function(n){return new(n||e)(D(nf))}),wt(t,"\u0275prov",V({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();var ase=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=zp(AK)}return e.prototype.batch=function(t){var r,i=this;return this.performTransaction(function(){return r=t.update(i)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),r},e.prototype.recordOptimisticTransaction=function(t,i){this.performTransaction(t,i)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,i){return void 0===i&&(i=!!t.optimistic),this.read(k(k({},t),{rootId:t.id||"ROOT_QUERY",optimistic:i}))},e.prototype.readFragment=function(t,i){return void 0===i&&(i=!!t.optimistic),this.read(k(k({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:i}))},e.prototype.writeQuery=function(t){var i=t.id,n=t.data,r=si(t,["id","data"]);return this.write(Object.assign(r,{dataId:i||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(t){var i=t.id,n=t.data,r=t.fragment,o=t.fragmentName,s=si(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(r,o),dataId:i,result:n}))},e.prototype.updateQuery=function(t,i){return this.batch({update:function(n){var r=n.readQuery(t),o=i(r);return null==o?r:(n.writeQuery(k(k({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,i){return this.batch({update:function(n){var r=n.readFragment(t),o=i(r);return null==o?r:(n.writeFragment(k(k({},t),{data:o})),o)}})},e}(),cN=function(e){function t(i,n,r,o){var s,a=e.call(this,i)||this;if(a.message=i,a.path=n,a.query=r,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return Ln(t,e),t}(Error);function Dw(e){return!1!==globalThis.__DEV__&&function cse(e){var t=new Set([e]);return t.forEach(function(i){xt(i)&&function lse(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(i)===i&&Object.getOwnPropertyNames(i).forEach(function(n){xt(i[n])&&t.add(i[n])})}),e}(e),e}var on=Object.prototype.hasOwnProperty;function Ud(e){return null==e}function lN(e,t){var i=e.__typename,n=e.id,r=e._id;if("string"==typeof i&&(t&&(t.keyObject=Ud(n)?Ud(r)?void 0:{_id:r}:{id:n}),Ud(n)&&!Ud(r)&&(n=r),!Ud(n)))return"".concat(i,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var dN={dataIdFromObject:lN,addTypename:!0,resultCaching:!0,canonizeResults:!1};function uN(e){var t=e.canonizeResults;return void 0===t?dN.canonizeResults:t}var hN=/^[_a-z][_0-9a-z]*/i;function yo(e){var t=e.match(hN);return t?t[0]:e}function Ew(e,t,i){return!!xt(t)&&(Mt(t)?t.every(function(n){return Ew(e,n,i)}):e.selections.every(function(n){if(go(n)&&Ad(n,i)){var r=mo(n);return on.call(t,r)&&(!n.selectionSet||Ew(n.selectionSet,t[r],i))}return!0}))}function gc(e){return xt(e)&&!ot(e)&&!Mt(e)}function fN(e,t){var i=Ip(Op(e));return{fragmentMap:i,lookupFragment:function(n){var r=i[n];return!r&&t&&(r=t.lookup(n)),r||null}}}var hm=Object.create(null),Sw=function(){return hm},pN=Object.create(null),$d=function(){function e(t,i){var n=this;this.policies=t,this.group=i,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(r,o){return Dw(ot(r)?n.get(r.__ref,o):r&&r[o])},this.canRead=function(r){return ot(r)?n.has(r.__ref):"object"==typeof r},this.toReference=function(r,o){if("string"==typeof r)return Ja(r);if(ot(r))return r;var s=n.policies.identify(r)[0];if(s){var a=Ja(s);return o&&n.merge(s,r),a}}}return e.prototype.toObject=function(){return k({},this.data)},e.prototype.has=function(t){return void 0!==this.lookup(t,!0)},e.prototype.get=function(t,i){if(this.group.depend(t,i),on.call(this.data,t)){var n=this.data[t];if(n&&on.call(n,i))return n[i]}return"__typename"===i&&on.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof wo?this.parent.get(t,i):void 0},e.prototype.lookup=function(t,i){return i&&this.group.depend(t,"__exists"),on.call(this.data,t)?this.data[t]:this instanceof wo?this.parent.lookup(t,i):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,i){var r,n=this;ot(t)&&(t=t.__ref),ot(i)&&(i=i.__ref);var o="string"==typeof t?this.lookup(r=t):t,s="string"==typeof i?this.lookup(r=i):i;if(s){ye("string"==typeof r,1);var a=new _o(pse).merge(o,s);if(this.data[r]=a,a!==o&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(l){if(!o||o[l]!==a[l]){c[l]=1;var d=yo(l);d!==l&&!n.policies.hasKeyArgs(a.__typename,d)&&(c[d]=1),void 0===a[l]&&!(n instanceof wo)&&delete a[l]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(l){return n.group.dirty(r,l)})}}},e.prototype.modify=function(t,i){var n=this,r=this.lookup(t);if(r){var o=Object.create(null),s=!1,a=!0,c={DELETE:hm,INVALIDATE:pN,isReference:ot,toReference:this.toReference,canRead:this.canRead,readField:function(l,d){return n.policies.readField("string"==typeof l?{fieldName:l,from:d||Ja(t)}:l,{store:n})}};if(Object.keys(r).forEach(function(l){var d=yo(l),u=r[l];if(void 0!==u){var h="function"==typeof i?i:i[l]||i[d];if(h){var f=h===Sw?hm:h(Dw(u),k(k({},c),{fieldName:d,storeFieldName:l,storage:n.getStorage(t,l)}));f===pN?n.group.dirty(t,l):(f===hm&&(f=void 0),f!==u&&(o[l]=f,s=!0,u=f))}void 0!==u&&(a=!1)}}),s)return this.merge(t,o),a&&(this instanceof wo?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,i,n){var r,o=this.lookup(t);if(o){var s=this.getFieldValue(o,"__typename"),a=i&&n?this.policies.getStoreFieldName({typename:s,fieldName:i,args:n}):i;return this.modify(t,a?((r={})[a]=Sw,r):Sw)}return!1},e.prototype.evict=function(t,i){var n=!1;return t.id&&(on.call(this.data,t.id)&&(n=this.delete(t.id,t.fieldName,t.args)),this instanceof wo&&this!==i&&(n=this.parent.evict(t,i)||n),(t.fieldName||n)&&this.group.dirty(t.id,t.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,i=this.toObject(),n=[];return this.getRootIdSet().forEach(function(r){on.call(t.policies.rootTypenamesById,r)||n.push(r)}),n.length&&(i.__META={extraRootIds:n.sort()}),i},e.prototype.replace=function(t){var i=this;if(Object.keys(this.data).forEach(function(o){t&&on.call(t,o)||i.delete(o)}),t){var n=t.__META,r=si(t,["__META"]);Object.keys(r).forEach(function(o){i.merge(o,r[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var i=--this.rootIds[t];return i||delete this.rootIds[t],i}return 0},e.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof wo?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,i=this.getRootIdSet(),n=this.toObject();i.forEach(function(s){on.call(n,s)&&(Object.keys(t.findChildRefIds(s)).forEach(i.add,i),delete n[s])});var r=Object.keys(n);if(r.length){for(var o=this;o instanceof wo;)o=o.parent;r.forEach(function(s){return o.delete(s)})}return r},e.prototype.findChildRefIds=function(t){if(!on.call(this.refs,t)){var i=this.refs[t]=Object.create(null),n=this.data[t];if(!n)return i;var r=new Set([n]);r.forEach(function(o){ot(o)&&(i[o.__ref]=!0),xt(o)&&Object.keys(o).forEach(function(s){var a=o[s];xt(a)&&r.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),mN=function(){function e(t,i){void 0===i&&(i=null),this.caching=t,this.parent=i,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?aF():null,this.keyMaker=new bo(Nr)},e.prototype.depend=function(t,i){if(this.d){this.d(kw(t,i));var n=yo(i);n!==i&&this.d(kw(t,n)),this.parent&&this.parent.depend(t,i)}},e.prototype.dirty=function(t,i){this.d&&this.d.dirty(kw(t,i),"__exists"===i?"forget":"setDirty")},e}();function kw(e,t){return t+"#"+e}function gN(e,t){qd(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(i){function n(r){var s=r.resultCaching,c=r.seed,l=i.call(this,r.policies,new mN(void 0===s||s))||this;return l.stump=new fse(l),l.storageTrie=new bo(Nr),c&&l.replace(c),l}return Ln(n,i),n.prototype.addLayer=function(r,o){return this.stump.addLayer(r,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(e);e.Root=t}($d||($d={}));var wo=function(e){function t(i,n,r,o){var s=e.call(this,n.policies,o)||this;return s.id=i,s.parent=n,s.replay=r,s.group=o,r(s),s}return Ln(t,e),t.prototype.addLayer=function(i,n){return new t(i,this,n,this.group)},t.prototype.removeLayer=function(i){var n=this,r=this.parent.removeLayer(i);return i===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=n.data[o],a=r.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){It(s[c],a[c])||n.group.dirty(o,c)}):(n.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){n.group.dirty(o,c)})):n.delete(o)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return k(k({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(i){var n=this.parent.findChildRefIds(i);return on.call(this.data,i)?k(k({},n),e.prototype.findChildRefIds.call(this,i)):n},t.prototype.getStorage=function(){for(var i=this.parent;i.parent;)i=i.parent;return i.getStorage.apply(i,arguments)},t}($d),fse=function(e){function t(i){return e.call(this,"EntityStore.Stump",i,function(){},new mN(i.group.caching,i.group))||this}return Ln(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(wo);function pse(e,t,i){var n=e[i],r=t[i];return It(n,r)?n:r}function qd(e){return!!(e instanceof $d&&e.group.caching)}function _N(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var mse=function(){function e(t){var i=this;this.knownResults=new(Nr?WeakMap:Map),this.config=sc(t,{addTypename:!1!==t.addTypename,canonizeResults:uN(t)}),this.canon=t.canon||new A0,this.executeSelectionSet=zp(function(n){var r,o=n.context.canonizeResults,s=_N(n);s[3]=!o;var a=(r=i.executeSelectionSet).peek.apply(r,s);return a?o?k(k({},a),{result:i.canon.admit(a.result)}):a:(gN(n.context.store,n.enclosingRef.__ref),i.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:_N,makeCacheKey:function(n,r,o,s){if(qd(o.store))return o.store.makeCacheKey(n,ot(r)?r.__ref:r,o.varString,s)}}),this.executeSubSelectedArray=zp(function(n){return gN(n.context.store,n.enclosingRef.__ref),i.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var r=n.field,o=n.array,s=n.context;if(qd(s.store))return s.store.makeCacheKey(r,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new A0},e.prototype.diffQueryAgainstStore=function(t){var i=t.store,n=t.query,r=t.rootId,o=void 0===r?"ROOT_QUERY":r,s=t.variables,a=t.returnPartialData,c=void 0===a||a,l=t.canonizeResults,d=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;s=k(k({},g0(oO(n))),s);var p,h=Ja(o),f=this.executeSelectionSet({selectionSet:Td(n).selectionSet,objectOrReference:h,enclosingRef:h,context:k({store:i,query:n,policies:u,variables:s,varString:_s(s),canonizeResults:d},fN(n,this.config.fragments))});if(f.missing&&(p=[new cN(gse(f.missing),f.missing,n,s)],!c))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,i,n,r){if(qd(r.store)&&this.knownResults.get(t)===n){var o=this.executeSelectionSet.peek(n,i,r,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var i=this,n=t.selectionSet,r=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ot(r)&&!s.policies.rootTypenamesById[r.__ref]&&!s.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var h,a=s.variables,c=s.policies,d=s.store.getFieldValue(r,"__typename"),u=[],f=new _o;function p(C,S){var N;return C.missing&&(h=f.merge(h,((N={})[S]=C.missing,N))),C.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&u.push({__typename:d});var g=new Set(n.selections);g.forEach(function(C){var S,N;if(Ad(C,a))if(go(C)){var L=c.readField({fieldName:C.name.value,field:C,variables:s.variables,from:r},s),q=mo(C);void 0===L?T0.added(C)||(h=f.merge(h,((S={})[q]="Can't find field '".concat(C.name.value,"' on ").concat(ot(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),S))):Mt(L)?L=p(i.executeSubSelectedArray({field:C,array:L,enclosingRef:o,context:s}),q):C.selectionSet?null!=L&&(L=p(i.executeSelectionSet({selectionSet:C.selectionSet,objectOrReference:L,enclosingRef:ot(L)?L:o,context:s}),q)):s.canonizeResults&&(L=i.canon.pass(L)),void 0!==L&&u.push(((N={})[q]=L,N))}else{var oe=Ap(C,s.lookupFragment);if(!oe&&C.kind===te.FRAGMENT_SPREAD)throw Fn(7,C.name.value);oe&&c.fragmentMatches(oe,d)&&oe.selectionSet.selections.forEach(g.add,g)}});var _={result:C0(u),missing:h},v=s.canonizeResults?this.canon.admit(_):Dw(_);return v.result&&this.knownResults.set(v.result,n),v},e.prototype.execSubSelectedArrayImpl=function(t){var a,i=this,n=t.field,r=t.array,o=t.enclosingRef,s=t.context,c=new _o;function l(d,u){var h;return d.missing&&(a=c.merge(a,((h={})[u]=d.missing,h))),d.result}return n.selectionSet&&(r=r.filter(s.store.canRead)),r=r.map(function(d,u){return null===d?null:Mt(d)?l(i.executeSubSelectedArray({field:n,array:d,enclosingRef:o,context:s}),u):n.selectionSet?l(i.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:d,enclosingRef:ot(d)?d:o,context:s}),u):(!1!==globalThis.__DEV__&&function _se(e,t,i){if(!t.selectionSet){var n=new Set([i]);n.forEach(function(r){xt(r)&&(ye(!ot(r),8,function use(e,t){return ot(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,d),d)}),{result:s.canonizeResults?this.canon.admit(r):r,missing:a}},e}();function gse(e){try{JSON.stringify(e,function(t,i){if("string"==typeof i)throw i;return i})}catch(t){return t}}var bN=Object.create(null);function Tw(e){var t=JSON.stringify(e);return bN[t]||(bN[t]=Object.create(null))}function vN(e){var t=Tw(e);return t.keyFieldsFn||(t.keyFieldsFn=function(i,n){var r=function(s,a){return n.readField(a,s)},o=n.keyObject=Mw(e,function(s){var a=_c(n.storeObject,s,r);return void 0===a&&i!==n.storeObject&&on.call(i,s[0])&&(a=_c(i,s,xN)),ye(void 0!==a,2,s.join("."),i),a});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function yN(e){var t=Tw(e);return t.keyArgsFn||(t.keyArgsFn=function(i,n){var r=n.field,o=n.variables,s=n.fieldName,a=Mw(e,function(l){var d=l[0],u=d.charAt(0);if("@"!==u)if("$"!==u){if(i)return _c(i,l)}else{var g=d.slice(1);if(o&&on.call(o,g)){var b=l.slice(0);return b[0]=g,_c(o,b)}}else if(r&&dr(r.directives)){var h=d.slice(1),f=r.directives.find(function(_){return _.name.value===h}),p=f&&Rp(f,o);return p&&_c(p,l.slice(1))}}),c=JSON.stringify(a);return(i||"{}"!==c)&&(s+=":"+c),s})}function Mw(e,t){var i=new _o;return wN(e).reduce(function(n,r){var o,s=t(r);if(void 0!==s){for(var a=r.length-1;a>=0;--a)(o={})[r[a]]=s,s=o;n=i.merge(n,s)}return n},Object.create(null))}function wN(e){var t=Tw(e);if(!t.paths){var i=t.paths=[],n=[];e.forEach(function(r,o){Mt(r)?(wN(r).forEach(function(s){return i.push(n.concat(s))}),n.length=0):(n.push(r),Mt(e[o+1])||(i.push(n.slice(0)),n.length=0))})}return t.paths}function xN(e,t){return e[t]}function _c(e,t,i){return i=i||xN,CN(t.reduce(function n(r,o){return Mt(r)?r.map(function(s){return n(s,o)}):r&&i(r,o)},e))}function CN(e){return xt(e)?Mt(e)?e.map(CN):Mw(Object.keys(e).sort(),function(t){return _c(e,t)}):e}function Iw(e){return void 0!==e.args?e.args:e.field?Rp(e.field,e.variables):null}f0.setStringify(_s);var bse=function(){},DN=function(e,t){return t.fieldName},EN=function(e,t,i){return(0,i.mergeObjects)(e,t)},SN=function(e,t){return t},vse=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=k({dataIdFromObject:lN},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,i){var n,r=this,o=i&&(i.typename||(null===(n=i.storeObject)||void 0===n?void 0:n.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=i&&i.storeObject||t,a=k(k({},i),{typename:o,storeObject:s,readField:i&&i.readField||function(){var h=Aw(arguments,s);return r.readField(h,{store:r.cache.data,variables:h.variables})}}),l=o&&this.getTypePolicy(o),d=l&&l.keyFn||this.config.dataIdFromObject;d;){var u=d(k(k({},t),s),a);if(!Mt(u)){c=u;break}d=vN(u)}return c=c?String(c):void 0,a.keyObject?[c,a.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var i=this;Object.keys(t).forEach(function(n){var r=t[n],o=r.queryType,s=r.mutationType,a=r.subscriptionType,c=si(r,["queryType","mutationType","subscriptionType"]);o&&i.setRootTypename("Query",n),s&&i.setRootTypename("Mutation",n),a&&i.setRootTypename("Subscription",n),on.call(i.toBeAdded,n)?i.toBeAdded[n].push(c):i.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(t,i){var n=this,r=this.getTypePolicy(t),o=i.keyFields,s=i.fields;function a(c,l){c.merge="function"==typeof l?l:!0===l?EN:!1===l?SN:c.merge}a(r,i.merge),r.keyFn=!1===o?bse:Mt(o)?vN(o):"function"==typeof o?o:r.keyFn,s&&Object.keys(s).forEach(function(c){var l=n.getFieldPolicy(t,c,!0),d=s[c];if("function"==typeof d)l.read=d;else{var u=d.keyArgs,h=d.read,f=d.merge;l.keyFn=!1===u?DN:Mt(u)?yN(u):"function"==typeof u?u:l.keyFn,"function"==typeof h&&(l.read=h),a(l,f)}l.read&&l.merge&&(l.keyFn=l.keyFn||DN)})},e.prototype.setRootTypename=function(t,i){void 0===i&&(i=t);var n="ROOT_"+t.toUpperCase(),r=this.rootTypenamesById[n];i!==r&&(ye(!r||r===t,3,t),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[i]=n,this.rootTypenamesById[n]=i)},e.prototype.addPossibleTypes=function(t){var i=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(n){i.getSupertypeSet(n,!0),t[n].forEach(function(r){i.getSupertypeSet(r,!0).add(n);var o=r.match(hN);(!o||o[0]!==r)&&i.fuzzySubtypes.set(r,new RegExp(r))})})},e.prototype.getTypePolicy=function(t){var i=this;if(!on.call(this.typePolicies,t)){var n=this.typePolicies[t]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(t);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(s,a){if(s.test(t)){var c=i.supertypeMap.get(a);c&&c.forEach(function(l){return r.add(l)})}})),r&&r.size&&r.forEach(function(s){var a=i.getTypePolicy(s),c=a.fields,l=si(a,["fields"]);Object.assign(n,l),Object.assign(n.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){i.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,i,n){if(t){var r=this.getTypePolicy(t).fields;return r[i]||n&&(r[i]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,i){var n=this.supertypeMap.get(t);return!n&&i&&this.supertypeMap.set(t,n=new Set),n},e.prototype.fragmentMatches=function(t,i,n,r){var o=this;if(!t.typeCondition)return!0;if(!i)return!1;var s=t.typeCondition.name.value;if(i===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(i,!0),c=[a],l=function(p){var g=o.getSupertypeSet(p,!1);g&&g.size&&c.indexOf(g)<0&&c.push(g)},d=!(!n||!this.fuzzySubtypes.size),u=!1,h=0;h1?e[1]:t}:(s=k({},n),on.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&ye.warn(5,ZR(Array.from(e))),void 0===s.variables&&(s.variables=i),s}function TN(e){return function(i,n){if(Mt(i)||Mt(n))throw Fn(6);if(xt(i)&&xt(n)){var r=e.getFieldValue(i,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(ot(i)&&gc(n))return e.merge(i.__ref,n),i;if(gc(i)&&ot(n))return e.merge(i,n.__ref),n;if(gc(i)&&gc(n))return k(k({},i),n)}return n}}function Rw(e,t,i){var n="".concat(t).concat(i),r=e.flavors.get(n);return r||e.flavors.set(n,r=e.clientOnly===t&&e.deferred===i?e:k(k({},e),{clientOnly:t,deferred:i})),r}var yse=function(){function e(t,i,n){this.cache=t,this.reader=i,this.fragments=n}return e.prototype.writeToStore=function(t,i){var n=this,r=i.query,o=i.result,s=i.dataId,a=i.variables,c=i.overwrite,l=kd(r),d=function hse(){return new _o}();a=k(k({},g0(l)),a);var u=k(k({store:t,written:Object.create(null),merge:function(f,p){return d.merge(f,p)},variables:a,varString:_s(a)},fN(r,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!ot(h))throw Fn(9,o);return u.incomingById.forEach(function(f,p){var g=f.storeObject,b=f.mergeTree,_=f.fieldNodeSet,v=Ja(p);if(b&&b.map.size){var C=n.applyMerges(b,v,g,u);if(ot(C))return;g=C}if(!1!==globalThis.__DEV__&&!u.overwrite){var S=Object.create(null);_.forEach(function(q){q.selectionSet&&(S[q.name.value]=!0)}),Object.keys(g).forEach(function(q){(function(q){return!0===S[yo(q)]})(q)&&!function(q){var oe=b&&b.map.get(q);return!!(oe&&oe.info&&oe.info.merge)}(q)&&function wse(e,t,i,n){var r=function(u){var h=n.getFieldValue(u,i);return"object"==typeof h&&h},o=r(e);if(o){var s=r(t);if(s&&!ot(o)&&!It(o,s)&&!Object.keys(o).every(function(u){return void 0!==n.getFieldValue(s,u)})){var a=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=yo(i),l="".concat(a,".").concat(c);if(!RN.has(l)){RN.add(l);var d=[];!Mt(o)&&!Mt(s)&&[o,s].forEach(function(u){var h=n.getFieldValue(u,"__typename");"string"==typeof h&&!d.includes(h)&&d.push(h)}),!1!==globalThis.__DEV__&&ye.warn(12,c,a,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",l,o,s)}}}}(v,g,q,u.store)})}t.merge(p,g)}),t.retain(h.__ref),h},e.prototype.processSelectionSet=function(t){var i=this,n=t.dataId,r=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,l=Object.create(null),d=n&&c.rootTypenamesById[n]||p0(r,o,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(l.__typename=d);var u=function(){var C=Aw(arguments,l,s.variables);if(ot(C.from)){var S=s.incomingById.get(C.from.__ref);if(S){var N=c.readField(k(k({},C),{from:S.storeObject}),s);if(void 0!==N)return N}}return c.readField(C,s)},h=new Set;this.flattenFields(o,r,s,d).forEach(function(C,S){var N,L=mo(S),q=r[L];if(h.add(S),void 0!==q){var oe=c.getStoreFieldName({typename:d,fieldName:S.name.value,field:S,variables:C.variables}),Ne=IN(a,oe),qe=i.processFieldValue(q,S,S.selectionSet?Rw(C,!1,!1):C,Ne),At=void 0;S.selectionSet&&(ot(qe)||gc(qe))&&(At=u("__typename",qe));var Pn=c.getMergeFunction(d,S.name.value,At);Pn?Ne.info={field:S,typename:d,merge:Pn}:AN(a,oe),l=C.merge(l,((N={})[oe]=qe,N))}else!1!==globalThis.__DEV__&&!C.clientOnly&&!C.deferred&&!T0.added(S)&&!c.getReadFunction(d,S.name.value)&&!1!==globalThis.__DEV__&&ye.error(10,mo(S),r)});try{var f=c.identify(r,{typename:d,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:l,readField:u}),g=f[1];n=n||f[0],g&&(l=s.merge(l,g))}catch(C){if(!n)throw C}if("string"==typeof n){var b=Ja(n),_=s.written[n]||(s.written[n]=[]);if(_.indexOf(o)>=0||(_.push(o),this.reader&&this.reader.isFresh(r,b,o,s)))return b;var v=s.incomingById.get(n);return v?(v.storeObject=s.merge(v.storeObject,l),v.mergeTree=Ow(v.mergeTree,a),h.forEach(function(C){return v.fieldNodeSet.add(C)})):s.incomingById.set(n,{storeObject:l,mergeTree:fm(a)?void 0:a,fieldNodeSet:h}),b}return l},e.prototype.processFieldValue=function(t,i,n,r){var o=this;return i.selectionSet&&null!==t?Mt(t)?t.map(function(s,a){var c=o.processFieldValue(s,i,n,IN(r,a));return AN(r,a),c}):this.processSelectionSet({result:t,selectionSet:i.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?HO(t):t},e.prototype.flattenFields=function(t,i,n,r){void 0===r&&(r=p0(i,t,n.fragmentMap));var o=new Map,s=this.cache.policies,a=new bo(!1);return function c(l,d){var u=a.lookup(l,d.clientOnly,d.deferred);u.visited||(u.visited=!0,l.selections.forEach(function(h){if(Ad(h,n.variables)){var f=d.clientOnly,p=d.deferred;if(!(f&&p)&&dr(h.directives)&&h.directives.forEach(function(_){var v=_.name.value;if("client"===v&&(f=!0),"defer"===v){var C=Rp(_,n.variables);(!C||!1!==C.if)&&(p=!0)}}),go(h)){var g=o.get(h);g&&(f=f&&g.clientOnly,p=p&&g.deferred),o.set(h,Rw(n,f,p))}else{var b=Ap(h,n.lookupFragment);if(!b&&h.kind===te.FRAGMENT_SPREAD)throw Fn(11,h.name.value);b&&s.fragmentMatches(b,r,i,n.variables)&&c(b.selectionSet,Rw(n,f,p))}}}))}(t,n),o},e.prototype.applyMerges=function(t,i,n,r,o){var s,a=this;if(t.map.size&&!ot(n)){var c=Mt(n)||!ot(i)&&!gc(i)?void 0:i,l=n;c&&!o&&(o=[ot(c)?c.__ref:c]);var d,u=function(h,f){return Mt(h)?"number"==typeof f?h[f]:void 0:r.store.getFieldValue(h,String(f))};t.map.forEach(function(h,f){var p=u(c,f),g=u(l,f);if(void 0!==g){o&&o.push(f);var b=a.applyMerges(h,p,g,r,o);b!==g&&(d=d||new Map).set(f,b),o&&ye(o.pop()===f)}}),d&&(n=Mt(l)?l.slice(0):k({},l),d.forEach(function(h,f){n[f]=h}))}return t.info?this.cache.policies.runMergeFunction(i,n,t.info,r,o&&(s=r.store).getStorage.apply(s,o)):n},e}(),MN=[];function IN(e,t){var i=e.map;return i.has(t)||i.set(t,MN.pop()||{map:new Map}),i.get(t)}function Ow(e,t){if(e===t||!t||fm(t))return e;if(!e||fm(e))return t;var i=e.info&&t.info?k(k({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,o={info:i,map:n?new Map:e.map.size?e.map:t.map};if(n){var s=new Set(t.map.keys());e.map.forEach(function(a,c){o.map.set(c,Ow(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,Ow(t.map.get(a),e.map.get(a)))})}return o}function fm(e){return!e||!(e.info||e.map.size)}function AN(e,t){var i=e.map,n=i.get(t);n&&fm(n)&&(MN.push(n),i.delete(t))}var RN=new Set,xse=function(e){function t(i){void 0===i&&(i={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new BO(T0),n.assumeImmutableResults=!0,n.makeVar=HZ,n.txCount=0,n.config=function dse(e){return sc(dN,e)}(i),n.addTypename=!!n.config.addTypename,n.policies=new vse({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Ln(t,e),t.prototype.init=function(){var i=this.data=new $d.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=i.stump,this.resetResultCache()},t.prototype.resetResultCache=function(i){var n=this,r=this.storeReader,o=this.config.fragments;this.storeWriter=new yse(this,this.storeReader=new mse({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:uN(this.config),canon:i?void 0:r&&r.canon,fragments:o}),o),this.maybeBroadcastWatch=zp(function(s,a){return n.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(s){var a=s.optimistic?n.optimisticData:n.data;if(qd(a))return a.makeCacheKey(s.query,s.callback,_s({optimistic:s.optimistic,id:s.id,variables:s.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(s){return s.resetCaching()})},t.prototype.restore=function(i){return this.init(),i&&this.data.replace(i),this},t.prototype.extract=function(i){return void 0===i&&(i=!1),(i?this.optimisticData:this.data).extract()},t.prototype.read=function(i){var n=i.returnPartialData,r=void 0!==n&&n;try{return this.storeReader.diffQueryAgainstStore(k(k({},i),{store:i.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(o){if(o instanceof cN)return null;throw o}},t.prototype.write=function(i){try{return++this.txCount,this.storeWriter.writeToStore(this.data,i)}finally{! --this.txCount&&!1!==i.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(i){if(on.call(i,"id")&&!i.id)return!1;var n=i.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(i.id||"ROOT_QUERY",i.fields)}finally{! --this.txCount&&!1!==i.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(i){return this.storeReader.diffQueryAgainstStore(k(k({},i),{store:i.optimistic?this.optimisticData:this.data,rootId:i.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(i){var n=this;return this.watches.size||function jZ(e){Nd(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(i),i.immediate&&this.maybeBroadcastWatch(i),function(){n.watches.delete(i)&&!n.watches.size&&dF(n),n.maybeBroadcastWatch.forget(i)}},t.prototype.gc=function(i){_s.reset();var n=this.optimisticData.gc();return i&&!this.txCount&&(i.resetResultCache?this.resetResultCache(i.resetResultIdentities):i.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(i,n){return(n?this.optimisticData:this.data).retain(i)},t.prototype.release=function(i,n){return(n?this.optimisticData:this.data).release(i)},t.prototype.identify=function(i){if(ot(i))return i.__ref;try{return this.policies.identify(i)[0]}catch(n){!1!==globalThis.__DEV__&&ye.warn(n)}},t.prototype.evict=function(i){if(!i.id){if(on.call(i,"id"))return!1;i=k(k({},i),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(i,this.data)}finally{! --this.txCount&&!1!==i.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(i){var n=this;return this.init(),_s.reset(),i&&i.discardWatches?(this.watches.forEach(function(r){return n.maybeBroadcastWatch.forget(r)}),this.watches.clear(),dF(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(i){var n=this.optimisticData.removeLayer(i);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},t.prototype.batch=function(i){var l,n=this,r=i.update,o=i.optimistic,s=void 0===o||o,a=i.removeOptimistic,c=i.onWatchUpdated,d=function(h){var p=n.data,g=n.optimisticData;++n.txCount,h&&(n.data=n.optimisticData=h);try{return l=r(n)}finally{--n.txCount,n.data=p,n.optimisticData=g}},u=new Set;return c&&!this.txCount&&this.broadcastWatches(k(k({},i),{onWatchUpdated:function(h){return u.add(h),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,d):!1===s?d(this.data):d(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&u.size?(this.broadcastWatches(k(k({},i),{onWatchUpdated:function(h,f){var p=c.call(this,h,f);return!1!==p&&u.delete(h),p}})),u.size&&u.forEach(function(h){return n.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(i),l},t.prototype.performTransaction=function(i,n){return this.batch({update:i,optimistic:n||null!==n})},t.prototype.transformDocument=function(i){return this.addTypenameToDocument(this.addFragmentsToDocument(i))},t.prototype.broadcastWatches=function(i){var n=this;this.txCount||this.watches.forEach(function(r){return n.maybeBroadcastWatch(r,i)})},t.prototype.addFragmentsToDocument=function(i){var n=this.config.fragments;return n?n.transform(i):i},t.prototype.addTypenameToDocument=function(i){return this.addTypename?this.addTypenameTransform.transformDocument(i):i},t.prototype.broadcastWatch=function(i,n){var r=i.lastDiff,o=this.diff(i);n&&(i.optimistic&&"string"==typeof n.optimistic&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&!1===n.onWatchUpdated.call(this,i,o,r))||(!r||!It(r.result,o.result))&&i.callback(i.lastDiff=o,r)},t}(ase);const Cse=window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/graphql";function Dse(e){return{link:e.create({uri:Cse}),cache:new xse({typePolicies:{Query:{fields:{search:{merge:(t,i)=>({...t,...i})}}}}})}}let Ese=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({providers:[{provide:IF,useFactory:Dse,deps:[sse]},OF],imports:[EJ]}),t})(),Sse=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[vn,jd,Yl,eN,jf,Gv,jre]}),t})(),kse=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=le({type:e}),e.\u0275inj=ae({imports:[wI,iee,vn,nte,jf,hte,Dte,Zte,ene,_ne,jd,Gv,Ene,Ine,jne,eN,Yne,PF,vie,sre,qre,Sse,hK]}),t})(),Tse=(()=>{var e;class t{constructor(n,r){n.setDefaultFontSetClass("material-icons-outlined"),n.addSvgIcon("magnet",r.bypassSecurityTrustResourceUrl("assets/magnet.svg"))}}return(e=t).\u0275fac=function(n){return new(n||e)(D(Xl),D(Zh))},e.\u0275mod=le({type:e,bootstrap:[rse]}),e.\u0275inj=ae({providers:[LF],imports:[pY,wI,_M,Ese,H$,jf,GG,Gv,Q9,UG,kse]}),t})();d$().bootstrapModule(Tse).catch(e=>console.error(e))},622:function(yc){yc.exports=function(){"use strict";function xo(ki){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(st){return typeof st}:function(st){return st&&"function"==typeof Symbol&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st})(ki)}var Co="iec",hr="jedec",Eo={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function Si(ki){var st=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ds=st.bits,So=void 0!==Ds&&Ds,Es=st.pad,bm=void 0!==Es&&Es,Vr=st.base,Nn=void 0===Vr?-1:Vr,Yd=st.round,ko=void 0===Yd?2:Yd,Kd=st.locale,jr=void 0===Kd?"":Kd,Ti=st.localeOptions,vm=void 0===Ti?{}:Ti,xc=st.separator,Me=void 0===xc?"":xc,Cc=st.spacer,ym=void 0===Cc?" ":Cc,Xd=st.symbols,wm=void 0===Xd?{}:Xd,Y=st.standard,Wn=void 0===Y?"":Y,Dc=st.output,at=void 0===Dc?"string":Dc,Ze=st.fullform,xm=void 0!==Ze&&Ze,J=st.fullforms,Ss=void 0===J?[]:J,Ln=st.exponent,k=void 0===Ln?-1:Ln,si=st.roundingMethod,Cm=void 0===si?"round":si,Zd=st.precision,Ec=void 0===Zd?0:Zd,Ct=k,To=Number(ki),Je=[],ks=0,Bn="";-1===Nn&&0===Wn.length?(Nn=10,Wn=hr):-1===Nn&&Wn.length>0?Nn=(Wn=Wn===Co?Co:hr)===Co?2:10:Wn=10==(Nn=2===Nn?2:10)||Wn===hr?hr:Co;var Vn=10===Nn?1e3:1024,Sc=!0===xm,Jd=To<0,Ts=Math[Cm];if(isNaN(ki))throw new TypeError("Invalid number");if("function"!==xo(Ts))throw new TypeError("Invalid rounding method");if(Jd&&(To=-To),(-1===Ct||isNaN(Ct))&&(Ct=Math.floor(Math.log(To)/Math.log(Vn)))<0&&(Ct=0),Ct>8&&(Ec>0&&(Ec+=8-Ct),Ct=8),"exponent"===at)return Ct;if(0===To)Je[0]=0,Bn=Je[1]=Eo.symbol[Wn][So?"bits":"bytes"][Ct];else{ks=To/(2===Nn?Math.pow(2,10*Ct):Math.pow(1e3,Ct)),So&&(ks*=8)>=Vn&&Ct<8&&(ks/=Vn,Ct++);var kc=Math.pow(10,Ct>0?ko:0);Je[0]=Ts(ks*kc)/kc,Je[0]===Vn&&Ct<8&&-1===k&&(Je[0]=1,Ct++),Bn=Je[1]=10===Nn&&1===Ct?So?"kbit":"kB":Eo.symbol[Wn][So?"bits":"bytes"][Ct]}if(Jd&&(Je[0]=-Je[0]),Ec>0&&(Je[0]=Je[0].toPrecision(Ec)),Je[1]=wm[Je[1]]||Je[1],!0===jr?Je[0]=Je[0].toLocaleString():jr.length>0?Je[0]=Je[0].toLocaleString(jr,vm):Me.length>0&&(Je[0]=Je[0].toString().replace(".",Me)),bm&&!1===Number.isInteger(Je[0])&&ko>0){var eu=Me||".",tu=Je[0].toString().split(eu),ai=tu[1]||"",Mi=ai.length,nu=ko-Mi;Je[0]="".concat(tu[0]).concat(eu).concat(ai.padEnd(Mi+nu,"0"))}return Sc&&(Je[1]=Ss[Ct]?Ss[Ct]:Eo.fullform[Wn][Ct]+(So?"bit":"byte")+(1===Je[0]?"":"s")),"array"===at?Je:"object"===at?{value:Je[0],symbol:Je[1],exponent:Ct,unit:Bn}:Je.join(ym)}return Si.partial=function(ki){return function(st){return Si(st,ki)}},Si}()}},yc=>{yc(yc.s=25)}]); \ No newline at end of file diff --git a/webui/src/app/graphql/generated/index.ts b/webui/src/app/graphql/generated/index.ts index 9c18239b..2660cddb 100644 --- a/webui/src/app/graphql/generated/index.ts +++ b/webui/src/app/graphql/generated/index.ts @@ -81,6 +81,7 @@ export type ContentType = export type ContentTypeAgg = { __typename?: 'ContentTypeAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value?: Maybe; }; @@ -125,6 +126,7 @@ export type FilesStatus = export type GenreAgg = { __typename?: 'GenreAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value: Scalars['String']['output']; }; @@ -202,6 +204,7 @@ export type Language = export type LanguageAgg = { __typename?: 'LanguageAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value: Language; }; @@ -237,6 +240,7 @@ export type Query = { export type ReleaseYearAgg = { __typename?: 'ReleaseYearAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value?: Maybe; }; @@ -247,6 +251,7 @@ export type ReleaseYearFacetInput = { }; export type SearchQueryInput = { + aggregationBudget?: InputMaybe; cached?: InputMaybe; /** hasNextPage if true, the search result will include the hasNextPage field, indicating if there are more results to fetch */ hasNextPage?: InputMaybe; @@ -360,6 +365,7 @@ export type TorrentContentSearchResult = { hasNextPage?: Maybe; items: Array; totalCount: Scalars['Int']['output']; + totalCountIsEstimate: Scalars['Boolean']['output']; }; export type TorrentFile = { @@ -377,6 +383,7 @@ export type TorrentFile = { export type TorrentFileTypeAgg = { __typename?: 'TorrentFileTypeAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value: FileType; }; @@ -440,6 +447,7 @@ export type TorrentSource = { export type TorrentSourceAgg = { __typename?: 'TorrentSourceAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value: Scalars['String']['output']; }; @@ -458,6 +466,7 @@ export type TorrentSuggestTagsResult = { export type TorrentTagAgg = { __typename?: 'TorrentTagAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value: Scalars['String']['output']; }; @@ -503,6 +512,7 @@ export type VideoResolution = export type VideoResolutionAgg = { __typename?: 'VideoResolutionAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value?: Maybe; }; @@ -526,6 +536,7 @@ export type VideoSource = export type VideoSourceAgg = { __typename?: 'VideoSourceAgg'; count: Scalars['Int']['output']; + isEstimate: Scalars['Boolean']['output']; label: Scalars['String']['output']; value?: Maybe; }; @@ -541,7 +552,7 @@ export type TorrentFragment = { __typename?: 'Torrent', infoHash: string, name: export type TorrentContentFragment = { __typename?: 'TorrentContent', id: string, infoHash: string, contentType?: ContentType | null, title: string, video3d?: Video3d | null, videoCodec?: VideoCodec | null, videoModifier?: VideoModifier | null, videoResolution?: VideoResolution | null, videoSource?: VideoSource | null, createdAt: string, updatedAt: string, torrent: { __typename?: 'Torrent', infoHash: string, name: string, size: number, private: boolean, filesStatus: FilesStatus, hasFilesInfo: boolean, singleFile?: boolean | null, fileType?: FileType | null, seeders?: number | null, leechers?: number | null, tagNames: Array, magnetUri: string, createdAt: string, updatedAt: string, files?: Array<{ __typename?: 'TorrentFile', infoHash: string, index: number, path: string, size: number, fileType?: FileType | null, createdAt: string, updatedAt: string }> | null, sources: Array<{ __typename?: 'TorrentSource', key: string, name: string }> }, content?: { __typename?: 'Content', type: ContentType, source: string, id: string, title: string, releaseDate?: string | null, releaseYear?: number | null, overview?: string | null, runtime?: number | null, voteAverage?: number | null, voteCount?: number | null, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string }, originalLanguage?: { __typename?: 'LanguageInfo', id: string, name: string } | null, attributes: Array<{ __typename?: 'ContentAttribute', source: string, key: string, value: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, collections: Array<{ __typename?: 'ContentCollection', type: string, source: string, id: string, name: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, externalLinks: Array<{ __typename?: 'ExternalLink', url: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }> } | null, languages?: Array<{ __typename?: 'LanguageInfo', id: string, name: string }> | null, episodes?: { __typename?: 'Episodes', label: string, seasons: Array<{ __typename?: 'Season', season: number, episodes?: Array | null }> } | null }; -export type TorrentContentSearchResultFragment = { __typename?: 'TorrentContentSearchResult', totalCount: number, hasNextPage?: boolean | null, items: Array<{ __typename?: 'TorrentContent', id: string, infoHash: string, contentType?: ContentType | null, title: string, video3d?: Video3d | null, videoCodec?: VideoCodec | null, videoModifier?: VideoModifier | null, videoResolution?: VideoResolution | null, videoSource?: VideoSource | null, createdAt: string, updatedAt: string, torrent: { __typename?: 'Torrent', infoHash: string, name: string, size: number, private: boolean, filesStatus: FilesStatus, hasFilesInfo: boolean, singleFile?: boolean | null, fileType?: FileType | null, seeders?: number | null, leechers?: number | null, tagNames: Array, magnetUri: string, createdAt: string, updatedAt: string, files?: Array<{ __typename?: 'TorrentFile', infoHash: string, index: number, path: string, size: number, fileType?: FileType | null, createdAt: string, updatedAt: string }> | null, sources: Array<{ __typename?: 'TorrentSource', key: string, name: string }> }, content?: { __typename?: 'Content', type: ContentType, source: string, id: string, title: string, releaseDate?: string | null, releaseYear?: number | null, overview?: string | null, runtime?: number | null, voteAverage?: number | null, voteCount?: number | null, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string }, originalLanguage?: { __typename?: 'LanguageInfo', id: string, name: string } | null, attributes: Array<{ __typename?: 'ContentAttribute', source: string, key: string, value: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, collections: Array<{ __typename?: 'ContentCollection', type: string, source: string, id: string, name: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, externalLinks: Array<{ __typename?: 'ExternalLink', url: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }> } | null, languages?: Array<{ __typename?: 'LanguageInfo', id: string, name: string }> | null, episodes?: { __typename?: 'Episodes', label: string, seasons: Array<{ __typename?: 'Season', season: number, episodes?: Array | null }> } | null }>, aggregations: { __typename?: 'TorrentContentAggregations', contentType?: Array<{ __typename?: 'ContentTypeAgg', value?: ContentType | null, label: string, count: number }> | null, torrentSource?: Array<{ __typename?: 'TorrentSourceAgg', value: string, label: string, count: number }> | null, torrentTag?: Array<{ __typename?: 'TorrentTagAgg', value: string, label: string, count: number }> | null, torrentFileType?: Array<{ __typename?: 'TorrentFileTypeAgg', value: FileType, label: string, count: number }> | null, language?: Array<{ __typename?: 'LanguageAgg', value: Language, label: string, count: number }> | null, genre?: Array<{ __typename?: 'GenreAgg', value: string, label: string, count: number }> | null, releaseYear?: Array<{ __typename?: 'ReleaseYearAgg', value?: number | null, label: string, count: number }> | null, videoResolution?: Array<{ __typename?: 'VideoResolutionAgg', value?: VideoResolution | null, label: string, count: number }> | null, videoSource?: Array<{ __typename?: 'VideoSourceAgg', value?: VideoSource | null, label: string, count: number }> | null } }; +export type TorrentContentSearchResultFragment = { __typename?: 'TorrentContentSearchResult', totalCount: number, totalCountIsEstimate: boolean, hasNextPage?: boolean | null, items: Array<{ __typename?: 'TorrentContent', id: string, infoHash: string, contentType?: ContentType | null, title: string, video3d?: Video3d | null, videoCodec?: VideoCodec | null, videoModifier?: VideoModifier | null, videoResolution?: VideoResolution | null, videoSource?: VideoSource | null, createdAt: string, updatedAt: string, torrent: { __typename?: 'Torrent', infoHash: string, name: string, size: number, private: boolean, filesStatus: FilesStatus, hasFilesInfo: boolean, singleFile?: boolean | null, fileType?: FileType | null, seeders?: number | null, leechers?: number | null, tagNames: Array, magnetUri: string, createdAt: string, updatedAt: string, files?: Array<{ __typename?: 'TorrentFile', infoHash: string, index: number, path: string, size: number, fileType?: FileType | null, createdAt: string, updatedAt: string }> | null, sources: Array<{ __typename?: 'TorrentSource', key: string, name: string }> }, content?: { __typename?: 'Content', type: ContentType, source: string, id: string, title: string, releaseDate?: string | null, releaseYear?: number | null, overview?: string | null, runtime?: number | null, voteAverage?: number | null, voteCount?: number | null, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string }, originalLanguage?: { __typename?: 'LanguageInfo', id: string, name: string } | null, attributes: Array<{ __typename?: 'ContentAttribute', source: string, key: string, value: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, collections: Array<{ __typename?: 'ContentCollection', type: string, source: string, id: string, name: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, externalLinks: Array<{ __typename?: 'ExternalLink', url: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }> } | null, languages?: Array<{ __typename?: 'LanguageInfo', id: string, name: string }> | null, episodes?: { __typename?: 'Episodes', label: string, seasons: Array<{ __typename?: 'Season', season: number, episodes?: Array | null }> } | null }>, aggregations: { __typename?: 'TorrentContentAggregations', contentType?: Array<{ __typename?: 'ContentTypeAgg', value?: ContentType | null, label: string, count: number, isEstimate: boolean }> | null, torrentSource?: Array<{ __typename?: 'TorrentSourceAgg', value: string, label: string, count: number, isEstimate: boolean }> | null, torrentTag?: Array<{ __typename?: 'TorrentTagAgg', value: string, label: string, count: number, isEstimate: boolean }> | null, torrentFileType?: Array<{ __typename?: 'TorrentFileTypeAgg', value: FileType, label: string, count: number, isEstimate: boolean }> | null, language?: Array<{ __typename?: 'LanguageAgg', value: Language, label: string, count: number, isEstimate: boolean }> | null, genre?: Array<{ __typename?: 'GenreAgg', value: string, label: string, count: number, isEstimate: boolean }> | null, releaseYear?: Array<{ __typename?: 'ReleaseYearAgg', value?: number | null, label: string, count: number, isEstimate: boolean }> | null, videoResolution?: Array<{ __typename?: 'VideoResolutionAgg', value?: VideoResolution | null, label: string, count: number, isEstimate: boolean }> | null, videoSource?: Array<{ __typename?: 'VideoSourceAgg', value?: VideoSource | null, label: string, count: number, isEstimate: boolean }> | null } }; export type TorrentFileFragment = { __typename?: 'TorrentFile', infoHash: string, index: number, path: string, size: number, fileType?: FileType | null, createdAt: string, updatedAt: string }; @@ -582,7 +593,7 @@ export type TorrentContentSearchQueryVariables = Exact<{ }>; -export type TorrentContentSearchQuery = { __typename?: 'Query', torrentContent: { __typename?: 'TorrentContentQuery', search: { __typename?: 'TorrentContentSearchResult', totalCount: number, hasNextPage?: boolean | null, items: Array<{ __typename?: 'TorrentContent', id: string, infoHash: string, contentType?: ContentType | null, title: string, video3d?: Video3d | null, videoCodec?: VideoCodec | null, videoModifier?: VideoModifier | null, videoResolution?: VideoResolution | null, videoSource?: VideoSource | null, createdAt: string, updatedAt: string, torrent: { __typename?: 'Torrent', infoHash: string, name: string, size: number, private: boolean, filesStatus: FilesStatus, hasFilesInfo: boolean, singleFile?: boolean | null, fileType?: FileType | null, seeders?: number | null, leechers?: number | null, tagNames: Array, magnetUri: string, createdAt: string, updatedAt: string, files?: Array<{ __typename?: 'TorrentFile', infoHash: string, index: number, path: string, size: number, fileType?: FileType | null, createdAt: string, updatedAt: string }> | null, sources: Array<{ __typename?: 'TorrentSource', key: string, name: string }> }, content?: { __typename?: 'Content', type: ContentType, source: string, id: string, title: string, releaseDate?: string | null, releaseYear?: number | null, overview?: string | null, runtime?: number | null, voteAverage?: number | null, voteCount?: number | null, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string }, originalLanguage?: { __typename?: 'LanguageInfo', id: string, name: string } | null, attributes: Array<{ __typename?: 'ContentAttribute', source: string, key: string, value: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, collections: Array<{ __typename?: 'ContentCollection', type: string, source: string, id: string, name: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, externalLinks: Array<{ __typename?: 'ExternalLink', url: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }> } | null, languages?: Array<{ __typename?: 'LanguageInfo', id: string, name: string }> | null, episodes?: { __typename?: 'Episodes', label: string, seasons: Array<{ __typename?: 'Season', season: number, episodes?: Array | null }> } | null }>, aggregations: { __typename?: 'TorrentContentAggregations', contentType?: Array<{ __typename?: 'ContentTypeAgg', value?: ContentType | null, label: string, count: number }> | null, torrentSource?: Array<{ __typename?: 'TorrentSourceAgg', value: string, label: string, count: number }> | null, torrentTag?: Array<{ __typename?: 'TorrentTagAgg', value: string, label: string, count: number }> | null, torrentFileType?: Array<{ __typename?: 'TorrentFileTypeAgg', value: FileType, label: string, count: number }> | null, language?: Array<{ __typename?: 'LanguageAgg', value: Language, label: string, count: number }> | null, genre?: Array<{ __typename?: 'GenreAgg', value: string, label: string, count: number }> | null, releaseYear?: Array<{ __typename?: 'ReleaseYearAgg', value?: number | null, label: string, count: number }> | null, videoResolution?: Array<{ __typename?: 'VideoResolutionAgg', value?: VideoResolution | null, label: string, count: number }> | null, videoSource?: Array<{ __typename?: 'VideoSourceAgg', value?: VideoSource | null, label: string, count: number }> | null } } } }; +export type TorrentContentSearchQuery = { __typename?: 'Query', torrentContent: { __typename?: 'TorrentContentQuery', search: { __typename?: 'TorrentContentSearchResult', totalCount: number, totalCountIsEstimate: boolean, hasNextPage?: boolean | null, items: Array<{ __typename?: 'TorrentContent', id: string, infoHash: string, contentType?: ContentType | null, title: string, video3d?: Video3d | null, videoCodec?: VideoCodec | null, videoModifier?: VideoModifier | null, videoResolution?: VideoResolution | null, videoSource?: VideoSource | null, createdAt: string, updatedAt: string, torrent: { __typename?: 'Torrent', infoHash: string, name: string, size: number, private: boolean, filesStatus: FilesStatus, hasFilesInfo: boolean, singleFile?: boolean | null, fileType?: FileType | null, seeders?: number | null, leechers?: number | null, tagNames: Array, magnetUri: string, createdAt: string, updatedAt: string, files?: Array<{ __typename?: 'TorrentFile', infoHash: string, index: number, path: string, size: number, fileType?: FileType | null, createdAt: string, updatedAt: string }> | null, sources: Array<{ __typename?: 'TorrentSource', key: string, name: string }> }, content?: { __typename?: 'Content', type: ContentType, source: string, id: string, title: string, releaseDate?: string | null, releaseYear?: number | null, overview?: string | null, runtime?: number | null, voteAverage?: number | null, voteCount?: number | null, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string }, originalLanguage?: { __typename?: 'LanguageInfo', id: string, name: string } | null, attributes: Array<{ __typename?: 'ContentAttribute', source: string, key: string, value: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, collections: Array<{ __typename?: 'ContentCollection', type: string, source: string, id: string, name: string, createdAt: string, updatedAt: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }>, externalLinks: Array<{ __typename?: 'ExternalLink', url: string, metadataSource: { __typename?: 'MetadataSource', key: string, name: string } }> } | null, languages?: Array<{ __typename?: 'LanguageInfo', id: string, name: string }> | null, episodes?: { __typename?: 'Episodes', label: string, seasons: Array<{ __typename?: 'Season', season: number, episodes?: Array | null }> } | null }>, aggregations: { __typename?: 'TorrentContentAggregations', contentType?: Array<{ __typename?: 'ContentTypeAgg', value?: ContentType | null, label: string, count: number, isEstimate: boolean }> | null, torrentSource?: Array<{ __typename?: 'TorrentSourceAgg', value: string, label: string, count: number, isEstimate: boolean }> | null, torrentTag?: Array<{ __typename?: 'TorrentTagAgg', value: string, label: string, count: number, isEstimate: boolean }> | null, torrentFileType?: Array<{ __typename?: 'TorrentFileTypeAgg', value: FileType, label: string, count: number, isEstimate: boolean }> | null, language?: Array<{ __typename?: 'LanguageAgg', value: Language, label: string, count: number, isEstimate: boolean }> | null, genre?: Array<{ __typename?: 'GenreAgg', value: string, label: string, count: number, isEstimate: boolean }> | null, releaseYear?: Array<{ __typename?: 'ReleaseYearAgg', value?: number | null, label: string, count: number, isEstimate: boolean }> | null, videoResolution?: Array<{ __typename?: 'VideoResolutionAgg', value?: VideoResolution | null, label: string, count: number, isEstimate: boolean }> | null, videoSource?: Array<{ __typename?: 'VideoSourceAgg', value?: VideoSource | null, label: string, count: number, isEstimate: boolean }> | null } } } }; export type TorrentSuggestTagsQueryVariables = Exact<{ query: SuggestTagsQueryInput; @@ -720,52 +731,62 @@ export const TorrentContentSearchResultFragmentDoc = gql` ...TorrentContent } totalCount + totalCountIsEstimate hasNextPage aggregations { contentType { value label count + isEstimate } torrentSource { value label count + isEstimate } torrentTag { value label count + isEstimate } torrentFileType { value label count + isEstimate } language { value label count + isEstimate } genre { value label count + isEstimate } releaseYear { value label count + isEstimate } videoResolution { value label count + isEstimate } videoSource { value label count + isEstimate } } } diff --git a/webui/src/app/paginator/paginator.component.html b/webui/src/app/paginator/paginator.component.html index ef74a91d..ad66e463 100644 --- a/webui/src/app/paginator/paginator.component.html +++ b/webui/src/app/paginator/paginator.component.html @@ -14,7 +14,7 @@ {{ firstItemIndex | number }} - {{ lastItemIndex | number }}{{ hasTotalLength - ? " of " + (totalLessThanOrEqual ? "≤ " : "") + (totalLength | number) + ? " of " + (totalIsEstimate ? "~" : "") + (totalLength | number) : "" }}

diff --git a/webui/src/app/paginator/paginator.component.ts b/webui/src/app/paginator/paginator.component.ts index a8a566de..733f7feb 100644 --- a/webui/src/app/paginator/paginator.component.ts +++ b/webui/src/app/paginator/paginator.component.ts @@ -18,7 +18,8 @@ export class PaginatorComponent { @Input() pageSizes: number[] = [10, 20, 50, 100]; @Input({ transform: numberAttribute }) pageLength = 0; @Input() totalLength: number | null = null; - @Input() totalLessThanOrEqual = false; + @Input() totalIsEstimate = false; + @Input() hasNextPage: boolean | null | undefined = null; @Output() page = new EventEmitter(); @@ -38,10 +39,6 @@ export class PaginatorComponent { return this.pageIndex > 0; } - get hasNextPage() { - return this.firstItemIndex + this.pageSize <= this.totalLength!; - } - emitChange() { this.page.emit({ pageIndex: this.pageIndex, diff --git a/webui/src/app/search/torrent-content/facet.ts b/webui/src/app/search/torrent-content/facet.ts index 62f6434f..2ce771be 100644 --- a/webui/src/app/search/torrent-content/facet.ts +++ b/webui/src/app/search/torrent-content/facet.ts @@ -5,6 +5,7 @@ export type Agg = { count: number; label: string; value: FacetValue; + isEstimate: boolean; }; export type GenreAgg = Agg; diff --git a/webui/src/app/search/torrent-content/torrent-content-search.engine.ts b/webui/src/app/search/torrent-content/torrent-content-search.engine.ts index 23decfda..5ee54d89 100644 --- a/webui/src/app/search/torrent-content/torrent-content-search.engine.ts +++ b/webui/src/app/search/torrent-content/torrent-content-search.engine.ts @@ -1,5 +1,5 @@ import { CollectionViewer, DataSource } from "@angular/cdk/collections"; -import { BehaviorSubject, catchError, EMPTY, map, Observable, zip } from "rxjs"; +import { BehaviorSubject, catchError, EMPTY, map, Observable } from "rxjs"; import * as generated from "../../graphql/generated"; import { GraphQLService } from "../../graphql/graphql.service"; import { AppErrorsService } from "../../app-errors.service"; @@ -9,9 +9,20 @@ import { Facet, VideoResolutionAgg, VideoSourceAgg } from "./facet"; const emptyResult: generated.TorrentContentSearchResult = { items: [], totalCount: 0, + totalCountIsEstimate: false, aggregations: {}, }; +type BudgetedCount = { + count: number; + isEstimate: boolean; +}; + +const emptyBudgetedCount = { + count: 0, + isEstimate: false, +}; + export class TorrentContentSearchEngine implements DataSource { @@ -42,6 +53,9 @@ export class TorrentContentSearchEngine map((result) => result.aggregations), ); public loading$ = this.loadingSubject.asObservable(); + public hasNextPage$ = this.itemsResultSubject.pipe( + map((result) => result.hasNextPage), + ); private torrentSourceFacet = new Facet( "Torrent Source", @@ -100,11 +114,15 @@ export class TorrentContentSearchEngine this.genreFacet, ]; - private overallTotalCountSubject = new BehaviorSubject(0); + private overallTotalCountSubject = new BehaviorSubject( + emptyBudgetedCount, + ); public overallTotalCount$ = this.overallTotalCountSubject.asObservable(); - private maxTotalCountSubject = new BehaviorSubject(0); - public maxTotalCount$ = this.maxTotalCountSubject.asObservable(); + private totalCountSubject = new BehaviorSubject( + emptyBudgetedCount, + ); + public totalCount$ = this.totalCountSubject.asObservable(); public contentTypes = contentTypes; @@ -136,7 +154,6 @@ export class TorrentContentSearchEngine const pageSize = this.pageSizeSubject.getValue(); const queryString = this.queryStringSubject.getValue() || undefined; const offset = this.pageIndexSubject.getValue() * pageSize; - const contentType = this.contentTypeSubject.getValue(); const items = this.graphQLService .torrentContentSearch({ query: { @@ -145,29 +162,14 @@ export class TorrentContentSearchEngine offset, hasNextPage: true, cached, - }, - facets: this.facetsInput(false), - }) - .pipe( - catchError((err: Error) => { - this.errorsService.addError( - `Error loading item results: ${err.message}`, - ); - return EMPTY; - }), - ); - const aggs = this.graphQLService - .torrentContentSearch({ - query: { - limit: 0, - cached: true, + totalCount: true, }, facets: this.facetsInput(true), }) .pipe( catchError((err: Error) => { this.errorsService.addError( - `Error loading aggregation results: ${err.message}`, + `Error loading item results: ${err.message}`, ); return EMPTY; }), @@ -176,39 +178,25 @@ export class TorrentContentSearchEngine const lastRequestTime = this.lastRequestTimeSubject.getValue(); if (requestTime >= lastRequestTime) { this.itemsResultSubject.next(result); - } - }); - aggs.subscribe((result) => { - const lastRequestTime = this.lastRequestTimeSubject.getValue(); - if (requestTime >= lastRequestTime) { this.aggsResultSubject.next(result); + this.loadingSubject.next(false); + this.lastRequestTimeSubject.next(requestTime); + this.pageLengthSubject.next(result.items.length); + this.totalCountSubject.next({ + count: result.totalCount, + isEstimate: result.totalCountIsEstimate, + }); + this.overallTotalCountSubject.next( + (result.aggregations.contentType ?? []).reduce( + (acc, next) => ({ + count: acc.count + next.count, + isEstimate: acc.isEstimate || next.isEstimate, + }), + emptyBudgetedCount, + ), + ); } }); - zip(items, aggs).subscribe(([i, a]) => { - this.loadingSubject.next(false); - this.lastRequestTimeSubject.next(requestTime); - const overallTotalCount = - a.aggregations.contentType - ?.map((c) => c.count) - .reduce((a, b) => a + b, 0) ?? 0; - let maxTotalCount: number; - if (!i.hasNextPage) { - maxTotalCount = offset + i.items.length; - } else if (contentType === undefined) { - maxTotalCount = - a.aggregations.contentType - ?.map((c) => c.count) - .reduce((a, b) => a + b, 0) ?? 0; - } else { - maxTotalCount = - a.aggregations.contentType?.find( - (a) => (a.value ?? "null") === (contentType ?? undefined), - )?.count ?? overallTotalCount; - } - this.pageLengthSubject.next(i.items.length); - this.maxTotalCountSubject.next(maxTotalCount); - this.overallTotalCountSubject.next(overallTotalCount); - }); } private facetsInput(aggregate: boolean): generated.TorrentContentFacetsInput { @@ -233,13 +221,6 @@ export class TorrentContentSearchEngine }; } - get isDeepFiltered(): boolean { - return ( - !!this.queryStringSubject.getValue() || - this.facets.some((f) => f.isActive() && !f.isEmpty()) - ); - } - selectContentType( contentType: generated.ContentType | "null" | null | undefined, ) { @@ -264,13 +245,15 @@ export class TorrentContentSearchEngine this.loadResult(); } - contentTypeCount(type: string): Observable { + contentTypeCount(type: string): Observable<{ + count: number; + isEstimate: boolean; + }> { return this.aggregations$.pipe( - map( - (aggs) => - aggs.contentType?.find((a) => (a.value ?? "null") === type)?.count ?? - 0, - ), + map((aggs) => { + const agg = aggs.contentType?.find((a) => (a.value ?? "null") === type); + return agg ?? { count: 0, isEstimate: false }; + }), ); } @@ -335,7 +318,7 @@ function facetInput( return facet.isActive() ? { aggregate, - filter: aggregate ? undefined : facet.filterValues(), + filter: facet.filterValues(), } : undefined; } diff --git a/webui/src/app/search/torrent-content/torrent-content.component.html b/webui/src/app/search/torrent-content/torrent-content.component.html index 6d15d862..9ecc9a2a 100644 --- a/webui/src/app/search/torrent-content/torrent-content.component.html +++ b/webui/src/app/search/torrent-content/torrent-content.component.html @@ -10,9 +10,9 @@ emergencyAll -
{{ isDeepFiltered ? "≤ " : "" - }}{{ search.overallTotalCount$ | async | number }}{{ count.isEstimate ? "~" : "" + }}{{ count.count | number }} {{ t.value.icon }} {{ t.value.plural }} - {{ isDeepFiltered ? "≤ " : "" - }}{{ search.contentTypeCount(t.key) | async | number }}{{ agg.isEstimate ? "~" : "" }}{{ agg.count | number }} @@ -56,9 +55,7 @@ [style.display]="'block'" > {{ r.label }} - {{ isDeepFiltered ? "≤ " : "" }}{{ r.count | number }} + {{ r.isEstimate ? "~" : "" }}{{ r.count | number }} {{ item(i).torrent.name }} diff --git a/webui/src/app/search/torrent-content/torrent-content.component.ts b/webui/src/app/search/torrent-content/torrent-content.component.ts index 7af89a05..22e85efd 100644 --- a/webui/src/app/search/torrent-content/torrent-content.component.ts +++ b/webui/src/app/search/torrent-content/torrent-content.component.ts @@ -87,10 +87,6 @@ export class TorrentContentComponent this.updateSuggestedTags(); } - get isDeepFiltered(): boolean { - return this.search.isDeepFiltered; - } - loadResult(cached = true) { this.search.loadResult(cached); } diff --git a/webui/tsconfig.json b/webui/tsconfig.json index 9969fe29..842d1e5a 100644 --- a/webui/tsconfig.json +++ b/webui/tsconfig.json @@ -20,12 +20,12 @@ "useDefineForClassFields": false, "lib": ["ES2022", "dom", "esnext.asynciterable"], "allowSyntheticDefaultImports": true, - "strictPropertyInitialization": false, + "strictPropertyInitialization": false }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, - "strictTemplates": true, - }, + "strictTemplates": true + } }